UNPKG

2.57 MBJavaScriptView Raw
1/*! For license information please see mirador.min.js.LICENSE.txt */
2!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Mirador=t():e.Mirador=t()}(self,(()=>(()=>{var e,t,r={75888:(e,t,r)=>{"use strict";r.d(t,{A:()=>oe});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){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function f(e,t,r){return e.slice(t,r)}function d(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var v=1,g=1,m=0,y=0,b=0,w="";function O(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:v,column:g,length:a,return:""}}function x(e,t){return a(O("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=y>0?c(w,--y):0,g--,10===b&&(g=1,v--),b}function A(){return b=y<m?c(w,y++):0,g++,10===b&&(g=1,v++),b}function P(){return c(w,y)}function j(){return y}function E(e,t){return f(w,e,t)}function I(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return v=g=1,m=d(w=e),y=0,[]}function C(e){return w="",e}function k(e){return s(E(y-1,N(91===e?e+2:40===e?e+1:e)))}function _(e){for(;(b=P())&&b<33;)A();return I(e)>2||I(b)>3?"":" "}function R(e,t){for(;--t&&A()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return E(e,j()+(t<6&&32==P()&&32==A()))}function N(e){for(;A();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&N(b);break;case 40:41===e&&N(e);break;case 92:A()}return y}function D(e,t){for(;A()&&e+b!==57&&(e+b!==84||47!==P()););return"/*"+E(t,y-1)+"*"+i(47===e?e:A())}function M(e){for(;!I(P());)A();return E(e,y)}var L="-ms-",z="-moz-",W="-webkit-",B="comm",F="rule",H="decl",U="@keyframes";function V(e,t){for(var r="",n=p(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function G(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case B:return"";case U:return e.return=e.value+"{"+V(e.children,n)+"}";case F:e.value=e.props.join(",")}return d(r=V(e.children,n))?e.return=e.value+"{"+r+"}":""}function q(e){return C(K("",null,null,null,[""],e=T(e),0,[0],e))}function K(e,t,r,n,o,a,s,f,p){for(var v=0,g=0,m=s,y=0,b=0,w=0,O=1,x=1,E=1,I=0,T="",C=o,N=a,L=n,z=T;x;)switch(w=I,I=A()){case 40:if(108!=w&&58==c(z,m-1)){-1!=u(z+=l(k(I),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:z+=k(I);break;case 9:case 10:case 13:case 32:z+=_(w);break;case 92:z+=R(j()-1,7);continue;case 47:switch(P()){case 42:case 47:h(Z(D(A(),j()),t,r),p);break;default:z+="/"}break;case 123*O:f[v++]=d(z)*E;case 125*O:case 59:case 0:switch(I){case 0:case 125:x=0;case 59+g:-1==E&&(z=l(z,/\f/g,"")),b>0&&d(z)-m&&h(b>32?X(z+";",n,r,m-1):X(l(z," ","")+";",n,r,m-2),p);break;case 59:z+=";";default:if(h(L=$(z,t,r,v,g,o,f,T,C=[],N=[],m),a),123===I)if(0===g)K(z,t,L,L,C,a,m,f,N);else switch(99===y&&110===c(z,3)?100:y){case 100:case 108:case 109:case 115:K(e,L,L,n&&h($(e,L,L,0,0,o,f,T,o,C=[],m),N),o,N,m,f,n?C:N);break;default:K(z,L,L,L,[""],N,0,f,N)}}v=g=b=0,O=E=1,T=z="",m=s;break;case 58:m=1+d(z),b=w;default:if(O<1)if(123==I)--O;else if(125==I&&0==O++&&125==S())continue;switch(z+=i(I),I*O){case 38:E=g>0?1:(z+="\f",-1);break;case 44:f[v++]=(d(z)-1)*E,E=1;break;case 64:45===P()&&(z+=k(A())),y=P(),g=m=d(T=z+=M(j())),I++;break;case 45:45===w&&2==d(z)&&(O=0)}}return a}function $(e,t,r,n,i,a,u,c,d,h,v){for(var g=i-1,m=0===i?a:[""],y=p(m),b=0,w=0,x=0;b<n;++b)for(var S=0,A=f(e,g+1,g=o(w=u[b])),P=e;S<y;++S)(P=s(w>0?m[S]+" "+A:l(A,/&\f/g,m[S])))&&(d[x++]=P);return O(e,t,r,0===i?F:c,d,h,v)}function Z(e,t,r){return O(e,t,r,B,i(b),f(e,2,-2),0)}function X(e,t,r,n){return O(e,t,r,H,f(e,0,n),f(e,n+1,-1),n)}var Y=function(e,t,r){for(var n=0,o=0;n=o,o=P(),38===n&&12===o&&(t[r]=1),!I(o);)A();return E(e,y)},Q=function(e,t){return C(function(e,t){var r=-1,n=44;do{switch(I(n)){case 0:38===n&&12===P()&&(t[r]=1),e[r]+=Y(y-1,t,r);break;case 2:e[r]+=k(n);break;case 4:if(44===n){e[++r]=58===P()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}}while(n=A());return e}(T(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){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)||J.get(r))&&!n){J.set(e,!0);for(var o=[],i=Q(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function re(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return W+"print-"+e+e;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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+z+e+L+e+e;case 6828:case 4268:return W+e+L+e+e;case 6165:return W+e+L+"flex-"+e+e;case 5187:return W+e+l(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return W+e+L+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return W+e+L+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+L+l(e,"shrink","negative")+e;case 5292:return W+e+L+l(e,"basis","preferred-size")+e;case 6060:return W+"box-"+l(e,"-grow","")+W+e+L+l(e,"grow","positive")+e;case 4554:return W+l(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,W+"$1$2")+e;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(d(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+z+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,d(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+W)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===c(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return W+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+L+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+L+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=re(e.value,e.length);break;case U:return V([x(e,{value:l(e.value,"@","@"+W)})],n);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return V([x(e,{props:[l(t,/:(plac\w+)/,":"+W+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,L+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var i,a,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;l.push(e)}));var u,c,f,d,h=[G,(d=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],v=(c=[ee,te].concat(o,h),f=p(c),function(e,t,r,n){for(var o="",i=0;i<f;i++)o+=c[i](e,t,r,n)||"";return o});a=function(e,t,r,n){u=r,V(q(e?e+"{"+t.styles+"}":t.styles),v),n&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new n({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(l),g}},14796:(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,{A:()=>n})},61334:(e,t,r)=>{"use strict";r.d(t,{C:()=>s,T:()=>u,i:()=>i,w:()=>l});var n=r(78281),o=r(75888),i=(r(99469),r(16286),!0),a=n.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null);var s=a.Provider,l=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(a);return e(t,o,r)}))};i||(l=function(e){return function(t){var r=(0,n.useContext)(a);return null===r?(r=(0,o.A)({key:"css"}),n.createElement(a.Provider,{value:r},e(t,r))):e(t,r)}});var u=n.createContext({})},45748:(e,t,r)=>{"use strict";r.d(t,{AH:()=>u,i7:()=>c,mL:()=>l});var n=r(61334),o=r(78281),i=r(77604),a=r(16286),s=r(99469),l=(r(75888),r(24129),(0,n.w)((function(e,t){var r=e.styles,l=(0,s.J)([r],void 0,o.useContext(n.T));if(!n.i){for(var u,c=l.name,f=l.styles,d=l.next;void 0!==d;)c+=" "+d.name,f+=d.styles,d=d.next;var p=!0===t.compat,h=t.insert("",{name:c,styles:f},t.sheet,p);return p?null:o.createElement("style",((u={})["data-emotion"]=t.key+"-global "+c,u.dangerouslySetInnerHTML={__html:h},u.nonce=t.sheet.nonce,u))}var v=o.useRef();return(0,a.i)((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),v.current=[r,n],function(){r.flush()}}),[t]),(0,a.i)((function(){var e=v.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)}}),[t,l.name]),null})));function u(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.J)(t)}var c=function(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},99469:(e,t,r)=>{"use strict";r.d(t,{J:()=>h});var n={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,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},o=r(14796),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=(0,o.A)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,r){return d={name:t,styles:r,next:d},t}))}return 1===n[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(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 d={name:r.name,styles:r.styles,next:d},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)d={name:n.name,styles:n.styles,next:d},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=f(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":l(a)&&(n+=u(i)+":"+c(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=f(e,t,a);switch(i){case"animation":case"animationName":n+=u(i)+":"+s+";";break;default:n+=i+"{"+s+"}"}}else for(var d=0;d<a.length;d++)l(a[d])&&(n+=u(i)+":"+c(i,a[d])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=d,i=r(e);return d=o,f(e,t,i)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var d,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var h=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";d=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=f(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=f(r,t,e[a]),n&&(o+=i[a]);p.lastIndex=0;for(var s,l="";null!==(s=p.exec(o));)l+="-"+s[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:d}}},16286:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>s,s:()=>a});var o=r(78281),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},77604:(e,t,r)=>{"use strict";r.d(t,{Rk:()=>n,SF:()=>o,sk:()=>i});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},52579:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(78281),o=r(8568),i=r(1244),a=r(78006),s=r(68490),l=r(28477);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=n.forwardRef((function(e,t){var r=e.children,c=e.container,f=e.disablePortal,d=void 0!==f&&f,p=u(n.useState(null),2),h=p[0],v=p[1],g=(0,i.A)(n.isValidElement(r)?r.ref:null,t);if((0,a.A)((function(){d||v(function(e){return"function"==typeof e?e():e}(c)||document.body)}),[c,d]),(0,a.A)((function(){if(h&&!d)return(0,s.A)(t,h),function(){(0,s.A)(t,null)}}),[t,h,d]),d){if(n.isValidElement(r)){var m={ref:g};return n.cloneElement(r,m)}return(0,l.jsx)(n.Fragment,{children:r})}return(0,l.jsx)(n.Fragment,{children:h?o.createPortal(r,h):h})}))},42735:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(63063),o=r(67714);function i(e,t,r){return void 0===e||(0,o.g)(e)?t:(0,n.A)({},t,{ownerState:(0,n.A)({},t.ownerState,r)})}},87677:(e,t,r)=>{"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var r={};return Object.keys(e).filter((function(r){return r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)})).forEach((function(t){r[t]=e[t]})),r}r.d(t,{h:()=>n})},67714:(e,t,r)=>{"use strict";function n(e){return"string"==typeof e}r.d(t,{g:()=>n})},90680:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(63063),o=r(20997),i=r(87677);function a(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])})).forEach((function(r){t[r]=e[r]})),t}function s(e){var t=e.getSlotProps,r=e.additionalProps,s=e.externalSlotProps,l=e.externalForwardedProps,u=e.className;if(!t){var c=(0,o.A)(null==r?void 0:r.className,u,null==l?void 0:l.className,null==s?void 0:s.className),f=(0,n.A)({},null==r?void 0:r.style,null==l?void 0:l.style,null==s?void 0:s.style),d=(0,n.A)({},r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:void 0}}var p=(0,i.h)((0,n.A)({},l,s)),h=a(s),v=a(l),g=t(p),m=(0,o.A)(null==g?void 0:g.className,null==r?void 0:r.className,u,null==l?void 0:l.className,null==s?void 0:s.className),y=(0,n.A)({},null==g?void 0:g.style,null==r?void 0:r.style,null==l?void 0:l.style,null==s?void 0:s.style),b=(0,n.A)({},g,r,v,h);return m.length>0&&(b.className=m),Object.keys(y).length>0&&(b.style=y),{props:b,internalRef:g.ref}}},65884:(e,t,r)=>{"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Y:()=>n})},17080:(e,t,r)=>{"use strict";r.d(t,{Q:()=>c});var n=r(63063),o=r(5550),i=r(1244),a=r(42735),s=r(90680),l=r(65884),u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function c(e){var t,r=e.elementType,c=e.externalSlotProps,f=e.ownerState,d=e.skipResolvingSlotProps,p=void 0!==d&&d,h=(0,o.A)(e,u),v=p?{}:(0,l.Y)(c,f),g=(0,s.p)((0,n.A)({},h,{externalSlotProps:v})),m=g.props,y=g.internalRef,b=(0,i.A)(y,null==v?void 0:v.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.X)(r,(0,n.A)({},m,{ref:b}),f)}},67681:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutlineSharp")},19751:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"AddSharp")},75228:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBackSharp")},51666:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForwardSharp")},31042:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeftSharp")},1831:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRightSharp")},49832:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpwardSharp")},67105:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m19 18 2 1V1H7v2h12zM17 5H3v18l7-3 7 3z"}),"BookmarksSharp")},98750:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"CheckSharp")},248:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeftSharp")},87645:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},31189:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRightSharp")},98784:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},18474:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseSharp")},86521:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M21.99 2H2v16h16l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"CommentSharp")},47089:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91c.48.22 1.05.34 1.7.34.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"CopyrightSharp")},56653:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M21 3H3v18h18zm-2 16H5V5h14z"}),"CropDinSharp")},9439:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M21 3H3v18h18zm-2 16H5V5h14zm-5.04-6.71-2.75 3.54-1.96-2.36L6.5 17h11z"}),"CropOriginalSharp")},87348:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandleSharp")},1019:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicatorSharp")},91312:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutlineSharp")},15175:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLessSharp")},52371:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},3839:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMoreSharp")},68827:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExitSharp")},63051:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"FullscreenSharp")},91772:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"InfoSharp")},38216:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2M11 16l4-4-4-4v3H1v2h10z"}),"Input")},47673:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M4.01 2 4 22h16V8l-6-6zM13 9V3.5L18.5 9z"}),"InsertDriveFileSharp")},53462:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"}),"LayersSharp")},76496:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7zm-4 6h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"ListSharp")},37125:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M20 8h-3V6.21c0-2.61-1.91-4.94-4.51-5.19C9.51.74 7 3.08 7 6v2H4v14h16zm-8 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2z"}),"LockSharp")},36829:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"MenuSharp")},25573:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHorizSharp")},6826:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVertSharp")},12065:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M17.66 8 12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8M6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14z"}),"OpacitySharp")},26863:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 19H5V5h7V3H3v18h18v-9h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNewSharp")},69035:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"PaletteSharp")},66694:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutlineSharp")},20224:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"RemoveCircleOutlineSharp")},70715:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M3 15h18v-2H3zm0 4h18v-2H3zm0-8h18V9H3zm0-6v2h18V5z"}),"ReorderSharp")},42850:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 12v7H5v-7H3v9h18v-9zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAltSharp")},59152:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchSharp")},27883:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"m19.44 12.99-.01.02c.04-.33.08-.67.08-1.01 0-.34-.03-.66-.07-.99l.01.02 2.44-1.92-2.43-4.22-2.87 1.16.01.01c-.52-.4-1.09-.74-1.71-1h.01L14.44 2H9.57l-.44 3.07h.01c-.62.26-1.19.6-1.71 1l.01-.01-2.88-1.17-2.44 4.22 2.44 1.92.01-.02c-.04.33-.07.65-.07.99 0 .34.03.68.08 1.01l-.01-.02-2.1 1.65-.33.26 2.43 4.2 2.88-1.15-.02-.04c.53.41 1.1.75 1.73 1.01h-.03L9.58 22h4.85s.03-.18.06-.42l.38-2.65h-.01c.62-.26 1.2-.6 1.73-1.01l-.02.04 2.88 1.15 2.43-4.2s-.14-.12-.33-.26zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5"}),"SettingsSharp")},91712:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"SortSharp")},47610:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTopSharp")},80781:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},37363:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewListSharp")},29397:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24M3.42 2.45 2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l3.43 3.43 1.41-1.41zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5m2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64z"}),"VisibilityOffSharp")},70396:(e,t,r)=>{"use strict";var n=r(61589);t.A=void 0;var o=n(r(52385)),i=r(28477);t.A=(0,o.default)((0,i.jsx)("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"VisibilitySharp")},52385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(97536)},27413:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var n=r(5550),o=r(63063),i=r(78281),a=(r(38428),r(20997)),s=r(80408),l=r(49801),u=r(83542),c=r(36463),f=r(15312),d=r(34307),p=r(98334),h=r(24715),v=r(95298),g=r(88842);function m(e){return(0,g.Ay)("MuiAccordion",e)}const y=(0,v.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);var b=r(28477);function w(e){return P(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||x()}function O(e,t){return P(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||S(e,t)||x()}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.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)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e){if(Array.isArray(e))return e}function j(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],I=(0,l.Ay)(f.A,{name:"MuiAccordion",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[j({},"& .".concat(y.region),t.region),t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})((function(e){var t=e.theme,r={duration:t.transitions.duration.shortest};return j(j({position:"relative",transition:t.transitions.create(["margin"],r),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],r)},"&:first-of-type":{"&::before":{display:"none"}}},"&.".concat(y.expanded),{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}}),"&.".concat(y.disabled),{backgroundColor:(t.vars||t).palette.action.disabledBackground})}),(function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({},!r.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!r.disableGutters&&j({},"&.".concat(y.expanded),{margin:"16px 0"}))}));const T=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiAccordion"}),l=r.children,f=r.className,v=r.defaultExpanded,g=void 0!==v&&v,y=r.disabled,x=void 0!==y&&y,S=r.disableGutters,A=void 0!==S&&S,P=r.expanded,j=r.onChange,T=r.square,C=void 0!==T&&T,k=r.slots,_=void 0===k?{}:k,R=r.slotProps,N=void 0===R?{}:R,D=r.TransitionComponent,M=r.TransitionProps,L=(0,n.A)(r,E),z=O((0,p.A)({controlled:P,default:g,name:"Accordion",state:"expanded"}),2),W=z[0],B=z[1],F=i.useCallback((function(e){B(!W),j&&j(e,!W)}),[W,j,B]),H=w(i.Children.toArray(l)),U=H[0],V=H.slice(1),G=i.useMemo((function(){return{expanded:W,disabled:x,disableGutters:A,toggle:F}}),[W,x,A,F]),q=(0,o.A)({},r,{square:C,disabled:x,disableGutters:A,expanded:W}),K=function(e){var t=e.classes,r={root:["root",!e.square&&"rounded",e.expanded&&"expanded",e.disabled&&"disabled",!e.disableGutters&&"gutters"],region:["region"]};return(0,s.A)(r,m,t)}(q),$=(0,o.A)({transition:D},_),Z=(0,o.A)({transition:M},N),X=O((0,h.A)("transition",{elementType:c.A,externalForwardedProps:{slots:$,slotProps:Z},ownerState:q}),2),Y=X[0],Q=X[1];return(0,b.jsxs)(I,(0,o.A)({className:(0,a.A)(K.root,f),ref:t,ownerState:q,square:C},L,{children:[(0,b.jsx)(d.A.Provider,{value:G,children:U}),(0,b.jsx)(Y,(0,o.A)({in:W,timeout:"auto"},Q,{children:(0,b.jsx)("div",{"aria-labelledby":U.props.id,id:U.props["aria-controls"],role:"region",className:K.region,children:V})}))]}))}))},34307:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(78281).createContext({})},53327:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(63063),o=r(5550),i=r(78281),a=r(20997),s=r(80408),l=r(49801),u=r(83542),c=r(95298),f=r(88842);function d(e){return(0,f.Ay)("MuiAccordionDetails",e)}(0,c.A)("MuiAccordionDetails",["root"]);var p=r(28477),h=["className"],v=(0,l.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{padding:e.theme.spacing(1,2,2)}}));const g=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiAccordionDetails"}),i=r.className,l=(0,o.A)(r,h),c=r,f=function(e){var t=e.classes;return(0,s.A)({root:["root"]},d,t)}(c);return(0,p.jsx)(v,(0,n.A)({className:(0,a.A)(f.root,i),ref:t,ownerState:c},l))}))},68506:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(49801),u=r(83542),c=r(39926),f=r(34307),d=r(95298),p=r(88842);function h(e){return(0,p.Ay)("MuiAccordionSummary",e)}const v=(0,d.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var g=r(28477);function m(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=["children","className","expandIcon","focusVisibleClassName","onClick"],b=(0,l.Ay)(c.A,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,r=e.ownerState,n={duration:t.transitions.duration.shortest};return(0,o.A)(m(m(m({display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],n)},"&.".concat(v.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"&.".concat(v.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"&:hover:not(.".concat(v.disabled,")"),{cursor:"pointer"}),!r.disableGutters&&m({},"&.".concat(v.expanded),{minHeight:64}))})),w=(0,l.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:function(e,t){return t.content}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({display:"flex",flexGrow:1,margin:"12px 0"},!r.disableGutters&&m({transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest})},"&.".concat(v.expanded),{margin:"20px 0"}))})),O=(0,l.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:function(e,t){return t.expandIconWrapper}})((function(e){var t=e.theme;return m({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest})},"&.".concat(v.expanded),{transform:"rotate(180deg)"})}));const x=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiAccordionSummary"}),l=r.children,c=r.className,d=r.expandIcon,p=r.focusVisibleClassName,v=r.onClick,m=(0,n.A)(r,y),x=i.useContext(f.A),S=x.disabled,A=void 0!==S&&S,P=x.disableGutters,j=x.expanded,E=x.toggle,I=(0,o.A)({},r,{expanded:j,disabled:A,disableGutters:P}),T=function(e){var t=e.classes,r=e.expanded,n=e.disabled,o=e.disableGutters,i={root:["root",r&&"expanded",n&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]};return(0,s.A)(i,h,t)}(I);return(0,g.jsxs)(b,(0,o.A)({focusRipple:!1,disableRipple:!0,disabled:A,component:"div","aria-expanded":j,className:(0,a.A)(T.root,c),focusVisibleClassName:(0,a.A)(T.focusVisible,p),onClick:function(e){E&&E(e),v&&v(e)},ref:t,ownerState:I},m,{children:[(0,g.jsx)(w,{className:T.content,ownerState:I,children:l}),d&&(0,g.jsx)(O,{className:T.expandIconWrapper,ownerState:I,children:d})]}))}))},83136:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(49801),u=r(83542),c=r(4832),f=r(95298),d=r(88842);function p(e){return(0,d.Ay)("MuiBackdrop",e)}(0,f.A)("MuiBackdrop",["root","invisible"]);var h=r(28477),v=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=(0,l.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,o.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})}));const m=i.forwardRef((function(e,t){var r,i,l,f=(0,u.A)({props:e,name:"MuiBackdrop"}),d=f.children,m=f.className,y=f.component,b=void 0===y?"div":y,w=f.components,O=void 0===w?{}:w,x=f.componentsProps,S=void 0===x?{}:x,A=f.invisible,P=void 0!==A&&A,j=f.open,E=f.slotProps,I=void 0===E?{}:E,T=f.slots,C=void 0===T?{}:T,k=f.TransitionComponent,_=void 0===k?c.A:k,R=f.transitionDuration,N=(0,n.A)(f,v),D=(0,o.A)({},f,{component:b,invisible:P}),M=function(e){var t=e.classes,r={root:["root",e.invisible&&"invisible"]};return(0,s.A)(r,p,t)}(D),L=null!=(r=I.root)?r:S.root;return(0,h.jsx)(_,(0,o.A)({in:j,timeout:R},N,{children:(0,h.jsx)(g,(0,o.A)({"aria-hidden":!0},L,{as:null!=(i=null!=(l=C.root)?l:O.Root)?i:b,className:(0,a.A)(M.root,m,null==L?void 0:L.className),ownerState:(0,o.A)({},D,null==L?void 0:L.ownerState),classes:M,ref:t,children:d}))}))}))},18941:(e,t,r)=>{"use strict";r.d(t,{A:()=>P});var n=r(63063),o=r(5550),i=r(78281),a=r(20997),s=r(64984),l=r(80408);var u=r(17080),c=r(87584),f=r(49801),d=r(71905),p=r(95298),h=r(88842);function v(e){return(0,h.Ay)("MuiBadge",e)}const g=(0,p.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);var m=r(28477);function y(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],x=(0,c.h)("MuiBadge"),S=(0,f.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:function(e,t){return t.root}})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),A=(0,f.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:function(e,t){var r=e.ownerState;return[t.badge,t[r.variant],t["anchorOrigin".concat((0,d.A)(r.anchorOrigin.vertical)).concat((0,d.A)(r.anchorOrigin.horizontal)).concat((0,d.A)(r.overlap))],"default"!==r.color&&t["color".concat((0,d.A)(r.color))],r.invisible&&t.invisible]}})((function(e){var t,r=e.theme;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:r.typography.fontFamily,fontWeight:r.typography.fontWeightMedium,fontSize:r.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:r.transitions.create("transform",{easing:r.transitions.easing.easeInOut,duration:r.transitions.duration.enteringScreen}),variants:[].concat(b(Object.keys((null!=(t=r.vars)?t:r).palette).filter((function(e){var t,n;return(null!=(t=r.vars)?t:r).palette[e].main&&(null!=(n=r.vars)?n:r).palette[e].contrastText})).map((function(e){return{props:{color:e},style:{backgroundColor:(r.vars||r).palette[e].main,color:(r.vars||r).palette[e].contrastText}}}))),[{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:function(e){var t=e.ownerState;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:y({top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(g.invisible),{transform:"scale(0) translate(50%, -50%)"})},{props:function(e){var t=e.ownerState;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:y({bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(g.invisible),{transform:"scale(0) translate(50%, 50%)"})},{props:function(e){var t=e.ownerState;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:y({top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(g.invisible),{transform:"scale(0) translate(-50%, -50%)"})},{props:function(e){var t=e.ownerState;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:y({bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(g.invisible),{transform:"scale(0) translate(-50%, 50%)"})},{props:function(e){var t=e.ownerState;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:y({top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(g.invisible),{transform:"scale(0) translate(50%, -50%)"})},{props:function(e){var t=e.ownerState;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:y({bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(g.invisible),{transform:"scale(0) translate(50%, 50%)"})},{props:function(e){var t=e.ownerState;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:y({top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(g.invisible),{transform:"scale(0) translate(-50%, -50%)"})},{props:function(e){var t=e.ownerState;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:y({bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(g.invisible),{transform:"scale(0) translate(-50%, 50%)"})},{props:{invisible:!0},style:{transition:r.transitions.create("transform",{easing:r.transitions.easing.easeInOut,duration:r.transitions.duration.leavingScreen})}}])}}));const P=i.forwardRef((function(e,t){var r,i,c,f,p,h,g=x({props:e,name:"MuiBadge"}),y=g.anchorOrigin,b=void 0===y?{vertical:"top",horizontal:"right"}:y,w=g.className,P=g.component,j=g.components,E=void 0===j?{}:j,I=g.componentsProps,T=void 0===I?{}:I,C=g.children,k=g.overlap,_=void 0===k?"rectangular":k,R=g.color,N=void 0===R?"default":R,D=g.invisible,M=void 0!==D&&D,L=g.max,z=void 0===L?99:L,W=g.badgeContent,B=g.slots,F=g.slotProps,H=g.showZero,U=void 0!==H&&H,V=g.variant,G=void 0===V?"standard":V,q=(0,o.A)(g,O),K=function(e){var t=e.badgeContent,r=e.invisible,n=void 0!==r&&r,o=e.max,i=void 0===o?99:o,a=e.showZero,l=void 0!==a&&a,u=(0,s.A)({badgeContent:t,max:i}),c=n;!1!==n||0!==t||l||(c=!0);var f=c?u:e,d=f.badgeContent,p=f.max,h=void 0===p?i:p;return{badgeContent:d,invisible:c,max:h,displayValue:d&&Number(d)>h?"".concat(h,"+"):d}}({max:z,invisible:M,badgeContent:W,showZero:U}),$=K.badgeContent,Z=K.invisible,X=K.max,Y=K.displayValue,Q=(0,s.A)({anchorOrigin:b,color:N,overlap:_,variant:G,badgeContent:W}),J=Z||null==$&&"dot"!==G,ee=J?Q:g,te=ee.color,re=void 0===te?N:te,ne=ee.overlap,oe=void 0===ne?_:ne,ie=ee.anchorOrigin,ae=void 0===ie?b:ie,se=ee.variant,le=void 0===se?G:se,ue="dot"!==le?Y:void 0,ce=(0,n.A)({},g,{badgeContent:$,invisible:J,max:X,displayValue:ue,showZero:U,anchorOrigin:ae,color:re,overlap:oe,variant:le}),fe=function(e){var t=e.color,r=e.anchorOrigin,n=e.invisible,o=e.overlap,i=e.variant,a=e.classes,s=void 0===a?{}:a,u={root:["root"],badge:["badge",i,n&&"invisible","anchorOrigin".concat((0,d.A)(r.vertical)).concat((0,d.A)(r.horizontal)),"anchorOrigin".concat((0,d.A)(r.vertical)).concat((0,d.A)(r.horizontal)).concat((0,d.A)(o)),"overlap".concat((0,d.A)(o)),"default"!==t&&"color".concat((0,d.A)(t))]};return(0,l.A)(u,v,s)}(ce),de=null!=(r=null!=(i=null==B?void 0:B.root)?i:E.Root)?r:S,pe=null!=(c=null!=(f=null==B?void 0:B.badge)?f:E.Badge)?c:A,he=null!=(p=null==F?void 0:F.root)?p:T.root,ve=null!=(h=null==F?void 0:F.badge)?h:T.badge,ge=(0,u.Q)({elementType:de,externalSlotProps:he,externalForwardedProps:q,additionalProps:{ref:t,as:P},ownerState:ce,className:(0,a.A)(null==he?void 0:he.className,fe.root,w)}),me=(0,u.Q)({elementType:pe,externalSlotProps:ve,ownerState:ce,className:(0,a.A)(fe.badge,null==ve?void 0:ve.className)});return(0,m.jsxs)(de,(0,n.A)({},ge,{children:[C,(0,m.jsx)(pe,(0,n.A)({},me,{children:ue}))]}))}))},70943:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(94204),l=r(80408),u=r(83032),c=r(49801),f=r(83542),d=r(39926),p=r(71905),h=r(95298),v=r(88842);function g(e){return(0,v.Ay)("MuiButton",e)}const m=(0,h.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const y=i.createContext({});const b=i.createContext(void 0);var w=r(28477);function O(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],S=function(e){return(0,o.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},A=(0,c.Ay)(d.A,{shouldForwardProp:function(e){return(0,c.ep)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,p.A)(r.color))],t["size".concat((0,p.A)(r.size))],t["".concat(r.variant,"Size").concat((0,p.A)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((function(e){var t,r,n=e.theme,i=e.ownerState,a="light"===n.palette.mode?n.palette.grey[300]:n.palette.grey[800],s="light"===n.palette.mode?n.palette.grey.A100:n.palette.grey[700];return(0,o.A)({},n.typography.button,O(O({minWidth:64,padding:"6px 16px",borderRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create(["background-color","box-shadow","border-color","color"],{duration:n.transitions.duration.short}),"&:hover":(0,o.A)({textDecoration:"none",backgroundColor:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,u.X4)(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===i.variant&&"inherit"!==i.color&&{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[i.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,u.X4)(n.palette[i.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===i.variant&&"inherit"!==i.color&&{border:"1px solid ".concat((n.vars||n).palette[i.color].main),backgroundColor:n.vars?"rgba(".concat(n.vars.palette[i.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,u.X4)(n.palette[i.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===i.variant&&{backgroundColor:n.vars?n.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(n.vars||n).shadows[4],"@media (hover: none)":{boxShadow:(n.vars||n).shadows[2],backgroundColor:(n.vars||n).palette.grey[300]}},"contained"===i.variant&&"inherit"!==i.color&&{backgroundColor:(n.vars||n).palette[i.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[i.color].main}}),"&:active":(0,o.A)({},"contained"===i.variant&&{boxShadow:(n.vars||n).shadows[8]})},"&.".concat(m.focusVisible),(0,o.A)({},"contained"===i.variant&&{boxShadow:(n.vars||n).shadows[6]})),"&.".concat(m.disabled),(0,o.A)({color:(n.vars||n).palette.action.disabled},"outlined"===i.variant&&{border:"1px solid ".concat((n.vars||n).palette.action.disabledBackground)},"contained"===i.variant&&{color:(n.vars||n).palette.action.disabled,boxShadow:(n.vars||n).shadows[0],backgroundColor:(n.vars||n).palette.action.disabledBackground})),"text"===i.variant&&{padding:"6px 8px"},"text"===i.variant&&"inherit"!==i.color&&{color:(n.vars||n).palette[i.color].main},"outlined"===i.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===i.variant&&"inherit"!==i.color&&{color:(n.vars||n).palette[i.color].main,border:n.vars?"1px solid rgba(".concat(n.vars.palette[i.color].mainChannel," / 0.5)"):"1px solid ".concat((0,u.X4)(n.palette[i.color].main,.5))},"contained"===i.variant&&{color:n.vars?n.vars.palette.text.primary:null==(t=(r=n.palette).getContrastText)?void 0:t.call(r,n.palette.grey[300]),backgroundColor:n.vars?n.vars.palette.Button.inheritContainedBg:a,boxShadow:(n.vars||n).shadows[2]},"contained"===i.variant&&"inherit"!==i.color&&{color:(n.vars||n).palette[i.color].contrastText,backgroundColor:(n.vars||n).palette[i.color].main},"inherit"===i.color&&{color:"inherit",borderColor:"currentColor"},"small"===i.size&&"text"===i.variant&&{padding:"4px 5px",fontSize:n.typography.pxToRem(13)},"large"===i.size&&"text"===i.variant&&{padding:"8px 11px",fontSize:n.typography.pxToRem(15)},"small"===i.size&&"outlined"===i.variant&&{padding:"3px 9px",fontSize:n.typography.pxToRem(13)},"large"===i.size&&"outlined"===i.variant&&{padding:"7px 21px",fontSize:n.typography.pxToRem(15)},"small"===i.size&&"contained"===i.variant&&{padding:"4px 10px",fontSize:n.typography.pxToRem(13)},"large"===i.size&&"contained"===i.variant&&{padding:"8px 22px",fontSize:n.typography.pxToRem(15)},i.fullWidth&&{width:"100%"})}),(function(e){return e.ownerState.disableElevation&&O(O(O({boxShadow:"none","&:hover":{boxShadow:"none"}},"&.".concat(m.focusVisible),{boxShadow:"none"}),"&:active",{boxShadow:"none"}),"&.".concat(m.disabled),{boxShadow:"none"})})),P=(0,c.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.startIcon,t["iconSize".concat((0,p.A)(r.size))]]}})((function(e){var t=e.ownerState;return(0,o.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},S(t))})),j=(0,c.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.endIcon,t["iconSize".concat((0,p.A)(r.size))]]}})((function(e){var t=e.ownerState;return(0,o.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},S(t))}));const E=i.forwardRef((function(e,t){var r=i.useContext(y),u=i.useContext(b),c=(0,s.A)(r,e),d=(0,f.A)({props:c,name:"MuiButton"}),h=d.children,v=d.color,m=void 0===v?"primary":v,O=d.component,S=void 0===O?"button":O,E=d.className,I=d.disabled,T=void 0!==I&&I,C=d.disableElevation,k=void 0!==C&&C,_=d.disableFocusRipple,R=void 0!==_&&_,N=d.endIcon,D=d.focusVisibleClassName,M=d.fullWidth,L=void 0!==M&&M,z=d.size,W=void 0===z?"medium":z,B=d.startIcon,F=d.type,H=d.variant,U=void 0===H?"text":H,V=(0,n.A)(d,x),G=(0,o.A)({},d,{color:m,component:S,disabled:T,disableElevation:k,disableFocusRipple:R,fullWidth:L,size:W,type:F,variant:U}),q=function(e){var t=e.color,r=e.disableElevation,n=e.fullWidth,i=e.size,a=e.variant,s=e.classes,u={root:["root",a,"".concat(a).concat((0,p.A)(t)),"size".concat((0,p.A)(i)),"".concat(a,"Size").concat((0,p.A)(i)),"color".concat((0,p.A)(t)),r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,p.A)(i))],endIcon:["icon","endIcon","iconSize".concat((0,p.A)(i))]},c=(0,l.A)(u,g,s);return(0,o.A)({},s,c)}(G),K=B&&(0,w.jsx)(P,{className:q.startIcon,ownerState:G,children:B}),$=N&&(0,w.jsx)(j,{className:q.endIcon,ownerState:G,children:N}),Z=u||"";return(0,w.jsxs)(A,(0,o.A)({ownerState:G,className:(0,a.A)(r.className,q.root,E,Z),component:S,disabled:T,focusRipple:!R,focusVisibleClassName:(0,a.A)(q.focusVisible,D),ref:t,type:F},V,{classes:q,children:[K,h,$]}))}))},39926:(e,t,r)=>{"use strict";r.d(t,{A:()=>oe});var n=r(63063),o=r(5550),i=r(78281),a=r(20997),s=r(80408),l=r(49801),u=r(83542),c=r(84147),f=r(71425),d=r(86386),p=r(87354),h=r(37227),v=r(65612);function g(e,t){var r=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),r}function m(e,t,r){return null!=r[t]?r[t]:e.props[t]}function y(e,t,r){var n=g(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,u=a in n,c=t[a],f=(0,i.isValidElement)(c)&&!c.props.in;!u||l&&!f?u||!l||f?u&&l&&(0,i.isValidElement)(c)&&(o[a]=(0,i.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:m(s,"exit",e),enter:m(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:m(s,"exit",e),enter:m(s,"enter",e)})}})),o}var b=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},w=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind((0,p.A)(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}(0,h.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,a=t.handleExited;return{children:t.firstRender?(r=e,n=a,g(r.children,(function(e){return(0,i.cloneElement)(e,{onExited:n.bind(null,e),in:!0,appear:m(e,"appear",r),enter:m(e,"enter",r),exit:m(e,"exit",r)})}))):y(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var r=g(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,n.A)({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=(0,o.A)(e,["component","childFactory"]),a=this.state.contextValue,s=b(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?i.createElement(v.A.Provider,{value:a},s):i.createElement(v.A.Provider,{value:a},i.createElement(t,n,s))},t}(i.Component);w.propTypes={},w.defaultProps={component:"div",childFactory:function(e){return e}};const O=w;var x=r(45748),S=r(10887),A=r(28477);function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const E=function(e){var t=e.className,r=e.classes,n=e.pulsate,o=void 0!==n&&n,s=e.rippleX,l=e.rippleY,u=e.rippleSize,c=e.in,f=e.onExited,d=e.timeout,p=P(i.useState(!1),2),h=p[0],v=p[1],g=(0,a.A)(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),m={width:u,height:u,top:-u/2+l,left:-u/2+s},y=(0,a.A)(r.child,h&&r.childLeaving,o&&r.childPulsate);return c||h||v(!0),i.useEffect((function(){if(!c&&null!=f){var e=setTimeout(f,d);return function(){clearTimeout(e)}}}),[f,c,d]),(0,A.jsx)("span",{className:g,style:m,children:(0,A.jsx)("span",{className:y})})};var I=r(95298);const T=(0,I.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var C,k,_,R;function N(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||M(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||M(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.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)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function z(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var W,B,F,H,U=["center","classes","className"],V=(0,x.i7)(W||(W=C||(C=z(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),G=(0,x.i7)(B||(B=k||(k=z(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),q=(0,x.i7)(F||(F=_||(_=z(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),K=(0,l.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$=(0,l.Ay)(E,{name:"MuiTouchRipple",slot:"Ripple"})(H||(H=R||(R=z(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),T.rippleVisible,V,550,(function(e){return e.theme.transitions.easing.easeInOut}),T.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),T.child,T.childLeaving,G,550,(function(e){return e.theme.transitions.easing.easeInOut}),T.childPulsate,q,(function(e){return e.theme.transitions.easing.easeInOut}));const Z=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiTouchRipple"}),s=r.center,l=void 0!==s&&s,c=r.classes,f=void 0===c?{}:c,d=r.className,p=(0,o.A)(r,U),h=D(i.useState([]),2),v=h[0],g=h[1],m=i.useRef(0),y=i.useRef(null);i.useEffect((function(){y.current&&(y.current(),y.current=null)}),[v]);var b=i.useRef(!1),w=(0,S.A)(),x=i.useRef(null),P=i.useRef(null),j=i.useCallback((function(e){var t=e.pulsate,r=e.rippleX,n=e.rippleY,o=e.rippleSize,i=e.cb;g((function(e){return[].concat(N(e),[(0,A.jsx)($,{classes:{ripple:(0,a.A)(f.ripple,T.ripple),rippleVisible:(0,a.A)(f.rippleVisible,T.rippleVisible),ripplePulsate:(0,a.A)(f.ripplePulsate,T.ripplePulsate),child:(0,a.A)(f.child,T.child),childLeaving:(0,a.A)(f.childLeaving,T.childLeaving),childPulsate:(0,a.A)(f.childPulsate,T.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},m.current)])})),m.current+=1,y.current=i}),[f]),E=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=t.pulsate,o=void 0!==n&&n,i=t.center,a=void 0===i?l||t.pulsate:i,s=t.fakeElement,u=void 0!==s&&s;if("mousedown"===(null==e?void 0:e.type)&&b.current)b.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(b.current=!0);var c,f,d,p=u?null:P.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),f=Math.round(h.height/2);else{var v=e.touches&&e.touches.length>0?e.touches[0]:e,g=v.clientX,m=v.clientY;c=Math.round(g-h.left),f=Math.round(m-h.top)}if(a)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(d+=1);else{var y=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,O=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(y,2)+Math.pow(O,2))}null!=e&&e.touches?null===x.current&&(x.current=function(){j({pulsate:o,rippleX:c,rippleY:f,rippleSize:d,cb:r})},w.start(80,(function(){x.current&&(x.current(),x.current=null)}))):j({pulsate:o,rippleX:c,rippleY:f,rippleSize:d,cb:r})}}),[l,j,w]),I=i.useCallback((function(){E({},{pulsate:!0})}),[E]),C=i.useCallback((function(e,t){if(w.clear(),"touchend"===(null==e?void 0:e.type)&&x.current)return x.current(),x.current=null,void w.start(0,(function(){C(e,t)}));x.current=null,g((function(e){return e.length>0?e.slice(1):e})),y.current=t}),[w]);return i.useImperativeHandle(t,(function(){return{pulsate:I,start:E,stop:C}}),[I,E,C]),(0,A.jsx)(K,(0,n.A)({className:(0,a.A)(T.root,f.root,d),ref:P},p,{children:(0,A.jsx)(O,{component:null,exit:!0,children:v})}))}));var X=r(88842);function Y(e){return(0,X.Ay)("MuiButtonBase",e)}const Q=(0,I.A)("MuiButtonBase",["root","disabled","focusVisible"]);function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ee(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function te(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var re=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ne=(0,l.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})(te(te({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(Q.disabled),{pointerEvents:"none",cursor:"default"}),"@media print",{colorAdjust:"exact"}));const oe=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiButtonBase"}),l=r.action,p=r.centerRipple,h=void 0!==p&&p,v=r.children,g=r.className,m=r.component,y=void 0===m?"button":m,b=r.disabled,w=void 0!==b&&b,O=r.disableRipple,x=void 0!==O&&O,S=r.disableTouchRipple,P=void 0!==S&&S,j=r.focusRipple,E=void 0!==j&&j,I=r.LinkComponent,T=void 0===I?"a":I,C=r.onBlur,k=r.onClick,_=r.onContextMenu,R=r.onDragLeave,N=r.onFocus,D=r.onFocusVisible,M=r.onKeyDown,L=r.onKeyUp,z=r.onMouseDown,W=r.onMouseLeave,B=r.onMouseUp,F=r.onTouchEnd,H=r.onTouchMove,U=r.onTouchStart,V=r.tabIndex,G=void 0===V?0:V,q=r.TouchRippleProps,K=r.touchRippleRef,$=r.type,X=(0,o.A)(r,re),Q=i.useRef(null),ee=i.useRef(null),te=(0,c.A)(ee,K),oe=(0,d.A)(),ie=oe.isFocusVisibleRef,ae=oe.onFocus,se=oe.onBlur,le=oe.ref,ue=J(i.useState(!1),2),ce=ue[0],fe=ue[1];w&&ce&&fe(!1),i.useImperativeHandle(l,(function(){return{focusVisible:function(){fe(!0),Q.current.focus()}}}),[]);var de=J(i.useState(!1),2),pe=de[0],he=de[1];i.useEffect((function(){he(!0)}),[]);var ve=pe&&!x&&!w;function ge(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;return(0,f.A)((function(n){return t&&t(n),!r&&ee.current&&ee.current[e](n),!0}))}i.useEffect((function(){ce&&E&&!x&&pe&&ee.current.pulsate()}),[x,E,ce,pe]);var me=ge("start",z),ye=ge("stop",_),be=ge("stop",R),we=ge("stop",B),Oe=ge("stop",(function(e){ce&&e.preventDefault(),W&&W(e)})),xe=ge("start",U),Se=ge("stop",F),Ae=ge("stop",H),Pe=ge("stop",(function(e){se(e),!1===ie.current&&fe(!1),C&&C(e)}),!1),je=(0,f.A)((function(e){Q.current||(Q.current=e.currentTarget),ae(e),!0===ie.current&&(fe(!0),D&&D(e)),N&&N(e)})),Ee=function(){var e=Q.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},Ie=i.useRef(!1),Te=(0,f.A)((function(e){E&&!Ie.current&&ce&&ee.current&&" "===e.key&&(Ie.current=!0,ee.current.stop(e,(function(){ee.current.start(e)}))),e.target===e.currentTarget&&Ee()&&" "===e.key&&e.preventDefault(),M&&M(e),e.target===e.currentTarget&&Ee()&&"Enter"===e.key&&!w&&(e.preventDefault(),k&&k(e))})),Ce=(0,f.A)((function(e){E&&" "===e.key&&ee.current&&ce&&!e.defaultPrevented&&(Ie.current=!1,ee.current.stop(e,(function(){ee.current.pulsate(e)}))),L&&L(e),k&&e.target===e.currentTarget&&Ee()&&" "===e.key&&!e.defaultPrevented&&k(e)})),ke=y;"button"===ke&&(X.href||X.to)&&(ke=T);var _e={};"button"===ke?(_e.type=void 0===$?"button":$,_e.disabled=w):(X.href||X.to||(_e.role="button"),w&&(_e["aria-disabled"]=w));var Re=(0,c.A)(t,le,Q);var Ne=(0,n.A)({},r,{centerRipple:h,component:y,disabled:w,disableRipple:x,disableTouchRipple:P,focusRipple:E,tabIndex:G,focusVisible:ce}),De=function(e){var t=e.disabled,r=e.focusVisible,n=e.focusVisibleClassName,o=e.classes,i={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,s.A)(i,Y,o);return r&&n&&(a.root+=" ".concat(n)),a}(Ne);return(0,A.jsxs)(ne,(0,n.A)({as:ke,className:(0,a.A)(De.root,g),ownerState:Ne,onBlur:Pe,onClick:k,onContextMenu:ye,onFocus:je,onKeyDown:Te,onKeyUp:Ce,onMouseDown:me,onMouseLeave:Oe,onMouseUp:we,onDragLeave:be,onTouchEnd:Se,onTouchMove:Ae,onTouchStart:xe,ref:Re,tabIndex:w?-1:G,type:$},_e,X,{children:[v,ve?(0,A.jsx)(Z,(0,n.A)({ref:te,center:h},q)):null]}))}))},14829:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(83032),u=r(87712),c=r(28477);const f=(0,u.A)((0,c.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var d=r(84147),p=r(71905),h=r(39926),v=r(83542),g=r(49801),m=r(95298),y=r(88842);function b(e){return(0,y.Ay)("MuiChip",e)}const w=(0,m.A)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function O(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],S=(0,g.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState,n=r.color,o=r.iconColor,i=r.clickable,a=r.onDelete,s=r.size,l=r.variant;return[O({},"& .".concat(w.avatar),t.avatar),O({},"& .".concat(w.avatar),t["avatar".concat((0,p.A)(s))]),O({},"& .".concat(w.avatar),t["avatarColor".concat((0,p.A)(n))]),O({},"& .".concat(w.icon),t.icon),O({},"& .".concat(w.icon),t["icon".concat((0,p.A)(s))]),O({},"& .".concat(w.icon),t["iconColor".concat((0,p.A)(o))]),O({},"& .".concat(w.deleteIcon),t.deleteIcon),O({},"& .".concat(w.deleteIcon),t["deleteIcon".concat((0,p.A)(s))]),O({},"& .".concat(w.deleteIcon),t["deleteIconColor".concat((0,p.A)(n))]),O({},"& .".concat(w.deleteIcon),t["deleteIcon".concat((0,p.A)(l),"Color").concat((0,p.A)(n))]),t.root,t["size".concat((0,p.A)(s))],t["color".concat((0,p.A)(n))],i&&t.clickable,i&&"default"!==n&&t["clickableColor".concat((0,p.A)(n),")")],a&&t.deletable,a&&"default"!==n&&t["deletableColor".concat((0,p.A)(n))],t[l],t["".concat(l).concat((0,p.A)(n))]]}})((function(e){var t=e.theme,r=e.ownerState,n="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,o.A)(O(O(O(O(O(O(O({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},"&.".concat(w.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"}),"& .".concat(w.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)}),"& .".concat(w.avatarColorPrimary),{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark}),"& .".concat(w.avatarColorSecondary),{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark}),"& .".concat(w.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)}),"& .".concat(w.icon),(0,o.A)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,o.A)({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},"default"!==r.color&&{color:"inherit"}))),"& .".concat(w.deleteIcon),(0,o.A)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,l.X4)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,l.X4)(t.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:t.vars?"rgba(".concat(t.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,l.X4)(t.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].contrastText}})),"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].main,color:(t.vars||t).palette[r.color].contrastText},r.onDelete&&O({},"&.".concat(w.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}),r.onDelete&&"default"!==r.color&&O({},"&.".concat(w.focusVisible),{backgroundColor:(t.vars||t).palette[r.color].dark}))}),(function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({},r.clickable&&O(O({userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}},"&.".concat(w.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}),"&:active",{boxShadow:(t.vars||t).shadows[1]}),r.clickable&&"default"!==r.color&&O({},"&:hover, &.".concat(w.focusVisible),{backgroundColor:(t.vars||t).palette[r.color].dark}))}),(function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({},"outlined"===r.variant&&O(O(O(O(O(O(O(O({backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700])},"&.".concat(w.clickable,":hover"),{backgroundColor:(t.vars||t).palette.action.hover}),"&.".concat(w.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"& .".concat(w.avatar),{marginLeft:4}),"& .".concat(w.avatarSmall),{marginLeft:2}),"& .".concat(w.icon),{marginLeft:4}),"& .".concat(w.iconSmall),{marginLeft:2}),"& .".concat(w.deleteIcon),{marginRight:5}),"& .".concat(w.deleteIconSmall),{marginRight:3}),"outlined"===r.variant&&"default"!==r.color&&O(O(O({color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,l.X4)(t.palette[r.color].main,.7))},"&.".concat(w.clickable,":hover"),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(t.palette[r.color].main,t.palette.action.hoverOpacity)}),"&.".concat(w.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,l.X4)(t.palette[r.color].main,t.palette.action.focusOpacity)}),"& .".concat(w.deleteIcon),{color:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,l.X4)(t.palette[r.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].main}}))})),A=(0,g.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var r=e.ownerState.size;return[t.label,t["label".concat((0,p.A)(r))]]}})((function(e){var t=e.ownerState;return(0,o.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));function P(e){return"Backspace"===e.key||"Delete"===e.key}const j=i.forwardRef((function(e,t){var r=(0,v.A)({props:e,name:"MuiChip"}),l=r.avatar,u=r.className,g=r.clickable,m=r.color,y=void 0===m?"default":m,w=r.component,O=r.deleteIcon,j=r.disabled,E=void 0!==j&&j,I=r.icon,T=r.label,C=r.onClick,k=r.onDelete,_=r.onKeyDown,R=r.onKeyUp,N=r.size,D=void 0===N?"medium":N,M=r.variant,L=void 0===M?"filled":M,z=r.tabIndex,W=r.skipFocusWhenDisabled,B=void 0!==W&&W,F=(0,n.A)(r,x),H=i.useRef(null),U=(0,d.A)(H,t),V=function(e){e.stopPropagation(),k&&k(e)},G=!(!1===g||!C)||g,q=G||k?h.A:w||"div",K=(0,o.A)({},r,{component:q,disabled:E,size:D,color:y,iconColor:i.isValidElement(I)&&I.props.color||y,onDelete:!!k,clickable:G,variant:L}),$=function(e){var t=e.classes,r=e.disabled,n=e.size,o=e.color,i=e.iconColor,a=e.onDelete,l=e.clickable,u=e.variant,c={root:["root",u,r&&"disabled","size".concat((0,p.A)(n)),"color".concat((0,p.A)(o)),l&&"clickable",l&&"clickableColor".concat((0,p.A)(o)),a&&"deletable",a&&"deletableColor".concat((0,p.A)(o)),"".concat(u).concat((0,p.A)(o))],label:["label","label".concat((0,p.A)(n))],avatar:["avatar","avatar".concat((0,p.A)(n)),"avatarColor".concat((0,p.A)(o))],icon:["icon","icon".concat((0,p.A)(n)),"iconColor".concat((0,p.A)(i))],deleteIcon:["deleteIcon","deleteIcon".concat((0,p.A)(n)),"deleteIconColor".concat((0,p.A)(o)),"deleteIcon".concat((0,p.A)(u),"Color").concat((0,p.A)(o))]};return(0,s.A)(c,b,t)}(K),Z=q===h.A?(0,o.A)({component:w||"div",focusVisibleClassName:$.focusVisible},k&&{disableRipple:!0}):{},X=null;k&&(X=O&&i.isValidElement(O)?i.cloneElement(O,{className:(0,a.A)(O.props.className,$.deleteIcon),onClick:V}):(0,c.jsx)(f,{className:(0,a.A)($.deleteIcon),onClick:V}));var Y=null;l&&i.isValidElement(l)&&(Y=i.cloneElement(l,{className:(0,a.A)($.avatar,l.props.className)}));var Q=null;return I&&i.isValidElement(I)&&(Q=i.cloneElement(I,{className:(0,a.A)($.icon,I.props.className)})),(0,c.jsxs)(S,(0,o.A)({as:q,className:(0,a.A)($.root,u),disabled:!(!G||!E)||void 0,onClick:C,onKeyDown:function(e){e.currentTarget===e.target&&P(e)&&e.preventDefault(),_&&_(e)},onKeyUp:function(e){e.currentTarget===e.target&&(k&&P(e)?k(e):"Escape"===e.key&&H.current&&H.current.blur()),R&&R(e)},ref:U,tabIndex:B&&E?-1:z,ownerState:K},Z,F,{children:[Y||Q,(0,c.jsx)(A,{className:(0,a.A)($.label),ownerState:K,children:T}),X]}))}))},36463:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(13389),l=r(10887),u=r(80408),c=r(49801),f=r(83542),d=r(88384),p=r(57479),h=r(77682),v=r(84147),g=r(95298),m=r(88842);function y(e){return(0,m.Ay)("MuiCollapse",e)}(0,g.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var b=r(28477);function w(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],x=(0,c.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===r.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===r.state&&(0,o.A)({height:"auto",overflow:"visible"},"horizontal"===r.orientation&&{width:"auto"}),"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&{visibility:"hidden"})})),S=(0,c.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:function(e,t){return t.wrapper}})((function(e){var t=e.ownerState;return(0,o.A)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),A=(0,c.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:function(e,t){return t.wrapperInner}})((function(e){var t=e.ownerState;return(0,o.A)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),P=i.forwardRef((function(e,t){var r=(0,f.A)({props:e,name:"MuiCollapse"}),c=r.addEndListener,g=r.children,m=r.className,P=r.collapsedSize,j=void 0===P?"0px":P,E=r.component,I=r.easing,T=r.in,C=r.onEnter,k=r.onEntered,_=r.onEntering,R=r.onExit,N=r.onExited,D=r.onExiting,M=r.orientation,L=void 0===M?"vertical":M,z=r.style,W=r.timeout,B=void 0===W?d.p0.standard:W,F=r.TransitionComponent,H=void 0===F?s.Ay:F,U=(0,n.A)(r,O),V=(0,o.A)({},r,{orientation:L,collapsedSize:j}),G=function(e){var t=e.orientation,r=e.classes,n={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,u.A)(n,y,r)}(V),q=(0,h.A)(),K=(0,l.A)(),$=i.useRef(null),Z=i.useRef(),X="number"==typeof j?"".concat(j,"px"):j,Y="horizontal"===L,Q=Y?"width":"height",J=i.useRef(null),ee=(0,v.A)(t,J),te=function(e){return function(t){if(e){var r=J.current;void 0===t?e(r):e(r,t)}}},re=function(){return $.current?$.current[Y?"clientWidth":"clientHeight"]:0},ne=te((function(e,t){$.current&&Y&&($.current.style.position="absolute"),e.style[Q]=X,C&&C(e,t)})),oe=te((function(e,t){var r=re();$.current&&Y&&($.current.style.position="");var n=(0,p.c)({style:z,timeout:B,easing:I},{mode:"enter"}),o=n.duration,i=n.easing;if("auto"===B){var a=q.transitions.getAutoHeightDuration(r);e.style.transitionDuration="".concat(a,"ms"),Z.current=a}else e.style.transitionDuration="string"==typeof o?o:"".concat(o,"ms");e.style[Q]="".concat(r,"px"),e.style.transitionTimingFunction=i,_&&_(e,t)})),ie=te((function(e,t){e.style[Q]="auto",k&&k(e,t)})),ae=te((function(e){e.style[Q]="".concat(re(),"px"),R&&R(e)})),se=te(N),le=te((function(e){var t=re(),r=(0,p.c)({style:z,timeout:B,easing:I},{mode:"exit"}),n=r.duration,o=r.easing;if("auto"===B){var i=q.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(i,"ms"),Z.current=i}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style[Q]=X,e.style.transitionTimingFunction=o,D&&D(e)}));return(0,b.jsx)(H,(0,o.A)({in:T,onEnter:ne,onEntered:ie,onEntering:oe,onExit:ae,onExited:se,onExiting:le,addEndListener:function(e){"auto"===B&&K.start(Z.current||0,e),c&&c(J.current,e)},nodeRef:J,timeout:"auto"===B?null:B},U,{children:function(e,t){return(0,b.jsx)(x,(0,o.A)({as:E,className:(0,a.A)(G.root,m,{entered:G.entered,exited:!T&&"0px"===X&&G.hidden}[e]),style:(0,o.A)(w({},Y?"minWidth":"minHeight",X),z),ref:ee},t,{ownerState:(0,o.A)({},V,{state:e}),children:(0,b.jsx)(S,{ownerState:(0,o.A)({},V,{state:e}),className:G.wrapper,ref:$,children:(0,b.jsx)(A,{ownerState:(0,o.A)({},V,{state:e}),className:G.wrapperInner,children:g})})}))}}))}));P.muiSupportAuto=!0;const j=P},15220:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,K:()=>i});var n=r(95298),o=r(88842);function i(e){return(0,o.Ay)("MuiDivider",e)}const a=(0,n.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},4832:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(63063),o=r(5550),i=r(78281),a=r(13389),s=r(77682),l=r(57479),u=r(84147),c=r(28477),f=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],d={entering:{opacity:1},entered:{opacity:1}};const p=i.forwardRef((function(e,t){var r=(0,s.A)(),p={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},h=e.addEndListener,v=e.appear,g=void 0===v||v,m=e.children,y=e.easing,b=e.in,w=e.onEnter,O=e.onEntered,x=e.onEntering,S=e.onExit,A=e.onExited,P=e.onExiting,j=e.style,E=e.timeout,I=void 0===E?p:E,T=e.TransitionComponent,C=void 0===T?a.Ay:T,k=(0,o.A)(e,f),_=i.useRef(null),R=(0,u.A)(_,m.ref,t),N=function(e){return function(t){if(e){var r=_.current;void 0===t?e(r):e(r,t)}}},D=N(x),M=N((function(e,t){(0,l.q)(e);var n=(0,l.c)({style:j,timeout:I,easing:y},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),w&&w(e,t)})),L=N(O),z=N(P),W=N((function(e){var t=(0,l.c)({style:j,timeout:I,easing:y},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),S&&S(e)})),B=N(A);return(0,c.jsx)(C,(0,n.A)({appear:g,in:b,nodeRef:_,onEnter:M,onEntered:L,onEntering:D,onExit:W,onExited:B,onExiting:z,addEndListener:function(e){h&&h(_.current,e)},timeout:I},k,{children:function(e,t){return i.cloneElement(m,(0,n.A)({style:(0,n.A)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},d[e],j,m.props.style),ref:R},t))}}))}))},49674:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(5550),o=r(63063),i=r(78281),a=r(74538),s=r(80408),l=r(15715),u=r(49801),c=r(83542),f=r(98920),d=r(28477);function p(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],m=(0,u.Ay)(l.Sh,{shouldForwardProp:function(e){return(0,u.ep)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat(h((0,l.WC)(e,t)),[!r.disableUnderline&&t.underline])}})((function(e){var t,r=e.theme,n=e.ownerState,i="light"===r.palette.mode,a=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,o.A)(p(p({position:"relative",backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s}}},"&.".concat(f.A.focused),{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s}),"&.".concat(f.A.disabled),{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:u}),!n.disableUnderline&&p(p(p(p(p({"&::after":{borderBottom:"2px solid ".concat(null==(t=(r.vars||r).palette[n.color||"primary"])?void 0:t.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"}},"&.".concat(f.A.focused,":after"),{transform:"scaleX(1) translateX(0)"}),"&.".concat(f.A.error),{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}}),"&::before",{borderBottom:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"}),"&:hover:not(.".concat(f.A.disabled,", .").concat(f.A.error,"):before"),{borderBottom:"1px solid ".concat((r.vars||r).palette.text.primary)}),"&.".concat(f.A.disabled,":before"),{borderBottomStyle:"dotted"}),n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,o.A)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),y=(0,u.Ay)(l.f3,{name:"MuiFilledInput",slot:"Input",overridesResolver:l.Oj})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&p({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),b=i.forwardRef((function(e,t){var r,i,u,p,h=(0,c.A)({props:e,name:"MuiFilledInput"}),v=h.components,b=void 0===v?{}:v,w=h.componentsProps,O=h.fullWidth,x=void 0!==O&&O,S=h.inputComponent,A=void 0===S?"input":S,P=h.multiline,j=void 0!==P&&P,E=h.slotProps,I=h.slots,T=void 0===I?{}:I,C=h.type,k=void 0===C?"text":C,_=(0,n.A)(h,g),R=(0,o.A)({},h,{fullWidth:x,inputComponent:A,multiline:j,type:k}),N=function(e){var t=e.classes,r={root:["root",!e.disableUnderline&&"underline"],input:["input"]},n=(0,s.A)(r,f.N,t);return(0,o.A)({},t,n)}(h),D={root:{ownerState:R},input:{ownerState:R}},M=(null!=E?E:w)?(0,a.A)(D,null!=E?E:w):D,L=null!=(r=null!=(i=T.root)?i:b.Root)?r:m,z=null!=(u=null!=(p=T.input)?p:b.Input)?u:y;return(0,d.jsx)(l.Ay,(0,o.A)({slots:{root:L,input:z},componentsProps:M,fullWidth:x,inputComponent:A,multiline:j,ref:t,type:k},_,{classes:N}))}));b.muiName="Input";const w=b},98920:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,N:()=>s});var n=r(63063),o=r(95298),i=r(88842),a=r(34640);function s(e){return(0,i.Ay)("MuiFilledInput",e)}const l=(0,n.A)({},a.A,(0,o.A)("MuiFilledInput",["root","underline","input"]))},48393:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(83542),u=r(49801),c=r(40702),f=r(71905),d=r(19985),p=r(25755),h=r(95298),v=r(88842);function g(e){return(0,v.Ay)("MuiFormControl",e)}(0,h.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var m=r(28477);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var w=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],O=(0,u.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,o.A)({},t.root,t["margin".concat((0,f.A)(r.margin))],r.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,o.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})}));const x=i.forwardRef((function(e,t){var r=(0,l.A)({props:e,name:"MuiFormControl"}),u=r.children,h=r.className,v=r.color,b=void 0===v?"primary":v,x=r.component,S=void 0===x?"div":x,A=r.disabled,P=void 0!==A&&A,j=r.error,E=void 0!==j&&j,I=r.focused,T=r.fullWidth,C=void 0!==T&&T,k=r.hiddenLabel,_=void 0!==k&&k,R=r.margin,N=void 0===R?"none":R,D=r.required,M=void 0!==D&&D,L=r.size,z=void 0===L?"medium":L,W=r.variant,B=void 0===W?"outlined":W,F=(0,n.A)(r,w),H=(0,o.A)({},r,{color:b,component:S,disabled:P,error:E,fullWidth:C,hiddenLabel:_,margin:N,required:M,size:z,variant:B}),U=function(e){var t=e.classes,r=e.margin,n=e.fullWidth,o={root:["root","none"!==r&&"margin".concat((0,f.A)(r)),n&&"fullWidth"]};return(0,s.A)(o,g,t)}(H),V=y(i.useState((function(){var e=!1;return u&&i.Children.forEach(u,(function(t){if((0,d.A)(t,["Input","Select"])){var r=(0,d.A)(t,["Select"])?t.props.input:t;r&&(0,c.gr)(r.props)&&(e=!0)}})),e})),2),G=V[0],q=V[1],K=y(i.useState((function(){var e=!1;return u&&i.Children.forEach(u,(function(t){(0,d.A)(t,["Input","Select"])&&((0,c.lq)(t.props,!0)||(0,c.lq)(t.props.inputProps,!0))&&(e=!0)})),e})),2),$=K[0],Z=K[1],X=y(i.useState(!1),2),Y=X[0],Q=X[1];P&&Y&&Q(!1);var J,ee=void 0===I||P?Y:I,te=i.useMemo((function(){return{adornedStart:G,setAdornedStart:q,color:b,disabled:P,error:E,filled:$,focused:ee,fullWidth:C,hiddenLabel:_,size:z,onBlur:function(){Q(!1)},onEmpty:function(){Z(!1)},onFilled:function(){Z(!0)},onFocus:function(){Q(!0)},registerEffect:J,required:M,variant:B}}),[G,b,P,E,$,ee,C,_,J,M,z,B]);return(0,m.jsx)(p.A.Provider,{value:te,children:(0,m.jsx)(O,(0,o.A)({as:S,ownerState:H,className:(0,a.A)(U.root,h),ref:t},F,{children:u}))})}))},25755:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(78281).createContext(void 0)},45833:(e,t,r)=>{"use strict";function n(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce((function(e,r){return e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e}),{})}r.d(t,{A:()=>n})},90211:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(78281),o=r(25755);function i(){return n.useContext(o.A)}},27380:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(63063),o=(r(78281),r(35195)),i=r(10901),a=r(28477);const s=function(e){var t=e.styles,r=e.themeId,n=e.defaultTheme,s=void 0===n?{}:n,l=(0,i.A)(s),u="function"==typeof t?t(r&&l[r]||l):t;return(0,a.jsx)(o.A,{styles:u})};var l=r(19036),u=r(12801);const c=function(e){return(0,a.jsx)(s,(0,n.A)({},e,{defaultTheme:l.A,themeId:u.A}))}},70368:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>k});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(38989),l=r(24972),u=r(80408),c=r(49801),f=r(83542),d=r(77682);const p=i.createContext();var h=r(95298),v=r(88842);function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e){return(0,v.Ay)("MuiGrid",e)}var b=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];const w=(0,h.A)("MuiGrid",["root","container","item","zeroMinWidth"].concat(g([0,1,2,3,4,5,6,7,8,9,10].map((function(e){return"spacing-xs-".concat(e)}))),g(["column-reverse","column","row-reverse","row"].map((function(e){return"direction-xs-".concat(e)}))),g(["nowrap","wrap-reverse","wrap"].map((function(e){return"wrap-xs-".concat(e)}))),g(b.map((function(e){return"grid-xs-".concat(e)}))),g(b.map((function(e){return"grid-sm-".concat(e)}))),g(b.map((function(e){return"grid-md-".concat(e)}))),g(b.map((function(e){return"grid-lg-".concat(e)}))),g(b.map((function(e){return"grid-xl-".concat(e)})))));var O=r(28477);function x(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var P=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function j(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function E(e){var t=e.breakpoints,r=e.values,n="";Object.keys(r).forEach((function(e){""===n&&0!==r[e]&&(n=e)}));var o=Object.keys(t).sort((function(e,r){return t[e]-t[r]}));return o.slice(0,o.indexOf(n))}var I=(0,c.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState,n=r.container,o=r.direction,i=r.item,a=r.spacing,s=r.wrap,l=r.zeroMinWidth,u=r.breakpoints,c=[];n&&(c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r["spacing-xs-".concat(String(e))]];var n=[];return t.forEach((function(t){var o=e[t];Number(o)>0&&n.push(r["spacing-".concat(t,"-").concat(String(o))])})),n}(a,u,t));var f=[];return u.forEach((function(e){var n=r[e];n&&f.push(t["grid-".concat(e,"-").concat(String(n))])})),[t.root,n&&t.container,i&&t.item,l&&t.zeroMinWidth].concat(x(c),["row"!==o&&t["direction-xs-".concat(String(o))],"wrap"!==s&&t["wrap-xs-".concat(String(s))]],f)}})((function(e){var t=e.ownerState;return(0,o.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var t=e.theme,r=e.ownerState,n=(0,s.kW)({values:r.direction,breakpoints:t.breakpoints.values});return(0,s.NI)({theme:t},n,(function(e){var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(w.item)]={maxWidth:"none"}),t}))}),(function(e){var t=e.theme,r=e.ownerState,n=r.container,o=r.rowSpacing,i={};if(n&&0!==o){var a,l=(0,s.kW)({values:o,breakpoints:t.breakpoints.values});"object"==typeof l&&(a=E({breakpoints:t.breakpoints.values,values:l})),i=(0,s.NI)({theme:t},l,(function(e,r){var n,o=t.spacing(e);return"0px"!==o?A({marginTop:"-".concat(j(o))},"& > .".concat(w.item),{paddingTop:j(o)}):null!=(n=a)&&n.includes(r)?{}:A({marginTop:0},"& > .".concat(w.item),{paddingTop:0})}))}return i}),(function(e){var t=e.theme,r=e.ownerState,n=r.container,o=r.columnSpacing,i={};if(n&&0!==o){var a,l=(0,s.kW)({values:o,breakpoints:t.breakpoints.values});"object"==typeof l&&(a=E({breakpoints:t.breakpoints.values,values:l})),i=(0,s.NI)({theme:t},l,(function(e,r){var n,o=t.spacing(e);return"0px"!==o?A({width:"calc(100% + ".concat(j(o),")"),marginLeft:"-".concat(j(o))},"& > .".concat(w.item),{paddingLeft:j(o)}):null!=(n=a)&&n.includes(r)?{}:A({width:"100%",marginLeft:0},"& > .".concat(w.item),{paddingLeft:0})}))}return i}),(function(e){var t,r=e.theme,n=e.ownerState;return r.breakpoints.keys.reduce((function(e,i){var a={};if(n[i]&&(t=n[i]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var l=(0,s.kW)({values:n.columns,breakpoints:r.breakpoints.values}),u="object"==typeof l?l[i]:l;if(null==u)return e;var c="".concat(Math.round(t/u*1e8)/1e6,"%"),f={};if(n.container&&n.item&&0!==n.columnSpacing){var d=r.spacing(n.columnSpacing);if("0px"!==d){var p="calc(".concat(c," + ").concat(j(d),")");f={flexBasis:p,maxWidth:p}}}a=(0,o.A)({flexBasis:c,flexGrow:0,maxWidth:c},f)}return 0===r.breakpoints.values[i]?Object.assign(e,a):e[r.breakpoints.up(i)]=a,e}),{})}));var T=function(e){var t=e.classes,r=e.container,n=e.direction,o=e.item,i=e.spacing,a=e.wrap,s=e.zeroMinWidth,l=e.breakpoints,c=[];r&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return["spacing-xs-".concat(String(e))];var r=[];return t.forEach((function(t){var n=e[t];if(Number(n)>0){var o="spacing-".concat(t,"-").concat(String(n));r.push(o)}})),r}(i,l));var f=[];l.forEach((function(t){var r=e[t];r&&f.push("grid-".concat(t,"-").concat(String(r)))}));var d={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth"].concat(x(c),["row"!==n&&"direction-xs-".concat(String(n)),"wrap"!==a&&"wrap-xs-".concat(String(a))],f)};return(0,u.A)(d,y,t)},C=i.forwardRef((function(e,t){var r=(0,f.A)({props:e,name:"MuiGrid"}),s=(0,d.A)().breakpoints,u=(0,l.A)(r),c=u.className,h=u.columns,v=u.columnSpacing,g=u.component,m=void 0===g?"div":g,y=u.container,b=void 0!==y&&y,w=u.direction,x=void 0===w?"row":w,S=u.item,A=void 0!==S&&S,j=u.rowSpacing,E=u.spacing,C=void 0===E?0:E,k=u.wrap,_=void 0===k?"wrap":k,R=u.zeroMinWidth,N=void 0!==R&&R,D=(0,n.A)(u,P),M=j||C,L=v||C,z=i.useContext(p),W=b?h||12:z,B={},F=(0,o.A)({},D);s.keys.forEach((function(e){null!=D[e]&&(B[e]=D[e],delete F[e])}));var H=(0,o.A)({},u,{columns:W,container:b,direction:x,item:A,rowSpacing:M,columnSpacing:L,wrap:_,zeroMinWidth:N,spacing:C},B,{breakpoints:s.keys}),U=T(H);return(0,O.jsx)(p.Provider,{value:W,children:(0,O.jsx)(I,(0,o.A)({ownerState:H,className:(0,a.A)(U.root,c),as:m,ref:t},F))})}));const k=C},31102:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(63063),o=r(5550),i=r(78281),a=r(10887),s=r(13389),l=r(77682),u=r(57479),c=r(84147),f=r(28477),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var h={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},v="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),g=i.forwardRef((function(e,t){var r=e.addEndListener,g=e.appear,m=void 0===g||g,y=e.children,b=e.easing,w=e.in,O=e.onEnter,x=e.onEntered,S=e.onEntering,A=e.onExit,P=e.onExited,j=e.onExiting,E=e.style,I=e.timeout,T=void 0===I?"auto":I,C=e.TransitionComponent,k=void 0===C?s.Ay:C,_=(0,o.A)(e,d),R=(0,a.A)(),N=i.useRef(),D=(0,l.A)(),M=i.useRef(null),L=(0,c.A)(M,y.ref,t),z=function(e){return function(t){if(e){var r=M.current;void 0===t?e(r):e(r,t)}}},W=z(S),B=z((function(e,t){(0,u.q)(e);var r,n=(0,u.c)({style:E,timeout:T,easing:b},{mode:"enter"}),o=n.duration,i=n.delay,a=n.easing;"auto"===T?(r=D.transitions.getAutoHeightDuration(e.clientHeight),N.current=r):r=o,e.style.transition=[D.transitions.create("opacity",{duration:r,delay:i}),D.transitions.create("transform",{duration:v?r:.666*r,delay:i,easing:a})].join(","),O&&O(e,t)})),F=z(x),H=z(j),U=z((function(e){var t,r=(0,u.c)({style:E,timeout:T,easing:b},{mode:"exit"}),n=r.duration,o=r.delay,i=r.easing;"auto"===T?(t=D.transitions.getAutoHeightDuration(e.clientHeight),N.current=t):t=n,e.style.transition=[D.transitions.create("opacity",{duration:t,delay:o}),D.transitions.create("transform",{duration:v?t:.666*t,delay:v?o:o||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=p(.75),A&&A(e)})),V=z(P);return(0,f.jsx)(k,(0,n.A)({appear:m,in:w,nodeRef:M,onEnter:B,onEntered:F,onEntering:W,onExit:U,onExited:V,onExiting:H,addEndListener:function(e){"auto"===T&&R.start(N.current||0,e),r&&r(M.current,e)},timeout:"auto"===T?null:T},_,{children:function(e,t){return i.cloneElement(y,(0,n.A)({style:(0,n.A)({opacity:0,transform:p(.75),visibility:"exited"!==e||w?void 0:"hidden"},h[e],E,y.props.style),ref:L},t))}}))}));g.muiSupportAuto=!0;const m=g},33237:(e,t,r)=>{"use strict";r.d(t,{A:()=>O});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(83032),u=r(49801),c=r(83542),f=r(39926),d=r(71905),p=r(95298),h=r(88842);function v(e){return(0,h.Ay)("MuiIconButton",e)}const g=(0,p.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var m=r(28477);function y(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=["edge","children","className","color","disabled","disableFocusRipple","size"],w=(0,u.Ay)(f.A,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"default"!==r.color&&t["color".concat((0,d.A)(r.color))],r.edge&&t["edge".concat((0,d.A)(r.edge))],t["size".concat((0,d.A)(r.size))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(function(e){var t,r=e.theme,n=e.ownerState,i=null==(t=(r.vars||r).palette)?void 0:t[n.color];return(0,o.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,o.A)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,o.A)({},i&&{backgroundColor:r.vars?"rgba(".concat(i.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,l.X4)(i.main,r.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:r.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:r.typography.pxToRem(28)},y({},"&.".concat(g.disabled),{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}))}));const O=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiIconButton"}),i=r.edge,l=void 0!==i&&i,u=r.children,f=r.className,p=r.color,h=void 0===p?"default":p,g=r.disabled,y=void 0!==g&&g,O=r.disableFocusRipple,x=void 0!==O&&O,S=r.size,A=void 0===S?"medium":S,P=(0,n.A)(r,b),j=(0,o.A)({},r,{edge:l,color:h,disabled:y,disableFocusRipple:x,size:A}),E=function(e){var t=e.classes,r=e.disabled,n=e.color,o=e.edge,i=e.size,a={root:["root",r&&"disabled","default"!==n&&"color".concat((0,d.A)(n)),o&&"edge".concat((0,d.A)(o)),"size".concat((0,d.A)(i))]};return(0,s.A)(a,v,t)}(j);return(0,m.jsx)(w,(0,o.A)({className:(0,a.A)(E.root,f),centerRipple:!0,focusRipple:!x,disabled:y,ref:t},P,{ownerState:j,children:u}))}))},22046:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(5550),o=r(63063),i=r(78281),a=r(80408),s=r(74538),l=r(15715),u=r(49801),c=r(83542),f=r(56756),d=r(28477);function p(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],m=(0,u.Ay)(l.Sh,{shouldForwardProp:function(e){return(0,u.ep)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat(h((0,l.WC)(e,t)),[!r.disableUnderline&&t.underline])}})((function(e){var t=e.theme,r=e.ownerState,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,o.A)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&p(p(p(p(p({"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"}},"&.".concat(f.A.focused,":after"),{transform:"scaleX(1) translateX(0)"}),"&.".concat(f.A.error),{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}}),"&::before",{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"}),"&:hover:not(.".concat(f.A.disabled,", .").concat(f.A.error,"):before"),{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}}),"&.".concat(f.A.disabled,":before"),{borderBottomStyle:"dotted"}))})),y=(0,u.Ay)(l.f3,{name:"MuiInput",slot:"Input",overridesResolver:l.Oj})({}),b=i.forwardRef((function(e,t){var r,i,u,p,h=(0,c.A)({props:e,name:"MuiInput"}),v=h.disableUnderline,b=h.components,w=void 0===b?{}:b,O=h.componentsProps,x=h.fullWidth,S=void 0!==x&&x,A=h.inputComponent,P=void 0===A?"input":A,j=h.multiline,E=void 0!==j&&j,I=h.slotProps,T=h.slots,C=void 0===T?{}:T,k=h.type,_=void 0===k?"text":k,R=(0,n.A)(h,g),N=function(e){var t=e.classes,r={root:["root",!e.disableUnderline&&"underline"],input:["input"]},n=(0,a.A)(r,f.B,t);return(0,o.A)({},t,n)}(h),D={root:{ownerState:{disableUnderline:v}}},M=(null!=I?I:O)?(0,s.A)(null!=I?I:O,D):D,L=null!=(r=null!=(i=C.root)?i:w.Root)?r:m,z=null!=(u=null!=(p=C.input)?p:w.Input)?u:y;return(0,d.jsx)(l.Ay,(0,o.A)({slots:{root:L,input:z},slotProps:M,fullWidth:S,inputComponent:P,multiline:E,ref:t,type:_},R,{classes:N}))}));b.muiName="Input";const w=b},56756:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,B:()=>s});var n=r(63063),o=r(95298),i=r(88842),a=r(34640);function s(e){return(0,i.Ay)("MuiInput",e)}const l=(0,n.A)({},a.A,(0,o.A)("MuiInput",["root","underline","input"]))},15715:(e,t,r)=>{"use strict";r.d(t,{f3:()=>L,Sh:()=>M,Ay:()=>W,Oj:()=>D,WC:()=>N});var n=r(5550),o=r(63063),i=r(75730),a=r(78281),s=r(20997),l=r(1244),u=r(52562),c=r(78006),f=r(91586),d=r(28477),p=["onChange","maxRows","minRows","style","value"];function h(e){return parseInt(e,10)||0}var v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};var g=a.forwardRef((function(e,t){var r=e.onChange,i=e.maxRows,s=e.minRows,g=void 0===s?1:s,m=e.style,y=e.value,b=(0,n.A)(e,p),w=a.useRef(null!=y).current,O=a.useRef(null),x=(0,l.A)(t,O),S=a.useRef(null),A=a.useCallback((function(){var t=O.current,r=(0,u.A)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};var n=S.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var o=r.boxSizing,a=h(r.paddingBottom)+h(r.paddingTop),s=h(r.borderBottomWidth)+h(r.borderTopWidth),l=n.scrollHeight;n.value="x";var c=n.scrollHeight,f=l;return g&&(f=Math.max(Number(g)*c,f)),i&&(f=Math.min(Number(i)*c,f)),{outerHeightStyle:(f=Math.max(f,c))+("border-box"===o?a+s:0),overflowing:Math.abs(f-l)<=1}}),[i,g,e.placeholder]),P=a.useCallback((function(){var e=A();if(null!=(t=e)&&0!==Object.keys(t).length&&(0!==t.outerHeightStyle||t.overflowing)){var t,r=O.current;r.style.height="".concat(e.outerHeightStyle,"px"),r.style.overflow=e.overflowing?"hidden":""}}),[A]);(0,c.A)((function(){var e,t,r=function(){P()},n=(0,f.A)(r),o=O.current,i=(0,u.A)(o);return i.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(r)).observe(o),function(){n.clear(),cancelAnimationFrame(e),i.removeEventListener("resize",n),t&&t.disconnect()}}),[A,P]),(0,c.A)((function(){P()}));return(0,d.jsxs)(a.Fragment,{children:[(0,d.jsx)("textarea",(0,o.A)({value:y,onChange:function(e){w||P(),r&&r(e)},ref:x,rows:g,style:m},b)),(0,d.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,o.A)({},v,m,{paddingTop:0,paddingBottom:0})})]})})),m=r(67714),y=r(80408),b=r(45833),w=r(25755),O=r(90211),x=r(49801),S=r(83542),A=r(71905),P=r(84147),j=r(97091),E=r(27380),I=r(40702),T=r(34640);function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],N=function(e,t){var r=e.ownerState;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,A.A)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},D=function(e,t){var r=e.ownerState;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},M=(0,x.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:N})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({},t.typography.body1,_({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(T.A.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),r.multiline&&(0,o.A)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),L=(0,x.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})((function(e){var t=e.theme,r=e.ownerState,n="light"===t.palette.mode,i=(0,o.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,o.A)(_(_(_({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},"label[data-shrink=false] + .".concat(T.A.formControl," &"),{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s}),"&.".concat(T.A.disabled),{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled}),"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),z=(0,d.jsx)(E.A,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}});const W=a.forwardRef((function(e,t){var r,l=(0,S.A)({props:e,name:"MuiInputBase"}),u=l["aria-describedby"],c=l.autoComplete,f=l.autoFocus,p=l.className,h=l.components,v=void 0===h?{}:h,x=l.componentsProps,E=void 0===x?{}:x,k=l.defaultValue,_=l.disabled,N=l.disableInjectingGlobalStyles,D=l.endAdornment,W=l.fullWidth,B=void 0!==W&&W,F=l.id,H=l.inputComponent,U=void 0===H?"input":H,V=l.inputProps,G=void 0===V?{}:V,q=l.inputRef,K=l.maxRows,$=l.minRows,Z=l.multiline,X=void 0!==Z&&Z,Y=l.name,Q=l.onBlur,J=l.onChange,ee=l.onClick,te=l.onFocus,re=l.onKeyDown,ne=l.onKeyUp,oe=l.placeholder,ie=l.readOnly,ae=l.renderSuffix,se=l.rows,le=l.slotProps,ue=void 0===le?{}:le,ce=l.slots,fe=void 0===ce?{}:ce,de=l.startAdornment,pe=l.type,he=void 0===pe?"text":pe,ve=l.value,ge=(0,n.A)(l,R),me=null!=G.value?G.value:ve,ye=a.useRef(null!=me).current,be=a.useRef(),we=a.useCallback((function(e){0}),[]),Oe=(0,P.A)(be,q,G.ref,we),xe=C(a.useState(!1),2),Se=xe[0],Ae=xe[1],Pe=(0,O.A)();var je=(0,b.A)({props:l,muiFormControl:Pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});je.focused=Pe?Pe.focused:Se,a.useEffect((function(){!Pe&&_&&Se&&(Ae(!1),Q&&Q())}),[Pe,_,Se,Q]);var Ee=Pe&&Pe.onFilled,Ie=Pe&&Pe.onEmpty,Te=a.useCallback((function(e){(0,I.lq)(e)?Ee&&Ee():Ie&&Ie()}),[Ee,Ie]);(0,j.A)((function(){ye&&Te({value:me})}),[me,Te,ye]);a.useEffect((function(){Te(be.current)}),[]);var Ce=U,ke=G;X&&"input"===Ce&&(ke=se?(0,o.A)({type:void 0,minRows:se,maxRows:se},ke):(0,o.A)({type:void 0,maxRows:K,minRows:$},ke),Ce=g);a.useEffect((function(){Pe&&Pe.setAdornedStart(Boolean(de))}),[Pe,de]);var _e=(0,o.A)({},l,{color:je.color||"primary",disabled:je.disabled,endAdornment:D,error:je.error,focused:je.focused,formControl:Pe,fullWidth:B,hiddenLabel:je.hiddenLabel,multiline:X,size:je.size,startAdornment:de,type:he}),Re=function(e){var t=e.classes,r=e.color,n=e.disabled,o=e.error,i=e.endAdornment,a=e.focused,s=e.formControl,l=e.fullWidth,u=e.hiddenLabel,c=e.multiline,f=e.readOnly,d=e.size,p=e.startAdornment,h=e.type,v={root:["root","color".concat((0,A.A)(r)),n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",d&&"medium"!==d&&"size".concat((0,A.A)(d)),c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===d&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return(0,y.A)(v,T.g,t)}(_e),Ne=fe.root||v.Root||M,De=ue.root||E.root||{},Me=fe.input||v.Input||L;return ke=(0,o.A)({},ke,null!=(r=ue.input)?r:E.input),(0,d.jsxs)(a.Fragment,{children:[!N&&z,(0,d.jsxs)(Ne,(0,o.A)({},De,!(0,m.g)(Ne)&&{ownerState:(0,o.A)({},_e,De.ownerState)},{ref:t,onClick:function(e){be.current&&e.currentTarget===e.target&&be.current.focus(),ee&&ee(e)}},ge,{className:(0,s.A)(Re.root,De.className,p,ie&&"MuiInputBase-readOnly"),children:[de,(0,d.jsx)(w.A.Provider,{value:null,children:(0,d.jsx)(Me,(0,o.A)({ownerState:_e,"aria-invalid":je.error,"aria-describedby":u,autoComplete:c,autoFocus:f,defaultValue:k,disabled:je.disabled,id:F,onAnimationStart:function(e){Te("mui-auto-fill-cancel"===e.animationName?be.current:{value:"x"})},name:Y,placeholder:oe,readOnly:ie,required:je.required,rows:se,value:me,onKeyDown:re,onKeyUp:ne,type:he},ke,!(0,m.g)(Me)&&{as:Ce,ownerState:(0,o.A)({},_e,ke.ownerState)},{ref:Oe,className:(0,s.A)(Re.input,ke.className,ie&&"MuiInputBase-readOnly"),onBlur:function(e){Q&&Q(e),G.onBlur&&G.onBlur(e),Pe&&Pe.onBlur?Pe.onBlur(e):Ae(!1)},onChange:function(e){if(!ye){var t=e.target||be.current;if(null==t)throw new Error((0,i.A)(1));Te({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];G.onChange&&G.onChange.apply(G,[e].concat(n)),J&&J.apply(void 0,[e].concat(n))},onFocus:function(e){je.disabled?e.stopPropagation():(te&&te(e),G.onFocus&&G.onFocus(e),Pe&&Pe.onFocus?Pe.onFocus(e):Ae(!0))}}))}),D,ae?ae((0,o.A)({},je,{startAdornment:de})):null]}))]})}))},34640:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,g:()=>i});var n=r(95298),o=r(88842);function i(e){return(0,o.Ay)("MuiInputBase",e)}const a=(0,n.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},40702:(e,t,r)=>{"use strict";function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}r.d(t,{gr:()=>i,lq:()=>o})},70256:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(71905),u=r(49801),c=r(83542),f=r(86386),d=r(84147),p=r(48281),h=r(95298),v=r(88842);function g(e){return(0,v.Ay)("MuiLink",e)}const m=(0,h.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var y=r(65620),b=r(83032),w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};const O=function(e){var t=e.theme,r=e.ownerState,n=function(e){return w[e]||e}(r.color),o=(0,y.Yn)(t,"palette.".concat(n),!1)||r.color,i=(0,y.Yn)(t,"palette.".concat(n,"Channel"));return"vars"in t&&i?"rgba(".concat(i," / 0.4)"):(0,b.X4)(o,.4)};var x=r(28477);function S(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.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)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],T=(0,u.Ay)(p.A,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["underline".concat((0,l.A)(r.underline))],"button"===r.component&&t.button]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,o.A)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:O({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&E({position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(m.focusVisible),{outline:"auto"}))}));const C=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiLink"}),u=r.className,p=r.color,h=void 0===p?"primary":p,v=r.component,m=void 0===v?"a":v,y=r.onBlur,b=r.onFocus,O=r.TypographyClasses,P=r.underline,j=void 0===P?"always":P,E=r.variant,C=void 0===E?"inherit":E,k=r.sx,_=(0,n.A)(r,I),R=(0,f.A)(),N=R.isFocusVisibleRef,D=R.onBlur,M=R.onFocus,L=R.ref,z=A(i.useState(!1),2),W=z[0],B=z[1],F=(0,d.A)(t,L),H=(0,o.A)({},r,{color:h,component:m,focusVisible:W,underline:j,variant:C}),U=function(e){var t=e.classes,r=e.component,n=e.focusVisible,o=e.underline,i={root:["root","underline".concat((0,l.A)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,s.A)(i,g,t)}(H);return(0,x.jsx)(T,(0,o.A)({color:h,className:(0,a.A)(U.root,u),classes:O,component:m,onBlur:function(e){D(e),!1===N.current&&B(!1),y&&y(e)},onFocus:function(e){M(e),!0===N.current&&B(!0),b&&b(e)},ref:F,ownerState:H,variant:C,sx:[].concat(S(Object.keys(w).includes(h)?[]:[{color:h}]),S(Array.isArray(k)?k:[k]))},_))}))},21812:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(49801),u=r(83542),c=r(8001),f=r(95298),d=r(88842);function p(e){return(0,d.Ay)("MuiList",e)}(0,f.A)("MuiList",["root","padding","dense","subheader"]);var h=r(28477),v=["children","className","component","dense","disablePadding","subheader"],g=(0,l.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,o.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})}));const m=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiList"}),l=r.children,f=r.className,d=r.component,m=void 0===d?"ul":d,y=r.dense,b=void 0!==y&&y,w=r.disablePadding,O=void 0!==w&&w,x=r.subheader,S=(0,n.A)(r,v),A=i.useMemo((function(){return{dense:b}}),[b]),P=(0,o.A)({},r,{component:m,dense:b,disablePadding:O}),j=function(e){var t=e.classes,r={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,s.A)(r,p,t)}(P);return(0,h.jsx)(c.A.Provider,{value:A,children:(0,h.jsxs)(g,(0,o.A)({as:m,className:(0,a.A)(j.root,f),ref:t,ownerState:P},S,{children:[x,l]}))})}))},8001:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(78281).createContext({})},64663:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>R});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(67714),l=r(80408),u=r(83032),c=r(49801),f=r(83542),d=r(39926),p=r(19985),h=r(97091),v=r(84147),g=r(8001),m=r(95298),y=r(88842);function b(e){return(0,y.Ay)("MuiListItem",e)}const w=(0,m.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const O=(0,m.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function x(e){return(0,y.Ay)("MuiListItemSecondaryAction",e)}(0,m.A)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=r(28477),A=["className"],P=(0,c.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.disableGutters&&t.disableGutters]}})((function(e){var t=e.ownerState;return(0,o.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),j=i.forwardRef((function(e,t){var r=(0,f.A)({props:e,name:"MuiListItemSecondaryAction"}),s=r.className,u=(0,n.A)(r,A),c=i.useContext(g.A),d=(0,o.A)({},r,{disableGutters:c.disableGutters}),p=function(e){var t=e.disableGutters,r=e.classes,n={root:["root",t&&"disableGutters"]};return(0,l.A)(n,x,r)}(d);return(0,S.jsx)(P,(0,o.A)({className:(0,a.A)(p.root,s),ownerState:d,ref:t},u))}));j.muiName="ListItemSecondaryAction";const E=j;function I(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T=["className"],C=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],k=(0,c.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&(0,o.A)({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&I({},"& > .".concat(O.root),{paddingRight:48}),I(I(I({},"&.".concat(w.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"&.".concat(w.selected),I({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)},"&.".concat(w.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})),"&.".concat(w.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"flex-start"===r.alignItems&&{alignItems:"flex-start"},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},r.button&&I({transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(w.selected,":hover"),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}),r.hasSecondaryAction&&{paddingRight:48})})),_=(0,c.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:function(e,t){return t.container}})({position:"relative"});const R=i.forwardRef((function(e,t){var r=(0,f.A)({props:e,name:"MuiListItem"}),u=r.alignItems,c=void 0===u?"center":u,m=r.autoFocus,y=void 0!==m&&m,O=r.button,x=void 0!==O&&O,A=r.children,P=r.className,j=r.component,I=r.components,R=void 0===I?{}:I,N=r.componentsProps,D=void 0===N?{}:N,M=r.ContainerComponent,L=void 0===M?"li":M,z=r.ContainerProps,W=(void 0===z?{}:z).className,B=r.dense,F=void 0!==B&&B,H=r.disabled,U=void 0!==H&&H,V=r.disableGutters,G=void 0!==V&&V,q=r.disablePadding,K=void 0!==q&&q,$=r.divider,Z=void 0!==$&&$,X=r.focusVisibleClassName,Y=r.secondaryAction,Q=r.selected,J=void 0!==Q&&Q,ee=r.slotProps,te=void 0===ee?{}:ee,re=r.slots,ne=void 0===re?{}:re,oe=(0,n.A)(r.ContainerProps,T),ie=(0,n.A)(r,C),ae=i.useContext(g.A),se=i.useMemo((function(){return{dense:F||ae.dense||!1,alignItems:c,disableGutters:G}}),[c,ae.dense,F,G]),le=i.useRef(null);(0,h.A)((function(){y&&le.current&&le.current.focus()}),[y]);var ue=i.Children.toArray(A),ce=ue.length&&(0,p.A)(ue[ue.length-1],["ListItemSecondaryAction"]),fe=(0,o.A)({},r,{alignItems:c,autoFocus:y,button:x,dense:se.dense,disabled:U,disableGutters:G,disablePadding:K,divider:Z,hasSecondaryAction:ce,selected:J}),de=function(e){var t=e.alignItems,r=e.button,n=e.classes,o=e.dense,i=e.disabled,a={root:["root",o&&"dense",!e.disableGutters&&"gutters",!e.disablePadding&&"padding",e.divider&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",e.hasSecondaryAction&&"secondaryAction",e.selected&&"selected"],container:["container"]};return(0,l.A)(a,b,n)}(fe),pe=(0,v.A)(le,t),he=ne.root||R.Root||k,ve=te.root||D.root||{},ge=(0,o.A)({className:(0,a.A)(de.root,ve.className,P),disabled:U},ie),me=j||"li";return x&&(ge.component=j||"div",ge.focusVisibleClassName=(0,a.A)(w.focusVisible,X),me=d.A),ce?(me=ge.component||j?me:"div","li"===L&&("li"===me?me="div":"li"===ge.component&&(ge.component="div")),(0,S.jsx)(g.A.Provider,{value:se,children:(0,S.jsxs)(_,(0,o.A)({as:L,className:(0,a.A)(de.container,W),ref:pe,ownerState:fe},oe,{children:[(0,S.jsx)(he,(0,o.A)({},ve,!(0,s.g)(he)&&{as:me,ownerState:(0,o.A)({},fe,ve.ownerState)},ge,{children:ue})),ue.pop()]}))})):(0,S.jsx)(g.A.Provider,{value:se,children:(0,S.jsxs)(he,(0,o.A)({},ve,{as:me,ref:pe},!(0,s.g)(he)&&{ownerState:(0,o.A)({},fe,ve.ownerState)},ge,{children:[ue,Y&&(0,S.jsx)(E,{children:Y})]}))})}))},2160:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(49801),u=r(83542),c=r(30530),f=r(8001),d=r(28477),p=["className"],h=(0,l.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})}));const v=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiListItemIcon"}),l=r.className,v=(0,n.A)(r,p),g=i.useContext(f.A),m=(0,o.A)({},r,{alignItems:g.alignItems}),y=function(e){var t=e.alignItems,r=e.classes,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.A)(n,c.f,r)}(m);return(0,d.jsx)(h,(0,o.A)({className:(0,a.A)(y.root,l),ownerState:m,ref:t},v))}))},30530:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,f:()=>i});var n=r(95298),o=r(88842);function i(e){return(0,o.Ay)("MuiListItemIcon",e)}const a=(0,n.A)("MuiListItemIcon",["root","alignItemsFlexStart"])},50596:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(48281),u=r(8001),c=r(83542),f=r(49801),d=r(80798),p=r(28477);function h(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],g=(0,f.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[h({},"& .".concat(d.A.primary),t.primary),h({},"& .".concat(d.A.secondary),t.secondary),t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((function(e){var t=e.ownerState;return(0,o.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})}));const m=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiListItemText"}),f=r.children,h=r.className,m=r.disableTypography,y=void 0!==m&&m,b=r.inset,w=void 0!==b&&b,O=r.primary,x=r.primaryTypographyProps,S=r.secondary,A=r.secondaryTypographyProps,P=(0,n.A)(r,v),j=i.useContext(u.A).dense,E=null!=O?O:f,I=S,T=(0,o.A)({},r,{disableTypography:y,inset:w,primary:!!E,secondary:!!I,dense:j}),C=function(e){var t=e.classes,r=e.inset,n=e.primary,o=e.secondary,i={root:["root",r&&"inset",e.dense&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,s.A)(i,d.b,t)}(T);return null==E||E.type===l.A||y||(E=(0,p.jsx)(l.A,(0,o.A)({variant:j?"body2":"body1",className:C.primary,component:null!=x&&x.variant?void 0:"span",display:"block"},x,{children:E}))),null==I||I.type===l.A||y||(I=(0,p.jsx)(l.A,(0,o.A)({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},A,{children:I}))),(0,p.jsxs)(g,(0,o.A)({className:(0,a.A)(C.root,h),ownerState:T,ref:t},P,{children:[E,I]}))}))},80798:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,b:()=>i});var n=r(95298),o=r(88842);function i(e){return(0,o.Ay)("MuiListItemText",e)}const a=(0,n.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},84774:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(49801),u=r(83542),c=r(71905),f=r(95298),d=r(88842);function p(e){return(0,d.Ay)("MuiListSubheader",e)}(0,f.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var h=r(28477),v=["className","color","component","disableGutters","disableSticky","inset"],g=(0,l.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"default"!==r.color&&t["color".concat((0,c.A)(r.color))],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===r.color&&{color:(t.vars||t).palette.primary.main},"inherit"===r.color&&{color:"inherit"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.inset&&{paddingLeft:72},!r.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),m=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiListSubheader"}),i=r.className,l=r.color,f=void 0===l?"default":l,d=r.component,m=void 0===d?"li":d,y=r.disableGutters,b=void 0!==y&&y,w=r.disableSticky,O=void 0!==w&&w,x=r.inset,S=void 0!==x&&x,A=(0,n.A)(r,v),P=(0,o.A)({},r,{color:f,component:m,disableGutters:b,disableSticky:O,inset:S}),j=function(e){var t=e.classes,r=e.color,n=e.disableGutters,o=e.inset,i=e.disableSticky,a={root:["root","default"!==r&&"color".concat((0,c.A)(r)),!n&&"gutters",o&&"inset",!i&&"sticky"]};return(0,s.A)(a,p,t)}(P);return(0,h.jsx)(g,(0,o.A)({as:m,className:(0,a.A)(j.root,i),ref:t,ownerState:P},A))}));m.muiSkipListHighlight=!0;const y=m},19170:(e,t,r)=>{"use strict";r.d(t,{A:()=>G});var n=r(63063),o=r(5550),i=r(78281),a=(r(38428),r(20997)),s=r(80408),l=r(17080),u=r(39701),c=r(12491),f=r(67714),d=r(49801),p=r(83542),h=r(27572),v=r(48945),g=r(94944),m=r(84147),y=r(31102),b=r(79100),w=r(15312),O=r(95298),x=r(88842);function S(e){return(0,x.Ay)("MuiPopover",e)}(0,O.A)("MuiPopover",["root","paper"]);var A=r(28477);function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E=["onEntering"],I=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],T=["slotProps"];function C(e,t){var r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function k(e,t){var r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function _(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function R(e){return"function"==typeof e?e():e}var N=(0,d.Ay)(b.A,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),D=(0,d.Ay)(w.A,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});const M=i.forwardRef((function(e,t){var r,u,c,d=(0,p.A)({props:e,name:"MuiPopover"}),b=d.action,w=d.anchorEl,O=d.anchorOrigin,x=void 0===O?{vertical:"top",horizontal:"left"}:O,j=d.anchorPosition,M=d.anchorReference,L=void 0===M?"anchorEl":M,z=d.children,W=d.className,B=d.container,F=d.elevation,H=void 0===F?8:F,U=d.marginThreshold,V=void 0===U?16:U,G=d.open,q=d.PaperProps,K=void 0===q?{}:q,$=d.slots,Z=d.slotProps,X=d.transformOrigin,Y=void 0===X?{vertical:"top",horizontal:"left"}:X,Q=d.TransitionComponent,J=void 0===Q?y.A:Q,ee=d.transitionDuration,te=void 0===ee?"auto":ee,re=d.TransitionProps,ne=(void 0===re?{}:re).onEntering,oe=d.disableScrollLock,ie=void 0!==oe&&oe,ae=(0,o.A)(d.TransitionProps,E),se=(0,o.A)(d,I),le=null!=(r=null==Z?void 0:Z.paper)?r:K,ue=i.useRef(),ce=(0,m.A)(ue,le.ref),fe=(0,n.A)({},d,{anchorOrigin:x,anchorReference:L,elevation:H,marginThreshold:V,externalPaperSlotProps:le,transformOrigin:Y,TransitionComponent:J,transitionDuration:te,TransitionProps:ae}),de=function(e){var t=e.classes;return(0,s.A)({root:["root"],paper:["paper"]},S,t)}(fe),pe=i.useCallback((function(){if("anchorPosition"===L)return j;var e=R(w),t=(e&&1===e.nodeType?e:(0,v.A)(ue.current).body).getBoundingClientRect();return{top:t.top+C(t,x.vertical),left:t.left+k(t,x.horizontal)}}),[w,x.horizontal,x.vertical,j,L]),he=i.useCallback((function(e){return{vertical:C(e,Y.vertical),horizontal:k(e,Y.horizontal)}}),[Y.horizontal,Y.vertical]),ve=i.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},r=he(t);if("none"===L)return{top:null,left:null,transformOrigin:_(r)};var n=pe(),o=n.top-r.vertical,i=n.left-r.horizontal,a=o+t.height,s=i+t.width,l=(0,g.A)(R(w)),u=l.innerHeight-V,c=l.innerWidth-V;if(null!==V&&o<V){var f=o-V;o-=f,r.vertical+=f}else if(null!==V&&a>u){var d=a-u;o-=d,r.vertical+=d}if(null!==V&&i<V){var p=i-V;i-=p,r.horizontal+=p}else if(s>c){var h=s-c;i-=h,r.horizontal+=h}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:_(r)}}),[w,L,pe,he,V]),ge=P(i.useState(G),2),me=ge[0],ye=ge[1],be=i.useCallback((function(){var e=ue.current;if(e){var t=ve(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ye(!0)}}),[ve]);i.useEffect((function(){return ie&&window.addEventListener("scroll",be),function(){return window.removeEventListener("scroll",be)}}),[w,ie,be]);i.useEffect((function(){G&&be()})),i.useImperativeHandle(b,(function(){return G?{updatePosition:function(){be()}}:null}),[G,be]),i.useEffect((function(){if(G){var e=(0,h.A)((function(){be()})),t=(0,g.A)(w);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[w,G,be]);var we=te;"auto"!==te||J.muiSupportAuto||(we=void 0);var Oe=B||(w?(0,v.A)(R(w)).body:void 0),xe=null!=(u=null==$?void 0:$.root)?u:N,Se=null!=(c=null==$?void 0:$.paper)?c:D,Ae=(0,l.Q)({elementType:Se,externalSlotProps:(0,n.A)({},le,{style:me?le.style:(0,n.A)({},le.style,{opacity:0})}),additionalProps:{elevation:H,ref:ce},ownerState:fe,className:(0,a.A)(de.paper,null==le?void 0:le.className)}),Pe=(0,l.Q)({elementType:xe,externalSlotProps:(null==Z?void 0:Z.root)||{},externalForwardedProps:se,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:Oe,open:G},ownerState:fe,className:(0,a.A)(de.root,W)}),je=Pe.slotProps,Ee=(0,o.A)(Pe,T);return(0,A.jsx)(xe,(0,n.A)({},Ee,!(0,f.g)(xe)&&{slotProps:je,disableScrollLock:ie},{children:(0,A.jsx)(J,(0,n.A)({appear:!0,in:G,onEntering:function(e,t){ne&&ne(e,t),be()},onExited:function(){ye(!1)},timeout:we},ae,{children:(0,A.jsx)(Se,(0,n.A)({},Ae,{children:z}))}))}))}));function L(e){return(0,x.Ay)("MuiMenu",e)}(0,O.A)("MuiMenu",["root","paper","list"]);var z=["onEntering"],W=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],B={vertical:"top",horizontal:"right"},F={vertical:"top",horizontal:"left"},H=(0,d.Ay)(M,{shouldForwardProp:function(e){return(0,d.ep)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),U=(0,d.Ay)(D,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),V=(0,d.Ay)(c.A,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0});const G=i.forwardRef((function(e,t){var r,c,f=(0,p.A)({props:e,name:"MuiMenu"}),d=f.autoFocus,h=void 0===d||d,v=f.children,g=f.className,m=f.disableAutoFocusItem,y=void 0!==m&&m,b=f.MenuListProps,w=void 0===b?{}:b,O=f.onClose,x=f.open,S=f.PaperProps,P=void 0===S?{}:S,j=f.PopoverClasses,E=f.transitionDuration,I=void 0===E?"auto":E,T=f.TransitionProps,C=(void 0===T?{}:T).onEntering,k=f.variant,_=void 0===k?"selectedMenu":k,R=f.slots,N=void 0===R?{}:R,D=f.slotProps,M=void 0===D?{}:D,G=(0,o.A)(f.TransitionProps,z),q=(0,o.A)(f,W),K=(0,u.I)(),$=(0,n.A)({},f,{autoFocus:h,disableAutoFocusItem:y,MenuListProps:w,onEntering:C,PaperProps:P,transitionDuration:I,TransitionProps:G,variant:_}),Z=function(e){var t=e.classes;return(0,s.A)({root:["root"],paper:["paper"],list:["list"]},L,t)}($),X=h&&!y&&x,Y=i.useRef(null),Q=-1;i.Children.map(v,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===_&&e.props.selected||-1===Q)&&(Q=t))}));var J=null!=(r=N.paper)?r:U,ee=null!=(c=M.paper)?c:P,te=(0,l.Q)({elementType:N.root,externalSlotProps:M.root,ownerState:$,className:[Z.root,g]}),re=(0,l.Q)({elementType:J,externalSlotProps:ee,ownerState:$,className:Z.paper});return(0,A.jsx)(H,(0,n.A)({onClose:O,anchorOrigin:{vertical:"bottom",horizontal:K?"right":"left"},transformOrigin:K?B:F,slots:{paper:J,root:N.root},slotProps:{root:te,paper:re},open:x,ref:t,transitionDuration:I,TransitionProps:(0,n.A)({onEntering:function(e,t){Y.current&&Y.current.adjustStyleForScrollbar(e,{direction:K?"rtl":"ltr"}),C&&C(e,t)}},G),ownerState:$},q,{classes:j,children:(0,A.jsx)(V,(0,n.A)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),O&&O(e,"tabKeyDown"))},actions:Y,autoFocus:h&&(-1===Q||y),autoFocusItem:X,variant:_},w,{className:(0,a.A)(Z.list,w.className),children:v}))}))}))},21196:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(83032),u=r(49801),c=r(83542),f=r(8001),d=r(39926),p=r(97091),h=r(84147),v=r(15220),g=r(30530),m=r(80798),y=r(95298),b=r(88842);function w(e){return(0,b.Ay)("MuiMenuItem",e)}const O=(0,y.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var x=r(28477);function S(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],P=(0,u.Ay)(d.A,{shouldForwardProp:function(e){return(0,u.ep)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},S(S(S(S(S(S(S(S(S({"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(O.selected),S({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)},"&.".concat(O.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})),"&.".concat(O.selected,":hover"),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}),"&.".concat(O.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"&.".concat(O.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"& + .".concat(v.A.root),{marginTop:t.spacing(1),marginBottom:t.spacing(1)}),"& + .".concat(v.A.inset),{marginLeft:52}),"& .".concat(m.A.root),{marginTop:0,marginBottom:0}),"& .".concat(m.A.inset),{paddingLeft:36}),"& .".concat(g.A.root),{minWidth:36}),!r.dense&&S({},t.breakpoints.up("sm"),{minHeight:"auto"}),r.dense&&(0,o.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,S({},"& .".concat(g.A.root," svg"),{fontSize:"1.25rem"})))}));const j=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiMenuItem"}),l=r.autoFocus,u=void 0!==l&&l,d=r.component,v=void 0===d?"li":d,g=r.dense,m=void 0!==g&&g,y=r.divider,b=void 0!==y&&y,O=r.disableGutters,S=void 0!==O&&O,j=r.focusVisibleClassName,E=r.role,I=void 0===E?"menuitem":E,T=r.tabIndex,C=r.className,k=(0,n.A)(r,A),_=i.useContext(f.A),R=i.useMemo((function(){return{dense:m||_.dense||!1,disableGutters:S}}),[_.dense,m,S]),N=i.useRef(null);(0,p.A)((function(){u&&N.current&&N.current.focus()}),[u]);var D,M=(0,o.A)({},r,{dense:R.dense,divider:b,disableGutters:S}),L=function(e){var t=e.disabled,r=e.dense,n=e.divider,i=e.disableGutters,a=e.selected,l=e.classes,u={root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},c=(0,s.A)(u,w,l);return(0,o.A)({},l,c)}(r),z=(0,h.A)(N,t);return r.disabled||(D=void 0!==T?T:-1),(0,x.jsx)(f.A.Provider,{value:R,children:(0,x.jsx)(P,(0,o.A)({ref:z,role:I,tabIndex:D,component:v,focusVisibleClassName:(0,a.A)(L.focusVisible,j),className:(0,a.A)(L.root,C)},k,{ownerState:M,classes:L}))})}))},12491:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(63063),o=r(5550),i=r(78281),a=(r(38428),r(48945)),s=r(21812);const l=r(35306).A;var u=r(84147),c=r(97091),f=r(28477),d=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function p(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function h(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function v(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function g(e,t,r,n,o,i){for(var a=!1,s=o(e,t,!!t&&r);s;){if(s===e.firstChild){if(a)return!1;a=!0}var l=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&v(s,i)&&!l)return s.focus(),!0;s=o(e,s,r)}return!1}const m=i.forwardRef((function(e,t){var r=e.actions,m=e.autoFocus,y=void 0!==m&&m,b=e.autoFocusItem,w=void 0!==b&&b,O=e.children,x=e.className,S=e.disabledItemsFocusable,A=void 0!==S&&S,P=e.disableListWrap,j=void 0!==P&&P,E=e.onKeyDown,I=e.variant,T=void 0===I?"selectedMenu":I,C=(0,o.A)(e,d),k=i.useRef(null),_=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,c.A)((function(){y&&k.current.focus()}),[y]),i.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var r=t.direction,n=!k.current.style.width;if(e.clientHeight<k.current.clientHeight&&n){var o="".concat(l((0,a.A)(e)),"px");k.current.style["rtl"===r?"paddingLeft":"paddingRight"]=o,k.current.style.width="calc(100% + ".concat(o,")")}return k.current}}}),[]);var R=(0,u.A)(k,t),N=-1;i.Children.forEach(O,(function(e,t){i.isValidElement(e)?(e.props.disabled||("selectedMenu"===T&&e.props.selected||-1===N)&&(N=t),N===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(N+=1)>=O.length&&(N=-1)):N===t&&(N+=1)>=O.length&&(N=-1)}));var D=i.Children.map(O,(function(e,t){if(t===N){var r={};return w&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===T&&(r.tabIndex=0),i.cloneElement(e,r)}return e}));return(0,f.jsx)(s.A,(0,n.A)({role:"menu",ref:R,className:x,onKeyDown:function(e){var t=k.current,r=e.key,n=(0,a.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),g(t,n,j,A,p);else if("ArrowUp"===r)e.preventDefault(),g(t,n,j,A,h);else if("Home"===r)e.preventDefault(),g(t,null,j,A,p);else if("End"===r)e.preventDefault(),g(t,null,j,A,h);else if(1===r.length){var o=_.current,i=r.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);var l=n&&!o.repeating&&v(n,o);o.previousKeyMatched&&(l||g(t,n,!1,A,p,o))?e.preventDefault():o.previousKeyMatched=!1}E&&E(e)},tabIndex:y?0:-1},C,{children:D}))}))},79100:(e,t,r)=>{"use strict";r.d(t,{A:()=>V});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(17080),l=r(1244),u=r(92266),c=r(32540),f=r(47790),d=r(87677),p=r(52562),h=r(35306);function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function m(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function w(e){return parseInt((0,p.A)(e).getComputedStyle(e).paddingRight,10)||0}function O(e,t,r,n,o){var i=[t,r].concat(m(n));[].forEach.call(e.children,(function(e){var t=-1===i.indexOf(e),r=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&b(e,o)}))}function x(e,t){var r=-1;return e.some((function(e,n){return!!t(e)&&(r=n,!0)})),r}function S(e,t){var r=[],n=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,u.A)(e);return t.body===e?(0,p.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var o=(0,h.A)((0,u.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(w(n)+o,"px");var i=(0,u.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(i,(function(e){r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(w(e)+o,"px")}))}var a;if(n.parentNode instanceof DocumentFragment)a=(0,u.A)(n).body;else{var s=n.parentElement,l=(0,p.A)(n);a="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===l.getComputedStyle(s).overflowY?s:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){r.forEach((function(e){var t=e.value,r=e.el,n=e.property;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var j=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}var t,r,n;return t=e,r=[{key:"add",value:function(e,t){var r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&b(e.modalRef,!1);var n=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);O(t,e.mount,e.modalRef,n,!0);var o=x(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}},{key:"mount",value:function(e,t){var r=x(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),n=this.containers[r];n.restore||(n.restore=S(n,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var n=x(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&b(e.modalRef,t),O(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{var i=o.modals[o.modals.length-1];i.modalRef&&b(i.modalRef,!1)}return r}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}],r&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}());function E(e){var t=e.container,r=e.disableEscapeKeyDown,n=void 0!==r&&r,a=e.disableScrollLock,s=void 0!==a&&a,p=e.manager,h=void 0===p?j:p,v=e.closeAfterTransition,g=void 0!==v&&v,m=e.onTransitionEnter,y=e.onTransitionExited,w=e.children,O=e.onClose,x=e.open,S=e.rootRef,P=i.useRef({}),E=i.useRef(null),I=i.useRef(null),T=(0,l.A)(I,S),C=A(i.useState(!x),2),k=C[0],_=C[1],R=function(e){return!!e&&e.props.hasOwnProperty("in")}(w),N=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(N=!1);var D=function(){return P.current.modalRef=I.current,P.current.mount=E.current,P.current},M=function(){h.mount(D(),{disableScrollLock:s}),I.current&&(I.current.scrollTop=0)},L=(0,c.A)((function(){var e=function(e){return"function"==typeof e?e():e}(t)||(0,u.A)(E.current).body;h.add(D(),e),I.current&&M()})),z=i.useCallback((function(){return h.isTopModal(D())}),[h]),W=(0,c.A)((function(e){E.current=e,e&&(x&&z()?M():I.current&&b(I.current,N))})),B=i.useCallback((function(){h.remove(D(),N)}),[N,h]);i.useEffect((function(){return function(){B()}}),[B]),i.useEffect((function(){x?L():R&&g||B()}),[x,B,R,g,L]);var F=function(e){return function(t){var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&z()&&(n||(t.stopPropagation(),O&&O(t,"escapeKeyDown")))}},H=function(e){return function(t){var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&O&&O(t,"backdropClick")}};return{getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,d.h)(e);delete r.onTransitionEnter,delete r.onTransitionExited;var n=(0,o.A)({},r,t);return(0,o.A)({role:"presentation"},n,{onKeyDown:F(n),ref:T})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.A)({"aria-hidden":!0},e,{onClick:H(e),open:x})},getTransitionProps:function(){return{onEnter:(0,f.A)((function(){_(!1),m&&m()}),null==w?void 0:w.props.onEnter),onExited:(0,f.A)((function(){_(!0),y&&y(),g&&B()}),null==w?void 0:w.props.onExited)}},rootRef:T,portalRef:W,isTopModal:z,exited:k,hasTransition:R}}var I=r(80408),T=r(28477),C=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function k(e){var t=[],r=[];return Array.from(e.querySelectorAll(C)).forEach((function(e,n){var o=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function _(){return!0}function R(e){var t=e.children,r=e.disableAutoFocus,n=void 0!==r&&r,o=e.disableEnforceFocus,a=void 0!==o&&o,s=e.disableRestoreFocus,c=void 0!==s&&s,f=e.getTabbable,d=void 0===f?k:f,p=e.isEnabled,h=void 0===p?_:p,v=e.open,g=i.useRef(!1),m=i.useRef(null),y=i.useRef(null),b=i.useRef(null),w=i.useRef(null),O=i.useRef(!1),x=i.useRef(null),S=(0,l.A)(t.ref,x),A=i.useRef(null);i.useEffect((function(){v&&x.current&&(O.current=!n)}),[n,v]),i.useEffect((function(){if(v&&x.current){var e=(0,u.A)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),O.current&&x.current.focus()),function(){c||(b.current&&b.current.focus&&(g.current=!0,b.current.focus()),b.current=null)}}}),[v]),i.useEffect((function(){if(v&&x.current){var e=(0,u.A)(x.current),t=function(t){A.current=t,!a&&h()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(g.current=!0,y.current&&y.current.focus())},r=function(){var t=x.current;if(null!==t)if(e.hasFocus()&&h()&&!g.current){if(!(t.contains(e.activeElement)||a&&e.activeElement!==m.current&&e.activeElement!==y.current)){if(e.activeElement!==w.current)w.current=null;else if(null!==w.current)return;if(O.current){var r=[];if(e.activeElement!==m.current&&e.activeElement!==y.current||(r=d(x.current)),r.length>0){var n,o,i=Boolean((null==(n=A.current)?void 0:n.shiftKey)&&"Tab"===(null==(o=A.current)?void 0:o.key)),s=r[0],l=r[r.length-1];"string"!=typeof s&&"string"!=typeof l&&(i?l.focus():s.focus())}else t.focus()}}}else g.current=!1};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);var n=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return function(){clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}}),[n,a,c,h,v,d]);var P=function(e){null===b.current&&(b.current=e.relatedTarget),O.current=!0};return(0,T.jsxs)(i.Fragment,{children:[(0,T.jsx)("div",{tabIndex:v?0:-1,onFocus:P,ref:m,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:S,onFocus:function(e){null===b.current&&(b.current=e.relatedTarget),O.current=!0,w.current=e.target;var r=t.props.onFocus;r&&r(e)}}),(0,T.jsx)("div",{tabIndex:v?0:-1,onFocus:P,ref:y,"data-testid":"sentinelEnd"})]})}var N=r(52579),D=r(49801),M=r(83542),L=r(83136),z=r(95298),W=r(88842);function B(e){return(0,W.Ay)("MuiModal",e)}(0,z.A)("MuiModal",["root","hidden","backdrop"]);var F=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],H=(0,D.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.open&&r.exited&&t.hidden]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),U=(0,D.Ay)(L.A,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1});const V=i.forwardRef((function(e,t){var r,l,u,c,f,d,p=(0,M.A)({name:"MuiModal",props:e}),h=p.BackdropComponent,v=void 0===h?U:h,g=p.BackdropProps,m=p.className,y=p.closeAfterTransition,b=void 0!==y&&y,w=p.children,O=p.container,x=p.component,S=p.components,A=void 0===S?{}:S,P=p.componentsProps,j=void 0===P?{}:P,C=p.disableAutoFocus,k=void 0!==C&&C,_=p.disableEnforceFocus,D=void 0!==_&&_,L=p.disableEscapeKeyDown,z=void 0!==L&&L,W=p.disablePortal,V=void 0!==W&&W,G=p.disableRestoreFocus,q=void 0!==G&&G,K=p.disableScrollLock,$=void 0!==K&&K,Z=p.hideBackdrop,X=void 0!==Z&&Z,Y=p.keepMounted,Q=void 0!==Y&&Y,J=p.onBackdropClick,ee=p.open,te=p.slotProps,re=p.slots,ne=(0,n.A)(p,F),oe=(0,o.A)({},p,{closeAfterTransition:b,disableAutoFocus:k,disableEnforceFocus:D,disableEscapeKeyDown:z,disablePortal:V,disableRestoreFocus:q,disableScrollLock:$,hideBackdrop:X,keepMounted:Q}),ie=E((0,o.A)({},oe,{rootRef:t})),ae=ie.getRootProps,se=ie.getBackdropProps,le=ie.getTransitionProps,ue=ie.portalRef,ce=ie.isTopModal,fe=ie.exited,de=ie.hasTransition,pe=(0,o.A)({},oe,{exited:fe}),he=function(e){var t=e.open,r=e.exited,n=e.classes,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,I.A)(o,B,n)}(pe),ve={};if(void 0===w.props.tabIndex&&(ve.tabIndex="-1"),de){var ge=le(),me=ge.onEnter,ye=ge.onExited;ve.onEnter=me,ve.onExited=ye}var be=null!=(r=null!=(l=null==re?void 0:re.root)?l:A.Root)?r:H,we=null!=(u=null!=(c=null==re?void 0:re.backdrop)?c:A.Backdrop)?u:v,Oe=null!=(f=null==te?void 0:te.root)?f:j.root,xe=null!=(d=null==te?void 0:te.backdrop)?d:j.backdrop,Se=(0,s.Q)({elementType:be,externalSlotProps:Oe,externalForwardedProps:ne,getSlotProps:ae,additionalProps:{ref:t,as:x},ownerState:pe,className:(0,a.A)(m,null==Oe?void 0:Oe.className,null==he?void 0:he.root,!pe.open&&pe.exited&&(null==he?void 0:he.hidden))}),Ae=(0,s.Q)({elementType:we,externalSlotProps:xe,additionalProps:g,getSlotProps:function(e){return se((0,o.A)({},e,{onClick:function(t){J&&J(t),null!=e&&e.onClick&&e.onClick(t)}}))},className:(0,a.A)(null==xe?void 0:xe.className,null==g?void 0:g.className,null==he?void 0:he.backdrop),ownerState:pe});return Q||ee||de&&!fe?(0,T.jsx)(N.Z,{ref:ue,container:O,disablePortal:V,children:(0,T.jsxs)(be,(0,o.A)({},Se,{children:[!X&&v?(0,T.jsx)(we,(0,o.A)({},Ae)):null,(0,T.jsx)(R,{disableEnforceFocus:D,disableAutoFocus:k,disableRestoreFocus:q,isEnabled:ce,open:ee,children:i.cloneElement(w,ve)})]}))}):null}))},82118:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n,o=r(5550),i=r(63063),a=r(78281),s=r(80408),l=r(49801),u=r(28477),c=["children","classes","className","label","notched"],f=(0,l.Ay)("fieldset",{shouldForwardProp:l.ep})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),d=(0,l.Ay)("legend",{shouldForwardProp:l.ep})((function(e){var t=e.ownerState,r=e.theme;return(0,i.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,i.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));var p=r(90211),h=r(45833),v=r(48576),g=r(15715),m=r(83542);function y(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],w=(0,l.Ay)(g.Sh,{shouldForwardProp:function(e){return(0,l.ep)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:g.WC})((function(e){var t=e.theme,r=e.ownerState,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.A)(y(y(y(y(y({position:"relative",borderRadius:(t.vars||t).shape.borderRadius},"&:hover .".concat(v.A.notchedOutline),{borderColor:(t.vars||t).palette.text.primary}),"@media (hover: none)",y({},"&:hover .".concat(v.A.notchedOutline),{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n})),"&.".concat(v.A.focused," .").concat(v.A.notchedOutline),{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2}),"&.".concat(v.A.error," .").concat(v.A.notchedOutline),{borderColor:(t.vars||t).palette.error.main}),"&.".concat(v.A.disabled," .").concat(v.A.notchedOutline),{borderColor:(t.vars||t).palette.action.disabled}),r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,i.A)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),O=(0,l.Ay)((function(e){var t=e.className,r=e.label,a=e.notched,s=(0,o.A)(e,c),l=null!=r&&""!==r,p=(0,i.A)({},e,{notched:a,withLabel:l});return(0,u.jsx)(f,(0,i.A)({"aria-hidden":!0,className:t,ownerState:p},s,{children:(0,u.jsx)(d,{ownerState:p,children:l?(0,u.jsx)("span",{children:r}):n||(n=(0,u.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),x=(0,l.Ay)(g.f3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:g.Oj})((function(e){var t=e.theme,r=e.ownerState;return(0,i.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&y({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),S=a.forwardRef((function(e,t){var r,n,l,c,f,d=(0,m.A)({props:e,name:"MuiOutlinedInput"}),y=d.components,S=void 0===y?{}:y,A=d.fullWidth,P=void 0!==A&&A,j=d.inputComponent,E=void 0===j?"input":j,I=d.label,T=d.multiline,C=void 0!==T&&T,k=d.notched,_=d.slots,R=void 0===_?{}:_,N=d.type,D=void 0===N?"text":N,M=(0,o.A)(d,b),L=function(e){var t=e.classes,r=(0,s.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v.v,t);return(0,i.A)({},t,r)}(d),z=(0,p.A)(),W=(0,h.A)({props:d,muiFormControl:z,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),B=(0,i.A)({},d,{color:W.color||"primary",disabled:W.disabled,error:W.error,focused:W.focused,formControl:z,fullWidth:P,hiddenLabel:W.hiddenLabel,multiline:C,size:W.size,type:D}),F=null!=(r=null!=(n=R.root)?n:S.Root)?r:w,H=null!=(l=null!=(c=R.input)?c:S.Input)?l:x;return(0,u.jsx)(g.Ay,(0,i.A)({slots:{root:F,input:H},renderSuffix:function(e){return(0,u.jsx)(O,{ownerState:B,className:L.notchedOutline,label:null!=I&&""!==I&&W.required?f||(f=(0,u.jsxs)(a.Fragment,{children:[I," ","*"]})):I,notched:void 0!==k?k:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:P,inputComponent:E,multiline:C,ref:t,type:D},M,{classes:(0,i.A)({},L,{notchedOutline:null})}))}));S.muiName="Input";const A=S},48576:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,v:()=>s});var n=r(63063),o=r(95298),i=r(88842),a=r(34640);function s(e){return(0,i.Ay)("MuiOutlinedInput",e)}const l=(0,n.A)({},a.A,(0,o.A)("MuiOutlinedInput",["root","notchedOutline","input"]))},15312:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(83032),u=r(49801);const c=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};var f=r(83542),d=r(95298),p=r(88842);function h(e){return(0,p.Ay)("MuiPaper",e)}(0,d.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var v=r(28477),g=["className","component","elevation","square","variant"],m=(0,u.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,o.A)({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===n.variant&&(0,o.A)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.X4)("#fff",c(n.elevation)),", ").concat((0,l.X4)("#fff",c(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))}));const y=i.forwardRef((function(e,t){var r=(0,f.A)({props:e,name:"MuiPaper"}),i=r.className,l=r.component,u=void 0===l?"div":l,c=r.elevation,d=void 0===c?1:c,p=r.square,y=void 0!==p&&p,b=r.variant,w=void 0===b?"elevation":b,O=(0,n.A)(r,g),x=(0,o.A)({},r,{component:u,elevation:d,square:y,variant:w}),S=function(e){var t=e.square,r=e.elevation,n=e.variant,o=e.classes,i={root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]};return(0,s.A)(i,h,o)}(x);return(0,v.jsx)(m,(0,o.A)({as:u,ownerState:x,className:(0,a.A)(S.root,i),ref:t},O))}))},61161:(e,t,r)=>{"use strict";r.d(t,{A:()=>Qe});var n=r(63063),o=r(5550),i=r(78281),a=r(1244),s=r(78006),l=r(92266);function u(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){return e instanceof u(e).Element||e instanceof Element}function f(e){return e instanceof u(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof u(e).ShadowRoot||e instanceof ShadowRoot)}var p=Math.max,h=Math.min,v=Math.round;function g(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(g())}function y(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&f(e)&&(o=e.offsetWidth>0&&v(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&v(n.height)/e.offsetHeight||1);var a=(c(e)?u(e):window).visualViewport,s=!m()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,d=(n.top+(s&&a?a.offsetTop:0))/i,p=n.width/o,h=n.height/i;return{width:p,height:h,top:d,right:l+p,bottom:d+h,left:l,x:l,y:d}}function b(e){var t=u(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return y(O(e)).left+b(e).scrollLeft}function S(e){return u(e).getComputedStyle(e)}function A(e){var t=S(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function P(e,t,r){void 0===r&&(r=!1);var n,o,i=f(t),a=f(t)&&function(e){var t=e.getBoundingClientRect(),r=v(t.width)/e.offsetWidth||1,n=v(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=O(t),l=y(e,a,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&(("body"!==w(t)||A(s))&&(c=(n=t)!==u(n)&&f(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:b(n)),f(t)?((d=y(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=x(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function j(e){var t=y(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function E(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||O(e)}function I(e){return["html","body","#document"].indexOf(w(e))>=0?e.ownerDocument.body:f(e)&&A(e)?e:I(E(e))}function T(e,t){var r;void 0===t&&(t=[]);var n=I(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=u(n),a=o?[i].concat(i.visualViewport||[],A(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(T(E(a)))}function C(e){return["table","td","th"].indexOf(w(e))>=0}function k(e){return f(e)&&"fixed"!==S(e).position?e.offsetParent:null}function _(e){for(var t=u(e),r=k(e);r&&C(r)&&"static"===S(r).position;)r=k(r);return r&&("html"===w(r)||"body"===w(r)&&"static"===S(r).position)?t:r||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&f(e)&&"fixed"===S(e).position)return null;var r=E(e);for(d(r)&&(r=r.host);f(r)&&["html","body"].indexOf(w(r))<0;){var n=S(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var R="top",N="bottom",D="right",M="left",L="auto",z=[R,N,D,M],W="start",B="end",F="clippingParents",H="viewport",U="popper",V="reference",G=z.reduce((function(e,t){return e.concat([t+"-"+W,t+"-"+B])}),[]),q=[].concat(z,[L]).reduce((function(e,t){return e.concat([t,t+"-"+W,t+"-"+B])}),[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var Z={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Y(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Z:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,f={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:c(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var a,u,p=function(e){var t=$(e);return K.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((a=[].concat(n,s.options.modifiers),u=a.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=p.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:f,options:n}),a=function(){};l.push(i||a)}})),f.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(X(t,r)){s.rects={reference:P(t,_(r),"fixed"===s.options.strategy),popper:j(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,c=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:c,instance:f})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!X(e,t))return f;function d(){l.forEach((function(e){return e()})),l=[]}return f.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),f}}var Q={passive:!0};function J(e){return e.split("-")[0]}function ee(e){return e.split("-")[1]}function te(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function re(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?J(o):null,a=o?ee(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case R:t={x:s,y:r.y-n.height};break;case N:t={x:s,y:r.y+r.height};break;case D:t={x:r.x+r.width,y:l};break;case M:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=i?te(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case W:t[u]=t[u]-(r[c]/2-n[c]/2);break;case B:t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,g=a.y,m=void 0===g?0:g,y="function"==typeof f?f({x:h,y:m}):{x:h,y:m};h=y.x,m=y.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),x=M,A=R,P=window;if(c){var j=_(r),E="clientHeight",I="clientWidth";if(j===u(r)&&"static"!==S(j=O(r)).position&&"absolute"===s&&(E="scrollHeight",I="scrollWidth"),o===R||(o===M||o===D)&&i===B)A=N,m-=(d&&j===P&&P.visualViewport?P.visualViewport.height:j[E])-n.height,m*=l?1:-1;if(o===M||(o===R||o===N)&&i===B)x=D,h-=(d&&j===P&&P.visualViewport?P.visualViewport.width:j[I])-n.width,h*=l?1:-1}var T,C=Object.assign({position:s},c&&ne),k=!0===f?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:v(r*o)/o||0,y:v(n*o)/o||0}}({x:h,y:m},u(r)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},C,((T={})[A]=w?"0":"",T[x]=b?"0":"",T.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},C,((t={})[A]=w?m+"px":"",t[x]=b?h+"px":"",t.transform="",t))}const ie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=q.reduce((function(e,r){return e[r]=function(e,t,r){var n=J(e),o=[M,R].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[M,D].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}};var ae={left:"right",right:"left",bottom:"top",top:"bottom"};function se(e){return e.replace(/left|right|bottom|top/g,(function(e){return ae[e]}))}var le={start:"end",end:"start"};function ue(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ce(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&d(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function de(e,t,r){return t===H?fe(function(e,t){var r=u(e),n=O(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=m();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+x(e),y:l}}(e,r)):c(t)?function(e,t){var r=y(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):fe(function(e){var t,r=O(e),n=b(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=p(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=p(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+x(e),l=-n.scrollTop;return"rtl"===S(o||r).direction&&(s+=p(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(O(e)))}function pe(e,t,r,n){var o="clippingParents"===t?function(e){var t=T(E(e)),r=["absolute","fixed"].indexOf(S(e).position)>=0&&f(e)?_(e):e;return c(r)?t.filter((function(e){return c(e)&&ce(e,r)&&"body"!==w(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce((function(t,r){var o=de(e,r,n);return t.top=p(o.top,t.top),t.right=h(o.right,t.right),t.bottom=h(o.bottom,t.bottom),t.left=p(o.left,t.left),t}),de(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function he(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ve(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function ge(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?F:s,u=r.rootBoundary,f=void 0===u?H:u,d=r.elementContext,p=void 0===d?U:d,h=r.altBoundary,v=void 0!==h&&h,g=r.padding,m=void 0===g?0:g,b=he("number"!=typeof m?m:ve(m,z)),w=p===U?V:U,x=e.rects.popper,S=e.elements[v?w:p],A=pe(c(S)?S:S.contextElement||O(e.elements.popper),l,f,a),P=y(e.elements.reference),j=re({reference:P,element:x,strategy:"absolute",placement:o}),E=fe(Object.assign({},x,j)),I=p===U?E:P,T={top:A.top-I.top+b.top,bottom:I.bottom-A.bottom+b.bottom,left:A.left-I.left+b.left,right:I.right-A.right+b.right},C=e.modifiersData.offset;if(p===U&&C){var k=C[o];Object.keys(T).forEach((function(e){var t=[D,N].indexOf(e)>=0?1:-1,r=[R,N].indexOf(e)>=0?"y":"x";T[e]+=k[r]*t}))}return T}function me(e,t,r){return p(e,h(t,r))}const ye={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,v=void 0===d||d,g=r.tetherOffset,m=void 0===g?0:g,y=ge(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),b=J(t.placement),w=ee(t.placement),O=!w,x=te(b),S="x"===x?"y":"x",A=t.modifiersData.popperOffsets,P=t.rects.reference,E=t.rects.popper,I="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(A){if(i){var L,z="y"===x?R:M,B="y"===x?N:D,F="y"===x?"height":"width",H=A[x],U=H+y[z],V=H-y[B],G=v?-E[F]/2:0,q=w===W?P[F]:E[F],K=w===W?-E[F]:-P[F],$=t.elements.arrow,Z=v&&$?j($):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=X[z],Q=X[B],re=me(0,P[F],Z[F]),ne=O?P[F]/2-G-re-Y-T.mainAxis:q-re-Y-T.mainAxis,oe=O?-P[F]/2+G+re+Q+T.mainAxis:K+re+Q+T.mainAxis,ie=t.elements.arrow&&_(t.elements.arrow),ae=ie?"y"===x?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(L=null==C?void 0:C[x])?L:0,le=H+oe-se,ue=me(v?h(U,H+ne-se-ae):U,H,v?p(V,le):V);A[x]=ue,k[x]=ue-H}if(s){var ce,fe="x"===x?R:M,de="x"===x?N:D,pe=A[S],he="y"===S?"height":"width",ve=pe+y[fe],ye=pe-y[de],be=-1!==[R,M].indexOf(b),we=null!=(ce=null==C?void 0:C[S])?ce:0,Oe=be?ve:pe-P[he]-E[he]-we+T.altAxis,xe=be?pe+P[he]+E[he]-we-T.altAxis:ye,Se=v&&be?function(e,t,r){var n=me(e,t,r);return n>r?r:n}(Oe,pe,xe):me(v?Oe:ve,pe,v?xe:ye);A[S]=Se,k[S]=Se-pe}t.modifiersData[n]=k}},requiresIfExists:["offset"]};const be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=J(r.placement),l=te(s),u=[M,D].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return he("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ve(e,z))}(o.padding,r),f=j(i),d="y"===l?R:M,p="y"===l?N:D,h=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],v=a[l]-r.rects.reference[l],g=_(i),m=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-v/2,b=c[d],w=m-f[u]-c[p],O=m/2-f[u]/2+y,x=me(b,O,w),S=l;r.modifiersData[n]=((t={})[S]=x,t.centerOffset=x-O,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ce(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function we(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Oe(e){return[R,D,N,M].some((function(t){return e[t]>=0}))}var xe=Y({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=u(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,Q)})),s&&l.addEventListener("resize",r.update,Q),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,Q)})),s&&l.removeEventListener("resize",r.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=re({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,u={placement:J(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];f(o)&&w(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});f(n)&&w(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},ie,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,h=void 0===p||p,v=r.allowedAutoPlacements,g=t.options.placement,m=J(g),y=l||(m===g||!h?[se(g)]:function(e){if(J(e)===L)return[];var t=se(e);return[ue(e),t,ue(t)]}(g)),b=[g].concat(y).reduce((function(e,r){return e.concat(J(r)===L?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?q:l,c=ee(n),f=c?s?G:G.filter((function(e){return ee(e)===c})):z,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,r){return t[r]=ge(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[J(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:v}):r)}),[]),w=t.rects.reference,O=t.rects.popper,x=new Map,S=!0,A=b[0],P=0;P<b.length;P++){var j=b[P],E=J(j),I=ee(j)===W,T=[R,N].indexOf(E)>=0,C=T?"width":"height",k=ge(t,{placement:j,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),_=T?I?D:M:I?N:R;w[C]>O[C]&&(_=se(_));var B=se(_),F=[];if(i&&F.push(k[E]<=0),s&&F.push(k[_]<=0,k[B]<=0),F.every((function(e){return e}))){A=j,S=!1;break}x.set(j,F)}if(S)for(var H=function(e){var t=b.find((function(t){var r=x.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},U=h?3:1;U>0;U--){if("break"===H(U))break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ye,be,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ge(t,{elementContext:"reference"}),s=ge(t,{altBoundary:!0}),l=we(a,n),u=we(s,o,i),c=Oe(l),f=Oe(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Se=r(80408),Ae=r(52579),Pe=r(88842),je="base";function Ee(e,t){var r,n=Pe.li[t];return n?(r=n,"".concat(je,"--").concat(r)):function(e,t){return"".concat(je,"-").concat(e,"-").concat(t)}(e,t)}var Ie="Popper";function Te(e){return Ee(Ie,e)}Ce=Ie,ke={},["root"].forEach((function(e){ke[e]=Ee(Ce,e)}));var Ce,ke,_e=r(17080),Re=r(28477),Ne={disableDefaultClasses:!1},De=i.createContext(Ne);function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ze=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],We=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Be(e){return"function"==typeof e?e():e}function Fe(e){return void 0!==e.nodeType}var He=function(){return(0,Se.A)({root:["root"]},function(e){var t=i.useContext(De).disableDefaultClasses;return function(r){return t?"":e(r)}}(Te))},Ue={},Ve=i.forwardRef((function(e,t){var r,l=e.anchorEl,u=e.children,c=e.direction,f=e.disablePortal,d=e.modifiers,p=e.open,h=e.placement,v=e.popperOptions,g=e.popperRef,m=e.slotProps,y=void 0===m?{}:m,b=e.slots,w=void 0===b?{}:b,O=e.TransitionProps,x=(0,o.A)(e,ze),S=i.useRef(null),A=(0,a.A)(S,t),P=i.useRef(null),j=(0,a.A)(P,g),E=i.useRef(j);(0,s.A)((function(){E.current=j}),[j]),i.useImperativeHandle(g,(function(){return P.current}),[]);var I=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,c),T=Me(i.useState(I),2),C=T[0],k=T[1],_=Me(i.useState(Be(l)),2),R=_[0],N=_[1];i.useEffect((function(){P.current&&P.current.forceUpdate()})),i.useEffect((function(){l&&N(Be(l))}),[l]),(0,s.A)((function(){if(R&&p){var e=[{name:"preventOverflow",options:{altBoundary:f}},{name:"flip",options:{altBoundary:f}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;k(t.placement)}}];null!=d&&(e=e.concat(d)),v&&null!=v.modifiers&&(e=e.concat(v.modifiers));var t=xe(R,S.current,(0,n.A)({placement:I},v,{modifiers:e}));return E.current(t),function(){t.destroy(),E.current(null)}}}),[R,f,d,p,v,I]);var D={placement:C};null!==O&&(D.TransitionProps=O);var M=He(),L=null!=(r=w.root)?r:"div",z=(0,_e.Q)({elementType:L,externalSlotProps:y.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:A},ownerState:e,className:M.root});return(0,Re.jsx)(L,(0,n.A)({},z,{children:"function"==typeof u?u(D):u}))})),Ge=i.forwardRef((function(e,t){var r,a=e.anchorEl,s=e.children,u=e.container,c=e.direction,f=void 0===c?"ltr":c,d=e.disablePortal,p=void 0!==d&&d,h=e.keepMounted,v=void 0!==h&&h,g=e.modifiers,m=e.open,y=e.placement,b=void 0===y?"bottom":y,w=e.popperOptions,O=void 0===w?Ue:w,x=e.popperRef,S=e.style,A=e.transition,P=void 0!==A&&A,j=e.slotProps,E=void 0===j?{}:j,I=e.slots,T=void 0===I?{}:I,C=(0,o.A)(e,We),k=Me(i.useState(!0),2),_=k[0],R=k[1];if(!v&&!m&&(!P||_))return null;if(u)r=u;else if(a){var N=Be(a);r=N&&Fe(N)?(0,l.A)(N).body:(0,l.A)(null).body}var D=m||!v||P&&!_?void 0:"none",M=P?{in:m,onEnter:function(){R(!1)},onExited:function(){R(!0)}}:void 0;return(0,Re.jsx)(Ae.Z,{disablePortal:p,container:r,children:(0,Re.jsx)(Ve,(0,n.A)({anchorEl:a,direction:f,disablePortal:p,modifiers:g,ref:t,open:P?!_:m,placement:b,popperOptions:O,popperRef:x,slotProps:E,slots:T},C,{style:(0,n.A)({position:"fixed",top:0,left:0,display:D},S),TransitionProps:M,children:s}))})})),qe=r(1936),Ke=r(49801),$e=r(83542),Ze=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Xe=(0,Ke.Ay)(Ge,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Ye=i.forwardRef((function(e,t){var r,i=(0,qe.A)(),a=(0,$e.A)({props:e,name:"MuiPopper"}),s=a.anchorEl,l=a.component,u=a.components,c=a.componentsProps,f=a.container,d=a.disablePortal,p=a.keepMounted,h=a.modifiers,v=a.open,g=a.placement,m=a.popperOptions,y=a.popperRef,b=a.transition,w=a.slots,O=a.slotProps,x=(0,o.A)(a,Ze),S=null!=(r=null==w?void 0:w.root)?r:null==u?void 0:u.Root,A=(0,n.A)({anchorEl:s,container:f,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:g,popperOptions:m,popperRef:y,transition:b},x);return(0,Re.jsx)(Xe,(0,n.A)({as:l,direction:null==i?void 0:i.direction,slots:{root:S},slotProps:null!=O?O:c},A,{ref:t}))}));const Qe=Ye},60910:(e,t,r)=>{"use strict";r.d(t,{A:()=>ne});var n=r(63063),o=r(5550),i=r(78281),a=r(20997),s=r(74538),l=r(75730),u=(r(38428),r(80408)),c=r(70946),f=r(48945),d=r(71905),p=r(19170),h=r(95298),v=r(88842);function g(e){return(0,v.Ay)("MuiNativeSelect",e)}const m=(0,h.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var y=r(49801),b=r(28477);function w(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=["className","disabled","error","IconComponent","inputRef","variant"],x=function(e){var t=e.ownerState,r=e.theme;return(0,n.A)(w(w(w(w({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,n.A)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},"&.".concat(m.disabled),{cursor:"default"}),"&[multiple]",{height:"auto"}),"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(r.vars||r).palette.background.paper}),"&&&",{paddingRight:24,minWidth:16}),"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},S=(0,y.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:y.ep,overridesResolver:function(e,t){var r=e.ownerState;return[t.select,t[r.variant],r.error&&t.error,w({},"&.".concat(m.multiple),t.multiple)]}})(x),A=function(e){var t=e.ownerState,r=e.theme;return(0,n.A)(w({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active},"&.".concat(m.disabled),{color:(r.vars||r).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},P=(0,y.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,d.A)(r.variant))],r.open&&t.iconOpen]}})(A);const j=i.forwardRef((function(e,t){var r=e.className,s=e.disabled,l=e.error,c=e.IconComponent,f=e.inputRef,p=e.variant,h=void 0===p?"standard":p,v=(0,o.A)(e,O),m=(0,n.A)({},e,{disabled:s,variant:h,error:l}),y=function(e){var t=e.classes,r=e.variant,n=e.disabled,o=e.multiple,i=e.open,a={select:["select",r,n&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,d.A)(r)),i&&"iconOpen",n&&"disabled"]};return(0,u.A)(a,g,t)}(m);return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsx)(S,(0,n.A)({ownerState:m,className:(0,a.A)(y.select,r),disabled:s,ref:f||t},v)),e.multiple?null:(0,b.jsx)(P,{as:c,ownerState:m,className:y.icon})]})}));var E=r(40702),I=r(84147),T=r(98334);function C(e){return(0,v.Ay)("MuiSelect",e)}const k=(0,h.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D,M=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],L=(0,y.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var r=e.ownerState;return[N({},"&.".concat(k.select),t.select),N({},"&.".concat(k.select),t[r.variant]),N({},"&.".concat(k.error),t.error),N({},"&.".concat(k.multiple),t.multiple)]}})(x,N({},"&.".concat(k.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),z=(0,y.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,d.A)(r.variant))],r.open&&t.iconOpen]}})(A),W=(0,y.Ay)("input",{shouldForwardProp:function(e){return(0,y._n)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function B(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function F(e){return null==e||"string"==typeof e&&!e.trim()}const H=i.forwardRef((function(e,t){var r,s=e["aria-describedby"],h=e["aria-label"],v=e.autoFocus,g=e.autoWidth,m=e.children,y=e.className,w=e.defaultOpen,O=e.defaultValue,x=e.disabled,S=e.displayEmpty,A=e.error,P=void 0!==A&&A,j=e.IconComponent,k=e.inputRef,R=e.labelId,N=e.MenuProps,H=void 0===N?{}:N,U=e.multiple,V=e.name,G=e.onBlur,q=e.onChange,K=e.onClose,$=e.onFocus,Z=e.onOpen,X=e.open,Y=e.readOnly,Q=e.renderValue,J=e.SelectDisplayProps,ee=void 0===J?{}:J,te=e.tabIndex,re=e.value,ne=e.variant,oe=void 0===ne?"standard":ne,ie=(0,o.A)(e,M),ae=_((0,T.A)({controlled:re,default:O,name:"Select"}),2),se=ae[0],le=ae[1],ue=_((0,T.A)({controlled:X,default:w,name:"Select"}),2),ce=ue[0],fe=ue[1],de=i.useRef(null),pe=i.useRef(null),he=_(i.useState(null),2),ve=he[0],ge=he[1],me=i.useRef(null!=X).current,ye=_(i.useState(),2),be=ye[0],we=ye[1],Oe=(0,I.A)(t,k),xe=i.useCallback((function(e){pe.current=e,e&&ge(e)}),[]),Se=null==ve?void 0:ve.parentNode;i.useImperativeHandle(Oe,(function(){return{focus:function(){pe.current.focus()},node:de.current,value:se}}),[se]),i.useEffect((function(){w&&ce&&ve&&!me&&(we(g?null:Se.clientWidth),pe.current.focus())}),[ve,g]),i.useEffect((function(){v&&pe.current.focus()}),[v]),i.useEffect((function(){if(R){var e=(0,f.A)(pe.current).getElementById(R);if(e){var t=function(){getSelection().isCollapsed&&pe.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[R]);var Ae,Pe,je=function(e,t){e?Z&&Z(t):K&&K(t),me||(we(g?null:Se.clientWidth),fe(e))},Ee=i.Children.toArray(m),Ie=function(e){return function(t){var r;if(t.currentTarget.hasAttribute("tabindex")){if(U){r=Array.isArray(se)?se.slice():[];var n=se.indexOf(e.props.value);-1===n?r.push(e.props.value):r.splice(n,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),se!==r&&(le(r),q)){var o=t.nativeEvent||t,i=new o.constructor(o.type,o);Object.defineProperty(i,"target",{writable:!0,value:{value:r,name:V}}),q(i,e)}U||je(!1,t)}}},Te=null!==ve&&ce;delete ie["aria-invalid"];var Ce=[],ke=!1;((0,E.lq)({value:se})||S)&&(Q?Ae=Q(se):ke=!0);var _e=Ee.map((function(e){if(!i.isValidElement(e))return null;var t;if(U){if(!Array.isArray(se))throw new Error((0,l.A)(2));(t=se.some((function(t){return B(t,e.props.value)})))&&ke&&Ce.push(e.props.children)}else(t=B(se,e.props.value))&&ke&&(Pe=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Ie(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ke&&(Ae=U?0===Ce.length?null:Ce.reduce((function(e,t,r){return e.push(t),r<Ce.length-1&&e.push(", "),e}),[]):Pe);var Re,Ne=be;!g&&me&&ve&&(Ne=Se.clientWidth),Re=void 0!==te?te:x?null:0;var De=ee.id||(V?"mui-component-select-".concat(V):void 0),Me=(0,n.A)({},e,{variant:oe,value:se,open:Te,error:P}),Le=function(e){var t=e.classes,r=e.variant,n=e.disabled,o=e.multiple,i=e.open,a={select:["select",r,n&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,d.A)(r)),i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,u.A)(a,C,t)}(Me),ze=(0,n.A)({},H.PaperProps,null==(r=H.slotProps)?void 0:r.paper),We=(0,c.A)();return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsx)(L,(0,n.A)({ref:xe,tabIndex:Re,role:"combobox","aria-controls":We,"aria-disabled":x?"true":void 0,"aria-expanded":Te?"true":"false","aria-haspopup":"listbox","aria-label":h,"aria-labelledby":[R,De].filter(Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:function(e){if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),je(!0,e))}},onMouseDown:x||Y?null:function(e){0===e.button&&(e.preventDefault(),pe.current.focus(),je(!0,e))},onBlur:function(e){!Te&&G&&(Object.defineProperty(e,"target",{writable:!0,value:{value:se,name:V}}),G(e))},onFocus:$},ee,{ownerState:Me,className:(0,a.A)(ee.className,Le.select,y),id:De,children:F(Ae)?D||(D=(0,b.jsx)("span",{className:"notranslate",children:"​"})):Ae})),(0,b.jsx)(W,(0,n.A)({"aria-invalid":P,value:Array.isArray(se)?se.join(","):se,name:V,ref:de,"aria-hidden":!0,onChange:function(e){var t=Ee.find((function(t){return t.props.value===e.target.value}));void 0!==t&&(le(t.props.value),q&&q(e,t))},tabIndex:-1,disabled:x,className:Le.nativeInput,autoFocus:v,ownerState:Me},ie)),(0,b.jsx)(z,{as:j,className:Le.icon,ownerState:Me}),(0,b.jsx)(p.A,(0,n.A)({id:"menu-".concat(V||""),anchorEl:Se,open:Te,onClose:function(e){je(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},H,{MenuListProps:(0,n.A)({"aria-labelledby":R,role:"listbox","aria-multiselectable":U?"true":void 0,disableListWrap:!0,id:We},H.MenuListProps),slotProps:(0,n.A)({},H.slotProps,{paper:(0,n.A)({},ze,{style:(0,n.A)({minWidth:Ne},null!=ze?ze.style:null)})}),children:_e}))]})}));var U=r(45833),V=r(90211),G=r(86673),q=r(22046),K=r(49674),$=r(82118),Z=r(83542),X=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Y=["root"],Q={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,y.ep)(e)&&"variant"!==e},slot:"Root"},J=(0,y.Ay)(q.A,Q)(""),ee=(0,y.Ay)($.A,Q)(""),te=(0,y.Ay)(K.A,Q)(""),re=i.forwardRef((function(e,t){var r=(0,Z.A)({name:"MuiSelect",props:e}),l=r.autoWidth,u=void 0!==l&&l,c=r.children,f=r.classes,d=void 0===f?{}:f,p=r.className,h=r.defaultOpen,v=void 0!==h&&h,g=r.displayEmpty,m=void 0!==g&&g,y=r.IconComponent,w=void 0===y?G.A:y,O=r.id,x=r.input,S=r.inputProps,A=r.label,P=r.labelId,E=r.MenuProps,T=r.multiple,C=void 0!==T&&T,k=r.native,_=void 0!==k&&k,R=r.onClose,N=r.onOpen,D=r.open,M=r.renderValue,L=r.SelectDisplayProps,z=r.variant,W=void 0===z?"outlined":z,B=(0,o.A)(r,X),F=_?j:H,q=(0,V.A)(),K=(0,U.A)({props:r,muiFormControl:q,states:["variant","error"]}),$=K.variant||W,Q=(0,n.A)({},r,{variant:$,classes:d}),re=function(e){return e.classes}(Q),ne=(0,o.A)(re,Y),oe=x||{standard:(0,b.jsx)(J,{ownerState:Q}),outlined:(0,b.jsx)(ee,{label:A,ownerState:Q}),filled:(0,b.jsx)(te,{ownerState:Q})}[$],ie=(0,I.A)(t,oe.ref);return(0,b.jsx)(i.Fragment,{children:i.cloneElement(oe,(0,n.A)({inputComponent:F,inputProps:(0,n.A)({children:c,error:K.error,IconComponent:w,variant:$,type:void 0,multiple:C},_?{id:O}:{autoWidth:u,defaultOpen:v,displayEmpty:m,labelId:P,MenuProps:E,onClose:R,onOpen:N,open:D,renderValue:M,SelectDisplayProps:(0,n.A)({id:O},L)},S,{classes:S?(0,s.A)(ne,S.classes):ne},x?x.props.inputProps:{})},(C&&_||m)&&"outlined"===$?{notched:!0}:{},{ref:ie,className:(0,a.A)(oe.props.className,p,re.root)},!x&&{variant:$},B))})}));re.muiName="Select";const ne=re},14878:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(45748),l=r(80408);function u(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function c(e){return parseFloat(e)}var f=r(63548),d=r(49801),p=r(83542),h=r(95298),v=r(88842);function g(e){return(0,v.Ay)("MuiSkeleton",e)}(0,h.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var m,y,b,w,O=r(28477);function x(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var S,A,P,j,E=["animation","className","component","height","style","variant","width"],I=(0,s.i7)(S||(S=m||(m=x(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),T=(0,s.i7)(A||(A=y||(y=x(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),C=(0,d.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((function(e){var t=e.theme,r=e.ownerState,n=u(t.shape.borderRadius)||"px",i=c(t.shape.borderRadius);return(0,o.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,f.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(i).concat(n,"/").concat(Math.round(i/.6*10)/10).concat(n),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})}),(function(e){return"pulse"===e.ownerState.animation&&(0,s.AH)(P||(P=b||(b=x(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),I)}),(function(e){var t=e.ownerState,r=e.theme;return"wave"===t.animation&&(0,s.AH)(j||(j=w||(w=x(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),T,(r.vars||r).palette.action.hover)}));const k=i.forwardRef((function(e,t){var r=(0,p.A)({props:e,name:"MuiSkeleton"}),i=r.animation,s=void 0===i?"pulse":i,u=r.className,c=r.component,f=void 0===c?"span":c,d=r.height,h=r.style,v=r.variant,m=void 0===v?"text":v,y=r.width,b=(0,n.A)(r,E),w=(0,o.A)({},r,{animation:s,component:f,variant:m,hasChildren:Boolean(b.children)}),x=function(e){var t=e.classes,r=e.variant,n=e.animation,o=e.hasChildren,i=e.width,a=e.height,s={root:["root",r,n,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]};return(0,l.A)(s,g,t)}(w);return(0,O.jsx)(C,(0,o.A)({as:f,ref:t,className:(0,a.A)(x.root,u),ownerState:w},b,{style:(0,o.A)({width:y,height:d},h)}))}))},92408:(e,t,r)=>{"use strict";r.d(t,{A:()=>F});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(74538),l=r(88842),u=r(80408),c=r(71145),f=r(18024),d=r(55870);function p(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.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)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var m=["ownerState"],y=["variants"],b=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function w(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var O=(0,f.A)();function x(e){var t,r=e.defaultTheme,n=e.theme,o=e.themeId;return t=n,0===Object.keys(t).length?r:n[o]||n}function S(e,t){var r=t.ownerState,i=(0,n.A)(t,m),a="function"==typeof e?e((0,o.A)({ownerState:r},i)):e;if(Array.isArray(a))return a.flatMap((function(e){return S(e,(0,o.A)({ownerState:r},i))}));if(a&&"object"==typeof a&&Array.isArray(a.variants)){var s=a.variants,l=void 0===s?[]:s,u=(0,n.A)(a,y);return l.forEach((function(e){var t=!0;"function"==typeof e.props?t=e.props((0,o.A)({ownerState:r},i,r)):Object.keys(e.props).forEach((function(n){(null==r?void 0:r[n])!==e.props[n]&&i[n]!==e.props[n]&&(t=!1)})),t&&(Array.isArray(u)||(u=[u]),u.push("function"==typeof e.style?e.style((0,o.A)({ownerState:r},i,r)):e.style))})),u}return a}var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,r=e.defaultTheme,i=void 0===r?O:r,a=e.rootShouldForwardProp,l=void 0===a?w:a,u=e.slotShouldForwardProp,f=void 0===u?w:u,v=function(e){return(0,d.A)((0,o.A)({},e,{theme:x((0,o.A)({},e,{defaultTheme:i,themeId:t}))}))};return v.__mui_systemSx=!0,function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,c.internal_processStyles)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var a,u=r.name,d=r.slot,g=r.skipVariantsResolver,m=r.skipSx,y=r.overridesResolver,O=void 0===y?(a=function(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}(d))?function(e,t){return t[a]}:null:y,A=(0,n.A)(r,b),P=void 0!==g?g:d&&"Root"!==d&&"root"!==d||!1,j=m||!1;var E=w;"Root"===d||"root"===d?E=l:d?E=f:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);var I=(0,c.default)(e,(0,o.A)({shouldForwardProp:E,label:undefined},A)),T=function(e){return"function"==typeof e&&e.__emotion_real!==e||(0,s.Q)(e)?function(r){return S(e,(0,o.A)({},r,{theme:x({theme:r.theme,defaultTheme:i,themeId:t})}))}:e},C=function(r){for(var n=T(r),a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];var c=s?s.map(T):[];u&&O&&c.push((function(e){var r=x((0,o.A)({},e,{defaultTheme:i,themeId:t}));if(!r.components||!r.components[u]||!r.components[u].styleOverrides)return null;var n=r.components[u].styleOverrides,a={};return Object.entries(n).forEach((function(t){var n=h(t,2),i=n[0],s=n[1];a[i]=S(s,(0,o.A)({},e,{theme:r}))})),O(e,a)})),u&&!P&&c.push((function(e){var r,n=x((0,o.A)({},e,{defaultTheme:i,themeId:t}));return S({variants:null==n||null==(r=n.components)||null==(r=r[u])?void 0:r.variants},(0,o.A)({},e,{theme:n}))})),j||c.push(v);var f=c.length-s.length;if(Array.isArray(r)&&f>0){var d=new Array(f).fill("");(n=[].concat(p(r),p(d))).raw=[].concat(p(r.raw),p(d))}var g=I.apply(void 0,[n].concat(p(c)));return e.muiName&&(g.muiName=e.muiName),g};return I.withConfig&&(C.withConfig=I.withConfig),C}}();const P=A;var j=r(15534),E=r(24972),I=r(38989),T=r(85910),C=r(28477);function k(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=["component","direction","spacing","divider","children","className","useFlexGap"],R=(0,f.A)(),N=P("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function D(e){return(0,j.A)({props:e,name:"MuiStack",defaultTheme:R})}function M(e,t){var r=i.Children.toArray(e).filter(Boolean);return r.reduce((function(e,n,o){return e.push(n),o<r.length-1&&e.push(i.cloneElement(t,{key:"separator-".concat(o)})),e}),[])}var L=function(e){var t=e.ownerState,r=e.theme,n=(0,o.A)({display:"flex",flexDirection:"column"},(0,I.NI)({theme:r},(0,I.kW)({values:t.direction,breakpoints:r.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var i=(0,T.LX)(r),a=Object.keys(r.breakpoints.values).reduce((function(e,r){return("object"==typeof t.spacing&&null!=t.spacing[r]||"object"==typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e}),{}),l=(0,I.kW)({values:t.direction,base:a}),u=(0,I.kW)({values:t.spacing,base:a});"object"==typeof l&&Object.keys(l).forEach((function(e,t,r){if(!l[e]){var n=t>0?l[r[t-1]]:"column";l[e]=n}}));n=(0,s.A)(n,(0,I.NI)({theme:r},u,(function(e,r){return t.useFlexGap?{gap:(0,T._W)(i,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":k({},"margin".concat((n=r?l[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n])),(0,T._W)(i,e))};var n})))}return n=(0,I.iZ)(r.breakpoints,n)};var z=r(49801),W=r(83542),B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,r=void 0===t?N:t,s=e.useThemeProps,c=void 0===s?D:s,f=e.componentName,d=void 0===f?"MuiStack":f,p=r(L),h=i.forwardRef((function(e,t){var r=c(e),i=(0,E.A)(r),s=i.component,f=void 0===s?"div":s,h=i.direction,v=void 0===h?"column":h,g=i.spacing,m=void 0===g?0:g,y=i.divider,b=i.children,w=i.className,O=i.useFlexGap,x=void 0!==O&&O,S=(0,n.A)(i,_),A={direction:v,spacing:m,useFlexGap:x},P=(0,u.A)({root:["root"]},(function(e){return(0,l.Ay)(d,e)}),{});return(0,C.jsx)(p,(0,o.A)({as:f,ownerState:A,ref:t,className:(0,a.A)(P.root,w)},S,{children:y?M(b,y):b}))}));return h}({createStyledComponent:(0,z.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,W.A)({props:e,name:"MuiStack"})}});const F=B},57026:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(63063),o=r(5550),i=r(78281),a=r(20997),s=r(80408),l=r(71905),u=r(83542),c=r(49801),f=r(95298),d=r(88842);function p(e){return(0,d.Ay)("MuiSvgIcon",e)}(0,f.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=r(28477),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,c.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.A)(r.color))],t["fontSize".concat((0,l.A)(r.fontSize))]]}})((function(e){var t,r,n,o,i,a,s,l,u,c,f,d,p,h=e.theme,v=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:v.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=h.transitions)||null==(r=t.create)?void 0:r.call(t,"fill",{duration:null==(n=h.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:{inherit:"inherit",small:(null==(o=h.typography)||null==(i=o.pxToRem)?void 0:i.call(o,20))||"1.25rem",medium:(null==(a=h.typography)||null==(s=a.pxToRem)?void 0:s.call(a,24))||"1.5rem",large:(null==(l=h.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[v.fontSize],color:null!=(c=null==(f=(h.vars||h).palette)||null==(f=f[v.color])?void 0:f.main)?c:{action:null==(d=(h.vars||h).palette)||null==(d=d.action)?void 0:d.active,disabled:null==(p=(h.vars||h).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[v.color]}})),m=i.forwardRef((function(e,t){var r=(0,u.A)({props:e,name:"MuiSvgIcon"}),c=r.children,f=r.className,d=r.color,m=void 0===d?"inherit":d,y=r.component,b=void 0===y?"svg":y,w=r.fontSize,O=void 0===w?"medium":w,x=r.htmlColor,S=r.inheritViewBox,A=void 0!==S&&S,P=r.titleAccess,j=r.viewBox,E=void 0===j?"0 0 24 24":j,I=(0,o.A)(r,v),T=i.isValidElement(c)&&"svg"===c.type,C=(0,n.A)({},r,{color:m,component:b,fontSize:O,instanceFontSize:e.fontSize,inheritViewBox:A,viewBox:E,hasSvgAsChild:T}),k={};A||(k.viewBox=E);var _=function(e){var t=e.color,r=e.fontSize,n=e.classes,o={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(r))]};return(0,s.A)(o,p,n)}(C);return(0,h.jsxs)(g,(0,n.A)({as:b,className:(0,a.A)(_.root,f),focusable:"false",color:x,"aria-hidden":!P||void 0,role:P?"img":void 0,ref:t},k,I,T&&c.props,{ownerState:C,children:[T?c.props.children:c,P?(0,h.jsx)("title",{children:P}):null]}))}));m.muiName="SvgIcon";const y=m},88150:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(39926),u=r(71905),c=r(83542),f=r(49801),d=r(95298),p=r(88842);function h(e){return(0,p.Ay)("MuiTab",e)}const v=(0,d.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var g=r(28477);function m(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],b=(0,f.Ay)(l.A,{name:"MuiTab",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.label&&r.icon&&t.labelIcon,t["textColor".concat((0,u.A)(r.textColor))],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},r.label&&{flexDirection:"top"===r.iconPosition||"bottom"===r.iconPosition?"column":"row"},{lineHeight:1.25},r.icon&&r.label&&m({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(v.iconWrapper),(0,o.A)({},"top"===r.iconPosition&&{marginBottom:6},"bottom"===r.iconPosition&&{marginTop:6},"start"===r.iconPosition&&{marginRight:t.spacing(1)},"end"===r.iconPosition&&{marginLeft:t.spacing(1)})),"inherit"===r.textColor&&m(m({color:"inherit",opacity:.6},"&.".concat(v.selected),{opacity:1}),"&.".concat(v.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"primary"===r.textColor&&m(m({color:(t.vars||t).palette.text.secondary},"&.".concat(v.selected),{color:(t.vars||t).palette.primary.main}),"&.".concat(v.disabled),{color:(t.vars||t).palette.text.disabled}),"secondary"===r.textColor&&m(m({color:(t.vars||t).palette.text.secondary},"&.".concat(v.selected),{color:(t.vars||t).palette.secondary.main}),"&.".concat(v.disabled),{color:(t.vars||t).palette.text.disabled}),r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:t.typography.pxToRem(12)})}));const w=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiTab"}),l=r.className,f=r.disabled,d=void 0!==f&&f,p=r.disableFocusRipple,v=void 0!==p&&p,m=r.fullWidth,w=r.icon,O=r.iconPosition,x=void 0===O?"top":O,S=r.indicator,A=r.label,P=r.onChange,j=r.onClick,E=r.onFocus,I=r.selected,T=r.selectionFollowsFocus,C=r.textColor,k=void 0===C?"inherit":C,_=r.value,R=r.wrapped,N=void 0!==R&&R,D=(0,n.A)(r,y),M=(0,o.A)({},r,{disabled:d,disableFocusRipple:v,selected:I,icon:!!w,iconPosition:x,label:!!A,fullWidth:m,textColor:k,wrapped:N}),L=function(e){var t=e.classes,r=e.textColor,n=e.fullWidth,o=e.wrapped,i=e.icon,a=e.label,l=e.selected,c=e.disabled,f={root:["root",i&&a&&"labelIcon","textColor".concat((0,u.A)(r)),n&&"fullWidth",o&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return(0,s.A)(f,h,t)}(M),z=w&&A&&i.isValidElement(w)?i.cloneElement(w,{className:(0,a.A)(L.iconWrapper,w.props.className)}):w;return(0,g.jsxs)(b,(0,o.A)({focusRipple:!v,className:(0,a.A)(L.root,l),ref:t,role:"tab","aria-selected":I,disabled:d,onClick:function(e){!I&&P&&P(e,_),j&&j(e)},onFocus:function(e){T&&!I&&P&&P(e,_),E&&E(e)},ownerState:M,tabIndex:I?0:-1},D,{children:["top"===x||"start"===x?(0,g.jsxs)(i.Fragment,{children:[z,A]}):(0,g.jsxs)(i.Fragment,{children:[A,z]}),S]}))}))},87237:(e,t,r)=>{"use strict";r.d(t,{A:()=>Q});var n,o=r(5550),i=r(63063),a=r(78281),s=(r(38428),r(20997)),l=r(17080),u=r(80408),c=r(39701),f=r(49801),d=r(83542),p=r(77682),h=r(27572);function v(){if(n)return n;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),n="reverse",e.scrollLeft>0?n="default":(e.scrollLeft=1,0===e.scrollLeft&&(n="negative")),document.body.removeChild(e),n}function g(e,t){var r=e.scrollLeft;if("rtl"!==t)return r;switch(v()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function m(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var y=r(97091),b=r(94944),w=r(28477),O=["onChange"],x={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var S=r(87712);const A=(0,S.A)((0,w.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),P=(0,S.A)((0,w.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var j=r(39926),E=r(95298),I=r(88842);function T(e){return(0,I.Ay)("MuiTabScrollButton",e)}const C=(0,E.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);function k(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=["className","slots","slotProps","direction","orientation","disabled"],R=(0,f.Ay)(j.A,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.orientation&&t[r.orientation]]}})((function(e){var t=e.ownerState;return(0,i.A)(k({width:40,flexShrink:0,opacity:.8},"&.".concat(C.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})}));const N=a.forwardRef((function(e,t){var r,n,a=(0,d.A)({props:e,name:"MuiTabScrollButton"}),f=a.className,p=a.slots,h=void 0===p?{}:p,v=a.slotProps,g=void 0===v?{}:v,m=a.direction,y=(0,o.A)(a,_),b=(0,c.I)(),O=(0,i.A)({isRtl:b},a),x=function(e){var t=e.classes,r={root:["root",e.orientation,e.disabled&&"disabled"]};return(0,u.A)(r,T,t)}(O),S=null!=(r=h.StartScrollButtonIcon)?r:A,j=null!=(n=h.EndScrollButtonIcon)?n:P,E=(0,l.Q)({elementType:S,externalSlotProps:g.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:O}),I=(0,l.Q)({elementType:j,externalSlotProps:g.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:O});return(0,w.jsx)(R,(0,i.A)({component:"div",className:(0,s.A)(x.root,f),ref:t,role:null,ownerState:O,tabIndex:null},y,{children:"left"===m?(0,w.jsx)(S,(0,i.A)({},E)):(0,w.jsx)(j,(0,i.A)({},I))}))}));var D=r(71425);function M(e){return(0,I.Ay)("MuiTabs",e)}const L=(0,E.A)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var z=r(48945);function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return B(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return B(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],U=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},V=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},G=function(e,t,r){for(var n=!1,o=r(e,t);o;){if(o===e.firstChild){if(n)return;n=!0}var i=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!i)return void o.focus();o=r(e,o)}},q=(0,f.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[F({},"& .".concat(L.scrollButtons),t.scrollButtons),F({},"& .".concat(L.scrollButtons),r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile),t.root,r.vertical&&t.vertical]}})((function(e){var t=e.ownerState,r=e.theme;return(0,i.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&F({},"& .".concat(L.scrollButtons),F({},r.breakpoints.down("sm"),{display:"none"})))})),K=(0,f.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:function(e,t){var r=e.ownerState;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((function(e){var t=e.ownerState;return(0,i.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),$=(0,f.Ay)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:function(e,t){var r=e.ownerState;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((function(e){var t=e.ownerState;return(0,i.A)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),Z=(0,f.Ay)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,r=e.theme;return(0,i.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:r.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),X=(0,f.Ay)((function(e){var t=e.onChange,r=(0,o.A)(e,O),n=a.useRef(),s=a.useRef(null),l=function(){n.current=s.current.offsetHeight-s.current.clientHeight};return(0,y.A)((function(){var e=(0,h.A)((function(){var e=n.current;l(),e!==n.current&&t(n.current)})),r=(0,b.A)(s.current);return r.addEventListener("resize",e),function(){e.clear(),r.removeEventListener("resize",e)}}),[t]),a.useEffect((function(){l(),t(n.current)}),[t]),(0,w.jsx)("div",(0,i.A)({style:x,ref:s},r))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Y={};const Q=a.forwardRef((function(e,t){var r=(0,d.A)({props:e,name:"MuiTabs"}),n=(0,p.A)(),f=(0,c.I)(),y=r["aria-label"],O=r["aria-labelledby"],x=r.action,S=r.centered,A=void 0!==S&&S,P=r.children,j=r.className,E=r.component,I=void 0===E?"div":E,T=r.allowScrollButtonsMobile,C=void 0!==T&&T,k=r.indicatorColor,_=void 0===k?"primary":k,R=r.onChange,L=r.orientation,B=void 0===L?"horizontal":L,Q=r.ScrollButtonComponent,J=void 0===Q?N:Q,ee=r.scrollButtons,te=void 0===ee?"auto":ee,re=r.selectionFollowsFocus,ne=r.slots,oe=void 0===ne?{}:ne,ie=r.slotProps,ae=void 0===ie?{}:ie,se=r.TabIndicatorProps,le=void 0===se?{}:se,ue=r.TabScrollButtonProps,ce=void 0===ue?{}:ue,fe=r.textColor,de=void 0===fe?"primary":fe,pe=r.value,he=r.variant,ve=void 0===he?"standard":he,ge=r.visibleScrollbar,me=void 0!==ge&&ge,ye=(0,o.A)(r,H),be="scrollable"===ve,we="vertical"===B,Oe=we?"scrollTop":"scrollLeft",xe=we?"top":"left",Se=we?"bottom":"right",Ae=we?"clientHeight":"clientWidth",Pe=we?"height":"width",je=(0,i.A)({},r,{component:I,allowScrollButtonsMobile:C,indicatorColor:_,orientation:B,vertical:we,scrollButtons:te,textColor:de,variant:ve,visibleScrollbar:me,fixed:!be,hideScrollbar:be&&!me,scrollableX:be&&!we,scrollableY:be&&we,centered:A&&!be,scrollButtonsHideMobile:!C}),Ee=function(e){var t=e.vertical,r=e.fixed,n=e.hideScrollbar,o=e.scrollableX,i=e.scrollableY,a=e.centered,s=e.scrollButtonsHideMobile,l=e.classes,c={root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]};return(0,u.A)(c,M,l)}(je),Ie=(0,l.Q)({elementType:oe.StartScrollButtonIcon,externalSlotProps:ae.startScrollButtonIcon,ownerState:je}),Te=(0,l.Q)({elementType:oe.EndScrollButtonIcon,externalSlotProps:ae.endScrollButtonIcon,ownerState:je});var Ce=W(a.useState(!1),2),ke=Ce[0],_e=Ce[1],Re=W(a.useState(Y),2),Ne=Re[0],De=Re[1],Me=W(a.useState(!1),2),Le=Me[0],ze=Me[1],We=W(a.useState(!1),2),Be=We[0],Fe=We[1],He=W(a.useState(!1),2),Ue=He[0],Ve=He[1],Ge=W(a.useState({overflow:"hidden",scrollbarWidth:0}),2),qe=Ge[0],Ke=Ge[1],$e=new Map,Ze=a.useRef(null),Xe=a.useRef(null),Ye=function(){var e,t,r=Ze.current;if(r){var n=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:g(r,f?"rtl":"ltr"),scrollWidth:r.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(r&&!1!==pe){var o=Xe.current.children;if(o.length>0){var i=o[$e.get(pe)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Qe=(0,D.A)((function(){var e,t=Ye(),r=t.tabsMeta,n=t.tabMeta,o=0;if(we)e="top",n&&r&&(o=n.top-r.top+r.scrollTop);else if(e=f?"right":"left",n&&r){var i=f?r.scrollLeftNormalized+r.clientWidth-r.scrollWidth:r.scrollLeft;o=(f?-1:1)*(n[e]-r[e]+i)}var a=F(F({},e,o),Pe,n?n[Pe]:0);if(isNaN(Ne[e])||isNaN(Ne[Pe]))De(a);else{var s=Math.abs(Ne[e]-a[e]),l=Math.abs(Ne[Pe]-a[Pe]);(s>=1||l>=1)&&De(a)}})),Je=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).animation;void 0===t||t?function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=n.ease,a=void 0===i?m:i,s=n.duration,l=void 0===s?300:s,u=null,c=t[e],f=!1,d=function(){f=!0};c===r?o(new Error("Element already at target position")):requestAnimationFrame((function n(i){if(f)o(new Error("Animation cancelled"));else{null===u&&(u=i);var s=Math.min(1,(i-u)/l);t[e]=a(s)*(r-c)+c,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(n)}}))}(Oe,Ze.current,e,{duration:n.transitions.duration.standard}):Ze.current[Oe]=e},et=function(e){var t=Ze.current[Oe];we?t+=e:(t+=e*(f?-1:1),t*=f&&"reverse"===v()?-1:1),Je(t)},tt=function(){for(var e=Ze.current[Ae],t=0,r=Array.from(Xe.current.children),n=0;n<r.length;n+=1){var o=r[n];if(t+o[Ae]>e){0===n&&(t=e);break}t+=o[Ae]}return t},rt=function(){et(-1*tt())},nt=function(){et(tt())},ot=a.useCallback((function(e){Ke({overflow:null,scrollbarWidth:e})}),[]),it=(0,D.A)((function(e){var t=Ye(),r=t.tabsMeta,n=t.tabMeta;if(n&&r)if(n[xe]<r[xe]){var o=r[Oe]+(n[xe]-r[xe]);Je(o,{animation:e})}else if(n[Se]>r[Se]){var i=r[Oe]+(n[Se]-r[Se]);Je(i,{animation:e})}})),at=(0,D.A)((function(){be&&!1!==te&&Ve(!Ue)}));a.useEffect((function(){var e,t,r=(0,h.A)((function(){Ze.current&&Qe()})),n=(0,b.A)(Ze.current);return n.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(Xe.current.children).forEach((function(t){e.observe(t)}))),"undefined"!=typeof MutationObserver&&(t=new MutationObserver((function(t){t.forEach((function(t){t.removedNodes.forEach((function(t){var r;null==(r=e)||r.unobserve(t)})),t.addedNodes.forEach((function(t){var r;null==(r=e)||r.observe(t)}))})),r(),at()}))).observe(Xe.current,{childList:!0}),function(){var o,i;r.clear(),n.removeEventListener("resize",r),null==(o=t)||o.disconnect(),null==(i=e)||i.disconnect()}}),[Qe,at]),a.useEffect((function(){var e=Array.from(Xe.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&be&&!1!==te){var r=e[0],n=e[t-1],o={root:Ze.current,threshold:.99},i=new IntersectionObserver((function(e){ze(!e[0].isIntersecting)}),o);i.observe(r);var a=new IntersectionObserver((function(e){Fe(!e[0].isIntersecting)}),o);return a.observe(n),function(){i.disconnect(),a.disconnect()}}}),[be,te,Ue,null==P?void 0:P.length]),a.useEffect((function(){_e(!0)}),[]),a.useEffect((function(){Qe()})),a.useEffect((function(){it(Y!==Ne)}),[it,Ne]),a.useImperativeHandle(x,(function(){return{updateIndicator:Qe,updateScrollButtons:at}}),[Qe,at]);var st=(0,w.jsx)(Z,(0,i.A)({},le,{className:(0,s.A)(Ee.indicator,le.className),ownerState:je,style:(0,i.A)({},Ne,le.style)})),lt=0,ut=a.Children.map(P,(function(e){if(!a.isValidElement(e))return null;var t=void 0===e.props.value?lt:e.props.value;$e.set(t,lt);var r=t===pe;return lt+=1,a.cloneElement(e,(0,i.A)({fullWidth:"fullWidth"===ve,indicator:r&&!ke&&st,selected:r,selectionFollowsFocus:re,onChange:R,textColor:de,value:t},1!==lt||!1!==pe||e.props.tabIndex?{}:{tabIndex:0}))})),ct=function(){var e={};e.scrollbarSizeListener=be?(0,w.jsx)(X,{onChange:ot,className:(0,s.A)(Ee.scrollableX,Ee.hideScrollbar)}):null;var t=be&&("auto"===te&&(Le||Be)||!0===te);return e.scrollButtonStart=t?(0,w.jsx)(J,(0,i.A)({slots:{StartScrollButtonIcon:oe.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ie},orientation:B,direction:f?"right":"left",onClick:rt,disabled:!Le},ce,{className:(0,s.A)(Ee.scrollButtons,ce.className)})):null,e.scrollButtonEnd=t?(0,w.jsx)(J,(0,i.A)({slots:{EndScrollButtonIcon:oe.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Te},orientation:B,direction:f?"left":"right",onClick:nt,disabled:!Be},ce,{className:(0,s.A)(Ee.scrollButtons,ce.className)})):null,e}();return(0,w.jsxs)(q,(0,i.A)({className:(0,s.A)(Ee.root,j),ownerState:je,ref:t,as:I},ye,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,(0,w.jsxs)(K,{className:Ee.scroller,ownerState:je,style:F({overflow:qe.overflow},we?"margin".concat(f?"Left":"Right"):"marginBottom",me?void 0:-qe.scrollbarWidth),ref:Ze,children:[(0,w.jsx)($,{"aria-label":y,"aria-labelledby":O,"aria-orientation":"vertical"===B?"vertical":null,className:Ee.flexContainer,ownerState:je,onKeyDown:function(e){var t=Xe.current,r=(0,z.A)(t).activeElement;if("tab"===r.getAttribute("role")){var n="horizontal"===B?"ArrowLeft":"ArrowUp",o="horizontal"===B?"ArrowRight":"ArrowDown";switch("horizontal"===B&&f&&(n="ArrowRight",o="ArrowLeft"),e.key){case n:e.preventDefault(),G(t,r,V);break;case o:e.preventDefault(),G(t,r,U);break;case"Home":e.preventDefault(),G(t,null,U);break;case"End":e.preventDefault(),G(t,null,V)}}},ref:Xe,role:"tablist",children:ut}),ke&&st]}),ct.scrollButtonEnd]}))}))},31559:(e,t,r)=>{"use strict";r.d(t,{A:()=>G});var n=r(63063),o=r(5550),i=r(78281),a=r(20997),s=r(80408),l=r(70946),u=r(49801),c=r(83542),f=r(22046),d=r(49674),p=r(82118),h=r(45833),v=r(90211),g=r(71905),m=r(95298),y=r(88842);function b(e){return(0,y.Ay)("MuiFormLabel",e)}const w=(0,m.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var O=r(28477);function x(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=["children","className","color","component","disabled","error","filled","focused","required"],A=(0,u.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,n.A)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((function(e){var t=e.theme,r=e.ownerState;return(0,n.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,x(x(x({lineHeight:"1.4375em",padding:0,position:"relative"},"&.".concat(w.focused),{color:(t.vars||t).palette[r.color].main}),"&.".concat(w.disabled),{color:(t.vars||t).palette.text.disabled}),"&.".concat(w.error),{color:(t.vars||t).palette.error.main}))})),P=(0,u.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return x({},"&.".concat(w.error),{color:(t.vars||t).palette.error.main})}));const j=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiFormLabel"}),i=r.children,l=r.className,u=r.component,f=void 0===u?"label":u,d=(0,o.A)(r,S),p=(0,v.A)(),m=(0,h.A)({props:r,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),y=(0,n.A)({},r,{color:m.color||"primary",component:f,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required}),w=function(e){var t=e.classes,r=e.color,n=e.focused,o=e.disabled,i=e.error,a=e.filled,l=e.required,u={root:["root","color".concat((0,g.A)(r)),o&&"disabled",i&&"error",a&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return(0,s.A)(u,b,t)}(y);return(0,O.jsxs)(A,(0,n.A)({as:f,ownerState:y,className:(0,a.A)(w.root,l),ref:t},d,{children:[i,m.required&&(0,O.jsxs)(P,{ownerState:y,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}))}));function E(e){return(0,y.Ay)("MuiInputLabel",e)}(0,m.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);function I(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T=["disableAnimation","margin","shrink","variant","className"],C=(0,u.Ay)(j,{shouldForwardProp:function(e){return(0,u.ep)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[I({},"& .".concat(w.asterisk),t.asterisk),t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,n.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,n.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,n.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,n.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))}));const k=i.forwardRef((function(e,t){var r=(0,c.A)({name:"MuiInputLabel",props:e}),i=r.disableAnimation,l=void 0!==i&&i,u=r.shrink,f=r.className,d=(0,o.A)(r,T),p=(0,v.A)(),m=u;void 0===m&&p&&(m=p.filled||p.focused||p.adornedStart);var y=(0,h.A)({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),b=(0,n.A)({},r,{disableAnimation:l,formControl:p,shrink:m,size:y.size,variant:y.variant,required:y.required,focused:y.focused}),w=function(e){var t=e.classes,r=e.formControl,o=e.size,i=e.shrink,a=e.disableAnimation,l=e.variant,u=e.required,c={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",o&&"normal"!==o&&"size".concat((0,g.A)(o)),l],asterisk:[u&&"asterisk"]},f=(0,s.A)(c,E,t);return(0,n.A)({},t,f)}(b);return(0,O.jsx)(C,(0,n.A)({"data-shrink":m,ownerState:b,ref:t,className:(0,a.A)(w.root,f)},d,{classes:w}))}));var _=r(48393);function R(e){return(0,y.Ay)("MuiFormHelperText",e)}const N=(0,m.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);function D(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M,L=["children","className","component","disabled","error","filled","focused","margin","required","variant"],z=(0,u.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.size&&t["size".concat((0,g.A)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((function(e){var t=e.theme,r=e.ownerState;return(0,n.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,D(D({textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},"&.".concat(N.disabled),{color:(t.vars||t).palette.text.disabled}),"&.".concat(N.error),{color:(t.vars||t).palette.error.main}),"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})}));const W=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiFormHelperText"}),i=r.children,l=r.className,u=r.component,f=void 0===u?"p":u,d=(0,o.A)(r,L),p=(0,v.A)(),m=(0,h.A)({props:r,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),y=(0,n.A)({},r,{component:f,contained:"filled"===m.variant||"outlined"===m.variant,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required}),b=function(e){var t=e.classes,r=e.contained,n=e.size,o=e.disabled,i=e.error,a=e.filled,l=e.focused,u=e.required,c={root:["root",o&&"disabled",i&&"error",n&&"size".concat((0,g.A)(n)),r&&"contained",l&&"focused",a&&"filled",u&&"required"]};return(0,s.A)(c,R,t)}(y);return(0,O.jsx)(z,(0,n.A)({as:f,ownerState:y,className:(0,a.A)(b.root,l),ref:t},d,{children:" "===i?M||(M=(0,O.jsx)("span",{className:"notranslate",children:"​"})):i}))}));var B=r(60910);function F(e){return(0,y.Ay)("MuiTextField",e)}(0,m.A)("MuiTextField",["root"]);var H=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],U={standard:f.A,filled:d.A,outlined:p.A},V=(0,u.Ay)(_.A,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({});const G=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiTextField"}),i=r.autoComplete,u=r.autoFocus,f=void 0!==u&&u,d=r.children,p=r.className,h=r.color,v=void 0===h?"primary":h,g=r.defaultValue,m=r.disabled,y=void 0!==m&&m,b=r.error,w=void 0!==b&&b,x=r.FormHelperTextProps,S=r.fullWidth,A=void 0!==S&&S,P=r.helperText,j=r.id,E=r.InputLabelProps,I=r.inputProps,T=r.InputProps,C=r.inputRef,_=r.label,R=r.maxRows,N=r.minRows,D=r.multiline,M=void 0!==D&&D,L=r.name,z=r.onBlur,G=r.onChange,q=r.onFocus,K=r.placeholder,$=r.required,Z=void 0!==$&&$,X=r.rows,Y=r.select,Q=void 0!==Y&&Y,J=r.SelectProps,ee=r.type,te=r.value,re=r.variant,ne=void 0===re?"outlined":re,oe=(0,o.A)(r,H),ie=(0,n.A)({},r,{autoFocus:f,color:v,disabled:y,error:w,fullWidth:A,multiline:M,required:Z,select:Q,variant:ne}),ae=function(e){var t=e.classes;return(0,s.A)({root:["root"]},F,t)}(ie);var se={};"outlined"===ne&&(E&&void 0!==E.shrink&&(se.notched=E.shrink),se.label=_),Q&&(J&&J.native||(se.id=void 0),se["aria-describedby"]=void 0);var le=(0,l.A)(j),ue=P&&le?"".concat(le,"-helper-text"):void 0,ce=_&&le?"".concat(le,"-label"):void 0,fe=U[ne],de=(0,O.jsx)(fe,(0,n.A)({"aria-describedby":ue,autoComplete:i,autoFocus:f,defaultValue:g,fullWidth:A,multiline:M,name:L,rows:X,maxRows:R,minRows:N,type:ee,value:te,id:le,inputRef:C,onBlur:z,onChange:G,onFocus:q,placeholder:K,inputProps:I},se,T));return(0,O.jsxs)(V,(0,n.A)({className:(0,a.A)(ae.root,p),disabled:y,error:w,fullWidth:A,ref:t,required:Z,color:v,variant:ne,ownerState:ie},oe,{children:[null!=_&&""!==_&&(0,O.jsx)(k,(0,n.A)({htmlFor:le,id:ce},E,{children:_})),Q?(0,O.jsx)(B.A,(0,n.A)({"aria-describedby":ue,id:le,labelId:ce,value:te,input:de},J,{children:d})):de,P&&(0,O.jsx)(W,(0,n.A)({id:ue},x,{children:P}))]}))}))},35874:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(80408),l=r(83542),u=r(49801),c=r(95298),f=r(88842);function d(e){return(0,f.Ay)("MuiToolbar",e)}(0,c.A)("MuiToolbar",["root","gutters","regular","dense"]);var p=r(28477);function h(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=["className","component","disableGutters","variant"],g=(0,u.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&h({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===r.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar}));const m=i.forwardRef((function(e,t){var r=(0,l.A)({props:e,name:"MuiToolbar"}),i=r.className,u=r.component,c=void 0===u?"div":u,f=r.disableGutters,h=void 0!==f&&f,m=r.variant,y=void 0===m?"regular":m,b=(0,n.A)(r,v),w=(0,o.A)({},r,{component:c,disableGutters:h,variant:y}),O=function(e){var t=e.classes,r={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,s.A)(r,d,t)}(w);return(0,p.jsx)(g,(0,o.A)({as:c,className:(0,a.A)(O.root,i),ref:t,ownerState:w},b))}))},34338:(e,t,r)=>{"use strict";r.d(t,{A:()=>W});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(10887),l=r(42735),u=r(80408),c=r(83032),f=r(39701),d=r(49801),p=r(77682),h=r(83542),v=r(71905),g=r(31102),m=r(61161),y=r(71425),b=r(84147),w=r(48005),O=r(86386),x=r(98334),S=r(95298),A=r(88842);function P(e){return(0,A.Ay)("MuiTooltip",e)}const j=(0,S.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var E=r(28477);function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var _=(0,d.Ay)(m.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var r=e.ownerState;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((function(e){var t=e.theme,r=e.ownerState,n=e.open;return(0,o.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&C(C(C(C({},'&[data-popper-placement*="bottom"] .'.concat(j.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),'&[data-popper-placement*="top"] .'.concat(j.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),'&[data-popper-placement*="right"] .'.concat(j.arrow),(0,o.A)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),'&[data-popper-placement*="left"] .'.concat(j.arrow),(0,o.A)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})))})),R=(0,d.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var r=e.ownerState;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,v.A)(r.placement.split("-")[0]))]]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,o.A)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,c.X4)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((t=16/14,Math.round(1e5*t)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},C(C(C(C({},".".concat(j.popper,'[data-popper-placement*="left"] &'),(0,o.A)({transformOrigin:"right center"},n.isRtl?(0,o.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,o.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"}))),".".concat(j.popper,'[data-popper-placement*="right"] &'),(0,o.A)({transformOrigin:"left center"},n.isRtl?(0,o.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,o.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}))),".".concat(j.popper,'[data-popper-placement*="top"] &'),(0,o.A)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"})),".".concat(j.popper,'[data-popper-placement*="bottom"] &'),(0,o.A)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})))})),N=(0,d.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,c.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),D=!1,M=new s.E,L={x:0,y:0};function z(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];t&&t.apply(void 0,[r].concat(o)),e.apply(void 0,[r].concat(o))}}const W=i.forwardRef((function(e,t){var r,c,d,S,A,j,T,C,W,B,F,H,U,V,G,q,K,$,Z,X=(0,h.A)({props:e,name:"MuiTooltip"}),Y=X.arrow,Q=void 0!==Y&&Y,J=X.children,ee=X.components,te=void 0===ee?{}:ee,re=X.componentsProps,ne=void 0===re?{}:re,oe=X.describeChild,ie=void 0!==oe&&oe,ae=X.disableFocusListener,se=void 0!==ae&&ae,le=X.disableHoverListener,ue=void 0!==le&&le,ce=X.disableInteractive,fe=void 0!==ce&&ce,de=X.disableTouchListener,pe=void 0!==de&&de,he=X.enterDelay,ve=void 0===he?100:he,ge=X.enterNextDelay,me=void 0===ge?0:ge,ye=X.enterTouchDelay,be=void 0===ye?700:ye,we=X.followCursor,Oe=void 0!==we&&we,xe=X.id,Se=X.leaveDelay,Ae=void 0===Se?0:Se,Pe=X.leaveTouchDelay,je=void 0===Pe?1500:Pe,Ee=X.onClose,Ie=X.onOpen,Te=X.open,Ce=X.placement,ke=void 0===Ce?"bottom":Ce,_e=X.PopperComponent,Re=X.PopperProps,Ne=void 0===Re?{}:Re,De=X.slotProps,Me=void 0===De?{}:De,Le=X.slots,ze=void 0===Le?{}:Le,We=X.title,Be=X.TransitionComponent,Fe=void 0===Be?g.A:Be,He=X.TransitionProps,Ue=(0,n.A)(X,k),Ve=i.isValidElement(J)?J:(0,E.jsx)("span",{children:J}),Ge=(0,p.A)(),qe=(0,f.I)(),Ke=I(i.useState(),2),$e=Ke[0],Ze=Ke[1],Xe=I(i.useState(null),2),Ye=Xe[0],Qe=Xe[1],Je=i.useRef(!1),et=fe||Oe,tt=(0,s.A)(),rt=(0,s.A)(),nt=(0,s.A)(),ot=(0,s.A)(),it=I((0,x.A)({controlled:Te,default:!1,name:"Tooltip",state:"open"}),2),at=it[0],st=it[1],lt=at,ut=(0,w.A)(xe),ct=i.useRef(),ft=(0,y.A)((function(){void 0!==ct.current&&(document.body.style.WebkitUserSelect=ct.current,ct.current=void 0),ot.clear()}));i.useEffect((function(){return ft}),[ft]);var dt=function(e){M.clear(),D=!0,st(!0),Ie&&!lt&&Ie(e)},pt=(0,y.A)((function(e){M.start(800+Ae,(function(){D=!1})),st(!1),Ee&&lt&&Ee(e),tt.start(Ge.transitions.duration.shortest,(function(){Je.current=!1}))})),ht=function(e){Je.current&&"touchstart"!==e.type||($e&&$e.removeAttribute("title"),rt.clear(),nt.clear(),ve||D&&me?rt.start(D?me:ve,(function(){dt(e)})):dt(e))},vt=function(e){rt.clear(),nt.start(Ae,(function(){pt(e)}))},gt=(0,O.A)(),mt=gt.isFocusVisibleRef,yt=gt.onBlur,bt=gt.onFocus,wt=gt.ref,Ot=I(i.useState(!1),2)[1],xt=function(e){yt(e),!1===mt.current&&(Ot(!1),vt(e))},St=function(e){$e||Ze(e.currentTarget),bt(e),!0===mt.current&&(Ot(!0),ht(e))},At=function(e){Je.current=!0;var t=Ve.props;t.onTouchStart&&t.onTouchStart(e)};i.useEffect((function(){if(lt)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||pt(e)}}),[pt,lt]);var Pt=(0,b.A)(Ve.ref,wt,Ze,t);We||0===We||(lt=!1);var jt=i.useRef(),Et={},It="string"==typeof We;ie?(Et.title=lt||!It||ue?null:We,Et["aria-describedby"]=lt?ut:null):(Et["aria-label"]=It?We:null,Et["aria-labelledby"]=lt&&!It?ut:null);var Tt=(0,o.A)({},Et,Ue,Ve.props,{className:(0,a.A)(Ue.className,Ve.props.className),onTouchStart:At,ref:Pt},Oe?{onMouseMove:function(e){var t=Ve.props;t.onMouseMove&&t.onMouseMove(e),L={x:e.clientX,y:e.clientY},jt.current&&jt.current.update()}}:{});var Ct={};pe||(Tt.onTouchStart=function(e){At(e),nt.clear(),tt.clear(),ft(),ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ot.start(be,(function(){document.body.style.WebkitUserSelect=ct.current,ht(e)}))},Tt.onTouchEnd=function(e){Ve.props.onTouchEnd&&Ve.props.onTouchEnd(e),ft(),nt.start(je,(function(){pt(e)}))}),ue||(Tt.onMouseOver=z(ht,Tt.onMouseOver),Tt.onMouseLeave=z(vt,Tt.onMouseLeave),et||(Ct.onMouseOver=ht,Ct.onMouseLeave=vt)),se||(Tt.onFocus=z(St,Tt.onFocus),Tt.onBlur=z(xt,Tt.onBlur),et||(Ct.onFocus=St,Ct.onBlur=xt));var kt=i.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Ye),options:{element:Ye,padding:4}}];return null!=(e=Ne.popperOptions)&&e.modifiers&&(t=t.concat(Ne.popperOptions.modifiers)),(0,o.A)({},Ne.popperOptions,{modifiers:t})}),[Ye,Ne]),_t=(0,o.A)({},X,{isRtl:qe,arrow:Q,disableInteractive:et,placement:ke,PopperComponentProp:_e,touch:Je.current}),Rt=function(e){var t=e.classes,r=e.disableInteractive,n=e.arrow,o=e.touch,i=e.placement,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,v.A)(i.split("-")[0]))],arrow:["arrow"]};return(0,u.A)(a,P,t)}(_t),Nt=null!=(r=null!=(c=ze.popper)?c:te.Popper)?r:_,Dt=null!=(d=null!=(S=null!=(A=ze.transition)?A:te.Transition)?S:Fe)?d:g.A,Mt=null!=(j=null!=(T=ze.tooltip)?T:te.Tooltip)?j:R,Lt=null!=(C=null!=(W=ze.arrow)?W:te.Arrow)?C:N,zt=(0,l.X)(Nt,(0,o.A)({},Ne,null!=(B=Me.popper)?B:ne.popper,{className:(0,a.A)(Rt.popper,null==Ne?void 0:Ne.className,null==(F=null!=(H=Me.popper)?H:ne.popper)?void 0:F.className)}),_t),Wt=(0,l.X)(Dt,(0,o.A)({},He,null!=(U=Me.transition)?U:ne.transition),_t),Bt=(0,l.X)(Mt,(0,o.A)({},null!=(V=Me.tooltip)?V:ne.tooltip,{className:(0,a.A)(Rt.tooltip,null==(G=null!=(q=Me.tooltip)?q:ne.tooltip)?void 0:G.className)}),_t),Ft=(0,l.X)(Lt,(0,o.A)({},null!=(K=Me.arrow)?K:ne.arrow,{className:(0,a.A)(Rt.arrow,null==($=null!=(Z=Me.arrow)?Z:ne.arrow)?void 0:$.className)}),_t);return(0,E.jsxs)(i.Fragment,{children:[i.cloneElement(Ve,Tt),(0,E.jsx)(Nt,(0,o.A)({as:null!=_e?_e:m.A,placement:ke,anchorEl:Oe?{getBoundingClientRect:function(){return{top:L.y,left:L.x,right:L.x,bottom:L.y,width:0,height:0}}}:$e,popperRef:jt,open:!!$e&&lt,id:ut,transition:!0},Ct,zt,{popperOptions:kt,children:function(e){var t=e.TransitionProps;return(0,E.jsx)(Dt,(0,o.A)({timeout:Ge.transitions.duration.shorter},t,Wt,{children:(0,E.jsxs)(Mt,(0,o.A)({},Bt,{children:[We,Q?(0,E.jsx)(Lt,(0,o.A)({},Ft,{ref:Qe})):null]}))}))}}))]})}))},48281:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(5550),o=r(63063),i=r(78281),a=r(20997),s=r(24972),l=r(80408),u=r(49801),c=r(83542),f=r(71905),d=r(95298),p=r(88842);function h(e){return(0,p.Ay)("MuiTypography",e)}(0,d.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var v=r(28477),g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],m=(0,u.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,f.A)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.A)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};const w=i.forwardRef((function(e,t){var r=(0,c.A)({props:e,name:"MuiTypography"}),i=function(e){return b[e]||e}(r.color),u=(0,s.A)((0,o.A)({},r,{color:i})),d=u.align,p=void 0===d?"inherit":d,w=u.className,O=u.component,x=u.gutterBottom,S=void 0!==x&&x,A=u.noWrap,P=void 0!==A&&A,j=u.paragraph,E=void 0!==j&&j,I=u.variant,T=void 0===I?"body1":I,C=u.variantMapping,k=void 0===C?y:C,_=(0,n.A)(u,g),R=(0,o.A)({},u,{align:p,color:i,className:w,component:O,gutterBottom:S,noWrap:P,paragraph:E,variant:T,variantMapping:k}),N=O||(E?"p":k[T]||y[T])||"span",D=function(e){var t=e.align,r=e.gutterBottom,n=e.noWrap,o=e.paragraph,i=e.variant,a=e.classes,s={root:["root",i,"inherit"!==e.align&&"align".concat((0,f.A)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,l.A)(s,h,a)}(R);return(0,v.jsx)(m,(0,o.A)({as:N,ref:t,ownerState:R,className:(0,a.A)(D.root,w)},_))}))},67083:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},86673:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(78281);var n=r(87712),o=r(28477);const i=(0,n.A)((0,o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},38569:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(78281);var n=r(87712),o=r(28477);const i=(0,n.A)((0,o.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},37983:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var n=r(63063),o=r(5550),i=r(75730),a=r(74538),s=r(49727),l=r(55870),u=r(18024);function c(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=r(83032);const d={black:"#000",white:"#fff"};var p=r(67083);const h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};const v={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};const b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var w=["mode","contrastThreshold","tonalOffset"],O={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,f.a)(e.main,o):"dark"===t&&(e.dark=(0,f.e$)(e.main,i)))}function A(e){var t=e.mode,r=void 0===t?"light":t,s=e.contrastThreshold,l=void 0===s?3:s,u=e.tonalOffset,c=void 0===u?.2:u,A=(0,o.A)(e,w),P=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(r),j=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(r),E=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[500],light:v[300],dark:v[700]}:{main:v[700],light:v[400],dark:v[800]}}(r),I=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(r),T=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(r),C=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(r);function k(e){return(0,f.eM)(e,x.text.primary)>=l?x.text.primary:O.text.primary}var _=function(e){var t=e.color,r=e.name,o=e.mainShade,a=void 0===o?500:o,s=e.lightShade,l=void 0===s?300:s,u=e.darkShade,f=void 0===u?700:u;if(!(t=(0,n.A)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,i.A)(11,r?" (".concat(r,")"):"",a));if("string"!=typeof t.main)throw new Error((0,i.A)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return S(t,"light",l,c),S(t,"dark",f,c),t.contrastText||(t.contrastText=k(t.main)),t},R={dark:x,light:O};return(0,a.A)((0,n.A)({common:(0,n.A)({},d),mode:r,primary:_({color:P,name:"primary"}),secondary:_({color:j,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:E,name:"error"}),warning:_({color:C,name:"warning"}),info:_({color:I,name:"info"}),success:_({color:T,name:"success"}),grey:p.A,contrastThreshold:l,getContrastText:k,augmentColor:_,tonalOffset:c},R[r]),A)}var P=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var j={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function I(e,t){var r="function"==typeof t?t(e):t,i=r.fontFamily,s=void 0===i?E:i,l=r.fontSize,u=void 0===l?14:l,c=r.fontWeightLight,f=void 0===c?300:c,d=r.fontWeightRegular,p=void 0===d?400:d,h=r.fontWeightMedium,v=void 0===h?500:h,g=r.fontWeightBold,m=void 0===g?700:g,y=r.htmlFontSize,b=void 0===y?16:y,w=r.allVariants,O=r.pxToRem,x=(0,o.A)(r,P);var S=u/14,A=O||function(e){return"".concat(e/b*S,"rem")},I=function(e,t,r,o,i){return(0,n.A)({fontFamily:s,fontWeight:e,fontSize:A(t),lineHeight:r},s===E?{letterSpacing:"".concat((a=o/t,Math.round(1e5*a)/1e5),"em")}:{},i,w);var a},T={h1:I(f,96,1.167,-1.5),h2:I(f,60,1.2,-.5),h3:I(p,48,1.167,0),h4:I(p,34,1.235,.25),h5:I(p,24,1.334,0),h6:I(v,20,1.6,.15),subtitle1:I(p,16,1.75,.15),subtitle2:I(v,14,1.57,.1),body1:I(p,16,1.5,.15),body2:I(p,14,1.43,.15),button:I(v,14,1.75,.4,j),caption:I(p,12,1.66,.4),overline:I(p,12,2.66,1,j),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,n.A)({htmlFontSize:b,pxToRem:A,fontFamily:s,fontSize:u,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:m},T),x,{clone:!1})}function T(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const C=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];var k=r(88384);const _={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};var R=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,r=void 0===t?{}:t,f=e.palette,d=void 0===f?{}:f,p=e.transitions,h=void 0===p?{}:p,v=e.typography,g=void 0===v?{}:v,m=(0,o.A)(e,R);if(e.vars)throw new Error((0,i.A)(18));var y,b,w=A(d),O=(0,u.A)(e),x=(0,a.A)(O,{mixins:(y=O.breakpoints,b=r,(0,n.A)({toolbar:c(c({minHeight:56},y.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),y.up("sm"),{minHeight:64})},b)),palette:w,shadows:C.slice(),typography:I(w,g),transitions:(0,k.Ay)(h),zIndex:(0,n.A)({},_)});x=(0,a.A)(x,m);for(var S=arguments.length,P=new Array(S>1?S-1:0),j=1;j<S;j++)P[j-1]=arguments[j];return(x=P.reduce((function(e,t){return(0,a.A)(e,t)}),x)).unstable_sxConfig=(0,n.A)({},s.A,null==m?void 0:m.unstable_sxConfig),x.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},x}const D=N},88384:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,p0:()=>s});var n=r(5550),o=r(63063),i=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function u(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function c(e){var t=(0,o.A)({},a,e.easing),r=(0,o.A)({},s,e.duration);return(0,o.A)({getAutoHeightDuration:u,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,s=void 0===a?r.standard:a,u=o.easing,c=void 0===u?t.easeInOut:u,f=o.delay,d=void 0===f?0:f;(0,n.A)(o,i);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:l(s)," ").concat(c," ").concat("string"==typeof d?d:l(d))})).join(",")}},e,{easing:t,duration:r})}},19036:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(37983).A)()},12801:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n="$$material"},49801:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,_n:()=>s,ep:()=>a});var n=r(11746),o=r(19036),i=r(12801),a=function(e){return(0,n.MC)(e)&&"classes"!==e},s=n.MC;const l=(0,n.Ay)({themeId:i.A,defaultTheme:o.A,rootShouldForwardProp:a})},77682:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(78281);var n=r(10901),o=r(19036),i=r(12801);function a(){var e=(0,n.A)(o.A);return e[i.A]||e}},83542:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(15534),o=r(19036),i=r(12801);function a(e){var t=e.props,r=e.name;return(0,n.A)({props:t,name:r,defaultTheme:o.A,themeId:i.A})}},57479:(e,t,r)=>{"use strict";r.d(t,{c:()=>o,q:()=>n});var n=function(e){return e.scrollTop};function o(e,t){var r,n,o=e.timeout,i=e.easing,a=e.style,s=void 0===a?{}:a;return{duration:null!=(r=s.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:s.transitionDelay}}},71905:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(21508).A},87712:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(63063),o=r(78281),i=r(57026),a=r(28477);function s(e,t){function r(r,o){return(0,a.jsx)(i.A,(0,n.A)({"data-testid":"".concat(t,"Icon"),ref:o},r,{children:e}))}return r.muiName=i.A.muiName,o.memo(o.forwardRef(r))}},27572:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(91586).A},97536:(e,t,r)=>{"use strict";r.r(t),r.d(t,{capitalize:()=>o.A,createChainedFunction:()=>i,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>u.A,ownerDocument:()=>c.A,ownerWindow:()=>f.A,requirePropFactory:()=>d,setRef:()=>p,unstable_ClassNameGenerator:()=>O,unstable_useEnhancedEffect:()=>h.A,unstable_useId:()=>v.A,unsupportedProp:()=>g,useControlled:()=>m.A,useEventCallback:()=>y.A,useForkRef:()=>b.A,useIsFocusVisible:()=>w.A});var n=r(93672),o=r(71905);const i=r(47790).A;var a=r(87712),s=r(27572);const l=function(e,t){return function(){return null}};var u=r(19985),c=r(48945),f=r(94944);r(63063);const d=function(e,t){return function(){return null}};const p=r(68490).A;var h=r(97091),v=r(48005);const g=function(e,t,r,n,o){return null};var m=r(98334),y=r(71425),b=r(84147),w=r(86386),O={configure:function(e){n.A.configure(e)}}},19985:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(78281);const o=function(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},48945:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(92266).A},94944:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(52562).A},98334:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(35714).A},97091:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(78006).A},71425:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(32540).A},84147:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(1244).A},48005:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(70946).A},86386:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(89062).A},24715:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(63063),o=r(5550),i=r(1244),a=r(65884),s=r(90680),l=r(42735);function u(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"];function p(e,t){var r=t.className,p=t.elementType,h=t.ownerState,v=t.externalForwardedProps,g=t.getSlotOwnerState,m=t.internalForwardedProps,y=(0,o.A)(t,c),b=v.component,w=v.slots,O=void 0===w?u({},e,void 0):w,x=v.slotProps,S=void 0===x?u({},e,void 0):x,A=(0,o.A)(v,f),P=O[e]||p,j=(0,a.Y)(S[e],h),E=(0,s.p)((0,n.A)({className:r},y,{externalForwardedProps:"root"===e?A:void 0,externalSlotProps:j})),I=E.props.component,T=E.internalRef,C=(0,o.A)(E.props,d),k=(0,i.A)(T,null==j?void 0:j.ref,t.ref),_=g?g(C):{},R=(0,n.A)({},h,_),N="root"===e?I||b:I,D=(0,l.X)(P,(0,n.A)({},"root"===e&&!b&&!O[e]&&m,"root"!==e&&!O[e]&&m,C,N&&{as:N},{ref:k}),R);return Object.keys(_).forEach((function(e){delete D[e]})),[P,D]}},87584:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(83542);function o(e){return n.A}},35195:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(78281);var n=r(45748),o=r(28477);function i(e){var t=e.styles,r=e.defaultTheme,i=void 0===r?{}:r,a="function"==typeof t?function(e){return t(null==(r=e)||0===Object.keys(r).length?i:e);var r}:t;return(0,o.jsx)(n.mL,{styles:a})}},90157:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(78281);var n,o=r(61334),i=r(75888),a=r(28477);function s(e){var t=e.injectFirst,r=e.children;return t&&n?(0,a.jsx)(o.C,{value:n,children:r}):r}"object"==typeof document&&(n=(0,i.A)({key:"css",prepend:!0}))},71145:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalStyles:()=>w.A,StyledEngineProvider:()=>b.A,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>O,internal_processStyles:()=>x,keyframes:()=>y.i7});var n=r(63063),o=r(78281),i=r(14796),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(61334),u=r(77604),c=r(99469),f=r(16286),d=s,p=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:p},v=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,u.SF)(t,r,n),(0,f.s)((function(){return(0,u.sk)(t,r,n)})),null},m=function e(t,r){var i,a,s=t.__emotion_real===t,f=s&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=v(t,r,s),p=d||h(f),m=!p("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var w=y.length,O=1;O<w;O++)b.push(y[O],y[0][O])}var x=(0,l.w)((function(e,t,r){var n=m&&e.as||f,i="",s=[],v=e;if(null==e.theme){for(var y in v={},e)v[y]=e[y];v.theme=o.useContext(l.T)}"string"==typeof e.className?i=(0,u.Rk)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var w=(0,c.J)(b.concat(s),t.registered,v);i+=t.key+"-"+w.name,void 0!==a&&(i+=" "+a);var O=m&&void 0===d?h(n):p,x={};for(var S in e)m&&"as"===S||O(S)&&(x[S]=e[S]);return x.className=i,x.ref=r,o.createElement(o.Fragment,null,o.createElement(g,{cache:t,serialized:w,isStringTag:"string"==typeof n}),o.createElement(n,x))}));return x.displayName=void 0!==i?i:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=f,x.__emotion_styles=b,x.__emotion_forwardProp=d,Object.defineProperty(x,"toString",{value:function(){return"."+a}}),x.withComponent=function(t,o){return e(t,(0,n.A)({},r,o,{shouldForwardProp:v(x,o,!0)})).apply(void 0,b)},x}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){m[e]=m(e)}));var y=r(45748),b=r(90157),w=r(35195);function O(e,t){return m(e,t)}var x=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},83032:(e,t,r)=>{"use strict";var n=r(61589);t.X4=p,t.e$=h,t.tL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return d(e)>.5?h(e,t):v(e,t)},t.eM=function(e,t){var r=d(e),n=d(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.a=v;var o=n(r(30451)),i=n(r(86921));function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,r)}function s(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,o.default)(9,e));var n,i=e.substring(t+1,e.length-1);if("color"===r){if(n=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,o.default)(10,n))}else i=i.split(",");return{type:r,values:i=i.map((function(e){return parseFloat(e)})),colorSpace:n}}var u=function(e){var t=l(e);return t.values.slice(0,3).map((function(e,r){return-1!==t.type.indexOf("hsl")&&0!==r?"".concat(e,"%"):e})).join(" ")};function c(e){var t=e.type,r=e.colorSpace,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function f(e){var t=(e=l(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),c({type:s,values:u})}function d(e){var t="hsl"===(e=l(e)).type||"hsla"===e.type?l(f(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,c(e)}function h(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return c(e)}function v(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return c(e)}},11746:(e,t,r)=>{"use strict";function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.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)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=r(61589);t.Ay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,r=e.defaultTheme,i=void 0===r?b:r,a=e.rootShouldForwardProp,s=void 0===a?y:a,d=e.slotShouldForwardProp,h=void 0===d?y:d,v=function(e){return(0,p.default)((0,l.default)({},e,{theme:O((0,l.default)({},e,{defaultTheme:i,themeId:t}))}))};return v.__mui_systemSx=!0,function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,c.internal_processStyles)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var a=r.name,d=r.slot,p=r.skipVariantsResolver,m=r.skipSx,b=r.overridesResolver,S=void 0===b?function(e){if(!e)return null;return function(t,r){return r[e]}}(w(d)):b,A=(0,u.default)(r,g),P=void 0!==p?p:d&&"Root"!==d&&"root"!==d||!1,j=m||!1;var E=y;"Root"===d||"root"===d?E=s:d?E=h:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);var I=(0,c.default)(e,(0,l.default)({shouldForwardProp:E,label:undefined},A)),T=function(e){return"function"==typeof e&&e.__emotion_real!==e||(0,f.isPlainObject)(e)?function(r){return x(e,(0,l.default)({},r,{theme:O({theme:r.theme,defaultTheme:i,themeId:t})}))}:e},C=function(r){for(var s=T(r),u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];var d=c?c.map(T):[];a&&S&&d.push((function(e){var r=O((0,l.default)({},e,{defaultTheme:i,themeId:t}));if(!r.components||!r.components[a]||!r.components[a].styleOverrides)return null;var n=r.components[a].styleOverrides,s={};return Object.entries(n).forEach((function(t){var n=o(t,2),i=n[0],a=n[1];s[i]=x(a,(0,l.default)({},e,{theme:r}))})),S(e,s)})),a&&!P&&d.push((function(e){var r,n=O((0,l.default)({},e,{defaultTheme:i,themeId:t}));return x({variants:null==n||null==(r=n.components)||null==(r=r[a])?void 0:r.variants},(0,l.default)({},e,{theme:n}))})),j||d.push(v);var p=d.length-c.length;if(Array.isArray(r)&&p>0){var h=new Array(p).fill("");(s=[].concat(n(r),n(h))).raw=[].concat(n(r.raw),n(h))}var g=I.apply(void 0,[s].concat(n(d)));return e.muiName&&(g.muiName=e.muiName),g};return I.withConfig&&(C.withConfig=I.withConfig),C}},t.MC=y;var l=s(r(88041)),u=s(r(84376)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(71145)),f=r(27044),d=(s(r(4716)),s(r(99702)),s(r(38003))),p=s(r(84236)),h=["ownerState"],v=["variants"],g=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function y(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var b=(0,d.default)(),w=function(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e};function O(e){var t,r=e.defaultTheme,n=e.theme,o=e.themeId;return t=n,0===Object.keys(t).length?r:n[o]||n}function x(e,t){var r=t.ownerState,n=(0,u.default)(t,h),o="function"==typeof e?e((0,l.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((function(e){return x(e,(0,l.default)({ownerState:r},n))}));if(o&&"object"==typeof o&&Array.isArray(o.variants)){var i=o.variants,a=void 0===i?[]:i,s=(0,u.default)(o,v);return a.forEach((function(e){var t=!0;"function"==typeof e.props?t=e.props((0,l.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((function(o){(null==r?void 0:r[o])!==e.props[o]&&n[o]!==e.props[o]&&(t=!1)})),t&&(Array.isArray(s)||(s=[s]),s.push("function"==typeof e.style?e.style((0,l.default)({ownerState:r},n,r)):e.style))})),s}return o}},39701:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,I:()=>u});var n=r(63063),o=r(5550),i=r(78281),a=r(28477),s=["value"],l=i.createContext();var u=function(){var e=i.useContext(l);return null!=e&&e};const c=function(e){var t=e.value,r=(0,o.A)(e,s);return(0,a.jsx)(l.Provider,(0,n.A)({value:null==t||t},r))}},38989:(e,t,r)=>{"use strict";r.d(t,{EU:()=>s,NI:()=>a,iZ:()=>u,kW:()=>c,vf:()=>l,zu:()=>o});var n=r(74538);var o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,r){var n=e.theme||{};if(Array.isArray(t)){var a=n.breakpoints||i;return t.reduce((function(e,n,o){return e[a.up(a.keys[o])]=r(t[o]),e}),{})}if("object"==typeof t){var s=n.breakpoints||i;return Object.keys(t).reduce((function(e,n){if(-1!==Object.keys(s.values||o).indexOf(n)){e[s.up(n)]=r(t[n],n)}else{var i=n;e[i]=t[i]}return e}),{})}return r(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,r){return e[t.up(r)]={},e}),{}))||{}}function l(e,t){return e.reduce((function(e,t){var r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function u(e){for(var t=s(e),r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=[t].concat(o).reduce((function(e,t){return(0,n.A)(e,t)}),{});return l(Object.keys(t),a)}function c(e){var t,r=e.values,n=e.breakpoints,o=e.base||function(e,t){if("object"!=typeof e)return{};var r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((function(t,n){n<e.length&&(r[t]=!0)})):n.forEach((function(t){null!=e[t]&&(r[t]=!0)})),r}(r,n),i=Object.keys(o);return 0===i.length?r:i.reduce((function(e,n,o){return Array.isArray(r)?(e[n]=null!=r[o]?r[o]:r[t],t=o):"object"==typeof r?(e[n]=null!=r[n]?r[n]:r[t],t=n):e[n]=r,e}),{})}},63548:(e,t,r)=>{"use strict";r.d(t,{X4:()=>l,a:()=>c,e$:()=>u});var n=r(75730),o=r(4298);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,o.A)(e,t,r)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.A)(9,e));var o,i=e.substring(t+1,e.length-1);if("color"===r){if(o=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,n.A)(10,o))}else i=i.split(",");return{type:r,values:i=i.map((function(e){return parseFloat(e)})),colorSpace:o}}function s(e){var t=e.type,r=e.colorSpace,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function l(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,s(e)}function u(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function c(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}},21665:(e,t,r)=>{"use strict";function n(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=this;return r.vars&&"function"==typeof r.getColorSchemeSelector?n({},r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)"),t):r.palette.mode===e?t:{}}r.d(t,{A:()=>o})},24791:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(5550),o=r(63063);function i(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=["values","unit","step"],s=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,o.A)({},e,i({},t.key,t.val))}),{})};function l(e){var t=e.values,r=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,i=e.unit,l=void 0===i?"px":i,u=e.step,c=void 0===u?5:u,f=(0,n.A)(e,a),d=s(r),p=Object.keys(d);function h(e){var t="number"==typeof r[e]?r[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function v(e){var t="number"==typeof r[e]?r[e]:e;return"@media (max-width:".concat(t-c/100).concat(l,")")}function g(e,t){var n=p.indexOf(t);return"@media (min-width:".concat("number"==typeof r[e]?r[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof r[p[n]]?r[p[n]]:t)-c/100).concat(l,")")}return(0,o.A)({keys:p,values:d,up:h,down:v,between:g,only:function(e){return p.indexOf(e)+1<p.length?g(e,p[p.indexOf(e)+1]):h(e)},not:function(e){var t=p.indexOf(e);return 0===t?h(p[1]):t===p.length-1?v(p[t]):g(e,p[p.indexOf(e)+1]).replace("@media","@media not all and")},unit:l},f)}},18024:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(63063),o=r(5550),i=r(74538),a=r(24791);const s={borderRadius:4};var l=r(85910);var u=r(55870),c=r(49727),f=r(21665),d=["breakpoints","palette","spacing","shape"];const p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,p=e.palette,h=void 0===p?{}:p,v=e.spacing,g=e.shape,m=void 0===g?{}:g,y=(0,o.A)(e,d),b=(0,a.A)(r),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,l.LX)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0===r.length?[1]:r).map((function(e){var r=t(e);return"number"==typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}(v),O=(0,i.A)({breakpoints:b,direction:"ltr",components:{},palette:(0,n.A)({mode:"light"},h),spacing:w,shape:(0,n.A)({},s,m)},y);O.applyStyles=f.A;for(var x=arguments.length,S=new Array(x>1?x-1:0),A=1;A<x;A++)S[A-1]=arguments[A];return(O=S.reduce((function(e,t){return(0,i.A)(e,t)}),O)).unstable_sxConfig=(0,n.A)({},c.A,null==y?void 0:y.unstable_sxConfig),O.unstable_sx=function(e){return(0,u.A)({sx:e,theme:this})},O}},38003:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var n=r(18024),o=r(24791),i=r(21665)},30917:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(74538);const o=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},85910:(e,t,r)=>{"use strict";r.d(t,{LX:()=>y,MA:()=>m,_W:()=>b,Lc:()=>x,Ms:()=>S});var n=r(38989),o=r(65620),i=r(30917);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l,u,c={m:"margin",p:"padding"},f={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},d={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p=(l=function(e){if(e.length>2){if(!d[e])return[e];e=d[e]}var t=a(e.split(""),2),r=t[0],n=t[1],o=c[r],i=f[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]},u={},function(e){return void 0===u[e]&&(u[e]=l(e)),u[e]}),h=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],v=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],g=[].concat(h,v);function m(e,t,r,n){var i,a=null!=(i=(0,o.Yn)(e,t,!1))?i:r;return"number"==typeof a?function(e){return"string"==typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"==typeof e?e:a[e]}:"function"==typeof a?a:function(){}}function y(e){return m(e,"spacing",8)}function b(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}function w(e,t,r,o){if(-1===t.indexOf(r))return null;var i=function(e,t){return function(r){return e.reduce((function(e,n){return e[n]=b(t,r),e}),{})}}(p(r),o),a=e[r];return(0,n.NI)(e,a,i)}function O(e,t){var r=y(e.theme);return Object.keys(e).map((function(n){return w(e,t,n,r)})).reduce(i.A,{})}function x(e){return O(e,h)}function S(e){return O(e,v)}function A(e){return O(e,g)}x.propTypes={},x.filterProps=h,S.propTypes={},S.filterProps=v,A.propTypes={},A.filterProps=g},65620:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,BO:()=>s,Yn:()=>a});var n=r(21508),o=r(38989);function i(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){var n="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=n)return n}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:a(e,r)||o,t&&(n=t(n,o,e)),n}const l=function(e){var t=e.prop,r=e.cssProperty,l=void 0===r?e.prop:r,u=e.themeKey,c=e.transform,f=function(e){if(null==e[t])return null;var r=e[t],f=a(e.theme,u)||{};return(0,o.NI)(e,r,(function(e){var r=s(f,c,e);return e===r&&"string"==typeof e&&(r=s(f,c,"".concat(t).concat("default"===e?"":(0,n.A)(e)),e)),!1===l?r:i({},l,r)}))};return f.propTypes={},f.filterProps=[t],f}},49727:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(85910),o=r(65620),i=r(30917);const a=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return t.filterProps.forEach((function(r){e[r]=t})),e}),{}),o=function(e){return Object.keys(e).reduce((function(t,r){return n[r]?(0,i.A)(t,n[r](e)):t}),{})};return o.propTypes={},o.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),o};var s=r(38989);function l(e){return"number"!=typeof e?e:"".concat(e,"px solid")}function u(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}var c=u("border",l),f=u("borderTop",l),d=u("borderRight",l),p=u("borderBottom",l),h=u("borderLeft",l),v=u("borderColor"),g=u("borderTopColor"),m=u("borderRightColor"),y=u("borderBottomColor"),b=u("borderLeftColor"),w=u("outline",l),O=u("outlineColor"),x=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.NI)(e,e.borderRadius,(function(e){return{borderRadius:(0,n._W)(t,e)}}))}return null};x.propTypes={},x.filterProps=["borderRadius"];a(c,f,d,p,h,v,g,m,y,b,x,w,O);var S=function(e){if(void 0!==e.gap&&null!==e.gap){var t=(0,n.MA)(e.theme,"spacing",8,"gap");return(0,s.NI)(e,e.gap,(function(e){return{gap:(0,n._W)(t,e)}}))}return null};S.propTypes={},S.filterProps=["gap"];var A=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,n.MA)(e.theme,"spacing",8,"columnGap");return(0,s.NI)(e,e.columnGap,(function(e){return{columnGap:(0,n._W)(t,e)}}))}return null};A.propTypes={},A.filterProps=["columnGap"];var P=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,n.MA)(e.theme,"spacing",8,"rowGap");return(0,s.NI)(e,e.rowGap,(function(e){return{rowGap:(0,n._W)(t,e)}}))}return null};P.propTypes={},P.filterProps=["rowGap"];a(S,A,P,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function j(e,t){return"grey"===t?t:e}a((0,o.Ay)({prop:"color",themeKey:"palette",transform:j}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:j}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:j}));function E(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var I=(0,o.Ay)({prop:"width",transform:E}),T=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,s.NI)(e,e.maxWidth,(function(t){var r,n,o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.zu[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:E(t)}}))}return null};T.filterProps=["maxWidth"];var C=(0,o.Ay)({prop:"minWidth",transform:E}),k=(0,o.Ay)({prop:"height",transform:E}),_=(0,o.Ay)({prop:"maxHeight",transform:E}),R=(0,o.Ay)({prop:"minHeight",transform:E});(0,o.Ay)({prop:"size",cssProperty:"width",transform:E}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:E}),a(I,T,C,k,_,R,(0,o.Ay)({prop:"boxSizing"}));const N={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:x},color:{themeKey:"palette",transform:j},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:j},backgroundColor:{themeKey:"palette",transform:j},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:P},columnGap:{style:A},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:T},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},24972:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(63063),o=r(5550),i=r(74538),a=r(49727);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=["sx"],c=function(e){var t,r,n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((function(t){o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function f(e){var t,r=e.sx,a=(0,o.A)(e,u),l=c(a),f=l.systemProps,d=l.otherProps;return t=Array.isArray(r)?[f].concat(s(r)):"function"==typeof r?function(){var e=r.apply(void 0,arguments);return(0,i.Q)(e)?(0,n.A)({},f,e):f}:(0,n.A)({},f,r),(0,n.A)({},d,{sx:t})}},84236:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>n.k,unstable_defaultSxConfig:()=>i.A});var n=r(55870),o=r(24972),i=r(49727)},55870:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,k:()=>u});var n=r(21508),o=r(30917),i=r(65620),a=r(38989),s=r(49727);function l(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){function e(e,t,r,o){var s=l(l({},e,t),"theme",r),u=o[e];if(!u)return l({},e,t);var c=u.cssProperty,f=void 0===c?e:c,d=u.themeKey,p=u.transform,h=u.style;if(null==t)return null;if("typography"===d&&"inherit"===t)return l({},e,t);var v=(0,i.Yn)(r,d)||{};if(h)return h(s);return(0,a.NI)(s,t,(function(t){var r=(0,i.BO)(v,p,t);return t===r&&"string"==typeof t&&(r=(0,i.BO)(v,p,"".concat(e).concat("default"===t?"":(0,n.A)(t)),t)),!1===f?r:l({},f,r)}))}return function t(r){var n,i=r||{},u=i.sx,c=i.theme,f=void 0===c?{}:c;if(!u)return null;var d=null!=(n=f.unstable_sxConfig)?n:s.A;function p(r){var n=r;if("function"==typeof r)n=r(f);else if("object"!=typeof r)return r;if(!n)return null;var i=(0,a.EU)(f.breakpoints),s=Object.keys(i),u=i;return Object.keys(n).forEach((function(r){var i,s,c=(i=n[r],s=f,"function"==typeof i?i(s):i);if(null!=c)if("object"==typeof c)if(d[r])u=(0,o.A)(u,e(r,c,f,d));else{var p=(0,a.NI)({theme:f},c,(function(e){return l({},r,e)}));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),o=new Set(n);return t.every((function(e){return o.size===Object.keys(e).length}))}(p,c)?u=(0,o.A)(u,p):u[r]=t({sx:c,theme:f})}else u=(0,o.A)(u,e(r,c,f,d))})),(0,a.vf)(s,u)}return Array.isArray(u)?u.map(p):p(u)}}var c=u();c.filterProps=["sx"];const f=c},10901:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(18024),o=r(31124),i=(0,n.A)();const a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,o.A)(e)}},54241:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94204);function o(e){var t=e.theme,r=e.name,o=e.props;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,o):o}},15534:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(54241),o=r(10901);function i(e){var t=e.props,r=e.name,i=e.defaultTheme,a=e.themeId,s=(0,o.A)(i);return a&&(s=s[a]||s),(0,n.A)({theme:s,name:r,props:t})}},31124:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(78281),o=r(61334);const i=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=n.useContext(o.T);return r&&(e=r,0!==Object.keys(e).length)?r:t}},1936:(e,t,r)=>{"use strict";t.A=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(78281)),o=r(71145);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}t.A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=n.useContext(o.ThemeContext);return r&&(e=r,0!==Object.keys(e).length)?r:t}},93672:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n,o=function(e){return e};const i=(n=o,{configure:function(e){n=e},generate:function(e){return n(e)},reset:function(){n=o}})},21508:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(75730);function o(e){if("string"!=typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4716:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(21508)},4298:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))}},86921:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(4298)},80408:(e,t,r)=>{"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n={};return Object.keys(e).forEach((function(o){n[o]=e[o].reduce((function(e,n){if(n){var o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{A:()=>n})},47790:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){return null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}}),(function(){}))}r.d(t,{A:()=>n})},91586:(e,t,r)=>{"use strict";function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){e.apply(n,i)}),r)}return n.clear=function(){clearTimeout(t)},n}r.d(t,{A:()=>n})},74538:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,Q:()=>o});var n=r(63063);function o(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function i(e){if(!o(e))return e;var t={};return Object.keys(e).forEach((function(r){t[r]=i(e[r])})),t}function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=r.clone?(0,n.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(n){"__proto__"!==n&&(o(t[n])&&n in e&&o(e[n])?s[n]=a(e[n],t[n],r):r.clone?s[n]=o(t[n])?i(t[n]):t[n]:s[n]=t[n])})),s}},27044:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,isPlainObject:()=>n.Q});var n=r(74538)},75730:(e,t,r)=>{"use strict";function n(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{A:()=>n})},30451:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(75730)},88842:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i,li:()=>o});var n=r(93672),o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i=o[t];return i?"".concat(r,"-").concat(i):"".concat(n.A.generate(e),"-").concat(t)}},95298:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(88842);function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o={};return t.forEach((function(t){o[t]=(0,n.Ay)(e,t,r)})),o}},99702:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,getFunctionName:()=>i});var n=r(38428),o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){var t="".concat(e).match(o);return t&&t[1]||""}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,r){var n=a(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case n.ForwardRef:return s(e,e.render,"ForwardRef");case n.Memo:return s(e,e.type,"memo");default:return}}}},35306:(e,t,r)=>{"use strict";function n(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}r.d(t,{A:()=>n})},92266:(e,t,r)=>{"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},52562:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(92266);function o(e){return(0,n.A)(e).defaultView||window}},94204:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(63063);function o(e,t){var r=(0,n.A)({},t);return Object.keys(e).forEach((function(i){if(i.toString().match(/^(components|slots)$/))r[i]=(0,n.A)({},e[i],r[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){var a=e[i]||{},s=t[i];r[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(r[i]=(0,n.A)({},s),Object.keys(a).forEach((function(e){r[i][e]=o(a[e],s[e])}))):r[i]=s:r[i]=a}else void 0===r[i]&&(r[i]=e[i])})),r}},68490:(e,t,r)=>{"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{A:()=>n})},35714:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(78281);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t=e.controlled,r=e.default,i=(e.name,e.state,n.useRef(void 0!==t).current),a=o(n.useState(r),2),s=a[0],l=a[1];return[i?t:s,n.useCallback((function(e){i||l(e)}),[])]}},78006:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(78281);const o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},32540:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(78281),o=r(78006);const i=function(e){var t=n.useRef(e);return(0,o.A)((function(){t.current=e})),n.useRef((function(){return t.current.apply(void 0,arguments)})).current}},1244:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(78281),o=r(68490);function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){(0,o.A)(t,e)}))}}),t)}},70946:(e,t,r)=>{"use strict";var n;r.d(t,{A:()=>u});var o=r(78281);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=0;var l=(n||(n=r.t(o,2)))["useId".toString()];function u(e){if(void 0!==l){var t=l();return null!=e?e:t}return function(e){var t=i(o.useState(e),2),r=t[0],n=t[1],a=e||r;return o.useEffect((function(){null==r&&n("mui-".concat(s+=1))}),[r]),a}(e)}},89062:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(78281),o=r(10887),i=!0,a=!1,s=new o.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t,r,n,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(r=(t=o).type,!("INPUT"!==(n=t.tagName)||!l[r]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable)}function p(){var e=n.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",f,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(function(){a=!1})),t.current=!1,!0)},ref:e}}},64984:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(78281);const o=function(e){var t=n.useRef({});return n.useEffect((function(){t.current=e})),t.current}},10887:(e,t,r)=>{"use strict";r.d(t,{E:()=>l,A:()=>u});var n=r(78281),o={};var i=[];function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentId=null,this.clear=function(){null!==t.currentId&&(clearTimeout(t.currentId),t.currentId=null)},this.disposeEffect=function(){return t.clear}}var t,r,n;return t=e,n=[{key:"create",value:function(){return new e}}],(r=[{key:"start",value:function(e,t){var r=this;this.clear(),this.currentId=setTimeout((function(){r.currentId=null,t()}),e)}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function u(){var e,t,r,a,s=(e=l.create,r=n.useRef(o),r.current===o&&(r.current=e(t)),r).current;return a=s.disposeEffect,n.useEffect(a,i),s}},70026:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},95771:(e,t,r)=>{"use strict";var n=r(3027);function o(){var e={},t=0,r=0,n=0;return{add:function(o,i){i||(i=o,o=0),o>r?r=o:o<n&&(n=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=n;t<=r;t++)for(var o=e[t],i=0;i<o.length;i++){(0,o[i])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,r=n.getOption(e,"async",!0),i=n.getOption(e,"auto",!0);i&&!r&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),r=!0);var a,s=o(),l=!1;function u(){for(l=!0;s.size();){var e=s;s=o(),e.process()}l=!1}function c(){var e;e=u,a=setTimeout(e,0)}return{add:function(e,t){!l&&i&&r&&0===s.size()&&c(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=r),a&&(clearTimeout(a),a=null),e?c():u())}}}},3027:e=>{"use strict";(e.exports={}).getOption=function(e,t,r){var n=e[t];if(null==n&&void 0!==r)return r;return n}},29466:(e,t,r)=>{"use strict";var n=r(86400),o=r(29122),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},29122:(e,t,r)=>{"use strict";var n=r(22354),o=r(86400),i=r(93900),a=r(82268),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(l,s),c=r(80988),f=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(n,l,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return u(n,s,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},49304:(e,t,r)=>{"use strict";var n=r(62273),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,l,u,c=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},1183:(e,t)=>{var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",f=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",d="((?:-?"+f+")|(?:inherit|auto))",p="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",v="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",m="(?!"+h+a+"\\))",y="(?="+h+a+"\\))",b="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,O=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),x=new RegExp("("+l+g+"[^;}]+;?)","gi"),S=new RegExp("("+l+"[^\\}]*?})","gi"),A=new RegExp("("+i+")ltr","gi"),P=new RegExp("("+i+")rtl","gi"),j=new RegExp(s+"(left)"+v+m+g,"gi"),E=new RegExp(s+"(right)"+v+m+g,"gi"),I=new RegExp(s+"(left)"+y,"gi"),T=new RegExp(s+"(right)"+y,"gi"),C=new RegExp(s+"(ltr)"+y,"gi"),k=new RegExp(s+"(rtl)"+y,"gi"),_=new RegExp(s+"([ns]?)e-resize","gi"),R=new RegExp(s+"([ns]?)w-resize","gi"),N=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+d+"(\\s+)"+d+"(\\s+)"+d+"(\\s+)"+d+b,"gi"),D=new RegExp("((?:-color|border-style)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+b,"gi"),M=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+f+")","gi"),L=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),z=new RegExp("(border-radius\\s*:\\s*)"+d+"(?:(?:\\s+"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?)?(?:(?:(?:\\s*\\/\\s*)"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?(?:\\s+"+d+")?)?"+b,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+d,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+d+"(\\s*)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+d,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+d,"gi"),U=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+d+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+d+"((?:\\s*,\\s*"+d+"){0,2}\\s*\\))","gi");function G(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function q(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function K(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?q(n)+" / "+q(o):q(n))+i}function $(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function Z(e,t,r){return t+$(r)}function X(e,t,r,n,o){return t+r+$(n)+o}function Y(e,t,r,n,o){return t+r+n+$(o)}return{transform:function(r,o){var i=new n(x,"`NOFLIP_SINGLE`"),a=new n(S,"`NOFLIP_CLASS`"),s=new n(O,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(C,"$1"+e).replace(k,"$1ltr").replace(w,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(T,"$1left").replace(w,"right")),r=r.replace(A,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(j,"$1"+e).replace(E,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(R,"$1$2e-resize").replace(w,"w-resize").replace(z,K).replace(W,Z).replace(B,Y).replace(F,Y).replace(H,Z).replace(U,X).replace(V,X).replace(N,"$1$2$3$8$5$6$7$4$9").replace(D,"$1$2$3$8$5$6$7$4$9").replace(M,G).replace(L,G),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)},75735:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,r){var o={};return r.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=n(e[t],r)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&r.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(i,r)(e[i],t[i],r):o[i]=n(t[i],r))})),o}function l(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?i.arrayMerge(e,r,i):s(e,r,i):n(r,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var u=l;e.exports=u},56750:(e,t,r)=>{"use strict";var n=r(80988),o=r(69907),i=r(82268),a=r(91464);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===l&&f?f.writable:!l});else{if(!c&&(s||l||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},80595:function(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return r&&o(a,r.prototype),a}function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(){"use strict";var e=Object.entries,n=Object.setPrototypeOf,o=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,u=Object.freeze,c=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,p=d.apply,h=d.construct;u||(u=function(e){return e}),c||(c=function(e){return e}),p||(p=function(e,t,r){return e.apply(t,r)}),h||(h=function(e,t){return r(e,i(t))});var v=E(Array.prototype.forEach),g=E(Array.prototype.pop),m=E(Array.prototype.push),y=E(String.prototype.toLowerCase),b=E(String.prototype.toString),w=E(String.prototype.match),O=E(String.prototype.replace),x=E(String.prototype.indexOf),S=E(String.prototype.trim),A=E(Object.prototype.hasOwnProperty),P=E(RegExp.prototype.test),j=I(TypeError);function E(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return p(e,t,n)}}function I(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(e,r)}}function T(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;n&&n(e,null);for(var i=t.length;i--;){var a=t[i];if("string"==typeof a){var s=r(a);s!==a&&(o(t)||(t[i]=s),a=s)}e[a]=!0}return e}function C(e){for(var t=0;t<e.length;t++)A(e,t)||(e[t]=null);return e}function k(r){var n,o=f(null),i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(e(r));try{for(i.s();!(n=i.n()).done;){var s=t(n.value,2),l=s[0],u=s[1];A(r,l)&&(Array.isArray(u)?o[l]=C(u):u&&"object"==typeof u&&u.constructor===Object?o[l]=k(u):o[l]=u)}}catch(e){i.e(e)}finally{i.f()}return o}function _(e,t){for(;null!==e;){var r=l(e,t);if(r){if(r.get)return E(r.get);if("function"==typeof r.value)return E(r.value)}e=s(e)}function n(){return null}return n}var R=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=u(["#text"]),B=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),F=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=c(/<%[\w\W]*|[\w\W]*%>/gm),q=c(/\${[\w\W]*}/gm),K=c(/^data-[\-\w.\u00B7-\uFFFF]/),$=c(/^aria-[\-\w]+$/),Z=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=c(/^(?:\w+script|data):/i),Y=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=c(/^html$/i),J=Object.freeze({__proto__:null,MUSTACHE_EXPR:V,ERB_EXPR:G,TMPLIT_EXPR:q,DATA_ATTR:K,ARIA_ATTR:$,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:X,ATTR_WHITESPACE:Y,DOCTYPE_NAME:Q}),ee=function(){return"undefined"==typeof window?null:window},te=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;var r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee(),r=function(e){return re(e)};if(r.version="3.0.9",r.removed=[],!t||!t.document||9!==t.document.nodeType)return r.isSupported=!1,r;var n,o=t.document,a=o,s=a.currentScript,l=t.DocumentFragment,c=t.HTMLTemplateElement,d=t.Node,p=t.Element,h=t.NodeFilter,E=t.NamedNodeMap,I=void 0===E?t.NamedNodeMap||t.MozNamedAttrMap:E,C=t.HTMLFormElement,V=t.DOMParser,G=t.trustedTypes,q=p.prototype,K=_(q,"cloneNode"),$=_(q,"nextSibling"),X=_(q,"childNodes"),Y=_(q,"parentNode");if("function"==typeof c){var ne=o.createElement("template");ne.content&&ne.content.ownerDocument&&(o=ne.content.ownerDocument)}var oe="",ie=o,ae=ie.implementation,se=ie.createNodeIterator,le=ie.createDocumentFragment,ue=ie.getElementsByTagName,ce=a.importNode,fe={};r.isSupported="function"==typeof e&&"function"==typeof Y&&ae&&void 0!==ae.createHTMLDocument;var de=J.MUSTACHE_EXPR,pe=J.ERB_EXPR,he=J.TMPLIT_EXPR,ve=J.DATA_ATTR,ge=J.ARIA_ATTR,me=J.IS_SCRIPT_OR_DATA,ye=J.ATTR_WHITESPACE,be=J.IS_ALLOWED_URI,we=null,Oe=T({},[].concat(i(R),i(N),i(D),i(L),i(W))),xe=null,Se=T({},[].concat(i(B),i(F),i(H),i(U))),Ae=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Pe=null,je=null,Ee=!0,Ie=!0,Te=!1,Ce=!0,ke=!1,_e=!1,Re=!1,Ne=!1,De=!1,Me=!1,Le=!1,ze=!0,We=!1,Be="user-content-",Fe=!0,He=!1,Ue={},Ve=null,Ge=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,Ke=T({},["audio","video","img","source","image","track"]),$e=null,Ze=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Je=Qe,et=!1,tt=null,rt=T({},[Xe,Ye,Qe],b),nt=null,ot=["application/xhtml+xml","text/html"],it="text/html",at=null,st=null,lt=o.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=k(e),nt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?it:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===nt?b:y,we=A(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,at):Oe,xe=A(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,at):Se,tt=A(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,b):rt,$e=A(e,"ADD_URI_SAFE_ATTR")?T(k(Ze),e.ADD_URI_SAFE_ATTR,at):Ze,qe=A(e,"ADD_DATA_URI_TAGS")?T(k(Ke),e.ADD_DATA_URI_TAGS,at):Ke,Ve=A(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,at):Ge,Pe=A(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,at):{},je=A(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,at):{},Ue=!!A(e,"USE_PROFILES")&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,_e=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Fe=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||Z,Je=e.NAMESPACE||Qe,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Ie=!1),Me&&(De=!0),Ue&&(we=T({},W),xe=[],!0===Ue.html&&(T(we,R),T(xe,B)),!0===Ue.svg&&(T(we,N),T(xe,F),T(xe,U)),!0===Ue.svgFilters&&(T(we,D),T(xe,F),T(xe,U)),!0===Ue.mathMl&&(T(we,L),T(xe,H),T(xe,U))),e.ADD_TAGS&&(we===Oe&&(we=k(we)),T(we,e.ADD_TAGS,at)),e.ADD_ATTR&&(xe===Se&&(xe=k(xe)),T(xe,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&T($e,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ve===Ge&&(Ve=k(Ve)),T(Ve,e.FORBID_CONTENTS,at)),Fe&&(we["#text"]=!0),_e&&T(we,["html","head","body"]),we.table&&(T(we,["tbody"]),delete Pe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');n=e.TRUSTED_TYPES_POLICY,oe=n.createHTML("")}else void 0===n&&(n=te(G,s)),null!==n&&"string"==typeof oe&&(oe=n.createHTML(""));u&&u(e),st=e}},ft=T({},["mi","mo","mn","ms","mtext"]),dt=T({},["foreignobject","desc","title","annotation-xml"]),pt=T({},["title","style","font","a","script"]),ht=T({},[].concat(i(N),i(D),i(M))),vt=T({},[].concat(i(L),i(z))),gt=function(e){var t=Y(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var r=y(e.tagName),n=y(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ye?t.namespaceURI===Qe?"svg"===r:t.namespaceURI===Xe?"svg"===r&&("annotation-xml"===n||ft[n]):Boolean(ht[r]):e.namespaceURI===Xe?t.namespaceURI===Qe?"math"===r:t.namespaceURI===Ye?"math"===r&&dt[n]:Boolean(vt[r]):e.namespaceURI===Qe?!(t.namespaceURI===Ye&&!dt[n])&&!(t.namespaceURI===Xe&&!ft[n])&&!vt[r]&&(pt[r]||!ht[r]):!("application/xhtml+xml"!==nt||!tt[e.namespaceURI]))},mt=function(e){m(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},yt=function(e,t){try{m(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(De||Me)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){var t=null,r=null;if(Ne)e="<remove></remove>"+e;else{var i=w(e,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===nt&&Je===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=n?n.createHTML(e):e;if(Je===Qe)try{t=(new V).parseFromString(a,nt)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?oe:a}catch(e){}}var s=t.body||t.documentElement;return e&&r&&s.insertBefore(o.createTextNode(r),s.childNodes[0]||null),Je===Qe?ue.call(t,_e?"html":"body")[0]:_e?t.documentElement:s},wt=function(e){return se.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null)},Ot=function(e){return e instanceof C&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof I)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(e){return"function"==typeof d&&e instanceof d},St=function(e,t,n){fe[e]&&v(fe[e],(function(e){e.call(r,t,n,st)}))},At=function(e){var t=null;if(St("beforeSanitizeElements",e,null),Ot(e))return mt(e),!0;var n=at(e.nodeName);if(St("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!xt(e.firstElementChild)&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return mt(e),!0;if(!we[n]||Pe[n]){if(!Pe[n]&&jt(n)){if(Ae.tagNameCheck instanceof RegExp&&P(Ae.tagNameCheck,n))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))return!1}if(Fe&&!Ve[n]){var o=Y(e)||e.parentNode,i=X(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(K(i[a],!0),$(e))}return mt(e),!0}return e instanceof p&&!gt(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!P(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&3===e.nodeType&&(t=e.textContent,v([de,pe,he],(function(e){t=O(t,e," ")})),e.textContent!==t&&(m(r.removed,{element:e.cloneNode()}),e.textContent=t)),St("afterSanitizeElements",e,null),!1):(mt(e),!0)},Pt=function(e,t,r){if(ze&&("id"===t||"name"===t)&&(r in o||r in lt))return!1;if(Ie&&!je[t]&&P(ve,t));else if(Ee&&P(ge,t));else if(!xe[t]||je[t]){if(!(jt(e)&&(Ae.tagNameCheck instanceof RegExp&&P(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&P(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&P(Ae.tagNameCheck,r)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))))return!1}else if($e[t]);else if(P(be,O(r,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==x(r,"data:")||!qe[e])if(Te&&!P(me,O(r,ye,"")));else if(r)return!1;return!0},jt=function(e){return"annotation-xml"!==e&&e.indexOf("-")>0},Et=function(e){St("beforeSanitizeAttributes",e,null);var t=e.attributes;if(t){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe},i=t.length,a=function(){var a=t[i],s=a.name,l=a.namespaceURI,u=a.value,c=at(s),f="value"===s?u:S(u);if(o.attrName=c,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,St("uponSanitizeAttribute",e,o),f=o.attrValue,o.forceKeepAttr)return 0;if(yt(s,e),!o.keepAttr)return 0;if(!Ce&&P(/\/>/i,f))return yt(s,e),0;ke&&v([de,pe,he],(function(e){f=O(f,e," ")}));var d=at(e.nodeName);if(!Pt(d,c,f))return 0;if(!We||"id"!==c&&"name"!==c||(yt(s,e),f=Be+f),n&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(l);else switch(G.getAttributeType(d,c)){case"TrustedHTML":f=n.createHTML(f);break;case"TrustedScriptURL":f=n.createScriptURL(f)}try{l?e.setAttributeNS(l,s,f):e.setAttribute(s,f),g(r.removed)}catch(e){}};i--;)a();St("afterSanitizeAttributes",e,null)}},It=function e(t){var r=null,n=wt(t);for(St("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)St("uponSanitizeShadowNode",r,null),At(r)||(r.content instanceof l&&e(r.content),Et(r));St("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,s=null,u=null;if((et=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xt(e)){if("function"!=typeof e.toString)throw j("toString is not a function");if("string"!=typeof(e=e.toString()))throw j("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Re||ct(t),r.removed=[],"string"==typeof e&&(He=!1),He){if(e.nodeName){var c=at(e.nodeName);if(!we[c]||Pe[c])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)1===(i=(o=bt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!De&&!ke&&!_e&&-1===e.indexOf("<"))return n&&Le?n.createHTML(e):e;if(!(o=bt(e)))return De?null:Le?oe:""}o&&Ne&&mt(o.firstChild);for(var f=wt(He?e:o);s=f.nextNode();)At(s)||(s.content instanceof l&&It(s.content),Et(s));if(He)return e;if(De){if(Me)for(u=le.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return(xe.shadowroot||xe.shadowrootmode)&&(u=ce.call(a,u,!0)),u}var p=_e?o.outerHTML:o.innerHTML;return _e&&we["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&P(Q,o.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+p),ke&&v([de,pe,he],(function(e){p=O(p,e," ")})),n&&Le?n.createHTML(p):p},r.setConfig=function(){ct(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Re=!0},r.clearConfig=function(){st=null,Re=!1},r.isValidAttribute=function(e,t,r){st||ct({});var n=at(e),o=at(t);return Pt(n,o,r)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],m(fe[e],t))},r.removeHook=function(e){if(fe[e])return g(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}return re()}()},81006:e=>{"use strict";var t=e.exports={};t.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),r=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(r[0]);return e>4?e:undefined}());var t},t.isLegacyOpera=function(){return!!window.opera}},27747:e=>{"use strict";(e.exports={}).forEach=function(e,t){for(var r=0;r<e.length;r++){var n=t(e[r]);if(n)return n}}},98944:(e,t,r)=>{"use strict";var n=r(81006);e.exports=function(e){var t=(e=e||{}).reporter,r=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(t){var r=e.important?" !important; ":"; ";return(t.join(r)+r).trim()}function a(e){return o(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,n.isIE(8)?s(a):function(a,s){var l=i(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,c=window.getComputedStyle(a),f=a.offsetWidth,d=a.offsetHeight;function p(){function r(){if("static"===c.position){a.style.setProperty("position","relative",e.important?"important":"");var r=function(t,r,n,o){var i=n[o];"auto"!==i&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+o+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",r),r.style.setProperty(o,"0",e.important?"important":""))};r(t,a,c,"top"),r(t,a,c,"right"),r(t,a,c,"bottom"),r(t,a,c,"left")}}""!==c.position&&(r(),u=!0);var i=document.createElement("object");i.style.cssText=l,i.tabIndex=-1,i.type="text/html",i.setAttribute("aria-hidden","true"),i.onload=function(){u||r(),function e(t,r){if(!t.contentDocument){var n=o(t);return n.checkForObjectDocumentTimeoutId&&window.clearTimeout(n.checkForObjectDocumentTimeoutId),void(n.checkForObjectDocumentTimeoutId=setTimeout((function(){n.checkForObjectDocumentTimeoutId=0,e(t,r)}),100))}r(t.contentDocument)}(this,(function(e){s(a)}))},n.isIE()||(i.data="about:blank"),o(a)&&(a.appendChild(i),o(a).object=i,n.isIE()&&(i.data="about:blank"))}o(a).startSize={width:f,height:d},r?r.add(p):p()}(a,s)},addListener:function(e,t){function r(){t(e)}if(n.isIE(8))o(e).object={proxy:r},e.attachEvent("onresize",r);else{var i=a(e);if(!i)throw new Error("Element is not detectable by this strategy.");i.contentDocument.defaultView.addEventListener("resize",r)}},uninstall:function(e){if(o(e)){var t=a(e);t&&(n.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}}}},42102:(e,t,r)=>{"use strict";var n=r(27747).forEach;e.exports=function(e){var t=(e=e||{}).reporter,r=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!r)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=function(){var e=500,t=500,r=document.createElement("div");r.style.cssText=u(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var n=document.createElement("div");n.style.cssText=u(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),n.appendChild(r),document.body.insertBefore(n,document.body.firstChild);var o=e-n.clientWidth,i=t-n.clientHeight;return document.body.removeChild(n),{width:o,height:i}}(),s="erd_scroll_detection_container";function l(e){!function(e,t,r){function n(r,n){n=n||function(t){e.head.appendChild(t)};var o=e.createElement("style");return o.innerHTML=r,o.id=t,n(o),o}if(!e.getElementById(t)){var o=r+"_animation",i=r+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+r+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",a+="."+i+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+o,"animation-name: "+o])+" }\n",a+="@-webkit-keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",n(a+="@keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function u(t){var r=e.important?" !important; ":"; ";return(t.join(r)+r).trim()}function c(e,r,n){if(e.addEventListener)e.addEventListener(r,n);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+r,n)}}function f(e,r,n){if(e.removeEventListener)e.removeEventListener(r,n);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+r,n)}}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,f){function h(){if(e.debug){var r=Array.prototype.slice.call(arguments);if(r.unshift(i.get(l),"Scroll: "),t.log.apply)t.log.apply(null,r);else for(var n=0;n<r.length;n++)t.log(r[n])}}function v(e){var t=o(e).container.childNodes[0],r=window.getComputedStyle(t);return!r.width||-1===r.width.indexOf("px")}function g(){var e=window.getComputedStyle(l),t={};return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function m(){if(h("storeStyle invoked."),o(l)){var e=g();o(l).style=e}else h("Aborting because element has been uninstalled")}function y(e,t,r){o(e).lastWidth=t,o(e).lastHeight=r}function b(){return 2*a.width+1}function w(){return 2*a.height+1}function O(e){return e+10+b()}function x(e){return e+10+w()}function S(e,t,r){var n=d(e),o=p(e),i=O(t),a=x(r),s=function(e){return 2*e+b()}(t),l=function(e){return 2*e+w()}(r);n.scrollLeft=i,n.scrollTop=a,o.scrollLeft=s,o.scrollTop=l}function A(){var e=o(l).container;if(!e){(e=document.createElement("div")).className=s,e.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(l).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),l.appendChild(e);var t=function(){o(l).onRendered&&o(l).onRendered()};c(e,"animationstart",t),o(l).onAnimationStart=t}return e}function P(){if(h("Injecting elements"),o(l)){!function(){var r=o(l).style;if("static"===r.position){l.style.setProperty("position","relative",e.important?"important":"");var n=function(e,t,r,n){var o=r[n];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+n+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",t),t.style[n]=0)};n(t,l,r,"top"),n(t,l,r,"right"),n(t,l,r,"bottom"),n(t,l,r,"left")}}();var r=o(l).container;r||(r=A());var n,i,f,d,p=a.width,v=a.height,g=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),m=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(n=(n=-(1+p))?n+"px":"0"),"top: "+(i=(i=-(1+v))?i+"px":"0"),"right: "+(d=(d=-p)?d+"px":"0"),"bottom: "+(f=(f=-v)?f+"px":"0")])),y=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=u(["position: absolute","left: 0","top: 0"]),O=u(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),S=document.createElement("div"),P=document.createElement("div"),j=document.createElement("div"),E=document.createElement("div"),I=document.createElement("div");x.dir="ltr",x.style.cssText=g,x.className=s,S.className=s,S.style.cssText=m,P.style.cssText=y,j.style.cssText=w,E.style.cssText=b,I.style.cssText=O,P.appendChild(j),E.appendChild(I),S.appendChild(P),S.appendChild(E),x.appendChild(S),r.appendChild(x),c(P,"scroll",T),c(E,"scroll",C),o(l).onExpandScroll=T,o(l).onShrinkScroll=C}else h("Aborting because element has been uninstalled");function T(){var e=o(l);e&&e.onExpand?e.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function C(){var e=o(l);e&&e.onShrink?e.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}}function j(){function a(t,r,n){var o=function(e){return d(e).childNodes[0]}(t),i=O(r),a=x(n);o.style.setProperty("width",i+"px",e.important?"important":""),o.style.setProperty("height",a+"px",e.important?"important":"")}function s(n){var s=l.offsetWidth,c=l.offsetHeight,f=s!==o(l).lastWidth||c!==o(l).lastHeight;h("Storing current size",s,c),y(l,s,c),r.add(0,(function(){if(f)if(o(l))if(u()){if(e.debug){var r=l.offsetWidth,n=l.offsetHeight;r===s&&n===c||t.warn(i.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,c)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),r.add(1,(function(){o(l)?u()?S(l,s,c):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),f&&n&&r.add(2,(function(){o(l)?u()?n():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function u(){return!!o(l).container}function c(){h("notifyListenersIfNeeded invoked");var e=o(l);return void 0===o(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void n(o(l).listeners,(function(e){e(l)})))}function f(){h("Scroll detected."),v(l)?h("Scroll event fired while unrendered. Ignoring..."):s(c)}if(h("registerListenersAndPositionElements invoked."),o(l)){o(l).onRendered=function(){if(h("startanimation triggered."),v(l))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=d(l),t=p(l);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),s(c))}},o(l).onExpand=f,o(l).onShrink=f;var g=o(l).style;a(l,g.width,g.height)}else h("Aborting because element has been uninstalled")}function E(){if(h("finalizeDomMutation invoked."),o(l)){var e=o(l).style;y(l,e.width,e.height),S(l,e.width,e.height)}else h("Aborting because element has been uninstalled")}function I(){f(l)}function T(){var e;h("Installing..."),o(l).listeners=[],e=g(),o(l).startSize={width:e.width,height:e.height},h("Element start size",o(l).startSize),r.add(0,m),r.add(1,P),r.add(2,j),r.add(3,E),r.add(4,I)}f||(f=l,l=e,e=null),e=e||{},h("Making detectable..."),!function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(l)?T():(h("Element is detached"),A(),h("Waiting until element is attached..."),o(l).onRendered=function(){h("Element is now attached"),T()})},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&f(d(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&f(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&f(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},72823:(e,t,r)=>{"use strict";var n=r(27747).forEach,o=r(70479),i=r(99754),a=r(64681),s=r(27419),l=r(15558),u=r(81006),c=r(95771),f=r(40395),d=r(98944),p=r(42102);function h(e){return Array.isArray(e)||void 0!==e.length}function v(e){if(Array.isArray(e))return e;var t=[];return n(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function m(e,t,r){var n=e[t];return null==n&&void 0!==r?r:n}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var r=a(),y=s({idGenerator:r,stateHandler:f});t=y}var b=e.reporter;b||(b=l(!1===b));var w=m(e,"batchProcessor",c({reporter:b})),O={};O.callOnAdd=!!m(e,"callOnAdd",!0),O.debug=!!m(e,"debug",!1);var x,S=i(t),A=o({stateHandler:f}),P=m(e,"strategy","object"),j=m(e,"important",!1),E={reporter:b,batchProcessor:w,stateHandler:f,idHandler:t,important:j};if("scroll"===P&&(u.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),P="object"):u.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),P="object")),"scroll"===P)x=p(E);else{if("object"!==P)throw new Error("Invalid strategy name: "+P);x=d(E)}var I={};return{listenTo:function(e,r,o){function i(e){var t=S.get(e);n(t,(function(t){t(e)}))}function a(e,t,r){S.add(t,r),e&&r(t)}if(o||(o=r,r=e,e={}),!r)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(g(r))r=[r];else{if(!h(r))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");r=v(r)}var s=0,l=m(e,"callOnAdd",O.callOnAdd),u=m(e,"onReady",(function(){})),c=m(e,"debug",O.debug);n(r,(function(e){f.getState(e)||(f.initState(e),t.set(e));var d=t.get(e);if(c&&b.log("Attaching listener to element",d,e),!A.isDetectable(e))return c&&b.log(d,"Not detectable."),A.isBusy(e)?(c&&b.log(d,"System busy making it detectable"),a(l,e,o),I[d]=I[d]||[],void I[d].push((function(){++s===r.length&&u()}))):(c&&b.log(d,"Making detectable..."),A.markBusy(e,!0),x.makeDetectable({debug:c,important:j},e,(function(e){if(c&&b.log(d,"onElementDetectable"),f.getState(e)){A.markAsDetectable(e),A.markBusy(e,!1),x.addListener(e,i),a(l,e,o);var t=f.getState(e);if(t&&t.startSize){var p=e.offsetWidth,h=e.offsetHeight;t.startSize.width===p&&t.startSize.height===h||i(e)}I[d]&&n(I[d],(function(e){e()}))}else c&&b.log(d,"Element uninstalled before being detectable.");delete I[d],++s===r.length&&u()})));c&&b.log(d,"Already detecable, adding listener."),a(l,e,o),s++})),s===r.length&&u()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(g(e))e=[e];else{if(!h(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=v(e)}n(e,(function(e){S.removeAllListeners(e),x.uninstall(e),f.cleanState(e)}))},initDocument:function(e){x.initDocument&&x.initDocument(e)}}}},70479:e=>{"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var r=t(e);return r&&!!r.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,r){t(e).busy=!!r}}}},64681:e=>{"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},27419:e=>{"use strict";e.exports=function(e){var t=e.idGenerator,r=e.stateHandler.getState;return{get:function(e){var t=r(e);return t&&void 0!==t.id?t.id:null},set:function(e){var n=r(e);if(!n)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return n.id=o,o}}}},99754:e=>{"use strict";e.exports=function(e){var t={};function r(r){var n=e.get(r);return void 0===n?[]:t[n]||[]}return{get:r,add:function(r,n){var o=e.get(r);t[o]||(t[o]=[]),t[o].push(n)},removeListener:function(e,t){for(var n=r(e),o=0,i=n.length;o<i;++o)if(n[o]===t){n.splice(o,1);break}},removeAllListeners:function(e){var t=r(e);t&&(t.length=0)}}}},15558:e=>{"use strict";e.exports=function(e){function t(){}var r={log:t,warn:t,error:t};if(!e&&window.console){var n=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var r=0;r<arguments.length;r++)e(arguments[r])}};n(r,"log"),n(r,"warn"),n(r,"error")}return r}},40395:e=>{"use strict";var t="_erd";function r(e){return e[t]}e.exports={initState:function(e){return e[t]={},r(e)},getState:r,cleanState:function(e){delete e[t]}}},80988:(e,t,r)=>{"use strict";var n=r(86400)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},99206:e=>{"use strict";e.exports=EvalError},79870:e=>{"use strict";e.exports=Error},49939:e=>{"use strict";e.exports=RangeError},783:e=>{"use strict";e.exports=ReferenceError},69907:e=>{"use strict";e.exports=SyntaxError},82268:e=>{"use strict";e.exports=TypeError},28188:e=>{"use strict";e.exports=URIError},33912: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;var n,o,i;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 a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},38572:e=>{function t(e,t,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function r(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function n(e,t,r,n,o){return r.bind(t,e,n,o)}function o(e,o){return n(e,this,1===e.length?t:r,o.cache.create(),o.serializer)}function i(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new a}};e.exports=function(e,t){var r=t&&t.cache?t.cache:s,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:o)(e,{cache:r,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,r){return n(e,this,t,r.cache.create(),r.serializer)}}},46730:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),s=r(0,o.length-a.length),l=[],u=0;u<s;u++)l[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var c=function(){};c.prototype=o.prototype,i.prototype=new c,c.prototype=null}return i}},22354:(e,t,r)=>{"use strict";var n=r(46730);e.exports=Function.prototype.bind||n},86400:(e,t,r)=>{"use strict";var n,o=r(79870),i=r(99206),a=r(49939),s=r(783),l=r(69907),u=r(82268),c=r(28188),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var h=function(){throw new u},v=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,g=r(45510)(),m=r(90309)(),y=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&y?y(Uint8Array):n,O={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):n,"%Symbol%":g?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":v,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(y)try{null.error}catch(e){var x=y(y(e));O["%Error.prototype%"]=x}var S=function e(t){var r;if("%AsyncFunction%"===t)r=d("async function () {}");else if("%GeneratorFunction%"===t)r=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=d("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(r=y(o.prototype))}return O[t]=r,r},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=r(22354),j=r(5994),E=P.call(Function.call,Array.prototype.concat),I=P.call(Function.apply,Array.prototype.splice),T=P.call(Function.call,String.prototype.replace),C=P.call(Function.call,String.prototype.slice),k=P.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,N=function(e,t){var r,n=e;if(j(A,n)&&(n="%"+(r=A[n])[0]+"%"),j(O,n)){var o=O[n];if(o===b&&(o=S(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=C(e,0,1),r=C(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,_,(function(e,t,r,o){n[n.length]=r?T(o,R,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],I(r,E([0,1],c)));for(var f=1,d=!0;f<r.length;f+=1){var h=r[f],v=C(h,0,1),g=C(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&d||(s=!0),j(O,i="%"+(n+="."+h)+"%"))a=O[i];else if(null!=a){if(!(h in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&f+1>=r.length){var m=p(a,h);a=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[h]}else d=j(a,h),a=a[h];d&&!s&&(O[i]=a)}}return a}},91464:(e,t,r)=>{"use strict";var n=r(86400)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},73191:(e,t,r)=>{"use strict";var n=r(80988),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},90309:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},45510:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(45484);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},45484:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},5994:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(22354);e.exports=i.call(n,o)},24129:(e,t,r)=>{"use strict";var n=r(27169),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=c(r);f&&(a=a.concat(f(r)));for(var s=l(t),v=l(r),g=0;g<a.length;++g){var m=a[g];if(!(i[m]||n&&n[m]||v&&v[m]||s&&s[m])){var y=d(r,m);try{u(t,m,y)}catch(e){}}}}return t}},47085:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case v:case l:return e;default:return t}}case o:return t}}}function x(e){return O(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||O(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===g},t.isMemo=function(e){return O(e)===v},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=O},27169:(e,t,r)=>{"use strict";e.exports=r(47085)},46731:(e,t)=>{"use strict";function r(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process&&!0;function o(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=o;var i=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function l(e){return s.call(e).slice(8,-1)}var u=Object.assign||function(e,t){return c(t).forEach((function(r){i.call(t,r)&&(e[r]=t[r])})),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function f(e){return Array.isArray(e)?u(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var d=function(){function e(){this.commands=u({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var r=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||o(!Array.isArray(n),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),o("object"==typeof n&&null!==n,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(r.commands).join(", ")+"."}));var a=e;return c(n).forEach((function(t){if(i.call(r.commands,t)){var o=e===a;a=r.commands[t](n[t],a,n,e),o&&r.isEquals(a,e)&&(a=e)}else{var s="Map"===l(e)?r.update(e.get(t),n[t]):r.update(e[t],n[t]),u="Map"===l(a)?a.get(t):a[t];r.isEquals(s,u)&&(void 0!==s||i.call(e,t))||(a===e&&(a=f(e)),"Map"===l(a)?a.set(t,s):a[t]=s)}})),a},e}();t.Context=d;var p={$push:function(e,t,r){return v(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return v(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){return function(e,t){o(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+r(e)})),m(t.$splice)}(t,n),e.forEach((function(e){m(e),t===i&&e.length&&(t=f(i)),a.apply(t,e)})),t},$set:function(e,t,r){return function(e){o(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(r),e},$toggle:function(e,t){g(e,"$toggle");var r=e.length?f(t):t;return e.forEach((function(e){r[e]=!t[e]})),r},$unset:function(e,t,r,n){return g(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=f(n)),delete t[e])})),t},$add:function(e,t,r,n){return y(t,"$add"),g(e,"$add"),"Map"===l(t)?e.forEach((function(e){var r=e[0],o=e[1];t===n&&t.get(r)!==o&&(t=f(n)),t.set(r,o)})):e.forEach((function(e){t!==n||t.has(e)||(t=f(n)),t.add(e)})),t},$remove:function(e,t,r,n){return y(t,"$remove"),g(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=f(n)),t.delete(e)})),t},$merge:function(e,t,n,i){var a,s;return a=t,o((s=e)&&"object"==typeof s,(function(){return"update(): $merge expects a spec of type 'object'; got "+r(s)})),o(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+r(a)})),c(e).forEach((function(r){e[r]!==t[r]&&(t===i&&(t=f(i)),t[r]=e[r])})),t},$apply:function(e,t){var n;return o("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+r(n)+"."})),e(t)}},h=new d;function v(e,t,n){o(Array.isArray(e),(function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."})),g(t[n],n)}function g(e,t){o(Array.isArray(e),(function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"}))}function m(e){o(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var n=l(e);o("Map"===n||"Set"===n,(function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)}))}t.isEquals=h.update.isEquals,t.extend=h.extend,t.default=h.update,t.default.default=e.exports=u(t.default,t)},64030:e=>{"use strict";e.exports=function(e,t,r,n,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},43263:(e,t,r)=>{var n=r(58123)(r(82350),"DataView");e.exports=n},28570:(e,t,r)=>{var n=r(15097),o=r(85265),i=r(61048),a=r(19340),s=r(40028);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},10881:(e,t,r)=>{var n=r(52467),o=r(78218);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},18714:(e,t,r)=>{var n=r(6265),o=r(30897),i=r(29848),a=r(9324),s=r(71644);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},37664:(e,t,r)=>{var n=r(52467),o=r(78218);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},31850:(e,t,r)=>{var n=r(58123)(r(82350),"Map");e.exports=n},37290:(e,t,r)=>{var n=r(48425),o=r(4929),i=r(1288),a=r(1596),s=r(8108);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},2805:(e,t,r)=>{var n=r(58123)(r(82350),"Promise");e.exports=n},57840:(e,t,r)=>{var n=r(58123)(r(82350),"Set");e.exports=n},88508:(e,t,r)=>{var n=r(37290),o=r(86149),i=r(49686);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},80956:(e,t,r)=>{var n=r(18714),o=r(44791),i=r(10499),a=r(98402),s=r(25110),l=r(70958);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},73954:(e,t,r)=>{var n=r(82350).Symbol;e.exports=n},49975:(e,t,r)=>{var n=r(82350).Uint8Array;e.exports=n},22678:(e,t,r)=>{var n=r(58123)(r(82350),"WeakMap");e.exports=n},41776:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},81708:e=>{e.exports=function(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}},58224:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},13879:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},10255:(e,t,r)=>{var n=r(49150);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},18660:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},77350:(e,t,r)=>{var n=r(72905),o=r(74467),i=r(33606),a=r(97821),s=r(70576),l=r(15466),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),d=!r&&!c&&!f&&l(e),p=r||c||f||d,h=p?n(e.length,String):[],v=h.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,v))||h.push(g);return h}},81895:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},60937:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},19819:e=>{e.exports=function(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}},44289:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},52586:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},38094:(e,t,r)=>{var n=r(1153),o=r(86717),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},29786:(e,t,r)=>{var n=r(86717);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},66146:(e,t,r)=>{var n=r(94602);e.exports=function(e,t,r,o){return n(e,(function(e,n,i){t(o,e,r(e),i)})),o}},15770:(e,t,r)=>{var n=r(75976),o=r(3115);e.exports=function(e,t){return e&&n(t,o(t),e)}},13117:(e,t,r)=>{var n=r(75976),o=r(20824);e.exports=function(e,t){return e&&n(t,o(t),e)}},1153:(e,t,r)=>{var n=r(79076);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},83956:e=>{e.exports=function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}},74182:(e,t,r)=>{var n=r(80956),o=r(58224),i=r(38094),a=r(15770),s=r(13117),l=r(88443),u=r(82098),c=r(48906),f=r(53197),d=r(66169),p=r(63490),h=r(34006),v=r(96694),g=r(70152),m=r(97420),y=r(33606),b=r(97821),w=r(15873),O=r(78204),x=r(39287),S=r(3115),A=r(20824),P="[object Arguments]",j="[object Function]",E="[object Object]",I={};I[P]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[E]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[j]=I["[object WeakMap]"]=!1,e.exports=function e(t,r,T,C,k,_){var R,N=1&r,D=2&r,M=4&r;if(T&&(R=k?T(t,C,k,_):T(t)),void 0!==R)return R;if(!O(t))return t;var L=y(t);if(L){if(R=v(t),!N)return u(t,R)}else{var z=h(t),W=z==j||"[object GeneratorFunction]"==z;if(b(t))return l(t,N);if(z==E||z==P||W&&!k){if(R=D||W?{}:m(t),!N)return D?f(t,s(R,t)):c(t,a(R,t))}else{if(!I[z])return k?t:{};R=g(t,z,N)}}_||(_=new n);var B=_.get(t);if(B)return B;_.set(t,R),x(t)?t.forEach((function(n){R.add(e(n,r,T,n,t,_))})):w(t)&&t.forEach((function(n,o){R.set(o,e(n,r,T,o,t,_))}));var F=L?void 0:(M?D?p:d:D?A:S)(t);return o(F||t,(function(n,o){F&&(n=t[o=n]),i(R,o,e(n,r,T,o,t,_))})),R}},52467:(e,t,r)=>{var n=r(78204),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},26988:e=>{e.exports=function(e,t,r){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,r)}),t)}},10160:(e,t,r)=>{var n=r(88508),o=r(10255),i=r(18660),a=r(81895),s=r(86468),l=r(44816);e.exports=function(e,t,r,u){var c=-1,f=o,d=!0,p=e.length,h=[],v=t.length;if(!p)return h;r&&(t=a(t,s(r))),u?(f=i,d=!1):t.length>=200&&(f=l,d=!1,t=new n(t));e:for(;++c<p;){var g=e[c],m=null==r?g:r(g);if(g=u||0!==g?g:0,d&&m==m){for(var y=v;y--;)if(t[y]===m)continue e;h.push(g)}else f(t,m,u)||h.push(g)}return h}},94602:(e,t,r)=>{var n=r(73394),o=r(18746)(n);e.exports=o},58661:(e,t,r)=>{var n=r(94602);e.exports=function(e,t){var r=[];return n(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}},77170:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},42681:(e,t,r)=>{var n=r(60937),o=r(86810);e.exports=function e(t,r,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];r>0&&i(c)?r>1?e(c,r-1,i,a,s):n(s,c):a||(s[s.length]=c)}return s}},1348:(e,t,r)=>{var n=r(23988)();e.exports=n},73394:(e,t,r)=>{var n=r(1348),o=r(3115);e.exports=function(e,t){return e&&n(e,t,o)}},42643:(e,t,r)=>{var n=r(98918),o=r(98280);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},6788:(e,t,r)=>{var n=r(60937),o=r(33606);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},26947:(e,t,r)=>{var n=r(73954),o=r(2358),i=r(54397),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},58628:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},49150:(e,t,r)=>{var n=r(77170),o=r(35038),i=r(32442);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},61259:(e,t,r)=>{var n=r(26947),o=r(48499);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},94639:(e,t,r)=>{var n=r(6017),o=r(48499);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},6017:(e,t,r)=>{var n=r(80956),o=r(51134),i=r(37261),a=r(16158),s=r(34006),l=r(33606),u=r(97821),c=r(15466),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,v,g,m){var y=l(e),b=l(t),w=y?d:s(e),O=b?d:s(t),x=(w=w==f?p:w)==p,S=(O=O==f?p:O)==p,A=w==O;if(A&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(A&&!x)return m||(m=new n),y||c(e)?o(e,t,r,v,g,m):i(e,t,w,r,v,g,m);if(!(1&r)){var P=x&&h.call(e,"__wrapped__"),j=S&&h.call(t,"__wrapped__");if(P||j){var E=P?e.value():e,I=j?t.value():t;return m||(m=new n),g(E,I,r,v,m)}}return!!A&&(m||(m=new n),a(e,t,r,v,g,m))}},30425:(e,t,r)=>{var n=r(34006),o=r(48499);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},87882:(e,t,r)=>{var n=r(80956),o=r(94639);e.exports=function(e,t,r,i){var a=r.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=r[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=r[a])[0],f=e[c],d=u[1];if(l&&u[2]){if(void 0===f&&!(c in e))return!1}else{var p=new n;if(i)var h=i(f,d,c,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},35038:e=>{e.exports=function(e){return e!=e}},87688:(e,t,r)=>{var n=r(41927),o=r(51015),i=r(78204),a=r(57522),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:s).test(a(e))}},23199:(e,t,r)=>{var n=r(34006),o=r(48499);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},98946:(e,t,r)=>{var n=r(26947),o=r(667),i=r(48499),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},6070:(e,t,r)=>{var n=r(23646),o=r(50407),i=r(87893),a=r(33606),s=r(46274);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},69235:(e,t,r)=>{var n=r(35490),o=r(65817),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},31968:(e,t,r)=>{var n=r(78204),o=r(35490),i=r(14498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},78218:e=>{e.exports=function(){}},44641:(e,t,r)=>{var n=r(94602),o=r(833);e.exports=function(e,t){var r=-1,i=o(e)?Array(e.length):[];return n(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}},23646:(e,t,r)=>{var n=r(87882),o=r(47839),i=r(36432);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},50407:(e,t,r)=>{var n=r(94639),o=r(41499),i=r(21532),a=r(67027),s=r(70547),l=r(36432),u=r(98280);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},64278:(e,t,r)=>{var n=r(81895),o=r(42643),i=r(6070),a=r(44641),s=r(41826),l=r(86468),u=r(52679),c=r(87893),f=r(33606);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var d=-1;t=n(t,l(i));var p=a(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++d,value:e}}));return s(p,(function(e,t){return u(e,t,r)}))}},78919:(e,t,r)=>{var n=r(42643),o=r(51703),i=r(98918);e.exports=function(e,t,r){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=n(e,u);r(c,u)&&o(l,i(u,e),c)}return l}},42570:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},52144:(e,t,r)=>{var n=r(42643);e.exports=function(e){return function(t){return n(t,e)}}},14603:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},53849:(e,t,r)=>{var n=r(87893),o=r(41842),i=r(58956);e.exports=function(e,t){return i(o(e,t,n),e+"")}},51703:(e,t,r)=>{var n=r(38094),o=r(98918),i=r(70576),a=r(78204),s=r(98280);e.exports=function(e,t,r,l){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++u<c;){var p=s(t[u]),h=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=f){var v=d[p];void 0===(h=l?l(v,p,d):void 0)&&(h=a(v)?v:i(t[u+1])?[]:{})}n(d,p,h),d=d[p]}return e}},9727:(e,t,r)=>{var n=r(87893),o=r(3297),i=o?function(e,t){return o.set(e,t),e}:n;e.exports=i},64699:(e,t,r)=>{var n=r(95563),o=r(79076),i=r(87893),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},76365:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},41826:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},72905:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},28211:(e,t,r)=>{var n=r(73954),o=r(81895),i=r(33606),a=r(16355),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},36435:(e,t,r)=>{var n=r(77041),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},86468:e=>{e.exports=function(e){return function(t){return e(t)}}},73406:(e,t,r)=>{var n=r(88508),o=r(10255),i=r(18660),a=r(44816),s=r(51680),l=r(23284);e.exports=function(e,t,r){var u=-1,c=o,f=e.length,d=!0,p=[],h=p;if(r)d=!1,c=i;else if(f>=200){var v=t?null:s(e);if(v)return l(v);d=!1,c=a,h=new n}else h=t?[]:p;e:for(;++u<f;){var g=e[u],m=t?t(g):g;if(g=r||0!==g?g:0,d&&m==m){for(var y=h.length;y--;)if(h[y]===m)continue e;t&&h.push(m),p.push(g)}else c(h,m,r)||(h!==p&&h.push(m),p.push(g))}return p}},52162:(e,t,r)=>{var n=r(98918),o=r(5751),i=r(53126),a=r(98280);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},35610:(e,t,r)=>{var n=r(42643),o=r(51703);e.exports=function(e,t,r,i){return o(e,t,r(n(e,t)),i)}},92977:(e,t,r)=>{var n=r(81895);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},94182:(e,t,r)=>{var n=r(10160),o=r(42681),i=r(73406);e.exports=function(e,t,r){var a=e.length;if(a<2)return a?i(e[0]):[];for(var s=-1,l=Array(a);++s<a;)for(var u=e[s],c=-1;++c<a;)c!=s&&(l[s]=n(l[s]||u,e[c],t,r));return i(o(l,1),t,r)}},44816:e=>{e.exports=function(e,t){return e.has(t)}},32365:(e,t,r)=>{var n=r(87893);e.exports=function(e){return"function"==typeof e?e:n}},98918:(e,t,r)=>{var n=r(33606),o=r(67027),i=r(96509),a=r(1083);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},32578:(e,t,r)=>{var n=r(49975);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},88443:(e,t,r)=>{e=r.nmd(e);var n=r(82350),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},36176:(e,t,r)=>{var n=r(32578);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},71476:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},67141:(e,t,r)=>{var n=r(73954),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},69624:(e,t,r)=>{var n=r(32578);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},29777:(e,t,r)=>{var n=r(16355);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,i=e==e,a=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||l&&r&&i||!s&&i||!u)return-1}return 0}},52679:(e,t,r)=>{var n=r(29777);e.exports=function(e,t,r){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=r.length;++o<s;){var u=n(i[o],a[o]);if(u)return o>=l?u:u*("desc"==r[o]?-1:1)}return e.index-t.index}},47553:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,u=r.length,c=t(a-s,0),f=Array(u+c),d=!o;++l<u;)f[l]=r[l];for(;++i<s;)(d||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[l++]=e[i++];return f}},68683:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,u=-1,c=r.length,f=t(a-l,0),d=Array(f+c),p=!o;++i<f;)d[i]=e[i];for(var h=i;++u<c;)d[h+u]=r[u];for(;++s<l;)(p||i<a)&&(d[h+n[s]]=e[i++]);return d}},82098:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},75976:(e,t,r)=>{var n=r(38094),o=r(1153);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),a?o(r,u,c):n(r,u,c)}return r}},48906:(e,t,r)=>{var n=r(75976),o=r(71723);e.exports=function(e,t){return n(e,o(e),t)}},53197:(e,t,r)=>{var n=r(75976),o=r(46648);e.exports=function(e,t){return n(e,o(e),t)}},14414:(e,t,r)=>{var n=r(82350)["__core-js_shared__"];e.exports=n},25176:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},4019:(e,t,r)=>{var n=r(81708),o=r(66146),i=r(6070),a=r(33606);e.exports=function(e,t){return function(r,s){var l=a(r)?n:o,u=t?t():{};return l(r,e,i(s,2),u)}}},18746:(e,t,r)=>{var n=r(833);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var i=r.length,a=t?i:-1,s=Object(r);(t?a--:++a<i)&&!1!==o(s[a],a,s););return r}}},23988:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===r(i[l],l,i))break}return t}}},41945:(e,t,r)=>{var n=r(43676),o=r(82350);e.exports=function(e,t,r){var i=1&t,a=n(e);return function t(){return(this&&this!==o&&this instanceof t?a:e).apply(i?r:this,arguments)}}},56920:(e,t,r)=>{var n=r(19819),o=r(63209),i=r(7802),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(i(o(t).replace(a,"")),e,"")}}},43676:(e,t,r)=>{var n=r(52467),o=r(78204);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),i=e.apply(r,t);return o(i)?i:r}}},38875:(e,t,r)=>{var n=r(41776),o=r(43676),i=r(71424),a=r(93720),s=r(24514),l=r(18589),u=r(82350);e.exports=function(e,t,r){var c=o(e);return function o(){for(var f=arguments.length,d=Array(f),p=f,h=s(o);p--;)d[p]=arguments[p];var v=f<3&&d[0]!==h&&d[f-1]!==h?[]:l(d,h);return(f-=v.length)<r?a(e,t,i,o.placeholder,void 0,d,v,void 0,void 0,r-f):n(this&&this!==u&&this instanceof o?c:e,this,d)}}},71424:(e,t,r)=>{var n=r(47553),o=r(68683),i=r(25176),a=r(43676),s=r(93720),l=r(24514),u=r(50383),c=r(18589),f=r(82350);e.exports=function e(t,r,d,p,h,v,g,m,y,b){var w=128&r,O=1&r,x=2&r,S=24&r,A=512&r,P=x?void 0:a(t);return function j(){for(var E=arguments.length,I=Array(E),T=E;T--;)I[T]=arguments[T];if(S)var C=l(j),k=i(I,C);if(p&&(I=n(I,p,h,S)),v&&(I=o(I,v,g,S)),E-=k,S&&E<b){var _=c(I,C);return s(t,r,e,j.placeholder,d,I,_,m,y,b-E)}var R=O?d:this,N=x?R[t]:t;return E=I.length,m?I=u(I,m):A&&E>1&&I.reverse(),w&&y<E&&(I.length=y),this&&this!==f&&this instanceof j&&(N=P||a(N)),N.apply(R,I)}}},60901:(e,t,r)=>{var n=r(41776),o=r(43676),i=r(82350);e.exports=function(e,t,r,a){var s=1&t,l=o(e);return function t(){for(var o=-1,u=arguments.length,c=-1,f=a.length,d=Array(f+u),p=this&&this!==i&&this instanceof t?l:e;++c<f;)d[c]=a[c];for(;u--;)d[c++]=arguments[++o];return n(p,s?r:this,d)}}},93720:(e,t,r)=>{var n=r(17416),o=r(41784),i=r(21444);e.exports=function(e,t,r,a,s,l,u,c,f,d){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?l:void 0,p?u:void 0,p?void 0:l,p?void 0:u,c,f,d],v=r.apply(void 0,h);return n(e)&&o(v,h),v.placeholder=a,i(v,e,t)}},51680:(e,t,r)=>{var n=r(57840),o=r(35439),i=r(23284),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},862:(e,t,r)=>{var n=r(9727),o=r(41945),i=r(38875),a=r(71424),s=r(60901),l=r(97596),u=r(79639),c=r(41784),f=r(21444),d=r(51178),p=Math.max;e.exports=function(e,t,r,h,v,g,m,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=v=void 0),m=void 0===m?m:p(d(m),0),y=void 0===y?y:d(y),w-=v?v.length:0,64&t){var O=h,x=v;h=v=void 0}var S=b?void 0:l(e),A=[e,t,r,h,v,O,x,g,m,y];if(S&&u(A,S),e=A[0],t=A[1],r=A[2],h=A[3],v=A[4],!(y=A[9]=void 0===A[9]?b?0:e.length:p(A[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)P=8==t||16==t?i(e,t,y):32!=t&&33!=t||v.length?a.apply(void 0,A):s(e,t,r,h);else var P=o(e,t,r);return f((S?n:c)(P,A),e,t)}},39515:(e,t,r)=>{var n=r(70712);e.exports=function(e){return n(e)?void 0:e}},94016:(e,t,r)=>{var n=r(14603)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},79076:(e,t,r)=>{var n=r(58123),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},51134:(e,t,r)=>{var n=r(88508),o=r(44289),i=r(44816);e.exports=function(e,t,r,a,s,l){var u=1&r,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var m=e[h],y=t[h];if(a)var b=u?a(y,m,h,t,e,l):a(m,y,h,e,t,l);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(m===e||s(m,e,r,a,l)))return g.push(t)}))){v=!1;break}}else if(m!==y&&!s(m,y,r,a,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},37261:(e,t,r)=>{var n=r(73954),o=r(49975),i=r(86717),a=r(51134),s=r(10246),l=r(23284),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&n;if(p||(p=l),e.size!=t.size&&!h)return!1;var v=d.get(e);if(v)return v==t;n|=2,d.set(e,t);var g=a(p(e),p(t),n,u,f,d);return d.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},16158:(e,t,r)=>{var n=r(66169),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var f=c;f--;){var d=u[f];if(!(l?d in t:o.call(t,d)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var v=!0;s.set(e,t),s.set(t,e);for(var g=l;++f<c;){var m=e[d=u[f]],y=t[d];if(i)var b=l?i(y,m,d,t,e,s):i(m,y,d,e,t,s);if(!(void 0===b?m===y||a(m,y,r,i,s):b)){v=!1;break}g||(g="constructor"==d)}if(v&&!g){var w=e.constructor,O=t.constructor;w==O||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof O&&O instanceof O||(v=!1)}return s.delete(e),s.delete(t),v}},34799:(e,t,r)=>{var n=r(94881),o=r(41842),i=r(58956);e.exports=function(e){return i(o(e,void 0,n),e+"")}},52455:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},66169:(e,t,r)=>{var n=r(6788),o=r(71723),i=r(3115);e.exports=function(e){return n(e,i,o)}},63490:(e,t,r)=>{var n=r(6788),o=r(46648),i=r(20824);e.exports=function(e){return n(e,i,o)}},97596:(e,t,r)=>{var n=r(3297),o=r(35439),i=n?function(e){return n.get(e)}:o;e.exports=i},63009:(e,t,r)=>{var n=r(7396),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],i=o.call(n,t)?r.length:0;i--;){var a=r[i],s=a.func;if(null==s||s==e)return a.name}return t}},24514:e=>{e.exports=function(e){return e.placeholder}},88940:(e,t,r)=>{var n=r(57227);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},47839:(e,t,r)=>{var n=r(70547),o=r(3115);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},58123:(e,t,r)=>{var n=r(87688),o=r(6283);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},98096:(e,t,r)=>{var n=r(76646)(Object.getPrototypeOf,Object);e.exports=n},2358:(e,t,r)=>{var n=r(73954),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},71723:(e,t,r)=>{var n=r(13879),o=r(38522),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},46648:(e,t,r)=>{var n=r(60937),o=r(98096),i=r(71723),a=r(38522),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},34006:(e,t,r)=>{var n=r(43263),o=r(31850),i=r(2805),a=r(57840),s=r(22678),l=r(26947),u=r(57522),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=u(n),g=u(o),m=u(i),y=u(a),b=u(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||s&&w(new s)!=p)&&(w=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case v:return h;case g:return c;case m:return f;case y:return d;case b:return p}return t}),e.exports=w},6283:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},32596:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var n=e.match(t);return n?n[1].split(r):[]}},24091:(e,t,r)=>{var n=r(98918),o=r(74467),i=r(33606),a=r(70576),s=r(667),l=r(98280);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,f=!1;++u<c;){var d=l(t[u]);if(!(f=null!=e&&r(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},79317:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},15097:(e,t,r)=>{var n=r(46929);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},85265:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},61048:(e,t,r)=>{var n=r(46929),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},19340:(e,t,r)=>{var n=r(46929),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},40028:(e,t,r)=>{var n=r(46929);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},96694:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},70152:(e,t,r)=>{var n=r(32578),o=r(36176),i=r(71476),a=r(67141),s=r(69624);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},97420:(e,t,r)=>{var n=r(52467),o=r(98096),i=r(35490);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},19685:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,r){var n=r.length;if(!n)return e;var o=n-1;return r[o]=(n>1?"& ":"")+r[o],r=r.join(n>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+r+"] */\n")}},86810:(e,t,r)=>{var n=r(73954),o=r(74467),i=r(33606),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},70576:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},18135:(e,t,r)=>{var n=r(86717),o=r(833),i=r(70576),a=r(78204);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},67027:(e,t,r)=>{var n=r(33606),o=r(16355),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},57227:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},17416:(e,t,r)=>{var n=r(10881),o=r(97596),i=r(63009),a=r(14137);e.exports=function(e){var t=i(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=o(r);return!!s&&e===s[0]}},51015:(e,t,r)=>{var n,o=r(14414),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},35490:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},70547:(e,t,r)=>{var n=r(78204);e.exports=function(e){return e==e&&!n(e)}},6265:e=>{e.exports=function(){this.__data__=[],this.size=0}},30897:(e,t,r)=>{var n=r(29786),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},29848:(e,t,r)=>{var n=r(29786);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},9324:(e,t,r)=>{var n=r(29786);e.exports=function(e){return n(this.__data__,e)>-1}},71644:(e,t,r)=>{var n=r(29786);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},48425:(e,t,r)=>{var n=r(28570),o=r(18714),i=r(31850);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},4929:(e,t,r)=>{var n=r(88940);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},1288:(e,t,r)=>{var n=r(88940);e.exports=function(e){return n(this,e).get(e)}},1596:(e,t,r)=>{var n=r(88940);e.exports=function(e){return n(this,e).has(e)}},8108:(e,t,r)=>{var n=r(88940);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},10246:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},36432:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},47237:(e,t,r)=>{var n=r(25411);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},79639:(e,t,r)=>{var n=r(47553),o=r(68683),i=r(18589),a="__lodash_placeholder__",s=128,l=Math.min;e.exports=function(e,t){var r=e[1],u=t[1],c=r|u,f=c<131,d=u==s&&8==r||u==s&&256==r&&e[7].length<=t[8]||384==u&&t[7].length<=t[8]&&8==r;if(!f&&!d)return e;1&u&&(e[2]=t[2],c|=1&r?0:4);var p=t[3];if(p){var h=e[3];e[3]=h?n(h,p,t[4]):p,e[4]=h?i(e[3],a):t[4]}return(p=t[5])&&(h=e[5],e[5]=h?o(h,p,t[6]):p,e[6]=h?i(e[5],a):t[6]),(p=t[7])&&(e[7]=p),u&s&&(e[8]=null==e[8]?t[8]:l(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},3297:(e,t,r)=>{var n=r(22678),o=n&&new n;e.exports=o},46929:(e,t,r)=>{var n=r(58123)(Object,"create");e.exports=n},65817:(e,t,r)=>{var n=r(76646)(Object.keys,Object);e.exports=n},14498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},32498:(e,t,r)=>{e=r.nmd(e);var n=r(52455),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},54397:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},76646:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},41842:(e,t,r)=>{var n=r(41776),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(l),n(e,this,u)}}},53126:(e,t,r)=>{var n=r(42643),o=r(76365);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},7396:e=>{e.exports={}},50383:(e,t,r)=>{var n=r(82098),o=r(70576),i=Math.min;e.exports=function(e,t){for(var r=e.length,a=i(t.length,r),s=n(e);a--;){var l=t[a];e[a]=o(l,r)?s[l]:void 0}return e}},18589:e=>{var t="__lodash_placeholder__";e.exports=function(e,r){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var s=e[n];s!==r&&s!==t||(e[n]=t,a[i++]=n)}return a}},82350:(e,t,r)=>{var n=r(52455),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},86149:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},49686:e=>{e.exports=function(e){return this.__data__.has(e)}},41784:(e,t,r)=>{var n=r(9727),o=r(4100)(n);e.exports=o},23284:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},58956:(e,t,r)=>{var n=r(64699),o=r(4100)(n);e.exports=o},21444:(e,t,r)=>{var n=r(32596),o=r(19685),i=r(58956),a=r(86225);e.exports=function(e,t,r){var s=t+"";return i(e,o(s,a(n(s),r)))}},4100:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},44791:(e,t,r)=>{var n=r(18714);e.exports=function(){this.__data__=new n,this.size=0}},10499:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},98402:e=>{e.exports=function(e){return this.__data__.get(e)}},25110:e=>{e.exports=function(e){return this.__data__.has(e)}},70958:(e,t,r)=>{var n=r(18714),o=r(31850),i=r(37290);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},32442:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},96509:(e,t,r)=>{var n=r(47237),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},98280:(e,t,r)=>{var n=r(16355);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},57522:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77041:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},4994:e=>{var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",s="\\d+",l="["+r+"]",u="["+n+"]",c="[^"+t+i+s+r+n+o+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",h="(?:"+u+"|"+c+")",v="(?:"+p+"|"+c+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+y+("(?:\\u200d(?:"+["[^"+t+"]",f,d].join("|")+")"+b+y+")*"),O="(?:"+[l,f,d].join("|")+")"+w,x=RegExp([p+"?"+u+"+"+g+"(?="+[a,p,"$"].join("|")+")",v+"+"+m+"(?="+[a,p+h,"$"].join("|")+")",p+"?"+h+"+"+g,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,O].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},86225:(e,t,r)=>{var n=r(58224),o=r(10255),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(i,(function(r){var n="_."+r[0];t&r[1]&&!o(e,n)&&e.push(n)})),e.sort()}},7970:(e,t,r)=>{var n=r(10881),o=r(37664),i=r(82098);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},31097:(e,t,r)=>{var n=r(862);e.exports=function(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,n(e,128,void 0,void 0,void 0,void 0,t)}},15004:(e,t,r)=>{var n=r(83956),o=r(69091);e.exports=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=o(r))==r?r:0),void 0!==t&&(t=(t=o(t))==t?t:0),n(o(e),t,r)}},25630:(e,t,r)=>{var n=r(74182);e.exports=function(e){return n(e,4)}},36286:e=>{e.exports=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o}},95563:e=>{e.exports=function(e){return function(){return e}}},78621:(e,t,r)=>{var n=r(1153),o=r(4019),i=Object.prototype.hasOwnProperty,a=o((function(e,t,r){i.call(e,r)?++e[r]:n(e,r,1)}));e.exports=a},56456:(e,t,r)=>{var n=r(862);function o(e,t,r){var i=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return i.placeholder=o.placeholder,i}o.placeholder={},e.exports=o},38624:(e,t,r)=>{var n=r(78204),o=r(75183),i=r(69091),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,f,d,p,h=0,v=!1,g=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,n=u;return l=u=void 0,h=t,f=e.apply(n,r)}function b(e){var r=e-p;return void 0===p||r>=t||r<0||g&&e-h>=c}function w(){var e=o();if(b(e))return O(e);d=setTimeout(w,function(e){var r=t-(e-p);return g?s(r,c-(e-h)):r}(e))}function O(e){return d=void 0,m&&l?y(e):(l=u=void 0,f)}function x(){var e=o(),r=b(e);if(l=arguments,u=this,p=e,r){if(void 0===d)return function(e){return h=e,d=setTimeout(w,t),v?y(e):f}(p);if(g)return clearTimeout(d),d=setTimeout(w,t),y(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,n(r)&&(v=!!r.leading,c=(g="maxWait"in r)?a(i(r.maxWait)||0,t):c,m="trailing"in r?!!r.trailing:m),x.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=u=d=void 0},x.flush=function(){return void 0===d?f:O(o())},x}},63209:(e,t,r)=>{var n=r(94016),o=r(1083),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(a,"")}},53875:(e,t,r)=>{var n=r(26988),o=r(53849)((function(e,t){return n(e,1,t)}));e.exports=o},44360:(e,t,r)=>{var n=r(10160),o=r(42681),i=r(53849),a=r(22574),s=i((function(e,t){return a(e)?n(e,o(t,1,a,!0)):[]}));e.exports=s},18358:(e,t,r)=>{var n=r(76365),o=r(51178);e.exports=function(e,t,r){var i=null==e?0:e.length;return i?(t=r||void 0===t?1:o(t),n(e,t<0?0:t,i)):[]}},34542:(e,t,r)=>{var n=r(76365),o=r(51178);e.exports=function(e,t,r){var i=null==e?0:e.length;return i?(t=r||void 0===t?1:o(t),n(e,0,(t=i-t)<0?0:t)):[]}},86717:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},18653:(e,t,r)=>{var n=r(13879),o=r(58661),i=r(6070),a=r(33606);e.exports=function(e,t){return(a(e)?n:o)(e,i(t,3))}},94881:(e,t,r)=>{var n=r(42681);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},98027:(e,t,r)=>{var n=r(42681),o=1/0;e.exports=function(e){return(null==e?0:e.length)?n(e,o):[]}},13435:(e,t,r)=>{var n=r(92381),o=r(53311),i=Array.prototype.push;function a(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function l(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var o=n[0]=t.apply(void 0,n);return e.apply(void 0,n),o}}}e.exports=function e(t,r,u,c){var f="function"==typeof r,d=r===Object(r);if(d&&(c=u,u=r,r=void 0),null==u)throw new TypeError;c||(c={});var p={cap:!("cap"in c)||c.cap,curry:!("curry"in c)||c.curry,fixed:!("fixed"in c)||c.fixed,immutable:!("immutable"in c)||c.immutable,rearg:!("rearg"in c)||c.rearg},h=f?u:o,v="curry"in c&&c.curry,g="fixed"in c&&c.fixed,m="rearg"in c&&c.rearg,y=f?u.runInContext():void 0,b=f?u:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},w=b.ary,O=b.assign,x=b.clone,S=b.curry,A=b.forEach,P=b.isArray,j=b.isError,E=b.isFunction,I=b.isWeakMap,T=b.keys,C=b.rearg,k=b.toInteger,_=b.toPath,R=T(n.aryMethod),N={castArray:function(e){return function(){var t=arguments[0];return P(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],r=e(arguments[0],t),n=r.length;return p.cap&&"number"==typeof t?(t=t>2?t-2:1,n&&n<=t?r:a(r,t)):r}},mixin:function(e){return function(t){var r=this;if(!E(r))return e(r,Object(t));var n=[];return A(T(t),(function(e){E(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),A(n,(function(e){var t=e[1];E(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:k(t)+1;return S(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return S(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),c)}}};function D(e,t){if(p.cap){var r=n.iterateeRearg[e];if(r)return function(e,t){return B(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(C(a(e,r),t),r)}))}(t,r);var o=!f&&n.iterateeAry[e];if(o)return function(e,t){return B(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}function M(e,t,r){if(p.fixed&&(g||!n.skipFixed[e])){var o=n.methodSpread[e],a=o&&o.start;return void 0===a?w(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,o=Array(r);r--;)o[r]=arguments[r];var a=o[t],s=o.slice(0,t);return a&&i.apply(s,a),t!=n&&i.apply(s,o.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function L(e,t,r){return p.rearg&&r>1&&(m||!n.skipRearg[e])?C(t,n.methodRearg[e]||n.aryRearg[r]):t}function z(e,t){for(var r=-1,n=(t=_(t)).length,o=n-1,i=x(Object(e)),a=i;null!=a&&++r<n;){var s=t[r],l=a[s];null==l||E(l)||j(l)||I(l)||(a[s]=x(r==o?l:Object(l))),a=a[s]}return i}function W(t,r){var o=n.aliasToReal[t]||t,i=n.remap[o]||o,a=c;return function(t){var n=f?y:b,s=f?y[i]:r,l=O(O({},a),t);return e(n,o,s,l)}}function B(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var o=p.rearg?0:r-1;return n[o]=t(n[o]),e.apply(void 0,n)}}function F(e,t,r){var o,i=n.aliasToReal[e]||e,a=t,u=N[i];return u?a=u(t):p.immutable&&(n.mutate.array[i]?a=l(t,s):n.mutate.object[i]?a=l(t,function(e){return function(t){return e({},t)}}(t)):n.mutate.set[i]&&(a=l(t,z))),A(R,(function(e){return A(n.aryMethod[e],(function(t){if(i==t){var r=n.methodSpread[i],s=r&&r.afterRearg;return o=s?M(i,L(i,a,e),e):L(i,M(i,a,e),e),o=function(e,t,r){return v||p.curry&&r>1?S(t,r):t}(0,o=D(i,o),e),!1}})),!o})),o||(o=a),o==t&&(o=v?S(o,1):function(){return t.apply(this,arguments)}),o.convert=W(i,t),o.placeholder=t.placeholder=r,o}if(!d)return F(r,u,h);var H=u,U=[];return A(R,(function(e){A(n.aryMethod[e],(function(e){var t=H[n.remap[e]||e];t&&U.push([e,F(e,t,H)])}))})),A(T(H),(function(e){var t=H[e];if("function"==typeof t){for(var r=U.length;r--;)if(U[r][0]==e)return;t.convert=W(e,t),U.push([e,t])}})),A(U,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,A(T(H),(function(e){A(n.realToAlias[e]||[],(function(t){H[t]=H[e]}))})),H}},92381:(e,t)=>{t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var o in r){var i=r[o];e.call(n,i)?n[i].push(o):n[i]=[o]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},69671:(e,t,r)=>{e.exports={ary:r(31097),assign:r(15770),clone:r(25630),curry:r(56456),forEach:r(58224),isArray:r(33606),isError:r(7849),isFunction:r(41927),isWeakMap:r(44393),iteratee:r(25662),keys:r(69235),rearg:r(464),toInteger:r(51178),toPath:r(40389)}},76625:(e,t,r)=>{var n=r(13435),o=r(69671);e.exports=function(e,t,r){return n(o,e,t,r)}},53311:e=>{e.exports={}},1082:(e,t,r)=>{var n=r(76625)("set",r(33919));n.placeholder=r(53311),e.exports=n},68829:(e,t,r)=>{var n=r(76625)("update",r(44914));n.placeholder=r(53311),e.exports=n},41499:(e,t,r)=>{var n=r(42643);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},55409:(e,t,r)=>{var n=r(1153),o=r(4019),i=Object.prototype.hasOwnProperty,a=o((function(e,t,r){i.call(e,r)?e[r].push(t):n(e,r,[t])}));e.exports=a},21532:(e,t,r)=>{var n=r(58628),o=r(24091);e.exports=function(e,t){return null!=e&&o(e,t,n)}},87893:e=>{e.exports=function(e){return e}},74467:(e,t,r)=>{var n=r(61259),o=r(48499),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},33606:e=>{var t=Array.isArray;e.exports=t},833:(e,t,r)=>{var n=r(41927),o=r(667);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},22574:(e,t,r)=>{var n=r(833),o=r(48499);e.exports=function(e){return o(e)&&n(e)}},97821:(e,t,r)=>{e=r.nmd(e);var n=r(82350),o=r(20324),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},47114:(e,t,r)=>{var n=r(69235),o=r(34006),i=r(74467),a=r(33606),s=r(833),l=r(97821),u=r(35490),c=r(15466),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(f.call(e,r))return!1;return!0}},15031:(e,t,r)=>{var n=r(94639);e.exports=function(e,t){return n(e,t)}},7849:(e,t,r)=>{var n=r(26947),o=r(48499),i=r(70712);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},41927:(e,t,r)=>{var n=r(26947),o=r(78204);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},667:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},15873:(e,t,r)=>{var n=r(30425),o=r(86468),i=r(32498),a=i&&i.isMap,s=a?o(a):n;e.exports=s},64398:e=>{e.exports=function(e){return null===e}},78204:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},48499:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},70712:(e,t,r)=>{var n=r(26947),o=r(98096),i=r(48499),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==c}},39287:(e,t,r)=>{var n=r(23199),o=r(86468),i=r(32498),a=i&&i.isSet,s=a?o(a):n;e.exports=s},36634:(e,t,r)=>{var n=r(26947),o=r(33606),i=r(48499);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},16355:(e,t,r)=>{var n=r(26947),o=r(48499);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},15466:(e,t,r)=>{var n=r(98946),o=r(86468),i=r(32498),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},37891:e=>{e.exports=function(e){return void 0===e}},44393:(e,t,r)=>{var n=r(34006),o=r(48499);e.exports=function(e){return o(e)&&"[object WeakMap]"==n(e)}},25662:(e,t,r)=>{var n=r(74182),o=r(6070);e.exports=function(e){return o("function"==typeof e?e:n(e,1))}},6350:(e,t,r)=>{var n=r(56920)((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));e.exports=n},3115:(e,t,r)=>{var n=r(77350),o=r(69235),i=r(833);e.exports=function(e){return i(e)?n(e):o(e)}},20824:(e,t,r)=>{var n=r(77350),o=r(31968),i=r(833);e.exports=function(e){return i(e)?n(e,!0):o(e)}},5751:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},25411:(e,t,r)=>{var n=r(37290);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},35439:e=>{e.exports=function(){}},75183:(e,t,r)=>{var n=r(82350);e.exports=function(){return n.Date.now()}},73966:(e,t,r)=>{var n=r(81895),o=r(74182),i=r(52162),a=r(98918),s=r(75976),l=r(39515),u=r(34799),c=r(63490),f=u((function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),r),u&&(r=o(r,7,l));for(var f=t.length;f--;)i(r,t[f]);return r}));e.exports=f},13423:(e,t,r)=>{var n=r(81895),o=r(6070),i=r(78919),a=r(63490);e.exports=function(e,t){if(null==e)return{};var r=n(a(e),(function(e){return[e]}));return t=o(t),i(e,r,(function(e,r){return t(e,r[0])}))}},46274:(e,t,r)=>{var n=r(42570),o=r(52144),i=r(67027),a=r(98280);e.exports=function(e){return i(e)?n(a(e)):o(e)}},464:(e,t,r)=>{var n=r(862),o=r(34799),i=o((function(e,t){return n(e,256,void 0,void 0,void 0,t)}));e.exports=i},33919:(e,t,r)=>{var n=r(51703);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},57434:(e,t,r)=>{var n=r(42681),o=r(64278),i=r(53849),a=r(18135),s=i((function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])}));e.exports=s},38522:e=>{e.exports=function(){return[]}},20324:e=>{e.exports=function(){return!1}},80528:(e,t,r)=>{var n=r(76365),o=r(51178);e.exports=function(e,t,r){return e&&e.length?(t=r||void 0===t?1:o(t),n(e,0,t<0?0:t)):[]}},8771:(e,t,r)=>{var n=r(38624),o=r(78204);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},41333:(e,t,r)=>{var n=r(69091),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},51178:(e,t,r)=>{var n=r(41333);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},69091:(e,t,r)=>{var n=r(36435),o=r(78204),i=r(16355),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):a.test(e)?NaN:+e}},40389:(e,t,r)=>{var n=r(81895),o=r(82098),i=r(33606),a=r(16355),s=r(96509),l=r(98280),u=r(1083);e.exports=function(e){return i(e)?n(e,l):a(e)?[e]:o(s(u(e)))}},1083:(e,t,r)=>{var n=r(28211);e.exports=function(e){return null==e?"":n(e)}},80852:(e,t,r)=>{var n=r(42681),o=r(53849),i=r(73406),a=r(22574),s=o((function(e){return i(n(e,1,a,!0))}));e.exports=s},44914:(e,t,r)=>{var n=r(35610),o=r(32365);e.exports=function(e,t,r){return null==e?e:n(e,t,o(r))}},37337:(e,t,r)=>{var n=r(92977),o=r(3115);e.exports=function(e){return null==e?[]:n(e,o(e))}},77179:(e,t,r)=>{var n=r(10160),o=r(53849),i=r(22574),a=o((function(e,t){return i(e)?n(e,t):[]}));e.exports=a},7802:(e,t,r)=>{var n=r(52586),o=r(79317),i=r(1083),a=r(4994);e.exports=function(e,t,r){return e=i(e),void 0===(t=r?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},14137:(e,t,r)=>{var n=r(10881),o=r(37664),i=r(78218),a=r(33606),s=r(48499),l=r(7970),u=Object.prototype.hasOwnProperty;function c(e){if(s(e)&&!a(e)&&!(e instanceof n)){if(e instanceof o)return e;if(u.call(e,"__wrapped__"))return l(e)}return new o(e)}c.prototype=i.prototype,c.prototype.constructor=c,e.exports=c},45646:(e,t,r)=>{var n=r(13879),o=r(53849),i=r(94182),a=r(22574),s=o((function(e){return i(n(e,a))}));e.exports=s},33415:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(9)),n(r(10)),n(r(11)),n(r(12)),n(r(13)),n(r(14)),n(r(15)),n(r(16)),n(r(17)),n(r(31)),n(r(32)),n(r(33)),n(r(34)),n(r(35)),n(r(38)),n(r(39)),n(r(40)),n(r(41)),n(r(42)),n(r(43)),n(r(44)),n(r(45)),n(r(46)),n(r(47)),n(r(48)),n(r(49)),n(r(50)),n(r(3))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BOOKMARKING="oa:bookmarking",e.CLASSIFYING="oa:classifying",e.COMMENTING="oa:commenting",e.DESCRIBING="oa:describing",e.EDITING="oa:editing",e.HIGHLIGHTING="oa:highlighting",e.IDENTIFYING="oa:identifying",e.LINKING="oa:linking",e.MODERATING="oa:moderating",e.PAINTING="sc:painting",e.QUESTIONING="oa:questioning",e.REPLYING="oa:replying",e.TAGGING="oa:tagging",e.TRANSCRIBING="oad:transcribing"}(t.AnnotationMotivation||(t.AnnotationMotivation={})),function(e){e.AUTO_ADVANCE="auto-advance",e.CONTINUOUS="continuous",e.FACING_PAGES="facing-pages",e.HIDDEN="hidden",e.INDIVIDUALS="individuals",e.MULTI_PART="multi-part",e.NO_NAV="no-nav",e.NON_PAGED="non-paged",e.PAGED="paged",e.REPEAT="repeat",e.SEQUENCE="sequence",e.THUMBNAIL_NAV="thumbnail-nav",e.TOGETHER="together",e.UNORDERED="unordered"}(t.Behavior||(t.Behavior={})),function(e){e.CANVAS="canvas",e.CHOICE="choice",e.OA_CHOICE="oa:choice",e.CONTENT_AS_TEXT="contentastext",e.DATASET="dataset",e.DOCUMENT="document",e.IMAGE="image",e.MODEL="model",e.MOVING_IMAGE="movingimage",e.PDF="pdf",e.PHYSICAL_OBJECT="physicalobject",e.SOUND="sound",e.TEXT="text",e.TEXTUALBODY="textualbody",e.VIDEO="video"}(t.ExternalResourceType||(t.ExternalResourceType={})),function(e){e.ANNOTATION="annotation",e.CANVAS="canvas",e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range",e.SEQUENCE="sequence"}(t.IIIFResourceType||(t.IIIFResourceType={})),function(e){e.AUDIO_MP4="audio/mp4",e.CORTO="application/corto",e.DICOM="application/dicom",e.DRACO="application/draco",e.EPUB="application/epub+zip",e.GIRDER="image/vnd.kitware.girder",e.GLB="model/gltf-binary",e.GLTF="model/gltf+json",e.IIIF_PRESENTATION_2='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',e.IIIF_PRESENTATION_3='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"',e.JPG="image/jpeg",e.M3U8="application/vnd.apple.mpegurl",e.MP3="audio/mp3",e.MPEG_DASH="application/dash+xml",e.OBJ="text/plain",e.OPF="application/oebps-package+xml",e.PDF="application/pdf",e.PLY="application/ply",e.THREEJS="application/vnd.threejs+json",e.USDZ="model/vnd.usd+zip",e.VIDEO_MP4="video/mp4",e.WAV="audio/wav",e.WEBM="video/webm"}(t.MediaType||(t.MediaType={})),function(e){e.DOC="application/msword",e.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.PDF="application/pdf"}(t.RenderingFormat||(t.RenderingFormat={})),function(e){e.IMAGE_0_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",e.IMAGE_0_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",e.IMAGE_0_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",e.IMAGE_0_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",e.IMAGE_0_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",e.IMAGE_0_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",e.IMAGE_1_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",e.IMAGE_1_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",e.IMAGE_1_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",e.IMAGE_1_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",e.IMAGE_1_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",e.IMAGE_1_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",e.IMAGE_1_LEVEL_0="http://iiif.io/api/image/1/level0.json",e.IMAGE_1_PROFILE_LEVEL_0="http://iiif.io/api/image/1/profiles/level0.json",e.IMAGE_1_LEVEL_1="http://iiif.io/api/image/1/level1.json",e.IMAGE_1_PROFILE_LEVEL_1="http://iiif.io/api/image/1/profiles/level1.json",e.IMAGE_1_LEVEL_2="http://iiif.io/api/image/1/level2.json",e.IMAGE_1_PROFILE_LEVEL_2="http://iiif.io/api/image/1/profiles/level2.json",e.IMAGE_2_LEVEL_0="http://iiif.io/api/image/2/level0.json",e.IMAGE_2_PROFILE_LEVEL_0="http://iiif.io/api/image/2/profiles/level0.json",e.IMAGE_2_LEVEL_1="http://iiif.io/api/image/2/level1.json",e.IMAGE_2_PROFILE_LEVEL_1="http://iiif.io/api/image/2/profiles/level1.json",e.IMAGE_2_LEVEL_2="http://iiif.io/api/image/2/level2.json",e.IMAGE_2_PROFILE_LEVEL_2="http://iiif.io/api/image/2/profiles/level2.json",e.AUTH_0_CLICK_THROUGH="http://iiif.io/api/auth/0/login/clickthrough",e.AUTH_0_LOGIN="http://iiif.io/api/auth/0/login",e.AUTH_0_LOGOUT="http://iiif.io/api/auth/0/logout",e.AUTH_0_RESTRICTED="http://iiif.io/api/auth/0/login/restricted",e.AUTH_0_TOKEN="http://iiif.io/api/auth/0/token",e.AUTH_1_CLICK_THROUGH="http://iiif.io/api/auth/1/clickthrough",e.AUTH_1_EXTERNAL="http://iiif.io/api/auth/1/external",e.AUTH_1_KIOSK="http://iiif.io/api/auth/1/kiosk",e.AUTH_1_LOGIN="http://iiif.io/api/auth/1/login",e.AUTH_1_LOGOUT="http://iiif.io/api/auth/1/logout",e.AUTH_1_PROBE="http://iiif.io/api/auth/1/probe",e.AUTH_1_TOKEN="http://iiif.io/api/auth/1/token",e.SEARCH_0="http://iiif.io/api/search/0/search",e.SEARCH_0_AUTO_COMPLETE="http://iiif.io/api/search/0/autocomplete",e.SEARCH_1="http://iiif.io/api/search/1/search",e.SEARCH_1_AUTO_COMPLETE="http://iiif.io/api/search/1/autocomplete",e.TRACKING_EXTENSIONS="http://universalviewer.io/tracking-extensions-profile",e.UI_EXTENSIONS="http://universalviewer.io/ui-extensions-profile",e.PRINT_EXTENSIONS="http://universalviewer.io/print-extensions-profile",e.SHARE_EXTENSIONS="http://universalviewer.io/share-extensions-profile",e.DOWNLOAD_EXTENSIONS="http://universalviewer.io/download-extensions-profile",e.OTHER_MANIFESTATIONS="http://iiif.io/api/otherManifestations.json",e.IXIF="http://wellcomelibrary.org/ld/ixif/0/alpha.json"}(t.ServiceProfile||(t.ServiceProfile={})),function(e){e.IMAGE_SERVICE_2="ImageService2",e.IMAGE_SERVICE_3="ImageService3"}(t.ServiceType||(t.ServiceType={})),function(e){e.BOTTOM_TO_TOP="bottom-to-top",e.LEFT_TO_RIGHT="left-to-right",e.RIGHT_TO_LEFT="right-to-left",e.TOP_TO_BOTTOM="top-to-bottom"}(t.ViewingDirection||(t.ViewingDirection={})),function(e){e.CONTINUOUS="continuous",e.INDIVIDUALS="individuals",e.NON_PAGED="non-paged",e.PAGED="paged",e.TOP="top"}(t.ViewingHint||(t.ViewingHint={}))},function(e,t,r){var n=r(21).Symbol;e.exports=n},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=r(36);r(37);var l=function(){function e(){}return e.getMediaType=function(e){return(e=(e=e.toLowerCase()).split(";")[0]).trim()},e.getImageQuality=function(e){return e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_LEVEL_1||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_LEVEL_2||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2?"native":"default"},e.getInexactLocale=function(e){return-1!==e.indexOf("-")?e.substr(0,e.indexOf("-")):e},e.getLocalisedValue=function(e,t){if(!Array.isArray(e))return e;for(var r=0;r<e.length;r++){var n=e[r];if(t===n["@language"])return n["@value"]}var o=t.substr(0,t.indexOf("-"));for(r=0;r<e.length;r++){var i=e[r];if(i["@language"]===o)return i["@value"]}return null},e.generateTreeNodeIds=function(t,r){var n;void 0===r&&(r=0),n=t.parentNode?t.parentNode.id+"-"+r:"0",t.id=n;for(var o=0;o<t.nodes.length;o++){var i=t.nodes[o];e.generateTreeNodeIds(i,o)}},e.normaliseType=function(e){return-1!==(e=(e||"").toLowerCase()).indexOf(":")?e.split(":")[1]:e},e.normaliseUrl=function(e){return-1!==(e=e.substr(e.indexOf("://"))).indexOf("#")&&(e=e.split("#")[0]),e},e.normalisedUrlsMatch=function(t,r){return e.normaliseUrl(t)===e.normaliseUrl(r)},e.isImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.isImageServiceType=function(e){return null!==e&&e.toLowerCase()===a.ServiceType.IMAGE_SERVICE_2.toLowerCase()||e===a.ServiceType.IMAGE_SERVICE_3.toLowerCase()},e.isLevel0ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0))},e.isLevel1ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1))},e.isLevel2ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.parseManifest=function(e,t){return i.Deserialiser.parse(e,t)},e.checkStatus=function(e){if(e.ok)return e;var t=new Error(e.statusText);return t.response=e,Promise.reject(t)},e.loadManifest=function(t){return new Promise((function(r,n){fetch(t).then(e.checkStatus).then((function(e){return e.json()})).then((function(e){r(e)})).catch((function(e){n()}))}))},e.loadExternalResourcesAuth1=function(t,r,n,o,i,a,s,l){return new Promise((function(u,c){var f=t.map((function(t){return e.loadExternalResourceAuth1(t,r,n,o,i,a,s,l)}));Promise.all(f).then((function(){u(t)})).catch((function(e){c(e)}))}))},e.loadExternalResourceAuth1=function(t,r,i,a,l,u,c,f){return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){switch(o.label){case 0:return[4,a(t)];case 1:return(n=o.sent())?[4,t.getData(n)]:[3,6];case 2:return o.sent(),t.status!==s.OK?[3,3]:[2,t];case 3:return[4,e.doAuthChain(t,r,i,l,u,c,f)];case 4:o.sent(),o.label=5;case 5:if(t.status===s.OK||t.status===s.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError();case 6:return[4,t.getData()];case 7:return o.sent(),t.status!==s.MOVED_TEMPORARILY&&t.status!==s.UNAUTHORIZED?[3,9]:[4,e.doAuthChain(t,r,i,l,u,c,f)];case 8:o.sent(),o.label=9;case 9:if(t.status===s.OK||t.status===s.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError()}}))}))},e.doAuthChain=function(t,r,i,a,l,u,c){return n(this,void 0,void 0,(function(){var n,f,d,p,h,v,g,m;return o(this,(function(o){switch(o.label){case 0:return t.isAccessControlled()?((n=t.externalService)&&(n.options=t.options),(f=t.kioskService)&&(f.options=t.options),(d=t.clickThroughService)&&(d.options=t.options),(p=t.loginService)&&(p.options=t.options),t.isResponseHandled||t.status!==s.MOVED_TEMPORARILY?[3,2]:[4,u(t)]):[2,t];case 1:case 3:case 6:case 10:case 14:return o.sent(),[2,t];case 2:return h=null,v=null,(h=n)?(v=h,[4,e.attemptResourceWithToken(t,i,h)]):[3,4];case 4:return(h=f)?(v=h,(g=r(h))?[4,a(g)]:[3,7]):[3,7];case 5:case 9:case 13:return o.sent(),[4,e.attemptResourceWithToken(t,i,h)];case 7:return(h=d)?(v=h,[4,l(t,h)]):[3,11];case 8:return(m=o.sent())?[4,a(m)]:[3,11];case 11:return(h=p)?(v=h,[4,l(t,h)]):[3,15];case 12:return(m=o.sent())?[4,a(m)]:[3,15];case 15:return v&&c(t,v),[2]}}))}))},e.attemptResourceWithToken=function(e,t,r){return n(this,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return(n=r.getService(a.ServiceProfile.AUTH_1_TOKEN))?[4,t(e,n)]:[3,3];case 1:return(i=o.sent())&&i.accessToken?[4,e.getData(i)]:[3,3];case 2:return o.sent(),[2,e];case 3:return[2]}}))}))},e.loadExternalResourcesAuth09=function(t,r,n,o,i,a,s,l,u,c){return new Promise((function(f,d){var p=t.map((function(t){return e.loadExternalResourceAuth09(t,r,n,o,i,a,s,l,u,c)}));Promise.all(p).then((function(){f(t)})).catch((function(e){d(e)}))}))},e.loadExternalResourceAuth09=function(t,r,n,o,i,a,l,u,c,f){return new Promise((function(d,p){f&&f.pessimisticAccessControl?t.getData().then((function(){t.isAccessControlled()?t.clickThroughService?(d(n(t)),d(o(t))):i(t).then((function(){a(t,!0).then((function(r){t.getData(r).then((function(){d(c(t))})).catch((function(t){p(e.createInternalServerError(t))}))})).catch((function(t){p(e.createInternalServerError(t))}))})).catch((function(t){p(e.createInternalServerError(t))})):d(t)})).catch((function(t){p(e.createInternalServerError(t))})):u(t,r).then((function(f){f?t.getData(f).then((function(){t.status===s.OK?d(c(t)):e.authorize(t,r,n,o,i,a,l,u).then((function(){d(c(t))})).catch((function(t){p(e.createAuthorizationFailedError())}))})).catch((function(t){p(e.createAuthorizationFailedError())})):e.authorize(t,r,n,o,i,a,l,u).then((function(){d(c(t))})).catch((function(t){p(e.createAuthorizationFailedError())}))})).catch((function(t){p(e.createAuthorizationFailedError())}))}))},e.createError=function(e,t){var r=new Error;return r.message=t,r.name=String(e),r},e.createAuthorizationFailedError=function(){return e.createError(i.StatusCode.AUTHORIZATION_FAILED,"Authorization failed")},e.createRestrictedError=function(){return e.createError(i.StatusCode.RESTRICTED,"Restricted")},e.createInternalServerError=function(t){return e.createError(i.StatusCode.INTERNAL_SERVER_ERROR,t)},e.authorize=function(t,r,n,o,i,a,l,u){return new Promise((function(c,f){t.getData().then((function(){t.isAccessControlled()?u(t,r).then((function(u){u?t.getData(u).then((function(){t.status===s.OK?c(t):e.showAuthInteraction(t,r,n,o,i,a,l,c,f)})).catch((function(t){f(e.createInternalServerError(t))})):a(t,!1).then((function(u){u?l(t,u,r).then((function(){t.getData(u).then((function(){t.status===s.OK?c(t):e.showAuthInteraction(t,r,n,o,i,a,l,c,f)})).catch((function(t){f(e.createInternalServerError(t))}))})).catch((function(t){f(e.createInternalServerError(t))})):e.showAuthInteraction(t,r,n,o,i,a,l,c,f)}))})).catch((function(t){f(e.createInternalServerError(t))})):c(t)}))}))},e.showAuthInteraction=function(t,r,n,o,i,a,l,u,c){t.status!==s.MOVED_TEMPORARILY||t.isResponseHandled?t.clickThroughService&&!t.isResponseHandled?n(t).then((function(){a(t,!0).then((function(n){l(t,n,r).then((function(){t.getData(n).then((function(){u(t)})).catch((function(t){c(e.createInternalServerError(t))}))})).catch((function(t){c(e.createInternalServerError(t))}))})).catch((function(t){c(e.createInternalServerError(t))}))})):i(t).then((function(){a(t,!0).then((function(n){l(t,n,r).then((function(){t.getData(n).then((function(){u(t)})).catch((function(t){c(e.createInternalServerError(t))}))})).catch((function(t){c(e.createInternalServerError(t))}))})).catch((function(t){c(e.createInternalServerError(t))}))})):u(t)},e.getService=function(e,t){for(var r=this.getServices(e),n=0;n<r.length;n++){var o=r[n];if(o.getProfile()===t)return o}return null},e.getResourceById=function(t,r){return e.traverseAndFind(t.__jsonld,"@id",r)},e.traverseAndFind=function(t,r,n){if(t.hasOwnProperty(r)&&t[r]===n)return t;for(var o=0;o<Object.keys(t).length;o++)if("object"==typeof t[Object.keys(t)[o]]){var i=e.traverseAndFind(t[Object.keys(t)[o]],r,n);if(null!=i)return i}},e.getServices=function(t,r){var n=void 0===r?{}:r,o=n.onlyService,a=void 0!==o&&o,s=n.onlyServices,l=void 0!==s&&s,u=n.skipParentResources,c=[];(void 0===u||!u)&&t&&t.options&&t.options.resource&&t.options.resource!==t&&c.push.apply(c,e.getServices(t.options.resource,{onlyServices:!0}));var f=l?[]:(t.__jsonld||t).service||[];if(Array.isArray(f)||(f=[f]),a||f.push.apply(f,(t.__jsonld||t).services||[]),0===f.length)return c;for(var d=0;d<f.length;d++){var p=f[d];if("string"==typeof p){var h=this.getResourceById(t.options.resource,p);h&&c.push(new i.Service(h.__jsonld||h,t.options))}else c.push(new i.Service(p,t.options))}return c},e.getTemporalComponent=function(e){var t=/t=([^&]+)/g.exec(e),r=null;return t&&t[1]&&(r=t[1].split(",")),r},e}();t.Utils=l},function(e,t,r){var n=r(19),o=r(20);e.exports=function e(t,r,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];r>0&&i(c)?r>1?e(c,r-1,i,a,s):n(s,c):a||(s[s.length]=c)}return s}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return t=t||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],a=[],s={},l=function e(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:e,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,r){i.push(t=t.toLowerCase()),a.push([t,r]),s[t]=s[t]?s[t]+","+r:r})),r(l())},o.onerror=n,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(u,t.headers[u]);o.send(t.body||null)}))}},function(e,t,r){e.exports=r(8)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(0));var n=r(3);t.loadManifest=function(e){return n.Utils.loadManifest(e)},t.parseManifest=function(e,t){return n.Utils.parseManifest(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.__jsonld=e,this.context=this.getProperty("context"),this.id=this.getProperty("id")}return e.prototype.getProperty=function(e){var t=null;return this.__jsonld&&((t=this.__jsonld[e])||(t=this.__jsonld["@"+e])),t},e}();t.JSONLDResource=n},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=function(e){function t(t,r){var n=e.call(this,t)||this;return n.options=r,n}return o(t,e),t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){var e=this.getProperty("label");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},t.prototype.getMetadata=function(){var e=this.getProperty("metadata"),t=[];if(!e)return t;for(var r=0;r<e.length;r++){var n=e[r],o=new i.LabelValuePair(this.options.locale);o.parse(n),t.push(o)}return t},t.prototype.getRendering=function(e){for(var t=this.getRenderings(),r=0;r<t.length;r++){var n=t[r];if(n.getFormat()===e)return n}return null},t.prototype.getRenderings=function(){var e,t=[];if(!(e=this.__jsonld?this.__jsonld.rendering:this.rendering))return t;Array.isArray(e)||(e=[e]);for(var r=0;r<e.length;r++){var n=e[r];t.push(new i.Rendering(n,this.options))}return t},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");return t&&(e=new i.LabelValuePair(this.options.locale)).parse(t),e},t.prototype.getService=function(e){return i.Utils.getService(this,e)},t.prototype.getServices=function(){return i.Utils.getServices(this)},t.prototype.getThumbnail=function(){var e=this.getProperty("thumbnail");return Array.isArray(e)&&(e=e[0]),e?new i.Thumbnail(e,this.options):null},t.prototype.isAnnotation=function(){return this.getIIIFResourceType()===a.IIIFResourceType.ANNOTATION},t.prototype.isCanvas=function(){return this.getIIIFResourceType()===a.IIIFResourceType.CANVAS},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.isRange=function(){return this.getIIIFResourceType()===a.IIIFResourceType.RANGE},t.prototype.isSequence=function(){return this.getIIIFResourceType()===a.IIIFResourceType.SEQUENCE},t}(i.JSONLDResource);t.ManifestResource=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r){return e.call(this,t,r)||this}return o(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?e.toLowerCase():null},t.prototype.getResources=function(){var e=[];if(!this.__jsonld.resources)return e;for(var t=0;t<this.__jsonld.resources.length;t++){var r=this.__jsonld.resources[t],n=new i.Annotation(r,this.options);e.push(n)}return e},t.prototype.getType=function(){var e=this.getProperty("type");return e?i.Utils.normaliseType(e):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getMaxWidth=function(){return this.getProperty("maxWidth")},t.prototype.getMaxHeight=function(){return this.getProperty("maxHeight")?null:this.getMaxWidth()},t}(i.ManifestResource);t.Resource=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;n.index=-1,n.isLoaded=!1;var o={defaultLabel:"-",locale:"en-GB",resource:n,pessimisticAccessControl:!1};return n.options=Object.assign(o,r),n}return o(t,e),t.prototype.getAttribution=function(){var e=this.getProperty("attribution");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getDescription=function(){var e=this.getProperty("description");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getHomepage=function(){var e=this.getProperty("homepage");return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLogo=function(){var e=this.getProperty("logo");if(!e){var t=this.getProperty("provider");if(!t)return null;e=t.logo}return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getLicense=function(){return i.Utils.getLocalisedValue(this.getProperty("license"),this.options.locale)},t.prototype.getNavDate=function(){return new Date(this.getProperty("navDate"))},t.prototype.getRelated=function(){return this.getProperty("related")},t.prototype.getSeeAlso=function(){return this.getProperty("seeAlso")},t.prototype.getTrackingLabel=function(){var e=this.getService(a.ServiceProfile.TRACKING_EXTENSIONS);return e?e.getProperty("trackingLabel"):""},t.prototype.getDefaultTree=function(){return this.defaultTree=new i.TreeNode("root"),this.defaultTree.data=this,this.defaultTree},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");if(t)(e=new i.LabelValuePair(this.options.locale)).parse(t);else{var r=this.getAttribution();r&&((e=new i.LabelValuePair(this.options.locale)).value=r)}return e},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.load=function(){var e=this;return new Promise((function(t){if(e.isLoaded)t(e);else{var r=e.options;r.navDate=e.getNavDate();var n=e.__jsonld.id;n||(n=e.__jsonld["@id"]),i.Utils.loadManifest(n).then((function(n){e.parentLabel=e.getLabel().getValue(r.locale);var o=i.Deserialiser.parse(n,r);(e=Object.assign(e,o)).index=r.index,t(e)}))}}))},t}(i.ManifestResource);t.IIIFResource=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r){return e.call(this,t,r)||this}return o(t,e),t.prototype.getBody=function(){var e=[],t=this.getProperty("body");if(t)if(Array.isArray(t))for(var r=0;r<t.length;r++)if((a=t[r]).items)for(var n=0;n<a.items.length;n++){var o=a.items[n];e.push(new i.AnnotationBody(o,this.options))}else e.push(new i.AnnotationBody(a,this.options));else if(t.items)for(r=0;r<t.items.length;r++){var a=t.items[r];e.push(new i.AnnotationBody(a,this.options))}else e.push(new i.AnnotationBody(t,this.options));return e},t.prototype.getMotivation=function(){return this.getProperty("motivation")||null},t.prototype.getOn=function(){return this.getProperty("on")},t.prototype.getTarget=function(){return this.getProperty("target")},t.prototype.getResource=function(){return new i.Resource(this.getProperty("resource"),this.options)},t}(i.ManifestResource);t.Annotation=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r){return e.call(this,t,r)||this}return o(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?i.Utils.getMediaType(e):null},t.prototype.getType=function(){return this.getProperty("type")?i.Utils.normaliseType(this.getProperty("type")):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t}(i.ManifestResource);t.AnnotationBody=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r,n){var o=e.call(this,r)||this;return o.label=t,o.options=n,o}return o(t,e),t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){return this.label},t.prototype.getResources=function(){var e=this;return this.getProperty("resources").map((function(t){return new i.Annotation(t,e.options)}))},t.prototype.load=function(){var e=this;return new Promise((function(t,r){if(e.isLoaded)t(e);else{var n=e.__jsonld.id;n||(n=e.__jsonld["@id"]),i.Utils.loadManifest(n).then((function(r){e.__jsonld=r,e.context=e.getProperty("context"),e.id=e.getProperty("id"),e.isLoaded=!0,t(e)})).catch(r)}}))},t}(i.JSONLDResource);t.AnnotationList=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,r){return e.call(this,t,r)||this}return o(t,e),t.prototype.getItems=function(){return this.getProperty("items")},t}(r(0).ManifestResource);t.AnnotationPage=i},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(1),s=r(0),l=i(r(18)),u=i(r(30)),c=function(e){function t(t,r){return e.call(this,t,r)||this}return o(t,e),t.prototype.getCanonicalImageUri=function(e){var t,r=null,n="default",o=e;if(this.externalResource&&this.externalResource.data&&this.externalResource.data["@id"])r=this.externalResource.data["@id"],o||(o=this.externalResource.data.width),this.externalResource.data["@context"]&&(this.externalResource.data["@context"].indexOf("/1.0/context.json")>-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(n="native");else{var i=void 0;if((i=this.getImages())&&i.length){var a=i[0].getResource(),l=a.getServices();if(o||(o=a.getWidth()),u=l?l.find((function(e){return s.Utils.isImageProfile(e.getProfile())||s.Utils.isImageServiceType(e.getIIIFResourceType())})):null)r=u.id,n=s.Utils.getImageQuality(u.getProfile());else if(o===a.getWidth())return a.id}if((i=this.getContent())&&i.length){var u,c=i[0].getBody()[0];if(l=c.getServices(),o||(o=c.getWidth()),u=l?l.find((function(e){return s.Utils.isImageServiceType(e.getIIIFResourceType())})):null)r=u.id,n=s.Utils.getImageQuality(u.getProfile());else if(o===c.getWidth())return c.id}if(!r){var f=this.getProperty("thumbnail");if(f){if("string"==typeof f)return f;if(f["@id"])return f["@id"];if(f.length)return f[0].id}}}return t=o+",",r&&r.endsWith("/")&&(r=r.substr(0,r.length-1)),[r,"full",t,0,n+".jpg"].join("/")},t.prototype.getMaxDimensions=function(){var e,t=null;return this.externalResource&&this.externalResource.data&&this.externalResource.data.profile&&(e=this.externalResource.data.profile,Array.isArray(e)&&(e=e.filter((function(e){return e.maxWidth}))[0])&&(t=new s.Size(e.maxWidth,e.maxHeight?e.maxHeight:e.maxWidth))),t},t.prototype.getContent=function(){var e=[],t=this.__jsonld.items||this.__jsonld.content;if(!t)return e;var r=null;if(t.length&&(r=new s.AnnotationPage(t[0],this.options)),!r)return e;for(var n=r.getItems(),o=0;o<n.length;o++){var i=n[o],a=new s.Annotation(i,this.options);e.push(a)}return e},t.prototype.getDuration=function(){return this.getProperty("duration")},t.prototype.getImages=function(){var e=[];if(!this.__jsonld.images)return e;for(var t=0;t<this.__jsonld.images.length;t++){var r=this.__jsonld.images[t],n=new s.Annotation(r,this.options);e.push(n)}return e},t.prototype.getIndex=function(){return this.getProperty("index")},t.prototype.getOtherContent=function(){var e=this,t=(Array.isArray(this.getProperty("otherContent"))?this.getProperty("otherContent"):[this.getProperty("otherContent")]).filter((function(e){return e&&"string"==typeof(t=e["@type"])&&t.toLowerCase()==t.toLowerCase();var t})).map((function(t,r){return new s.AnnotationList(t.label||"Annotation list "+r,t,e.options)})).map((function(e){return e.load()}));return Promise.all(t)},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},Object.defineProperty(t.prototype,"imageResources",{get:function(){var e=this,r=u.default([this.getImages().map((function(e){return e.getResource()})),this.getContent().map((function(e){return e.getBody()}))]);return l.default(r.map((function(r){switch(r.getProperty("type").toLowerCase()){case a.ExternalResourceType.CHOICE:case a.ExternalResourceType.OA_CHOICE:return new t({images:l.default([r.getProperty("default"),r.getProperty("item")]).map((function(e){return{resource:e}}))},e.options).getImages().map((function(e){return e.getResource()}));default:return r}})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resourceAnnotations",{get:function(){return u.default([this.getImages(),this.getContent()])},enumerable:!0,configurable:!0}),t.prototype.resourceAnnotation=function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||l.default(new Array(t.getBody())).some((function(t){return t.id===e}))}))},t.prototype.onFragment=function(e){var t=this.resourceAnnotation(e);if(t){var r=t.getProperty("on"),n=t.getProperty("target");if(r&&n){var o=(r||n).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(e){return parseInt(e,10)}))}}},Object.defineProperty(t.prototype,"iiifImageResources",{get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageServiceIds",{get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return this.getWidth()/this.getHeight()},enumerable:!0,configurable:!0}),t}(s.Resource);t.Canvas=c},function(e,t,r){var n=r(4);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},function(e,t,r){var n=r(2),o=r(24),i=r(29),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,r){var n=r(22),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(23))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(25),o=r(5),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,r){var n=r(26),o=r(5),i="[object Arguments]";e.exports=function(e){return o(e)&&n(e)==i}},function(e,t,r){var n=r(2),o=r(27),i=r(28),a="[object Null]",s="[object Undefined]",l=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},function(e,t,r){var n=r(2),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){var n=r(4),o=1/0;e.exports=function(e){return null!=e&&e.length?n(e,o):[]}},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),a=r(0),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.items=[],n._collections=null,n._manifests=null,t.__collection=n,n}return o(t,e),t.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.items.filter((function(e){return e.isCollection()}))},t.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.items.filter((function(e){return e.isManifest()}))},t.prototype.getCollectionByIndex=function(e){for(var t,r=this.getCollections(),n=0;n<r.length;n++){var o=r[n];o.index===e&&(t=o)}if(t)return t.options.index=e,t.load();throw new Error("Collection index not found")},t.prototype.getManifestByIndex=function(e){for(var t,r=this.getManifests(),n=0;n<r.length;n++){var o=r[n];o.index===e&&(t=o)}if(t)return t.options.index=e,t.load();throw new Error("Manifest index not found")},t.prototype.getTotalCollections=function(){return this.getCollections().length},t.prototype.getTotalManifests=function(){return this.getManifests().length},t.prototype.getTotalItems=function(){return this.items.length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):i.ViewingDirection.LEFT_TO_RIGHT},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.getDefaultTree=function(){return e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=a.Utils.normaliseType(a.TreeNodeType.COLLECTION),this._parseManifests(this),this._parseCollections(this),a.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._parseManifests=function(e){if(e.getManifests()&&e.getManifests().length)for(var t=0;t<e.getManifests().length;t++){var r=e.getManifests()[t],n=r.getDefaultTree();n.label=r.parentLabel||r.getLabel().getValue(this.options.locale)||"manifest "+(t+1),n.navDate=r.getNavDate(),n.data.id=r.id,n.data.type=a.Utils.normaliseType(a.TreeNodeType.MANIFEST),e.defaultTree.addNode(n)}},t.prototype._parseCollections=function(e){if(e.getCollections()&&e.getCollections().length)for(var t=0;t<e.getCollections().length;t++){var r=e.getCollections()[t],n=r.getDefaultTree();n.label=r.parentLabel||r.getLabel().getValue(this.options.locale)||"collection "+(t+1),n.navDate=r.getNavDate(),n.data.id=r.id,n.data.type=a.Utils.normaliseType(a.TreeNodeType.COLLECTION),e.defaultTree.addNode(n)}},t}(a.IIIFResource);t.Collection=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.getLength=function(){return this.end-this.start},e}();t.Duration=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=function(){function e(e){this.defaultLocale=e}return e.prototype.parse=function(e){this.resource=e,this.label=n.PropertyValue.parse(this.resource.label,this.defaultLocale),this.value=n.PropertyValue.parse(this.resource.value,this.defaultLocale)},e.prototype.getLabel=function(e){return null===this.label?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.label.getValue(e||this.defaultLocale))},e.prototype.setLabel=function(e){null===this.label&&(this.label=new n.PropertyValue([])),this.label.setValue(e,this.defaultLocale)},e.prototype.getValue=function(e,t){return void 0===t&&(t="<br/>"),null===this.value?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValue(e||this.defaultLocale,t))},e.prototype.getValues=function(e){return null===this.value?[]:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValues(e||this.defaultLocale))},e.prototype.setValue=function(e){null===this.value&&(this.value=new n.PropertyValue([])),this.value.setValue(e,this.defaultLocale)},e}();t.LabelValuePair=o},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getValue=function(e,t){return e.getValue(t,"<br/>")},t.getValues=function(e,t){return e.getValues(t)},t}(Array);t.LanguageMap=i},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n};Object.defineProperty(t,"__esModule",{value:!0});var a=r(3),s=function(){function e(e,t,r){void 0===r&&(r="none"),Array.isArray(e)&&1===e.length?this._value=e[0]:this._value=e,"none"!==t&&"@none"!==t||(t=void 0),this._locale=t,this._defaultLocale=r}return e.parseV2Value=function(t,r){return"string"==typeof t?new e(t,void 0,r):t["@value"]?new e(t["@value"],t["@language"],r):null},Object.defineProperty(e.prototype,"value",{get:function(){return Array.isArray(this._value)?this._value.join("<br/>"):this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return void 0===this._locale?this._defaultLocale:this._locale},enumerable:!0,configurable:!0}),e.prototype.addValue=function(e){Array.isArray(this._value)||(this._value=[this._value]),Array.isArray(e)?this._value=this._value.concat(e):this._value.push(e)},e}();t.LocalizedValue=s;var l=function(e){function t(r,n){void 0===r&&(r=[]);var o=e.apply(this,r)||this;return o.__proto__=t.prototype,o._defaultLocale=n,o}return o(t,e),t.parse=function(e,r){if(!e)return new t([],r);if(Array.isArray(e)){var n=(o=e.map((function(e){return s.parseV2Value(e,r)})).filter((function(e){return null!==e}))).reduce((function(e,t){var r=t._locale;return r||(r="none"),e[r]?e[r].addValue(t._value):e[r]=t,e}),{});return new t(Object.values(n),r)}return"string"==typeof e?new t([new s(e,void 0,r)],r):e["@language"]||e["@value"]?new t(null!==(o=s.parseV2Value(e))?[o]:[],r):new t(Object.keys(e).map((function(t){var n=e[t];if(!Array.isArray(n))throw new Error("A IIIF v3 localized property value must have an array as the value for a given language.");return new s(n,t,r)})),r);var o},t.prototype.getSuitableLocale=function(e){for(var t=i(this).map((function(e){return e._locale})).filter((function(e){return void 0!==e})),r=function(e){var r=t.find((function(t){return t===e}));if(r)return{value:r}},n=0,o=e;n<o.length;n++){var s=r(o[n]);if("object"==typeof s)return s.value}for(var l=function(e){var r=t.find((function(t){return a.Utils.getInexactLocale(t)===a.Utils.getInexactLocale(e)}));if(r)return{value:r}},u=0,c=e;u<c.length;u++){var f=l(c[u]);if("object"==typeof f)return f.value}},t.prototype.setValue=function(e,t){var r=void 0;if(t){var n=this.getSuitableLocale([t]);n&&(r=this.find((function(e){return e._locale===n})))}else r=this.find((function(e){return void 0===e._locale}));r?r._value=e:this.push(new s(e,t,this._defaultLocale))},t.prototype.getValue=function(e,t){var r=this.getValues(e);return 0===r.length?null:t?r.join(t):r[0]},t.prototype.getValues=function(e){if(!this.length)return[];var t;if(t=e?Array.isArray(e)?e:[e]:[],1===this.length&&void 0===this[0]._locale){var r=this[0]._value;return Array.isArray(r)?r:[r]}var n=this.getSuitableLocale(t);if(n)return r=this.find((function(e){return e._locale===n}))._value,Array.isArray(r)?r:[r];if(!this.find((function(e){return void 0===e._locale})))return r=this[0]._value,Array.isArray(r)?r:[r];var o=this.find((function(e){return void 0===e._locale}));return o?Array.isArray(o._value)?o._value:[o._value]:[]},t}(Array);t.PropertyValue=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTINUE=100,t.SWITCHING_PROTOCOLS=101,t.PROCESSING=102,t.OK=200,t.CREATED=201,t.ACCEPTED=202,t.NON_AUTHORITATIVE_INFORMATION=203,t.NO_CONTENT=204,t.RESET_CONTENT=205,t.PARTIAL_CONTENT=206,t.MULTI_STATUS=207,t.MULTIPLE_CHOICES=300,t.MOVED_PERMANENTLY=301,t.MOVED_TEMPORARILY=302,t.SEE_OTHER=303,t.NOT_MODIFIED=304,t.USE_PROXY=305,t.TEMPORARY_REDIRECT=307,t.BAD_REQUEST=400,t.UNAUTHORIZED=401,t.PAYMENT_REQUIRED=402,t.FORBIDDEN=403,t.NOT_FOUND=404,t.METHOD_NOT_ALLOWED=405,t.NOT_ACCEPTABLE=406,t.PROXY_AUTHENTICATION_REQUIRED=407,t.REQUEST_TIME_OUT=408,t.CONFLICT=409,t.GONE=410,t.LENGTH_REQUIRED=411,t.PRECONDITION_FAILED=412,t.REQUEST_ENTITY_TOO_LARGE=413,t.REQUEST_URI_TOO_LARGE=414,t.UNSUPPORTED_MEDIA_TYPE=415,t.REQUESTED_RANGE_NOT_SATISFIABLE=416,t.EXPECTATION_FAILED=417,t.IM_A_TEAPOT=418,t.UNPROCESSABLE_ENTITY=422,t.LOCKED=423,t.FAILED_DEPENDENCY=424,t.UNORDERED_COLLECTION=425,t.UPGRADE_REQUIRED=426,t.PRECONDITION_REQUIRED=428,t.TOO_MANY_REQUESTS=429,t.REQUEST_HEADER_FIELDS_TOO_LARGE=431,t.INTERNAL_SERVER_ERROR=500,t.NOT_IMPLEMENTED=501,t.BAD_GATEWAY=502,t.SERVICE_UNAVAILABLE=503,t.GATEWAY_TIME_OUT=504,t.HTTP_VERSION_NOT_SUPPORTED=505,t.VARIANT_ALSO_NEGOTIATES=506,t.INSUFFICIENT_STORAGE=507,t.BANDWIDTH_LIMIT_EXCEEDED=509,t.NOT_EXTENDED=510,t.NETWORK_AUTHENTICATION_REQUIRED=511},function(e,t,r){e.exports=window.fetch||(window.fetch=r(6).default||r(6))},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),a=r(0),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;if(n.index=0,n._allRanges=null,n.items=[],n._topRanges=[],n.__jsonld.structures&&n.__jsonld.structures.length)for(var o=n._getTopRanges(),i=0;i<o.length;i++){var a=o[i];n._parseRanges(a,String(i))}return n}return o(t,e),t.prototype.getPosterCanvas=function(){var e=this.getProperty("posterCanvas");return e&&(e=new a.Canvas(e,this.options)),e},t.prototype.getAccompanyingCanvas=function(){var e=this.getProperty("accompanyingCanvas");return e&&(e=new a.Canvas(e,this.options)),e},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getDefaultTree=function(){if(e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=a.Utils.normaliseType(a.TreeNodeType.MANIFEST),!this.isLoaded)return this.defaultTree;var t=this.getTopRanges();return t.length&&t[0].getTree(this.defaultTree),a.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._getTopRanges=function(){var e=[];if(this.__jsonld.structures&&this.__jsonld.structures.length){for(var t=0;t<this.__jsonld.structures.length;t++){var r=this.__jsonld.structures[t];r.viewingHint===i.ViewingHint.TOP&&e.push(r)}if(!e.length){var n={};n.ranges=this.__jsonld.structures,e.push(n)}}return e},t.prototype.getTopRanges=function(){return this._topRanges},t.prototype._getRangeById=function(e){if(this.__jsonld.structures&&this.__jsonld.structures.length)for(var t=0;t<this.__jsonld.structures.length;t++){var r=this.__jsonld.structures[t];if(r["@id"]===e||r.id===e)return r}return null},t.prototype._parseRanges=function(e,t,r){var n,o=null;if("string"==typeof e&&(o=e,e=this._getRangeById(o)),e){(n=new a.Range(e,this.options)).parentRange=r,n.path=t,r?r.items.push(n):this._topRanges.push(n);var i=e.items||e.members;if(i)for(var s=0;s<i.length;s++){var l=i[s];if(l["@type"]&&"sc:range"===l["@type"].toLowerCase()||l.type&&"range"===l.type.toLowerCase())this._parseRanges(l,t+"/"+s,n);else if(l["@type"]&&"sc:canvas"===l["@type"].toLowerCase()||l.type&&"canvas"===l.type.toLowerCase()){n.canvases||(n.canvases=[]);var u=l.id||l["@id"];n.canvases.push(u)}}else if(e.ranges)for(s=0;s<e.ranges.length;s++)this._parseRanges(e.ranges[s],t+"/"+s,n)}else console.warn("Range:",o,"does not exist")},t.prototype.getAllRanges=function(){if(null!=this._allRanges)return this._allRanges;this._allRanges=[];for(var e=this.getTopRanges(),t=function(t){var n=e[t];n.id&&r._allRanges.push(n);var o=function e(t,r){t.add(r);var n=r.getRanges();return n.length?n.reduce(e,t):t},i=Array.from(n.getRanges().reduce(o,new Set));r._allRanges=r._allRanges.concat(i)},r=this,n=0;n<e.length;n++)t(n);return this._allRanges},t.prototype.getRangeById=function(e){for(var t=this.getAllRanges(),r=0;r<t.length;r++){var n=t[r];if(n.id===e)return n}return null},t.prototype.getRangeByPath=function(e){for(var t=this.getAllRanges(),r=0;r<t.length;r++){var n=t[r];if(n.path===e)return n}return null},t.prototype.getSequences=function(){if(this.items.length)return this.items;var e=this.__jsonld.mediaSequences||this.__jsonld.sequences;if(e)for(var t=0;t<e.length;t++){var r=e[t],n=new a.Sequence(r,this.options);this.items.push(n)}else this.__jsonld.items&&(n=new a.Sequence(this.__jsonld.items,this.options),this.items.push(n));return this.items},t.prototype.getSequenceByIndex=function(e){return this.getSequences()[e]},t.prototype.getTotalSequences=function(){return this.getSequences().length},t.prototype.getManifestType=function(){var e=this.getService(i.ServiceProfile.UI_EXTENSIONS);return e?e.getProperty("manifestType"):a.ManifestType.EMPTY},t.prototype.isMultiSequence=function(){return this.getTotalSequences()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();if(e)return e===i.ViewingHint.PAGED;var t=this.getBehavior();return!!t&&t===i.Behavior.PAGED},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t}(a.IIIFResource);t.Manifest=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EMPTY="",e.MANUSCRIPT="manuscript",e.MONOGRAPH="monograph"}(t.ManifestType||(t.ManifestType={}))},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=r(1),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n._ranges=null,n.canvases=null,n.items=[],n}return o(t,e),t.prototype.getCanvasIds=function(){return this.__jsonld.canvases?this.__jsonld.canvases:this.canvases?this.canvases:[]},t.prototype.getDuration=function(){if(this.canvases&&this.canvases.length){for(var e=[],t=[],r=0,n=this.canvases;r<n.length;r++)if(h=n[r]){var o=h.match(/(.*)#t=([0-9.]+),?([0-9.]+)?/)||[void 0,h],a=o[1],s=o[2],l=o[3];a&&(e.push(parseFloat(s)),t.push(parseFloat(l)))}if(e.length&&t.length)return new i.Duration(Math.min.apply(Math,e),Math.max.apply(Math,t))}else{e=[],t=[];for(var u=0,c=g=this.getRanges();u<c.length;u++)(m=c[u].getDuration())&&(e.push(m.start),t.push(m.end));if(e.length&&t.length)return new i.Duration(Math.min.apply(Math,e),Math.max.apply(Math,t))}var f,d;if(this.canvases&&this.canvases.length)for(var p=0;p<this.canvases.length;p++){var h=this.canvases[p],v=i.Utils.getTemporalComponent(h);v&&v.length>1&&(0===p&&(f=Number(v[0])),p===this.canvases.length-1&&(d=Number(v[1])))}else{var g=this.getRanges();for(p=0;p<g.length;p++){var m;(m=g[p].getDuration())&&(0===p&&(f=m.start),p===g.length-1&&(d=m.end))}}if(void 0!==f&&void 0!==d)return new i.Duration(f,d)},t.prototype.getRanges=function(){return this._ranges?this._ranges:this._ranges=this.items.filter((function(e){return e.isRange()}))},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.getTree=function(e){e.data=this,this.treeNode=e;var t=this.getRanges();if(t&&t.length)for(var r=0;r<t.length;r++){var n=t[r],o=new i.TreeNode;e.addNode(o),this._parseTreeNode(o,n)}return i.Utils.generateTreeNodeIds(e),e},t.prototype.spansTime=function(e){var t=this.getDuration();return!!(t&&e>=t.start&&e<=t.end)},t.prototype._parseTreeNode=function(e,t){e.label=t.getLabel().getValue(this.options.locale),e.data=t,e.data.type=i.Utils.normaliseType(i.TreeNodeType.RANGE),t.treeNode=e;var r=t.getRanges();if(r&&r.length)for(var n=0;n<r.length;n++){var o=r[n];if(o.getBehavior()!==a.Behavior.NO_NAV){var s=new i.TreeNode;e.addNode(s),this._parseTreeNode(s,o)}}},t}(i.ManifestResource);t.Range=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,r){return e.call(this,t,r)||this}return o(t,e),t.prototype.getFormat=function(){return this.getProperty("format")},t}(r(0).ManifestResource);t.Rendering=i},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),a=r(0),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.items=[],n._thumbnails=null,n}return o(t,e),t.prototype.getCanvases=function(){if(this.items.length)return this.items;var e=this.__jsonld.canvases||this.__jsonld.elements;if(e)for(var t=0;t<e.length;t++){var r=e[t];(n=new a.Canvas(r,this.options)).index=t,this.items.push(n)}else if(this.__jsonld)for(t=0;t<this.__jsonld.length;t++){var n;r=this.__jsonld[t],(n=new a.Canvas(r,this.options)).index=t,this.items.push(n)}return this.items},t.prototype.getCanvasById=function(e){for(var t=0;t<this.getTotalCanvases();t++){var r=this.getCanvasByIndex(t),n=a.Utils.normaliseUrl(r.id);if(a.Utils.normaliseUrl(e)===n)return r}return null},t.prototype.getCanvasByIndex=function(e){return this.getCanvases()[e]},t.prototype.getCanvasIndexById=function(e){for(var t=0;t<this.getTotalCanvases();t++)if(this.getCanvasByIndex(t).id===e)return t;return null},t.prototype.getCanvasIndexByLabel=function(e,t){e=e.trim(),isNaN(e)||(e=parseInt(e,10).toString(),t&&(e+="r"));for(var r,n,o,i=/(\d*)\D+(\d*)/,a=0;a<this.getTotalCanvases();a++){var s=this.getCanvasByIndex(a);if(s.getLabel().getValue(this.options.locale)===e)return a;if((r=i.exec(e))&&(n=r[1],(o=r[2])&&new RegExp("^"+n+"\\D+"+o+"$").test(s.getLabel().toString())))return a}return-1},t.prototype.getLastCanvasLabel=function(e){for(var t=this.getTotalCanvases()-1;t>=0;t--){var r=this.getCanvasByIndex(t).getLabel().getValue(this.options.locale);if(e){if(/^[a-zA-Z0-9]*$/.test(r))return r}else if(r)return r}return this.options.defaultLabel},t.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},t.prototype.getNextPageIndex=function(e,t){var r;if(t){var n=this.getPagedIndices(e),o=this.getViewingDirection();r=o&&o===i.ViewingDirection.RIGHT_TO_LEFT?n[0]+1:n[n.length-1]+1}else r=e+1;return r>this.getLastPageIndex()?-1:r},t.prototype.getPagedIndices=function(e,t){var r=[];if(t){r=this.isFirstCanvas(e)||this.isLastCanvas(e)?[e]:e%2?[e,e+1]:[e-1,e];var n=this.getViewingDirection();n&&n===i.ViewingDirection.RIGHT_TO_LEFT&&(r=r.reverse())}else r.push(e);return r},t.prototype.getPrevPageIndex=function(e,t){var r;if(t){var n=this.getPagedIndices(e),o=this.getViewingDirection();r=o&&o===i.ViewingDirection.RIGHT_TO_LEFT?n[n.length-1]-1:n[0]-1}else r=e-1;return r},t.prototype.getStartCanvasIndex=function(){var e=this.getStartCanvas();if(e)for(var t=0;t<this.getTotalCanvases();t++)if(this.getCanvasByIndex(t).id===e)return t;return 0},t.prototype.getThumbs=function(e,t){for(var r=[],n=this.getTotalCanvases(),o=0;o<n;o++){var i=this.getCanvasByIndex(o),s=new a.Thumb(e,i);r.push(s)}return r},t.prototype.getThumbnails=function(){if(null!=this._thumbnails)return this._thumbnails;this._thumbnails=[];for(var e=this.getCanvases(),t=0;t<e.length;t++){var r=e[t].getThumbnail();r&&this._thumbnails.push(r)}return this._thumbnails},t.prototype.getStartCanvas=function(){return this.getProperty("startCanvas")},t.prototype.getTotalCanvases=function(){return this.getCanvases().length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):this.options.resource.getViewingDirection?this.options.resource.getViewingDirection():null},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.isCanvasIndexOutOfRange=function(e){return e>this.getTotalCanvases()-1},t.prototype.isFirstCanvas=function(e){return 0===e},t.prototype.isLastCanvas=function(e){return e===this.getTotalCanvases()-1},t.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();return!!e&&e===i.ViewingHint.PAGED},t.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2==0},t}(a.ManifestResource);t.Sequence=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=function(){function e(){}return e.parse=function(e,t){return"string"==typeof e&&(e=JSON.parse(e)),this.parseJson(e,t)},e.parseJson=function(e,t){var r;if(t&&t.navDate&&!isNaN(t.navDate.getTime())&&(e.navDate=t.navDate.toString()),e["@type"])switch(e["@type"]){case"sc:Collection":r=this.parseCollection(e,t);break;case"sc:Manifest":r=this.parseManifest(e,t);break;default:return null}else switch(e.type){case"Collection":r=this.parseCollection(e,t);break;case"Manifest":r=this.parseManifest(e,t);break;default:return null}return r.isLoaded=!0,r},e.parseCollection=function(e,t){var r=new n.Collection(e,t);return t?(r.index=t.index||0,t.resource&&(r.parentCollection=t.resource.parentCollection)):r.index=0,this.parseCollections(r,t),this.parseManifests(r,t),this.parseItems(r,t),r},e.parseCollections=function(e,t){var r;if(e.__jsonld.collections?r=e.__jsonld.collections:e.__jsonld.items&&(r=e.__jsonld.items.filter((function(e){return"collection"===e.type.toLowerCase()}))),r)for(var n=0;n<r.length;n++){t&&(t.index=n);var o=this.parseCollection(r[n],t);o.index=n,o.parentCollection=e,e.items.push(o)}},e.parseManifest=function(e,t){return new n.Manifest(e,t)},e.parseManifests=function(e,t){var r;if(e.__jsonld.manifests?r=e.__jsonld.manifests:e.__jsonld.items&&(r=e.__jsonld.items.filter((function(e){return"manifest"===e.type.toLowerCase()}))),r)for(var n=0;n<r.length;n++){var o=this.parseManifest(r[n],t);o.index=n,o.parentCollection=e,e.items.push(o)}},e.parseItem=function(e,t){if(e["@type"]){if("sc:manifest"===e["@type"].toLowerCase())return this.parseManifest(e,t);if("sc:collection"===e["@type"].toLowerCase())return this.parseCollection(e,t)}else if(e.type){if("manifest"===e.type.toLowerCase())return this.parseManifest(e,t);if("collection"===e.type.toLowerCase())return this.parseCollection(e,t)}return null},e.parseItems=function(e,t){var r=e.__jsonld.members||e.__jsonld.items;if(r)for(var n=function(n){t&&(t.index=n);var i=o.parseItem(r[n],t);return i?e.items.filter((function(e){return e.id===i.id}))[0]?"continue":(i.index=n,i.parentCollection=e,void e.items.push(i)):{value:void 0}},o=this,i=0;i<r.length;i++){var a=n(i);if("object"==typeof a)return a.value}},e}();t.Deserialiser=o},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r){return e.call(this,t,r)||this}return o(t,e),t.prototype.getProfile=function(){var e=this.getProperty("profile");return e||(e=this.getProperty("dcterms:conformsTo")),Array.isArray(e)?e[0]:e},t.prototype.getConfirmLabel=function(){return i.Utils.getLocalisedValue(this.getProperty("confirmLabel"),this.options.locale)},t.prototype.getDescription=function(){return i.Utils.getLocalisedValue(this.getProperty("description"),this.options.locale)},t.prototype.getFailureDescription=function(){return i.Utils.getLocalisedValue(this.getProperty("failureDescription"),this.options.locale)},t.prototype.getFailureHeader=function(){return i.Utils.getLocalisedValue(this.getProperty("failureHeader"),this.options.locale)},t.prototype.getHeader=function(){return i.Utils.getLocalisedValue(this.getProperty("header"),this.options.locale)},t.prototype.getServiceLabel=function(){return i.Utils.getLocalisedValue(this.getProperty("label"),this.options.locale)},t.prototype.getInfoUri=function(){var e=this.id;return e.endsWith("/")||(e+="/"),e+"info.json"},t}(i.ManifestResource);t.Service=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){this.width=e,this.height=t};t.Size=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.AUTHORIZATION_FAILED=1]="AUTHORIZATION_FAILED",e[e.FORBIDDEN=2]="FORBIDDEN",e[e.INTERNAL_SERVER_ERROR=3]="INTERNAL_SERVER_ERROR",e[e.RESTRICTED=4]="RESTRICTED"}(t.StatusCode||(t.StatusCode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){this.data=t,this.index=t.index,this.width=e;var r=t.getHeight()/t.getWidth();this.height=r?Math.floor(this.width*r):e,this.uri=t.getCanonicalImageUri(e),this.label=t.getLabel().getValue(),this.viewingHint=t.getViewingHint()};t.Thumb=n},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,r){return e.call(this,t,r)||this}return o(t,e),t}(r(0).Resource);t.Thumbnail=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=function(){function e(e,t){this.label=e,this.data=t||{},this.nodes=[]}return e.prototype.addNode=function(e){this.nodes.push(e),e.parentNode=this},e.prototype.isCollection=function(){return this.data.type===n.Utils.normaliseType(n.TreeNodeType.COLLECTION)},e.prototype.isManifest=function(){return this.data.type===n.Utils.normaliseType(n.TreeNodeType.MANIFEST)},e.prototype.isRange=function(){return this.data.type===n.Utils.normaliseType(n.TreeNodeType.RANGE)},e}();t.TreeNode=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range"}(t.TreeNodeType||(t.TreeNodeType={}))}])},2913:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.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)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u="undefined"==typeof URL?r(23842).URL:URL,c=function(e,t){return t.some((function(t){return t instanceof RegExp?t.test(e):t===e}))},f=function(e,t){if(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),Reflect.has(t,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(t,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(t,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(e=e.trim(),/^data:/i.test(e))return function(e,t){var r=t.stripHash,n=e.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!n)throw new Error("Invalid URL: ".concat(e));var o=n[1].split(";"),s=n[2],l=r?"":n[3],u=!1;"base64"===o[o.length-1]&&(o.pop(),u=!0);var c=(o.shift()||"").toLowerCase(),f=i(o.map((function(e){var t=a(e.split("=").map((function(e){return e.trim()})),2),r=t[0],n=t[1],o=void 0===n?"":n;return"charset"===r&&"us-ascii"===(o=o.toLowerCase())?"":"".concat(r).concat(o?"=".concat(o):"")})).filter(Boolean));return u&&f.push("base64"),(0!==f.length||c&&"text/plain"!==c)&&f.unshift(c),"data:".concat(f.join(";"),",").concat(u?s.trim():s).concat(l?"#".concat(l):"")}(e,t);var r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));var s=new u(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===s.protocol&&(s.protocol="http:"),t.forceHttps&&"http:"===s.protocol&&(s.protocol="https:"),t.stripAuthentication&&(s.username="",s.password=""),t.stripHash&&(s.hash=""),s.pathname&&(s.pathname=s.pathname.replace(/((?!:).|^)\/{2,}/g,(function(e,t){return/^(?!\/)/g.test(t)?"".concat(t,"/"):"/"}))),s.pathname&&(s.pathname=decodeURI(s.pathname)),!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){var l=s.pathname.split("/"),f=l[l.length-1];c(f,t.removeDirectoryIndex)&&(l=l.slice(0,l.length-1),s.pathname=l.slice(1).join("/")+"/")}if(s.hostname&&(s.hostname=s.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(s.hostname)&&(s.hostname=s.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(var d=0,p=i(s.searchParams.keys());d<p.length;d++){var h=p[d];c(h,t.removeQueryParameters)&&s.searchParams.delete(h)}return t.sortQueryParameters&&s.searchParams.sort(),t.removeTrailingSlash&&(s.pathname=s.pathname.replace(/\/$/,"")),e=s.toString(),!t.removeTrailingSlash&&"/"!==s.pathname||""!==s.hash||(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};e.exports=f,e.exports.default=f},4356:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,v=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,A=Array.prototype.join,P=Array.prototype.slice,j=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C||"symbol")?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-j(-e):j(e);if(n!==e){var o=String(n),i=y.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var D=r(42634),M=D.custom,L=H(M)?M:null;function z(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function W(e){return b.call(String(e),/"/g,"&quot;")}function B(e){return!("[object Array]"!==G(e)||k&&"object"==typeof e&&k in e)}function F(e){return!("[object RegExp]"!==G(e)||k&&"object"==typeof e&&k in e)}function H(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var l=n||{};if(V(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var v=!V(l,"customInspect")||l.customInspect;if("boolean"!=typeof v&&"symbol"!==v)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?N(t,x):x}if("bigint"==typeof t){var j=String(t)+"n";return w?N(t,j):j}var I=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=I&&I>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var M=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(l,o);if(void 0===s)s=[];else if(q(s,t)>=0)return"[Circular]";function U(t,r,n){if(r&&(s=P.call(s)).push(r),n){var i={depth:l.depth};return V(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"==typeof t&&!F(t)){var $=function(e){if(e.name)return e.name;var t=m.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=J(t,U);return"[Function"+($?": "+$:" (anonymous)")+"]"+(ee.length>0?" { "+A.call(ee,", ")+" }":"")}if(H(t)){var te=C?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||C?te:Z(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+O.call(String(t.nodeName)),ne=t.attributes||[],oe=0;oe<ne.length;oe++)re+=" "+ne[oe].name+"="+z(W(ne[oe].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+O.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ie=J(t,U);return M&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,M)+"]":"[ "+A.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||k&&"object"==typeof e&&k in e)}(t)){var ae=J(t,U);return"cause"in Error.prototype||!("cause"in t)||_.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(ae,", ")+" }":"{ ["+String(t)+"] "+A.call(S.call("[cause]: "+U(t.cause),ae),", ")+" }"}if("object"==typeof t&&v){if(L&&"function"==typeof t[L]&&D)return D(t,{depth:I-o});if("symbol"!==v&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,r){se.push(U(r,t,!0)+" => "+U(e,t))})),Y("Map",i.call(t),se,M)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(U(e,t))})),Y("Set",u.call(t),le,M)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if(function(e){return!("[object Number]"!==G(e)||k&&"object"==typeof e&&k in e)}(t))return Z(U(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return Z(U(E.call(t)));if(function(e){return!("[object Boolean]"!==G(e)||k&&"object"==typeof e&&k in e)}(t))return Z(h.call(t));if(function(e){return!("[object String]"!==G(e)||k&&"object"==typeof e&&k in e)}(t))return Z(U(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||k&&"object"==typeof e&&k in e)}(t)&&!F(t)){var ue=J(t,U),ce=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!ce&&k&&Object(t)===t&&k in t?y.call(G(t),8,-1):fe?"Object":"",pe=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+A.call(S.call([],de||[],fe||[]),": ")+"] ":"");return 0===ue.length?pe+"{}":M?pe+"{"+Q(ue,M)+"}":pe+"{ "+A.call(ue,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return U.call(e,t)}function G(e){return v.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function K(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return K(y.call(e,0,t.maxStringLength),t)+n}return z(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$),"single",t)}function $(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):A.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function J(e,t){var r=B(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=V(e,o)?t(e[o],e):""}var i,a="function"==typeof I?I(e):[];if(C){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)V(e,l)&&(r&&String(Number(l))===l&&l<e.length||C&&i["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof I)for(var u=0;u<a.length;u++)_.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}},99982:function(e,t){var r,n,o,i,a;function s(e){return new s.Viewer(e)}!function(e){e.version={versionStr:"4.1.0",major:parseInt("4",10),minor:parseInt("1",10),revision:parseInt("0",10)};var t,r={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object AsyncFunction]":"function","[object Promise]":"promise","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},n=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.isFunction=function(t){return"function"===e.type(t)},e.isArray=Array.isArray||function(t){return"array"===e.type(t)},e.isWindow=function(e){return e&&"object"==typeof e&&"setInterval"in e},e.type=function(e){return null==e?String(e):r[n.call(e)]||"object"},e.isPlainObject=function(t){if(!t||"object"!==s.type(t)||t.nodeType||e.isWindow(t))return!1;if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1;var r;for(var n in t)r=n;return void 0===r||o.call(t,r)},e.isEmptyObject=function(e){for(var t in e)return!1;return!0},e.freezeObject=function(t){return Object.freeze?e.freezeObject=Object.freeze:e.freezeObject=function(e){return e},e.freezeObject(t)},e.supportsCanvas=(t=document.createElement("canvas"),!(!e.isFunction(t.getContext)||!t.getContext("2d"))),e.isCanvasTainted=function(e){var t=!1;try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){t=!0}return t},e.supportsAddEventListener=!(!document.documentElement.addEventListener||!document.addEventListener),e.supportsRemoveEventListener=!(!document.documentElement.removeEventListener||!document.removeEventListener),e.supportsEventListenerOptions=function(){var t=0;if(e.supportsAddEventListener)try{var r={get capture(){return t++,!1},get once(){return t++,!1},get passive(){return t++,!1}};window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(e){t=0}return t>=3}(),e.getCurrentPixelDensityRatio=function(){if(e.supportsCanvas){var t=document.createElement("canvas").getContext("2d"),r=window.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return Math.max(r,1)/n}return 1},e.pixelDensityRatio=e.getCurrentPixelDensityRatio()}(s),function(e){e.extend=function(){var t,r,n,o,i,a,l=arguments[0]||{},u=arguments.length,c=!1,f=1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},f=2),"object"==typeof l||s.isFunction(l)||(l={}),u===f&&(l=this,--f);f<u;f++)if(null!==(t=arguments[f])||void 0!==t)for(r in t){var d=Object.getOwnPropertyDescriptor(t,r);void 0!==d?d.get||d.set?Object.defineProperty(l,r,d):l!==(o=d.value)&&(c&&o&&(s.isPlainObject(o)||(i=s.isArray(o)))?(n=l[r],i?(i=!1,a=n&&s.isArray(n)?n:[]):a=n&&s.isPlainObject(n)?n:{},l[r]=s.extend(c,a,o)):void 0!==o&&(l[r]=o)):e.console.warn('Could not copy inherited property "'+r+'".')}return l};e.extend(e,{DEFAULT_SETTINGS:{xmlPath:null,tileSources:null,tileHost:null,initialPage:0,crossOriginPolicy:!1,ajaxWithCredentials:!1,loadTilesWithAjax:!1,ajaxHeaders:{},splitHashDataForPost:!1,panHorizontal:!0,panVertical:!0,constrainDuringPan:!1,wrapHorizontal:!1,wrapVertical:!1,visibilityRatio:.5,minPixelRatio:.5,defaultZoomLevel:0,minZoomLevel:null,maxZoomLevel:null,homeFillsViewer:!1,clickTimeThreshold:300,clickDistThreshold:5,dblClickTimeThreshold:300,dblClickDistThreshold:20,springStiffness:6.5,animationTime:1.2,gestureSettingsMouse:{dragToPan:!0,scrollToZoom:!0,clickToZoom:!0,dblClickToZoom:!1,dblClickDragToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsTouch:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,dblClickDragToZoom:!0,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsPen:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!0,dblClickToZoom:!1,dblClickDragToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsUnknown:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,dblClickDragToZoom:!1,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},zoomPerClick:2,zoomPerScroll:1.2,zoomPerDblClickDrag:1.2,zoomPerSecond:1,blendTime:0,alwaysBlend:!1,autoHideControls:!0,immediateRender:!1,minZoomImageRatio:.9,maxZoomPixelRatio:1.1,smoothTileEdgesMinZoom:1.1,iOSDevice:function(){if("object"!=typeof navigator)return!1;var e=navigator.userAgent;return"string"==typeof e&&(-1!==e.indexOf("iPhone")||-1!==e.indexOf("iPad")||-1!==e.indexOf("iPod"))}(),pixelsPerWheelLine:40,pixelsPerArrowPress:40,autoResize:!0,preserveImageSizeOnResize:!1,minScrollDeltaTime:50,rotationIncrement:90,showSequenceControl:!0,sequenceControlAnchor:null,preserveViewport:!1,preserveOverlays:!1,navPrevNextWrap:!1,showNavigationControl:!0,navigationControlAnchor:null,showZoomControl:!0,showHomeControl:!0,showFullPageControl:!0,showRotationControl:!1,showFlipControl:!1,controlsFadeDelay:2e3,controlsFadeLength:1500,mouseNavEnabled:!0,showNavigator:!1,navigatorElement:null,navigatorId:null,navigatorPosition:null,navigatorSizeRatio:.2,navigatorMaintainSizeRatio:!1,navigatorTop:null,navigatorLeft:null,navigatorHeight:null,navigatorWidth:null,navigatorAutoResize:!0,navigatorAutoFade:!0,navigatorRotate:!0,navigatorBackground:"#000",navigatorOpacity:.8,navigatorBorderColor:"#555",navigatorDisplayRegionColor:"#900",degrees:0,flipped:!1,opacity:1,preload:!1,compositeOperation:null,imageSmoothingEnabled:!0,placeholderFillStyle:null,subPixelRoundingForTransparency:null,showReferenceStrip:!1,referenceStripScroll:"horizontal",referenceStripElement:null,referenceStripHeight:null,referenceStripWidth:null,referenceStripPosition:"BOTTOM_LEFT",referenceStripSizeRatio:.2,collectionRows:3,collectionColumns:0,collectionLayout:"horizontal",collectionMode:!1,collectionTileSize:800,collectionTileMargin:80,imageLoaderLimit:0,maxImageCacheCount:200,timeout:3e4,useCanvas:!0,tileRetryMax:0,tileRetryDelay:2500,prefixUrl:"/images/",navImages:{zoomIn:{REST:"zoomin_rest.png",GROUP:"zoomin_grouphover.png",HOVER:"zoomin_hover.png",DOWN:"zoomin_pressed.png"},zoomOut:{REST:"zoomout_rest.png",GROUP:"zoomout_grouphover.png",HOVER:"zoomout_hover.png",DOWN:"zoomout_pressed.png"},home:{REST:"home_rest.png",GROUP:"home_grouphover.png",HOVER:"home_hover.png",DOWN:"home_pressed.png"},fullpage:{REST:"fullpage_rest.png",GROUP:"fullpage_grouphover.png",HOVER:"fullpage_hover.png",DOWN:"fullpage_pressed.png"},rotateleft:{REST:"rotateleft_rest.png",GROUP:"rotateleft_grouphover.png",HOVER:"rotateleft_hover.png",DOWN:"rotateleft_pressed.png"},rotateright:{REST:"rotateright_rest.png",GROUP:"rotateright_grouphover.png",HOVER:"rotateright_hover.png",DOWN:"rotateright_pressed.png"},flip:{REST:"flip_rest.png",GROUP:"flip_grouphover.png",HOVER:"flip_hover.png",DOWN:"flip_pressed.png"},previous:{REST:"previous_rest.png",GROUP:"previous_grouphover.png",HOVER:"previous_hover.png",DOWN:"previous_pressed.png"},next:{REST:"next_rest.png",GROUP:"next_grouphover.png",HOVER:"next_hover.png",DOWN:"next_pressed.png"}},debugMode:!1,debugGridColor:["#437AB2","#1B9E77","#D95F02","#7570B3","#E7298A","#66A61E","#E6AB02","#A6761D","#666666"],silenceMultiImageWarnings:!1},SIGNAL:"----seadragon----",delegate:function(e,t){return function(){var r=arguments;return void 0===r&&(r=[]),t.apply(e,r)}},BROWSERS:{UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5,EDGE:6,CHROMEEDGE:7},SUBPIXEL_ROUNDING_OCCURRENCES:{NEVER:0,ONLY_AT_REST:1,ALWAYS:2},_viewers:new Map,getViewer:function(t){return e._viewers.get(this.getElement(t))},getElement:function(e){return"string"==typeof e&&(e=document.getElementById(e)),e},getElementPosition:function(t){var r,n,i=new e.Point;for(n=o(t=e.getElement(t),r="fixed"===e.getElementStyle(t).position);n;)i.x+=t.offsetLeft,i.y+=t.offsetTop,r&&(i=i.plus(e.getPageScroll())),n=o(t=n,r="fixed"===e.getElementStyle(t).position);return i},getElementOffset:function(t){var r,n,o=(t=e.getElement(t))&&t.ownerDocument,i={top:0,left:0};return o?(r=o.documentElement,void 0!==t.getBoundingClientRect&&(i=t.getBoundingClientRect()),n=o===o.window?o:9===o.nodeType&&(o.defaultView||o.parentWindow),new e.Point(i.left+(n.pageXOffset||r.scrollLeft)-(r.clientLeft||0),i.top+(n.pageYOffset||r.scrollTop)-(r.clientTop||0))):new e.Point},getElementSize:function(t){return t=e.getElement(t),new e.Point(t.clientWidth,t.clientHeight)},getElementStyle:document.documentElement.currentStyle?function(t){return(t=e.getElement(t)).currentStyle}:function(t){return t=e.getElement(t),window.getComputedStyle(t,"")},getCssPropertyWithVendorPrefix:function(t){var r={};return e.getCssPropertyWithVendorPrefix=function(t){if(void 0!==r[t])return r[t];var n=document.createElement("div").style,o=null;if(void 0!==n[t])o=t;else for(var i=["Webkit","Moz","MS","O","webkit","moz","ms","o"],a=e.capitalizeFirstLetter(t),s=0;s<i.length;s++){var l=i[s]+a;if(void 0!==n[l]){o=l;break}}return r[t]=o,o},e.getCssPropertyWithVendorPrefix(t)},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},positiveModulo:function(e,t){var r=e%t;return r<0&&(r+=t),r},pointInElement:function(t,r){t=e.getElement(t);var n=e.getElementOffset(t),o=e.getElementSize(t);return r.x>=n.x&&r.x<n.x+o.x&&r.y<n.y+o.y&&r.y>=n.y},getMousePosition:function(t){if("number"==typeof t.pageX)e.getMousePosition=function(t){var r=new e.Point;return r.x=t.pageX,r.y=t.pageY,r};else{if("number"!=typeof t.clientX)throw new Error("Unknown event mouse position, no known technique.");e.getMousePosition=function(t){var r=new e.Point;return r.x=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,r.y=t.clientY+document.body.scrollTop+document.documentElement.scrollTop,r}}return e.getMousePosition(t)},getPageScroll:function(){var t=document.documentElement||{},r=document.body||{};if("number"==typeof window.pageXOffset)e.getPageScroll=function(){return new e.Point(window.pageXOffset,window.pageYOffset)};else if(r.scrollLeft||r.scrollTop)e.getPageScroll=function(){return new e.Point(document.body.scrollLeft,document.body.scrollTop)};else{if(!t.scrollLeft&&!t.scrollTop)return new e.Point(0,0);e.getPageScroll=function(){return new e.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}return e.getPageScroll()},setPageScroll:function(t){if(void 0!==window.scrollTo)e.setPageScroll=function(e){window.scrollTo(e.x,e.y)};else{var r=e.getPageScroll();if(r.x===t.x&&r.y===t.y)return;document.body.scrollLeft=t.x,document.body.scrollTop=t.y;var n=e.getPageScroll();if(n.x!==r.x&&n.y!==r.y)return void(e.setPageScroll=function(e){document.body.scrollLeft=e.x,document.body.scrollTop=e.y});if(document.documentElement.scrollLeft=t.x,document.documentElement.scrollTop=t.y,(n=e.getPageScroll()).x!==r.x&&n.y!==r.y)return void(e.setPageScroll=function(e){document.documentElement.scrollLeft=e.x,document.documentElement.scrollTop=e.y});e.setPageScroll=function(e){}}e.setPageScroll(t)},getWindowSize:function(){var t=document.documentElement||{},r=document.body||{};if("number"==typeof window.innerWidth)e.getWindowSize=function(){return new e.Point(window.innerWidth,window.innerHeight)};else if(t.clientWidth||t.clientHeight)e.getWindowSize=function(){return new e.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else{if(!r.clientWidth&&!r.clientHeight)throw new Error("Unknown window size, no known technique.");e.getWindowSize=function(){return new e.Point(document.body.clientWidth,document.body.clientHeight)}}return e.getWindowSize()},makeCenteredNode:function(t){t=e.getElement(t);var r=[e.makeNeutralElement("div"),e.makeNeutralElement("div"),e.makeNeutralElement("div")];return e.extend(r[0].style,{display:"table",height:"100%",width:"100%"}),e.extend(r[1].style,{display:"table-row"}),e.extend(r[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"}),r[0].appendChild(r[1]),r[1].appendChild(r[2]),r[2].appendChild(t),r[0]},makeNeutralElement:function(e){var t=document.createElement(e),r=t.style;return r.background="transparent none",r.border="none",r.margin="0px",r.padding="0px",r.position="static",t},now:function(){return Date.now?e.now=Date.now:e.now=function(){return(new Date).getTime()},e.now()},makeTransparentImage:function(t){var r=e.makeNeutralElement("img");return r.src=t,r},setElementOpacity:function(t,r,n){var o;t=e.getElement(t),n&&!e.Browser.alpha&&(r=Math.round(r)),e.Browser.opacity?t.style.opacity=r<1?r:"":r<1?(o="alpha(opacity="+Math.round(100*r)+")",t.style.filter=o):t.style.filter=""},setElementTouchActionNone:function(t){void 0!==(t=e.getElement(t)).style.touchAction?t.style.touchAction="none":void 0!==t.style.msTouchAction&&(t.style.msTouchAction="none")},setElementPointerEvents:function(t,r){void 0!==(t=e.getElement(t)).style&&void 0!==t.style.pointerEvents&&(t.style.pointerEvents=r)},setElementPointerEventsNone:function(t){e.setElementPointerEvents(t,"none")},addClass:function(t,r){(t=e.getElement(t)).className?-1===(" "+t.className+" ").indexOf(" "+r+" ")&&(t.className+=" "+r):t.className=r},indexOf:function(e,t,r){return Array.prototype.indexOf?this.indexOf=function(e,t,r){return e.indexOf(t,r)}:this.indexOf=function(e,t,r){var n,o,i=r||0;if(!e)throw new TypeError;if(0===(o=e.length)||i>=o)return-1;for(i<0&&(i=o-Math.abs(i)),n=i;n<o;n++)if(e[n]===t)return n;return-1},this.indexOf(e,t,r)},removeClass:function(t,r){var n,o,i=[];for(n=(t=e.getElement(t)).className.split(/\s+/),o=0;o<n.length;o++)n[o]&&n[o]!==r&&i.push(n[o]);t.className=i.join(" ")},normalizeEventListenerOptions:function(t){return void 0!==t?"boolean"==typeof t?e.supportsEventListenerOptions?{capture:t}:t:e.supportsEventListenerOptions?t:void 0!==t.capture&&t.capture:!!e.supportsEventListenerOptions&&{capture:!1}},addEvent:function(){if(e.supportsAddEventListener)return function(t,r,n,o){o=e.normalizeEventListenerOptions(o),(t=e.getElement(t)).addEventListener(r,n,o)};if(document.documentElement.attachEvent&&document.attachEvent)return function(t,r,n){(t=e.getElement(t)).attachEvent("on"+r,n)};throw new Error("No known event model.")}(),removeEvent:function(){if(e.supportsRemoveEventListener)return function(t,r,n,o){o=e.normalizeEventListenerOptions(o),(t=e.getElement(t)).removeEventListener(r,n,o)};if(document.documentElement.detachEvent&&document.detachEvent)return function(t,r,n){(t=e.getElement(t)).detachEvent("on"+r,n)};throw new Error("No known event model.")}(),cancelEvent:function(e){e.preventDefault()},eventIsCanceled:function(e){return e.defaultPrevented},stopEvent:function(e){e.stopPropagation()},createCallback:function(e,t){var r,n=[];for(r=2;r<arguments.length;r++)n.push(arguments[r]);return function(){var r,o=n.concat([]);for(r=0;r<arguments.length;r++)o.push(arguments[r]);return t.apply(e,o)}},getUrlParameter:function(e){var t=n[e];return t||null},getUrlProtocol:function(e){var t=e.match(/^([a-z]+:)\/\//i);return null===t?window.location.protocol:t[1].toLowerCase()},createAjaxRequest:function(t){var r;try{r=!!new ActiveXObject("Microsoft.XMLHTTP")}catch(e){r=!1}if(r)window.XMLHttpRequest?e.createAjaxRequest=function(e){return e?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}:e.createAjaxRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")};else{if(!window.XMLHttpRequest)throw new Error("Browser doesn't support XMLHttpRequest.");e.createAjaxRequest=function(){return new XMLHttpRequest}}return e.createAjaxRequest(t)},makeAjaxRequest:function(t,r,n){var o,i,a,s;e.isPlainObject(t)&&(r=t.success,n=t.error,o=t.withCredentials,i=t.headers,a=t.responseType||null,s=t.postData||null,t=t.url);var l=e.getUrlProtocol(t),u=e.createAjaxRequest("file:"===l);if(!e.isFunction(r))throw new Error("makeAjaxRequest requires a success callback");u.onreadystatechange=function(){4===u.readyState&&(u.onreadystatechange=function(){},u.status>=200&&u.status<300||0===u.status&&"http:"!==l&&"https:"!==l?r(u):e.isFunction(n)?n(u):e.console.error("AJAX request returned %d: %s",u.status,t))};var c=s?"POST":"GET";try{if(u.open(c,t,!0),a&&(u.responseType=a),i)for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&i[f]&&u.setRequestHeader(f,i[f]);o&&(u.withCredentials=!0),u.send(s)}catch(t){e.console.error("%s while making AJAX request: %s",t.name,t.message),u.onreadystatechange=function(){},e.isFunction(n)&&n(u,t)}return u},jsonp:function(t){var r,n=t.url,o=document.head||document.getElementsByTagName("head")[0]||document.documentElement,i=t.callbackName||"openseadragon"+e.now(),a=window[i],s="$1"+i+"$2",l=t.param||"callback",u=t.callback;n=n.replace(/(=)\?(&|$)|\?\?/i,s),n+=(/\?/.test(n)?"&":"?")+l+"="+i,window[i]=function(t){if(a)window[i]=a;else try{delete window[i]}catch(e){}u&&e.isFunction(u)&&u(t)},r=document.createElement("script"),void 0===t.async&&!1===t.async||(r.async="async"),t.scriptCharset&&(r.charset=t.scriptCharset),r.src=n,r.onload=r.onreadystatechange=function(e,t){(t||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,o&&r.parentNode&&o.removeChild(r),r=void 0)},o.insertBefore(r,o.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(t){if(window.DOMParser)e.parseXml=function(e){return(new DOMParser).parseFromString(e,"text/xml")};else{if(!window.ActiveXObject)throw new Error("Browser doesn't support XML DOM.");e.parseXml=function(e){var t=null;return(t=new ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e),t}}return e.parseXml(t)},parseJSON:function(t){return e.parseJSON=window.JSON.parse,e.parseJSON(t)},imageFormatSupported:function(e){return!!r[(e=e||"").toLowerCase()]},setImageFormatsSupported:function(t){e.extend(r,t)}});var t=function(e){};e.console=window.console||{log:t,debug:t,info:t,warn:t,error:t,assert:t},e.Browser={vendor:e.BROWSERS.UNKNOWN,version:0,alpha:!0};var r={bmp:!1,jpeg:!0,jpg:!0,png:!0,tif:!1,wdp:!1},n={};function o(e,t){return t&&e!==document.body?document.body:e.offsetParent}!function(){var t=navigator.appVersion,r=navigator.userAgent;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&(e.Browser.vendor=e.BROWSERS.IE,e.Browser.version=parseFloat(r.substring(r.indexOf("MSIE")+5,r.indexOf(";",r.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(r.indexOf("Edge")>=0?(e.Browser.vendor=e.BROWSERS.EDGE,e.Browser.version=parseFloat(r.substring(r.indexOf("Edge")+5))):r.indexOf("Edg")>=0?(e.Browser.vendor=e.BROWSERS.CHROMEEDGE,e.Browser.version=parseFloat(r.substring(r.indexOf("Edg")+4))):r.indexOf("Firefox")>=0?(e.Browser.vendor=e.BROWSERS.FIREFOX,e.Browser.version=parseFloat(r.substring(r.indexOf("Firefox")+8))):r.indexOf("Safari")>=0?(e.Browser.vendor=r.indexOf("Chrome")>=0?e.BROWSERS.CHROME:e.BROWSERS.SAFARI,e.Browser.version=parseFloat(r.substring(r.substring(0,r.indexOf("Safari")).lastIndexOf("/")+1,r.indexOf("Safari")))):null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(r)&&(e.Browser.vendor=e.BROWSERS.IE,e.Browser.version=parseFloat(RegExp.$1)));break;case"Opera":e.Browser.vendor=e.BROWSERS.OPERA,e.Browser.version=parseFloat(t)}var o,i,a,s=window.location.search.substring(1).split("&");for(a=0;a<s.length;a++)if((i=(o=s[a]).indexOf("="))>0){var l=o.substring(0,i),u=o.substring(i+1);try{n[l]=decodeURIComponent(u)}catch(t){e.console.error("Ignoring malformed URL parameter: %s=%s",l,u)}}e.Browser.alpha=!(e.Browser.vendor===e.BROWSERS.CHROME&&e.Browser.version<2),e.Browser.opacity=!0,e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<11&&e.console.error("Internet Explorer versions < 11 are not supported by OpenSeadragon")}(),function(t){var r=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,n=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.msCancelAnimationFrame;if(r&&n)e.requestAnimationFrame=function(){return r.apply(t,arguments)},e.cancelAnimationFrame=function(){return n.apply(t,arguments)};else{var o,i=[],a=[],s=0;e.requestAnimationFrame=function(t){return i.push([++s,t]),o||(o=setInterval((function(){if(i.length){var t=e.now(),r=a;for(a=i,i=r;a.length;)a.shift()[1](t)}else clearInterval(o),o=void 0}),20)),s},e.cancelAnimationFrame=function(e){var t,r;for(t=0,r=i.length;t<r;t+=1)if(i[t][0]===e)return void i.splice(t,1);for(t=0,r=a.length;t<r;t+=1)if(a[t][0]===e)return void a.splice(t,1)}}}(window)}(s),n=[],void 0===(o="function"==typeof(r=function(){return s})?r.apply(t,n):r)||(e.exports=o),i=s,a={supportsFullScreen:!1,isFullScreen:function(){return!1},getFullScreenElement:function(){return null},requestFullScreen:function(){},exitFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",fullScreenErrorEventName:""},document.exitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.fullscreenElement},a.requestFullScreen=function(e){return e.requestFullscreen()},a.exitFullScreen=function(){document.exitFullscreen()},a.fullScreenEventName="fullscreenchange",a.fullScreenErrorEventName="fullscreenerror"):document.msExitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.msFullscreenElement},a.requestFullScreen=function(e){return e.msRequestFullscreen()},a.exitFullScreen=function(){document.msExitFullscreen()},a.fullScreenEventName="MSFullscreenChange",a.fullScreenErrorEventName="MSFullscreenError"):document.webkitExitFullscreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.webkitFullscreenElement},a.requestFullScreen=function(e){return e.webkitRequestFullscreen()},a.exitFullScreen=function(){document.webkitExitFullscreen()},a.fullScreenEventName="webkitfullscreenchange",a.fullScreenErrorEventName="webkitfullscreenerror"):document.webkitCancelFullScreen?(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.webkitCurrentFullScreenElement},a.requestFullScreen=function(e){return e.webkitRequestFullScreen()},a.exitFullScreen=function(){document.webkitCancelFullScreen()},a.fullScreenEventName="webkitfullscreenchange",a.fullScreenErrorEventName="webkitfullscreenerror"):document.mozCancelFullScreen&&(a.supportsFullScreen=!0,a.getFullScreenElement=function(){return document.mozFullScreenElement},a.requestFullScreen=function(e){return e.mozRequestFullScreen()},a.exitFullScreen=function(){document.mozCancelFullScreen()},a.fullScreenEventName="mozfullscreenchange",a.fullScreenErrorEventName="mozfullscreenerror"),a.isFullScreen=function(){return null!==a.getFullScreenElement()},a.cancelFullScreen=function(){i.console.error("cancelFullScreen is deprecated. Use exitFullScreen instead."),a.exitFullScreen()},i.extend(i,a),function(e){e.EventSource=function(){this.events={}},e.EventSource.prototype={addOnceHandler:function(e,t,r,n,o){var i=this;n=n||1;var a=0;this.addHandler(e,(function r(o){return++a===n&&i.removeHandler(e,r),t(o)}),r,o)},addHandler:function(t,r,n,o){var i=this.events[t];if(i||(this.events[t]=i=[]),r&&e.isFunction(r)){var a=i.length,s={handler:r,userData:n||null,priority:o||0};for(i[a]=s;a>0&&i[a-1].priority<i[a].priority;)i[a]=i[a-1],i[a-1]=s,a--}},removeHandler:function(t,r){var n,o=this.events[t],i=[];if(o&&e.isArray(o)){for(n=0;n<o.length;n++)o[n].handler!==r&&i.push(o[n]);this.events[t]=i}},numberOfHandlers:function(e){var t=this.events[e];return t?t.length:0},removeAllHandlers:function(e){if(e)this.events[e]=[];else for(var t in this.events)this.events[t]=[]},getHandler:function(e){var t=this.events[e];return t&&t.length?(t=1===t.length?[t[0]]:Array.apply(null,t),function(e,r){var n,o=t.length;for(n=0;n<o;n++)t[n]&&(r.eventSource=e,r.userData=t[n].userData,t[n].handler(r))}):null},raiseEvent:function(e,t){var r=this.getHandler(e);if(r)return r(this,t||{})}}}(s),function(e){var t=[],r={};e.MouseTracker=function(n){t.push(this);var o=arguments;e.isPlainObject(n)||(n={element:o[0],clickTimeThreshold:o[1],clickDistThreshold:o[2]}),this.hash=Math.random(),this.element=e.getElement(n.element),this.clickTimeThreshold=n.clickTimeThreshold||e.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=n.clickDistThreshold||e.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=n.dblClickTimeThreshold||e.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=n.dblClickDistThreshold||e.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=n.userData||null,this.stopDelay=n.stopDelay||50,this.preProcessEventHandler=n.preProcessEventHandler||null,this.contextMenuHandler=n.contextMenuHandler||null,this.enterHandler=n.enterHandler||null,this.leaveHandler=n.leaveHandler||null,this.exitHandler=n.exitHandler||null,this.overHandler=n.overHandler||null,this.outHandler=n.outHandler||null,this.pressHandler=n.pressHandler||null,this.nonPrimaryPressHandler=n.nonPrimaryPressHandler||null,this.releaseHandler=n.releaseHandler||null,this.nonPrimaryReleaseHandler=n.nonPrimaryReleaseHandler||null,this.moveHandler=n.moveHandler||null,this.scrollHandler=n.scrollHandler||null,this.clickHandler=n.clickHandler||null,this.dblClickHandler=n.dblClickHandler||null,this.dragHandler=n.dragHandler||null,this.dragEndHandler=n.dragEndHandler||null,this.pinchHandler=n.pinchHandler||null,this.stopHandler=n.stopHandler||null,this.keyDownHandler=n.keyDownHandler||null,this.keyUpHandler=n.keyUpHandler||null,this.keyHandler=n.keyHandler||null,this.focusHandler=n.focusHandler||null,this.blurHandler=n.blurHandler||null;var i=this;r[this.hash]={click:function(t){!function(t,r){var n={originalEvent:r,eventType:"click",pointerType:"mouse",isEmulated:!1};D(t,n),n.preventDefault&&!n.defaultPrevented&&e.cancelEvent(r);n.stopPropagation&&e.stopEvent(r)}(i,t)},dblclick:function(t){!function(t,r){var n={originalEvent:r,eventType:"dblclick",pointerType:"mouse",isEmulated:!1};D(t,n),n.preventDefault&&!n.defaultPrevented&&e.cancelEvent(r);n.stopPropagation&&e.stopEvent(r)}(i,t)},keydown:function(t){!function(t,r){var n=null,o={originalEvent:r,eventType:"keydown",pointerType:"",isEmulated:!1};D(t,o),!t.keyDownHandler||o.preventGesture||o.defaultPrevented||(n={eventSource:t,keyCode:r.keyCode?r.keyCode:r.charCode,ctrl:r.ctrlKey,shift:r.shiftKey,alt:r.altKey,meta:r.metaKey,originalEvent:r,preventDefault:o.preventDefault||o.defaultPrevented,userData:t.userData},t.keyDownHandler(n));(n&&n.preventDefault||o.preventDefault&&!o.defaultPrevented)&&e.cancelEvent(r);o.stopPropagation&&e.stopEvent(r)}(i,t)},keyup:function(t){!function(t,r){var n=null,o={originalEvent:r,eventType:"keyup",pointerType:"",isEmulated:!1};D(t,o),!t.keyUpHandler||o.preventGesture||o.defaultPrevented||(n={eventSource:t,keyCode:r.keyCode?r.keyCode:r.charCode,ctrl:r.ctrlKey,shift:r.shiftKey,alt:r.altKey,meta:r.metaKey,originalEvent:r,preventDefault:o.preventDefault||o.defaultPrevented,userData:t.userData},t.keyUpHandler(n));(n&&n.preventDefault||o.preventDefault&&!o.defaultPrevented)&&e.cancelEvent(r);o.stopPropagation&&e.stopEvent(r)}(i,t)},keypress:function(t){!function(t,r){var n=null,o={originalEvent:r,eventType:"keypress",pointerType:"",isEmulated:!1};D(t,o),!t.keyHandler||o.preventGesture||o.defaultPrevented||(n={eventSource:t,keyCode:r.keyCode?r.keyCode:r.charCode,ctrl:r.ctrlKey,shift:r.shiftKey,alt:r.altKey,meta:r.metaKey,originalEvent:r,preventDefault:o.preventDefault||o.defaultPrevented,userData:t.userData},t.keyHandler(n));(n&&n.preventDefault||o.preventDefault&&!o.defaultPrevented)&&e.cancelEvent(r);o.stopPropagation&&e.stopEvent(r)}(i,t)},focus:function(e){!function(e,t){var r={originalEvent:t,eventType:"focus",pointerType:"",isEmulated:!1};D(e,r),e.focusHandler&&!r.preventGesture&&e.focusHandler({eventSource:e,originalEvent:t,userData:e.userData})}(i,e)},blur:function(e){!function(e,t){var r={originalEvent:t,eventType:"blur",pointerType:"",isEmulated:!1};D(e,r),e.blurHandler&&!r.preventGesture&&e.blurHandler({eventSource:e,originalEvent:t,userData:e.userData})}(i,e)},contextmenu:function(t){!function(t,r){var n=null,o={originalEvent:r,eventType:"contextmenu",pointerType:"mouse",isEmulated:!1};D(t,o),!t.contextMenuHandler||o.preventGesture||o.defaultPrevented||(n={eventSource:t,position:w(y(r),t.element),originalEvent:o.originalEvent,preventDefault:o.preventDefault||o.defaultPrevented,userData:t.userData},t.contextMenuHandler(n));(n&&n.preventDefault||o.preventDefault&&!o.defaultPrevented)&&e.cancelEvent(r);o.stopPropagation&&e.stopEvent(r)}(i,t)},wheel:function(e){!function(e,t){S(e,t,t)}(i,e)},mousewheel:function(e){x(i,e)},DOMMouseScroll:function(e){x(i,e)},MozMousePixelScroll:function(e){x(i,e)},losecapture:function(t){!function(t,r){var n={id:e.MouseTracker.mousePointerId,type:"mouse"},o={originalEvent:r,eventType:"lostpointercapture",pointerType:"mouse",isEmulated:!1};D(t,o),r.target===t.element&&M(t,n,!1);o.stopPropagation&&e.stopEvent(r)}(i,t)},mouseenter:function(e){A(i,e)},mouseleave:function(e){P(i,e)},mouseover:function(e){j(i,e)},mouseout:function(e){E(i,e)},mousedown:function(e){I(i,e)},mouseup:function(e){T(i,e)},mousemove:function(e){k(i,e)},touchstart:function(t){!function(t,r){var n,o,i,a=r.changedTouches.length,s=t.getActivePointersListByType("touch");n=e.now(),s.getLength()>r.touches.length-a&&e.console.warn("Tracked touch contact count doesn't match event.touches.length");var l={originalEvent:r,eventType:"pointerdown",pointerType:"touch",isEmulated:!1};for(D(t,l),o=0;o<a;o++)L(t,l,i={id:r.changedTouches[o].identifier,type:"touch",isPrimary:0===s.getLength(),currentPos:y(r.changedTouches[o]),currentTime:n}),W(t,l,i,0),M(t,i,!0);l.preventDefault&&!l.defaultPrevented&&e.cancelEvent(r);l.stopPropagation&&e.stopEvent(r)}(i,t)},touchend:function(t){!function(t,r){var n,o,i,a=r.changedTouches.length;n=e.now();var s={originalEvent:r,eventType:"pointerup",pointerType:"touch",isEmulated:!1};for(D(t,s),o=0;o<a;o++)B(t,s,i={id:r.changedTouches[o].identifier,type:"touch",currentPos:y(r.changedTouches[o]),currentTime:n},0),M(t,i,!1),z(t,s,i);s.preventDefault&&!s.defaultPrevented&&e.cancelEvent(r);s.stopPropagation&&e.stopEvent(r)}(i,t)},touchmove:function(t){!function(t,r){var n,o,i=r.changedTouches.length;n=e.now();var a={originalEvent:r,eventType:"pointermove",pointerType:"touch",isEmulated:!1};for(D(t,a),o=0;o<i;o++)F(t,a,{id:r.changedTouches[o].identifier,type:"touch",currentPos:y(r.changedTouches[o]),currentTime:n});a.preventDefault&&!a.defaultPrevented&&e.cancelEvent(r);a.stopPropagation&&e.stopEvent(r)}(i,t)},touchcancel:function(t){!function(t,r){var n,o=r.changedTouches.length,i={originalEvent:r,eventType:"pointercancel",pointerType:"touch",isEmulated:!1};for(D(t,i),n=0;n<o;n++)H(t,i,{id:r.changedTouches[n].identifier,type:"touch"});i.stopPropagation&&e.stopEvent(r)}(i,t)},gesturestart:function(t){!function(t,r){e.eventIsCanceled(r)||r.preventDefault()}(0,t)},gesturechange:function(t){!function(t,r){e.eventIsCanceled(r)||r.preventDefault()}(0,t)},gotpointercapture:function(t){!function(t,r){var n={originalEvent:r,eventType:"gotpointercapture",pointerType:g(r),isEmulated:!1};D(t,n),r.target===t.element&&M(t,{id:r.pointerId,type:g(r)},!0);n.stopPropagation&&e.stopEvent(r)}(i,t)},lostpointercapture:function(t){!function(t,r){var n={originalEvent:r,eventType:"lostpointercapture",pointerType:g(r),isEmulated:!1};D(t,n),r.target===t.element&&M(t,{id:r.pointerId,type:g(r)},!1);n.stopPropagation&&e.stopEvent(r)}(i,t)},pointerenter:function(e){A(i,e)},pointerleave:function(e){P(i,e)},pointerover:function(e){j(i,e)},pointerout:function(e){E(i,e)},pointerdown:function(e){I(i,e)},pointerup:function(e){T(i,e)},pointermove:function(e){k(i,e)},pointercancel:function(t){!function(t,r){var n={id:r.pointerId,type:g(r)},o={originalEvent:r,eventType:"pointercancel",pointerType:n.type,isEmulated:!1};D(t,o),H(t,o,n),o.stopPropagation&&e.stopEvent(r)}(i,t)},pointerupcaptured:function(t){!function(t,r){var n=t.getActivePointersListByType(g(r));n.getById(r.pointerId)&&C(t,r);e.stopEvent(r)}(i,t)},pointermovecaptured:function(t){!function(t,r){var n=t.getActivePointersListByType(g(r));n.getById(r.pointerId)&&_(t,r);e.stopEvent(r)}(i,t)},tracking:!1,activePointersLists:[],lastClickPos:null,dblClickTimeOut:null,pinchGPoints:[],lastPinchDist:0,currentPinchDist:0,lastPinchCenter:null,currentPinchCenter:null,sentDragEvent:!1},this.hasGestureHandlers=!!(this.pressHandler||this.nonPrimaryPressHandler||this.releaseHandler||this.nonPrimaryReleaseHandler||this.clickHandler||this.dblClickHandler||this.dragHandler||this.dragEndHandler||this.pinchHandler),this.hasScrollHandler=!!this.scrollHandler,e.MouseTracker.havePointerEvents&&e.setElementPointerEvents(this.element,"auto"),this.exitHandler&&e.console.error("MouseTracker.exitHandler is deprecated. Use MouseTracker.leaveHandler instead."),n.startDisabled||this.setTracking(!0)},e.MouseTracker.prototype={destroy:function(){var e;for(d(this),this.element=null,e=0;e<t.length;e++)if(t[e]===this){t.splice(e,1);break}r[this.hash]=null,delete r[this.hash]},isTracking:function(){return r[this.hash].tracking},setTracking:function(t){return t?function(t){var n,o,i=r[t.hash];if(!i.tracking){for(o=0;o<e.MouseTracker.subscribeEvents.length;o++)n=e.MouseTracker.subscribeEvents[o],e.addEvent(t.element,n,i[n],n===e.MouseTracker.wheelEventName&&{passive:!1,capture:!1});f(t),i.tracking=!0}}(this):d(this),this},getActivePointersListByType:function(t){var n,o,i=r[this.hash],a=i.activePointersLists.length;for(n=0;n<a;n++)if(i.activePointersLists[n].type===t)return i.activePointersLists[n];return o=new e.MouseTracker.GesturePointList(t),i.activePointersLists.push(o),o},getActivePointerCount:function(){var e,t=r[this.hash],n=t.activePointersLists.length,o=0;for(e=0;e<n;e++)o+=t.activePointersLists[e].getLength();return o},preProcessEventHandler:function(){},contextMenuHandler:function(){},enterHandler:function(){},leaveHandler:function(){},exitHandler:function(){},overHandler:function(){},outHandler:function(){},pressHandler:function(){},nonPrimaryPressHandler:function(){},releaseHandler:function(){},nonPrimaryReleaseHandler:function(){},moveHandler:function(){},scrollHandler:function(){},clickHandler:function(){},dblClickHandler:function(){},dragHandler:function(){},dragEndHandler:function(){},pinchHandler:function(){},stopHandler:function(){},keyDownHandler:function(){},keyUpHandler:function(){},keyHandler:function(){},focusHandler:function(){},blurHandler:function(){}};var n,o,i,a,s,l,u=function(){try{return window.self!==window.top}catch(e){return!0}}();function c(e){try{return e.addEventListener&&e.removeEventListener}catch(e){return!1}}function f(e){var t,n,o,i,a,s=r[e.hash],l=s.activePointersLists.length;for(t=0;t<l;t++)if((o=s.activePointersLists[t]).getLength()>0){for(a=[],i=o.asArray(),n=0;n<i.length;n++)a.push(i[n]);for(n=0;n<a.length;n++)N(e,o,a[n])}for(t=0;t<l;t++)s.activePointersLists.pop();s.sentDragEvent=!1}function d(t){var n,o,i=r[t.hash];if(i.tracking){for(o=0;o<e.MouseTracker.subscribeEvents.length;o++)n=e.MouseTracker.subscribeEvents[o],e.removeEvent(t.element,n,i[n],!1);f(t),i.tracking=!1}}function p(e,t){var n=r[e.hash];if("pointerevent"===t)return{upName:"pointerup",upHandler:n.pointerupcaptured,moveName:"pointermove",moveHandler:n.pointermovecaptured};if("mouse"===t)return{upName:"pointerup",upHandler:n.pointerupcaptured,moveName:"pointermove",moveHandler:n.pointermovecaptured};if("touch"===t)return{upName:"touchend",upHandler:n.touchendcaptured,moveName:"touchmove",moveHandler:n.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function h(t,r){var n,o;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents){if(!(o=t.getActivePointersListByType(r.type).getById(r.id))||!o.captured)return;try{t.element.releasePointerCapture(r.id)}catch(e){}}else t.element.releaseCapture();else n=p(t,e.MouseTracker.havePointerEvents?"pointerevent":r.type),u&&c(window.top)&&e.removeEvent(window.top,n.upName,n.upHandler,!0),e.removeEvent(e.MouseTracker.captureElement,n.moveName,n.moveHandler,!0),e.removeEvent(e.MouseTracker.captureElement,n.upName,n.upHandler,!0);M(t,r,!1)}function v(t){return e.MouseTracker.havePointerEvents?t.pointerId:e.MouseTracker.mousePointerId}function g(t){return e.MouseTracker.havePointerEvents?t.pointerType||(e.Browser.vendor===e.BROWSERS.IE?"mouse":""):"mouse"}function m(t){return!e.MouseTracker.havePointerEvents||t.isPrimary}function y(t){return e.getMousePosition(t)}function b(e,t){return w(y(e),t)}function w(t,r){var n=e.getElementOffset(r);return t.minus(n)}function O(t,r){return new e.Point((t.x+r.x)/2,(t.y+r.y)/2)}function x(t,r){var n={target:r.target||r.srcElement,type:"wheel",shiftKey:r.shiftKey||!1,clientX:r.clientX,clientY:r.clientY,pageX:r.pageX?r.pageX:r.clientX,pageY:r.pageY?r.pageY:r.clientY,deltaMode:"MozMousePixelScroll"===r.type?0:1,deltaX:0,deltaZ:0};"mousewheel"===e.MouseTracker.wheelEventName?n.deltaY=-r.wheelDelta/e.DEFAULT_SETTINGS.pixelsPerWheelLine:n.deltaY=r.detail,S(t,n,r)}function S(t,r,n){var o,i,a=null;o=r.deltaY<0?1:-1,D(t,i={originalEvent:r,eventType:"wheel",pointerType:"mouse",isEmulated:r!==n}),!t.scrollHandler||i.preventGesture||i.defaultPrevented||(a={eventSource:t,pointerType:"mouse",position:b(r,t.element),scroll:o,shift:r.shiftKey,isTouchEvent:!1,originalEvent:n,preventDefault:i.preventDefault||i.defaultPrevented,userData:t.userData},t.scrollHandler(a)),i.stopPropagation&&e.stopEvent(n),(a&&a.preventDefault||i.preventDefault&&!i.defaultPrevented)&&e.cancelEvent(n)}function A(t,r){var n={id:v(r),type:g(r),isPrimary:m(r),currentPos:y(r),currentTime:e.now()},o={originalEvent:r,eventType:"pointerenter",pointerType:n.type,isEmulated:!1};D(t,o),L(t,o,n)}function P(t,r){var n={id:v(r),type:g(r),isPrimary:m(r),currentPos:y(r),currentTime:e.now()},o={originalEvent:r,eventType:"pointerleave",pointerType:n.type,isEmulated:!1};D(t,o),z(t,o,n)}function j(t,r){var n={id:v(r),type:g(r),isPrimary:m(r),currentPos:y(r),currentTime:e.now()},o={originalEvent:r,eventType:"pointerover",pointerType:n.type,isEmulated:!1};D(t,o),function(e,t,r){var n,o;n=e.getActivePointersListByType(r.type),o=n.getById(r.id),o?r=o:(r.captured=!1,r.insideElementPressed=!1);e.overHandler&&e.overHandler({eventSource:e,pointerType:r.type,position:w(r.currentPos,e.element),buttons:n.buttons,pointers:e.getActivePointerCount(),insideElementPressed:r.insideElementPressed,buttonDownAny:0!==n.buttons,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData})}(t,o,n),o.preventDefault&&!o.defaultPrevented&&e.cancelEvent(r),o.stopPropagation&&e.stopEvent(r)}function E(t,r){var n={id:v(r),type:g(r),isPrimary:m(r),currentPos:y(r),currentTime:e.now()},o={originalEvent:r,eventType:"pointerout",pointerType:n.type,isEmulated:!1};D(t,o),function(e,t,r){var n,o;n=e.getActivePointersListByType(r.type),o=n.getById(r.id),o?r=o:(r.captured=!1,r.insideElementPressed=!1);e.outHandler&&e.outHandler({eventSource:e,pointerType:r.type,position:r.currentPos&&w(r.currentPos,e.element),buttons:n.buttons,pointers:e.getActivePointerCount(),insideElementPressed:r.insideElementPressed,buttonDownAny:0!==n.buttons,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData})}(t,o,n),o.preventDefault&&!o.defaultPrevented&&e.cancelEvent(r),o.stopPropagation&&e.stopEvent(r)}function I(t,r){var n={id:v(r),type:g(r),isPrimary:m(r),currentPos:y(r),currentTime:e.now()},o=e.MouseTracker.havePointerEvents&&"touch"===n.type&&e.Browser.vendor!==e.BROWSERS.IE,i={originalEvent:r,eventType:"pointerdown",pointerType:n.type,isEmulated:!1};D(t,i),W(t,i,n,r.button),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(r),i.stopPropagation&&e.stopEvent(r),i.shouldCapture&&(o?M(t,n,!0):function(t,r){var n;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents)try{t.element.setPointerCapture(r.id)}catch(t){return void e.console.warn("setPointerCapture() called on invalid pointer ID")}else t.element.setCapture(!0);else n=p(t,e.MouseTracker.havePointerEvents?"pointerevent":r.type),u&&c(window.top)&&e.addEvent(window.top,n.upName,n.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,n.upName,n.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,n.moveName,n.moveHandler,!0);M(t,r,!0)}(t,n))}function T(e,t){C(e,t)}function C(t,r){var n,o={originalEvent:r,eventType:"pointerup",pointerType:(n={id:v(r),type:g(r),isPrimary:m(r),currentPos:y(r),currentTime:e.now()}).type,isEmulated:!1};D(t,o),B(t,o,n,r.button),o.preventDefault&&!o.defaultPrevented&&e.cancelEvent(r),o.stopPropagation&&e.stopEvent(r),o.shouldReleaseCapture&&(r.target===t.element?h(t,n):M(t,n,!1))}function k(e,t){_(e,t)}function _(t,r){var n={id:v(r),type:g(r),isPrimary:m(r),currentPos:y(r),currentTime:e.now()},o={originalEvent:r,eventType:"pointermove",pointerType:n.type,isEmulated:!1};D(t,o),F(t,o,n),o.preventDefault&&!o.defaultPrevented&&e.cancelEvent(r),o.stopPropagation&&e.stopEvent(r)}function R(e,t){return t.speed=0,t.direction=0,t.contactPos=t.currentPos,t.contactTime=t.currentTime,t.lastPos=t.currentPos,t.lastTime=t.currentTime,e.add(t)}function N(t,r,n){var o,i=r.getById(n.id);return i?(i.captured&&(e.console.warn("stopTrackingPointer() called on captured pointer"),h(t,i)),r.removeContact(),o=r.removeById(n.id)):o=r.getLength(),o}function D(t,r){r.eventSource=t,r.eventPhase=r.originalEvent&&void 0!==r.originalEvent.eventPhase?r.originalEvent.eventPhase:0,r.defaultPrevented=e.eventIsCanceled(r.originalEvent),r.shouldCapture=!1,r.shouldReleaseCapture=!1,r.userData=t.userData,function(e,t){switch(t.eventType){case"pointermove":case"pointerdown":case"pointerup":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasGestureHandlers,t.stopPropagation=!1;break;case"pointerover":case"pointerout":case"contextmenu":case"keydown":case"keyup":case"keypress":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break;case"wheel":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasScrollHandler,t.stopPropagation=!1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":t.isStoppable=!0,t.isCancelable=!1,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break;case"click":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!!e.clickHandler,t.preventGesture=!1,t.stopPropagation=!1;break;case"dblclick":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!!e.dblClickHandler,t.preventGesture=!1,t.stopPropagation=!1;break;default:t.isStoppable=!1,t.isCancelable=!1,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1}}(t,r),t.preProcessEventHandler&&t.preProcessEventHandler(r)}function M(t,r,n){var o=t.getActivePointersListByType(r.type),i=o.getById(r.id);i?n&&!i.captured?(i.captured=!0,o.captureCount++):!n&&i.captured&&(i.captured=!1,o.captureCount--,o.captureCount<0&&(o.captureCount=0,e.console.warn("updatePointerCaptured() - pointsList.captureCount went negative"))):e.console.warn("updatePointerCaptured() called on untracked pointer")}function L(e,t,r){var n,o=e.getActivePointersListByType(r.type);(n=o.getById(r.id))?(n.insideElement=!0,n.lastPos=n.currentPos,n.lastTime=n.currentTime,n.currentPos=r.currentPos,n.currentTime=r.currentTime,r=n):(r.captured=!1,r.insideElementPressed=!1,r.insideElement=!0,R(o,r)),e.enterHandler&&e.enterHandler({eventSource:e,pointerType:r.type,position:w(r.currentPos,e.element),buttons:o.buttons,pointers:e.getActivePointerCount(),insideElementPressed:r.insideElementPressed,buttonDownAny:0!==o.buttons,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData})}function z(e,t,r){var n,o,i=e.getActivePointersListByType(r.type);(n=i.getById(r.id))?(n.captured?(n.insideElement=!1,n.lastPos=n.currentPos,n.lastTime=n.currentTime,n.currentPos=r.currentPos,n.currentTime=r.currentTime):N(e,i,n),r=n):(r.captured=!1,r.insideElementPressed=!1),(e.leaveHandler||e.exitHandler)&&(o={eventSource:e,pointerType:r.type,position:r.currentPos&&w(r.currentPos,e.element),buttons:i.buttons,pointers:e.getActivePointerCount(),insideElementPressed:r.insideElementPressed,buttonDownAny:0!==i.buttons,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData},e.leaveHandler&&e.leaveHandler(o),e.exitHandler&&e.exitHandler(o))}function W(t,n,o,i){var a,s=r[t.hash],l=t.getActivePointersListByType(o.type);if(void 0!==n.originalEvent.buttons?l.buttons=n.originalEvent.buttons:0===i?l.buttons|=1:1===i?l.buttons|=4:2===i?l.buttons|=2:3===i?l.buttons|=8:4===i?l.buttons|=16:5===i&&(l.buttons|=32),0!==i)return n.shouldCapture=!1,n.shouldReleaseCapture=!1,void(!t.nonPrimaryPressHandler||n.preventGesture||n.defaultPrevented||(n.preventDefault=!0,t.nonPrimaryPressHandler({eventSource:t,pointerType:o.type,position:w(o.currentPos,t.element),button:i,buttons:l.buttons,isTouchEvent:"touch"===o.type,originalEvent:n.originalEvent,userData:t.userData})));(a=l.getById(o.id))?(a.insideElementPressed=!0,a.insideElement=!0,a.originalTarget=n.originalEvent.target,a.contactPos=o.currentPos,a.contactTime=o.currentTime,a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=o.currentPos,a.currentTime=o.currentTime,o=a):(o.captured=!1,o.insideElementPressed=!0,o.insideElement=!0,o.originalTarget=n.originalEvent.target,R(l,o)),l.addContact(),n.preventGesture||n.defaultPrevented?(n.shouldCapture=!1,n.shouldReleaseCapture=!1):(n.shouldCapture=!0,n.shouldReleaseCapture=!1,n.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.addPoint(t,o),1===l.contacts?t.pressHandler&&!n.preventGesture&&t.pressHandler({eventSource:t,pointerType:o.type,position:w(o.contactPos,t.element),buttons:l.buttons,isTouchEvent:"touch"===o.type,originalEvent:n.originalEvent,userData:t.userData}):2===l.contacts&&t.pinchHandler&&"touch"===o.type&&(s.pinchGPoints=l.asArray(),s.lastPinchDist=s.currentPinchDist=s.pinchGPoints[0].currentPos.distanceTo(s.pinchGPoints[1].currentPos),s.lastPinchCenter=s.currentPinchCenter=O(s.pinchGPoints[0].currentPos,s.pinchGPoints[1].currentPos)))}function B(t,n,o,i){var a,s,l,u,c=r[t.hash],f=t.getActivePointersListByType(o.type),d=!1;if(void 0!==n.originalEvent.buttons?f.buttons=n.originalEvent.buttons:0===i?f.buttons^=-2:1===i?f.buttons^=-5:2===i?f.buttons^=-3:3===i?f.buttons^=-9:4===i?f.buttons^=-17:5===i&&(f.buttons^=-33),n.shouldCapture=!1,0!==i)return n.shouldReleaseCapture=!1,void(!t.nonPrimaryReleaseHandler||n.preventGesture||n.defaultPrevented||(n.preventDefault=!0,t.nonPrimaryReleaseHandler({eventSource:t,pointerType:o.type,position:w(o.currentPos,t.element),button:i,buttons:f.buttons,isTouchEvent:"touch"===o.type,originalEvent:n.originalEvent,userData:t.userData})));(l=f.getById(o.id))?(f.removeContact(),l.captured&&(d=!0),l.lastPos=l.currentPos,l.lastTime=l.currentTime,l.currentPos=o.currentPos,l.currentTime=o.currentTime,l.insideElement||N(t,f,l),a=l.currentPos,s=l.currentTime):(o.captured=!1,o.insideElementPressed=!1,o.insideElement=!0,R(f,o),l=o),n.preventGesture||n.defaultPrevented||(d?(n.shouldReleaseCapture=!0,n.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.removePoint(t,l),0===f.contacts?(t.releaseHandler&&a&&t.releaseHandler({eventSource:t,pointerType:l.type,position:w(a,t.element),buttons:f.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:n.originalEvent,userData:t.userData}),t.dragEndHandler&&c.sentDragEvent&&t.dragEndHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),speed:l.speed,direction:l.direction,shift:n.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:n.originalEvent,userData:t.userData}),c.sentDragEvent=!1,(t.clickHandler||t.dblClickHandler)&&l.insideElement&&(u=s-l.contactTime<=t.clickTimeThreshold&&l.contactPos.distanceTo(a)<=t.clickDistThreshold,t.clickHandler&&t.clickHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),quick:u,shift:n.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:n.originalEvent,originalTarget:l.originalTarget,userData:t.userData}),t.dblClickHandler&&u&&(f.clicks++,1===f.clicks?(c.lastClickPos=a,c.dblClickTimeOut=setTimeout((function(){f.clicks=0}),t.dblClickTimeThreshold)):2===f.clicks&&(clearTimeout(c.dblClickTimeOut),f.clicks=0,c.lastClickPos.distanceTo(a)<=t.dblClickDistThreshold&&t.dblClickHandler({eventSource:t,pointerType:l.type,position:w(l.currentPos,t.element),shift:n.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:n.originalEvent,userData:t.userData}),c.lastClickPos=null)))):2===f.contacts&&t.pinchHandler&&"touch"===l.type&&(c.pinchGPoints=f.asArray(),c.lastPinchDist=c.currentPinchDist=c.pinchGPoints[0].currentPos.distanceTo(c.pinchGPoints[1].currentPos),c.lastPinchCenter=c.currentPinchCenter=O(c.pinchGPoints[0].currentPos,c.pinchGPoints[1].currentPos))):(n.shouldReleaseCapture=!1,t.releaseHandler&&a&&(t.releaseHandler({eventSource:t,pointerType:l.type,position:w(a,t.element),buttons:f.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:n.originalEvent,userData:t.userData}),n.preventDefault=!0)))}function F(e,t,n){var o,i,a,s=r[e.hash],l=e.getActivePointersListByType(n.type);void 0!==t.originalEvent.buttons&&(l.buttons=t.originalEvent.buttons),(o=l.getById(n.id))&&(o.lastPos=o.currentPos,o.lastTime=o.currentTime,o.currentPos=n.currentPos,o.currentTime=n.currentTime,t.shouldCapture=!1,t.shouldReleaseCapture=!1,e.stopHandler&&"mouse"===n.type&&(clearTimeout(e.stopTimeOut),e.stopTimeOut=setTimeout((function(){!function(e,t,r){e.stopHandler&&e.stopHandler({eventSource:e,pointerType:r,position:b(t,e.element),buttons:e.getActivePointersListByType(r).buttons,isTouchEvent:"touch"===r,originalEvent:t,userData:e.userData})}(e,t.originalEvent,n.type)}),e.stopDelay)),0===l.contacts?e.moveHandler&&e.moveHandler({eventSource:e,pointerType:n.type,position:w(n.currentPos,e.element),buttons:l.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData}):1===l.contacts?(e.moveHandler&&(o=l.asArray()[0],e.moveHandler({eventSource:e,pointerType:o.type,position:w(o.currentPos,e.element),buttons:l.buttons,isTouchEvent:"touch"===o.type,originalEvent:t.originalEvent,userData:e.userData})),!e.dragHandler||t.preventGesture||t.defaultPrevented||(a=(o=l.asArray()[0]).currentPos.minus(o.lastPos),e.dragHandler({eventSource:e,pointerType:o.type,position:w(o.currentPos,e.element),buttons:l.buttons,delta:a,speed:o.speed,direction:o.direction,shift:t.originalEvent.shiftKey,isTouchEvent:"touch"===o.type,originalEvent:t.originalEvent,userData:e.userData}),t.preventDefault=!0,s.sentDragEvent=!0)):2===l.contacts&&(e.moveHandler&&(i=l.asArray(),e.moveHandler({eventSource:e,pointerType:i[0].type,position:w(O(i[0].currentPos,i[1].currentPos),e.element),buttons:l.buttons,isTouchEvent:"touch"===i[0].type,originalEvent:t.originalEvent,userData:e.userData})),!e.pinchHandler||"touch"!==n.type||t.preventGesture||t.defaultPrevented||(a=s.pinchGPoints[0].currentPos.distanceTo(s.pinchGPoints[1].currentPos))!==s.currentPinchDist&&(s.lastPinchDist=s.currentPinchDist,s.currentPinchDist=a,s.lastPinchCenter=s.currentPinchCenter,s.currentPinchCenter=O(s.pinchGPoints[0].currentPos,s.pinchGPoints[1].currentPos),e.pinchHandler({eventSource:e,pointerType:"touch",gesturePoints:s.pinchGPoints,lastCenter:w(s.lastPinchCenter,e.element),center:w(s.currentPinchCenter,e.element),lastDistance:s.lastPinchDist,distance:s.currentPinchDist,shift:t.originalEvent.shiftKey,originalEvent:t.originalEvent,userData:e.userData}),t.preventDefault=!0)))}function H(e,t,r){var n,o=e.getActivePointersListByType(r.type);(n=o.getById(r.id))&&N(e,o,n)}e.MouseTracker.gesturePointVelocityTracker=(n=[],o=0,i=0,a=function(e,t){return e.hash.toString()+t.type+t.id.toString()},s=function(){var t,r,o,a,s,l,u=n.length,c=e.now();for(a=c-i,i=c,t=0;t<u;t++)(o=(r=n[t]).gPoint).direction=Math.atan2(o.currentPos.y-r.lastPos.y,o.currentPos.x-r.lastPos.x),s=r.lastPos.distanceTo(o.currentPos),r.lastPos=o.currentPos,l=1e3*s/(a+1),o.speed=.75*l+.25*o.speed},{addPoint:function(t,r){var l=a(t,r);n.push({guid:l,gPoint:r,lastPos:r.currentPos}),1===n.length&&(i=e.now(),o=window.setInterval(s,50))},removePoint:function(e,t){var r,i=a(e,t),s=n.length;for(r=0;r<s;r++)if(n[r].guid===i){n.splice(r,1),0==--s&&window.clearInterval(o);break}}}),e.MouseTracker.captureElement=document,e.MouseTracker.wheelEventName=e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version>8||"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",e.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur","contextmenu",e.MouseTracker.wheelEventName],"DOMMouseScroll"===e.MouseTracker.wheelEventName&&e.MouseTracker.subscribeEvents.push("MozMousePixelScroll"),window.PointerEvent?(e.MouseTracker.havePointerEvents=!0,e.MouseTracker.subscribeEvents.push("pointerenter","pointerleave","pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel"),e.MouseTracker.havePointerCapture=(l=document.createElement("div"),e.isFunction(l.setPointerCapture)&&e.isFunction(l.releasePointerCapture)),e.MouseTracker.havePointerCapture&&e.MouseTracker.subscribeEvents.push("gotpointercapture","lostpointercapture")):(e.MouseTracker.havePointerEvents=!1,e.MouseTracker.subscribeEvents.push("mouseenter","mouseleave","mouseover","mouseout","mousedown","mouseup","mousemove"),e.MouseTracker.mousePointerId="legacy-mouse",e.MouseTracker.havePointerCapture=function(){var t=document.createElement("div");return e.isFunction(t.setCapture)&&e.isFunction(t.releaseCapture)}(),e.MouseTracker.havePointerCapture&&e.MouseTracker.subscribeEvents.push("losecapture"),"ontouchstart"in window&&e.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel"),"ongesturestart"in window&&e.MouseTracker.subscribeEvents.push("gesturestart","gesturechange")),e.MouseTracker.GesturePointList=function(e){this._gPoints=[],this.type=e,this.buttons=0,this.contacts=0,this.clicks=0,this.captureCount=0},e.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(e){return this._gPoints.push(e)},removeById:function(e){var t,r=this._gPoints.length;for(t=0;t<r;t++)if(this._gPoints[t].id===e){this._gPoints.splice(t,1);break}return this._gPoints.length},getByIndex:function(e){return e<this._gPoints.length?this._gPoints[e]:null},getById:function(e){var t,r=this._gPoints.length;for(t=0;t<r;t++)if(this._gPoints[t].id===e)return this._gPoints[t];return null},getPrimary:function(e){var t,r=this._gPoints.length;for(t=0;t<r;t++)if(this._gPoints[t].isPrimary)return this._gPoints[t];return null},addContact:function(){++this.contacts,this.contacts>1&&("mouse"===this.type||"pen"===this.type)&&(e.console.warn("GesturePointList.addContact() Implausible contacts value"),this.contacts=1)},removeContact:function(){--this.contacts,this.contacts<0&&(this.contacts=0)}}}(s),function(e){e.ControlAnchor={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4,ABSOLUTE:5},e.Control=function(t,r,n){var o=t.parentNode;"number"==typeof r&&(e.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; please use an options object instead. Support for this deprecated variant is scheduled for removal in December 2013"),r={anchor:r}),r.attachToViewer=void 0===r.attachToViewer||r.attachToViewer,this.autoFade=void 0===r.autoFade||r.autoFade,this.element=t,this.anchor=r.anchor,this.container=n,this.anchor===e.ControlAnchor.ABSOLUTE?(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.position="absolute",this.wrapper.style.top="number"==typeof r.top?r.top+"px":r.top,this.wrapper.style.left="number"==typeof r.left?r.left+"px":r.left,this.wrapper.style.height="number"==typeof r.height?r.height+"px":r.height,this.wrapper.style.width="number"==typeof r.width?r.width+"px":r.width,this.wrapper.style.margin="0px",this.wrapper.style.padding="0px",this.element.style.position="relative",this.element.style.top="0px",this.element.style.left="0px",this.element.style.height="100%",this.element.style.width="100%"):(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.display="inline-block",this.anchor===e.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")),this.wrapper.appendChild(this.element),r.attachToViewer?this.anchor===e.ControlAnchor.TOP_RIGHT||this.anchor===e.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):o.appendChild(this.wrapper)},e.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element),this.anchor!==e.ControlAnchor.NONE&&this.container.removeChild(this.wrapper)},isVisible:function(){return"none"!==this.wrapper.style.display},setVisible:function(t){this.wrapper.style.display=t?this.anchor===e.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(t){this.element[e.SIGNAL]&&e.Browser.vendor===e.BROWSERS.IE?e.setElementOpacity(this.element,t,!0):e.setElementOpacity(this.wrapper,t,!0)}}}(s),function(e){function t(e,t){var r,n=e.controls;for(r=n.length-1;r>=0;r--)if(n[r].element===t)return r;return-1}e.ControlDock=function(t){var r,n,o=["topleft","topright","bottomright","bottomleft"];for(e.extend(!0,this,{id:"controldock-"+e.now()+"-"+Math.floor(1e6*Math.random()),container:e.makeNeutralElement("div"),controls:[]},t),this.container.onsubmit=function(){return!1},this.element&&(this.element=e.getElement(this.element),this.element.appendChild(this.container),this.element.style.position="relative",this.container.style.width="100%",this.container.style.height="100%"),n=0;n<o.length;n++)r=o[n],this.controls[r]=e.makeNeutralElement("div"),this.controls[r].style.position="absolute",r.match("left")&&(this.controls[r].style.left="0px"),r.match("right")&&(this.controls[r].style.right="0px"),r.match("top")&&(this.controls[r].style.top="0px"),r.match("bottom")&&(this.controls[r].style.bottom="0px");this.container.appendChild(this.controls.topleft),this.container.appendChild(this.controls.topright),this.container.appendChild(this.controls.bottomright),this.container.appendChild(this.controls.bottomleft)},e.ControlDock.prototype={addControl:function(r,n){var o=null;if(!(t(this,r=e.getElement(r))>=0)){switch(n.anchor){case e.ControlAnchor.TOP_RIGHT:o=this.controls.topright,r.style.position="relative",r.style.paddingRight="0px",r.style.paddingTop="0px";break;case e.ControlAnchor.BOTTOM_RIGHT:o=this.controls.bottomright,r.style.position="relative",r.style.paddingRight="0px",r.style.paddingBottom="0px";break;case e.ControlAnchor.BOTTOM_LEFT:o=this.controls.bottomleft,r.style.position="relative",r.style.paddingLeft="0px",r.style.paddingBottom="0px";break;case e.ControlAnchor.TOP_LEFT:o=this.controls.topleft,r.style.position="relative",r.style.paddingLeft="0px",r.style.paddingTop="0px";break;case e.ControlAnchor.ABSOLUTE:default:case e.ControlAnchor.NONE:o=this.container,r.style.margin="0px",r.style.padding="0px"}this.controls.push(new e.Control(r,n,o)),r.style.display="inline-block"}},removeControl:function(r){var n=t(this,r=e.getElement(r));return n>=0&&(this.controls[n].destroy(),this.controls.splice(n,1)),this},clearControls:function(){for(;this.controls.length>0;)this.controls.pop().destroy();return this},areControlsEnabled:function(){var e;for(e=this.controls.length-1;e>=0;e--)if(this.controls[e].isVisible())return!0;return!1},setControlsEnabled:function(e){var t;for(t=this.controls.length-1;t>=0;t--)this.controls[t].setVisible(e);return this}}}(s),function(e){e.Placement=e.freezeObject({CENTER:0,TOP_LEFT:1,TOP:2,TOP_RIGHT:3,RIGHT:4,BOTTOM_RIGHT:5,BOTTOM:6,BOTTOM_LEFT:7,LEFT:8,properties:{0:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1},1:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},2:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},3:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!0,isVerticallyCentered:!1,isBottom:!1},4:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!0,isBottom:!1},5:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!1,isBottom:!0},6:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},7:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},8:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1}}})}(s),function(e){var t={},r=1;function n(t){return t=e.getElement(t),new e.Point(0===t.clientWidth?1:t.clientWidth,0===t.clientHeight?1:t.clientHeight)}function o(t,r){if(r instanceof e.Overlay)return r;var n=null;if(r.element)n=e.getElement(r.element);else{var o=r.id?r.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());(n=e.getElement(r.id))||((n=document.createElement("a")).href="#/overlay/"+o),n.id=o,e.addClass(n,r.className?r.className:"openseadragon-overlay")}var i=r.location,a=r.width,s=r.height;if(!i){var l=r.x,u=r.y;if(void 0!==r.px){var c=t.viewport.imageToViewportRectangle(new e.Rect(r.px,r.py,a||0,s||0));l=c.x,u=c.y,a=void 0!==a?c.width:void 0,s=void 0!==s?c.height:void 0}i=new e.Point(l,u)}var f=r.placement;return f&&"string"===e.type(f)&&(f=e.Placement[r.placement.toUpperCase()]),new e.Overlay({element:n,location:i,placement:f,onDraw:r.onDraw,checkResize:r.checkResize,width:a,height:s,rotationMode:r.rotationMode})}function i(e,t){var r;for(r=e.length-1;r>=0;r--)if(e[r].element===t)return r;return-1}function a(t,r){return e.requestAnimationFrame((function(){r(t)}))}function s(t){e.requestAnimationFrame((function(){!function(t){var r,n;if(t.controlsShouldFade){for(r=1-(e.now()-t.controlsFadeBeginTime)/t.controlsFadeLength,r=Math.min(1,r),r=Math.max(0,r),n=t.controls.length-1;n>=0;n--)t.controls[n].autoFade&&t.controls[n].setOpacity(r);r>0&&s(t)}}(t)}))}function l(t){t.autoHideControls&&(t.controlsShouldFade=!0,t.controlsFadeBeginTime=e.now()+t.controlsFadeDelay,window.setTimeout((function(){s(t)}),t.controlsFadeDelay))}function u(e){var t;for(e.controlsShouldFade=!1,t=e.controls.length-1;t>=0;t--)e.controls[t].setOpacity(1)}function c(){u(this)}function f(){l(this)}function d(e){var t={tracker:e.eventSource,position:e.position,originalEvent:e.originalEvent,preventDefault:e.preventDefault};this.raiseEvent("canvas-contextmenu",t),e.preventDefault=t.preventDefault}function p(t){var r={originalEvent:t.originalEvent,preventDefaultAction:!1,preventVerticalPan:t.preventVerticalPan||!this.panVertical,preventHorizontalPan:t.preventHorizontalPan||!this.panHorizontal};if(this.raiseEvent("canvas-key",r),r.preventDefaultAction||t.ctrl||t.alt||t.meta)t.preventDefault=!1;else switch(t.keyCode){case 38:r.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-this.pixelsPerArrowPress))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 40:r.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,this.pixelsPerArrowPress))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 37:r.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 39:r.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 187:this.viewport.zoomBy(1.1),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 189:this.viewport.zoomBy(.9),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 48:this.viewport.goHome(),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 87:r.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-40))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 83:r.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,40))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 65:r.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-40,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 68:r.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(40,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 82:t.shift?this.viewport.flipped?this.viewport.setRotation(this.viewport.getRotation()+this.rotationIncrement):this.viewport.setRotation(this.viewport.getRotation()-this.rotationIncrement):this.viewport.flipped?this.viewport.setRotation(this.viewport.getRotation()-this.rotationIncrement):this.viewport.setRotation(this.viewport.getRotation()+this.rotationIncrement),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 70:this.viewport.toggleFlip(),t.preventDefault=!0;break;case 74:this.goToPreviousPage();break;case 75:this.goToNextPage();break;default:t.preventDefault=!1}}function h(e){var t={originalEvent:e.originalEvent};this.raiseEvent("canvas-key-press",t)}function v(r){var n;document.activeElement===this.canvas||this.canvas.focus(),this.viewport.flipped&&(r.position.x=this.viewport.getContainerSize().x-r.position.x);var o={tracker:r.eventSource,position:r.position,quick:r.quick,shift:r.shift,originalEvent:r.originalEvent,originalTarget:r.originalTarget,preventDefaultAction:!1};this.raiseEvent("canvas-click",o),!o.preventDefaultAction&&this.viewport&&r.quick&&(!0===(n=this.gestureSettingsByDeviceType(r.pointerType)).clickToZoom&&(this.viewport.zoomBy(r.shift?1/this.zoomPerClick:this.zoomPerClick,n.zoomToRefPoint?this.viewport.pointFromPixel(r.position,!0):null),this.viewport.applyConstraints()),n.dblClickDragToZoom&&(!0===t[this.hash].draggingToZoom?(t[this.hash].lastClickTime=null,t[this.hash].draggingToZoom=!1):t[this.hash].lastClickTime=e.now()))}function g(e){var t,r={tracker:e.eventSource,position:e.position,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};this.raiseEvent("canvas-double-click",r),!r.preventDefaultAction&&this.viewport&&(t=this.gestureSettingsByDeviceType(e.pointerType)).dblClickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints())}function m(e){var r,n={tracker:e.eventSource,pointerType:e.pointerType,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};if(this.raiseEvent("canvas-drag",n),r=this.gestureSettingsByDeviceType(e.pointerType),!n.preventDefaultAction&&this.viewport)if(r.dblClickDragToZoom&&t[this.hash].draggingToZoom){var o=Math.pow(this.zoomPerDblClickDrag,e.delta.y/50);this.viewport.zoomBy(o)}else if(r.dragToPan&&!t[this.hash].draggingToZoom){if(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewport.flipped&&(e.delta.x=-e.delta.x),this.constrainDuringPan){var i=this.viewport.deltaPointsFromPixels(e.delta.negate());this.viewport.centerSpringX.target.value+=i.x,this.viewport.centerSpringY.target.value+=i.y;var a=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=i.x,this.viewport.centerSpringY.target.value-=i.y,a.xConstrained&&(e.delta.x=0),a.yConstrained&&(e.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta.negate()),r.flickEnabled&&!this.constrainDuringPan)}}function y(r){var n,o={tracker:r.eventSource,pointerType:r.pointerType,position:r.position,speed:r.speed,direction:r.direction,shift:r.shift,originalEvent:r.originalEvent,preventDefaultAction:!1};if(this.raiseEvent("canvas-drag-end",o),n=this.gestureSettingsByDeviceType(r.pointerType),!o.preventDefaultAction&&this.viewport){if(!t[this.hash].draggingToZoom&&n.flickEnabled&&r.speed>=n.flickMinSpeed){var i=0;this.panHorizontal&&(i=n.flickMomentum*r.speed*Math.cos(r.direction));var a=0;this.panVertical&&(a=n.flickMomentum*r.speed*Math.sin(r.direction));var s=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),l=this.viewport.pointFromPixel(new e.Point(s.x-i,s.y-a));this.viewport.panTo(l,!1)}this.viewport.applyConstraints()}n.dblClickDragToZoom&&!0===t[this.hash].draggingToZoom&&(t[this.hash].draggingToZoom=!1)}function b(e){this.raiseEvent("canvas-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function w(e){this.raiseEvent("canvas-exit",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function O(r){if(this.raiseEvent("canvas-press",{tracker:r.eventSource,pointerType:r.pointerType,position:r.position,insideElementPressed:r.insideElementPressed,insideElementReleased:r.insideElementReleased,originalEvent:r.originalEvent}),this.gestureSettingsByDeviceType(r.pointerType).dblClickDragToZoom){var n=t[this.hash].lastClickTime,o=e.now();if(null===n)return;o-n<this.dblClickTimeThreshold&&(t[this.hash].draggingToZoom=!0),t[this.hash].lastClickTime=null}}function x(e){this.raiseEvent("canvas-release",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function S(e){this.raiseEvent("canvas-nonprimary-press",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function A(e){this.raiseEvent("canvas-nonprimary-release",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function P(e){var t,r,n,o={tracker:e.eventSource,pointerType:e.pointerType,gesturePoints:e.gesturePoints,lastCenter:e.lastCenter,center:e.center,lastDistance:e.lastDistance,distance:e.distance,shift:e.shift,originalEvent:e.originalEvent,preventDefaultPanAction:!1,preventDefaultZoomAction:!1,preventDefaultRotateAction:!1};if(this.raiseEvent("canvas-pinch",o),this.viewport&&(!(t=this.gestureSettingsByDeviceType(e.pointerType)).pinchToZoom||o.preventDefaultPanAction&&o.preventDefaultZoomAction||(r=this.viewport.pointFromPixel(e.center,!0),t.zoomToRefPoint&&!o.preventDefaultPanAction&&(n=this.viewport.pointFromPixel(e.lastCenter,!0).minus(r),this.panHorizontal||(n.x=0),this.panVertical||(n.y=0),this.viewport.panBy(n,!0)),o.preventDefaultZoomAction||this.viewport.zoomBy(e.distance/e.lastDistance,r,!0),this.viewport.applyConstraints()),t.pinchRotate&&!o.preventDefaultRotateAction)){var i=Math.atan2(e.gesturePoints[0].currentPos.y-e.gesturePoints[1].currentPos.y,e.gesturePoints[0].currentPos.x-e.gesturePoints[1].currentPos.x),a=Math.atan2(e.gesturePoints[0].lastPos.y-e.gesturePoints[1].lastPos.y,e.gesturePoints[0].lastPos.x-e.gesturePoints[1].lastPos.x);r=this.viewport.pointFromPixel(e.center,!0),this.viewport.rotateTo(this.viewport.getRotation(!0)+(i-a)*(180/Math.PI),r,!0)}}function j(e){this.raiseEvent("canvas-focus",{tracker:e.eventSource,originalEvent:e.originalEvent})}function E(e){this.raiseEvent("canvas-blur",{tracker:e.eventSource,originalEvent:e.originalEvent})}function I(t){var r,n,o,i;(i=e.now())-this._lastScrollTime>this.minScrollDeltaTime?(this._lastScrollTime=i,r={tracker:t.eventSource,position:t.position,scroll:t.scroll,shift:t.shift,originalEvent:t.originalEvent,preventDefaultAction:!1,preventDefault:!0},this.raiseEvent("canvas-scroll",r),!r.preventDefaultAction&&this.viewport&&(this.viewport.flipped&&(t.position.x=this.viewport.getContainerSize().x-t.position.x),(n=this.gestureSettingsByDeviceType(t.pointerType)).scrollToZoom&&(o=Math.pow(this.zoomPerScroll,t.scroll),this.viewport.zoomBy(o,n.zoomToRefPoint?this.viewport.pointFromPixel(t.position,!0):null),this.viewport.applyConstraints())),t.preventDefault=r.preventDefault):t.preventDefault=!0}function T(e){t[this.hash].mouseInside=!0,u(this),this.raiseEvent("container-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function C(e){e.pointers<1&&(t[this.hash].mouseInside=!1,t[this.hash].animating||l(this)),this.raiseEvent("container-exit",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function k(r){!function(r){if(r._opening||!t[r.hash])return;if(r.autoResize||t[r.hash].forceResize){var o;if(r._autoResizePolling){o=n(r.container);var i=t[r.hash].prevContainerSize;o.equals(i)||(t[r.hash].needsResize=!0)}t[r.hash].needsResize&&function(r,n){var o,i=r.viewport,a=i.getZoom(),s=i.getCenter();if(i.resize(n,r.preserveImageSizeOnResize),i.panTo(s,!0),r.preserveImageSizeOnResize)o=t[r.hash].prevContainerSize.x/n.x;else{var l=new e.Point(0,0),u=new e.Point(t[r.hash].prevContainerSize.x,t[r.hash].prevContainerSize.y).distanceTo(l);o=new e.Point(n.x,n.y).distanceTo(l)/u*t[r.hash].prevContainerSize.x/n.x}i.zoomTo(a*o,null,!0),t[r.hash].prevContainerSize=n,t[r.hash].forceRedraw=!0,t[r.hash].needsResize=!1,t[r.hash].forceResize=!1}(r,o||n(r.container))}var a=r.viewport.update(),s=r.world.update()||a;a&&r.raiseEvent("viewport-change");r.referenceStrip&&(s=r.referenceStrip.update(r.viewport)||s);var c=t[r.hash].animating;!c&&s&&(r.raiseEvent("animation-start"),u(r));var f=c&&!s;f&&(t[r.hash].animating=!1);(s||f||t[r.hash].forceRedraw||r.world.needsDraw())&&(!function(e){e.imageLoader.clear(),e.drawer.clear(),e.world.draw(),e.raiseEvent("update-viewport",{})}(r),r._drawOverlays(),r.navigator&&r.navigator.update(r.viewport),t[r.hash].forceRedraw=!1,s&&r.raiseEvent("animation"));f&&(r.raiseEvent("animation-finish"),t[r.hash].mouseInside||l(r));t[r.hash].animating=s}(r),r.isOpen()?r._updateRequestId=a(r,k):r._updateRequestId=!1}function _(e,t){return e?e+t:t}function R(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=this.zoomPerSecond,t[this.hash].zooming=!0,M(this)}function N(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=1/this.zoomPerSecond,t[this.hash].zooming=!0,M(this)}function D(){t[this.hash].zooming=!1}function M(t){e.requestAnimationFrame(e.delegate(t,L))}function L(){var r,n,o;t[this.hash].zooming&&this.viewport&&(n=(r=e.now())-t[this.hash].lastZoomTime,o=Math.pow(t[this.hash].zoomFactor,n/1e3),this.viewport.zoomBy(o),this.viewport.applyConstraints(),t[this.hash].lastZoomTime=r,M(this))}function z(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function W(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function B(){this.buttonGroup&&(this.buttonGroup.emulateEnter(),this.buttonGroup.emulateLeave())}function F(){this.viewport&&this.viewport.goHome()}function H(){this.isFullPage()&&!e.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage()),this.buttonGroup&&this.buttonGroup.emulateLeave(),this.fullPageButton.element.focus(),this.viewport&&this.viewport.applyConstraints()}function U(){if(this.viewport){var e=this.viewport.getRotation();this.viewport.flipped?e+=this.rotationIncrement:e-=this.rotationIncrement,this.viewport.setRotation(e)}}function V(){if(this.viewport){var e=this.viewport.getRotation();this.viewport.flipped?e-=this.rotationIncrement:e+=this.rotationIncrement,this.viewport.setRotation(e)}}function G(){this.viewport.toggleFlip()}e.Viewer=function(o){var i,s,u=arguments,c=this;if(e.isPlainObject(o)||(o={id:u[0],xmlPath:u.length>1?u[1]:void 0,prefixUrl:u.length>2?u[2]:void 0,controls:u.length>3?u[3]:void 0,overlays:u.length>4?u[4]:void 0}),o.config&&(e.extend(!0,o,o.config),delete o.config),e.extend(!0,this,{id:o.id,hash:o.hash||r++,initialPage:0,element:null,container:null,canvas:null,overlays:[],overlaysContainer:null,previousBody:[],customControls:[],source:null,drawer:null,world:null,viewport:null,navigator:null,collectionViewport:null,collectionDrawer:null,navImages:null,buttonGroup:null,profiler:null},e.DEFAULT_SETTINGS,o),void 0===this.hash)throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for(void 0!==t[this.hash]&&e.console.warn("Hash "+this.hash+" has already been used."),t[this.hash]={fsBoundsDelta:new e.Point(1,1),prevContainerSize:null,animating:!1,forceRedraw:!1,needsResize:!1,forceResize:!1,mouseInside:!1,group:null,zooming:!1,zoomFactor:null,lastZoomTime:null,fullPage:!1,onfullscreenchange:null,lastClickTime:null,draggingToZoom:!1},this._sequenceIndex=0,this._firstOpen=!0,this._updateRequestId=null,this._loadQueue=[],this.currentOverlays=[],this._updatePixelDensityRatioBind=null,this._lastScrollTime=e.now(),e.EventSource.call(this),this.addHandler("open-failed",(function(t){var r=e.getString("Errors.OpenFailed",t.eventSource,t.message);c._showMessage(r)})),e.ControlDock.call(this,o),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=e.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",(s=this.canvas.style).width="100%",s.height="100%",s.overflow="hidden",s.position="absolute",s.top="0px",s.left="0px",e.setElementTouchActionNone(this.canvas),""!==o.tabIndex&&(this.canvas.tabIndex=void 0===o.tabIndex?0:o.tabIndex),this.container.className="openseadragon-container",function(e){e.width="100%",e.height="100%",e.position="relative",e.overflow="hidden",e.left="0px",e.top="0px",e.textAlign="left"}(this.container.style),e.setElementTouchActionNone(this.container),this.container.insertBefore(this.canvas,this.container.firstChild),this.element.appendChild(this.container),this.bodyWidth=document.body.style.width,this.bodyHeight=document.body.style.height,this.bodyOverflow=document.body.style.overflow,this.docOverflow=document.documentElement.style.overflow,this.innerTracker=new e.MouseTracker({userData:"Viewer.innerTracker",element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,contextMenuHandler:e.delegate(this,d),keyDownHandler:e.delegate(this,p),keyHandler:e.delegate(this,h),clickHandler:e.delegate(this,v),dblClickHandler:e.delegate(this,g),dragHandler:e.delegate(this,m),dragEndHandler:e.delegate(this,y),enterHandler:e.delegate(this,b),leaveHandler:e.delegate(this,w),pressHandler:e.delegate(this,O),releaseHandler:e.delegate(this,x),nonPrimaryPressHandler:e.delegate(this,S),nonPrimaryReleaseHandler:e.delegate(this,A),scrollHandler:e.delegate(this,I),pinchHandler:e.delegate(this,P),focusHandler:e.delegate(this,j),blurHandler:e.delegate(this,E)}),this.outerTracker=new e.MouseTracker({userData:"Viewer.outerTracker",element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:e.delegate(this,T),leaveHandler:e.delegate(this,C)}),this.toolbar&&(this.toolbar=new e.ControlDock({element:this.toolbar})),this.bindStandardControls(),t[this.hash].prevContainerSize=n(this.container),window.ResizeObserver?(this._autoResizePolling=!1,this._resizeObserver=new ResizeObserver((function(){t[c.hash].needsResize=!0})),this._resizeObserver.observe(this.container,{})):this._autoResizePolling=!0,this.world=new e.World({viewer:this}),this.world.addHandler("add-item",(function(e){c.source=c.world.getItemAt(0).source,t[c.hash].forceRedraw=!0,c._updateRequestId||(c._updateRequestId=a(c,k))})),this.world.addHandler("remove-item",(function(e){c.world.getItemCount()?c.source=c.world.getItemAt(0).source:c.source=null,t[c.hash].forceRedraw=!0})),this.world.addHandler("metrics-change",(function(e){c.viewport&&c.viewport._setContentBounds(c.world.getHomeBounds(),c.world.getContentFactor())})),this.world.addHandler("item-index-change",(function(e){c.source=c.world.getItemAt(0).source})),this.viewport=new e.Viewport({containerSize:t[this.hash].prevContainerSize,springStiffness:this.springStiffness,animationTime:this.animationTime,minZoomImageRatio:this.minZoomImageRatio,maxZoomPixelRatio:this.maxZoomPixelRatio,visibilityRatio:this.visibilityRatio,wrapHorizontal:this.wrapHorizontal,wrapVertical:this.wrapVertical,defaultZoomLevel:this.defaultZoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,viewer:this,degrees:this.degrees,flipped:this.flipped,navigatorRotate:this.navigatorRotate,homeFillsViewer:this.homeFillsViewer,margins:this.viewportMargins,silenceMultiImageWarnings:this.silenceMultiImageWarnings}),this.viewport._setContentBounds(this.world.getHomeBounds(),this.world.getContentFactor()),this.imageLoader=new e.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:o.timeout,tileRetryMax:this.tileRetryMax,tileRetryDelay:this.tileRetryDelay}),this.tileCache=new e.TileCache({maxImageCacheCount:this.maxImageCacheCount}),this.drawer=new e.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor}),this.overlaysContainer=e.makeNeutralElement("div"),this.canvas.appendChild(this.overlaysContainer),this.drawer.canRotate()||(this.rotateLeft&&(i=this.buttonGroup.buttons.indexOf(this.rotateLeft),this.buttonGroup.buttons.splice(i,1),this.buttonGroup.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(i=this.buttonGroup.buttons.indexOf(this.rotateRight),this.buttonGroup.buttons.splice(i,1),this.buttonGroup.element.removeChild(this.rotateRight.element))),this._addUpdatePixelDensityRatioEvent(),this.showNavigator&&(this.navigator=new e.Navigator({element:this.navigatorElement,id:this.navigatorId,position:this.navigatorPosition,sizeRatio:this.navigatorSizeRatio,maintainSizeRatio:this.navigatorMaintainSizeRatio,top:this.navigatorTop,left:this.navigatorLeft,width:this.navigatorWidth,height:this.navigatorHeight,autoResize:this.navigatorAutoResize,autoFade:this.navigatorAutoFade,prefixUrl:this.prefixUrl,viewer:this,navigatorRotate:this.navigatorRotate,background:this.navigatorBackground,opacity:this.navigatorOpacity,borderColor:this.navigatorBorderColor,displayRegionColor:this.navigatorDisplayRegionColor,crossOriginPolicy:this.crossOriginPolicy,animationTime:this.animationTime})),this.sequenceMode&&this.bindSequenceControls(),this.tileSources&&this.open(this.tileSources),i=0;i<this.customControls.length;i++)this.addControl(this.customControls[i].id,{anchor:this.customControls[i].anchor});e.requestAnimationFrame((function(){l(c)})),void 0===this.imageSmoothingEnabled||this.imageSmoothingEnabled||this.drawer.setImageSmoothingEnabled(this.imageSmoothingEnabled),e._viewers.set(this.element,this)},e.extend(e.Viewer.prototype,e.EventSource.prototype,e.ControlDock.prototype,{isOpen:function(){return!!this.world.getItemCount()},openDzi:function(t){return e.console.error("[Viewer.openDzi] this function is deprecated; use Viewer.open() instead."),this.open(t)},openTileSource:function(t){return e.console.error("[Viewer.openTileSource] this function is deprecated; use Viewer.open() instead."),this.open(t)},get buttons(){return e.console.warn("Viewer.buttons is deprecated; Please use Viewer.buttonGroup"),this.buttonGroup},open:function(t,r){var n=this;if(this.close(),!t)return this;if(this.sequenceMode&&e.isArray(t))return this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),void 0===r||isNaN(r)||(this.initialPage=r),this.tileSources=t,this._sequenceIndex=Math.max(0,Math.min(this.tileSources.length-1,this.initialPage)),this.tileSources.length&&(this.open(this.tileSources[this._sequenceIndex]),this.showReferenceStrip&&this.addReferenceStrip()),this._updateSequenceButtons(this._sequenceIndex),this;if(e.isArray(t)||(t=[t]),!t.length)return this;this._opening=!0;for(var i,a=t.length,s=0,l=0,u=function(){if(s+l===a)if(s){!n._firstOpen&&n.preserveViewport||(n.viewport.goHome(!0),n.viewport.update()),n._firstOpen=!1;var e=t[0];if(e.tileSource&&(e=e.tileSource),n.overlays&&!n.preserveOverlays)for(var r=0;r<n.overlays.length;r++)n.currentOverlays[r]=o(n,n.overlays[r]);n._drawOverlays(),n._opening=!1,n.raiseEvent("open",{source:e})}else n._opening=!1,n.raiseEvent("open-failed",i)},c=function(t){e.isPlainObject(t)&&t.tileSource||(t={tileSource:t}),void 0!==t.index&&(e.console.error("[Viewer.open] setting indexes here is not supported; use addTiledImage instead"),delete t.index),void 0===t.collectionImmediately&&(t.collectionImmediately=!0);var r=t.success;t.success=function(e){if(s++,t.tileSource.overlays)for(var o=0;o<t.tileSource.overlays.length;o++)n.addOverlay(t.tileSource.overlays[o]);r&&r(e),u()};var o=t.error;t.error=function(e){l++,i||(i=e),o&&o(e),u()},n.addTiledImage(t)},f=0;f<t.length;f++)c(t[f]);return this},close:function(){return t[this.hash]?(this._opening=!1,this.navigator&&this.navigator.close(),this.preserveOverlays||(this.clearOverlays(),this.overlaysContainer.innerHTML=""),t[this.hash].animating=!1,this.world.removeAll(),this.imageLoader.clear(),this.raiseEvent("close"),this):this},destroy:function(){if(t[this.hash]){if(this.raiseEvent("before-destroy"),this._removeUpdatePixelDensityRatioEvent(),this.close(),this.clearOverlays(),this.overlaysContainer.innerHTML="",this._resizeObserver&&this._resizeObserver.disconnect(),this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),null!==this._updateRequestId&&(e.cancelAnimationFrame(this._updateRequestId),this._updateRequestId=null),this.drawer&&this.drawer.destroy(),this.navigator&&(this.navigator.destroy(),t[this.navigator.hash]=null,delete t[this.navigator.hash],this.navigator=null),this.buttonGroup)this.buttonGroup.destroy();else if(this.customButtons)for(;this.customButtons.length;)this.customButtons.pop().destroy();if(this.paging&&this.paging.destroy(),this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.container.onsubmit=null,this.clearControls(),this.innerTracker&&this.innerTracker.destroy(),this.outerTracker&&this.outerTracker.destroy(),t[this.hash]=null,delete t[this.hash],this.canvas=null,this.container=null,e._viewers.delete(this.element),this.element=null,this.raiseEvent("destroy"),this.removeAllHandlers()}},isMouseNavEnabled:function(){return this.innerTracker.isTracking()},setMouseNavEnabled:function(e){return this.innerTracker.setTracking(e),this.outerTracker.setTracking(e),this.raiseEvent("mouse-enabled",{enabled:e}),this},areControlsEnabled:function(){var e,t=this.controls.length;for(e=0;e<this.controls.length;e++)t=t&&this.controls[e].isVisible();return t},setControlsEnabled:function(e){return e?u(this):l(this),this.raiseEvent("controls-enabled",{enabled:e}),this},setDebugMode:function(e){for(var t=0;t<this.world.getItemCount();t++)this.world.getItemAt(t).debugMode=e;this.debugMode=e,this.forceRedraw()},setAjaxHeaders:function(t,r){if(null===t&&(t={}),e.isPlainObject(t)){if(void 0===r&&(r=!0),this.ajaxHeaders=t,r){for(var n=0;n<this.world.getItemCount();n++)this.world.getItemAt(n)._updateAjaxHeaders(!0);if(this.navigator&&this.navigator.setAjaxHeaders(this.ajaxHeaders,!0),this.referenceStrip&&this.referenceStrip.miniViewers)for(var o in this.referenceStrip.miniViewers)this.referenceStrip.miniViewers[o].setAjaxHeaders(this.ajaxHeaders,!0)}}else console.error("[Viewer.setAjaxHeaders] Ignoring invalid headers, must be a plain object")},addButton:function(e){this.buttonGroup.addButton(e)},isFullPage:function(){return t[this.hash].fullPage},setFullPage:function(r){var n,o,i=document.body,a=i.style,s=document.documentElement.style,l=this;if(r===this.isFullPage())return this;var u={fullPage:r,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",u),u.preventDefaultAction)return this;if(r){for(this.elementSize=e.getElementSize(this.element),this.pageScroll=e.getPageScroll(),this.elementMargin=this.element.style.margin,this.element.style.margin="0",this.elementPadding=this.element.style.padding,this.element.style.padding="0",this.bodyMargin=a.margin,this.docMargin=s.margin,a.margin="0",s.margin="0",this.bodyPadding=a.padding,this.docPadding=s.padding,a.padding="0",s.padding="0",this.bodyWidth=a.width,this.docWidth=s.width,a.width="100%",s.width="100%",this.bodyHeight=a.height,this.docHeight=s.height,a.height="100%",s.height="100%",this.bodyDisplay=a.display,a.display="block",this.previousBody=[],t[this.hash].prevElementParent=this.element.parentNode,t[this.hash].prevNextSibling=this.element.nextSibling,t[this.hash].prevElementWidth=this.element.style.width,t[this.hash].prevElementHeight=this.element.style.height,n=i.childNodes.length,o=0;o<n;o++)this.previousBody.push(i.childNodes[0]),i.removeChild(i.childNodes[0]);this.toolbar&&this.toolbar.element&&(this.toolbar.parentNode=this.toolbar.element.parentNode,this.toolbar.nextSibling=this.toolbar.element.nextSibling,i.appendChild(this.toolbar.element),e.addClass(this.toolbar.element,"fullpage")),e.addClass(this.element,"fullpage"),i.appendChild(this.element),this.element.style.height="100vh",this.element.style.width="100vw",this.toolbar&&this.toolbar.element&&(this.element.style.height=e.getElementSize(this.element).y-e.getElementSize(this.toolbar.element).y+"px"),t[this.hash].fullPage=!0,e.delegate(this,T)({})}else{for(this.element.style.margin=this.elementMargin,this.element.style.padding=this.elementPadding,a.margin=this.bodyMargin,s.margin=this.docMargin,a.padding=this.bodyPadding,s.padding=this.docPadding,a.width=this.bodyWidth,s.width=this.docWidth,a.height=this.bodyHeight,s.height=this.docHeight,a.display=this.bodyDisplay,i.removeChild(this.element),n=this.previousBody.length,o=0;o<n;o++)i.appendChild(this.previousBody.shift());e.removeClass(this.element,"fullpage"),t[this.hash].prevElementParent.insertBefore(this.element,t[this.hash].prevNextSibling),this.toolbar&&this.toolbar.element&&(i.removeChild(this.toolbar.element),e.removeClass(this.toolbar.element,"fullpage"),this.toolbar.parentNode.insertBefore(this.toolbar.element,this.toolbar.nextSibling),delete this.toolbar.parentNode,delete this.toolbar.nextSibling),this.element.style.width=t[this.hash].prevElementWidth,this.element.style.height=t[this.hash].prevElementHeight;var c=0;e.requestAnimationFrame((function t(){e.setPageScroll(l.pageScroll);var r=e.getPageScroll();++c<10&&(r.x!==l.pageScroll.x||r.y!==l.pageScroll.y)&&e.requestAnimationFrame(t)})),t[this.hash].fullPage=!1,e.delegate(this,C)({})}return this.navigator&&this.viewport&&this.navigator.update(this.viewport),this.raiseEvent("full-page",{fullPage:r}),this},setFullScreen:function(t){var r=this;if(!e.supportsFullScreen)return this.setFullPage(t);if(e.isFullScreen()===t)return this;var n={fullScreen:t,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",n),n.preventDefaultAction)return this;if(t){if(this.setFullPage(!0),!this.isFullPage())return this;this.fullPageStyleWidth=this.element.style.width,this.fullPageStyleHeight=this.element.style.height,this.element.style.width="100%",this.element.style.height="100%";var o=function t(){var n=e.isFullScreen();n||(e.removeEvent(document,e.fullScreenEventName,t),e.removeEvent(document,e.fullScreenErrorEventName,t),r.setFullPage(!1),r.isFullPage()&&(r.element.style.width=r.fullPageStyleWidth,r.element.style.height=r.fullPageStyleHeight)),r.navigator&&r.viewport&&setTimeout((function(){r.navigator.update(r.viewport)})),r.raiseEvent("full-screen",{fullScreen:n})};e.addEvent(document,e.fullScreenEventName,o),e.addEvent(document,e.fullScreenErrorEventName,o),e.requestFullScreen(document.body)}else e.exitFullScreen();return this},isVisible:function(){return"hidden"!==this.container.style.visibility},isFullScreen:function(){return e.isFullScreen()&&this.isFullPage()},setVisible:function(e){return this.container.style.visibility=e?"":"hidden",this.raiseEvent("visible",{visible:e}),this},addTiledImage:function(t){e.console.assert(t,"[Viewer.addTiledImage] options is required"),e.console.assert(t.tileSource,"[Viewer.addTiledImage] options.tileSource is required"),e.console.assert(!t.replace||t.index>-1&&t.index<this.world.getItemCount(),"[Viewer.addTiledImage] if options.replace is used, options.index must be a valid index in Viewer.world");var r=this;t.replace&&(t.replaceItem=r.world.getItemAt(t.index)),this._hideMessage(),void 0===t.placeholderFillStyle&&(t.placeholderFillStyle=this.placeholderFillStyle),void 0===t.opacity&&(t.opacity=this.opacity),void 0===t.preload&&(t.preload=this.preload),void 0===t.compositeOperation&&(t.compositeOperation=this.compositeOperation),void 0===t.crossOriginPolicy&&(t.crossOriginPolicy=void 0!==t.tileSource.crossOriginPolicy?t.tileSource.crossOriginPolicy:this.crossOriginPolicy),void 0===t.ajaxWithCredentials&&(t.ajaxWithCredentials=this.ajaxWithCredentials),void 0===t.loadTilesWithAjax&&(t.loadTilesWithAjax=this.loadTilesWithAjax),e.isPlainObject(t.ajaxHeaders)||(t.ajaxHeaders={});var n={options:t};function o(e){for(var o=0;o<r._loadQueue.length;o++)if(r._loadQueue[o]===n){r._loadQueue.splice(o,1);break}0===r._loadQueue.length&&i(n),r.raiseEvent("add-item-failed",e),t.error&&t.error(e)}function i(e){r.collectionMode&&(r.world.arrange({immediately:e.options.collectionImmediately,rows:r.collectionRows,columns:r.collectionColumns,layout:r.collectionLayout,tileSize:r.collectionTileSize,tileMargin:r.collectionTileMargin}),r.world.setAutoRefigureSizes(!0))}function a(){for(var t,n,o;r._loadQueue.length&&(t=r._loadQueue[0]).tileSource;){if(r._loadQueue.splice(0,1),t.options.replace){var a=r.world.getIndexOfItem(t.options.replaceItem);-1!==a&&(t.options.index=a),r.world.removeItem(t.options.replaceItem)}n=new e.TiledImage({viewer:r,source:t.tileSource,viewport:r.viewport,drawer:r.drawer,tileCache:r.tileCache,imageLoader:r.imageLoader,x:t.options.x,y:t.options.y,width:t.options.width,height:t.options.height,fitBounds:t.options.fitBounds,fitBoundsPlacement:t.options.fitBoundsPlacement,clip:t.options.clip,placeholderFillStyle:t.options.placeholderFillStyle,opacity:t.options.opacity,preload:t.options.preload,degrees:t.options.degrees,flipped:t.options.flipped,compositeOperation:t.options.compositeOperation,springStiffness:r.springStiffness,animationTime:r.animationTime,minZoomImageRatio:r.minZoomImageRatio,wrapHorizontal:r.wrapHorizontal,wrapVertical:r.wrapVertical,immediateRender:r.immediateRender,blendTime:r.blendTime,alwaysBlend:r.alwaysBlend,minPixelRatio:r.minPixelRatio,smoothTileEdgesMinZoom:r.smoothTileEdgesMinZoom,iOSDevice:r.iOSDevice,crossOriginPolicy:t.options.crossOriginPolicy,ajaxWithCredentials:t.options.ajaxWithCredentials,loadTilesWithAjax:t.options.loadTilesWithAjax,ajaxHeaders:t.options.ajaxHeaders,debugMode:r.debugMode,subPixelRoundingForTransparency:r.subPixelRoundingForTransparency}),r.collectionMode&&r.world.setAutoRefigureSizes(!1),r.navigator&&(o=e.extend({},t.options,{replace:!1,originalTiledImage:n,tileSource:t.tileSource}),r.navigator.addTiledImage(o)),r.world.addItem(n,{index:t.options.index}),0===r._loadQueue.length&&i(t),1!==r.world.getItemCount()||r.preserveViewport||r.viewport.goHome(!0),t.options.success&&t.options.success({item:n})}}e.isArray(t.tileSource)?setTimeout((function(){o({message:"[Viewer.addTiledImage] Sequences can not be added; add them one at a time instead.",source:t.tileSource,options:t})})):(this._loadQueue.push(n),function(t,r,n,o,i){var a=t;if("string"===e.type(r))if(r.match(/^\s*<.*>\s*$/))r=e.parseXml(r);else if(r.match(/^\s*[{[].*[}\]]\s*$/))try{var s=e.parseJSON(r);r=s}catch(e){}function l(e,t){e.ready?o(e):(e.addHandler("ready",(function(){o(e)})),e.addHandler("open-failed",(function(e){i({message:e.message,source:t})})))}setTimeout((function(){if("string"===e.type(r))(r=new e.TileSource({url:r,crossOriginPolicy:void 0!==n.crossOriginPolicy?n.crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,ajaxHeaders:n.ajaxHeaders?n.ajaxHeaders:t.ajaxHeaders,splitHashDataForPost:t.splitHashDataForPost,useCanvas:t.useCanvas,success:function(e){o(e.tileSource)}})).addHandler("open-failed",(function(e){i(e)}));else if(e.isPlainObject(r)||r.nodeType)if(void 0!==r.crossOriginPolicy||void 0===n.crossOriginPolicy&&void 0===t.crossOriginPolicy||(r.crossOriginPolicy=void 0!==n.crossOriginPolicy?n.crossOriginPolicy:t.crossOriginPolicy),void 0===r.ajaxWithCredentials&&(r.ajaxWithCredentials=t.ajaxWithCredentials),void 0===r.useCanvas&&(r.useCanvas=t.useCanvas),e.isFunction(r.getTileUrl)){var s=new e.TileSource(r);s.getTileUrl=r.getTileUrl,o(s)}else{var u=e.TileSource.determineType(a,r);if(!u)return void i({message:"Unable to load TileSource",source:r});var c=u.prototype.configure.apply(a,[r]);l(new u(c),r)}else l(r,r)}))}(this,t.tileSource,t,(function(e){n.tileSource=e,a()}),(function(e){e.options=t,o(e),a()})))},addSimpleImage:function(t){e.console.assert(t,"[Viewer.addSimpleImage] options is required"),e.console.assert(t.url,"[Viewer.addSimpleImage] options.url is required");var r=e.extend({},t,{tileSource:{type:"image",url:t.url}});delete r.url,this.addTiledImage(r)},addLayer:function(t){var r=this;e.console.error("[Viewer.addLayer] this function is deprecated; use Viewer.addTiledImage() instead.");var n=e.extend({},t,{success:function(e){r.raiseEvent("add-layer",{options:t,drawer:e.item})},error:function(e){r.raiseEvent("add-layer-failed",e)}});return this.addTiledImage(n),this},getLayerAtLevel:function(t){return e.console.error("[Viewer.getLayerAtLevel] this function is deprecated; use World.getItemAt() instead."),this.world.getItemAt(t)},getLevelOfLayer:function(t){return e.console.error("[Viewer.getLevelOfLayer] this function is deprecated; use World.getIndexOfItem() instead."),this.world.getIndexOfItem(t)},getLayersCount:function(){return e.console.error("[Viewer.getLayersCount] this function is deprecated; use World.getItemCount() instead."),this.world.getItemCount()},setLayerLevel:function(t,r){return e.console.error("[Viewer.setLayerLevel] this function is deprecated; use World.setItemIndex() instead."),this.world.setItemIndex(t,r)},removeLayer:function(t){return e.console.error("[Viewer.removeLayer] this function is deprecated; use World.removeItem() instead."),this.world.removeItem(t)},forceRedraw:function(){return t[this.hash].forceRedraw=!0,this},forceResize:function(){t[this.hash].needsResize=!0,t[this.hash].forceResize=!0},bindSequenceControls:function(){var t=e.delegate(this,c),r=e.delegate(this,f),n=e.delegate(this,this.goToNextPage),o=e.delegate(this,this.goToPreviousPage),i=this.navImages,a=!0;return this.showSequenceControl&&((this.previousButton||this.nextButton)&&(a=!1),this.previousButton=new e.Button({element:this.previousButton?e.getElement(this.previousButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.PreviousPage"),srcRest:_(this.prefixUrl,i.previous.REST),srcGroup:_(this.prefixUrl,i.previous.GROUP),srcHover:_(this.prefixUrl,i.previous.HOVER),srcDown:_(this.prefixUrl,i.previous.DOWN),onRelease:o,onFocus:t,onBlur:r}),this.nextButton=new e.Button({element:this.nextButton?e.getElement(this.nextButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.NextPage"),srcRest:_(this.prefixUrl,i.next.REST),srcGroup:_(this.prefixUrl,i.next.GROUP),srcHover:_(this.prefixUrl,i.next.HOVER),srcDown:_(this.prefixUrl,i.next.DOWN),onRelease:n,onFocus:t,onBlur:r}),this.navPrevNextWrap||this.previousButton.disable(),this.tileSources&&this.tileSources.length||this.nextButton.disable(),a&&(this.paging=new e.ButtonGroup({buttons:[this.previousButton,this.nextButton],clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.pagingControl=this.paging.element,this.toolbar?this.toolbar.addControl(this.pagingControl,{anchor:e.ControlAnchor.BOTTOM_RIGHT}):this.addControl(this.pagingControl,{anchor:this.sequenceControlAnchor||e.ControlAnchor.TOP_LEFT}))),this},bindStandardControls:function(){var t=e.delegate(this,R),r=e.delegate(this,D),n=e.delegate(this,z),o=e.delegate(this,N),i=e.delegate(this,W),a=e.delegate(this,F),s=e.delegate(this,H),l=e.delegate(this,U),u=e.delegate(this,V),d=e.delegate(this,G),p=e.delegate(this,c),h=e.delegate(this,f),v=this.navImages,g=[],m=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(m=!1),this.showZoomControl&&(g.push(this.zoomInButton=new e.Button({element:this.zoomInButton?e.getElement(this.zoomInButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomIn"),srcRest:_(this.prefixUrl,v.zoomIn.REST),srcGroup:_(this.prefixUrl,v.zoomIn.GROUP),srcHover:_(this.prefixUrl,v.zoomIn.HOVER),srcDown:_(this.prefixUrl,v.zoomIn.DOWN),onPress:t,onRelease:r,onClick:n,onEnter:t,onExit:r,onFocus:p,onBlur:h})),g.push(this.zoomOutButton=new e.Button({element:this.zoomOutButton?e.getElement(this.zoomOutButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomOut"),srcRest:_(this.prefixUrl,v.zoomOut.REST),srcGroup:_(this.prefixUrl,v.zoomOut.GROUP),srcHover:_(this.prefixUrl,v.zoomOut.HOVER),srcDown:_(this.prefixUrl,v.zoomOut.DOWN),onPress:o,onRelease:r,onClick:i,onEnter:o,onExit:r,onFocus:p,onBlur:h}))),this.showHomeControl&&g.push(this.homeButton=new e.Button({element:this.homeButton?e.getElement(this.homeButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Home"),srcRest:_(this.prefixUrl,v.home.REST),srcGroup:_(this.prefixUrl,v.home.GROUP),srcHover:_(this.prefixUrl,v.home.HOVER),srcDown:_(this.prefixUrl,v.home.DOWN),onRelease:a,onFocus:p,onBlur:h})),this.showFullPageControl&&g.push(this.fullPageButton=new e.Button({element:this.fullPageButton?e.getElement(this.fullPageButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.FullPage"),srcRest:_(this.prefixUrl,v.fullpage.REST),srcGroup:_(this.prefixUrl,v.fullpage.GROUP),srcHover:_(this.prefixUrl,v.fullpage.HOVER),srcDown:_(this.prefixUrl,v.fullpage.DOWN),onRelease:s,onFocus:p,onBlur:h})),this.showRotationControl&&(g.push(this.rotateLeftButton=new e.Button({element:this.rotateLeftButton?e.getElement(this.rotateLeftButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateLeft"),srcRest:_(this.prefixUrl,v.rotateleft.REST),srcGroup:_(this.prefixUrl,v.rotateleft.GROUP),srcHover:_(this.prefixUrl,v.rotateleft.HOVER),srcDown:_(this.prefixUrl,v.rotateleft.DOWN),onRelease:l,onFocus:p,onBlur:h})),g.push(this.rotateRightButton=new e.Button({element:this.rotateRightButton?e.getElement(this.rotateRightButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateRight"),srcRest:_(this.prefixUrl,v.rotateright.REST),srcGroup:_(this.prefixUrl,v.rotateright.GROUP),srcHover:_(this.prefixUrl,v.rotateright.HOVER),srcDown:_(this.prefixUrl,v.rotateright.DOWN),onRelease:u,onFocus:p,onBlur:h}))),this.showFlipControl&&g.push(this.flipButton=new e.Button({element:this.flipButton?e.getElement(this.flipButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Flip"),srcRest:_(this.prefixUrl,v.flip.REST),srcGroup:_(this.prefixUrl,v.flip.GROUP),srcHover:_(this.prefixUrl,v.flip.HOVER),srcDown:_(this.prefixUrl,v.flip.DOWN),onRelease:d,onFocus:p,onBlur:h})),m?(this.buttonGroup=new e.ButtonGroup({buttons:g,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttonGroup.element,this.addHandler("open",e.delegate(this,B)),this.toolbar?this.toolbar.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT}):this.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT})):this.customButtons=g),this},currentPage:function(){return this._sequenceIndex},goToPage:function(e){return this.tileSources&&e>=0&&e<this.tileSources.length&&(this._sequenceIndex=e,this._updateSequenceButtons(e),this.open(this.tileSources[e]),this.referenceStrip&&this.referenceStrip.setFocus(e),this.raiseEvent("page",{page:e})),this},addOverlay:function(t,r,n,a){var s;if(s=e.isPlainObject(t)?t:{element:t,location:r,placement:n,onDraw:a},t=e.getElement(s.element),i(this.currentOverlays,t)>=0)return this;var l=o(this,s);return this.currentOverlays.push(l),l.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:t,location:s.location,placement:s.placement}),this},updateOverlay:function(r,n,o){var a;return r=e.getElement(r),(a=i(this.currentOverlays,r))>=0&&(this.currentOverlays[a].update(n,o),t[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:r,location:n,placement:o})),this},removeOverlay:function(r){var n;return r=e.getElement(r),(n=i(this.currentOverlays,r))>=0&&(this.currentOverlays[n].destroy(),this.currentOverlays.splice(n,1),t[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:r})),this},clearOverlays:function(){for(;this.currentOverlays.length>0;)this.currentOverlays.pop().destroy();return t[this.hash].forceRedraw=!0,this.raiseEvent("clear-overlay",{}),this},getOverlayById:function(t){var r;return t=e.getElement(t),(r=i(this.currentOverlays,t))>=0?this.currentOverlays[r]:null},_updateSequenceButtons:function(e){this.nextButton&&(this.tileSources&&this.tileSources.length-1!==e?this.nextButton.enable():this.navPrevNextWrap||this.nextButton.disable()),this.previousButton&&(e>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(t){this._hideMessage();var r=e.makeNeutralElement("div");r.appendChild(document.createTextNode(t)),this.messageDiv=e.makeCenteredNode(r),e.addClass(this.messageDiv,"openseadragon-message"),this.container.appendChild(this.messageDiv)},_hideMessage:function(){var e=this.messageDiv;e&&(e.parentNode.removeChild(e),delete this.messageDiv)},gestureSettingsByDeviceType:function(e){switch(e){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var e,t=this.currentOverlays.length;for(e=0;e<t;e++)this.currentOverlays[e].drawHTML(this.overlaysContainer,this.viewport)},_cancelPendingImages:function(){this._loadQueue=[]},removeReferenceStrip:function(){this.showReferenceStrip=!1,this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null)},addReferenceStrip:function(){if(this.showReferenceStrip=!0,this.sequenceMode){if(this.referenceStrip)return;this.tileSources.length&&this.tileSources.length>1&&(this.referenceStrip=new e.ReferenceStrip({id:this.referenceStripElement,position:this.referenceStripPosition,sizeRatio:this.referenceStripSizeRatio,scroll:this.referenceStripScroll,height:this.referenceStripHeight,width:this.referenceStripWidth,tileSources:this.tileSources,prefixUrl:this.prefixUrl,useCanvas:this.useCanvas,viewer:this}),this.referenceStrip.setFocus(this._sequenceIndex))}else e.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')},_addUpdatePixelDensityRatioEvent:function(){this._updatePixelDensityRatioBind=this._updatePixelDensityRatio.bind(this),e.addEvent(window,"resize",this._updatePixelDensityRatioBind)},_removeUpdatePixelDensityRatioEvent:function(){e.removeEvent(window,"resize",this._updatePixelDensityRatioBind)},_updatePixelDensityRatio:function(){var t=e.pixelDensityRatio,r=e.getCurrentPixelDensityRatio();t!==r&&(e.pixelDensityRatio=r,this.world.resetItems(),this.forceRedraw())},goToPreviousPage:function(){var e=this._sequenceIndex-1;this.navPrevNextWrap&&e<0&&(e+=this.tileSources.length),this.goToPage(e)},goToNextPage:function(){var e=this._sequenceIndex+1;this.navPrevNextWrap&&e>=this.tileSources.length&&(e=0),this.goToPage(e)},isAnimating:function(){return t[this.hash].animating}})}(s),function(e){function t(e){var t={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};if(this.viewer.raiseEvent("navigator-click",t),!t.preventDefaultAction&&e.quick&&this.viewer.viewport&&(this.panVertical||this.panHorizontal)){this.viewer.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var r=this.viewport.pointFromPixel(e.position);this.panVertical?this.panHorizontal||(r.x=this.viewer.viewport.getCenter(!0).x):r.y=this.viewer.viewport.getCenter(!0).y,this.viewer.viewport.panTo(r),this.viewer.viewport.applyConstraints()}}function r(e){var t={tracker:e.eventSource,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};this.viewer.raiseEvent("navigator-drag",t),!t.preventDefaultAction&&this.viewer.viewport&&(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewer.viewport.flipped&&(e.delta.x=-e.delta.x),this.viewer.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta)),this.viewer.constrainDuringPan&&this.viewer.viewport.applyConstraints())}function n(e){e.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function o(e){var t={tracker:e.eventSource,position:e.position,scroll:e.scroll,shift:e.shift,originalEvent:e.originalEvent,preventDefault:e.preventDefault};this.viewer.raiseEvent("navigator-scroll",t),e.preventDefault=t.preventDefault}function i(e,t){a(e,"rotate("+t+"deg)")}function a(e,t){e.style.webkitTransform=t,e.style.mozTransform=t,e.style.msTransform=t,e.style.oTransform=t,e.style.transform=t}e.Navigator=function(a){var s,l,u,c,f=a.viewer,d=this;function p(e,t){i(d.displayRegionContainer,e),i(d.displayRegion,-e),d.viewport.setRotation(e,t)}(a.element||a.id?(a.element?(a.id&&e.console.warn("Given option.id for Navigator was ignored since option.element was provided and is being used instead."),a.element.id?a.id=a.element.id:a.id="navigator-"+e.now(),this.element=a.element):this.element=document.getElementById(a.id),a.controlOptions={anchor:e.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}):(a.id="navigator-"+e.now(),this.element=e.makeNeutralElement("div"),a.controlOptions={anchor:e.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:a.autoFade},a.position&&("BOTTOM_RIGHT"===a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_RIGHT:"BOTTOM_LEFT"===a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_LEFT:"TOP_RIGHT"===a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_RIGHT:"TOP_LEFT"===a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_LEFT:"ABSOLUTE"===a.position&&(a.controlOptions.anchor=e.ControlAnchor.ABSOLUTE,a.controlOptions.top=a.top,a.controlOptions.left=a.left,a.controlOptions.height=a.height,a.controlOptions.width=a.width))),this.element.id=a.id,this.element.className+=" navigator",(a=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.navigatorSizeRatio},a,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:a.animationTime,autoResize:!1,minZoomImageRatio:1,background:a.background,opacity:a.opacity,borderColor:a.borderColor,displayRegionColor:a.displayRegionColor})).minPixelRatio=this.minPixelRatio=f.minPixelRatio,e.setElementTouchActionNone(this.element),this.borderWidth=2,this.fudge=new e.Point(1,1),this.totalBorderWidths=new e.Point(2*this.borderWidth,2*this.borderWidth).minus(this.fudge),a.controlOptions.anchor!==e.ControlAnchor.NONE&&(u=this.element.style,c=this.borderWidth,u.margin="0px",u.border=c+"px solid "+a.borderColor,u.padding="0px",u.background=a.background,u.opacity=a.opacity,u.overflow="hidden"),this.displayRegion=e.makeNeutralElement("div"),this.displayRegion.id=this.element.id+"-displayregion",this.displayRegion.className="displayregion",function(e,t){e.position="relative",e.top="0px",e.left="0px",e.fontSize="0px",e.overflow="hidden",e.border=t+"px solid "+a.displayRegionColor,e.margin="0px",e.padding="0px",e.background="transparent",e.float="left",e.cssFloat="left",e.styleFloat="left",e.zIndex=999999999,e.cursor="default",e.boxSizing="content-box"}(this.displayRegion.style,this.borderWidth),e.setElementPointerEventsNone(this.displayRegion),e.setElementTouchActionNone(this.displayRegion),this.displayRegionContainer=e.makeNeutralElement("div"),this.displayRegionContainer.id=this.element.id+"-displayregioncontainer",this.displayRegionContainer.className="displayregioncontainer",this.displayRegionContainer.style.width="100%",this.displayRegionContainer.style.height="100%",e.setElementPointerEventsNone(this.displayRegionContainer),e.setElementTouchActionNone(this.displayRegionContainer),f.addControl(this.element,a.controlOptions),this._resizeWithViewer=a.controlOptions.anchor!==e.ControlAnchor.ABSOLUTE&&a.controlOptions.anchor!==e.ControlAnchor.NONE,a.width&&a.height?(this.setWidth(a.width),this.setHeight(a.height)):this._resizeWithViewer&&(s=e.getElementSize(f.element),this.element.style.height=Math.round(s.y*a.sizeRatio)+"px",this.element.style.width=Math.round(s.x*a.sizeRatio)+"px",this.oldViewerSize=s,l=e.getElementSize(this.element),this.elementArea=l.x*l.y),this.oldContainerSize=new e.Point(0,0),e.Viewer.apply(this,[a]),this.displayRegionContainer.appendChild(this.displayRegion),this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer),a.navigatorRotate)&&(p(a.viewer.viewport?a.viewer.viewport.getRotation():a.viewer.degrees||0,!0),a.viewer.addHandler("rotate",(function(e){p(e.degrees,e.immediately)})));this.innerTracker.destroy(),this.innerTracker=new e.MouseTracker({userData:"Navigator.innerTracker",element:this.element,dragHandler:e.delegate(this,r),clickHandler:e.delegate(this,t),releaseHandler:e.delegate(this,n),scrollHandler:e.delegate(this,o),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),this.outerTracker.userData="Navigator.outerTracker",e.setElementPointerEventsNone(this.canvas),e.setElementPointerEventsNone(this.container),this.addHandler("reset-size",(function(){d.viewport&&d.viewport.goHome(!0)})),f.world.addHandler("item-index-change",(function(e){window.setTimeout((function(){var t=d.world.getItemAt(e.previousIndex);d.world.setItemIndex(t,e.newIndex)}),1)})),f.world.addHandler("remove-item",(function(e){var t=e.item,r=d._getMatchingItem(t);r&&d.world.removeItem(r)})),this.update(f.viewport)},e.extend(e.Navigator.prototype,e.EventSource.prototype,e.Viewer.prototype,{updateSize:function(){if(this.viewport){var t=new e.Point(0===this.container.clientWidth?1:this.container.clientWidth,0===this.container.clientHeight?1:this.container.clientHeight);t.equals(this.oldContainerSize)||(this.viewport.resize(t,!0),this.viewport.goHome(!0),this.oldContainerSize=t,this.drawer.clear(),this.world.draw())}},setWidth:function(e){this.width=e,this.element.style.width="number"==typeof e?e+"px":e,this._resizeWithViewer=!1,this.updateSize()},setHeight:function(e){this.height=e,this.element.style.height="number"==typeof e?e+"px":e,this._resizeWithViewer=!1,this.updateSize()},setFlip:function(e){return this.viewport.setFlip(e),this.setDisplayTransform(this.viewer.viewport.getFlip()?"scale(-1,1)":"scale(1,1)"),this},setDisplayTransform:function(e){a(this.displayRegion,e),a(this.canvas,e),a(this.element,e)},update:function(t){var r,n,o,a,s,l;if(r=e.getElementSize(this.viewer.element),this._resizeWithViewer&&r.x&&r.y&&!r.equals(this.oldViewerSize)&&(this.oldViewerSize=r,this.maintainSizeRatio||!this.elementArea?(n=r.x*this.sizeRatio,o=r.y*this.sizeRatio):(n=Math.sqrt(this.elementArea*(r.x/r.y)),o=this.elementArea/n),this.element.style.width=Math.round(n)+"px",this.element.style.height=Math.round(o)+"px",this.elementArea||(this.elementArea=n*o),this.updateSize()),t&&this.viewport){if(a=t.getBoundsNoRotate(!0),s=this.viewport.pixelFromPointNoRotate(a.getTopLeft(),!1),l=this.viewport.pixelFromPointNoRotate(a.getBottomRight(),!1).minus(this.totalBorderWidths),!this.navigatorRotate){var u=t.getRotation(!0);i(this.displayRegion,-u)}var c=this.displayRegion.style;c.display=this.world.getItemCount()?"block":"none",c.top=s.y.toFixed(2)+"px",c.left=s.x.toFixed(2)+"px";var f=l.x-s.x,d=l.y-s.y;c.width=Math.round(Math.max(f,0))+"px",c.height=Math.round(Math.max(d,0))+"px"}},addTiledImage:function(t){var r=this,n=t.originalTiledImage;delete t.original;var o=e.extend({},t,{success:function(e){var t=e.item;function o(){r._matchBounds(t,n)}t._originalForNavigator=n,r._matchBounds(t,n,!0),r._matchOpacity(t,n),r._matchCompositeOperation(t,n),n.addHandler("bounds-change",o),n.addHandler("clip-change",o),n.addHandler("opacity-change",(function(){r._matchOpacity(t,n)})),n.addHandler("composite-operation-change",(function(){r._matchCompositeOperation(t,n)}))}});return e.Viewer.prototype.addTiledImage.apply(this,[o])},destroy:function(){return e.Viewer.prototype.destroy.apply(this)},_getMatchingItem:function(e){for(var t,r=this.world.getItemCount(),n=0;n<r;n++)if((t=this.world.getItemAt(n))._originalForNavigator===e)return t;return null},_matchBounds:function(e,t,r){var n=t.getBoundsNoRotate();e.setPosition(n.getTopLeft(),r),e.setWidth(n.width,r),e.setRotation(t.getRotation(),r),e.setClip(t.getClip()),e.setFlip(t.getFlip())},_matchOpacity:function(e,t){e.setOpacity(t.opacity)},_matchCompositeOperation:function(e,t){e.setCompositeOperation(t.compositeOperation)}})}(s),function(e){var t={Errors:{Dzc:"Sorry, we don't support Deep Zoom Collections!",Dzi:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",Xml:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",ImageFormat:"Sorry, we don't support {0}-based Deep Zoom Images.",Security:"It looks like a security restriction stopped us from loading this Deep Zoom Image.",Status:"This space unintentionally left blank ({0} {1}).",OpenFailed:"Unable to open {0}: {1}"},Tooltips:{FullPage:"Toggle full page",Home:"Go home",ZoomIn:"Zoom in",ZoomOut:"Zoom out",NextPage:"Next page",PreviousPage:"Previous page",RotateLeft:"Rotate left",RotateRight:"Rotate right",Flip:"Flip Horizontally"}};e.extend(e,{getString:function(r){var n,o=r.split("."),i=null,a=arguments,s=t;for(n=0;n<o.length-1;n++)s=s[o[n]]||{};return"string"!=typeof(i=s[o[n]])&&(e.console.error("Untranslated source string:",r),i=""),i.replace(/\{\d+\}/g,(function(e){var t=parseInt(e.match(/\d+/),10)+1;return t<a.length?a[t]:""}))},setString:function(e,r){var n,o=e.split("."),i=t;for(n=0;n<o.length-1;n++)i[o[n]]||(i[o[n]]={}),i=i[o[n]];i[o[n]]=r}})}(s),function(e){e.Point=function(e,t){this.x="number"==typeof e?e:0,this.y="number"==typeof t?t:0},e.Point.prototype={clone:function(){return new e.Point(this.x,this.y)},plus:function(t){return new e.Point(this.x+t.x,this.y+t.y)},minus:function(t){return new e.Point(this.x-t.x,this.y-t.y)},times:function(t){return new e.Point(this.x*t,this.y*t)},divide:function(t){return new e.Point(this.x/t,this.y/t)},negate:function(){return new e.Point(-this.x,-this.y)},distanceTo:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},squaredDistanceTo:function(e){return Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2)},apply:function(t){return new e.Point(t(this.x),t(this.y))},equals:function(t){return t instanceof e.Point&&this.x===t.x&&this.y===t.y},rotate:function(t,r){var n,o;if(r=r||new e.Point(0,0),t%90==0){switch(e.positiveModulo(t,360)){case 0:n=1,o=0;break;case 90:n=0,o=1;break;case 180:n=-1,o=0;break;case 270:n=0,o=-1}}else{var i=t*Math.PI/180;n=Math.cos(i),o=Math.sin(i)}var a=n*(this.x-r.x)-o*(this.y-r.y)+r.x,s=o*(this.x-r.x)+n*(this.y-r.y)+r.y;return new e.Point(a,s)},toString:function(){return"("+Math.round(100*this.x)/100+","+Math.round(100*this.y)/100+")"}}}(s),function(e){e.TileSource=function(t,r,n,o,i,a){var s,l,u=this,c=arguments;if(s=e.isPlainObject(t)?t:{width:c[0],height:c[1],tileSize:c[2],tileOverlap:c[3],minLevel:c[4],maxLevel:c[5]},e.EventSource.call(this),e.extend(!0,this,s),!this.success)for(l=0;l<arguments.length;l++)if(e.isFunction(arguments[l])){this.success=arguments[l];break}this.success&&this.addHandler("ready",(function(e){u.success(e)})),"string"===e.type(arguments[0])&&(this.url=arguments[0]),this.url?(this.aspectRatio=1,this.dimensions=new e.Point(10,10),this._tileWidth=0,this._tileHeight=0,this.tileOverlap=0,this.minLevel=0,this.maxLevel=0,this.ready=!1,this.getImageInfo(this.url)):(this.ready=!0,this.aspectRatio=s.width&&s.height?s.width/s.height:1,this.dimensions=new e.Point(s.width,s.height),this.tileSize?(this._tileWidth=this._tileHeight=this.tileSize,delete this.tileSize):(this.tileWidth?(this._tileWidth=this.tileWidth,delete this.tileWidth):this._tileWidth=0,this.tileHeight?(this._tileHeight=this.tileHeight,delete this.tileHeight):this._tileHeight=0),this.tileOverlap=s.tileOverlap?s.tileOverlap:0,this.minLevel=s.minLevel?s.minLevel:0,this.maxLevel=void 0!==s.maxLevel&&null!==s.maxLevel?s.maxLevel:s.width&&s.height?Math.ceil(Math.log(Math.max(s.width,s.height))/Math.log(2)):0,this.success&&e.isFunction(this.success)&&this.success(this))},e.TileSource.prototype={getTileSize:function(t){return e.console.error("[TileSource.getTileSize] is deprecated. Use TileSource.getTileWidth() and TileSource.getTileHeight() instead"),this._tileWidth},getTileWidth:function(e){return this._tileWidth?this._tileWidth:this.getTileSize(e)},getTileHeight:function(e){return this._tileHeight?this._tileHeight:this.getTileSize(e)},setMaxLevel:function(e){this.maxLevel=e,this._memoizeLevelScale()},getLevelScale:function(e){return this._memoizeLevelScale(),this.getLevelScale(e)},_memoizeLevelScale:function(){var e,t={};for(e=0;e<=this.maxLevel;e++)t[e]=1/Math.pow(2,this.maxLevel-e);this.getLevelScale=function(e){return t[e]}},getNumTiles:function(t){var r=this.getLevelScale(t),n=Math.ceil(r*this.dimensions.x/this.getTileWidth(t)),o=Math.ceil(r*this.dimensions.y/this.getTileHeight(t));return new e.Point(n,o)},getPixelRatio:function(t){var r=this.dimensions.times(this.getLevelScale(t)),n=1/r.x*e.pixelDensityRatio,o=1/r.y*e.pixelDensityRatio;return new e.Point(n,o)},getClosestLevel:function(){var e,t;for(e=this.minLevel+1;e<=this.maxLevel&&!((t=this.getNumTiles(e)).x>1||t.y>1);e++);return e-1},getTileAtPoint:function(t,r){var n=r.x>=0&&r.x<=1&&r.y>=0&&r.y<=1/this.aspectRatio;e.console.assert(n,"[TileSource.getTileAtPoint] must be called with a valid point.");var o=this.dimensions.x*this.getLevelScale(t),i=r.x*o,a=r.y*o,s=Math.floor(i/this.getTileWidth(t)),l=Math.floor(a/this.getTileHeight(t));r.x>=1&&(s=this.getNumTiles(t).x-1);return r.y>=1/this.aspectRatio-1e-15&&(l=this.getNumTiles(t).y-1),new e.Point(s,l)},getTileBounds:function(t,r,n,o){var i=this.dimensions.times(this.getLevelScale(t)),a=this.getTileWidth(t),s=this.getTileHeight(t),l=0===r?0:a*r-this.tileOverlap,u=0===n?0:s*n-this.tileOverlap,c=a+(0===r?1:2)*this.tileOverlap,f=s+(0===n?1:2)*this.tileOverlap,d=1/i.x;return c=Math.min(c,i.x-l),f=Math.min(f,i.y-u),o?new e.Rect(0,0,c,f):new e.Rect(l*d,u*d,c*d,f*d)},getImageInfo:function(t){var r,n,o,i,a,s,l,u=this;t&&(l=(s=(a=t.split("/"))[a.length-1]).lastIndexOf("."))>-1&&(a[a.length-1]=s.slice(0,l));var c=null;if(this.splitHashDataForPost){var f=t.indexOf("#");-1!==f&&(c=t.substring(f+1),t=t.substr(0,f))}n=function(r){"string"==typeof r&&(r=e.parseXml(r));var n=e.TileSource.determineType(u,r,t);n?(void 0===(i=n.prototype.configure.apply(u,[r,t,c])).ajaxWithCredentials&&(i.ajaxWithCredentials=u.ajaxWithCredentials),o=new n(i),u.ready=!0,u.raiseEvent("ready",{tileSource:o})):u.raiseEvent("open-failed",{message:"Unable to load TileSource",source:t})},t.match(/\.js$/)?(r=t.split("/").pop().replace(".js",""),e.jsonp({url:t,async:!1,callbackName:r,callback:n})):e.makeAjaxRequest({url:t,postData:c,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(t){var r=function(t){var r,n,o=t.responseText,i=t.status;if(!t)throw new Error(e.getString("Errors.Security"));if(200!==t.status&&0!==t.status)throw r=404===(i=t.status)?"Not Found":t.statusText,new Error(e.getString("Errors.Status",i,r));if(o.match(/^\s*<.*/))try{n=t.responseXML&&t.responseXML.documentElement?t.responseXML:e.parseXml(o)}catch(e){n=t.responseText}else if(o.match(/\s*[{[].*/))try{n=e.parseJSON(o)}catch(e){n=o}else n=o;return n}(t);n(r)},error:function(r,n){var o;try{o="HTTP "+r.status+" attempting to load TileSource: "+t}catch(e){o=(void 0!==n&&n.toString?n.toString():"Unknown error")+" attempting to load TileSource: "+t}e.console.error(o),u.raiseEvent("open-failed",{message:o,source:t,postData:c})}})},supports:function(e,t){return!1},configure:function(e,t,r){throw new Error("Method not implemented.")},getTileUrl:function(e,t,r){throw new Error("Method not implemented.")},getTilePostData:function(e,t,r){return null},getTileAjaxHeaders:function(e,t,r){return{}},getTileHashKey:function(e,t,r,n,o,i){function a(e){return o?e+"+"+JSON.stringify(o):e}return a("string"!=typeof n?e+"/"+t+"_"+r:n)},tileExists:function(e,t,r){var n=this.getNumTiles(e);return e>=this.minLevel&&e<=this.maxLevel&&t>=0&&r>=0&&t<n.x&&r<n.y},hasTransparency:function(e,t,r,n){return!!e||t.match(".png")},downloadTileStart:function(t){var r=t.userData,n=new Image;r.image=n,r.request=null;var o=function(e){n?(n.onload=n.onerror=n.onabort=null,t.finish(e?null:n,r.request,e)):t.finish(null,r.request,"Image load failed: undefined Image instance.")};n.onload=function(){o()},n.onabort=n.onerror=function(){o("Image load aborted.")},t.loadWithAjax?r.request=e.makeAjaxRequest({url:t.src,withCredentials:t.ajaxWithCredentials,headers:t.ajaxHeaders,responseType:"arraybuffer",postData:t.postData,success:function(e){var t;try{t=new window.Blob([e.response])}catch(n){var r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===n.name&&r){var i=new r;i.append(e.response),t=i.getBlob()}}0===t.size?o("Empty image response."):n.src=(window.URL||window.webkitURL).createObjectURL(t)},error:function(e){o("Image load aborted - XHR error")}}):(!1!==t.crossOriginPolicy&&(n.crossOrigin=t.crossOriginPolicy),n.src=t.src)},downloadTileAbort:function(e){e.userData.request&&e.userData.request.abort();var t=e.userData.image;e.userData.image&&(t.onload=t.onerror=t.onabort=null)},createTileCache:function(e,t,r){e._data=t},destroyTileCache:function(e){e._data=null,e._renderedContext=null},getTileCacheData:function(e){return e._data},getTileCacheDataAsImage:function(e){return e._data},getTileCacheDataAsContext2D:function(e){if(!e._renderedContext){var t=document.createElement("canvas");t.width=e._data.width,t.height=e._data.height,e._renderedContext=t.getContext("2d"),e._renderedContext.drawImage(e._data,0,0),e._data=null}return e._renderedContext}},e.extend(!0,e.TileSource.prototype,e.EventSource.prototype),e.TileSource.determineType=function(t,r,n){var o;for(o in s)if(o.match(/.+TileSource$/)&&e.isFunction(s[o])&&e.isFunction(s[o].prototype.supports)&&s[o].prototype.supports.call(t,r,n))return s[o];return e.console.error("No TileSource was able to open %s %s",n,r),null}}(s),function(e){function t(t,r){var n,o,i=r.Image,a=i.Url,s=i.Format,l=i.Size,u=i.DisplayRect||[],c=parseInt(l.Width,10),f=parseInt(l.Height,10),d=parseInt(i.TileSize,10),p=parseInt(i.Overlap,10),h=[];for(o=0;o<u.length;o++)n=u[o].Rect,h.push(new e.DisplayRect(parseInt(n.X,10),parseInt(n.Y,10),parseInt(n.Width,10),parseInt(n.Height,10),parseInt(n.MinLevel,10),parseInt(n.MaxLevel,10)));return e.extend(!0,{width:c,height:f,tileSize:d,tileOverlap:p,minLevel:null,maxLevel:null,tilesUrl:a,fileFormat:s,displayRects:h},r)}e.DziTileSource=function(t,r,n,o,i,a,s,l,u){var c,f,d,p;if(p=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4],fileFormat:arguments[5],displayRects:arguments[6],minLevel:arguments[7],maxLevel:arguments[8]},this._levelRects={},this.tilesUrl=p.tilesUrl,this.fileFormat=p.fileFormat,this.displayRects=p.displayRects,this.displayRects)for(c=this.displayRects.length-1;c>=0;c--)for(d=(f=this.displayRects[c]).minLevel;d<=f.maxLevel;d++)this._levelRects[d]||(this._levelRects[d]=[]),this._levelRects[d].push(f);e.TileSource.apply(this,[p])},e.extend(e.DziTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){var r;return e.Image?r=e.Image.xmlns:e.documentElement&&("Image"!==e.documentElement.localName&&"Image"!==e.documentElement.tagName||(r=e.documentElement.namespaceURI)),-1!==(r=(r||"").toLowerCase()).indexOf("schemas.microsoft.com/deepzoom/2008")||-1!==r.indexOf("schemas.microsoft.com/deepzoom/2009")},configure:function(r,n,o){var i;return i=e.isPlainObject(r)?t(this,r):function(r,n){if(!n||!n.documentElement)throw new Error(e.getString("Errors.Xml"));var o,i,a,s,l,u=n.documentElement,c=u.localName||u.tagName,f=n.documentElement.namespaceURI,d=null,p=[];if("Image"===c)try{if(void 0===(s=u.getElementsByTagName("Size")[0])&&(s=u.getElementsByTagNameNS(f,"Size")[0]),d={Image:{xmlns:"http://schemas.microsoft.com/deepzoom/2008",Url:u.getAttribute("Url"),Format:u.getAttribute("Format"),DisplayRect:null,Overlap:parseInt(u.getAttribute("Overlap"),10),TileSize:parseInt(u.getAttribute("TileSize"),10),Size:{Height:parseInt(s.getAttribute("Height"),10),Width:parseInt(s.getAttribute("Width"),10)}}},!e.imageFormatSupported(d.Image.Format))throw new Error(e.getString("Errors.ImageFormat",d.Image.Format.toUpperCase()));for(void 0===(o=u.getElementsByTagName("DisplayRect"))&&(o=u.getElementsByTagNameNS(f,"DisplayRect")[0]),l=0;l<o.length;l++)void 0===(a=(i=o[l]).getElementsByTagName("Rect")[0])&&(a=i.getElementsByTagNameNS(f,"Rect")[0]),p.push({Rect:{X:parseInt(a.getAttribute("X"),10),Y:parseInt(a.getAttribute("Y"),10),Width:parseInt(a.getAttribute("Width"),10),Height:parseInt(a.getAttribute("Height"),10),MinLevel:parseInt(i.getAttribute("MinLevel"),10),MaxLevel:parseInt(i.getAttribute("MaxLevel"),10)}});return p.length&&(d.Image.DisplayRect=p),t(r,d)}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.Dzi"))}else{if("Collection"===c)throw new Error(e.getString("Errors.Dzc"));if("Error"===c){var h=u.getElementsByTagName("Message")[0].firstChild.nodeValue;throw new Error(h)}}throw new Error(e.getString("Errors.Dzi"))}(this,r),n&&!i.tilesUrl&&(i.tilesUrl=n.replace(/([^/]+?)(\.(dzi|xml|js)?(\?[^/]*)?)?\/?$/,"$1_files/"),-1!==n.search(/\.(dzi|xml|js)\?/)?i.queryParams=n.match(/\?.*/):i.queryParams=""),i},getTileUrl:function(e,t,r){return[this.tilesUrl,e,"/",t,"_",r,".",this.fileFormat,this.queryParams].join("")},tileExists:function(e,t,r){var n,o,i,a,s,l,u,c=this._levelRects[e];if(this.minLevel&&e<this.minLevel||this.maxLevel&&e>this.maxLevel)return!1;if(!c||!c.length)return!0;for(u=c.length-1;u>=0;u--)if(!(e<(n=c[u]).minLevel||e>n.maxLevel)&&(o=this.getLevelScale(e),i=n.x*o,a=n.y*o,s=i+n.width*o,l=a+n.height*o,i=Math.floor(i/this._tileWidth),a=Math.floor(a/this._tileWidth),s=Math.ceil(s/this._tileWidth),l=Math.ceil(l/this._tileWidth),i<=t&&t<s&&a<=r&&r<l))return!0;return!1}})}(s),function(e){function t(e){var t=Array.isArray(e.profile)?e.profile[0]:e.profile,r=-1!==["http://library.stanford.edu/iiif/image-api/compliance.html#level0","http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0","http://iiif.io/api/image/2/level0.json","level0","https://iiif.io/api/image/3/level0.json"].indexOf(t),n=!1;return 2===e.version&&e.profile.length>1&&e.profile[1].supports&&(n=-1!==e.profile[1].supports.indexOf("sizeByW")),3===e.version&&e.extraFeatures&&(n=-1!==e.extraFeatures.indexOf("sizeByWh")),!r||n}function r(e){for(var t=[],r=0;r<e.sizes.length;r++)t.push({url:e._id+"/full/"+e.sizes[r].width+","+(3===e.version?e.sizes[r].height:"")+"/0/default."+e.tileFormat,width:e.sizes[r].width,height:e.sizes[r].height});return t.sort((function(e,t){return e.width-t.width}))}function n(t,r,o){var i,a;if(3===t.nodeType&&o)(a=t.nodeValue.trim()).match(/^\d*$/)&&(a=Number(a)),r[o]?(e.isArray(r[o])||(r[o]=[r[o]]),r[o].push(a)):r[o]=a;else if(1===t.nodeType)for(i=0;i<t.childNodes.length;i++)n(t.childNodes[i],r,t.nodeName)}e.IIIFTileSource=function(n){if(e.extend(!0,this,n),this._id=this["@id"]||this.id||this.identifier||null,!(this.height&&this.width&&this._id))throw new Error("IIIF required parameters (width, height, or id) not provided.");if(n.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.version=n.version,this.tile_width&&this.tile_height)n.tileWidth=this.tile_width,n.tileHeight=this.tile_height;else if(this.tile_width)n.tileSize=this.tile_width;else if(this.tile_height)n.tileSize=this.tile_height;else if(this.tiles)if(1===this.tiles.length)n.tileWidth=this.tiles[0].width,n.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var o=0;o<this.tiles.length;o++)for(var i=0;i<this.tiles[o].scaleFactors.length;i++){var a=this.tiles[o].scaleFactors[i];this.scale_factors.push(a),n.tileSizePerScaleFactor[a]={width:this.tiles[o].width,height:this.tiles[o].height||this.tiles[o].width}}}else if(t(n)){for(var s=Math.min(this.height,this.width),l=[256,512,1024],u=[],c=0;c<l.length;c++)l[c]<=s&&u.push(l[c]);u.length>0?n.tileSize=Math.max.apply(null,u):n.tileSize=s}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,n.levels=r(this),e.extend(!0,n,{width:n.levels[n.levels.length-1].width,height:n.levels[n.levels.length-1].height,tileSize:Math.max(n.height,n.width),tileOverlap:0,minLevel:0,maxLevel:n.levels.length-1}),this.levels=n.levels):e.console.error("Nothing in the info.json to construct image pyramids from");if(!n.maxLevel&&!this.emulateLegacyImagePyramid)if(this.scale_factors){var f=Math.max.apply(null,this.scale_factors);n.maxLevel=Math.round(Math.log(f)*Math.LOG2E)}else n.maxLevel=Number(Math.round(Math.log(Math.max(this.width,this.height),2)));if(this.sizes){var d=this.sizes.length;d!==n.maxLevel&&d!==n.maxLevel+1||(this.levelSizes=this.sizes,d===n.maxLevel&&this.levelSizes.push({width:this.width,height:this.height}))}e.TileSource.apply(this,[n])},e.extend(e.IIIFTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return!(!e.protocol||"http://iiif.io/api/image"!==e.protocol)||(!(!e["@context"]||"http://library.stanford.edu/iiif/image-api/1.1/context.json"!==e["@context"]&&"http://iiif.io/api/image/1/context.json"!==e["@context"])||(!(!e.profile||0!==e.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html"))||(!!(e.identifier&&e.width&&e.height)||!(!e.documentElement||"info"!==e.documentElement.tagName||"http://library.stanford.edu/iiif/image-api/ns/"!==e.documentElement.namespaceURI))))},configure:function(t,r,o){if(e.isPlainObject(t)){if(t["@context"]){var i=t["@context"];if(Array.isArray(i))for(var a=0;a<i.length;a++)if("string"==typeof i[a]&&(/^http:\/\/iiif\.io\/api\/image\/[1-3]\/context\.json$/.test(i[a])||"http://library.stanford.edu/iiif/image-api/1.1/context.json"===i[a])){i=i[a];break}switch(i){case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":t.version=1;break;case"http://iiif.io/api/image/2/context.json":t.version=2;break;case"http://iiif.io/api/image/3/context.json":t.version=3;break;default:e.console.error("Data has a @context property which contains no known IIIF context URI.")}}else t["@context"]="http://iiif.io/api/image/1.0/context.json",t["@id"]=r.replace("/info.json",""),t.version=1;if(t.preferredFormats)for(var l=0;l<t.preferredFormats.length;l++)if(s.imageFormatSupported(t.preferredFormats[l])){t.tileFormat=t.preferredFormats[l];break}return t}var u=function(t){if(!t||!t.documentElement)throw new Error(e.getString("Errors.Xml"));var r=t.documentElement,o=r.tagName,i=null;if("info"===o)try{return n(r,i={}),i}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.IIIF"))}throw new Error(e.getString("Errors.IIIF"))}(t);return u["@context"]="http://iiif.io/api/image/1.0/context.json",u["@id"]=r.replace("/info.xml",""),u.version=1,u},getTileWidth:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileWidth.call(this,t);var r=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[r]?this.tileSizePerScaleFactor[r].width:this._tileWidth},getTileHeight:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileHeight.call(this,t);var r=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[r]?this.tileSizePerScaleFactor[r].height:this._tileHeight},getLevelScale:function(t){if(this.emulateLegacyImagePyramid){var r=NaN;return this.levels.length>0&&t>=this.minLevel&&t<=this.maxLevel&&(r=this.levels[t].width/this.levels[this.maxLevel].width),r}return e.TileSource.prototype.getLevelScale.call(this,t)},getNumTiles:function(t){if(this.emulateLegacyImagePyramid)return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0);if(this.levelSizes){var r=this.levelSizes[t],n=Math.ceil(r.width/this.getTileWidth(t)),o=Math.ceil(r.height/this.getTileHeight(t));return new e.Point(n,o)}return e.TileSource.prototype.getNumTiles.call(this,t)},getTileAtPoint:function(t,r){if(this.emulateLegacyImagePyramid)return new e.Point(0,0);if(this.levelSizes){var n=r.x>=0&&r.x<=1&&r.y>=0&&r.y<=1/this.aspectRatio;e.console.assert(n,"[TileSource.getTileAtPoint] must be called with a valid point.");var o=this.levelSizes[t].width,i=r.x*o,a=r.y*o,s=Math.floor(i/this.getTileWidth(t)),l=Math.floor(a/this.getTileHeight(t));r.x>=1&&(s=this.getNumTiles(t).x-1);return r.y>=1/this.aspectRatio-1e-15&&(l=this.getNumTiles(t).y-1),new e.Point(s,l)}return e.TileSource.prototype.getTileAtPoint.call(this,t,r)},getTileUrl:function(e,t,r){if(this.emulateLegacyImagePyramid){var n=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(n=this.levels[e].url),n}var o,i,a,s,l,u,c,f,d,p,h,v,g,m,y,b=Math.pow(.5,this.maxLevel-e);return this.levelSizes?(o=this.levelSizes[e].width,i=this.levelSizes[e].height):(o=Math.ceil(this.width*b),i=Math.ceil(this.height*b)),a=this.getTileWidth(e),s=this.getTileHeight(e),l=Math.round(a/b),u=Math.round(s/b),y=1===this.version?"native."+this.tileFormat:"default."+this.tileFormat,o<a&&i<s?(v=2===this.version&&o===this.width?"full":3===this.version&&o===this.width&&i===this.height?"max":3===this.version?o+","+i:o+",",c="full"):(f=t*l,d=r*u,p=Math.min(l,this.width-f),h=Math.min(u,this.height-d),c=0===t&&0===r&&p===this.width&&h===this.height?"full":[f,d,p,h].join(","),g=Math.min(a,o-t*a),m=Math.min(s,i-r*s),v=2===this.version&&g===this.width?"full":3===this.version&&g===this.width&&m===this.height?"max":3===this.version?g+","+m:g+","),[this._id,c,v,"0",y].join("/")},__testonly__:{canBeTiled:t,constructLevels:r}})}(s),function(e){e.OsmTileSource=function(t,r,n,o,i){var a;(a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]}).width&&a.height||(a.width=65572864,a.height=65572864),a.tileSize||(a.tileSize=256,a.tileOverlap=0),a.tilesUrl||(a.tilesUrl="http://tile.openstreetmap.org/"),a.minLevel=8,e.TileSource.apply(this,[a])},e.extend(e.OsmTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"openstreetmaps"===e.type},configure:function(e,t,r){return e},getTileUrl:function(e,t,r){return this.tilesUrl+(e-8)+"/"+t+"/"+r+".png"}})}(s),function(e){e.TmsTileSource=function(t,r,n,o,i){var a;a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]};var s,l=256*Math.ceil(a.width/256),u=256*Math.ceil(a.height/256);s=l>u?l/256:u/256,a.maxLevel=Math.ceil(Math.log(s)/Math.log(2))-1,a.tileSize=256,a.width=l,a.height=u,e.TileSource.apply(this,[a])},e.extend(e.TmsTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"tiledmapservice"===e.type},configure:function(e,t,r){return e},getTileUrl:function(e,t,r){var n=this.getNumTiles(e).y-1;return this.tilesUrl+e+"/"+t+"/"+(n-r)+".png"}})}(s),function(e){e.ZoomifyTileSource=function(e){void 0===e.tileSize&&(e.tileSize=256),void 0===e.fileFormat&&(e.fileFormat="jpg",this.fileFormat=e.fileFormat);var t={x:e.width,y:e.height};for(e.imageSizes=[{x:e.width,y:e.height}],e.gridSize=[this._getGridSize(e.width,e.height,e.tileSize)];parseInt(t.x,10)>e.tileSize||parseInt(t.y,10)>e.tileSize;)t.x=Math.floor(t.x/2),t.y=Math.floor(t.y/2),e.imageSizes.push({x:t.x,y:t.y}),e.gridSize.push(this._getGridSize(t.x,t.y,e.tileSize));e.imageSizes.reverse(),e.gridSize.reverse(),e.minLevel=0,e.maxLevel=e.gridSize.length-1,s.TileSource.apply(this,[e])},e.extend(e.ZoomifyTileSource.prototype,e.TileSource.prototype,{_getGridSize:function(e,t,r){return{x:Math.ceil(e/r),y:Math.ceil(t/r)}},_calculateAbsoluteTileNumber:function(e,t,r){for(var n=0,o={},i=0;i<e;i++)n+=(o=this.gridSize[i]).x*o.y;return n+=(o=this.gridSize[e]).x*r+t},supports:function(e,t){return e.type&&"zoomifytileservice"===e.type},configure:function(e,t,r){return e},getTileUrl:function(e,t,r){var n,o=this._calculateAbsoluteTileNumber(e,t,r);return n=Math.floor(o/256),this.tilesUrl+"TileGroup"+n+"/"+e+"-"+t+"-"+r+"."+this.fileFormat}})}(s),function(e){function t(e,t){return t.levels}e.LegacyTileSource=function(t){var r,n,o;e.isArray(t)&&(r={type:"legacy-image-pyramid",levels:t}),r.levels=function(t){var r,n,o=[];for(n=0;n<t.length;n++)(r=t[n]).height&&r.width&&r.url?o.push({url:r.url,width:Number(r.width),height:Number(r.height)}):e.console.error("Unsupported image format: %s",r.url?r.url:"<no URL>");return o.sort((function(e,t){return e.height-t.height}))}(r.levels),r.levels.length>0?(n=r.levels[r.levels.length-1].width,o=r.levels[r.levels.length-1].height):(n=0,o=0,e.console.error("No supported image formats found")),e.extend(!0,r,{width:n,height:o,tileSize:Math.max(o,n),tileOverlap:0,minLevel:0,maxLevel:r.levels.length>0?r.levels.length-1:0}),e.TileSource.apply(this,[r]),this.levels=r.levels},e.extend(e.LegacyTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"legacy-image-pyramid"===e.type||e.documentElement&&"legacy-image-pyramid"===e.documentElement.getAttribute("type")},configure:function(r,n,o){return e.isPlainObject(r)?t(this,r):function(r,n){if(!n||!n.documentElement)throw new Error(e.getString("Errors.Xml"));var o,i,a=n.documentElement,s=a.tagName,l=null,u=[];if("image"===s)try{for(l={type:a.getAttribute("type"),levels:[]},u=a.getElementsByTagName("level"),i=0;i<u.length;i++)o=u[i],l.levels.push({url:o.getAttribute("url"),width:parseInt(o.getAttribute("width"),10),height:parseInt(o.getAttribute("height"),10)});return t(r,l)}catch(e){throw e instanceof Error?e:new Error("Unknown error parsing Legacy Image Pyramid XML.")}else{if("collection"===s)throw new Error("Legacy Image Pyramid Collections not yet supported.");if("error"===s)throw new Error("Error: "+n)}throw new Error("Unknown element "+s)}(this,r)},getLevelScale:function(e){var t=NaN;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,r){var n=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(n=this.levels[e].url),n}})}(s),function(e){e.ImageTileSource=function(t){t=e.extend({buildPyramid:!0,crossOriginPolicy:!1,ajaxWithCredentials:!1,useCanvas:!0},t),e.TileSource.apply(this,[t])},e.extend(e.ImageTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"image"===e.type},configure:function(e,t,r){return e},getImageInfo:function(t){var r=this._image=new Image,n=this;this.crossOriginPolicy&&(r.crossOrigin=this.crossOriginPolicy),this.ajaxWithCredentials&&(r.useCredentials=this.ajaxWithCredentials),e.addEvent(r,"load",(function(){n.width=r.naturalWidth,n.height=r.naturalHeight,n.aspectRatio=n.width/n.height,n.dimensions=new e.Point(n.width,n.height),n._tileWidth=n.width,n._tileHeight=n.height,n.tileOverlap=0,n.minLevel=0,n.levels=n._buildLevels(),n.maxLevel=n.levels.length-1,n.ready=!0,n.raiseEvent("ready",{tileSource:n})})),e.addEvent(r,"error",(function(){n.raiseEvent("open-failed",{message:"Error loading image at "+t,source:t})})),r.src=t},getLevelScale:function(e){var t=NaN;return e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,r){var n=null;return e>=this.minLevel&&e<=this.maxLevel&&(n=this.levels[e].url),n},getContext2D:function(e,t,r){var n=null;return e>=this.minLevel&&e<=this.maxLevel&&(n=this.levels[e].context2D),n},destroy:function(){this._freeupCanvasMemory()},_buildLevels:function(){var t=[{url:this._image.src,width:this._image.naturalWidth,height:this._image.naturalHeight}];if(!this.buildPyramid||!e.supportsCanvas||!this.useCanvas)return delete this._image,t;var r=this._image.naturalWidth,n=this._image.naturalHeight,o=document.createElement("canvas"),i=o.getContext("2d");if(o.width=r,o.height=n,i.drawImage(this._image,0,0,r,n),t[0].context2D=i,delete this._image,e.isCanvasTainted(o))return t;for(;r>=2&&n>=2;){r=Math.floor(r/2),n=Math.floor(n/2);var a=document.createElement("canvas"),s=a.getContext("2d");a.width=r,a.height=n,s.drawImage(o,0,0,r,n),t.splice(0,0,{context2D:s,width:r,height:n}),o=a,i=s}return t},_freeupCanvasMemory:function(){for(var e=0;e<this.levels.length;e++)this.levels[e].context2D&&(this.levels[e].context2D.canvas.height=0,this.levels[e].context2D.canvas.width=0)}})}(s),function(e){e.TileSourceCollection=function(t,r,n,o){e.console.error("TileSourceCollection is deprecated; use World instead")}}(s),function(e){function t(r){e.requestAnimationFrame((function(){!function(r){var n;r.shouldFade&&(n=1-(e.now()-r.fadeBeginTime)/r.fadeLength,n=Math.min(1,n),n=Math.max(0,n),r.imgGroup&&e.setElementOpacity(r.imgGroup,n,!0),n>0&&t(r))}(r)}))}function r(t,r){t.element.disabled||(r>=e.ButtonState.GROUP&&t.currentState===e.ButtonState.REST&&(!function(t){t.shouldFade=!1,t.imgGroup&&e.setElementOpacity(t.imgGroup,1,!0)}(t),t.currentState=e.ButtonState.GROUP),r>=e.ButtonState.HOVER&&t.currentState===e.ButtonState.GROUP&&(t.imgHover&&(t.imgHover.style.visibility=""),t.currentState=e.ButtonState.HOVER),r>=e.ButtonState.DOWN&&t.currentState===e.ButtonState.HOVER&&(t.imgDown&&(t.imgDown.style.visibility=""),t.currentState=e.ButtonState.DOWN))}function n(r,n){r.element.disabled||(n<=e.ButtonState.HOVER&&r.currentState===e.ButtonState.DOWN&&(r.imgDown&&(r.imgDown.style.visibility="hidden"),r.currentState=e.ButtonState.HOVER),n<=e.ButtonState.GROUP&&r.currentState===e.ButtonState.HOVER&&(r.imgHover&&(r.imgHover.style.visibility="hidden"),r.currentState=e.ButtonState.GROUP),n<=e.ButtonState.REST&&r.currentState===e.ButtonState.GROUP&&(!function(r){r.shouldFade=!0,r.fadeBeginTime=e.now()+r.fadeDelay,window.setTimeout((function(){t(r)}),r.fadeDelay)}(r),r.currentState=e.ButtonState.REST))}e.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3},e.Button=function(t){var o=this;e.EventSource.call(this),e.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null,userData:null},t),this.element=t.element||e.makeNeutralElement("div"),t.element||(this.imgRest=e.makeTransparentImage(this.srcRest),this.imgGroup=e.makeTransparentImage(this.srcGroup),this.imgHover=e.makeTransparentImage(this.srcHover),this.imgDown=e.makeTransparentImage(this.srcDown),this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip,e.setElementPointerEventsNone(this.imgRest),e.setElementPointerEventsNone(this.imgGroup),e.setElementPointerEventsNone(this.imgHover),e.setElementPointerEventsNone(this.imgDown),this.element.style.position="relative",e.setElementTouchActionNone(this.element),this.imgGroup.style.position=this.imgHover.style.position=this.imgDown.style.position="absolute",this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="0px",this.imgGroup.style.left=this.imgHover.style.left=this.imgDown.style.left="0px",this.imgHover.style.visibility=this.imgDown.style.visibility="hidden",e.Browser.vendor===e.BROWSERS.FIREFOX&&e.Browser.version<3&&(this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top=""),this.element.appendChild(this.imgRest),this.element.appendChild(this.imgGroup),this.element.appendChild(this.imgHover),this.element.appendChild(this.imgDown)),this.addHandler("press",this.onPress),this.addHandler("release",this.onRelease),this.addHandler("click",this.onClick),this.addHandler("enter",this.onEnter),this.addHandler("exit",this.onExit),this.addHandler("focus",this.onFocus),this.addHandler("blur",this.onBlur),this.currentState=e.ButtonState.GROUP,this.fadeBeginTime=null,this.shouldFade=!1,this.element.style.display="inline-block",this.element.style.position="relative",this.element.title=this.tooltip,this.tracker=new e.MouseTracker({userData:"Button.tracker",element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(t){t.insideElementPressed?(r(o,e.ButtonState.DOWN),o.raiseEvent("enter",{originalEvent:t.originalEvent})):t.buttonDownAny||r(o,e.ButtonState.HOVER)},focusHandler:function(e){o.tracker.enterHandler(e),o.raiseEvent("focus",{originalEvent:e.originalEvent})},leaveHandler:function(t){n(o,e.ButtonState.GROUP),t.insideElementPressed&&o.raiseEvent("exit",{originalEvent:t.originalEvent})},blurHandler:function(e){o.tracker.leaveHandler(e),o.raiseEvent("blur",{originalEvent:e.originalEvent})},pressHandler:function(t){r(o,e.ButtonState.DOWN),o.raiseEvent("press",{originalEvent:t.originalEvent})},releaseHandler:function(t){t.insideElementPressed&&t.insideElementReleased?(n(o,e.ButtonState.HOVER),o.raiseEvent("release",{originalEvent:t.originalEvent})):t.insideElementPressed?n(o,e.ButtonState.GROUP):r(o,e.ButtonState.HOVER)},clickHandler:function(e){e.quick&&o.raiseEvent("click",{originalEvent:e.originalEvent})},keyHandler:function(e){13===e.keyCode?(o.raiseEvent("click",{originalEvent:e.originalEvent}),o.raiseEvent("release",{originalEvent:e.originalEvent}),e.preventDefault=!0):e.preventDefault=!1}}),n(this,e.ButtonState.REST)},e.extend(e.Button.prototype,e.EventSource.prototype,{notifyGroupEnter:function(){r(this,e.ButtonState.GROUP)},notifyGroupExit:function(){n(this,e.ButtonState.REST)},disable:function(){this.notifyGroupExit(),this.element.disabled=!0,this.tracker.setTracking(!1),e.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1,this.tracker.setTracking(!0),e.setElementOpacity(this.element,1,!0),this.notifyGroupEnter()},destroy:function(){this.imgRest&&(this.element.removeChild(this.imgRest),this.imgRest=null),this.imgGroup&&(this.element.removeChild(this.imgGroup),this.imgGroup=null),this.imgHover&&(this.element.removeChild(this.imgHover),this.imgHover=null),this.imgDown&&(this.element.removeChild(this.imgDown),this.imgDown=null),this.removeAllHandlers(),this.tracker.destroy(),this.element=null}})}(s),function(e){e.ButtonGroup=function(t){e.extend(!0,this,{buttons:[],clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},t);var r,n=this.buttons.concat([]),o=this;if(this.element=t.element||e.makeNeutralElement("div"),!t.group)for(this.element.style.display="inline-block",r=0;r<n.length;r++)this.element.appendChild(n[r].element);e.setElementTouchActionNone(this.element),this.tracker=new e.MouseTracker({userData:"ButtonGroup.tracker",element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(e){var t;for(t=0;t<o.buttons.length;t++)o.buttons[t].notifyGroupEnter()},leaveHandler:function(e){var t;if(!e.insideElementPressed)for(t=0;t<o.buttons.length;t++)o.buttons[t].notifyGroupExit()}})},e.ButtonGroup.prototype={addButton:function(e){this.buttons.push(e),this.element.appendChild(e.element)},emulateEnter:function(){this.tracker.enterHandler({eventSource:this.tracker})},emulateLeave:function(){this.tracker.leaveHandler({eventSource:this.tracker})},destroy:function(){for(;this.buttons.length;){var e=this.buttons.pop();this.element.removeChild(e.element),e.destroy()}this.tracker.destroy(),this.element=null}}}(s),function(e){e.Rect=function(t,r,n,o,i){var a,s;this.x="number"==typeof t?t:0,this.y="number"==typeof r?r:0,this.width="number"==typeof n?n:0,this.height="number"==typeof o?o:0,this.degrees="number"==typeof i?i:0,this.degrees=e.positiveModulo(this.degrees,360),this.degrees>=270?(a=this.getTopRight(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=270):this.degrees>=180?(a=this.getBottomRight(),this.x=a.x,this.y=a.y,this.degrees-=180):this.degrees>=90&&(a=this.getBottomLeft(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=90)},e.Rect.fromSummits=function(t,r,n){var o=t.distanceTo(r),i=t.distanceTo(n),a=r.minus(t),s=Math.atan(a.y/a.x);return a.x<0?s+=Math.PI:a.y<0&&(s+=2*Math.PI),new e.Rect(t.x,t.y,o,i,s/Math.PI*180)},e.Rect.prototype={clone:function(){return new e.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new e.Point(this.x,this.y)},getBottomRight:function(){return new e.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new e.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new e.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new e.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new e.Point(this.width,this.height)},equals:function(t){return t instanceof e.Rect&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.degrees===t.degrees},times:function(t){return new e.Rect(this.x*t,this.y*t,this.width*t,this.height*t,this.degrees)},translate:function(t){return new e.Rect(this.x+t.x,this.y+t.y,this.width,this.height,this.degrees)},union:function(t){var r=this.getBoundingBox(),n=t.getBoundingBox(),o=Math.min(r.x,n.x),i=Math.min(r.y,n.y),a=Math.max(r.x+r.width,n.x+n.width),s=Math.max(r.y+r.height,n.y+n.height);return new e.Rect(o,i,a-o,s-i)},intersection:function(t){var r=1e-10,n=[],o=this.getTopLeft();t.containsPoint(o,r)&&n.push(o);var i=this.getTopRight();t.containsPoint(i,r)&&n.push(i);var a=this.getBottomLeft();t.containsPoint(a,r)&&n.push(a);var s=this.getBottomRight();t.containsPoint(s,r)&&n.push(s);var l=t.getTopLeft();this.containsPoint(l,r)&&n.push(l);var u=t.getTopRight();this.containsPoint(u,r)&&n.push(u);var c=t.getBottomLeft();this.containsPoint(c,r)&&n.push(c);var f=t.getBottomRight();this.containsPoint(f,r)&&n.push(f);for(var d=this._getSegments(),p=t._getSegments(),h=0;h<d.length;h++)for(var v=d[h],g=0;g<p.length;g++){var m=p[g],y=b(v[0],v[1],m[0],m[1]);y&&n.push(y)}function b(t,n,o,i){var a=n.minus(t),s=i.minus(o),l=-s.x*a.y+a.x*s.y;if(0===l)return null;var u=(a.x*(t.y-o.y)-a.y*(t.x-o.x))/l,c=(s.x*(t.y-o.y)-s.y*(t.x-o.x))/l;return-1e-10<=u&&u<=1-r&&-1e-10<=c&&c<=1-r?new e.Point(t.x+c*a.x,t.y+c*a.y):null}if(0===n.length)return null;for(var w=n[0].x,O=n[0].x,x=n[0].y,S=n[0].y,A=1;A<n.length;A++){var P=n[A];P.x<w&&(w=P.x),P.x>O&&(O=P.x),P.y<x&&(x=P.y),P.y>S&&(S=P.y)}return new e.Rect(w,x,O-w,S-x)},_getSegments:function(){var e=this.getTopLeft(),t=this.getTopRight(),r=this.getBottomLeft(),n=this.getBottomRight();return[[e,t],[t,n],[n,r],[r,e]]},rotate:function(t,r){if(0===(t=e.positiveModulo(t,360)))return this.clone();r=r||this.getCenter();var n=this.getTopLeft().rotate(t,r),o=this.getTopRight().rotate(t,r).minus(n);o=o.apply((function(e){return Math.abs(e)<1e-15?0:e}));var i=Math.atan(o.y/o.x);return o.x<0?i+=Math.PI:o.y<0&&(i+=2*Math.PI),new e.Rect(n.x,n.y,this.width,this.height,i/Math.PI*180)},getBoundingBox:function(){if(0===this.degrees)return this.clone();var t=this.getTopLeft(),r=this.getTopRight(),n=this.getBottomLeft(),o=this.getBottomRight(),i=Math.min(t.x,r.x,n.x,o.x),a=Math.max(t.x,r.x,n.x,o.x),s=Math.min(t.y,r.y,n.y,o.y),l=Math.max(t.y,r.y,n.y,o.y);return new e.Rect(i,s,a-i,l-s)},getIntegerBoundingBox:function(){var t=this.getBoundingBox(),r=Math.floor(t.x),n=Math.floor(t.y),o=Math.ceil(t.width+t.x-r),i=Math.ceil(t.height+t.y-n);return new e.Rect(r,n,o,i)},containsPoint:function(e,t){t=t||0;var r=this.getTopLeft(),n=this.getTopRight(),o=this.getBottomLeft(),i=n.minus(r),a=o.minus(r);return(e.x-r.x)*i.x+(e.y-r.y)*i.y>=-t&&(e.x-n.x)*i.x+(e.y-n.y)*i.y<=t&&(e.x-r.x)*a.x+(e.y-r.y)*a.y>=-t&&(e.x-o.x)*a.x+(e.y-o.y)*a.y<=t},toString:function(){return"["+Math.round(100*this.x)/100+", "+Math.round(100*this.y)/100+", "+Math.round(100*this.width)/100+"x"+Math.round(100*this.height)/100+", "+Math.round(100*this.degrees)/100+"deg]"}}}(s),function(e){var t={};function r(e){var t;e.quick&&(t="horizontal"===this.scroll?Math.floor(e.position.x/(this.panelWidth+4)):Math.floor(e.position.y/this.panelHeight),this.viewer.goToPage(t));this.element.focus()}function n(t){if(this.dragging=!0,this.element){var r=Number(this.element.style.marginLeft.replace("px","")),n=Number(this.element.style.marginTop.replace("px","")),o=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);"horizontal"===this.scroll?-t.delta.x>0?r>-(o-s.x)&&(this.element.style.marginLeft=r+2*t.delta.x+"px",i(this,s.x,r+2*t.delta.x)):-t.delta.x<0&&r<0&&(this.element.style.marginLeft=r+2*t.delta.x+"px",i(this,s.x,r+2*t.delta.x)):-t.delta.y>0?n>-(a-s.y)&&(this.element.style.marginTop=n+2*t.delta.y+"px",i(this,s.y,n+2*t.delta.y)):-t.delta.y<0&&n<0&&(this.element.style.marginTop=n+2*t.delta.y+"px",i(this,s.y,n+2*t.delta.y))}}function o(t){if(this.element){var r=Number(this.element.style.marginLeft.replace("px","")),n=Number(this.element.style.marginTop.replace("px","")),o=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);"horizontal"===this.scroll?t.scroll>0?r>-(o-s.x)&&(this.element.style.marginLeft=r-60*t.scroll+"px",i(this,s.x,r-60*t.scroll)):t.scroll<0&&r<0&&(this.element.style.marginLeft=r-60*t.scroll+"px",i(this,s.x,r-60*t.scroll)):t.scroll<0?n>s.y-a&&(this.element.style.marginTop=n+60*t.scroll+"px",i(this,s.y,n+60*t.scroll)):t.scroll>0&&n<0&&(this.element.style.marginTop=n+60*t.scroll+"px",i(this,s.y,n+60*t.scroll)),t.preventDefault=!0}}function i(t,r,n){var o,i,a,s,l,u;for(o="horizontal"===t.scroll?t.panelWidth:t.panelHeight,i=Math.ceil(r/o)+5,l=i=(i=(a=Math.ceil((Math.abs(n)+r)/o)+1)-i)<0?0:i;l<a&&l<t.panels.length;l++)if(!(u=t.panels[l]).activePanel){var c,f=t.viewer.tileSources[l];c=f.referenceStripThumbnailUrl?{type:"image",url:f.referenceStripThumbnailUrl}:f,s=new e.Viewer({id:u.id,tileSources:[c],element:u,navigatorSizeRatio:t.sizeRatio,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,loadTilesWithAjax:t.viewer.loadTilesWithAjax,ajaxHeaders:t.viewer.ajaxHeaders,useCanvas:t.useCanvas}),e.setElementPointerEventsNone(s.canvas),e.setElementPointerEventsNone(s.container),s.innerTracker.setTracking(!1),s.outerTracker.setTracking(!1),t.miniViewers[u.id]=s,u.activePanel=!0}}function a(e){var t=e.eventSource.element;"horizontal"===this.scroll?t.style.marginBottom="0px":t.style.marginLeft="0px"}function s(t){var r=t.eventSource.element;"horizontal"===this.scroll?r.style.marginBottom="-"+e.getElementSize(r).y/2+"px":r.style.marginLeft="-"+e.getElementSize(r).x/2+"px"}function l(e){if(e.ctrl||e.alt||e.meta)e.preventDefault=!1;else switch(e.keyCode){case 38:case 39:o.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 40:case 37:o.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1}}function u(e){if(e.ctrl||e.alt||e.meta)e.preventDefault=!1;else switch(e.keyCode){case 61:case 48:case 119:case 87:case 100:o.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 45:case 115:case 83:case 97:o.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1}}e.ReferenceStrip=function(c){var f,d,p,h=c.viewer,v=e.getElementSize(h.element);for(c.id||(c.id="referencestrip-"+e.now(),this.element=e.makeNeutralElement("div"),this.element.id=c.id,this.element.className="referencestrip"),c=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.referenceStripSizeRatio,position:e.DEFAULT_SETTINGS.referenceStripPosition,scroll:e.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold},c,{element:this.element}),e.extend(this,c),t[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,this.element.tabIndex=0,(d=this.element.style).marginTop="0px",d.marginRight="0px",d.marginBottom="0px",d.marginLeft="0px",d.left="0px",d.bottom="0px",d.border="0px",d.background="#000",d.position="relative",e.setElementTouchActionNone(this.element),e.setElementOpacity(this.element,.8),this.viewer=h,this.tracker=new e.MouseTracker({userData:"ReferenceStrip.tracker",element:this.element,clickHandler:e.delegate(this,r),dragHandler:e.delegate(this,n),scrollHandler:e.delegate(this,o),enterHandler:e.delegate(this,a),leaveHandler:e.delegate(this,s),keyDownHandler:e.delegate(this,l),keyHandler:e.delegate(this,u),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),c.width&&c.height?(this.element.style.width=c.width+"px",this.element.style.height=c.height+"px",h.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):"horizontal"===c.scroll?(this.element.style.width=v.x*c.sizeRatio*h.tileSources.length+12*h.tileSources.length+"px",this.element.style.height=v.y*c.sizeRatio+"px",h.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=v.y*c.sizeRatio*h.tileSources.length+12*h.tileSources.length+"px",this.element.style.width=v.x*c.sizeRatio+"px",h.addControl(this.element,{anchor:e.ControlAnchor.TOP_LEFT})),this.panelWidth=v.x*this.sizeRatio+8,this.panelHeight=v.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},p=0;p<h.tileSources.length;p++)(f=e.makeNeutralElement("div")).id=this.element.id+"-"+p,f.style.width=this.panelWidth+"px",f.style.height=this.panelHeight+"px",f.style.display="inline",f.style.float="left",f.style.cssFloat="left",f.style.styleFloat="left",f.style.padding="2px",e.setElementTouchActionNone(f),e.setElementPointerEventsNone(f),this.element.appendChild(f),f.activePanel=!1,this.panels.push(f);i(this,"vertical"===this.scroll?v.y:v.x,0),this.setFocus(0)},e.ReferenceStrip.prototype={setFocus:function(t){var r,n=this.element.querySelector("#"+this.element.id+"-"+t),o=e.getElementSize(this.viewer.canvas),s=Number(this.element.style.width.replace("px","")),l=Number(this.element.style.height.replace("px","")),u=-Number(this.element.style.marginLeft.replace("px","")),c=-Number(this.element.style.marginTop.replace("px",""));this.currentSelected!==n&&(this.currentSelected&&(this.currentSelected.style.background="#000"),this.currentSelected=n,this.currentSelected.style.background="#999","horizontal"===this.scroll?(r=Number(t)*(this.panelWidth+3))>u+o.x-this.panelWidth?(r=Math.min(r,s-o.x),this.element.style.marginLeft=-r+"px",i(this,o.x,-r)):r<u&&(r=Math.max(0,r-o.x/2),this.element.style.marginLeft=-r+"px",i(this,o.x,-r)):(r=Number(t)*(this.panelHeight+3))>c+o.y-this.panelHeight?(r=Math.min(r,l-o.y),this.element.style.marginTop=-r+"px",i(this,o.y,-r)):r<c&&(r=Math.max(0,r-o.y/2),this.element.style.marginTop=-r+"px",i(this,o.y,-r)),this.currentPage=t,a.call(this,{eventSource:this.tracker}))},update:function(){return!!t[this.id].animating},destroy:function(){if(this.miniViewers)for(var e in this.miniViewers)this.miniViewers[e].destroy();this.tracker.destroy(),this.element&&this.viewer.removeControl(this.element)}}}(s),function(e){e.DisplayRect=function(t,r,n,o,i,a){e.Rect.apply(this,[t,r,n,o]),this.minLevel=i,this.maxLevel=a},e.extend(e.DisplayRect.prototype,e.Rect.prototype)}(s),function(e){e.Spring=function(t){var r=arguments;"object"!=typeof t&&(t={initial:r.length&&"number"==typeof r[0]?r[0]:void 0,springStiffness:r.length>1?r[1].springStiffness:5,animationTime:r.length>1?r[1].animationTime:1.5}),e.console.assert("number"==typeof t.springStiffness&&0!==t.springStiffness,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number"),e.console.assert("number"==typeof t.animationTime&&t.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0"),t.exponential&&(this._exponential=!0,delete t.exponential),e.extend(!0,this,t),this.current={value:"number"==typeof this.initial?this.initial:this._exponential?0:1,time:e.now()},e.console.assert(!this._exponential||0!==this.current.value,"[OpenSeadragon.Spring] value must be non-zero for exponential springs"),this.start={value:this.current.value,time:this.current.time},this.target={value:this.current.value,time:this.current.time},this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},e.Spring.prototype={resetTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs"),this.start.value=this.target.value=this.current.value=t,this.start.time=this.target.time=this.current.time=e.now(),this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},springTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.springTo] target must be non-zero for exponential springs"),this.start.value=this.current.value,this.start.time=this.current.time,this.target.value=t,this.target.time=this.start.time+1e3*this.animationTime,this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},shiftBy:function(t){this.start.value+=t,this.target.value+=t,this._exponential&&(e.console.assert(0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.shiftBy] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},setExponential:function(t){this._exponential=t,this._exponential&&(e.console.assert(0!==this.current.value&&0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.setExponential] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},update:function(){var t,r;this.current.time=e.now(),this._exponential?(t=this.start._logValue,r=this.target._logValue):(t=this.start.value,r=this.target.value);var n,o,i=this.current.time>=this.target.time?r:t+(r-t)*(n=this.springStiffness,o=(this.current.time-this.start.time)/(this.target.time-this.start.time),(1-Math.exp(n*-o))/(1-Math.exp(-n))),a=this.current.value;return this._exponential?this.current.value=Math.exp(i):this.current.value=i,a!==this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}}}(s),function(e){e.ImageJob=function(t){e.extend(!0,this,{timeout:e.DEFAULT_SETTINGS.timeout,jobId:null,tries:0},t),this.data=null,this.userData={},this.errorMsg=null},e.ImageJob.prototype={start:function(){this.tries++;var e=this,t=this.abort;this.jobId=window.setTimeout((function(){e.finish(null,null,"Image load exceeded timeout ("+e.timeout+" ms)")}),this.timeout),this.abort=function(){e.source.downloadTileAbort(e),"function"==typeof t&&t()},this.source.downloadTileStart(this)},finish:function(e,t,r){this.data=e,this.request=t,this.errorMsg=r,this.jobId&&window.clearTimeout(this.jobId),this.callback(this)}},e.ImageLoader=function(t){e.extend(!0,this,{jobLimit:e.DEFAULT_SETTINGS.imageLoaderLimit,timeout:e.DEFAULT_SETTINGS.timeout,jobQueue:[],failedTiles:[],jobsInProgress:0},t)},e.ImageLoader.prototype={addJob:function(t){if(!t.source){e.console.error("ImageLoader.prototype.addJob() requires [options.source]. TileSource since new API defines how images are fetched. Creating a dummy TileSource.");var r=e.TileSource.prototype;t.source={downloadTileStart:r.downloadTileStart,downloadTileAbort:r.downloadTileAbort}}var n=this,o={src:t.src,tile:t.tile||{},source:t.source,loadWithAjax:t.loadWithAjax,ajaxHeaders:t.loadWithAjax?t.ajaxHeaders:null,crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,postData:t.postData,callback:function(e){!function(e,t,r){""!==t.errorMsg&&(null===t.data||void 0===t.data)&&t.tries<1+e.tileRetryMax&&e.failedTiles.push(t);var n;e.jobsInProgress--,(!e.jobLimit||e.jobsInProgress<e.jobLimit)&&e.jobQueue.length>0&&((n=e.jobQueue.shift()).start(),e.jobsInProgress++);e.tileRetryMax>0&&0===e.jobQueue.length&&(!e.jobLimit||e.jobsInProgress<e.jobLimit)&&e.failedTiles.length>0&&(n=e.failedTiles.shift(),setTimeout((function(){n.start()}),e.tileRetryDelay),e.jobsInProgress++);r(t.data,t.errorMsg,t.request)}(n,e,t.callback)},abort:t.abort,timeout:this.timeout},i=new e.ImageJob(o);!this.jobLimit||this.jobsInProgress<this.jobLimit?(i.start(),this.jobsInProgress++):this.jobQueue.push(i)},clear:function(){for(var e=0;e<this.jobQueue.length;e++){var t=this.jobQueue[e];"function"==typeof t.abort&&t.abort()}this.jobQueue=[]}}}(s),function(e){e.Tile=function(t,r,n,o,i,a,s,l,u,c,f,d){this.level=t,this.x=r,this.y=n,this.bounds=o,this.sourceBounds=c,this.exists=i,this._url=a,this.postData=f,this.context2D=s,this.loadWithAjax=l,this.ajaxHeaders=u,void 0===d&&(e.console.warn("Tile constructor needs 'cacheKey' variable: creation tile cache in Tile class is deprecated. TileSource.prototype.getTileHashKey will be used."),d=e.TileSource.prototype.getTileHashKey(t,r,n,a,u,f)),this.cacheKey=d,this.loaded=!1,this.loading=!1,this.element=null,this.imgElement=null,this.style=null,this.position=null,this.size=null,this.flipped=!1,this.blendStart=null,this.opacity=null,this.squaredDistance=null,this.visibility=null,this.hasTransparency=!1,this.beingDrawn=!1,this.lastTouchTime=0,this.isRightMost=!1,this.isBottomMost=!1},e.Tile.prototype={toString:function(){return this.level+"/"+this.x+"_"+this.y},_hasTransparencyChannel:function(){return console.warn("Tile.prototype._hasTransparencyChannel() has been deprecated and will be removed in the future. Use TileSource.prototype.hasTransparency() instead."),!!this.context2D||this.getUrl().match(".png")},drawHTML:function(t){if(this.cacheImageRecord)if(this.loaded){if(!this.element){var r=this.getImage();if(!r)return;this.element=e.makeNeutralElement("div"),this.imgElement=r.cloneNode(),this.imgElement.style.msInterpolationMode="nearest-neighbor",this.imgElement.style.width="100%",this.imgElement.style.height="100%",this.style=this.element.style,this.style.position="absolute"}this.element.parentNode!==t&&t.appendChild(this.element),this.imgElement.parentNode!==this.element&&this.element.appendChild(this.imgElement),this.style.top=this.position.y+"px",this.style.left=this.position.x+"px",this.style.height=this.size.y+"px",this.style.width=this.size.x+"px",this.flipped&&(this.style.transform="scaleX(-1)"),e.setElementOpacity(this.element,this.opacity)}else e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString());else e.console.warn("[Tile.drawHTML] attempting to draw tile %s when it's not cached",this.toString())},get image(){return e.console.error("[Tile.image] property has been deprecated. Use [Tile.prototype.getImage] instead."),this.getImage()},get url(){return e.console.error("[Tile.url] property has been deprecated. Use [Tile.prototype.getUrl] instead."),this.getUrl()},getImage:function(){return this.cacheImageRecord.getImage()},getUrl:function(){return"function"==typeof this._url?this._url():this._url},getCanvasContext:function(){return this.context2D||this.cacheImageRecord.getRenderedContext()},drawCanvas:function(t,r,n,o,i,a){var s,l,u,c=this.position.times(e.pixelDensityRatio),f=this.size.times(e.pixelDensityRatio);this.context2D||this.cacheImageRecord?(s=this.getCanvasContext(),this.loaded&&s?(t.save(),t.globalAlpha=this.opacity,"number"==typeof n&&1!==n&&(c=c.times(n),f=f.times(n)),o instanceof e.Point&&(c=c.plus(o)),1===t.globalAlpha&&this.hasTransparency&&(i&&(c.x=Math.round(c.x),c.y=Math.round(c.y),f.x=Math.round(f.x),f.y=Math.round(f.y)),t.clearRect(c.x,c.y,f.x,f.y)),r({context:t,tile:this,rendered:s}),this.sourceBounds?(l=Math.min(this.sourceBounds.width,s.canvas.width),u=Math.min(this.sourceBounds.height,s.canvas.height)):(l=s.canvas.width,u=s.canvas.height),t.translate(c.x+f.x/2,0),this.flipped&&t.scale(-1,1),t.drawImage(s.canvas,0,0,l,u,-f.x/2,c.y,f.x,f.y),t.restore()):e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString())):e.console.warn("[Tile.drawCanvas] attempting to draw tile %s when it's not cached",this.toString())},getScaleForEdgeSmoothing:function(){var t;if(this.cacheImageRecord)t=this.cacheImageRecord.getRenderedContext();else{if(!this.context2D)return e.console.warn("[Tile.drawCanvas] attempting to get tile scale %s when tile's not cached",this.toString()),1;t=this.context2D}return t.canvas.width/(this.size.x*e.pixelDensityRatio)},getTranslationForEdgeSmoothing:function(t,r,n){var o=Math.max(1,Math.ceil((n.x-r.x)/2)),i=Math.max(1,Math.ceil((n.y-r.y)/2));return new e.Point(o,i).minus(this.position.times(e.pixelDensityRatio).times(t||1).apply((function(e){return e%1})))},unload:function(){this.imgElement&&this.imgElement.parentNode&&this.imgElement.parentNode.removeChild(this.imgElement),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.imgElement=null,this.loaded=!1,this.loading=!1}}}(s),function(e){e.OverlayPlacement=e.Placement,e.OverlayRotationMode=e.freezeObject({NO_ROTATION:1,EXACT:2,BOUNDING_BOX:3}),e.Overlay=function(t,r,n){var o;o=e.isPlainObject(t)?t:{element:t,location:r,placement:n},this.element=o.element,this.style=o.element.style,this._init(o)},e.Overlay.prototype={_init:function(t){this.location=t.location,this.placement=void 0===t.placement?e.Placement.TOP_LEFT:t.placement,this.onDraw=t.onDraw,this.checkResize=void 0===t.checkResize||t.checkResize,this.width=void 0===t.width?null:t.width,this.height=void 0===t.height?null:t.height,this.rotationMode=t.rotationMode||e.OverlayRotationMode.EXACT,this.location instanceof e.Rect&&(this.width=this.location.width,this.height=this.location.height,this.location=this.location.getTopLeft(),this.placement=e.Placement.TOP_LEFT),this.scales=null!==this.width&&null!==this.height,this.bounds=new e.Rect(this.location.x,this.location.y,this.width,this.height),this.position=this.location},adjust:function(t,r){var n=e.Placement.properties[this.placement];n&&(n.isHorizontallyCentered?t.x-=r.x/2:n.isRight&&(t.x-=r.x),n.isVerticallyCentered?t.y-=r.y/2:n.isBottom&&(t.y-=r.y))},destroy:function(){var t=this.element,r=this.style;t.parentNode&&(t.parentNode.removeChild(t),t.prevElementParent&&(r.display="none",document.body.appendChild(t))),this.onDraw=null,r.top="",r.left="",r.position="",null!==this.width&&(r.width=""),null!==this.height&&(r.height="");var n=e.getCssPropertyWithVendorPrefix("transformOrigin"),o=e.getCssPropertyWithVendorPrefix("transform");n&&o&&(r[n]="",r[o]="")},drawHTML:function(t,r){var n=this.element;n.parentNode!==t&&(n.prevElementParent=n.parentNode,n.prevNextSibling=n.nextSibling,t.appendChild(n),this.style.position="absolute",this.size=e.getElementSize(n));var o=this._getOverlayPositionAndSize(r),i=o.position,a=this.size=o.size,s=o.rotate;if(this.onDraw)this.onDraw(i,a,this.element);else{var l=this.style;l.left=i.x+"px",l.top=i.y+"px",null!==this.width&&(l.width=a.x+"px"),null!==this.height&&(l.height=a.y+"px");var u=e.getCssPropertyWithVendorPrefix("transformOrigin"),c=e.getCssPropertyWithVendorPrefix("transform");u&&c&&(s?(l[u]=this._getTransformOrigin(),l[c]="rotate("+s+"deg)"):(l[u]="",l[c]="")),l.display="block"}},_getOverlayPositionAndSize:function(t){var r=t.pixelFromPoint(this.location,!0),n=this._getSizeInPixels(t);this.adjust(r,n);var o=0;if(t.getRotation(!0)&&this.rotationMode!==e.OverlayRotationMode.NO_ROTATION)if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX&&null!==this.width&&null!==this.height){var i=new e.Rect(r.x,r.y,n.x,n.y),a=this._getBoundingBox(i,t.getRotation(!0));r=a.getTopLeft(),n=a.getSize()}else o=t.getRotation(!0);return{position:r,size:n,rotate:o}},_getSizeInPixels:function(t){var r=this.size.x,n=this.size.y;if(null!==this.width||null!==this.height){var o=t.deltaPixelsFromPointsNoRotate(new e.Point(this.width||0,this.height||0),!0);null!==this.width&&(r=o.x),null!==this.height&&(n=o.y)}if(this.checkResize&&(null===this.width||null===this.height)){var i=this.size=e.getElementSize(this.element);null===this.width&&(r=i.x),null===this.height&&(n=i.y)}return new e.Point(r,n)},_getBoundingBox:function(e,t){var r=this._getPlacementPoint(e);return e.rotate(t,r).getBoundingBox()},_getPlacementPoint:function(t){var r=new e.Point(t.x,t.y),n=e.Placement.properties[this.placement];return n&&(n.isHorizontallyCentered?r.x+=t.width/2:n.isRight&&(r.x+=t.width),n.isVerticallyCentered?r.y+=t.height/2:n.isBottom&&(r.y+=t.height)),r},_getTransformOrigin:function(){var t="",r=e.Placement.properties[this.placement];return r?(r.isLeft?t="left":r.isRight&&(t="right"),r.isTop?t+=" top":r.isBottom&&(t+=" bottom"),t):t},update:function(t,r){var n=e.isPlainObject(t)?t:{location:t,placement:r};this._init({location:n.location||this.location,placement:void 0!==n.placement?n.placement:this.placement,onDraw:n.onDraw||this.onDraw,checkResize:n.checkResize||this.checkResize,width:void 0!==n.width?n.width:this.width,height:void 0!==n.height?n.height:this.height,rotationMode:n.rotationMode||this.rotationMode})},getBounds:function(t){e.console.assert(t,"A viewport must now be passed to Overlay.getBounds.");var r=this.width,n=this.height;if(null===r||null===n){var o=t.deltaPointsFromPixelsNoRotate(this.size,!0);null===r&&(r=o.x),null===n&&(n=o.y)}var i=this.location.clone();return this.adjust(i,new e.Point(r,n)),this._adjustBoundsForRotation(t,new e.Rect(i.x,i.y,r,n))},_adjustBoundsForRotation:function(t,r){if(!t||0===t.getRotation(!0)||this.rotationMode===e.OverlayRotationMode.EXACT)return r;if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX){if(null===this.width||null===this.height)return r;var n=this._getOverlayPositionAndSize(t);return t.viewerElementToViewportRectangle(new e.Rect(n.position.x,n.position.y,n.size.x,n.size.y))}return r.rotate(-t.getRotation(!0),this._getPlacementPoint(r))}}}(s),function(e){e.Drawer=function(t){e.console.assert(t.viewer,"[Drawer] options.viewer is required");var r=arguments;if(e.isPlainObject(t)||(t={source:r[0],viewport:r[1],element:r[2]}),e.console.assert(t.viewport,"[Drawer] options.viewport is required"),e.console.assert(t.element,"[Drawer] options.element is required"),t.source&&e.console.error("[Drawer] options.source is no longer accepted; use TiledImage instead"),this.viewer=t.viewer,this.viewport=t.viewport,this.debugGridColor="string"==typeof t.debugGridColor?[t.debugGridColor]:t.debugGridColor||e.DEFAULT_SETTINGS.debugGridColor,t.opacity&&e.console.error("[Drawer] options.opacity is no longer accepted; set the opacity on the TiledImage instead"),this.useCanvas=e.supportsCanvas&&(!this.viewer||this.viewer.useCanvas),this.container=e.getElement(t.element),this.canvas=e.makeNeutralElement(this.useCanvas?"canvas":"div"),this.context=this.useCanvas?this.canvas.getContext("2d"):null,this.sketchCanvas=null,this.sketchContext=null,this.element=this.container,this.container.dir="ltr",this.useCanvas){var n=this._calculateCanvasSize();this.canvas.width=n.x,this.canvas.height=n.y}this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.position="absolute",e.setElementOpacity(this.canvas,this.opacity,!0),e.setElementPointerEventsNone(this.canvas),e.setElementTouchActionNone(this.canvas),this.container.style.textAlign="left",this.container.appendChild(this.canvas),this._imageSmoothingEnabled=!0},e.Drawer.prototype={addOverlay:function(t,r,n,o){return e.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(t,r,n,o),this},updateOverlay:function(t,r,n){return e.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(t,r,n),this},removeOverlay:function(t){return e.console.error("drawer.removeOverlay is deprecated. Use viewer.removeOverlay instead."),this.viewer.removeOverlay(t),this},clearOverlays:function(){return e.console.error("drawer.clearOverlays is deprecated. Use viewer.clearOverlays instead."),this.viewer.clearOverlays(),this},viewportCoordToDrawerCoord:function(t){var r=this.viewport.pixelFromPointNoRotate(t,!0);return new e.Point(r.x*e.pixelDensityRatio,r.y*e.pixelDensityRatio)},clipWithPolygons:function(e,t){if(this.useCanvas){var r=this._getContext(t);r.beginPath(),e.forEach((function(e){e.forEach((function(e,t){r[0===t?"moveTo":"lineTo"](e.x,e.y)}))})),r.clip()}},setOpacity:function(t){e.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var r=this.viewer.world,n=0;n<r.getItemCount();n++)r.getItemAt(n).setOpacity(t);return this},getOpacity:function(){e.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");for(var t=this.viewer.world,r=0,n=0;n<t.getItemCount();n++){var o=t.getItemAt(n).getOpacity();o>r&&(r=o)}return r},needsUpdate:function(){return e.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead."),this.viewer.world.needsDraw()},numTilesLoaded:function(){return e.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead."),this.viewer.tileCache.numTilesLoaded()},reset:function(){return e.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead."),this.viewer.world.resetItems(),this},update:function(){return e.console.error("[Drawer.update] this function is deprecated. Use Drawer.clear and World.draw instead."),this.clear(),this.viewer.world.draw(),this},canRotate:function(){return this.useCanvas},destroy:function(){this.canvas.width=1,this.canvas.height=1,this.sketchCanvas=null,this.sketchContext=null},clear:function(){if(this.canvas.innerHTML="",this.useCanvas){var e=this._calculateCanvasSize();if((this.canvas.width!==e.x||this.canvas.height!==e.y)&&(this.canvas.width=e.x,this.canvas.height=e.y,this._updateImageSmoothingEnabled(this.context),null!==this.sketchCanvas)){var t=this._calculateSketchCanvasSize();this.sketchCanvas.width=t.x,this.sketchCanvas.height=t.y,this._updateImageSmoothingEnabled(this.sketchContext)}this._clear()}},_clear:function(e,t){if(this.useCanvas){var r=this._getContext(e);if(t)r.clearRect(t.x,t.y,t.width,t.height);else{var n=r.canvas;r.clearRect(0,0,n.width,n.height)}}},viewportToDrawerRectangle:function(t){var r=this.viewport.pixelFromPointNoRotate(t.getTopLeft(),!0),n=this.viewport.deltaPixelsFromPointsNoRotate(t.getSize(),!0);return new e.Rect(r.x*e.pixelDensityRatio,r.y*e.pixelDensityRatio,n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio)},drawTile:function(t,r,n,o,i,a,s){if(e.console.assert(t,"[Drawer.drawTile] tile is required"),e.console.assert(r,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var l=this._getContext(n);o=o||1,t.drawCanvas(l,r,o,i,a,s)}else t.drawHTML(this.canvas)},_getContext:function(e){var t=this.context;if(e){if(null===this.sketchCanvas){this.sketchCanvas=document.createElement("canvas");var r=this._calculateSketchCanvasSize();if(this.sketchCanvas.width=r.x,this.sketchCanvas.height=r.y,this.sketchContext=this.sketchCanvas.getContext("2d"),0===this.viewport.getRotation()){var n=this;this.viewer.addHandler("rotate",(function e(){if(0!==n.viewport.getRotation()){n.viewer.removeHandler("rotate",e);var t=n._calculateSketchCanvasSize();n.sketchCanvas.width=t.x,n.sketchCanvas.height=t.y}}))}this._updateImageSmoothingEnabled(this.sketchContext)}t=this.sketchContext}return t},saveContext:function(e){this.useCanvas&&this._getContext(e).save()},restoreContext:function(e){this.useCanvas&&this._getContext(e).restore()},setClip:function(e,t){if(this.useCanvas){var r=this._getContext(t);r.beginPath(),r.rect(e.x,e.y,e.width,e.height),r.clip()}},drawRectangle:function(e,t,r){if(this.useCanvas){var n=this._getContext(r);n.save(),n.fillStyle=t,n.fillRect(e.x,e.y,e.width,e.height),n.restore()}},blendSketch:function(t,r,n,o){var i=t;if(e.isPlainObject(i)||(i={opacity:t,scale:r,translate:n,compositeOperation:o}),this.useCanvas&&this.sketchCanvas){t=i.opacity,o=i.compositeOperation;var a=i.bounds;if(this.context.save(),this.context.globalAlpha=t,o&&(this.context.globalCompositeOperation=o),a)a.x<0&&(a.width+=a.x,a.x=0),a.x+a.width>this.canvas.width&&(a.width=this.canvas.width-a.x),a.y<0&&(a.height+=a.y,a.y=0),a.y+a.height>this.canvas.height&&(a.height=this.canvas.height-a.y),this.context.drawImage(this.sketchCanvas,a.x,a.y,a.width,a.height,a.x,a.y,a.width,a.height);else{r=i.scale||1;var s=(n=i.translate)instanceof e.Point?n:new e.Point(0,0),l=0,u=0;if(n){var c=this.sketchCanvas.width-this.canvas.width,f=this.sketchCanvas.height-this.canvas.height;l=Math.round(c/2),u=Math.round(f/2)}this.context.drawImage(this.sketchCanvas,s.x-l*r,s.y-u*r,(this.canvas.width+2*l)*r,(this.canvas.height+2*u)*r,-l,-u,this.canvas.width+2*l,this.canvas.height+2*u)}this.context.restore()}},drawDebugInfo:function(t,r,n,o){if(this.useCanvas){var i=this.viewer.world.getIndexOfItem(o)%this.debugGridColor.length,a=this.context;a.save(),a.lineWidth=2*e.pixelDensityRatio,a.font="small-caps bold "+13*e.pixelDensityRatio+"px arial",a.strokeStyle=this.debugGridColor[i],a.fillStyle=this.debugGridColor[i],this.viewport.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:this.viewport.getRotation(!0)}),o.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:o.getRotation(!0),point:o.viewport.pixelFromPointNoRotate(o._getRotationPoint(!0),!0)}),o.viewport.getRotation(!0)%360==0&&o.getRotation(!0)%360==0&&o._drawer.viewer.viewport.getFlip()&&o._drawer._flip(),a.strokeRect(t.position.x*e.pixelDensityRatio,t.position.y*e.pixelDensityRatio,t.size.x*e.pixelDensityRatio,t.size.y*e.pixelDensityRatio);var s=(t.position.x+t.size.x/2)*e.pixelDensityRatio,l=(t.position.y+t.size.y/2)*e.pixelDensityRatio;a.translate(s,l),a.rotate(Math.PI/180*-this.viewport.getRotation(!0)),a.translate(-s,-l),0===t.x&&0===t.y&&(a.fillText("Zoom: "+this.viewport.getZoom(),t.position.x*e.pixelDensityRatio,(t.position.y-30)*e.pixelDensityRatio),a.fillText("Pan: "+this.viewport.getBounds().toString(),t.position.x*e.pixelDensityRatio,(t.position.y-20)*e.pixelDensityRatio)),a.fillText("Level: "+t.level,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+20)*e.pixelDensityRatio),a.fillText("Column: "+t.x,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+30)*e.pixelDensityRatio),a.fillText("Row: "+t.y,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+40)*e.pixelDensityRatio),a.fillText("Order: "+n+" of "+r,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+50)*e.pixelDensityRatio),a.fillText("Size: "+t.size.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+60)*e.pixelDensityRatio),a.fillText("Position: "+t.position.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+70)*e.pixelDensityRatio),this.viewport.getRotation(!0)%360!=0&&this._restoreRotationChanges(),o.getRotation(!0)%360!=0&&this._restoreRotationChanges(),o.viewport.getRotation(!0)%360==0&&o.getRotation(!0)%360==0&&o._drawer.viewer.viewport.getFlip()&&o._drawer._flip(),a.restore()}},debugRect:function(t){if(this.useCanvas){var r=this.context;r.save(),r.lineWidth=2*e.pixelDensityRatio,r.strokeStyle=this.debugGridColor[0],r.fillStyle=this.debugGridColor[0],r.strokeRect(t.x*e.pixelDensityRatio,t.y*e.pixelDensityRatio,t.width*e.pixelDensityRatio,t.height*e.pixelDensityRatio),r.restore()}},setImageSmoothingEnabled:function(e){this.useCanvas&&(this._imageSmoothingEnabled=e,this._updateImageSmoothingEnabled(this.context),this.viewer.forceRedraw())},_updateImageSmoothingEnabled:function(e){e.msImageSmoothingEnabled=this._imageSmoothingEnabled,e.imageSmoothingEnabled=this._imageSmoothingEnabled},getCanvasSize:function(t){var r=this._getContext(t).canvas;return new e.Point(r.width,r.height)},getCanvasCenter:function(){return new e.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(t){var r=t.point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),n=this._getContext(t.useSketch);n.save(),n.translate(r.x,r.y),this.viewer.viewport.flipped?(n.rotate(Math.PI/180*-t.degrees),n.scale(-1,1)):n.rotate(Math.PI/180*t.degrees),n.translate(-r.x,-r.y)},_flip:function(t){var r=(t=t||{}).point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),n=this._getContext(t.useSketch);n.translate(r.x,0),n.scale(-1,1),n.translate(-r.x,0)},_restoreRotationChanges:function(e){this._getContext(e).restore()},_calculateCanvasSize:function(){var t=e.pixelDensityRatio,r=this.viewport.getContainerSize();return{x:Math.round(r.x*t),y:Math.round(r.y*t)}},_calculateSketchCanvasSize:function(){var e=this._calculateCanvasSize();if(0===this.viewport.getRotation())return e;var t=Math.ceil(Math.sqrt(e.x*e.x+e.y*e.y));return{x:t,y:t}}}}(s),function(e){e.Viewport=function(t){var r=arguments;r.length&&r[0]instanceof e.Point&&(t={containerSize:r[0],contentSize:r[1],config:r[2]}),t.config&&(e.extend(!0,t,t.config),delete t.config),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t.margins||{}),delete t.margins,t.initialDegrees=t.degrees,delete t.degrees,e.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,rotationPivot:null,viewer:null,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:e.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:e.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:e.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:e.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:e.DEFAULT_SETTINGS.maxZoomLevel,initialDegrees:e.DEFAULT_SETTINGS.degrees,flipped:e.DEFAULT_SETTINGS.flipped,homeFillsViewer:e.DEFAULT_SETTINGS.homeFillsViewer,silenceMultiImageWarnings:e.DEFAULT_SETTINGS.silenceMultiImageWarnings},t),this._updateContainerInnerSize(),this.centerSpringX=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.centerSpringY=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.zoomSpring=new e.Spring({exponential:!0,initial:1,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.degreesSpring=new e.Spring({initial:t.initialDegrees,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._oldDegrees=this.degreesSpring.current.value,this._setContentBounds(new e.Rect(0,0,1,1),1),this.goHome(!0),this.update()},e.Viewport.prototype={get degrees(){return e.console.warn("Accessing [Viewport.degrees] is deprecated. Use viewport.getRotation instead."),this.getRotation()},set degrees(t){e.console.warn("Setting [Viewport.degrees] is deprecated. Use viewport.rotateTo, viewport.rotateBy, or viewport.setRotation instead."),this.rotateTo(t)},resetContentSize:function(t){return e.console.assert(t,"[Viewport.resetContentSize] contentSize is required"),e.console.assert(t instanceof e.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point"),e.console.assert(t.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0"),e.console.assert(t.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0"),this._setContentBounds(new e.Rect(0,0,1,t.y/t.x),t.x),this},setHomeBounds:function(t,r){e.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually."),this._setContentBounds(t,r)},_setContentBounds:function(t,r){e.console.assert(t,"[Viewport._setContentBounds] bounds is required"),e.console.assert(t instanceof e.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect"),e.console.assert(t.width>0,"[Viewport._setContentBounds] bounds.width must be greater than 0"),e.console.assert(t.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0"),this._contentBoundsNoRotate=t.clone(),this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(r),this._contentBounds=t.rotate(this.getRotation()).getBoundingBox(),this._contentSize=this._contentBounds.getSize().times(r),this._contentAspectRatio=this._contentSize.x/this._contentSize.y,this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:r,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var e=this._contentAspectRatio/this.getAspectRatio();return(this.homeFillsViewer?e>=1?e:1:e>=1?1:e)/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var t=this._contentBounds.getCenter(),r=1/this.getHomeZoom(),n=r/this.getAspectRatio();return new e.Rect(t.x-r/2,t.y-n/2,r,n)},goHome:function(e){return this.viewer&&this.viewer.raiseEvent("home",{immediately:e}),this.fitBounds(this.getHomeBounds(),e)},getMinZoom:function(){var e=this.getHomeZoom();return this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*e},getMaxZoom:function(){var e=this.maxZoomLevel;return e||(e=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x,e/=this._contentBounds.width),Math.max(e,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new e.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return e.extend({},this._margins)},setMargins:function(t){e.console.assert("object"===e.type(t),"[Viewport.setMargins] margins must be an object"),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t),this._updateContainerInnerSize(),this.viewer&&this.viewer.forceRedraw()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(-this.getRotation(e))},getBoundsNoRotate:function(t){var r=this.getCenter(t),n=1/this.getZoom(t),o=n/this.getAspectRatio();return new e.Rect(r.x-n/2,r.y-o/2,n,o)},getBoundsWithMargins:function(e){return this.getBoundsNoRotateWithMargins(e).rotate(-this.getRotation(e),this.getCenter(e))},getBoundsNoRotateWithMargins:function(e){var t=this.getBoundsNoRotate(e),r=this._containerInnerSize.x*this.getZoom(e);return t.x-=this._margins.left/r,t.y-=this._margins.top/r,t.width+=(this._margins.left+this._margins.right)/r,t.height+=(this._margins.top+this._margins.bottom)/r,t},getCenter:function(t){var r,n,o,i,a,s,l=new e.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),u=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return t?l:this.zoomPoint?(r=this.pixelFromPoint(this.zoomPoint,!0),i=(o=1/(n=this.getZoom()))/this.getAspectRatio(),a=new e.Rect(l.x-o/2,l.y-i/2,o,i),s=this._pixelFromPoint(this.zoomPoint,a).minus(r).rotate(-this.getRotation(!0)).divide(this._containerInnerSize.x*n),u.plus(s)):u},getZoom:function(e){return e?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(e){return Math.max(Math.min(e,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(e){var t=this.viewportToViewerElementRectangle(e).getBoundingBox(),r=this.viewportToViewerElementRectangle(this._contentBoundsNoRotate).getBoundingBox(),n=!1,o=!1;if(this.wrapHorizontal);else{var i,a,s,l=t.x+t.width,u=r.x+r.width;i=t.width>r.width?this.visibilityRatio*r.width:this.visibilityRatio*t.width,a=r.x-l+i,s=u-t.x-i,i>r.width?(t.x+=(a+s)/2,n=!0):s<0?(t.x+=s,n=!0):a>0&&(t.x+=a,n=!0)}if(this.wrapVertical);else{var c,f,d,p=t.y+t.height,h=r.y+r.height;c=t.height>r.height?this.visibilityRatio*r.height:this.visibilityRatio*t.height,f=r.y-p+c,d=h-t.y-c,c>r.height?(t.y+=(f+d)/2,o=!0):d<0?(t.y+=d,o=!0):f>0&&(t.y+=f,o=!0)}var v=n||o,g=v?this.viewerElementToViewportRectangle(t):e.clone();return g.xConstrained=n,g.yConstrained=o,g.constraintApplied=v,g},_raiseConstraintsEvent:function(e){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:e})},applyConstraints:function(e){var t=this.getZoom(),r=this._applyZoomConstraints(t);t!==r&&this.zoomTo(r,this.zoomPoint,e);var n=this.getConstrainedBounds(!1);return n.constraintApplied&&(this.fitBounds(n,e),this._raiseConstraintsEvent(e)),this},ensureVisible:function(e){return this.applyConstraints(e)},_fitBounds:function(t,r){var n=(r=r||{}).immediately||!1,o=r.constraints||!1,i=this.getAspectRatio(),a=t.getCenter(),s=new e.Rect(t.x,t.y,t.width,t.height,t.degrees+this.getRotation()).getBoundingBox();s.getAspectRatio()>=i?s.height=s.width/i:s.width=s.height*i,s.x=a.x-s.width/2,s.y=a.y-s.height/2;var l=1/s.width;if(n)return this.panTo(a,!0),this.zoomTo(l,null,!0),o&&this.applyConstraints(!0),this;var u=this.getCenter(!0),c=this.getZoom(!0);this.panTo(u,!0),this.zoomTo(c,null,!0);var f=this.getBounds(),d=this.getZoom();if(0===d||Math.abs(l/d-1)<1e-8)return this.zoomTo(l,null,!0),this.panTo(a,n),o&&this.applyConstraints(!1),this;if(o){this.panTo(a,!1),l=this._applyZoomConstraints(l),this.zoomTo(l,null,!1);var p=this.getConstrainedBounds();this.panTo(u,!0),this.zoomTo(c,null,!0),this.fitBounds(p)}else{var h=s.rotate(-this.getRotation()).getTopLeft().times(l).minus(f.getTopLeft().times(d)).divide(l-d);this.zoomTo(l,h,n)}return this},fitBounds:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!1})},fitBoundsWithConstraints:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!0})},fitVertically:function(t){var r=new e.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(r,t)},fitHorizontally:function(t){var r=new e.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(r,t)},getConstrainedBounds:function(e){var t;return t=this.getBounds(e),this._applyBoundaryConstraints(t)},panBy:function(t,r){var n=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(n.plus(t),r)},panTo:function(e,t){return t?(this.centerSpringX.resetTo(e.x),this.centerSpringY.resetTo(e.y)):(this.centerSpringX.springTo(e.x),this.centerSpringY.springTo(e.y)),this.viewer&&this.viewer.raiseEvent("pan",{center:e,immediately:t}),this},zoomBy:function(e,t,r){return this.zoomTo(this.zoomSpring.target.value*e,t,r)},zoomTo:function(t,r,n){var o=this;return this.zoomPoint=r instanceof e.Point&&!isNaN(r.x)&&!isNaN(r.y)?r:null,n?this._adjustCenterSpringsForZoomPoint((function(){o.zoomSpring.resetTo(t)})):this.zoomSpring.springTo(t),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:t,refPoint:r,immediately:n}),this},setRotation:function(e,t){return this.rotateTo(e,null,t)},getRotation:function(e){return e?this.degreesSpring.current.value:this.degreesSpring.target.value},setRotationWithPivot:function(e,t,r){return this.rotateTo(e,t,r)},rotateTo:function(t,r,n){if(!this.viewer||!this.viewer.drawer.canRotate())return this;if(this.degreesSpring.target.value===t&&this.degreesSpring.isAtTargetValue())return this;if(this.rotationPivot=r instanceof e.Point&&!isNaN(r.x)&&!isNaN(r.y)?r:null,n)if(this.rotationPivot){if(!(t-this._oldDegrees))return this.rotationPivot=null,this;this._rotateAboutPivot(t)}else this.degreesSpring.resetTo(t);else{var o=e.positiveModulo(this.degreesSpring.current.value,360),i=e.positiveModulo(t,360),a=i-o;a>180?i-=360:a<-180&&(i+=360);var s=o-i;this.degreesSpring.resetTo(t+s),this.degreesSpring.springTo(t)}return this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor()),this.viewer.forceRedraw(),this.viewer.raiseEvent("rotate",{degrees:t,immediately:!!n,pivot:this.rotationPivot||this.getCenter()}),this},rotateBy:function(e,t,r){return this.rotateTo(this.degreesSpring.target.value+e,t,r)},resize:function(e,t){var r,n=this.getBoundsNoRotate(),o=n;this.containerSize.x=e.x,this.containerSize.y=e.y,this._updateContainerInnerSize(),t&&(r=e.x/this.containerSize.x,o.width=n.width*r,o.height=o.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:e,maintain:t});var i=this.fitBounds(o,!0);return this.viewer&&this.viewer.raiseEvent("after-resize",{newContainerSize:e,maintain:t}),i},_updateContainerInnerSize:function(){this._containerInnerSize=new e.Point(Math.max(1,this.containerSize.x-(this._margins.left+this._margins.right)),Math.max(1,this.containerSize.y-(this._margins.top+this._margins.bottom)))},update:function(){var e=this;this._adjustCenterSpringsForZoomPoint((function(){e.zoomSpring.update()})),this.degreesSpring.isAtTargetValue()&&(this.rotationPivot=null),this.centerSpringX.update(),this.centerSpringY.update(),this.rotationPivot?this._rotateAboutPivot(!0):this.degreesSpring.update();var t=this.centerSpringX.current.value!==this._oldCenterX||this.centerSpringY.current.value!==this._oldCenterY||this.zoomSpring.current.value!==this._oldZoom||this.degreesSpring.current.value!==this._oldDegrees;return this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._oldDegrees=this.degreesSpring.current.value,t},_rotateAboutPivot:function(e){var t=!0===e,r=this.rotationPivot.minus(this.getCenter());this.centerSpringX.shiftBy(r.x),this.centerSpringY.shiftBy(r.y),t?this.degreesSpring.update():this.degreesSpring.resetTo(e);var n=this.degreesSpring.current.value-this._oldDegrees,o=r.rotate(-1*n).times(-1);this.centerSpringX.shiftBy(o.x),this.centerSpringY.shiftBy(o.y)},_adjustCenterSpringsForZoomPoint:function(e){if(this.zoomPoint){var t=this.pixelFromPoint(this.zoomPoint,!0);e();var r=this.pixelFromPoint(this.zoomPoint,!0).minus(t),n=this.deltaPointsFromPixels(r,!0);this.centerSpringX.shiftBy(n.x),this.centerSpringY.shiftBy(n.y),this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else e()},deltaPixelsFromPointsNoRotate:function(e,t){return e.times(this._containerInnerSize.x*this.getZoom(t))},deltaPixelsFromPoints:function(e,t){return this.deltaPixelsFromPointsNoRotate(e.rotate(this.getRotation(t)),t)},deltaPointsFromPixelsNoRotate:function(e,t){return e.divide(this._containerInnerSize.x*this.getZoom(t))},deltaPointsFromPixels:function(e,t){return this.deltaPointsFromPixelsNoRotate(e,t).rotate(-this.getRotation(t))},pixelFromPointNoRotate:function(e,t){return this._pixelFromPointNoRotate(e,this.getBoundsNoRotate(t))},pixelFromPoint:function(e,t){return this._pixelFromPoint(e,this.getBoundsNoRotate(t))},_pixelFromPointNoRotate:function(t,r){return t.minus(r.getTopLeft()).times(this._containerInnerSize.x/r.width).plus(new e.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(e,t){return this._pixelFromPointNoRotate(e.rotate(this.getRotation(!0),this.getCenter(!0)),t)},pointFromPixelNoRotate:function(t,r){var n=this.getBoundsNoRotate(r);return t.minus(new e.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/n.width).plus(n.getTopLeft())},pointFromPixel:function(e,t){return this.pointFromPixelNoRotate(e,t).rotate(-this.getRotation(t),this.getCenter(t))},_viewportToImageDelta:function(t,r){var n=this._contentBoundsNoRotate.width;return new e.Point(t*this._contentSizeNoRotate.x/n,r*this._contentSizeNoRotate.x/n)},viewportToImageCoordinates:function(t,r){if(t instanceof e.Point)return this.viewportToImageCoordinates(t.x,t.y);if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===n){return this.viewer.world.getItemAt(0).viewportToImageCoordinates(t,r,!0)}}return this._viewportToImageDelta(t-this._contentBoundsNoRotate.x,r-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(t,r){var n=this._contentBoundsNoRotate.width;return new e.Point(t/this._contentSizeNoRotate.x*n,r/this._contentSizeNoRotate.x*n)},imageToViewportCoordinates:function(t,r){if(t instanceof e.Point)return this.imageToViewportCoordinates(t.x,t.y);if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===n){return this.viewer.world.getItemAt(0).imageToViewportCoordinates(t,r,!0)}}var o=this._imageToViewportDelta(t,r);return o.x+=this._contentBoundsNoRotate.x,o.y+=this._contentBoundsNoRotate.y,o},imageToViewportRectangle:function(t,r,n,o){var i=t;if(i instanceof e.Rect||(i=new e.Rect(t,r,n,o)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(1===a){return this.viewer.world.getItemAt(0).imageToViewportRectangle(t,r,n,o,!0)}}var s=this.imageToViewportCoordinates(i.x,i.y),l=this._imageToViewportDelta(i.width,i.height);return new e.Rect(s.x,s.y,l.x,l.y,i.degrees)},viewportToImageRectangle:function(t,r,n,o){var i=t;if(i instanceof e.Rect||(i=new e.Rect(t,r,n,o)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(1===a){return this.viewer.world.getItemAt(0).viewportToImageRectangle(t,r,n,o,!0)}}var s=this.viewportToImageCoordinates(i.x,i.y),l=this._viewportToImageDelta(i.width,i.height);return new e.Rect(s.x,s.y,l.x,l.y,i.degrees)},viewerElementToImageCoordinates:function(e){var t=this.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.pixelFromPoint(t,!0)},windowToImageCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var r=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(r)},imageToWindowCoordinates:function(t){return e.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer."),this.imageToViewerElementCoordinates(t).plus(e.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(e){return this.pointFromPixel(e,!0)},viewportToViewerElementCoordinates:function(e){return this.pixelFromPoint(e,!0)},viewerElementToViewportRectangle:function(t){return e.Rect.fromSummits(this.pointFromPixel(t.getTopLeft(),!0),this.pointFromPixel(t.getTopRight(),!0),this.pointFromPixel(t.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(t){return e.Rect.fromSummits(this.pixelFromPoint(t.getTopLeft(),!0),this.pixelFromPoint(t.getTopRight(),!0),this.pixelFromPoint(t.getBottomLeft(),!0))},windowToViewportCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var r=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(r)},viewportToWindowCoordinates:function(t){return e.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer."),this.viewportToViewerElementCoordinates(t).plus(e.getElementPosition(this.viewer.element))},viewportToImageZoom:function(t){if(this.viewer){var r=this.viewer.world.getItemCount();if(r>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(1===r){return this.viewer.world.getItemAt(0).viewportToImageZoom(t)}}var n=this._contentSizeNoRotate.x;return t*(this._containerInnerSize.x/n*this._contentBoundsNoRotate.width)},imageToViewportZoom:function(t){if(this.viewer){var r=this.viewer.world.getItemCount();if(r>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(1===r){return this.viewer.world.getItemAt(0).imageToViewportZoom(t)}}return t*(this._contentSizeNoRotate.x/this._containerInnerSize.x/this._contentBoundsNoRotate.width)},toggleFlip:function(){return this.setFlip(!this.getFlip()),this},getFlip:function(){return this.flipped},setFlip:function(e){return this.flipped===e||(this.flipped=e,this.viewer.navigator&&this.viewer.navigator.setFlip(this.getFlip()),this.viewer.forceRedraw(),this.viewer.raiseEvent("flip",{flipped:e})),this}}}(s),function(e){e.TiledImage=function(t){var r=this;e.console.assert(t.tileCache,"[TiledImage] options.tileCache is required"),e.console.assert(t.drawer,"[TiledImage] options.drawer is required"),e.console.assert(t.viewer,"[TiledImage] options.viewer is required"),e.console.assert(t.imageLoader,"[TiledImage] options.imageLoader is required"),e.console.assert(t.source,"[TiledImage] options.source is required"),e.console.assert(!t.clip||t.clip instanceof e.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present"),e.EventSource.call(this),this._tileCache=t.tileCache,delete t.tileCache,this._drawer=t.drawer,delete t.drawer,this._imageLoader=t.imageLoader,delete t.imageLoader,t.clip instanceof e.Rect&&(this._clip=t.clip.clone()),delete t.clip;var n=t.x||0;delete t.x;var o=t.y||0;delete t.y,this.normHeight=t.source.dimensions.y/t.source.dimensions.x,this.contentAspectX=t.source.dimensions.x/t.source.dimensions.y;var i=1;t.width?(i=t.width,delete t.width,t.height&&(e.console.error("specifying both width and height to a tiledImage is not supported"),delete t.height)):t.height&&(i=t.height/this.normHeight,delete t.height);var a=t.fitBounds;delete t.fitBounds;var l=t.fitBoundsPlacement||s.Placement.CENTER;delete t.fitBoundsPlacement;var u=t.degrees||0;delete t.degrees;var c=t.ajaxHeaders;delete t.ajaxHeaders,e.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,immediateRender:e.DEFAULT_SETTINGS.immediateRender,blendTime:e.DEFAULT_SETTINGS.blendTime,alwaysBlend:e.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:e.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:e.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:e.DEFAULT_SETTINGS.iOSDevice,debugMode:e.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:e.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:e.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:e.DEFAULT_SETTINGS.placeholderFillStyle,opacity:e.DEFAULT_SETTINGS.opacity,preload:e.DEFAULT_SETTINGS.preload,compositeOperation:e.DEFAULT_SETTINGS.compositeOperation,subPixelRoundingForTransparency:e.DEFAULT_SETTINGS.subPixelRoundingForTransparency},t),this._preload=this.preload,delete this.preload,this._fullyLoaded=!1,this._xSpring=new e.Spring({initial:n,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new e.Spring({initial:o,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new e.Spring({initial:i,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new e.Spring({initial:u,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),a&&this.fitBounds(a,l,!0),this._drawingHandler=function(t){r.viewer.raiseEvent("tile-drawing",e.extend({tiledImage:r},t))},this._ownAjaxHeaders={},this.setAjaxHeaders(c,!1)},e.extend(e.TiledImage.prototype,e.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(e){e!==this._fullyLoaded&&(this._fullyLoaded=e,this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded}))},reset:function(){this._tileCache.clearTilesFor(this),this.lastResetTime=e.now(),this._needsDraw=!0},update:function(){var e=this._xSpring.update(),t=this._ySpring.update(),r=this._scaleSpring.update(),n=this._degreesSpring.update();return!!(e||t||r||n)&&(this._updateForScale(),this._needsDraw=!0,!0)},draw:function(){0!==this.opacity||this._preload?(this._midDraw=!0,this._updateViewport(),this._midDraw=!1):this._needsDraw=!1},destroy:function(){this.reset(),this.source.destroy&&this.source.destroy()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(this.getRotation(e),this._getRotationPoint(e))},getBoundsNoRotate:function(t){return t?new e.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new e.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){return e.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead"),this.getBounds()},getClippedBounds:function(t){var r=this.getBoundsNoRotate(t);if(this._clip){var n=(t?this._worldWidthCurrent:this._worldWidthTarget)/this.source.dimensions.x,o=this._clip.times(n);r=new e.Rect(r.x+o.x,r.y+o.y,o.width,o.height)}return r.rotate(this.getRotation(t),this._getRotationPoint(t))},getTileBounds:function(e,t,r){var n=this.source.getNumTiles(e),o=(n.x+t%n.x)%n.x,i=(n.y+r%n.y)%n.y,a=this.source.getTileBounds(e,o,i);return this.getFlip()&&(a.x=1-a.x-a.width),a.x+=(t-o)/n.x,a.y+=this._worldHeightCurrent/this._worldWidthCurrent*((r-i)/n.y),a},getContentSize:function(){return new e.Point(this.source.dimensions.x,this.source.dimensions.y)},getSizeInWindowCoordinates:function(){var t=this.imageToWindowCoordinates(new e.Point(0,0)),r=this.imageToWindowCoordinates(this.getContentSize());return new e.Point(r.x-t.x,r.y-t.y)},_viewportToImageDelta:function(t,r,n){var o=n?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t*(this.source.dimensions.x/o),r*(this.source.dimensions.y*this.contentAspectX/o))},viewportToImageCoordinates:function(t,r,n){var o;return t instanceof e.Point?(n=r,o=t):o=new e.Point(t,r),o=o.rotate(-this.getRotation(n),this._getRotationPoint(n)),n?this._viewportToImageDelta(o.x-this._xSpring.current.value,o.y-this._ySpring.current.value):this._viewportToImageDelta(o.x-this._xSpring.target.value,o.y-this._ySpring.target.value)},_imageToViewportDelta:function(t,r,n){var o=n?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t/this.source.dimensions.x*o,r/this.source.dimensions.y/this.contentAspectX*o)},imageToViewportCoordinates:function(t,r,n){t instanceof e.Point&&(n=r,r=t.y,t=t.x);var o=this._imageToViewportDelta(t,r);return n?(o.x+=this._xSpring.current.value,o.y+=this._ySpring.current.value):(o.x+=this._xSpring.target.value,o.y+=this._ySpring.target.value),o.rotate(this.getRotation(n),this._getRotationPoint(n))},imageToViewportRectangle:function(t,r,n,o,i){var a=t;a instanceof e.Rect?i=r:a=new e.Rect(t,r,n,o);var s=this.imageToViewportCoordinates(a.getTopLeft(),i),l=this._imageToViewportDelta(a.width,a.height,i);return new e.Rect(s.x,s.y,l.x,l.y,a.degrees+this.getRotation(i))},viewportToImageRectangle:function(t,r,n,o,i){var a=t;t instanceof e.Rect?i=r:a=new e.Rect(t,r,n,o);var s=this.viewportToImageCoordinates(a.getTopLeft(),i),l=this._viewportToImageDelta(a.width,a.height,i);return new e.Rect(s.x,s.y,l.x,l.y,a.degrees-this.getRotation(i))},viewerElementToImageCoordinates:function(e){var t=this.viewport.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.viewport.pixelFromPoint(t,!0)},windowToImageCoordinates:function(e){var t=e.minus(s.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(t)},imageToWindowCoordinates:function(e){return this.imageToViewerElementCoordinates(e).plus(s.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(t){var r=this._scaleSpring.current.value;return t=t.rotate(-this.getRotation(!0),this._getRotationPoint(!0)),new e.Rect((t.x-this._xSpring.current.value)/r,(t.y-this._ySpring.current.value)/r,t.width/r,t.height/r,t.degrees)},viewportToImageZoom:function(e){return this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x*e},imageToViewportZoom:function(e){return e/(this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x)},setPosition:function(e,t){var r=this._xSpring.target.value===e.x&&this._ySpring.target.value===e.y;if(t){if(r&&this._xSpring.current.value===e.x&&this._ySpring.current.value===e.y)return;this._xSpring.resetTo(e.x),this._ySpring.resetTo(e.y),this._needsDraw=!0}else{if(r)return;this._xSpring.springTo(e.x),this._ySpring.springTo(e.y),this._needsDraw=!0}r||this._raiseBoundsChange()},setWidth:function(e,t){this._setScale(e,t)},setHeight:function(e,t){this._setScale(e/this.normHeight,t)},setCroppingPolygons:function(t){var r=function(t){return t.map((function(t){try{if(function(t){return t instanceof e.Point||"number"==typeof t.x&&"number"==typeof t.y}(t))return{x:t.x,y:t.y};throw new Error}catch(e){throw new Error("A Provided cropping polygon point is not supported")}}))};try{if(!e.isArray(t))throw new Error("Provided cropping polygon is not an array");this._croppingPolygons=t.map((function(e){return r(e)}))}catch(t){e.console.error("[TiledImage.setCroppingPolygons] Cropping polygon format not supported"),e.console.error(t),this._croppingPolygons=null}},resetCroppingPolygons:function(){this._croppingPolygons=null},fitBounds:function(t,r,n){r=r||e.Placement.CENTER;var o=e.Placement.properties[r],i=this.contentAspectX,a=0,s=0,l=1,u=1;if(this._clip&&(i=this._clip.getAspectRatio(),l=this._clip.width/this.source.dimensions.x,u=this._clip.height/this.source.dimensions.y,t.getAspectRatio()>i?(a=this._clip.x/this._clip.height*t.height,s=this._clip.y/this._clip.height*t.height):(a=this._clip.x/this._clip.width*t.width,s=this._clip.y/this._clip.width*t.width)),t.getAspectRatio()>i){var c=t.height/u,f=0;o.isHorizontallyCentered?f=(t.width-t.height*i)/2:o.isRight&&(f=t.width-t.height*i),this.setPosition(new e.Point(t.x-a+f,t.y-s),n),this.setHeight(c,n)}else{var d=t.width/l,p=0;o.isVerticallyCentered?p=(t.height-t.width/i)/2:o.isBottom&&(p=t.height-t.width/i),this.setPosition(new e.Point(t.x-a,t.y-s+p),n),this.setWidth(d,n)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(t){e.console.assert(!t||t instanceof e.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null"),t instanceof e.Rect?this._clip=t.clone():this._clip=null,this._needsDraw=!0,this.raiseEvent("clip-change")},getFlip:function(){return!!this.flipped},setFlip:function(e){this.flipped=!!e,this._needsDraw=!0,this._raiseBoundsChange()},getOpacity:function(){return this.opacity},setOpacity:function(e){e!==this.opacity&&(this.opacity=e,this._needsDraw=!0,this.raiseEvent("opacity-change",{opacity:this.opacity}))},getPreload:function(){return this._preload},setPreload:function(e){this._preload=!!e,this._needsDraw=!0},getRotation:function(e){return e?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(e,t){this._degreesSpring.target.value===e&&this._degreesSpring.isAtTargetValue()||(t?this._degreesSpring.resetTo(e):this._degreesSpring.springTo(e),this._needsDraw=!0,this._raiseBoundsChange())},_getRotationPoint:function(e){return this.getBoundsNoRotate(e).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(e){e!==this.compositeOperation&&(this.compositeOperation=e,this._needsDraw=!0,this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation}))},setAjaxHeaders:function(t,r){null===t&&(t={}),e.isPlainObject(t)?(this._ownAjaxHeaders=t,this._updateAjaxHeaders(r)):console.error("[TiledImage.setAjaxHeaders] Ignoring invalid headers, must be a plain object")},_updateAjaxHeaders:function(t){if(void 0===t&&(t=!0),e.isPlainObject(this.viewer.ajaxHeaders)?this.ajaxHeaders=e.extend({},this.viewer.ajaxHeaders,this._ownAjaxHeaders):this.ajaxHeaders=this._ownAjaxHeaders,t){var r,n,o,i;for(var a in this.tilesMatrix)for(var s in r=this.source.getNumTiles(a),this.tilesMatrix[a])for(var l in n=(r.x+s%r.x)%r.x,this.tilesMatrix[a][s])if(o=(r.y+l%r.y)%r.y,(i=this.tilesMatrix[a][s][l]).loadWithAjax=this.loadTilesWithAjax,i.loadWithAjax){var u=this.source.getTileAjaxHeaders(a,n,o);i.ajaxHeaders=e.extend({},this.ajaxHeaders,u)}else i.ajaxHeaders=null;for(var c=0;c<this._imageLoader.jobQueue.length;c++){var f=this._imageLoader.jobQueue[c];f.loadWithAjax=f.tile.loadWithAjax,f.ajaxHeaders=f.tile.loadWithAjax?f.tile.ajaxHeaders:null}}},_setScale:function(e,t){var r=this._scaleSpring.target.value===e;if(t){if(r&&this._scaleSpring.current.value===e)return;this._scaleSpring.resetTo(e),this._updateForScale(),this._needsDraw=!0}else{if(r)return;this._scaleSpring.springTo(e),this._updateForScale(),this._needsDraw=!0}r||this._raiseBoundsChange()},_updateForScale:function(){this._worldWidthTarget=this._scaleSpring.target.value,this._worldHeightTarget=this.normHeight*this._scaleSpring.target.value,this._worldWidthCurrent=this._scaleSpring.current.value,this._worldHeightCurrent=this.normHeight*this._scaleSpring.current.value},_raiseBoundsChange:function(){this.raiseEvent("bounds-change")},_isBottomItem:function(){return this.viewer.world.getItemAt(0)===this},_getLevelsInterval:function(){var e=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2))),t=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value,r=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(t/this.minPixelRatio)/Math.log(2))));return r=Math.max(r,this.source.minLevel||0),{lowestLevel:e=Math.min(e,r),highestLevel:r}},_updateViewport:function(){for(this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};this.lastDrawn.length>0;){this.lastDrawn.pop().beingDrawn=!1}var t=this.viewport,r=this._viewportToTiledImageRectangle(t.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var n=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(null===(r=r.intersection(n)))return}for(var o=this._getLevelsInterval(),i=o.lowestLevel,a=o.highestLevel,s=null,l=!1,u=e.now(),c=a;c>=i;c--){var f=!1,d=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(c),!0).x*this._scaleSpring.current.value;if(c===i||!l&&d>=this.minPixelRatio)f=!0,l=!0;else if(!l)continue;var p=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(c),!1).x*this._scaleSpring.current.value,h=t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,v=this.immediateRender?1:h,g=Math.min(1,(d-.5)/.5),m=v/Math.abs(v-p);if(s=this._updateLevel(l,f,c,g,m,r,u,s),this._providesCoverage(this.coverage,c))break}this._drawTiles(this.lastDrawn),s&&!s.context2D?(this._loadTile(s,u),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(t,r,n){var o,i,a,s;this.wrapHorizontal?(o=e.positiveModulo(r.x,1),i=e.positiveModulo(n.x,1)):(o=Math.max(0,r.x),i=Math.min(1,n.x));var l=1/this.source.aspectRatio;this.wrapVertical?(a=e.positiveModulo(r.y,l),s=e.positiveModulo(n.y,l)):(a=Math.max(0,r.y),s=Math.min(l,n.y));var u=this.source.getTileAtPoint(t,new e.Point(o,a)),c=this.source.getTileAtPoint(t,new e.Point(i,s)),f=this.source.getNumTiles(t);return this.wrapHorizontal&&(u.x+=f.x*Math.floor(r.x),c.x+=f.x*Math.floor(n.x)),this.wrapVertical&&(u.y+=f.y*Math.floor(r.y/l),c.y+=f.y*Math.floor(n.y/l)),{topLeft:u,bottomRight:c}},_updateLevel:function(e,t,r,n,o,i,a,s){var l=i.getBoundingBox().getTopLeft(),u=i.getBoundingBox().getBottomRight();this.viewer&&this.viewer.raiseEvent("update-level",{tiledImage:this,havedrawn:e,level:r,opacity:n,visibility:o,drawArea:i,topleft:l,bottomright:u,currenttime:a,best:s}),this._resetCoverage(this.coverage,r),this._resetCoverage(this.loadingCoverage,r);var c=this._getCornerTiles(r,l,u),f=c.topLeft,d=c.bottomRight,p=this.source.getNumTiles(r),h=this.viewport.pixelFromPoint(this.viewport.getCenter());this.getFlip()&&(d.x+=1,this.wrapHorizontal||(d.x=Math.min(d.x,p.x-1)));for(var v=f.x;v<=d.x;v++)for(var g=f.y;g<=d.y;g++){var m;if(this.getFlip()){var y=(p.x+v%p.x)%p.x;m=v+p.x-y-y-1}else m=v;null!==i.intersection(this.getTileBounds(r,m,g))&&(s=this._updateTile(t,e,m,g,r,n,o,h,p,a,s))}return s},_updateTile:function(e,t,r,n,o,i,a,s,l,u,c){var f=this._getTile(r,n,o,u,l,this._worldWidthCurrent,this._worldHeightCurrent),d=t;this.viewer&&this.viewer.raiseEvent("update-tile",{tiledImage:this,tile:f}),this._setCoverage(this.coverage,o,r,n,!1);var p=f.loaded||f.loading||this._isCovered(this.loadingCoverage,o,r,n);if(this._setCoverage(this.loadingCoverage,o,r,n,p),!f.exists)return c;if(e&&!d&&(this._isCovered(this.coverage,o,r,n)?this._setCoverage(this.coverage,o,r,n,!0):d=!0),!d)return c;if(this._positionTile(f,this.source.tileOverlap,this.viewport,s,a),!f.loaded)if(f.context2D)this._setTileLoaded(f);else{var h=this._tileCache.getImageRecord(f.cacheKey);h&&this._setTileLoaded(f,h.getData())}f.loaded?this._blendTile(f,r,n,o,i,u)&&(this._needsDraw=!0):f.loading?this._tilesLoading++:p||(c=this._compareTiles(c,f));return c},_getTile:function(t,r,n,o,i,a,s){var l,u,c,f,d,p,h,v,g,m,y=this.tilesMatrix,b=this.source;return y[n]||(y[n]={}),y[n][t]||(y[n][t]={}),y[n][t][r]&&!y[n][t][r].flipped==!this.flipped||(l=(i.x+t%i.x)%i.x,u=(i.y+r%i.y)%i.y,c=this.getTileBounds(n,t,r),f=b.getTileBounds(n,l,u,!0),d=b.tileExists(n,l,u),p=b.getTileUrl(n,l,u),h=b.getTilePostData(n,l,u),this.loadTilesWithAjax?(v=b.getTileAjaxHeaders(n,l,u),e.isPlainObject(this.ajaxHeaders)&&(v=e.extend({},this.ajaxHeaders,v))):v=null,g=b.getContext2D?b.getContext2D(n,l,u):void 0,m=new e.Tile(n,t,r,c,d,p,g,this.loadTilesWithAjax,v,f,h,b.getTileHashKey(n,l,u,p,v,h)),this.getFlip()?0===l&&(m.isRightMost=!0):l===i.x-1&&(m.isRightMost=!0),u===i.y-1&&(m.isBottomMost=!0),m.flipped=this.flipped,y[n][t][r]=m),(m=y[n][t][r]).lastTouchTime=o,m},_loadTile:function(e,t){var r=this;e.loading=!0,this._imageLoader.addJob({src:e.getUrl(),tile:e,source:this.source,postData:e.postData,loadWithAjax:e.loadWithAjax,ajaxHeaders:e.ajaxHeaders,crossOriginPolicy:this.crossOriginPolicy,ajaxWithCredentials:this.ajaxWithCredentials,callback:function(n,o,i){r._onTileLoad(e,t,n,o,i)},abort:function(){e.loading=!1}})},_onTileLoad:function(t,r,n,o,i){if(!n)return e.console.error("Tile %s failed to load: %s - error: %s",t,t.getUrl(),o),this.viewer.raiseEvent("tile-load-failed",{tile:t,tiledImage:this,time:r,message:o,tileRequest:i}),t.loading=!1,void(t.exists=!1);if(t.exists=!0,r<this.lastResetTime)return e.console.warn("Ignoring tile %s loaded before reset: %s",t,t.getUrl()),void(t.loading=!1);var a=this,s=function(){var e=a.source.getClosestLevel();a._setTileLoaded(t,n,e,i)};this._midDraw?window.setTimeout(s,1):s()},_setTileLoaded:function(t,r,n,o){var i=0,a=!1,s=this;function l(){return a&&e.console.error("Event 'tile-loaded' argument getCompletionCallback must be called synchronously. Its return value should be called asynchronously."),i++,u}function u(){0===--i&&(t.loading=!1,t.loaded=!0,t.hasTransparency=s.source.hasTransparency(t.context2D,t.getUrl(),t.ajaxHeaders,t.postData),t.context2D||s._tileCache.cacheTile({data:r,tile:t,cutoff:n,tiledImage:s}),s._needsDraw=!0)}var c=l();this.viewer.raiseEvent("tile-loaded",{tile:t,tiledImage:this,tileRequest:o,get image(){return e.console.error("[tile-loaded] event 'image' has been deprecated. Use 'data' property instead."),r},data:r,getCompletionCallback:l}),a=!0,c()},_positionTile:function(t,r,n,o,i){var a=t.bounds.getTopLeft();a.x*=this._scaleSpring.current.value,a.y*=this._scaleSpring.current.value,a.x+=this._xSpring.current.value,a.y+=this._ySpring.current.value;var s=t.bounds.getSize();s.x*=this._scaleSpring.current.value,s.y*=this._scaleSpring.current.value;var l=n.pixelFromPointNoRotate(a,!0),u=n.pixelFromPointNoRotate(a,!1),c=n.deltaPixelsFromPointsNoRotate(s,!0),f=n.deltaPixelsFromPointsNoRotate(s,!1),d=u.plus(f.divide(2)),p=o.squaredDistanceTo(d);r||(c=c.plus(new e.Point(1,1))),t.isRightMost&&this.wrapHorizontal&&(c.x+=.75),t.isBottomMost&&this.wrapVertical&&(c.y+=.75),t.position=l,t.size=c,t.squaredDistance=p,t.visibility=i},_blendTile:function(e,t,r,n,o,i){var a,s,l=1e3*this.blendTime;if(e.blendStart||(e.blendStart=i),a=i-e.blendStart,s=l?Math.min(1,a/l):1,this.alwaysBlend&&(s*=o),e.opacity=s,this.lastDrawn.push(e),1===s)this._setCoverage(this.coverage,n,t,r,!0),this._hasOpaqueTile=!0;else if(a<l)return!0;return!1},_compareTiles:function(e,t){return e?t.visibility>e.visibility||t.visibility===e.visibility&&t.squaredDistance<e.squaredDistance?t:e:t},_drawTiles:function(o){if(0!==this.opacity&&(0!==o.length||this.placeholderFillStyle)){var i,a,s,l=o[0];l&&(i=this.opacity<1||this.compositeOperation&&"source-over"!==this.compositeOperation||!this._isBottomItem()&&this.source.hasTransparency(l.context2D,l.getUrl(),l.ajaxHeaders,l.postData));var u,c=this.viewport.getZoom(!0),f=this.viewportToImageZoom(c);o.length>1&&f>this.smoothTileEdgesMinZoom&&!this.iOSDevice&&this.getRotation(!0)%360==0&&e.supportsCanvas&&this.viewer.useCanvas&&(i=!0,a=l.getScaleForEdgeSmoothing(),s=l.getTranslationForEdgeSmoothing(a,this._drawer.getCanvasSize(!1),this._drawer.getCanvasSize(!0))),i&&(a||(u=this.viewport.viewportToViewerElementRectangle(this.getClippedBounds(!0)).getIntegerBoundingBox(),this._drawer.viewer.viewport.getFlip()&&(this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0||(u.x=this._drawer.viewer.container.clientWidth-(u.x+u.width))),u=u.times(e.pixelDensityRatio)),this._drawer._clear(!0,u)),a||(this.viewport.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.viewport.getRotation(!0),useSketch:i}),this.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.getRotation(!0),point:this.viewport.pixelFromPointNoRotate(this._getRotationPoint(!0),!0),useSketch:i}),this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0&&this._drawer.viewer.viewport.getFlip()&&this._drawer._flip());var d=!1;if(this._clip){this._drawer.saveContext(i);var p=this.imageToViewportRectangle(this._clip,!0);p=p.rotate(-this.getRotation(!0),this._getRotationPoint(!0));var h=this._drawer.viewportToDrawerRectangle(p);a&&(h=h.times(a)),s&&(h=h.translate(s)),this._drawer.setClip(h,i),d=!0}if(this._croppingPolygons){var v=this;this._drawer.saveContext(i);try{var g=this._croppingPolygons.map((function(e){return e.map((function(e){var t=v.imageToViewportCoordinates(e.x,e.y,!0).rotate(-v.getRotation(!0),v._getRotationPoint(!0)),r=v._drawer.viewportCoordToDrawerCoord(t);return a&&(r=r.times(a)),s&&(r=r.plus(s)),r}))}));this._drawer.clipWithPolygons(g,i)}catch(t){e.console.error(t)}d=!0}if(this.placeholderFillStyle&&!1===this._hasOpaqueTile){var m=this._drawer.viewportToDrawerRectangle(this.getBounds(!0));a&&(m=m.times(a)),s&&(m=m.translate(s));var y=null;y="function"==typeof this.placeholderFillStyle?this.placeholderFillStyle(this,this._drawer.context):this.placeholderFillStyle,this._drawer.drawRectangle(m,y,i)}var b=function(o){if("number"==typeof o)return n(o);if(!o||!e.Browser)return t;var i=o[e.Browser.vendor];r(i)&&(i=o["*"]);return n(i)}(this.subPixelRoundingForTransparency),w=!1;if(b===e.SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS)w=!0;else if(b===e.SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST){w=!(this.viewer&&this.viewer.isAnimating())}for(var O=o.length-1;O>=0;O--)l=o[O],this._drawer.drawTile(l,this._drawingHandler,i,a,s,w,this.source),l.beingDrawn=!0,this.viewer&&this.viewer.raiseEvent("tile-drawn",{tiledImage:this,tile:l});d&&this._drawer.restoreContext(i),a||(this.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(i),this.viewport.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(i)),i&&(a&&(this.viewport.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.viewport.getRotation(!0),useSketch:!1}),this.getRotation(!0)%360!=0&&this._drawer._offsetForRotation({degrees:this.getRotation(!0),point:this.viewport.pixelFromPointNoRotate(this._getRotationPoint(!0),!0),useSketch:!1})),this._drawer.blendSketch({opacity:this.opacity,scale:a,translate:s,compositeOperation:this.compositeOperation,bounds:u}),a&&(this.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(!1),this.viewport.getRotation(!0)%360!=0&&this._drawer._restoreRotationChanges(!1))),a||this.viewport.getRotation(!0)%360==0&&this.getRotation(!0)%360==0&&this._drawer.viewer.viewport.getFlip()&&this._drawer._flip(),this._drawDebugInfo(o)}},_drawDebugInfo:function(t){if(this.debugMode)for(var r=t.length-1;r>=0;r--){var n=t[r];try{this._drawer.drawDebugInfo(n,t.length,r,this)}catch(t){e.console.error(t)}}},_providesCoverage:function(e,t,r,n){var o,i,a,s;if(!e[t])return!1;if(void 0===r||void 0===n){for(a in o=e[t])if(Object.prototype.hasOwnProperty.call(o,a))for(s in i=o[a])if(Object.prototype.hasOwnProperty.call(i,s)&&!i[s])return!1;return!0}return void 0===e[t][r]||void 0===e[t][r][n]||!0===e[t][r][n]},_isCovered:function(e,t,r,n){return void 0===r||void 0===n?this._providesCoverage(e,t+1):this._providesCoverage(e,t+1,2*r,2*n)&&this._providesCoverage(e,t+1,2*r,2*n+1)&&this._providesCoverage(e,t+1,2*r+1,2*n)&&this._providesCoverage(e,t+1,2*r+1,2*n+1)},_setCoverage:function(t,r,n,o,i){t[r]?(t[r][n]||(t[r][n]={}),t[r][n][o]=i):e.console.warn("Setting coverage for a tile before its level's coverage has been reset: %s",r)},_resetCoverage:function(e,t){e[t]={}}});var t=e.SUBPIXEL_ROUNDING_OCCURRENCES.NEVER;function r(t){return t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS&&t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST&&t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.NEVER}function n(e){return r(e)?t:e}}(s),function(e){var t=function(t){e.console.assert(t,"[TileCache.cacheTile] options is required"),e.console.assert(t.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(t.tiledImage,"[TileCache.cacheTile] options.tiledImage is required"),this.tile=t.tile,this.tiledImage=t.tiledImage},r=function(t){e.console.assert(t,"[ImageRecord] options is required"),e.console.assert(t.data,"[ImageRecord] options.data is required"),this._tiles=[],t.create.apply(null,[this,t.data,t.ownerTile]),this._destroyImplementation=t.destroy.bind(null,this),this.getImage=t.getImage.bind(null,this),this.getData=t.getData.bind(null,this),this.getRenderedContext=t.getRenderedContext.bind(null,this)};r.prototype={destroy:function(){this._destroyImplementation(),this._tiles=null},addTile:function(t){e.console.assert(t,"[ImageRecord.addTile] tile is required"),this._tiles.push(t)},removeTile:function(t){for(var r=0;r<this._tiles.length;r++)if(this._tiles[r]===t)return void this._tiles.splice(r,1);e.console.warn("[ImageRecord.removeTile] trying to remove unknown tile",t)},getTileCount:function(){return this._tiles.length}},e.TileCache=function(t){t=t||{},this._maxImageCacheCount=t.maxImageCacheCount||e.DEFAULT_SETTINGS.maxImageCacheCount,this._tilesLoaded=[],this._imagesLoaded=[],this._imagesLoadedCount=0},e.TileCache.prototype={numTilesLoaded:function(){return this._tilesLoaded.length},cacheTile:function(n){e.console.assert(n,"[TileCache.cacheTile] options is required"),e.console.assert(n.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(n.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),e.console.assert(n.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var o=n.cutoff||0,i=this._tilesLoaded.length,a=this._imagesLoaded[n.tile.cacheKey];if(a||(n.data||(e.console.error("[TileCache.cacheTile] options.image was renamed to options.data. '.image' attribute has been deprecated and will be removed in the future."),n.data=n.image),e.console.assert(n.data,"[TileCache.cacheTile] options.data is required to create an ImageRecord"),a=this._imagesLoaded[n.tile.cacheKey]=new r({data:n.data,ownerTile:n.tile,create:n.tiledImage.source.createTileCache,destroy:n.tiledImage.source.destroyTileCache,getImage:n.tiledImage.source.getTileCacheDataAsImage,getData:n.tiledImage.source.getTileCacheData,getRenderedContext:n.tiledImage.source.getTileCacheDataAsContext2D}),this._imagesLoadedCount++),a.addTile(n.tile),n.tile.cacheImageRecord=a,this._imagesLoadedCount>this._maxImageCacheCount){for(var s,l,u,c,f,d,p=null,h=-1,v=null,g=this._tilesLoaded.length-1;g>=0;g--)(s=(d=this._tilesLoaded[g]).tile).level<=o||s.beingDrawn||(p?(c=s.lastTouchTime,l=p.lastTouchTime,f=s.level,u=p.level,(c<l||c===l&&f>u)&&(p=s,h=g,v=d)):(p=s,h=g,v=d));p&&h>=0&&(this._unloadTile(v),i=h)}this._tilesLoaded[i]=new t({tile:n.tile,tiledImage:n.tiledImage})},clearTilesFor:function(t){var r;e.console.assert(t,"[TileCache.clearTilesFor] tiledImage is required");for(var n=0;n<this._tilesLoaded.length;++n)(r=this._tilesLoaded[n]).tiledImage===t&&(this._unloadTile(r),this._tilesLoaded.splice(n,1),n--)},getImageRecord:function(t){return e.console.assert(t,"[TileCache.getImageRecord] cacheKey is required"),this._imagesLoaded[t]},_unloadTile:function(t){e.console.assert(t,"[TileCache._unloadTile] tileRecord is required");var r=t.tile,n=t.tiledImage;r.unload(),r.cacheImageRecord=null;var o=this._imagesLoaded[r.cacheKey];o.removeTile(r),o.getTileCount()||(o.destroy(),delete this._imagesLoaded[r.cacheKey],this._imagesLoadedCount--),n.viewer.raiseEvent("tile-unloaded",{tile:r,tiledImage:n})}}}(s),function(e){e.World=function(t){var r=this;e.console.assert(t.viewer,"[World] options.viewer is required"),e.EventSource.call(this),this.viewer=t.viewer,this._items=[],this._needsDraw=!1,this._autoRefigureSizes=!0,this._needsSizesFigured=!1,this._delegatedFigureSizes=function(e){r._autoRefigureSizes?r._figureSizes():r._needsSizesFigured=!0},this._figureSizes()},e.extend(e.World.prototype,e.EventSource.prototype,{addItem:function(t,r){if(e.console.assert(t,"[World.addItem] item is required"),e.console.assert(t instanceof e.TiledImage,"[World.addItem] only TiledImages supported at this time"),void 0!==(r=r||{}).index){var n=Math.max(0,Math.min(this._items.length,r.index));this._items.splice(n,0,t)}else this._items.push(t);this._autoRefigureSizes?this._figureSizes():this._needsSizesFigured=!0,this._needsDraw=!0,t.addHandler("bounds-change",this._delegatedFigureSizes),t.addHandler("clip-change",this._delegatedFigureSizes),this.raiseEvent("add-item",{item:t})},getItemAt:function(t){return e.console.assert(void 0!==t,"[World.getItemAt] index is required"),this._items[t]},getIndexOfItem:function(t){return e.console.assert(t,"[World.getIndexOfItem] item is required"),e.indexOf(this._items,t)},getItemCount:function(){return this._items.length},setItemIndex:function(t,r){e.console.assert(t,"[World.setItemIndex] item is required"),e.console.assert(void 0!==r,"[World.setItemIndex] index is required");var n=this.getIndexOfItem(t);if(r>=this._items.length)throw new Error("Index bigger than number of layers.");r!==n&&-1!==n&&(this._items.splice(n,1),this._items.splice(r,0,t),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:t,previousIndex:n,newIndex:r}))},removeItem:function(t){e.console.assert(t,"[World.removeItem] item is required");var r=e.indexOf(this._items,t);-1!==r&&(t.removeHandler("bounds-change",this._delegatedFigureSizes),t.removeHandler("clip-change",this._delegatedFigureSizes),t.destroy(),this._items.splice(r,1),this._figureSizes(),this._needsDraw=!0,this._raiseRemoveItem(t))},removeAll:function(){var e,t;for(this.viewer._cancelPendingImages(),t=0;t<this._items.length;t++)(e=this._items[t]).removeHandler("bounds-change",this._delegatedFigureSizes),e.removeHandler("clip-change",this._delegatedFigureSizes),e.destroy();var r=this._items;for(this._items=[],this._figureSizes(),this._needsDraw=!0,t=0;t<r.length;t++)e=r[t],this._raiseRemoveItem(e)},resetItems:function(){for(var e=0;e<this._items.length;e++)this._items[e].reset()},update:function(){for(var e=!1,t=0;t<this._items.length;t++)e=this._items[t].update()||e;return e},draw:function(){for(var e=0;e<this._items.length;e++)this._items[e].draw();this._needsDraw=!1},needsDraw:function(){for(var e=0;e<this._items.length;e++)if(this._items[e].needsDraw())return!0;return this._needsDraw},getHomeBounds:function(){return this._homeBounds.clone()},getContentFactor:function(){return this._contentFactor},setAutoRefigureSizes:function(e){this._autoRefigureSizes=e,e&this._needsSizesFigured&&(this._figureSizes(),this._needsSizesFigured=!1)},arrange:function(t){var r,n=(t=t||{}).immediately||!1,o=t.layout||e.DEFAULT_SETTINGS.collectionLayout,i=t.rows||e.DEFAULT_SETTINGS.collectionRows,a=t.columns||e.DEFAULT_SETTINGS.collectionColumns,s=t.tileSize||e.DEFAULT_SETTINGS.collectionTileSize,l=s+(t.tileMargin||e.DEFAULT_SETTINGS.collectionTileMargin);r=!t.rows&&a?a:Math.ceil(this._items.length/i);var u,c,f,d,p,h=0,v=0;this.setAutoRefigureSizes(!1);for(var g=0;g<this._items.length;g++)g&&g%r==0&&("horizontal"===o?(v+=l,h=0):(h+=l,v=0)),d=(f=(c=(u=this._items[g]).getBounds()).width>c.height?s:s*(c.width/c.height))*(c.height/c.width),p=new e.Point(h+(s-f)/2,v+(s-d)/2),u.setPosition(p,n),u.setWidth(f,n),"horizontal"===o?h+=l:v+=l;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var t=this._homeBounds?this._homeBounds.clone():null,r=this._contentSize?this._contentSize.clone():null,n=this._contentFactor||0;if(this._items.length){var o=this._items[0],i=o.getBounds();this._contentFactor=o.getContentSize().x/i.width;for(var a=o.getClippedBounds().getBoundingBox(),s=a.x,l=a.y,u=a.x+a.width,c=a.y+a.height,f=1;f<this._items.length;f++)i=(o=this._items[f]).getBounds(),this._contentFactor=Math.max(this._contentFactor,o.getContentSize().x/i.width),a=o.getClippedBounds().getBoundingBox(),s=Math.min(s,a.x),l=Math.min(l,a.y),u=Math.max(u,a.x+a.width),c=Math.max(c,a.y+a.height);this._homeBounds=new e.Rect(s,l,u-s,c-l),this._contentSize=new e.Point(this._homeBounds.width*this._contentFactor,this._homeBounds.height*this._contentFactor)}else this._homeBounds=new e.Rect(0,0,1,1),this._contentSize=new e.Point(1,1),this._contentFactor=1;this._contentFactor===n&&this._homeBounds.equals(t)&&this._contentSize.equals(r)||this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(e){this.raiseEvent("remove-item",{item:e})}})}(s)},3223:(e,t,r)=>{"use strict";var n=r(67360);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var 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}},43979:(e,t,r)=>{e.exports=r(3223)()},67360:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},47817:function(e,t,r){!function(e,t){"use strict";function r(e){return"string"==typeof e||"number"==typeof e}var n=function(){function e(){this._cache={}}var t=e.prototype;return t.set=function(e,t){this._cache[e]=t},t.get=function(e){return this._cache[e]},t.remove=function(e){delete this._cache[e]},t.clear=function(){this._cache={}},t.isValidCacheKey=function(e){return r(e)},e}(),o=n,i=function(){return!0};function a(e){var t,r=[].concat(e),n=void 0;return"function"==typeof r[r.length-1]||(n=r.pop()),t=r.pop(),{inputSelectors:Array.isArray(r[0])?r[0]:[].concat(r),resultFunc:t,createSelectorOptions:n}}function s(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var s=a(r),l=s.inputSelectors,u=s.resultFunc,c=s.createSelectorOptions;return function(e){var r="function"==typeof e?{keySelector:e}:Object.assign({},e),n=0,a=function(){return n++,u.apply(void 0,arguments)},s=[l,a];c&&s.push(c);var f=r.cacheObject||new o,d=r.selectorCreator||t.createSelector,p=f.isValidCacheKey||i;r.keySelectorCreator&&(r.keySelector=r.keySelectorCreator({keySelector:r.keySelector,inputSelectors:l,resultFunc:u}));var h=function(){var e=r.keySelector.apply(r,arguments);if(p(e)){var t=f.get(e);return void 0===t&&(t=d.apply(void 0,s),f.set(e,t)),t.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+e+'" has been returned by keySelector function.')};return h.getMatchingSelector=function(){var e=r.keySelector.apply(r,arguments);return f.get(e)},h.removeMatchingSelector=function(){var e=r.keySelector.apply(r,arguments);f.remove(e)},h.clearCache=function(){f.clear()},h.resultFunc=u,h.dependencies=l,h.cache=f,h.recomputations=function(){return n},h.resetRecomputations=function(){return n=0},h.keySelector=r.keySelector,h}}function l(e){return t.createStructuredSelector(e,s)}function u(e){if(void 0===e)throw new Error('Missing the required property "cacheSize".');if(!Number.isInteger(e)||e<=0)throw new Error('The "cacheSize" property must be a positive integer value.')}var c=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;u(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._cacheOrdering.push(e),this._cacheOrdering.length>this._cacheSize){var r=this._cacheOrdering[0];this.remove(r)}},t.get=function(e){return this._cache[e]},t.remove=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t.isValidCacheKey=function(e){return r(e)},e}(),f=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;u(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._registerCacheHit(e),this._cacheOrdering.length>this._cacheSize){var r=this._cacheOrdering[0];this.remove(r)}},t.get=function(e){return this._registerCacheHit(e),this._cache[e]},t.remove=function(e){this._deleteCacheHit(e),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t._registerCacheHit=function(e){this._deleteCacheHit(e),this._cacheOrdering.push(e)},t._deleteCacheHit=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1)},t.isValidCacheKey=function(e){return r(e)},e}(),d=function(){function e(){this._cache=new Map}var t=e.prototype;return t.set=function(e,t){this._cache.set(e,t)},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),p=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;u(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var r=this._cache.keys().next().value;this.remove(r)}},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),h=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;u(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var r=this._cache.keys().next().value;this.remove(r)}},t.get=function(e){var t=this._cache.get(e);return this._cache.has(e)&&(this.remove(e),this._cache.set(e,t)),t},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}();e.FifoMapCache=p,e.FifoObjectCache=c,e.FlatMapCache=d,e.FlatObjectCache=n,e.LruMapCache=h,e.LruObjectCache=f,e.createCachedSelector=s,e.createStructuredCachedSelector=l}(t,r(42885))},56189:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(r(78281)),i=s(r(49304)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(l,e);var t,r,n,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return g(h(e=s.call.apply(s,[this].concat(r))),"onClick",(function(t){var r=e.props,n=r.text,a=r.onCopy,s=r.children,l=r.options,u=o.default.Children.only(s),c=(0,i.default)(n,l);a&&a(n,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),e}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=c(e,a),n=o.default.Children.only(t);return o.default.cloneElement(n,u(u({},r),{},{onClick:this.onClick}))}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=m,g(m,"defaultProps",{onCopy:void 0,options:void 0})},15686:(e,t,r)=>{"use strict";var n=r(56189).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},54392:(e,t,r)=>{"use strict";var n=r(78281),o=r(79551);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function v(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,r,n){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),E=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var W=!1;function B(e,t){if(!e||W)return"";W=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=n.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function F(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case P:return"Profiler";case A:return"StrictMode";case T:return"Suspense";case C:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=G(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function $(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var r=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function X(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=V(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){Y(e,t);var r=V(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&$(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+V(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:V(r)}}function ie(e,t){var r=V(t.value),n=V(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ve(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=ve(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var me=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,Ae=null;function Pe(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function je(e){Se?Ae?Ae.push(e):Ae=[e]:Se=e}function Ee(){if(Se){var e=Se,t=Ae;if(Ae=Se=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Ie(e,t){return e(t)}function Te(){}var Ce=!1;function ke(e,t,r){if(Ce)return e(t,r);Ce=!0;try{return Ie(e,t,r)}finally{Ce=!1,(null!==Se||null!==Ae)&&(Te(),Ee())}}function _e(e,t){var r=e.stateNode;if(null===r)return null;var n=xo(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(i(231,t,typeof r));return r}var Re=!1;if(c)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ce){Re=!1}function De(e,t,r,n,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,ze=!1,We=null,Be={onError:function(e){Me=!0,Le=e}};function Fe(e,t,r,n,o,i,a,s,l){Me=!1,Le=null,De.apply(Be,arguments)}function He(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(i(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Ve(o),e;if(a===n)return Ve(o),t;a=a.sibling}throw Error(i(188))}if(r.return!==n.return)r=o,n=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=a;break}if(l===n){s=!0,n=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=o;break}if(l===n){s=!0,n=a,r=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(188));return r.stateNode.current===r?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,$e=o.unstable_cancelCallback,Ze=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ye=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~o;0!==s?n=ft(s):0!==(i&=a)&&(n=ft(i))}else 0!==(a=r&~o)?n=ft(a):0!==i&&(n=ft(i));if(0===n)return 0;if(0!==t&&t!==n&&!(t&o)&&((o=n&-n)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-at(t)),n|=e[r],t&=~o;return n}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function mt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Ot,xt,St,At,Pt,jt=!1,Et=[],It=null,Tt=null,Ct=null,kt=new Map,_t=new Map,Rt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_t.delete(t.pointerId)}}function Mt(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&xt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var r=He(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ue(r)))return e.blockedOn=t,void Pt(e.priority,(function(){St(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=wo(r))&&xt(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function Wt(e,t,r){zt(e)&&r.delete(t)}function Bt(){jt=!1,null!==It&&zt(It)&&(It=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==Ct&&zt(Ct)&&(Ct=null),kt.forEach(Wt),_t.forEach(Wt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,jt||(jt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return Ft(t,e)}if(0<Et.length){Ft(Et[0],e);for(var r=1;r<Et.length;r++){var n=Et[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==It&&Ft(It,e),null!==Tt&&Ft(Tt,e),null!==Ct&&Ft(Ct,e),kt.forEach(t),_t.forEach(t),r=0;r<Rt.length;r++)(n=Rt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Rt.length&&null===(r=Rt[0]).blockedOn;)Lt(r),null===r.blockedOn&&Rt.shift()}var Ut=w.ReactCurrentBatchConfig,Vt=!0;function Gt(e,t,r,n){var o=bt,i=Ut.transition;Ut.transition=null;try{bt=1,Kt(e,t,r,n)}finally{bt=o,Ut.transition=i}}function qt(e,t,r,n){var o=bt,i=Ut.transition;Ut.transition=null;try{bt=4,Kt(e,t,r,n)}finally{bt=o,Ut.transition=i}}function Kt(e,t,r,n){if(Vt){var o=Zt(e,t,r,n);if(null===o)Vn(e,t,n,$t,r),Dt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return It=Mt(It,e,t,r,n,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,r,n,o),!0;case"mouseover":return Ct=Mt(Ct,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return kt.set(i,Mt(kt.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,_t.set(i,Mt(_t.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Dt(e,n),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Ot(i),null===(i=Zt(e,t,r,n))&&Vn(e,t,n,$t,r),i===o)break;o=i}null!==o&&n.stopPropagation()}else Vn(e,t,n,null,r)}}var $t=null;function Zt(e,t,r,n){if($t=null,null!==(e=bo(e=Oe(n))))if(null===(t=He(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Yt=null,Qt=null,Jt=null;function er(){if(Jt)return Jt;var e,t,r=Qt,n=r.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,i){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ir,ar,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=or(lr),cr=L({},lr,{view:0,detail:0}),fr=or(cr),dr=L({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ar,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(ir=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=ir=0,sr=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),pr=or(dr),hr=or(L({},dr,{dataTransfer:0})),vr=or(L({},cr,{relatedTarget:0})),gr=or(L({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),mr=L({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=or(mr),br=or(L({},lr,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Or={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xr[e])&&!!t[e]}function Ar(){return Sr}var Pr=L({},cr,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Or[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ar,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jr=or(Pr),Er=or(L({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ir=or(L({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ar})),Tr=or(L({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cr=L({},dr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kr=or(Cr),_r=[9,13,27,32],Rr=c&&"CompositionEvent"in window,Nr=null;c&&"documentMode"in document&&(Nr=document.documentMode);var Dr=c&&"TextEvent"in window&&!Nr,Mr=c&&(!Rr||Nr&&8<Nr&&11>=Nr),Lr=String.fromCharCode(32),zr=!1;function Wr(e,t){switch(e){case"keyup":return-1!==_r.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Br(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fr=!1;var Hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hr[e.type]:"textarea"===t}function Vr(e,t,r,n){je(n),0<(t=qn(t,"onChange")).length&&(r=new ur("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Gr=null,qr=null;function Kr(e){zn(e,0)}function $r(e){if(K(Oo(e)))return e}function Zr(e,t){if("change"===e)return t}var Xr=!1;if(c){var Yr;if(c){var Qr="oninput"in document;if(!Qr){var Jr=document.createElement("div");Jr.setAttribute("oninput","return;"),Qr="function"==typeof Jr.oninput}Yr=Qr}else Yr=!1;Xr=Yr&&(!document.documentMode||9<document.documentMode)}function en(){Gr&&(Gr.detachEvent("onpropertychange",tn),qr=Gr=null)}function tn(e){if("value"===e.propertyName&&$r(qr)){var t=[];Vr(t,qr,e,Oe(e)),ke(Kr,t)}}function rn(e,t,r){"focusin"===e?(en(),qr=r,(Gr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $r(qr)}function on(e,t){if("click"===e)return $r(t)}function an(e,t){if("input"===e||"change"===e)return $r(t)}var sn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(sn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!f.call(t,o)||!sn(e[o],t[o]))return!1}return!0}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cn(e,t){var r,n=un(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=un(n)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=$((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hn(e){var t=dn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fn(r.ownerDocument.documentElement,r)){if(null!==n&&pn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=void 0===n.end?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=cn(r,i);var a=cn(r,n);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vn=c&&"documentMode"in document&&11>=document.documentMode,gn=null,mn=null,yn=null,bn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==gn||gn!==$(n)||("selectionStart"in(n=gn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=qn(mn,"onSelect")).length&&(t=new ur("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function On(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var xn={animationend:On("Animation","AnimationEnd"),animationiteration:On("Animation","AnimationIteration"),animationstart:On("Animation","AnimationStart"),transitionend:On("Transition","TransitionEnd")},Sn={},An={};function Pn(e){if(Sn[e])return Sn[e];if(!xn[e])return e;var t,r=xn[e];for(t in r)if(r.hasOwnProperty(t)&&t in An)return Sn[e]=r[t];return e}c&&(An=document.createElement("div").style,"AnimationEvent"in window||(delete xn.animationend.animation,delete xn.animationiteration.animation,delete xn.animationstart.animation),"TransitionEvent"in window||delete xn.transitionend.transition);var jn=Pn("animationend"),En=Pn("animationiteration"),In=Pn("animationstart"),Tn=Pn("transitionend"),Cn=new Map,kn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _n(e,t){Cn.set(e,t),l(t,[e])}for(var Rn=0;Rn<kn.length;Rn++){var Nn=kn[Rn];_n(Nn.toLowerCase(),"on"+(Nn[0].toUpperCase()+Nn.slice(1)))}_n(jn,"onAnimationEnd"),_n(En,"onAnimationIteration"),_n(In,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(Tn,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dn));function Ln(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,s,l,u){if(Fe.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=Le;Me=!1,Le=null,ze||(ze=!0,We=c)}}(n,t,void 0,e),e.currentTarget=null}function zn(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ln(o,s,u),i=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ln(o,s,u),i=l}}}if(ze)throw e=We,ze=!1,We=null,e}function Wn(e,t){var r=t[go];void 0===r&&(r=t[go]=new Set);var n=e+"__bubble";r.has(n)||(Un(t,e,2,!1),r.add(n))}function Bn(e,t,r){var n=0;t&&(n|=4),Un(r,e,n,t)}var Fn="_reactListening"+Math.random().toString(36).slice(2);function Hn(e){if(!e[Fn]){e[Fn]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mn.has(t)||Bn(t,!1,e),Bn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fn]||(t[Fn]=!0,Bn("selectionchange",!1,t))}}function Un(e,t,r,n){switch(Xt(t)){case 1:var o=Gt;break;case 4:o=qt;break;default:o=Kt}r=o.bind(null,t,r,e),o=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Vn(e,t,r,n,o){var i=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){n=i=a;continue e}s=s.parentNode}}n=n.return}ke((function(){var n=i,o=Oe(r),a=[];e:{var s=Cn.get(e);if(void 0!==s){var l=ur,u=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=jr;break;case"focusin":u="focus",l=vr;break;case"focusout":u="blur",l=vr;break;case"beforeblur":case"afterblur":l=vr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ir;break;case jn:case En:case In:l=gr;break;case Tn:l=Tr;break;case"scroll":l=fr;break;case"wheel":l=kr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Er}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=n;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&(null!=(v=_e(h,d))&&c.push(Gn(h,v,p)))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,r,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===we||!(u=r.relatedTarget||r.fromElement)||!bo(u)&&!u[vo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?bo(u):null)&&(u!==(f=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=pr,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Er,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:Oo(l),p=null==u?s:Oo(u),(s=new c(v,h+"leave",l,r,o)).target=f,s.relatedTarget=p,v=null,bo(o)===n&&((c=new c(d,h+"enter",u,r,o)).target=p,c.relatedTarget=f,v=c),f=v,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Kn(p))h++;for(p=0,v=d;v;v=Kn(v))p++;for(;0<h-p;)c=Kn(c),h--;for(;0<p-h;)d=Kn(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Kn(c),d=Kn(d)}c=null}else c=null;null!==l&&$n(a,s,l,c,!1),null!==u&&null!==f&&$n(a,f,u,c,!0)}if("select"===(l=(s=n?Oo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Zr;else if(Ur(s))if(Xr)g=an;else{g=nn;var m=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=on);switch(g&&(g=g(e,n))?Vr(a,g,r,o):(m&&m(e,s,n),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=n?Oo(n):window,e){case"focusin":(Ur(m)||"true"===m.contentEditable)&&(gn=m,mn=n,yn=null);break;case"focusout":yn=mn=gn=null;break;case"mousedown":bn=!0;break;case"contextmenu":case"mouseup":case"dragend":bn=!1,wn(a,r,o);break;case"selectionchange":if(vn)break;case"keydown":case"keyup":wn(a,r,o)}var y;if(Rr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Fr?Wr(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Mr&&"ko"!==r.locale&&(Fr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Fr&&(y=er()):(Qt="value"in(Yt=o)?Yt.value:Yt.textContent,Fr=!0)),0<(m=qn(n,b)).length&&(b=new br(b,e,null,r,o),a.push({event:b,listeners:m}),y?b.data=y:null!==(y=Br(r))&&(b.data=y))),(y=Dr?function(e,t){switch(e){case"compositionend":return Br(t);case"keypress":return 32!==t.which?null:(zr=!0,Lr);case"textInput":return(e=t.data)===Lr&&zr?null:e;default:return null}}(e,r):function(e,t){if(Fr)return"compositionend"===e||!Rr&&Wr(e,t)?(e=er(),Jt=Qt=Yt=null,Fr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=qn(n,"onBeforeInput")).length&&(o=new br("onBeforeInput","beforeinput",null,r,o),a.push({event:o,listeners:n}),o.data=y))}zn(a,t)}))}function Gn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function qn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=_e(e,r))&&n.unshift(Gn(e,i,o)),null!=(i=_e(e,t))&&n.push(Gn(e,i,o))),e=e.return}return n}function Kn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $n(e,t,r,n,o){for(var i=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=_e(r,i))&&a.unshift(Gn(r,l,s)):o||null!=(l=_e(r,i))&&a.push(Gn(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Zn=/\r\n?/g,Xn=/\u0000|\uFFFD/g;function Yn(e){return("string"==typeof e?e:""+e).replace(Zn,"\n").replace(Xn,"")}function Qn(e,t,r){if(t=Yn(t),Yn(e)!==t&&r)throw Error(i(425))}function Jn(){}var eo=null,to=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:no;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ht(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,vo="__reactContainer$"+fo,go="__reactEvents$"+fo,mo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var r=e.parentNode;r;){if(t=r[vo]||r[po]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=co(e);null!==e;){if(r=e[po])return r;e=co(e)}return t}r=(e=r).parentNode}return null}function wo(e){return!(e=e[po]||e[vo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[ho]||null}var So=[],Ao=-1;function Po(e){return{current:e}}function jo(e){0>Ao||(e.current=So[Ao],So[Ao]=null,Ao--)}function Eo(e,t){Ao++,So[Ao]=e.current,e.current=t}var Io={},To=Po(Io),Co=Po(!1),ko=Io;function _o(e,t){var r=e.type.contextTypes;if(!r)return Io;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ro(e){return null!=(e=e.childContextTypes)}function No(){jo(Co),jo(To)}function Do(e,t,r){if(To.current!==Io)throw Error(i(168));Eo(To,t),Eo(Co,r)}function Mo(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(i(108,U(e)||"Unknown",o));return L({},r,n)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,ko=To.current,Eo(To,e),Eo(Co,Co.current),!0}function zo(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=Mo(e,t,ko),n.__reactInternalMemoizedMergedChildContext=e,jo(Co),jo(To),Eo(To,e)):jo(Co),Eo(Co,r)}var Wo=null,Bo=!1,Fo=!1;function Ho(e){null===Wo?Wo=[e]:Wo.push(e)}function Uo(){if(!Fo&&null!==Wo){Fo=!0;var e=0,t=bt;try{var r=Wo;for(bt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Wo=null,Bo=!1}catch(t){throw null!==Wo&&(Wo=Wo.slice(e+1)),Ke(Je,Uo),t}finally{bt=t,Fo=!1}}return null}var Vo=[],Go=0,qo=null,Ko=0,$o=[],Zo=0,Xo=null,Yo=1,Qo="";function Jo(e,t){Vo[Go++]=Ko,Vo[Go++]=qo,qo=e,Ko=t}function ei(e,t,r){$o[Zo++]=Yo,$o[Zo++]=Qo,$o[Zo++]=Xo,Xo=e;var n=Yo;e=Qo;var o=32-at(n)-1;n&=~(1<<o),r+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,Yo=1<<32-at(t)+o|r<<o|n,Qo=i+e}else Yo=1<<i|r<<o|n,Qo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ri(e){for(;e===qo;)qo=Vo[--Go],Vo[Go]=null,Ko=Vo[--Go],Vo[Go]=null;for(;e===Xo;)Xo=$o[--Zo],$o[Zo]=null,Qo=$o[--Zo],$o[Zo]=null,Yo=$o[--Zo],$o[Zo]=null}var ni=null,oi=null,ii=!1,ai=null;function si(e,t){var r=_u(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function li(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Xo?{id:Yo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=_u(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ni=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(r.nextSibling);var n=ni;t&&li(e,t)?si(n,r):(e.flags=-4097&e.flags|2,ii=!1,ni=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ni=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function di(e){if(e!==ni)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ni?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ni=null,ii=!1}function vi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function mi(e,t){if(e&&e.defaultProps){for(var r in t=L({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var yi=Po(null),bi=null,wi=null,Oi=null;function xi(){Oi=wi=bi=null}function Si(e){var t=yi.current;jo(yi),e._currentValue=t}function Ai(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Pi(e,t){bi=e,Oi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ws=!0),e.firstContext=null)}function ji(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===bi)throw Error(i(308));wi=e,bi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Ei=null;function Ii(e){null===Ei?Ei=[e]:Ei.push(e)}function Ti(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Ii(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ci(e,n)}function Ci(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var ki=!1;function _i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ri(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ni(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Tl){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ci(e,r)}return null===(o=n.interleaved)?(t.next=t,Ii(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ci(e,r)}function Mi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function Li(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=a:i=i.next=a,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function zi(e,t,r,n){var o=e.updateQueue;ki=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;for(a=0,c=u=l=null,s=i;;){var d=s.lane,p=s.eventTime;if((n&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(d=t,p=r,v.tag){case 1:if("function"==typeof(h=v.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=v.payload)?h.call(p,f,d):h))break e;f=L({},f,d);break e;case 2:ki=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=f):c=c.next=p,a|=d;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(d=s).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ll|=a,e.lanes=a,e.memoizedState=f}}function Wi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(i(191,o));o.call(n)}}}var Bi=(new n.Component).refs;function Fi(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:L({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Hi={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tu(),o=ru(e),i=Ni(n,o);i.payload=t,null!=r&&(i.callback=r),null!==(t=Di(e,i,o))&&(nu(t,e,o,n),Mi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tu(),o=ru(e),i=Ni(n,o);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=Di(e,i,o))&&(nu(t,e,o,n),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tu(),n=ru(e),o=Ni(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Di(e,o,n))&&(nu(t,e,n,r),Mi(t,e,n))}};function Ui(e,t,r,n,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ln(r,n)||!ln(o,i))}function Vi(e,t,r){var n=!1,o=Io,i=t.contextType;return"object"==typeof i&&null!==i?i=ji(i):(o=Ro(t)?ko:To.current,i=(n=null!=(n=t.contextTypes))?_o(e,o):Io),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hi,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Gi(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Hi.enqueueReplaceState(t,t.state,null)}function qi(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Bi,_i(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ji(i):(i=Ro(t)?ko:To.current,o.context=_o(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Fi(e,t,i,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Hi.enqueueReplaceState(o,o.state,null),zi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ki(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(i(309));var n=r.stateNode}if(!n)throw Error(i(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Bi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function $i(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zi(e){return(0,e._init)(e._payload)}function Xi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=zu(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function u(e,t,r,n){var i=r.type;return i===S?f(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===_&&Zi(i)===t.type)?((n=o(t,r.props)).ref=Ki(e,t,r),n.return=e,n):((n=Du(r.type,r.key,r.props,null,e.mode,n)).ref=Ki(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Wu(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function f(e,t,r,n,i){return null===t||7!==t.tag?((t=Mu(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=zu(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case O:return(r=Du(t.type,t.key,t.props,null,e.mode,r)).ref=Ki(e,null,t),r.return=e,r;case x:return(t=Wu(t,e.mode,r)).return=e,t;case _:return d(e,(0,t._init)(t._payload),r)}if(te(t)||D(t))return(t=Mu(t,e.mode,r,null)).return=e,t;$i(e,t)}return null}function p(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case O:return r.key===o?u(e,t,r,n):null;case x:return r.key===o?c(e,t,r,n):null;case _:return p(e,t,(o=r._init)(r._payload),n)}if(te(r)||D(r))return null!==o?null:f(e,t,r,n,null);$i(e,r)}return null}function h(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case O:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case x:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case _:return h(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||D(n))return f(t,e=e.get(r)||null,n,o,null);$i(t,n)}return null}function v(o,i,s,l){for(var u=null,c=null,f=i,v=i=0,g=null;null!==f&&v<s.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var m=p(o,f,s[v],l);if(null===m){null===f&&(f=g);break}e&&f&&null===m.alternate&&t(o,f),i=a(m,i,v),null===c?u=m:c.sibling=m,c=m,f=g}if(v===s.length)return r(o,f),ii&&Jo(o,v),u;if(null===f){for(;v<s.length;v++)null!==(f=d(o,s[v],l))&&(i=a(f,i,v),null===c?u=f:c.sibling=f,c=f);return ii&&Jo(o,v),u}for(f=n(o,f);v<s.length;v++)null!==(g=h(f,o,v,s[v],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?v:g.key),i=a(g,i,v),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),u}function g(o,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var f=c=null,v=s,g=s=0,m=null,y=l.next();null!==v&&!y.done;g++,y=l.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=p(o,v,y.value,u);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(o,v),s=a(b,s,g),null===f?c=b:f.sibling=b,f=b,v=m}if(y.done)return r(o,v),ii&&Jo(o,g),c;if(null===v){for(;!y.done;g++,y=l.next())null!==(y=d(o,y.value,u))&&(s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return ii&&Jo(o,g),c}for(v=n(o,v);!y.done;g++,y=l.next())null!==(y=h(v,o,g,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),c}return function e(n,i,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case O:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===S){if(7===c.tag){r(n,c.sibling),(i=o(c,a.props.children)).return=n,n=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===_&&Zi(u)===c.type){r(n,c.sibling),(i=o(c,a.props)).ref=Ki(n,c,a),i.return=n,n=i;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===S?((i=Mu(a.props.children,n.mode,l,a.key)).return=n,n=i):((l=Du(a.type,a.key,a.props,null,n.mode,l)).ref=Ki(n,i,a),l.return=n,n=l)}return s(n);case x:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){r(n,i.sibling),(i=o(i,a.children||[])).return=n,n=i;break e}r(n,i);break}t(n,i),i=i.sibling}(i=Wu(a,n.mode,l)).return=n,n=i}return s(n);case _:return e(n,i,(c=a._init)(a._payload),l)}if(te(a))return v(n,i,a,l);if(D(a))return g(n,i,a,l);$i(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(r(n,i.sibling),(i=o(i,a)).return=n,n=i):(r(n,i),(i=zu(a,n.mode,l)).return=n,n=i),s(n)):r(n,i)}}var Yi=Xi(!0),Qi=Xi(!1),Ji={},ea=Po(Ji),ta=Po(Ji),ra=Po(Ji);function na(e){if(e===Ji)throw Error(i(174));return e}function oa(e,t){switch(Eo(ra,t),Eo(ta,e),Eo(ea,Ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}jo(ea),Eo(ea,t)}function ia(){jo(ea),jo(ta),jo(ra)}function aa(e){na(ra.current);var t=na(ea.current),r=le(t,e.type);t!==r&&(Eo(ta,e),Eo(ea,r))}function sa(e){ta.current===e&&(jo(ea),jo(ta))}var la=Po(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function fa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var da=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,va=null,ga=null,ma=null,ya=!1,ba=!1,wa=0,Oa=0;function xa(){throw Error(i(321))}function Sa(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function Aa(e,t,r,n,o,a){if(ha=a,va=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ss:ls,e=r(n,o),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(i(301));a+=1,ma=ga=null,t.updateQueue=null,da.current=us,e=r(n,o)}while(ba)}if(da.current=as,t=null!==ga&&null!==ga.next,ha=0,ma=ga=va=null,ya=!1,t)throw Error(i(300));return e}function Pa(){var e=0!==wa;return wa=0,e}function ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ma?va.memoizedState=ma=e:ma=ma.next=e,ma}function Ea(){if(null===ga){var e=va.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ma?va.memoizedState:ma.next;if(null!==t)ma=t,ga=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ma?va.memoizedState=ma=e:ma=ma.next=e}return ma}function Ia(e,t){return"function"==typeof t?t(e):t}function Ta(e){var t=Ea(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=ga,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((ha&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=n):u=u.next=d,va.lanes|=f,Ll|=f}c=c.next}while(null!==c&&c!==a);null===u?s=n:u.next=l,sn(n,t.memoizedState)||(ws=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,va.lanes|=a,Ll|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ca(e){var t=Ea(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sn(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function ka(){}function _a(e,t){var r=va,n=Ea(),o=t(),a=!sn(n.memoizedState,o);if(a&&(n.memoizedState=o,ws=!0),n=n.queue,Va(Da.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==ma&&1&ma.memoizedState.tag){if(r.flags|=2048,Wa(9,Na.bind(null,r,n,o,t),void 0,null),null===Cl)throw Error(i(349));30&ha||Ra(r,t,o)}return o}function Ra(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Na(e,t,r,n){t.value=r,t.getSnapshot=n,Ma(t)&&La(e)}function Da(e,t,r){return r((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(e){return!0}}function La(e){var t=Ci(e,1);null!==t&&nu(t,e,1,-1)}function za(e){var t=ja();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,va,e),[t.memoizedState,e]}function Wa(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ba(){return Ea().memoizedState}function Fa(e,t,r,n){var o=ja();va.flags|=e,o.memoizedState=Wa(1|t,r,void 0,void 0===n?null:n)}function Ha(e,t,r,n){var o=Ea();n=void 0===n?null:n;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==n&&Sa(n,a.deps))return void(o.memoizedState=Wa(t,r,i,n))}va.flags|=e,o.memoizedState=Wa(1|t,r,i,n)}function Ua(e,t){return Fa(8390656,8,e,t)}function Va(e,t){return Ha(2048,8,e,t)}function Ga(e,t){return Ha(4,2,e,t)}function qa(e,t){return Ha(4,4,e,t)}function Ka(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $a(e,t,r){return r=null!=r?r.concat([e]):null,Ha(4,4,Ka.bind(null,t,e),r)}function Za(){}function Xa(e,t){var r=Ea();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Sa(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ya(e,t){var r=Ea();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Sa(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Qa(e,t,r){return 21&ha?(sn(r,t)||(r=vt(),va.lanes|=r,Ll|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=r)}function Ja(e,t){var r=bt;bt=0!==r&&4>r?r:4,e(!0);var n=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=r,pa.transition=n}}function es(){return Ea().memoizedState}function ts(e,t,r){var n=ru(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))os(t,r);else if(null!==(r=Ti(e,t,r,n))){nu(r,e,n,tu()),is(r,t,n)}}function rs(e,t,r){var n=ru(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))os(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,sn(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ii(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Ti(e,t,o,n))&&(nu(r,e,n,o=tu()),is(r,t,n))}}function ns(e){var t=e.alternate;return e===va||null!==t&&t===va}function os(e,t){ba=ya=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function is(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var as={readContext:ji,useCallback:xa,useContext:xa,useEffect:xa,useImperativeHandle:xa,useInsertionEffect:xa,useLayoutEffect:xa,useMemo:xa,useReducer:xa,useRef:xa,useState:xa,useDebugValue:xa,useDeferredValue:xa,useTransition:xa,useMutableSource:xa,useSyncExternalStore:xa,useId:xa,unstable_isNewReconciler:!1},ss={readContext:ji,useCallback:function(e,t){return ja().memoizedState=[e,void 0===t?null:t],e},useContext:ji,useEffect:Ua,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Fa(4194308,4,Ka.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var r=ja();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ja();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,va,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ja().memoizedState=e},useState:za,useDebugValue:Za,useDeferredValue:function(e){return ja().memoizedState=e},useTransition:function(){var e=za(!1),t=e[0];return e=Ja.bind(null,e[1]),ja().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=va,o=ja();if(ii){if(void 0===r)throw Error(i(407));r=r()}else{if(r=t(),null===Cl)throw Error(i(349));30&ha||Ra(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Ua(Da.bind(null,n,a,e),[e]),n.flags|=2048,Wa(9,Na.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ja(),t=Cl.identifierPrefix;if(ii){var r=Qo;t=":"+t+"R"+(r=(Yo&~(1<<32-at(Yo)-1)).toString(32)+r),0<(r=wa++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=Oa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:ji,useCallback:Xa,useContext:ji,useEffect:Va,useImperativeHandle:$a,useInsertionEffect:Ga,useLayoutEffect:qa,useMemo:Ya,useReducer:Ta,useRef:Ba,useState:function(){return Ta(Ia)},useDebugValue:Za,useDeferredValue:function(e){return Qa(Ea(),ga.memoizedState,e)},useTransition:function(){return[Ta(Ia)[0],Ea().memoizedState]},useMutableSource:ka,useSyncExternalStore:_a,useId:es,unstable_isNewReconciler:!1},us={readContext:ji,useCallback:Xa,useContext:ji,useEffect:Va,useImperativeHandle:$a,useInsertionEffect:Ga,useLayoutEffect:qa,useMemo:Ya,useReducer:Ca,useRef:Ba,useState:function(){return Ca(Ia)},useDebugValue:Za,useDeferredValue:function(e){var t=Ea();return null===ga?t.memoizedState=e:Qa(t,ga.memoizedState,e)},useTransition:function(){return[Ca(Ia)[0],Ea().memoizedState]},useMutableSource:ka,useSyncExternalStore:_a,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var r="",n=t;do{r+=F(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function fs(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,r){(r=Ni(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Gl||(Gl=!0,ql=n),ds(0,t)},r}function vs(e,t,r){(r=Ni(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!=typeof n&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function gs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new ps;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=ju.bind(null,e,t,r),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,r,n,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ni(-1,1)).tag=2,Di(r,t,1))),r.lanes|=1),e)}var bs=w.ReactCurrentOwner,ws=!1;function Os(e,t,r,n){t.child=null===e?Qi(t,null,r,n):Yi(t,e.child,r,n)}function xs(e,t,r,n,o){r=r.render;var i=t.ref;return Pi(t,o),n=Aa(e,t,r,n,i,o),r=Pa(),null===e||ws?(ii&&r&&ti(t),t.flags|=1,Os(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gs(e,t,o))}function Ss(e,t,r,n,o){if(null===e){var i=r.type;return"function"!=typeof i||Ru(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Du(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,As(e,t,i,n,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(a,n)&&e.ref===t.ref)return Gs(e,t,o)}return t.flags|=1,(e=Nu(i,n)).ref=t.ref,e.return=t,t.child=e}function As(e,t,r,n,o){if(null!==e){var i=e.memoizedProps;if(ln(i,n)&&e.ref===t.ref){if(ws=!1,t.pendingProps=n=i,!(e.lanes&o))return t.lanes=e.lanes,Gs(e,t,o);131072&e.flags&&(ws=!0)}}return Es(e,t,r,n,o)}function Ps(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Eo(Nl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,Eo(Nl,Rl),Rl|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Eo(Nl,Rl),Rl|=r;else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Eo(Nl,Rl),Rl|=n;return Os(e,t,o,r),t.child}function js(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,r,n,o){var i=Ro(r)?ko:To.current;return i=_o(t,i),Pi(t,o),r=Aa(e,t,r,n,i,o),n=Pa(),null===e||ws?(ii&&n&&ti(t),t.flags|=1,Os(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gs(e,t,o))}function Is(e,t,r,n,o){if(Ro(r)){var i=!0;Lo(t)}else i=!1;if(Pi(t,o),null===t.stateNode)Vs(e,t),Vi(t,r,n),qi(t,r,n,o),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;"object"==typeof u&&null!==u?u=ji(u):u=_o(t,u=Ro(r)?ko:To.current);var c=r.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==u)&&Gi(t,a,n,u),ki=!1;var d=t.memoizedState;a.state=d,zi(t,n,a,o),l=t.memoizedState,s!==n||d!==l||Co.current||ki?("function"==typeof c&&(Fi(t,r,c,n),l=t.memoizedState),(s=ki||Ui(t,r,s,n,d,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Ri(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mi(t.type,s),a.props=u,f=t.pendingProps,d=a.context,"object"==typeof(l=r.contextType)&&null!==l?l=ji(l):l=_o(t,l=Ro(r)?ko:To.current);var p=r.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&Gi(t,a,n,l),ki=!1,d=t.memoizedState,a.state=d,zi(t,n,a,o);var h=t.memoizedState;s!==f||d!==h||Co.current||ki?("function"==typeof p&&(Fi(t,r,p,n),h=t.memoizedState),(u=ki||Ui(t,r,u,n,d,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),a.props=n,a.state=h,a.context=l,n=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Ts(e,t,r,n,i,o)}function Ts(e,t,r,n,o,i){js(e,t);var a=!!(128&t.flags);if(!n&&!a)return o&&zo(t,r,!1),Gs(e,t,i);n=t.stateNode,bs.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Yi(t,e.child,null,i),t.child=Yi(t,null,s,i)):Os(e,t,s,i),t.memoizedState=n.state,o&&zo(t,r,!0),t.child}function Cs(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),oa(e,t.containerInfo)}function ks(e,t,r,n,o){return hi(),vi(o),t.flags|=256,Os(e,t,r,n),t.child}var _s,Rs,Ns,Ds,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function zs(e,t,r){var n,o=t.pendingProps,a=la.current,s=!1,l=!!(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&!!(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Eo(la,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Lu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Mu(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(r),t.memoizedState=Ms,e):Ws(t,l));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,n=fs(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=Lu({mode:"visible",children:n.children},o,0,null),(a=Mu(a,o,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,1&t.mode&&Yi(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ms,a);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Bs(e,t,s,n=fs(a=Error(i(419)),n,void 0))}if(l=!!(s&e.childLanes),ws||l){if(null!==(n=Cl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(n.suspendedLanes|s)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ci(e,o),nu(n,e,o,-1))}return gu(),Bs(e,t,s,n=fs(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Iu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ni=t,ii=!0,ai=null,null!==e&&($o[Zo++]=Yo,$o[Zo++]=Qo,$o[Zo++]=Xo,Yo=e.id,Qo=e.overflow,Xo=t),t=Ws(t,n.children),t.flags|=4096,t)}(e,t,l,o,n,a,r);if(s){s=o.fallback,l=t.mode,n=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Nu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==n?s=Nu(n,s):(s=Mu(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=Nu(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ws(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,r,n){return null!==n&&vi(n),Yi(t,e.child,null,r),(e=Ws(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Ai(e.return,t,r)}function Hs(e,t,r,n,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Us(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Os(e,t,n.children,r),2&(n=la.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,r,t);else if(19===e.tag)Fs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Eo(la,n),1&t.mode)switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ua(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Hs(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Hs(t,!0,r,null,i);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(r=Nu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Nu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function qs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function $s(e,t,r){var n=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Ro(t.type)&&No(),Ks(t),null;case 3:return n=t.stateNode,ia(),jo(Co),jo(To),fa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(su(ai),ai=null))),Rs(e,t),Ks(t),null;case 5:sa(t);var o=na(ra.current);if(r=t.type,null!==e&&null!=t.stateNode)Ns(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(i(166));return Ks(t),null}if(e=na(ea.current),di(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[po]=t,n[ho]=a,e=!!(1&t.mode),r){case"dialog":Wn("cancel",n),Wn("close",n);break;case"iframe":case"object":case"embed":Wn("load",n);break;case"video":case"audio":for(o=0;o<Dn.length;o++)Wn(Dn[o],n);break;case"source":Wn("error",n);break;case"img":case"image":case"link":Wn("error",n),Wn("load",n);break;case"details":Wn("toggle",n);break;case"input":X(n,a),Wn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Wn("invalid",n);break;case"textarea":oe(n,a),Wn("invalid",n)}for(var l in ye(r,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?n.textContent!==u&&(!0!==a.suppressHydrationWarning&&Qn(n.textContent,u,e),o=["children",u]):"number"==typeof u&&n.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Qn(n.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Wn("scroll",n)}switch(r){case"input":q(n),J(n,a,!0);break;case"textarea":q(n),ae(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Jn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[po]=t,e[ho]=n,_s(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,n),r){case"dialog":Wn("cancel",e),Wn("close",e),o=n;break;case"iframe":case"object":case"embed":Wn("load",e),o=n;break;case"video":case"audio":for(o=0;o<Dn.length;o++)Wn(Dn[o],e);o=n;break;case"source":Wn("error",e),o=n;break;case"img":case"image":case"link":Wn("error",e),Wn("load",e),o=n;break;case"details":Wn("toggle",e),o=n;break;case"input":X(e,n),o=Z(e,n),Wn("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=L({},n,{value:void 0}),Wn("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),Wn("invalid",e)}for(a in ye(r,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==r||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Wn("scroll",e):null!=c&&b(e,a,c,l))}switch(r){case"input":q(e),J(e,n,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+V(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(i(166));if(r=na(ra.current),na(ea.current),di(t)){if(n=t.stateNode,r=t.memoizedProps,n[po]=t,(a=n.nodeValue!==r)&&null!==(e=ni))switch(e.tag){case 3:Qn(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qn(n.nodeValue,r,!!(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[po]=t,t.stateNode=n}return Ks(t),null;case 13:if(jo(la),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=di(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ai&&(su(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&la.current?0===Dl&&(Dl=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return ia(),Rs(e,t),null===e&&Hn(t.stateNode.containerInfo),Ks(t),null;case 10:return Si(t.type._context),Ks(t),null;case 19:if(jo(la),null===(a=t.memoizedState))return Ks(t),null;if(n=!!(128&t.flags),null===(l=a.rendering))if(n)qs(a,!1);else{if(0!==Dl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,qs(a,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Eo(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Ul&&(t.flags|=128,n=!0,qs(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ua(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ks(t),null}else 2*Ye()-a.renderingStartTime>Ul&&1073741824!==r&&(t.flags|=128,n=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=a.last)?r.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,r=la.current,Eo(la,n?1&r|2:1&r),t):(Ks(t),null);case 22:case 23:return du(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&Rl)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Zs(e,t){switch(ri(t),t.tag){case 1:return Ro(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),jo(Co),jo(To),fa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(jo(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return jo(la),null;case 4:return ia(),null;case 10:return Si(t.type._context),null;case 22:case 23:return du(),null;default:return null}}_s=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rs=function(){},Ns=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,na(ea.current);var i,a=null;switch(r){case"input":o=Z(e,o),n=Z(e,n),a=[];break;case"select":o=L({},o,{value:void 0}),n=L({},n,{value:void 0}),a=[];break;case"textarea":o=ne(e,o),n=ne(e,n),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Jn)}for(c in ye(r,n),r=null,o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var u=n[c];if(l=null!=o?o[c]:void 0,n.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(a||(a=[]),a.push(c,r)),r=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Wn("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ds=function(e,t,r,n){r!==n&&(t.flags|=4)};var Xs=!1,Ys=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){Pu(e,t,r)}else r.current=null}function tl(e,t,r){try{r()}catch(r){Pu(e,t,r)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,r,i)}o=o.next}while(o!==n)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function il(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[mo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Jn));else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var fl=null,dl=!1;function pl(e,t,r){for(r=r.child;null!==r;)hl(e,t,r),r=r.sibling}function hl(e,t,r){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,r)}catch(e){}switch(r.tag){case 5:Ys||el(r,t);case 6:var n=fl,o=dl;fl=null,pl(e,t,r),dl=o,null!==(fl=n)&&(dl?(e=fl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):fl.removeChild(r.stateNode));break;case 18:null!==fl&&(dl?(e=fl,r=r.stateNode,8===e.nodeType?lo(e.parentNode,r):1===e.nodeType&&lo(e,r),Ht(e)):lo(fl,r.stateNode));break;case 4:n=fl,o=dl,fl=r.stateNode.containerInfo,dl=!0,pl(e,t,r),fl=n,dl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&tl(r,t,a),o=o.next}while(o!==n)}pl(e,t,r);break;case 1:if(!Ys&&(el(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){Pu(r,t,e)}pl(e,t,r);break;case 21:pl(e,t,r);break;case 22:1&r.mode?(Ys=(n=Ys)||null!==r.memoizedState,pl(e,t,r),Ys=n):pl(e,t,r);break;default:pl(e,t,r)}}function vl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Qs),t.forEach((function(t){var n=Tu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function gl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:fl=l.stateNode,dl=!1;break e;case 3:case 4:fl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===fl)throw Error(i(160));hl(a,s,o),fl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Pu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&n){try{nl(3,e,e.return),ol(3,e)}catch(t){Pu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Pu(e,e.return,t)}}break;case 1:gl(t,e),yl(e),512&n&&null!==r&&el(r,r.return);break;case 5:if(gl(t,e),yl(e),512&n&&null!==r&&el(r,r.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Pu(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(o,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];"style"===f?ge(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,c)}switch(l){case"input":Q(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(o,!!a.multiple,a.defaultValue,!0):re(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Pu(e,e.return,t)}}break;case 6:if(gl(t,e),yl(e),4&n){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Pu(e,e.return,t)}}break;case 3:if(gl(t,e),yl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Pu(e,e.return,t)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Hl=Ye())),4&n&&vl(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Ys=(c=Ys)||f,gl(t,e),Ys=c):gl(t,e),yl(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Js=e,f=e.child;null!==f;){for(d=Js=f;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:el(p,p.return);var v=p.stateNode;if("function"==typeof v.componentWillUnmount){n=p,r=p.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Pu(n,r,e)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){xl(d);continue}}null!==h?(h.return=p,Js=h):xl(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,s=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=ve("display",s))}catch(t){Pu(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Pu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),yl(e),4&n&&vl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var n=r;break e}r=r.return}throw Error(i(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(de(o,""),n.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;ul(e,ll(e),a);break;default:throw Error(i(161))}}catch(t){Pu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,r){Js=e,wl(e,t,r)}function wl(e,t,r){for(var n=!!(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&n){var a=null!==o.memoizedState||Xs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Xs;var u=Ys;if(Xs=a,(Ys=l)&&!u)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(o):null!==l?(l.return=a,Js=l):Sl(o);for(;null!==i;)Js=i,wl(i,t,r),i=i.sibling;Js=o,Xs=s,Ys=u}Ol(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Js=i):Ol(e)}}function Ol(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ys||ol(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ys)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:mi(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Wi(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(i(163))}Ys||512&t.flags&&il(t)}catch(e){Pu(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Js=r;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ol(4,t)}catch(e){Pu(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){Pu(t,o,e)}}var i=t.return;try{il(t)}catch(e){Pu(t,i,e)}break;case 5:var a=t.return;try{il(t)}catch(e){Pu(t,a,e)}}}catch(e){Pu(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Al,Pl=Math.ceil,jl=w.ReactCurrentDispatcher,El=w.ReactCurrentOwner,Il=w.ReactCurrentBatchConfig,Tl=0,Cl=null,kl=null,_l=0,Rl=0,Nl=Po(0),Dl=0,Ml=null,Ll=0,zl=0,Wl=0,Bl=null,Fl=null,Hl=0,Ul=1/0,Vl=null,Gl=!1,ql=null,Kl=null,$l=!1,Zl=null,Xl=0,Yl=0,Ql=null,Jl=-1,eu=0;function tu(){return 6&Tl?Ye():-1!==Jl?Jl:Jl=Ye()}function ru(e){return 1&e.mode?2&Tl&&0!==_l?_l&-_l:null!==gi.transition?(0===eu&&(eu=vt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nu(e,t,r,n){if(50<Yl)throw Yl=0,Ql=null,Error(i(185));mt(e,r,n),2&Tl&&e===Cl||(e===Cl&&(!(2&Tl)&&(zl|=r),4===Dl&&lu(e,_l)),ou(e,n),1===r&&0===Tl&&!(1&t.mode)&&(Ul=Ye()+500,Bo&&Uo()))}function ou(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?s&r&&!(s&n)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var n=dt(e,e===Cl?_l:0);if(0===n)null!==r&&$e(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&$e(r),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(uu.bind(null,e)):Ho(uu.bind(null,e)),ao((function(){!(6&Tl)&&Uo()})),r=null;else{switch(wt(n)){case 1:r=Je;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Cu(r,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function iu(e,t){if(Jl=-1,eu=0,6&Tl)throw Error(i(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var n=dt(e,e===Cl?_l:0);if(0===n)return null;if(30&n||n&e.expiredLanes||t)t=mu(e,n);else{t=n;var o=Tl;Tl|=2;var a=vu();for(Cl===e&&_l===t||(Vl=null,Ul=Ye()+500,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}xi(),jl.current=a,Tl=o,null!==kl?t=0:(Cl=null,_l=0,t=Dl)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(n=o,t=au(e,o))),1===t)throw r=Ml,pu(e,0),lu(e,n),ou(e,Ye()),r;if(6===t)lu(e,n);else{if(o=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!sn(i(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=mu(e,n),2===t&&(a=ht(e),0!==a&&(n=a,t=au(e,a))),1!==t)))throw r=Ml,pu(e,0),lu(e,n),ou(e,Ye()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(i(345));case 2:case 5:xu(e,Fl,Vl);break;case 3:if(lu(e,n),(130023424&n)===n&&10<(t=Hl+500-Ye())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(xu.bind(null,e,Fl,Vl),t);break}xu(e,Fl,Vl);break;case 4:if(lu(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>o&&(o=s),n&=~a}if(n=o,10<(n=(120>(n=Ye()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Pl(n/1960))-n)){e.timeoutHandle=no(xu.bind(null,e,Fl,Vl),n);break}xu(e,Fl,Vl);break;default:throw Error(i(329))}}}return ou(e,Ye()),e.callbackNode===r?iu.bind(null,e):null}function au(e,t){var r=Bl;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Fl,Fl=r,null!==t&&su(t)),e}function su(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function lu(e,t){for(t&=~Wl,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function uu(e){if(6&Tl)throw Error(i(327));Su();var t=dt(e,0);if(!(1&t))return ou(e,Ye()),null;var r=mu(e,t);if(0!==e.tag&&2===r){var n=ht(e);0!==n&&(t=n,r=au(e,n))}if(1===r)throw r=Ml,pu(e,0),lu(e,t),ou(e,Ye()),r;if(6===r)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e,Fl,Vl),ou(e,Ye()),null}function cu(e,t){var r=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=r)&&(Ul=Ye()+500,Bo&&Uo())}}function fu(e){null!==Zl&&0===Zl.tag&&!(6&Tl)&&Su();var t=Tl;Tl|=1;var r=Il.transition,n=bt;try{if(Il.transition=null,bt=1,e)return e()}finally{bt=n,Il.transition=r,!(6&(Tl=t))&&Uo()}}function du(){Rl=Nl.current,jo(Nl)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==kl)for(r=kl.return;null!==r;){var n=r;switch(ri(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&No();break;case 3:ia(),jo(Co),jo(To),fa();break;case 5:sa(n);break;case 4:ia();break;case 13:case 19:jo(la);break;case 10:Si(n.type._context);break;case 22:case 23:du()}r=r.return}if(Cl=e,kl=e=Nu(e.current,null),_l=Rl=t,Dl=0,Ml=null,Wl=zl=Ll=0,Fl=Bl=null,null!==Ei){for(t=0;t<Ei.length;t++)if(null!==(n=(r=Ei[t]).interleaved)){r.interleaved=null;var o=n.next,i=r.pending;if(null!==i){var a=i.next;i.next=o,n.next=a}r.pending=n}Ei=null}return e}function hu(e,t){for(;;){var r=kl;try{if(xi(),da.current=as,ya){for(var n=va.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ya=!1}if(ha=0,ma=ga=va=null,ba=!1,wa=0,El.current=null,null===r||null===r.return){Dl=1,Ml=t,kl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=_l,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,f=l,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&gs(a,c,t),u=c;var v=(t=h).updateQueue;if(null===v){var g=new Set;g.add(u),t.updateQueue=g}else v.add(u);break e}if(!(1&t)){gs(a,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var m=ms(s);if(null!==m){!(65536&m.flags)&&(m.flags|=256),ys(m,s,l,0,t),vi(cs(u,l));break e}}a=u=cs(u,l),4!==Dl&&(Dl=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Li(a,hs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Kl&&Kl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Li(a,vs(a,l,t));break e}}a=a.return}while(null!==a)}Ou(r)}catch(e){t=e,kl===r&&null!==r&&(kl=r=r.return);continue}break}}function vu(){var e=jl.current;return jl.current=as,null===e?as:e}function gu(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Cl||!(268435455&Ll)&&!(268435455&zl)||lu(Cl,_l)}function mu(e,t){var r=Tl;Tl|=2;var n=vu();for(Cl===e&&_l===t||(Vl=null,pu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(xi(),Tl=r,jl.current=n,null!==kl)throw Error(i(261));return Cl=null,_l=0,Dl}function yu(){for(;null!==kl;)wu(kl)}function bu(){for(;null!==kl&&!Ze();)wu(kl)}function wu(e){var t=Al(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?Ou(e):kl=t,El.current=null}function Ou(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Zs(r,t)))return r.flags&=32767,void(kl=r);if(null===e)return Dl=6,void(kl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=$s(r,t,Rl)))return void(kl=r);if(null!==(t=t.sibling))return void(kl=t);kl=t=e}while(null!==t);0===Dl&&(Dl=5)}function xu(e,t,r){var n=bt,o=Il.transition;try{Il.transition=null,bt=1,function(e,t,r,n){do{Su()}while(null!==Zl);if(6&Tl)throw Error(i(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-at(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}(e,a),e===Cl&&(kl=Cl=null,_l=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||$l||($l=!0,Cu(tt,(function(){return Su(),null}))),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Il.transition,Il.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,El.current=null,function(e,t){if(eo=Vt,pn(e=dn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==r||0!==o&&3!==d.nodeType||(l=s+o),d!==a||0!==n&&3!==d.nodeType||(u=s+n),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++c===o&&(l=s),p===a&&++f===n&&(u=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Vt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var v=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var g=v.memoizedProps,m=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:mi(t.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Pu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}v=rl,rl=!1}(e,r),ml(r,e),hn(to),Vt=!!eo,to=eo=null,e.current=r,bl(r,e,o),Xe(),Tl=l,bt=s,Il.transition=a}else e.current=r;if($l&&($l=!1,Zl=e,Xl=o),a=e.pendingLanes,0===a&&(Kl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ou(e,Ye()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Gl)throw Gl=!1,e=ql,ql=null,e;!!(1&Xl)&&0!==e.tag&&Su(),a=e.pendingLanes,1&a?e===Ql?Yl++:(Yl=0,Ql=e):Yl=0,Uo()}(e,t,r,n)}finally{Il.transition=o,bt=n}return null}function Su(){if(null!==Zl){var e=wt(Xl),t=Il.transition,r=bt;try{if(Il.transition=null,bt=16>e?16:e,null===Zl)var n=!1;else{if(e=Zl,Zl=null,Xl=0,6&Tl)throw Error(i(331));var o=Tl;for(Tl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var f=Js;switch(f.tag){case 0:case 11:case 15:nl(8,f,a)}var d=f.child;if(null!==d)d.return=f,Js=d;else for(;null!==Js;){var p=(f=Js).sibling,h=f.return;if(al(f),f===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var v=a.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Pu(l,l.return,e)}if(l===s){Js=null;break e}var O=l.sibling;if(null!==O){O.return=l.return,Js=O;break e}Js=l.return}}if(Tl=o,Uo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}n=!0}return n}finally{bt=r,Il.transition=t}}return!1}function Au(e,t,r){e=Di(e,t=hs(0,t=cs(r,t),1),1),t=tu(),null!==e&&(mt(e,1,t),ou(e,t))}function Pu(e,t,r){if(3===e.tag)Au(e,e,r);else for(;null!==t;){if(3===t.tag){Au(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Kl||!Kl.has(n))){t=Di(t,e=vs(t,e=cs(r,e),1),1),e=tu(),null!==t&&(mt(t,1,e),ou(t,e));break}}t=t.return}}function ju(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&r,Cl===e&&(_l&r)===r&&(4===Dl||3===Dl&&(130023424&_l)===_l&&500>Ye()-Hl?pu(e,0):Wl|=r),ou(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var r=tu();null!==(e=Ci(e,t))&&(mt(e,t,r),ou(e,r))}function Iu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Eu(e,r)}function Tu(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(i(314))}null!==n&&n.delete(t),Eu(e,r)}function Cu(e,t){return Ke(e,t)}function ku(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _u(e,t,r,n){return new ku(e,t,r,n)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var r=e.alternate;return null===r?((r=_u(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Du(e,t,r,n,o,a){var s=2;if(n=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Mu(r.children,o,a,t);case A:s=8,o|=8;break;case P:return(e=_u(12,r,t,2|o)).elementType=P,e.lanes=a,e;case T:return(e=_u(13,r,t,o)).elementType=T,e.lanes=a,e;case C:return(e=_u(19,r,t,o)).elementType=C,e.lanes=a,e;case R:return Lu(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case j:s=10;break e;case E:s=9;break e;case I:s=11;break e;case k:s=14;break e;case _:s=16,n=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=_u(s,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Mu(e,t,r,n){return(e=_u(7,e,n,t)).lanes=r,e}function Lu(e,t,r,n){return(e=_u(22,e,n,t)).elementType=R,e.lanes=r,e.stateNode={isHidden:!1},e}function zu(e,t,r){return(e=_u(6,e,null,t)).lanes=r,e}function Wu(e,t,r){return(t=_u(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fu(e,t,r,n,o,i,a,s,l){return e=new Bu(e,t,r,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=_u(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},_i(i),e}function Hu(e){if(!e)return Io;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ro(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var r=e.type;if(Ro(r))return Mo(e,r,t)}return t}function Uu(e,t,r,n,o,i,a,s,l){return(e=Fu(r,n,!0,e,0,i,0,s,l)).context=Hu(null),r=e.current,(i=Ni(n=tu(),o=ru(r))).callback=null!=t?t:null,Di(r,i,o),e.current.lanes=o,mt(e,o,n),ou(e,n),e}function Vu(e,t,r,n){var o=t.current,i=tu(),a=ru(o);return r=Hu(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ni(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Di(o,t,a))&&(nu(e,o,a,i),Mi(e,o,a)),a}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Ku(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Al=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Co.current)ws=!0;else{if(!(e.lanes&r||128&t.flags))return ws=!1,function(e,t,r){switch(t.tag){case 3:Cs(t),hi();break;case 5:aa(t);break;case 1:Ro(t.type)&&Lo(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Eo(yi,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Eo(la,1&la.current),t.flags|=128,null):r&t.child.childLanes?zs(e,t,r):(Eo(la,1&la.current),null!==(e=Gs(e,t,r))?e.sibling:null);Eo(la,1&la.current);break;case 19:if(n=!!(r&t.childLanes),128&e.flags){if(n)return Us(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Eo(la,la.current),n)break;return null;case 22:case 23:return t.lanes=0,Ps(e,t,r)}return Gs(e,t,r)}(e,t,r);ws=!!(131072&e.flags)}else ws=!1,ii&&1048576&t.flags&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Vs(e,t),e=t.pendingProps;var o=_o(t,To.current);Pi(t,r),o=Aa(null,t,n,e,o,r);var a=Pa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ro(n)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,_i(t),o.updater=Hi,t.stateNode=o,o._reactInternals=t,qi(t,n,e,r),t=Ts(null,t,n,!0,a,r)):(t.tag=0,ii&&a&&ti(t),Os(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===k)return 14}return 2}(n),e=mi(n,e),o){case 0:t=Es(null,t,n,e,r);break e;case 1:t=Is(null,t,n,e,r);break e;case 11:t=xs(null,t,n,e,r);break e;case 14:t=Ss(null,t,n,mi(n.type,e),r);break e}throw Error(i(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,Es(e,t,n,o=t.elementType===n?o:mi(n,o),r);case 1:return n=t.type,o=t.pendingProps,Is(e,t,n,o=t.elementType===n?o:mi(n,o),r);case 3:e:{if(Cs(t),null===e)throw Error(i(387));n=t.pendingProps,o=(a=t.memoizedState).element,Ri(e,t),zi(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=ks(e,t,n,r,o=cs(Error(i(423)),t));break e}if(n!==o){t=ks(e,t,n,r,o=cs(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ni=t,ii=!0,ai=null,r=Qi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),n===o){t=Gs(e,t,r);break e}Os(e,t,n,r)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,ro(n,o)?s=null:null!==a&&ro(n,a)&&(t.flags|=32),js(e,t),Os(e,t,s,r),t.child;case 6:return null===e&&ci(t),null;case 13:return zs(e,t,r);case 4:return oa(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Yi(t,null,n,r):Os(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,xs(e,t,n,o=t.elementType===n?o:mi(n,o),r);case 7:return Os(e,t,t.pendingProps,r),t.child;case 8:case 12:return Os(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Eo(yi,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===o.children&&!Co.current){t=Gs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===n){if(1===a.tag){(u=Ni(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ai(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ai(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}Os(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Pi(t,r),n=n(o=ji(o)),t.flags|=1,Os(e,t,n,r),t.child;case 14:return o=mi(n=t.type,t.pendingProps),Ss(e,t,n,o=mi(n.type,o),r);case 15:return As(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:mi(n,o),Vs(e,t),t.tag=1,Ro(n)?(e=!0,Lo(t)):e=!1,Pi(t,r),Vi(t,n,o),qi(t,n,o,r),Ts(null,t,n,!0,e,r);case 19:return Us(e,t,r);case 22:return Ps(e,t,r)}throw Error(i(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Zu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Gu(a);s.call(e)}}Vu(t,a,e,o)}else a=function(e,t,r,n,o){if(o){if("function"==typeof n){var i=n;n=function(){var e=Gu(a);i.call(e)}}var a=Uu(t,n,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[vo]=a.current,Hn(8===e.nodeType?e.parentNode:e),fu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Gu(l);s.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[vo]=l.current,Hn(8===e.nodeType?e.parentNode:e),fu((function(){Vu(t,l,r,n)})),l}(r,t,e,o,n);return Gu(a)}Xu.prototype.render=Zu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Vu(e,t,null,null)},Xu.prototype.unmount=Zu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fu((function(){Vu(null,e,null,null)})),t[vo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=At();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Rt.length&&0!==t&&t<Rt[r].priority;r++);Rt.splice(r,0,e),0===r&&Lt(e)}},Ot=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ft(t.pendingLanes);0!==r&&(yt(t,1|r),ou(t,Ye()),!(6&Tl)&&(Ul=Ye()+500,Uo()))}break;case 13:fu((function(){var t=Ci(e,1);if(null!==t){var r=tu();nu(t,e,1,r)}})),Ku(e,1)}},xt=function(e){if(13===e.tag){var t=Ci(e,134217728);if(null!==t)nu(t,e,134217728,tu());Ku(e,134217728)}},St=function(e){if(13===e.tag){var t=ru(e),r=Ci(e,t);if(null!==r)nu(r,e,t,tu());Ku(e,t)}},At=function(){return bt},Pt=function(e,t){var r=bt;try{return bt=e,t()}finally{bt=r}},xe=function(e,t,r){switch(t){case"input":if(Q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=xo(n);if(!o)throw Error(i(90));K(n),Q(n,o)}}}break;case"textarea":ie(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ie=cu,Te=fu;var tc={usingClientEntryPoint:!1,Events:[wo,Oo,xo,je,Ee,cu]},rc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(nc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var r=!1,n="",o=$u;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fu(e,1,!1,null,0,r,0,n,o),e[vo]=t.current,Hn(8===e.nodeType?e.parentNode:e),new Zu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return fu(e)},t.hydrate=function(e,t,r){if(!Qu(t))throw Error(i(200));return ec(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Yu(e))throw Error(i(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",s=$u;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Uu(t,null,e,1,null!=r?r:null,o,0,a,s),e[vo]=t.current,Hn(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Xu(t)},t.render=function(e,t,r){if(!Qu(t))throw Error(i(200));return ec(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(i(40));return!!e._reactRootContainer&&(fu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[vo]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Qu(r))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},56289:(e,t,r)=>{"use strict";var n=r(8568);t.H=n.createRoot,n.hydrateRoot},8568:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(54392)},4674:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o}(r(78281)),i=h(r(43979)),a=h(r(8568)),s=h(r(30871)),l=r(96242),u=r(9807),c=r(49057),f=h(r(53861)),d=h(r(67581)),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function h(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function m(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=j(e);if(t){var i=j(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}(this,r)}}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(c,e);var t,r,n,i=A(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),E(P(t=i.call(this,e)),"onDragStart",(function(e,r){if((0,d.default)("Draggable: onDragStart: %j",r),!1===t.props.onStart(e,(0,u.createDraggableData)(P(t),r)))return!1;t.setState({dragging:!0,dragged:!0})})),E(P(t),"onDrag",(function(e,r){if(!t.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",r);var n=(0,u.createDraggableData)(P(t),r),o={x:n.x,y:n.y};if(t.props.bounds){var i=o.x,a=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var s=w((0,u.getBoundPosition)(P(t),o.x,o.y),2),l=s[0],c=s[1];o.x=l,o.y=c,o.slackX=t.state.slackX+(i-o.x),o.slackY=t.state.slackY+(a-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-t.state.x,n.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,n))return!1;t.setState(o)})),E(P(t),"onDragStop",(function(e,r){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,u.createDraggableData)(P(t),r)))return!1;(0,d.default)("Draggable: onDragStop: %j",r);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,i=o.x,a=o.y;n.x=i,n.y=a}t.setState(n)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:b({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=c,n=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.position,n=t.prevPropsPosition;return!r||n&&r.x===n.x&&r.y===n.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:b({},r)})}}],(r=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,r;return null!==(e=null===(t=this.props)||void 0===t||null===(r=t.nodeRef)||void 0===r?void 0:r.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,r=(t.axis,t.bounds,t.children),n=t.defaultPosition,i=t.defaultClassName,a=t.defaultClassNameDragging,c=t.defaultClassNameDragged,d=t.position,h=t.positionOffset,v=(t.scale,m(t,p)),y={},w=null,O=!Boolean(d)||this.state.dragging,x=d||n,S={x:(0,u.canDragX)(this)&&O?this.state.x:x.x,y:(0,u.canDragY)(this)&&O?this.state.y:x.y};this.state.isElementSVG?w=(0,l.createSVGTransform)(S,h):y=(0,l.createCSSTransform)(S,h);var A=(0,s.default)(r.props.className||"",i,(E(e={},a,this.state.dragging),E(e,c,this.state.dragged),e));return o.createElement(f.default,g({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(r),{className:A,style:b(b({},r.props.style),y),transform:w}))}}])&&x(t.prototype,r),n&&x(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);t.default=I,E(I,"displayName","Draggable"),E(I,"propTypes",b(b({},f.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),E(I,"defaultProps",b(b({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},53861:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o}(r(78281)),i=f(r(43979)),a=f(r(8568)),s=r(96242),l=r(9807),u=r(49057),c=f(r(67581));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,r)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O={start:"touchstart",move:"touchmove",stop:"touchend"},x={start:"mousedown",move:"mousemove",stop:"mouseup"},S=x,A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(u,e);var t,r,n,i=m(u);function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(y(e=i.call.apply(i,[this].concat(r))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),w(y(e),"mounted",!1),w(y(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var r=e.findDOMNode();if(!r||!r.ownerDocument||!r.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var n=r.ownerDocument;if(!(e.props.disabled||!(t.target instanceof n.defaultView.Node)||e.props.handle&&!(0,s.matchesSelectorAndParentsTo)(t.target,e.props.handle,r)||e.props.cancel&&(0,s.matchesSelectorAndParentsTo)(t.target,e.props.cancel,r))){"touchstart"===t.type&&t.preventDefault();var o=(0,s.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,l.getControlPosition)(t,o,y(e));if(null!=i){var a=i.x,u=i.y,f=(0,l.createCoreData)(y(e),a,u);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(n),e.setState({dragging:!0,lastX:a,lastY:u}),(0,s.addEvent)(n,S.move,e.handleDrag),(0,s.addEvent)(n,S.stop,e.handleDragStop))}}})),w(y(e),"handleDrag",(function(t){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,y(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var i=n-e.state.lastX,a=o-e.state.lastY,s=p((0,l.snapToGrid)(e.props.grid,i,a),2);if(i=s[0],a=s[1],!i&&!a)return;n=e.state.lastX+i,o=e.state.lastY+a}var u=(0,l.createCoreData)(y(e),n,o);if((0,c.default)("DraggableCore: handleDrag: %j",u),!1!==e.props.onDrag(t,u)&&!1!==e.mounted)e.setState({lastX:n,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),w(y(e),"handleDragStop",(function(t){if(e.state.dragging){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,y(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var i=n-e.state.lastX||0,a=o-e.state.lastY||0,u=p((0,l.snapToGrid)(e.props.grid,i,a),2);i=u[0],a=u[1],n=e.state.lastX+i,o=e.state.lastY+a}var f=(0,l.createCoreData)(y(e),n,o);if(!1===e.props.onStop(t,f)||!1===e.mounted)return!1;var d=e.findDOMNode();d&&e.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(d.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",f),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),d&&((0,c.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(d.ownerDocument,S.move,e.handleDrag),(0,s.removeEvent)(d.ownerDocument,S.stop,e.handleDragStop))}}})),w(y(e),"onMouseDown",(function(t){return S=x,e.handleDragStart(t)})),w(y(e),"onMouseUp",(function(t){return S=x,e.handleDragStop(t)})),w(y(e),"onTouchStart",(function(t){return S=O,e.handleDragStart(t)})),w(y(e),"onTouchEnd",(function(t){return S=O,e.handleDragStop(t)})),e}return t=u,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,s.addEvent)(e,O.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,s.removeEvent)(t,x.move,this.handleDrag),(0,s.removeEvent)(t,O.move,this.handleDrag),(0,s.removeEvent)(t,x.stop,this.handleDragStop),(0,s.removeEvent)(t,O.stop,this.handleDragStop),(0,s.removeEvent)(e,O.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,r;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(r=t.nodeRef)||void 0===r?void 0:r.current:a.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Component);t.default=A,w(A,"displayName","DraggableCore"),w(A,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),w(A,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},43111:(e,t,r)=>{"use strict";var n=r(4674),o=n.default,i=n.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},96242:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=p,t.addEvent=function(e,t,r,n){if(!e)return;var o=l({capture:!0},n);e.addEventListener?e.addEventListener(t,r,o):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&p(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){var r=d(e,t,"px");return u({},(0,i.browserPrefixToKey)("transform",i.default),r)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=d,t.innerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingTop),t-=(0,o.int)(r.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingLeft),t-=(0,o.int)(r.paddingRight)},t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,r){var n=e;do{if(f(n,t))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1},t.offsetXYFromParent=function(e,t,r){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-n.left)/r,i=(e.clientY+t.scrollTop-n.top)/r;return{x:o,y:i}},t.outerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderTopWidth),t+=(0,o.int)(r.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderLeftWidth),t+=(0,o.int)(r.borderRightWidth)},t.removeClassName=h,t.removeEvent=function(e,t,r,n){if(!e)return;var o=l({capture:!0},n);e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var o=r(49057),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,r&&r.set(e,o);return o}(r(59903));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c="";function f(e,t){return c||(c=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[c])&&e[c](t)}function d(e,t,r){var n=e.x,o=e.y,i="translate(".concat(n).concat(r,",").concat(o).concat(r,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+r),s="".concat("string"==typeof t.y?t.y:t.y+r);i="translate(".concat(a,", ").concat(s,")")+i}return i}function p(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},59903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=n;var r=["Moz","Webkit","O","ms"];function n(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var i=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(n in i)return"";for(var a=0;a<r.length;a++)if(o(n,r[a])in i)return r[a];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",r=!0,n=0;n<e.length;n++)r?(t+=e[n].toUpperCase(),r=!1):"-"===e[n]?r=!0:t+=e[n];return t}(e)):e}var i=n();t.default=i},67581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},9807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,r){var o=e.state,a=!(0,n.isNum)(o.lastX),s=i(e);return a?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:r,x:t,y:r}:{node:s,deltaX:t-o.lastX,deltaY:r-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:r}},t.createDraggableData=function(e,t){var r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,r){if(!e.props.bounds)return[t,r];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var s=i(e);if("string"==typeof a){var l,u=s.ownerDocument,c=u.defaultView;if(!((l="parent"===a?s.parentNode:u.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=l,d=c.getComputedStyle(s),p=c.getComputedStyle(f);a={left:-s.offsetLeft+(0,n.int)(p.paddingLeft)+(0,n.int)(d.marginLeft),top:-s.offsetTop+(0,n.int)(p.paddingTop)+(0,n.int)(d.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(s)-s.offsetLeft+(0,n.int)(p.paddingRight)-(0,n.int)(d.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(s)-s.offsetTop+(0,n.int)(p.paddingBottom)-(0,n.int)(d.marginBottom)}}(0,n.isNum)(a.right)&&(t=Math.min(t,a.right));(0,n.isNum)(a.bottom)&&(r=Math.min(r,a.bottom));(0,n.isNum)(a.left)&&(t=Math.max(t,a.left));(0,n.isNum)(a.top)&&(r=Math.max(r,a.top));return[t,r]},t.getControlPosition=function(e,t,r){var n="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!n)return null;var a=i(r),s=r.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(n||e,s,r.props.scale)},t.snapToGrid=function(e,t,r){var n=Math.round(t/e[0])*e[0],o=Math.round(r/e[1])*e[1];return[n,o]};var n=r(49057),o=r(96242);function i(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},49057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,r){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(r," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var r=0,n=e.length;r<n;r++)if(t.apply(t,[e[r],r,e]))return e[r]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},30871:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}r.r(t),r.d(t,{clsx:()=>o,default:()=>i});const i=o},23420:function(e,t,r){!function(e,t,r,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?i(Object(t),!0).forEach((function(r){c.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function s(e){var t=e.srcList,r=e.imgPromise,o=void 0===r?p({decode:!0}):r,i=e.useSuspense,s=void 0===i||i,l=n.useState(!1)[1],u=h(v(t)),c=u.join("");if(g[c]||(g[c]={promise:m(u,o),cache:"pending",error:null}),"resolved"===g[c].cache)return{src:g[c].src,isLoading:!1,error:null};if("rejected"===g[c].cache){if(s)throw g[c].error;return{isLoading:!1,error:g[c].error,src:void 0}}if(g[c].promise.then((function(e){g[c]=a(a({},g[c]),{},{cache:"resolved",src:e}),s||l(c)})).catch((function(e){g[c]=a(a({},g[c]),{},{cache:"rejected",error:e}),s||l(c)})),s)throw g[c].promise;return{isLoading:!0,src:void 0,error:null}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?l(Object(t),!0).forEach((function(r){c.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}var c=o(t),f=o(r),d=o(n),p=function(e){var t=e.decode,r=e.crossOrigin,n=void 0===r?"":r;return function(e){return new Promise((function(r,o){var i=new Image;n&&(i.crossOrigin=n),i.onload=function(){(void 0===t||t)&&i.decode?i.decode().then(r).catch(o):r()},i.onerror=o,i.src=e}))}},h=function(e){return e.filter((function(e){return e}))},v=function(e){return Array.isArray(e)?e:[e]},g={},m=function(e,t){var r=!1;return new Promise((function(n,o){var i=function(e){return t(e).then((function(){r=!0,n(e)}))};e.reduce((function(e,t){return e.catch((function(){if(!r)return i(t)}))}),i(e.shift())).catch(o)}))},y=["decode","src","loader","unloader","container","loaderContainer","unloaderContainer","imgPromise","crossorigin","useSuspense"],b=function(e){return e};e.Img=function(e){var t=e.decode,r=e.src,n=void 0===r?[]:r,o=e.loader,i=void 0===o?null:o,a=e.unloader,l=void 0===a?null:a,c=e.container,h=void 0===c?b:c,v=e.loaderContainer,g=void 0===v?b:v,m=e.unloaderContainer,w=void 0===m?b:m,O=e.imgPromise,x=e.crossorigin,S=e.useSuspense,A=void 0!==S&&S,P=f.default(e,y),j=s({srcList:n,imgPromise:O=O||p({decode:!(void 0!==t)||t,crossOrigin:x}),useSuspense:A}),E=j.src,I=j.isLoading;return E?h(d.default.createElement("img",u({src:E},P))):!A&&I?g(i):!A&&l?w(l):null},e.useImage=s,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(90068),r(84376),r(78281))},12544:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case v:case h:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ForwardRef=f,t.Memo=h,t.isContextConsumer=function(e){return m(e)===u}},38428:(e,t,r)=>{"use strict";e.exports=r(12544)},63859:(e,t,r)=>{"use strict";t.A=void 0;var n,o=(n=r(78281))&&n.__esModule?n:{default:n};function i(e){return i="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},i(e)}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){d(e,t,r[t])}))}return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function c(e){return c=Object.getPrototypeOf||function(e){return e.__proto__},c(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p={position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden",zIndex:-1,visibility:"hidden",pointerEvents:"none"},h={position:"absolute",left:0,top:0,transition:"0s"};var v=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return u(n,(r=n=u(this,(e=c(t)).call.apply(e,[this].concat(i))),d(f(f(n)),"_expandRef",null),d(f(f(n)),"_shrinkRef",null),d(f(f(n)),"_node",null),d(f(f(n)),"_lastWidth",void 0),d(f(f(n)),"_lastHeight",void 0),d(f(f(n)),"_lastRect",void 0),d(f(f(n)),"_hasResize",!1),d(f(f(n)),"_handleScroll",(function(e){(n.props.onPosition||n.props.onReflow||n.props.onResize)&&(n._globalScollTarget(e.target)||n._refScrollTarget(e.target)||n._ancestorScollTarget(e.target))&&n._reflow()})),d(f(f(n)),"_globalScollTarget",(function(e){return e instanceof Node&&(n.props.onPosition||n.props.onReflow)&&(e===document||e===document.documentElement||e===document.body)})),d(f(f(n)),"_refScrollTarget",(function(e){if(e instanceof HTMLElement&&(e===n._expandRef||e===n._shrinkRef)){var t=e.offsetWidth,r=e.offsetHeight;if(t!==n._lastWidth||r!==n._lastHeight)return n._lastWidth=t,n._lastHeight=r,n._reset(n._expandRef),n._reset(n._shrinkRef),!0}return!1})),d(f(f(n)),"_ancestorScollTarget",(function(e){return e instanceof Node&&(n.props.onPosition||n.props.onReflow)&&n._node&&function(e,t){for(var r=e.parentNode;r;){if(r===t)return!0;r=r.parentNode}return!1}(n._node,e)})),d(f(f(n)),"_reflow",(function(){if(n._node&&n._node.parentNode instanceof Element){var e=n._node.parentNode.getBoundingClientRect(),t=!0,r=!0;n._lastRect&&(t=e.width!==n._lastRect.width||e.height!==n._lastRect.height,r=e.top!==n._lastRect.top||e.left!==n._lastRect.left),n._lastRect=e,t&&n.props.onResize&&n.props.onResize(e),r&&n.props.onPosition&&n.props.onPosition(e),(t||r)&&n.props.onReflow&&n.props.onReflow(e)}})),d(f(f(n)),"_handleRef",(function(e){n._node=e})),d(f(f(n)),"_handleExpandRef",(function(e){n._reset(e),n._expandRef=e})),d(f(f(n)),"_handleShrinkRef",(function(e){n._reset(e),n._shrinkRef=e})),r))}var r,n,i;return r=t,(n=[{key:"componentDidMount",value:function(){this._reflow(),window.addEventListener("scroll",this._handleScroll,!0),(this.props.onPosition||this.props.onReflow)&&(window.addEventListener("resize",this._reflow,!0),this._hasResize=!0)}},{key:"componentDidUpdate",value:function(){!this.props.onPosition&&!this.props.onReflow||this._hasResize?this.props.onPosition||this.props.onReflow||!this._hasResize||(window.removeEventListener("resize",this._reflow,!0),this._hasResize=!1):(window.addEventListener("resize",this._reflow,!0),this._hasResize=!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this._handleScroll,!0),this._hasResize&&window.removeEventListener("resize",this._reflow,!0)}},{key:"_reset",value:function(e){e&&(e.scrollLeft=1e5,e.scrollTop=1e5)}},{key:"render",value:function(){return this.props.onResize||this.props.onReflow?o.default.createElement("div",{style:p,ref:this._handleRef},o.default.createElement("div",{ref:this._handleExpandRef,style:p},o.default.createElement("div",{style:a({},h,{width:1e5,height:1e5})})),o.default.createElement("div",{ref:this._handleShrinkRef,style:p},o.default.createElement("div",{style:a({},h,{width:"200%",height:"200%"})}))):o.default.createElement("noscript",{ref:this._handleRef})}}])&&l(r.prototype,n),i&&l(r,i),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");s(e.prototype,t&&t.prototype),t&&s(e,t)}(t,e),t}(o.default.Component);d(v,"displayName","ResizeObserver");var g=v;t.A=g},54224:(e,t,r)=>{"use strict";r.d(t,{p:()=>k});var n=r(78281),o=r(43111),i=r.n(o),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},l={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return a(t,e),t.prototype.render=function(){return n.createElement("div",{className:this.props.className||"",style:s(s({position:"absolute",userSelect:"none"},l[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(n.PureComponent),c=r(38572),f=r.n(c),d=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)},h={width:"auto",height:"auto"},v=f()((function(e,t,r){return Math.max(Math.min(e,r),t)})),g=f()((function(e,t){return Math.round(e/t)*t})),m=f()((function(e,t){return new RegExp(e,"i").test(t)})),y=function(e){return Boolean(e.touches&&e.touches.length)},b=f()((function(e,t,r){void 0===r&&(r=0);var n=t.reduce((function(r,n,o){return Math.abs(n-e)<Math.abs(t[r]-e)?o:r}),0),o=Math.abs(t[n]-e);return 0===r||o<r?t[n]:e})),w=f()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),O=f()((function(e){return"auto"===(e=e.toString())||w(e,"px")||w(e,"%")||w(e,"vh")||w(e,"vw")||w(e,"vmax")||w(e,"vmin")?e:e+"px"})),x=function(e,t,r,n){if(e&&"string"==typeof e){if(w(e,"px"))return Number(e.replace("px",""));if(w(e,"%"))return t*(Number(e.replace("%",""))/100);if(w(e,"vw"))return r*(Number(e.replace("vw",""))/100);if(w(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},S=f()((function(e,t,r,n,o,i,a){return n=x(n,e.width,t,r),o=x(o,e.height,t,r),i=x(i,e.width,t,r),a=x(a,e.height,t,r),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}})),A=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],P="__resizable_base__",j=function(e){function t(t){var r=e.call(this,t)||this;return r.ratio=1,r.resizable=null,r.parentLeft=0,r.parentTop=0,r.resizableLeft=0,r.resizableRight=0,r.resizableTop=0,r.resizableBottom=0,r.targetLeft=0,r.targetTop=0,r.appendBase=function(){if(!r.resizable||!r.window)return null;var e=r.parentNode;if(!e)return null;var t=r.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(P):t.className+=P,e.appendChild(t),t},r.removeBase=function(e){var t=r.parentNode;t&&t.removeChild(e)},r.ref=function(e){e&&(r.resizable=e)},r.state={isResizing:!1,width:void 0===(r.propsSize&&r.propsSize.width)?"auto":r.propsSize&&r.propsSize.width,height:void 0===(r.propsSize&&r.propsSize.height)?"auto":r.propsSize&&r.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},r.onResizeStart=r.onResizeStart.bind(r),r.onMouseMove=r.onMouseMove.bind(r),r.onMouseUp=r.onMouseUp.bind(r),r}return d(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||h},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,n=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:r,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,r=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&w(e.propsSize[t].toString(),"%")){if(w(e.state[t].toString(),"%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return O(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?O(t.width):r("width"),height:t&&void 0!==t.height&&!this.state.isResizing?O(t.height):r("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,r=this.parentNode.style.flexWrap;"wrap"!==r&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=r),this.removeBase(e),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var r=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==r&&"auto"!==r?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var r,n,o=this.props.boundsByDirection,i=this.state.direction,a=o&&m("left",i),s=o&&m("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(r=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),n=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(r=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(r=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return r&&Number.isFinite(r)&&(e=e&&e<r?e:r),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var r=this.props.scale||1,n=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,f=a.width,d=a.height,p=u||0,h=c||0;return m("right",i)&&(f=a.width+(e-a.x)*n/r,l&&(d=(f-h)/this.ratio+p)),m("left",i)&&(f=a.width-(e-a.x)*n/r,l&&(d=(f-h)/this.ratio+p)),m("bottom",i)&&(d=a.height+(t-a.y)*n/r,l&&(f=(d-p)*this.ratio+h)),m("top",i)&&(d=a.height-(t-a.y)*n/r,l&&(f=(d-p)*this.ratio+h)),{newWidth:f,newHeight:d}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,r,n){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===n.width?10:n.width,u=void 0===r.width||r.width<0?e:r.width,c=void 0===n.height?10:n.height,f=void 0===r.height||r.height<0?t:r.height,d=a||0,p=s||0;if(i){var h=(c-d)*this.ratio+p,g=(f-d)*this.ratio+p,m=(l-p)/this.ratio+d,y=(u-p)/this.ratio+d,b=Math.max(l,h),w=Math.min(u,g),O=Math.max(c,m),x=Math.min(f,y);e=v(e,b,w),t=v(t,O,x)}else e=v(e,l,u),t=v(t,c,f);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left,this.targetTop=r.top}if(this.resizable){var n=this.resizable.getBoundingClientRect(),o=n.left,i=n.top,a=n.right,s=n.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var r,n=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&y(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",r=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:n,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:p(p({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:r};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&y(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,r=t.maxWidth,n=t.maxHeight,o=t.minWidth,i=t.minHeight,a=y(e)?e.touches[0].clientX:e.clientX,s=y(e)?e.touches[0].clientY:e.clientY,l=this.state,u=l.direction,c=l.original,f=l.width,d=l.height,p=this.getParentSize(),h=S(p,this.window.innerWidth,this.window.innerHeight,r,n,o,i);r=h.maxWidth,n=h.maxHeight,o=h.minWidth,i=h.minHeight;var v=this.calculateNewSizeFromDirection(a,s),m=v.newHeight,O=v.newWidth,x=this.calculateNewMaxFromBoundary(r,n);this.props.snap&&this.props.snap.x&&(O=b(O,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(m=b(m,this.props.snap.y,this.props.snapGap));var A=this.calculateNewSizeFromAspectRatio(O,m,{width:x.maxWidth,height:x.maxHeight},{width:o,height:i});if(O=A.newWidth,m=A.newHeight,this.props.grid){var P=g(O,this.props.grid[0]),j=g(m,this.props.grid[1]),E=this.props.snapGap||0;O=0===E||Math.abs(P-O)<=E?P:O,m=0===E||Math.abs(j-m)<=E?j:m}var I={width:O-c.width,height:m-c.height};if(f&&"string"==typeof f)if(w(f,"%"))O=O/p.width*100+"%";else if(w(f,"vw")){O=O/this.window.innerWidth*100+"vw"}else if(w(f,"vh")){O=O/this.window.innerHeight*100+"vh"}if(d&&"string"==typeof d)if(w(d,"%"))m=m/p.height*100+"%";else if(w(d,"vw")){m=m/this.window.innerWidth*100+"vw"}else if(w(d,"vh")){m=m/this.window.innerHeight*100+"vh"}var T={width:this.createSizeForCssProperty(O,"width"),height:this.createSizeForCssProperty(m,"height")};"row"===this.flexDir?T.flexBasis=T.width:"column"===this.flexDir&&(T.flexBasis=T.height),this.setState(T),this.props.onResize&&this.props.onResize(e,u,this.resizable,I)}},t.prototype.onMouseUp=function(e){var t=this.state,r=t.isResizing,n=t.direction,o=t.original;if(r&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:p(p({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,r=t.enable,o=t.handleStyles,i=t.handleClasses,a=t.handleWrapperStyle,s=t.handleWrapperClass,l=t.handleComponent;if(!r)return null;var c=Object.keys(r).map((function(t){return!1!==r[t]?n.createElement(u,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:o&&o[t],className:i&&i[t]},l&&l[t]?l[t]:null):null}));return n.createElement("div",{className:s,style:a},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,r){return-1!==A.indexOf(r)||(t[r]=e.props[r]),t}),{}),r=p(p(p({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return n.createElement(o,p({ref:this.ref,style:r,className:this.props.className},t),this.state.isResizing&&n.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(n.PureComponent),E=function(e,t){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},E(e,t)};var I=function(){return I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)};var T=i(),C={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},k=function(e){function t(t){var r=e.call(this,t)||this;return r.resizingPosition={x:0,y:0},r.offsetFromParent={left:0,top:0},r.resizableElement={current:null},r.originalPosition={x:0,y:0},r.refDraggable=function(e){e&&(r.draggable=e)},r.refResizable=function(e){e&&(r.resizable=e,r.resizableElement.current=e.resizable)},r.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},r.onResizeStart=r.onResizeStart.bind(r),r.onResize=r.onResize.bind(r),r.onResizeStop=r.onResizeStop.bind(r),r.onDragStart=r.onDragStart.bind(r),r.onDrag=r.onDrag.bind(r),r.onDragStop=r.onDragStop.bind(r),r.getMaxSizesFromProps=r.getMaxSizesFromProps.bind(r),r}return function(e,t){function r(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){this.updateOffsetFromParent();var e=this.offsetFromParent,t=e.left,r=e.top,n=this.getDraggablePosition(),o=n.x,i=n.y;this.draggable.setState({x:o-t,y:i-r}),this.forceUpdate()},t.prototype.getDraggablePosition=function(){var e=this.draggable.state;return{x:e.x,y:e.y}},t.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},t.prototype.getParentSize=function(){return this.resizable.getParentSize()},t.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},t.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},t.prototype.getOffsetHeight=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/t;case"body":return document.body.offsetHeight/t;default:return e.offsetHeight}},t.prototype.getOffsetWidth=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/t;case"body":return document.body.offsetWidth/t;default:return e.offsetWidth}},t.prototype.onDragStart=function(e,t){this.props.onDragStart&&this.props.onDragStart(e,t);var r=this.getDraggablePosition();if(this.originalPosition=r,this.props.bounds){var n,o=this.getParent(),i=this.props.scale;if("parent"===this.props.bounds)n=o;else{if("body"===this.props.bounds){var a=o.getBoundingClientRect(),s=a.left,l=a.top,u=document.body.getBoundingClientRect(),c=-(s-o.offsetLeft*i-u.left)/i,f=-(l-o.offsetTop*i-u.top)/i,d=(document.body.offsetWidth-this.resizable.size.width*i)/i+c,p=(document.body.offsetHeight-this.resizable.size.height*i)/i+f;return this.setState({bounds:{top:f,right:d,bottom:p,left:c}})}if("window"===this.props.bounds){if(!this.resizable)return;var h=o.getBoundingClientRect(),v=h.left,g=h.top,m=-(v-o.offsetLeft*i)/i,y=-(g-o.offsetTop*i)/i;d=(window.innerWidth-this.resizable.size.width*i)/i+m,p=(window.innerHeight-this.resizable.size.height*i)/i+y;return this.setState({bounds:{top:y,right:d,bottom:p,left:m}})}"string"==typeof this.props.bounds?n=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(n=this.props.bounds)}if(n instanceof HTMLElement&&o instanceof HTMLElement){var b=n.getBoundingClientRect(),w=b.left,O=b.top,x=o.getBoundingClientRect(),S=(w-x.left)/i,A=O-x.top;if(this.resizable){this.updateOffsetFromParent();var P=this.offsetFromParent;this.setState({bounds:{top:A-P.top,right:S+(n.offsetWidth-this.resizable.size.width)-P.left/i,bottom:A+(n.offsetHeight-this.resizable.size.height)-P.top,left:S-P.left/i}})}}}},t.prototype.onDrag=function(e,t){if(this.props.onDrag){var r=this.offsetFromParent,n=r.left,o=r.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDrag(e,I(I({},t),{x:t.x+n,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDrag(e,I(I({},t),{x:this.originalPosition.x+n,y:t.y+o,deltaX:0})):void 0:this.props.onDrag(e,I(I({},t),{x:t.x-n,y:t.y-o}))}},t.prototype.onDragStop=function(e,t){if(this.props.onDragStop){var r=this.offsetFromParent,n=r.left,o=r.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDragStop(e,I(I({},t),{x:t.x+n,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDragStop(e,I(I({},t),{x:this.originalPosition.x+n,y:t.y+o,deltaX:0})):void 0:this.props.onDragStop(e,I(I({},t),{x:t.x+n,y:t.y+o}))}},t.prototype.onResizeStart=function(e,t,r){e.stopPropagation(),this.setState({resizing:!0});var n=this.props.scale,o=this.offsetFromParent,i=this.getDraggablePosition();if(this.resizingPosition={x:i.x+o.left,y:i.y+o.top},this.originalPosition=i,this.props.bounds){var a=this.getParent(),s=void 0;"parent"===this.props.bounds?s=a:"body"===this.props.bounds?s=document.body:"window"===this.props.bounds?s=window:"string"==typeof this.props.bounds?s=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(s=this.props.bounds);var l=this.getSelfElement();if(l instanceof Element&&(s instanceof HTMLElement||s===window)&&a instanceof HTMLElement){var u=this.getMaxSizesFromProps(),c=u.maxWidth,f=u.maxHeight,d=this.getParentSize();if(c&&"string"==typeof c)if(c.endsWith("%")){var p=Number(c.replace("%",""))/100;c=d.width*p}else c.endsWith("px")&&(c=Number(c.replace("px","")));if(f&&"string"==typeof f)if(f.endsWith("%")){p=Number(f.replace("%",""))/100;f=d.width*p}else f.endsWith("px")&&(f=Number(f.replace("px","")));var h=l.getBoundingClientRect(),v=h.left,g=h.top,m="window"===this.props.bounds?{left:0,top:0}:s.getBoundingClientRect(),y=m.left,b=m.top,w=this.getOffsetWidth(s),O=this.getOffsetHeight(s),x=t.toLowerCase().endsWith("left"),S=t.toLowerCase().endsWith("right"),A=t.startsWith("top"),P=t.startsWith("bottom");if((x||A)&&this.resizable){var j=(v-y)/n+this.resizable.size.width;this.setState({maxWidth:j>Number(c)?c:j})}if(S||this.props.lockAspectRatio&&!x&&!A){j=w+(y-v)/n;this.setState({maxWidth:j>Number(c)?c:j})}if((A||x)&&this.resizable){j=(g-b)/n+this.resizable.size.height;this.setState({maxHeight:j>Number(f)?f:j})}if(P||this.props.lockAspectRatio&&!A&&!x){j=O+(b-g)/n;this.setState({maxHeight:j>Number(f)?f:j})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,r)},t.prototype.onResize=function(e,t,r,n){var o={x:this.originalPosition.x,y:this.originalPosition.y},i=-n.width,a=-n.height;-1!==["top","left","topLeft","bottomLeft","topRight"].indexOf(t)&&("bottomLeft"===t?o.x+=i:("topRight"===t||(o.x+=i),o.y+=a)),o.x===this.draggable.state.x&&o.y===this.draggable.state.y||this.draggable.setState(o),this.updateOffsetFromParent();var s=this.offsetFromParent,l=this.getDraggablePosition().x+s.left,u=this.getDraggablePosition().y+s.top;this.resizingPosition={x:l,y:u},this.props.onResize&&this.props.onResize(e,t,r,n,{x:l,y:u})},t.prototype.onResizeStop=function(e,t,r,n){this.setState({resizing:!1});var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,r,n,this.resizingPosition)},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.updateOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),r=this.getSelfElement();if(!t||null===r)return{top:0,left:0};var n=t.getBoundingClientRect(),o=n.left,i=n.top,a=r.getBoundingClientRect(),s=this.getDraggablePosition(),l=t.scrollLeft,u=t.scrollTop;this.offsetFromParent={left:a.left-o+l-s.x*e,top:a.top-i+u-s.y*e}},t.prototype.render=function(){var e=this.props,t=e.disableDragging,r=e.style,o=e.dragHandleClassName,i=e.position,a=e.onMouseDown,s=e.onMouseUp,l=e.dragAxis,u=e.dragGrid,c=e.bounds,f=e.enableUserSelectHack,d=e.cancel,p=e.children,h=(e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop,e.resizeHandleStyles),v=e.resizeHandleClasses,g=e.resizeHandleComponent,m=e.enableResizing,y=e.resizeGrid,b=e.resizeHandleWrapperClass,w=e.resizeHandleWrapperStyle,O=e.scale,x=e.allowAnyClick,S=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick"]),A=this.props.default?I({},this.props.default):void 0;delete S.default;var P,E=t||o?{cursor:"auto"}:{cursor:"move"},k=I(I(I({},C),E),r),_=this.offsetFromParent,R=_.left,N=_.top;i&&(P={x:i.x-R,y:i.y-N});var D,M=this.state.resizing?void 0:P,L=this.state.resizing?"both":l;return(0,n.createElement)(T,{ref:this.refDraggable,handle:o?".".concat(o):void 0,defaultPosition:A,onMouseDown:a,onMouseUp:s,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:L,disabled:t,grid:u,bounds:c?this.state.bounds:void 0,position:M,enableUserSelectHack:f,cancel:d,scale:O,allowAnyClick:x,nodeRef:this.resizableElement},(0,n.createElement)(j,I({},S,{ref:this.refResizable,defaultSize:A,size:this.props.size,enable:"boolean"==typeof m?(D=m,{bottom:D,bottomLeft:D,bottomRight:D,left:D,right:D,top:D,topLeft:D,topRight:D}):m,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:k,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:y,handleWrapperClass:b,handleWrapperStyle:w,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:h,handleClasses:v,handleComponent:g,scale:this.props.scale}),p))},t.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},t}(n.PureComponent)},72855:(e,t,r)=>{"use strict";var n=r(78281),o=r(8568),i=r(64030),a=r(5134),s=r(72823),l=r(7954);function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(n),f=u(o),d=u(i),p=u(s),h=u(l);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function P(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}(this,r)}}var I={};var T=["explicitRef","className","style","size","disablePlaceholder","onSize"],C={monitorWidth:!0,monitorHeight:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function k(e){return e.displayName||e.name||"Component"}var _=function(e){x(r,e);var t=E(r);function r(){return m(this,r),t.apply(this,arguments)}return b(r,[{key:"render",value:function(){return n.Children.only(this.props.children)}}]),r}(n.Component);function R(e){var t=e.className,r=e.style,n={};return t||r?(t&&(n.className=t),r&&(n.style=r)):n.style={width:"100%",height:"100%"},c.default.createElement("div",n)}w(_,"displayName","SizeMeReferenceWrapper"),R.displayName="SizeMePlaceholder";function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=e.monitorWidth,r=void 0===t?C.monitorWidth:t,n=e.monitorHeight,o=void 0===n?C.monitorHeight:n,i=e.refreshRate,s=void 0===i?C.refreshRate:i,l=e.refreshMode,u=void 0===l?C.refreshMode:l,h=e.noPlaceholder,v=void 0===h?C.noPlaceholder:h,y=e.resizeDetectorStrategy,S=void 0===y?C.resizeDetectorStrategy:y;d.default(r||o,'You have to monitor at least one of the width or height when using "sizeMe"'),d.default(s>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),d.default("throttle"===u||"debounce"===u,'The refreshMode should have a value of "throttle" or "debounce"');var A="throttle"===u?a.throttle:a.debounce;return function(e){var t=function(e){function t(t){var r=t.explicitRef,n=t.className,o=t.style,i=t.size,a=t.disablePlaceholder;t.onSize;var s=P(t,T),l=(null==i||null==i.width&&null==i.height)&&!a,u={className:n,style:o};null!=i&&(u.size=i);var f=l?c.default.createElement(R,{className:n,style:o}):c.default.createElement(e,O({},u,s));return c.default.createElement(_,{ref:r},f)}return t.displayName="SizeMeRenderer(".concat(k(e),")"),t}(e),n=function(e){x(i,e);var n=E(i);function i(){var e;m(this,i);for(var t=arguments.length,a=new Array(t),l=0;l<t;l++)a[l]=arguments[l];return w(j(e=n.call.apply(n,[this].concat(a))),"domEl",null),w(j(e),"state",{width:void 0,height:void 0}),w(j(e),"uninstall",(function(){if(e.domEl){try{e.detector.uninstall(e.domEl)}catch(e){console.warn("react-sizeme: an error occurred whilst stopping to listen to node size changes")}e.domEl=null}})),w(j(e),"determineStrategy",(function(t){t.onSize?(e.callbackState||(e.callbackState=g({},e.state)),e.strategy="callback"):e.strategy="render"})),w(j(e),"strategisedSetState",(function(t){"callback"===e.strategy&&(e.callbackState=t,e.props.onSize(t)),e.setState(t)})),w(j(e),"strategisedGetState",(function(){return"callback"===e.strategy?e.callbackState:e.state})),w(j(e),"refCallback",(function(t){e.element=t})),w(j(e),"hasSizeChanged",(function(e,t){var n=e,i=t;return r&&n.width!==i.width||o&&n.height!==i.height})),w(j(e),"checkIfSizeChanged",A(s,(function(t){var n=t.getBoundingClientRect(),i=n.width,a=n.height,s={width:r?i:null,height:o?a:null};e.hasSizeChanged(e.strategisedGetState(),s)&&e.strategisedSetState(s)}))),e}return b(i,[{key:"componentDidMount",value:function(){this.detector=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return I[e]||(I[e]=p.default({strategy:e})),I[e]}(S),this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentDidUpdate",value:function(){this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentWillUnmount",value:function(){this.hasSizeChanged=function(){},this.checkIfSizeChanged=function(){},this.uninstall()}},{key:"handleDOMNode",value:function(){var e=this.element&&f.default.findDOMNode(this.element);e?this.domEl?(this.domEl.isSameNode&&!this.domEl.isSameNode(e)||this.domEl!==e)&&(this.uninstall(),this.domEl=e,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):(this.domEl=e,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):this.uninstall()}},{key:"render",value:function(){var e=N.enableSSRBehaviour||N.noPlaceholders||v||"callback"===this.strategy,r=g({},this.state);return c.default.createElement(t,O({explicitRef:this.refCallback,size:"callback"===this.strategy?null:r,disablePlaceholder:e},this.props))}}]),i}(c.default.Component);return w(n,"displayName","SizeMe(".concat(k(e),")")),n.WrappedComponent=e,n}}N.enableSSRBehaviour=!1,N.noPlaceholders=!1;var D=["children","render"],M=["children","render"],L=["children","render"],z=function(e){x(r,e);var t=E(r);function r(e){var n;m(this,r),w(j(n=t.call(this,e)),"createComponent",(function(e){n.SizeAware=N(e)((function(e){return e.children}))})),w(j(n),"onSize",(function(e){return n.setState({size:e})})),e.children,e.render;var o=P(e,D);return n.createComponent(o),n.state={size:{width:void 0,height:void 0}},n}return b(r,[{key:"componentDidUpdate",value:function(e){var t=this.props;t.children,t.render;var r=P(t,M);e.children,e.render;var n=P(e,L);h.default(r,n)||this.createComponent(r)}},{key:"render",value:function(){var e=this.SizeAware,t=this.props.children||this.props.render;return c.default.createElement(e,{onSize:this.onSize},t({size:this.state.size}))}}]),r}(n.Component);w(z,"defaultProps",{children:void 0,render:void 0}),N.SizeMe=z,N.withSize=N,e.exports=N},13389:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g});var n=r(5550),o=r(37227),i=r(78281),a=r(8568);const s=!1;var l=r(65612),u="unmounted",c="exited",f="entering",d="entered",p="exiting",h=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=c,n.appearStatus=f):o=d:o=t.unmountOnExit||t.mountOnEnter?u:c,n.state={status:o},n.nextCallback=null,n}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:c}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==d&&(t=f):r!==f&&r!==d||(t=p)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[a.findDOMNode(this),n],i=o[0],l=o[1],u=this.getTimeouts(),c=n?u.appear:u.enter;!e&&!r||s?this.safeSetState({status:d},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:f},(function(){t.props.onEntering(i,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(i,l)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(n),this.safeSetState({status:p},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,r=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(l.A.Provider,{value:null},"function"==typeof r?r(e,o):i.cloneElement(i.Children.only(r),o))},t}(i.Component);function v(){}h.contextType=l.A,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},h.UNMOUNTED=u,h.EXITED=c,h.ENTERING=f,h.ENTERED=d,h.EXITING=p;const g=h},65612:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(78281).createContext(null)},81127:(e,t,r)=>{"use strict";var n=r(78281),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},61808:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}function y(){}function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var w=b.prototype=new y;w.constructor=b,v(w,m.prototype),w.isPureReactComponent=!0;var O=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,o)&&!A.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:r,type:e,key:a,ref:s,props:i,_owner:S.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return a=a(l=e),e=""===i?"."+I(l,0):i,O(a)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(j(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",O(e))for(var u=0;u<e.length;u++){var c=i+I(s=e[u],u);l+=T(s,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,o,c=i+I(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function C(e,t,r){if(null==e)return e;var n=[],o=0;return T(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function k(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var _={current:null},R={transition:null},N={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};t.Children={map:C,forEach:function(e,t,r){C(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!A.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:r,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return _.current.useCallback(e,t)},t.useContext=function(e){return _.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return _.current.useDeferredValue(e)},t.useEffect=function(e,t){return _.current.useEffect(e,t)},t.useId=function(){return _.current.useId()},t.useImperativeHandle=function(e,t,r){return _.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return _.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return _.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return _.current.useMemo(e,t)},t.useReducer=function(e,t,r){return _.current.useReducer(e,t,r)},t.useRef=function(e){return _.current.useRef(e)},t.useState=function(e){return _.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return _.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return _.current.useTransition()},t.version="18.2.0"},78281:(e,t,r)=>{"use strict";e.exports=r(61808)},28477:(e,t,r)=>{"use strict";e.exports=r(81127)},85160:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<i(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,a=o>>>1;n<a;){var s=2*(n+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,r))u<o&&0>i(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[s]=r,n=s);else{if(!(u<o&&0>i(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,p=3,h=!1,v=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,r(u,t)}t=n(c)}}function O(e){if(g=!1,w(e),!v)if(null!==n(u))v=!0,R(x);else{var t=n(c);null!==t&&N(O,t.startTime-e)}}function x(e,r){v=!1,g&&(g=!1,y(j),j=-1),h=!0;var i=p;try{for(w(r),d=n(u);null!==d&&(!(d.expirationTime>r)||e&&!T());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?d.callback=s:d===n(u)&&o(u),w(r)}else o(u);d=n(u)}if(null!==d)var l=!0;else{var f=n(c);null!==f&&N(O,f.startTime-r),l=!1}return l}finally{d=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,A=!1,P=null,j=-1,E=5,I=-1;function T(){return!(t.unstable_now()-I<E)}function C(){if(null!==P){var e=t.unstable_now();I=e;var r=!0;try{r=P(!0,e)}finally{r?S():(A=!1,P=null)}}else A=!1}if("function"==typeof b)S=function(){b(C)};else if("undefined"!=typeof MessageChannel){var k=new MessageChannel,_=k.port2;k.port1.onmessage=C,S=function(){_.postMessage(null)}}else S=function(){m(C,0)};function R(e){P=e,A||(A=!0,S())}function N(e,r){j=m((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||h||(v=!0,R(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,r(c,e),null===n(u)&&e===n(c)&&(g?(y(j),j=-1):g=!0,N(O,i-a))):(e.sortIndex=s,r(u,e),v||h||(v=!0,R(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},79551:(e,t,r)=>{"use strict";e.exports=r(85160)},93900:(e,t,r)=>{"use strict";var n=r(86400),o=r(56750),i=r(73191)(),a=r(91464),s=r(82268),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},7954:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],f=t[u];if(!1===(o=r?r.call(n,c,f,u):void 0)||void 0===o&&c!==f)return!1}return!0}},75415:(e,t,r)=>{"use strict";var n=r(86400),o=r(29466),i=r(4356),a=r(82268),s=n("%WeakMap%",!0),l=n("%Map%",!0),u=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),v=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(l){if(t)return d(t,n)}else if(r)return function(e,t){var r=v(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(l){if(t)return h(t,n)}else if(r)return function(e,t){return!!v(e,t)}(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),c(e,n,o)):l?(t||(t=new l),p(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=v(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},62273:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},33617:function(e,t,r){var n;e=r.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,l=36,u=1,c=26,f=38,d=700,p=72,h=128,v="-",g=/^xn--/,m=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-u,O=Math.floor,x=String.fromCharCode;function S(e){throw new RangeError(b[e])}function A(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function P(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+A((e=e.replace(y,".")).split("."),t).join(".")}function j(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function E(e){return A(e,(function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)})).join("")}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,r){var n=0;for(e=r?O(e/d):e>>1,e+=O(e/t);e>w*c>>1;n+=l)e=O(e/w);return O(n+(w+1)*e/(e+f))}function C(e){var t,r,n,o,i,a,f,d,g,m,y,b=[],w=e.length,x=0,A=h,P=p;for((r=e.lastIndexOf(v))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&S("not-basic"),b.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<w;){for(i=x,a=1,f=l;o>=w&&S("invalid-input"),((d=(y=e.charCodeAt(o++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:l)>=l||d>O((s-x)/a))&&S("overflow"),x+=d*a,!(d<(g=f<=P?u:f>=P+c?c:f-P));f+=l)a>O(s/(m=l-g))&&S("overflow"),a*=m;P=T(x-i,t=b.length+1,0==i),O(x/t)>s-A&&S("overflow"),A+=O(x/t),x%=t,b.splice(x++,0,A)}return E(b)}function k(e){var t,r,n,o,i,a,f,d,g,m,y,b,w,A,P,E=[];for(b=(e=j(e)).length,t=h,r=0,i=p,a=0;a<b;++a)(y=e[a])<128&&E.push(x(y));for(n=o=E.length,o&&E.push(v);n<b;){for(f=s,a=0;a<b;++a)(y=e[a])>=t&&y<f&&(f=y);for(f-t>O((s-r)/(w=n+1))&&S("overflow"),r+=(f-t)*w,t=f,a=0;a<b;++a)if((y=e[a])<t&&++r>s&&S("overflow"),y==t){for(d=r,g=l;!(d<(m=g<=i?u:g>=i+c?c:g-i));g+=l)P=d-m,A=l-m,E.push(x(I(m+P%A,0))),d=O(P/A);E.push(x(I(d,0))),i=T(r,w,n==o),r=0,++n}++r,++t}return E.join("")}a={version:"1.4.1",ucs2:{decode:j,encode:E},decode:C,encode:k,toASCII:function(e){return P(e,(function(e){return m.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return P(e,(function(e){return g.test(e)?C(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},73095:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:o}},49523:(e,t,r)=>{"use strict";var n=r(92674),o=r(50956),i=r(73095);e.exports={formats:i,parse:o,stringify:n}},50956:(e,t,r)=>{"use strict";var n=r(80686),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,c=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+i.slice(s.index)+"]"),function(e,t,r,n){for(var o=n?t:l(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=r.allowEmptyArrays&&""===o?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(c,10);r.parseArrays||""!==c?!isNaN(f)&&s!==c&&String(f)===c&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(c,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,u={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?h="utf-8":"utf8=%26%2310003%3B"===d[r]&&(h="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var v,g,m=d[r],y=m.indexOf("]="),b=-1===y?m.indexOf("="):y+1;-1===b?(v=t.decoder(m,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(v=t.decoder(m.slice(0,b),a.decoder,h,"key"),g=n.maybeMap(l(m.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),m.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var w=o.call(u,v);w&&"combine"===t.duplicates?u[v]=n.combine(u[v],g):w&&"last"!==t.duplicates||(u[v]=g)}return u}(e,r):e,f=r.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var h=d[p],v=u(h,c[h],r,"string"==typeof e);f=n.merge(f,v,r)}return!0===r.allowSparse?f:n.compact(f)}},92674:(e,t,r)=>{"use strict";var n=r(75415),o=r(80686),i=r(73095),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},f=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},v=function e(t,r,i,a,s,u,f,d,v,g,m,y,b,w,O,x,S,A){for(var P,j=t,E=A,I=0,T=!1;void 0!==(E=E.get(h))&&!T;){var C=E.get(t);if(I+=1,void 0!==C){if(C===I)throw new RangeError("Cyclic object value");T=!0}void 0===E.get(h)&&(I=0)}if("function"==typeof g?j=g(r,j):j instanceof Date?j=b(j):"comma"===i&&l(j)&&(j=o.maybeMap(j,(function(e){return e instanceof Date?b(e):e}))),null===j){if(u)return v&&!x?v(r,p.encoder,S,"key",w):r;j=""}if("string"==typeof(P=j)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||o.isBuffer(j))return v?[O(x?r:v(r,p.encoder,S,"key",w))+"="+O(v(j,p.encoder,S,"value",w))]:[O(r)+"="+O(String(j))];var k,_=[];if(void 0===j)return _;if("comma"===i&&l(j))x&&v&&(j=o.maybeMap(j,v)),k=[{value:j.length>0?j.join(",")||null:void 0}];else if(l(g))k=g;else{var R=Object.keys(j);k=m?R.sort(m):R}var N=d?r.replace(/\./g,"%2E"):r,D=a&&l(j)&&1===j.length?N+"[]":N;if(s&&l(j)&&0===j.length)return D+"[]";for(var M=0;M<k.length;++M){var L=k[M],z="object"==typeof L&&void 0!==L.value?L.value:j[L];if(!f||null!==z){var W=y&&d?L.replace(/\./g,"%2E"):L,B=l(j)?"function"==typeof i?i(D,W):D:D+(y?"."+W:"["+W+"]");A.set(t,I);var F=n();F.set(h,A),c(_,e(z,B,i,a,s,u,f,d,"comma"===i&&x&&l(j)?null:v,g,m,y,b,w,O,x,S,F))}}return _};e.exports=function(e,t){var r,o=e,u=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],u=p.filter;if(("function"==typeof e.filter||l(e.filter))&&(u=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?o=(0,u.filter)("",o):l(u.filter)&&(r=u.filter);var f=[];if("object"!=typeof o||null===o)return"";var d=s[u.arrayFormat],h="comma"===d&&u.commaRoundTrip;r||(r=Object.keys(o)),u.sort&&r.sort(u.sort);for(var g=n(),m=0;m<r.length;++m){var y=r[m];u.skipNulls&&null===o[y]||c(f,v(o[y],y,d,h,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,g))}var b=f.join(u.delimiter),w=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},80686:(e,t,r)=>{"use strict";var n=r(73095),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:a,prop:u}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===n.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=s(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},23842:(e,t,r)=>{"use strict";var n=r(33617);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(49523);function y(e,t,r){if(e&&"object"==typeof e&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(a);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(a);if(y=y.trim(),!r&&1===e.split("#").length){var b=s.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=i.exec(y);if(w){var O=(w=w[0]).toLowerCase();this.protocol=O,y=y.substr(w.length)}if(r||w||y.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===y.substr(0,2);!x||w&&v[w]||(y=y.substr(2),this.slashes=!0)}if(!v[w]&&(x||w&&!g[w])){for(var S,A,P=-1,j=0;j<f.length;j++){-1!==(E=y.indexOf(f[j]))&&(-1===P||E<P)&&(P=E)}-1!==(A=-1===P?y.lastIndexOf("@"):y.lastIndexOf("@",P))&&(S=y.slice(0,A),y=y.slice(A+1),this.auth=decodeURIComponent(S)),P=-1;for(j=0;j<c.length;j++){var E;-1!==(E=y.indexOf(c[j]))&&(-1===P||E<P)&&(P=E)}-1===P&&(P=y.length),this.host=y.slice(0,P),y=y.slice(P),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var T=this.hostname.split(/\./),C=(j=0,T.length);j<C;j++){var k=T[j];if(k&&!k.match(d)){for(var _="",R=0,N=k.length;R<N;R++)k.charCodeAt(R)>127?_+="x":_+=k[R];if(!_.match(d)){var D=T.slice(0,j),M=T.slice(j+1),L=k.match(p);L&&(D.push(L[1]),M.unshift(L[2])),M.length&&(y="/"+M.join(".")+y),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=n.toASCII(this.hostname));var z=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+z,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[O])for(j=0,C=u.length;j<C;j++){var B=u[j];if(-1!==y.indexOf(B)){var F=encodeURIComponent(B);F===B&&(F=escape(B)),y=y.split(B).join(F)}}var H=y.indexOf("#");-1!==H&&(this.hash=y.substr(H),y=y.slice(0,H));var U=y.indexOf("?");if(-1!==U?(this.search=y.substr(U),this.query=y.substr(U+1),t&&(this.query=m.parse(this.query)),y=y.slice(0,U)):t&&(this.search="",this.query={}),y&&(this.pathname=y),g[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var V=this.search||"";this.path=z+V}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=m.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),i=0;i<n.length;i++){var a=n[i];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];"protocol"!==u&&(r[u]=e[u])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var c=Object.keys(e),f=0;f<c.length;f++){var d=c[f];r[d]=e[d]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||v[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",m=r.search||"";r.path=h+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||y||r.host&&e.pathname,O=w,x=r.pathname&&r.pathname.split("/")||[],S=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===x[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search){if(S)r.host=x.shift(),r.hostname=r.host,(I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=I.shift(),r.hostname=I.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=x.slice(-1)[0],P=(r.host||e.host||x.length>1)&&("."===A||".."===A)||""===A,j=0,E=x.length;E>=0;E--)"."===(A=x[E])?x.splice(E,1):".."===A?(x.splice(E,1),j++):j&&(x.splice(E,1),j--);if(!w&&!O)for(;j--;j)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),P&&"/"!==x.join("/").substr(-1)&&x.push("");var I,T=""===x[0]||x[0]&&"/"===x[0].charAt(0);S&&(r.hostname=T?"":x.length?x.shift():"",r.host=r.hostname,(I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=I.shift(),r.hostname=I.shift(),r.host=r.hostname));return(w=w||r.host&&x.length)&&!T&&x.unshift(""),x.length>0?r.pathname=x.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},11546:(e,t,r)=>{"use strict";var n=r(78281);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return s((function(){o.value=r,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,r,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},70933:(e,t,r)=>{"use strict";var n=r(78281),o=r(99051);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,r,n,o]);var p=a(e,f[0],f[1]);return l((function(){d.hasValue=!0,d.value=p}),[p]),c(p),p}},25809:(e,t,r)=>{"use strict";var n=r(78281);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,a=n.useRef,s=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var f=a(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=l((function(){function e(e){if(!s){if(s=!0,i=e,e=n(e),void 0!==c&&d.hasValue){var t=d.value;if(c(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var r=n(e);return void 0!==c&&c(t,r)?t:(i=e,a=r)}var i,a,s=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,r,n,c]);var p=i(e,f[0],f[1]);return s((function(){d.hasValue=!0,d.value=p}),[p]),u(p),p}},99051:(e,t,r)=>{"use strict";e.exports=r(11546)},17489:(e,t,r)=>{"use strict";e.exports=r(70933)},27647:(e,t,r)=>{"use strict";e.exports=r(25809)},56804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var n=d(r(81051)),o=d(r(44957)),i=d(r(48904)),a=d(r(57343)),s=d(r(22807)),l=d(r(99192)),u=d(r(10788)),c=d(r(22953)),f=d(r(24231));function d(e){return e&&e.__esModule?e:{default:e}}},46220:(e,t)=>{"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,a){return n((s=n(n(t,e),n(o,a)))<<(l=i)|s>>>32-l,r);var s,l}function i(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function a(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function l(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var o=0;o<t.length;++o)e[o]=t.charCodeAt(o)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;for(var o=1732584193,u=-271733879,c=-1732584194,f=271733878,d=0;d<e.length;d+=16){var p=o,h=u,v=c,g=f;o=i(o,u,c,f,e[d],7,-680876936),f=i(f,o,u,c,e[d+1],12,-389564586),c=i(c,f,o,u,e[d+2],17,606105819),u=i(u,c,f,o,e[d+3],22,-1044525330),o=i(o,u,c,f,e[d+4],7,-176418897),f=i(f,o,u,c,e[d+5],12,1200080426),c=i(c,f,o,u,e[d+6],17,-1473231341),u=i(u,c,f,o,e[d+7],22,-45705983),o=i(o,u,c,f,e[d+8],7,1770035416),f=i(f,o,u,c,e[d+9],12,-1958414417),c=i(c,f,o,u,e[d+10],17,-42063),u=i(u,c,f,o,e[d+11],22,-1990404162),o=i(o,u,c,f,e[d+12],7,1804603682),f=i(f,o,u,c,e[d+13],12,-40341101),c=i(c,f,o,u,e[d+14],17,-1502002290),o=a(o,u=i(u,c,f,o,e[d+15],22,1236535329),c,f,e[d+1],5,-165796510),f=a(f,o,u,c,e[d+6],9,-1069501632),c=a(c,f,o,u,e[d+11],14,643717713),u=a(u,c,f,o,e[d],20,-373897302),o=a(o,u,c,f,e[d+5],5,-701558691),f=a(f,o,u,c,e[d+10],9,38016083),c=a(c,f,o,u,e[d+15],14,-660478335),u=a(u,c,f,o,e[d+4],20,-405537848),o=a(o,u,c,f,e[d+9],5,568446438),f=a(f,o,u,c,e[d+14],9,-1019803690),c=a(c,f,o,u,e[d+3],14,-187363961),u=a(u,c,f,o,e[d+8],20,1163531501),o=a(o,u,c,f,e[d+13],5,-1444681467),f=a(f,o,u,c,e[d+2],9,-51403784),c=a(c,f,o,u,e[d+7],14,1735328473),o=s(o,u=a(u,c,f,o,e[d+12],20,-1926607734),c,f,e[d+5],4,-378558),f=s(f,o,u,c,e[d+8],11,-2022574463),c=s(c,f,o,u,e[d+11],16,1839030562),u=s(u,c,f,o,e[d+14],23,-35309556),o=s(o,u,c,f,e[d+1],4,-1530992060),f=s(f,o,u,c,e[d+4],11,1272893353),c=s(c,f,o,u,e[d+7],16,-155497632),u=s(u,c,f,o,e[d+10],23,-1094730640),o=s(o,u,c,f,e[d+13],4,681279174),f=s(f,o,u,c,e[d],11,-358537222),c=s(c,f,o,u,e[d+3],16,-722521979),u=s(u,c,f,o,e[d+6],23,76029189),o=s(o,u,c,f,e[d+9],4,-640364487),f=s(f,o,u,c,e[d+12],11,-421815835),c=s(c,f,o,u,e[d+15],16,530742520),o=l(o,u=s(u,c,f,o,e[d+2],23,-995338651),c,f,e[d],6,-198630844),f=l(f,o,u,c,e[d+7],10,1126891415),c=l(c,f,o,u,e[d+14],15,-1416354905),u=l(u,c,f,o,e[d+5],21,-57434055),o=l(o,u,c,f,e[d+12],6,1700485571),f=l(f,o,u,c,e[d+3],10,-1894986606),c=l(c,f,o,u,e[d+10],15,-1051523),u=l(u,c,f,o,e[d+1],21,-2054922799),o=l(o,u,c,f,e[d+8],6,1873313359),f=l(f,o,u,c,e[d+15],10,-30611744),c=l(c,f,o,u,e[d+6],15,-1560198380),u=l(u,c,f,o,e[d+13],21,1309151649),o=l(o,u,c,f,e[d+4],6,-145523070),f=l(f,o,u,c,e[d+11],10,-1120210379),c=l(c,f,o,u,e[d+2],15,718787259),u=l(u,c,f,o,e[d+9],21,-343485551),o=n(o,p),u=n(u,h),c=n(c,v),f=n(f,g)}return[o,u,c,f]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(r(t)),o=0;o<t;o+=8)n[o>>5]|=(255&e[o/8])<<o%32;return n}(e),8*e.length))};t.default=u},11153:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r},22807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="00000000-0000-0000-0000-000000000000"},24231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(10788))&&n.__esModule?n:{default:n};var i=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};t.default=i},81419:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},96313:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};var n=new Uint8Array(16)},68687:(e,t)=>{"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){var t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),u=new Array(l),c=0;c<l;++c){for(var f=new Uint32Array(16),d=0;d<16;++d)f[d]=e[64*c+4*d]<<24|e[64*c+4*d+1]<<16|e[64*c+4*d+2]<<8|e[64*c+4*d+3];u[c]=f}u[l-1][14]=8*(e.length-1)/Math.pow(2,32),u[l-1][14]=Math.floor(u[l-1][14]),u[l-1][15]=8*(e.length-1)&4294967295;for(var p=0;p<l;++p){for(var h=new Uint32Array(80),v=0;v<16;++v)h[v]=u[p][v];for(var g=16;g<80;++g)h[g]=n(h[g-3]^h[g-8]^h[g-14]^h[g-16],1);for(var m=o[0],y=o[1],b=o[2],w=o[3],O=o[4],x=0;x<80;++x){var S=Math.floor(x/20),A=n(m,5)+r(S,y,b,w)+O+t[S]+h[x]>>>0;O=w,w=b,b=n(y,30)>>>0,y=m,m=A}o[0]=o[0]+m>>>0,o[1]=o[1]+y>>>0,o[2]=o[2]+b>>>0,o[3]=o[3]+w>>>0,o[4]=o[4]+O>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};t.default=o},22953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;var n,o=(n=r(10788))&&n.__esModule?n:{default:n};for(var i=[],a=0;a<256;++a)i.push((a+256).toString(16).slice(1));function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}var l=function(e){var t=s(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0);if(!(0,o.default)(t))throw TypeError("Stringified UUID is invalid");return t};t.default=l},81051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,i,a=(n=r(96313))&&n.__esModule?n:{default:n},s=r(22953);var l=0,u=0;var c=function(e,t,r){var n=t&&r||0,c=t||new Array(16),f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==d){var p=e.random||(e.rng||a.default)();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=i=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:u+1,g=h-l+(v-u)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||h>l)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,u=v,i=d;var m=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;c[n++]=m>>>24&255,c[n++]=m>>>16&255,c[n++]=m>>>8&255,c[n++]=255&m;var y=h/4294967296*1e4&268435455;c[n++]=y>>>8&255,c[n++]=255&y,c[n++]=y>>>24&15|16,c[n++]=y>>>16&255,c[n++]=d>>>8|128,c[n++]=255&d;for(var b=0;b<6;++b)c[n+b]=f[b];return t||(0,s.unsafeStringify)(c)};t.default=c},44957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(19278)),o=i(r(46220));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,o.default);t.default=a},19278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,a,s){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,i.default)(n)),16!==(null===(l=n)||void 0===l?void 0:l.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(n),u.set(e,n.length),(u=r(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){s=s||0;for(var c=0;c<16;++c)a[s+c]=u[c];return a}return(0,o.unsafeStringify)(u)}try{n.name=e}catch(e){}return n.DNS=a,n.URL=s,n};var n,o=r(22953),i=(n=r(24231))&&n.__esModule?n:{default:n};var a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;var s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},48904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(11153)),o=a(r(96313)),i=r(22953);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();var a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=a[s];return t}return(0,i.unsafeStringify)(a)};t.default=s},57343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(19278)),o=i(r(68687));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,o.default);t.default=a},10788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(81419))&&n.__esModule?n:{default:n};var i=function(e){return"string"==typeof e&&o.default.test(e)};t.default=i},99192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(10788))&&n.__esModule?n:{default:n};var i=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=i},26836:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var o,i=new Uint8Array(16);function a(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}for(var s=[],l=0;l<256;++l)s.push((l+256).toString(16).slice(1));function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}const c=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=o[i];return t}return u(o)}},40378:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},31392:(e,t,r)=>{"use strict";r.d(t,{P:()=>h});var n=r(78281),o=r(48281),i=r(49726),a=r(60885),s=r(28477);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function c(e,t,r){return t=d(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,t,arguments)}var r,n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.defaultLabel,r=e.labelValuePairs;return 0===r.length?null:(0,s.jsx)("dl",{className:(0,a.A)("label-value-metadata"),children:r.reduce((function(e,r,n){return e.concat([(0,s.jsx)(o.A,{component:"dt",variant:"subtitle2",children:r.label||t},"label-".concat(n)),(0,s.jsx)(o.A,{style:{marginBottom:".5em",marginLeft:"0px"},component:"dd",variant:"body1",children:(0,s.jsx)(i.A,{htmlString:r.values.join(", "),ruleSet:"iiif"})},"value-".concat(n))])}),[])})}}])&&l(r.prototype,n),u&&l(r,u),Object.defineProperty(r,"prototype",{writable:!1}),t}(n.Component);h.defaultProps={defaultLabel:void 0}},74754:(e,t,r)=>{"use strict";r.d(t,{F:()=>u});var n=r(78281),o=["classes"];function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=(0,n.forwardRef)((function(e,t){var r=e.PluginComponents,i=(e.classes,l(e,o));return r?r.map((function(e,r){return(0,n.isValidElement)(e)?(0,n.cloneElement)(e,a(a({},i),{},{ref:t})):(0,n.createElement)(e,a(a({ref:t},i),{},{key:r}))})):null}))},60885:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(12497),o=r(94881),i=r.n(o);const a=function(e){return i()([e]).map((function(e){return[n.A.createGenerateClassNameOptions.productionPrefix,e].join("-")})).join(" ")}},12497:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(26836);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u={state:{},canvasNavigation:{height:50,width:50},selectedTheme:"light",themes:{dark:{palette:{mode:"dark",primary:{main:"#4db6ac"},secondary:{main:"#4db6ac"},shades:{dark:"#000000",main:"#424242",light:"#616161"}}},light:{palette:{mode:"light"}}},theme:{palette:{mode:"light",primary:{main:"#1967d2"},secondary:{main:"#1967d2"},shades:{dark:"#eeeeee",main:"#ffffff",light:"#f5f5f5"},error:{main:"#b00020"},notification:{main:"#ffa224"},hitCounter:{default:"#bdbdbd"},highlights:{primary:"#ffff00",secondary:"#00BFFF"},section_divider:"rgba(0, 0, 0, 0.25)",annotations:{chipBackground:"#e0e0e0",hidden:{globalAlpha:0},default:{strokeStyle:"#00BFFF",globalAlpha:1},hovered:{strokeStyle:"#BF00FF",globalAlpha:1},selected:{strokeStyle:"#ffff00",globalAlpha:1}},search:{default:{fillStyle:"#00BFFF",globalAlpha:.3},hovered:{fillStyle:"#00FFFF",globalAlpha:.3},selected:{fillStyle:"#ffff00",globalAlpha:.3}}},typography:{body1:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},button:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem",textTransform:"uppercase"},caption:{fontSize:"0.772rem",letterSpacing:"0.033em",lineHeight:"1.6rem"},body1Next:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2Next:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},buttonNext:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem"},captionNext:{fontSize:"0.772rem",letterSpacing:"0.33em",lineHeight:"1.6rem"},overline:{fontSize:"0.678rem",fontWeight:500,letterSpacing:"0.166em",lineHeight:"2em",textTransform:"uppercase"},h1:{fontSize:"2.822rem",letterSpacing:"-0.015em",lineHeight:"1.2em"},h2:{fontSize:"1.575rem",letterSpacing:"0em",lineHeight:"1.33em"},h3:{fontSize:"1.383rem",fontWeight:300,letterSpacing:"0em",lineHeight:"1.33em"},h4:{fontSize:"1.215rem",letterSpacing:"0.007em",lineHeight:"1.45em"},h5:{fontSize:"1.138rem",letterSpacing:"0.005em",lineHeight:"1.55em"},h6:{fontSize:"1.067rem",fontWeight:400,letterSpacing:"0.01em",lineHeight:"1.6em"},subtitle1:{fontSize:"0.937rem",letterSpacing:"0.015em",lineHeight:"1.6em",fontWeight:300},subtitle2:{fontSize:"0.878rem",fontWeight:500,letterSpacing:"0.02em",lineHeight:"1.75em"},useNextVariants:!0},components:{MuiMenuItem:{variants:[{props:{variant:"multiline"},style:{whiteSpace:"normal"}}]},CompanionWindow:{styleOverrides:{closeButton:{order:4},contents:{overflowY:"auto",wordBreak:"break-word"},controls:function(e){var t=e.ownerState;return{alignItems:"center",display:"flex",flexFlow:"row wrap",flexGrow:1,justifyContent:"bottom"===(null==t?void 0:t.position)||"far-bottom"===(null==t?void 0:t.position)?"flex-end":"flex-start",minHeight:48,order:3}},positionButton:{marginLeft:-16,order:-100,width:24},resize:function(e){var t=e.ownerState;return{display:"flex",flexDirection:"column",minHeight:50,minWidth:"left"===(null==t?void 0:t.position)?235:100,position:"relative"}},root:function(e){var t=e.ownerState;return s(s(s({boxShadow:"none",boxSizing:"border-box",display:"flex",flexDirection:"column",minHeight:0},"right"===(null==t?void 0:t.position)&&{borderLeft:"0.5px solid rgba(0, 0, 0, 0.125)"}),"left"===(null==t?void 0:t.position)&&{borderRight:"0.5px solid rgba(0, 0, 0, 0.125)"}),"bottom"===(null==t?void 0:t.position)&&{borderTop:"0.5px solid rgba(0, 0, 0, 0.125)"})},title:function(e){return s(s({},e.theme.typography.subtitle1),{},{alignSelf:"center",flexGrow:1,width:160})},toolbar:function(e){return{alignItems:"flex-start",backgroundColor:e.theme.palette.shades.light,flexWrap:"wrap",justifyContent:"space-between",minHeight:"max-content",paddingInlineStart:"1rem"}}}},CompanionWindowSection:{styleOverrides:{root:{borderBlockEnd:".5px solid rgba(0, 0, 0, 0.25)"}}},IIIFHtmlContent:{styleOverrides:{root:function(e){return{"& a":{color:e.theme.palette.primary.main,textDecoration:"underline"}}}}},IIIFThumbnail:{styleOverrides:{root:function(e){var t=e.ownerState;return s({},"inside"===(null==t?void 0:t.variant)&&{display:"inline-block",height:"inherit",position:"relative"})},label:function(e){var t=e.ownerState;return s(s(s({overflow:"hidden",textOverflow:"ellipsis",lineHeight:"1.5em",wordBreak:"break-word"},"inside"===(null==t?void 0:t.variant)&&{color:"#ffffff",WebkitLineClamp:1,whiteSpace:"nowrap"}),"outside"===(null==t?void 0:t.variant)&&{display:"-webkit-box",maxHeight:"3em",MozBoxOrient:"vertical",WebkitLineClamp:2}),"inside"===(null==t?void 0:t.variant)&&{background:"linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%)",bottom:"5px",boxSizing:"border-box",left:"0px",padding:"4px",position:"absolute",width:"100%"})},image:function(e){var t=e.ownerState;return s({},(null==t?void 0:t.border)&&{border:"1px solid rgba(0, 0, 0, 0.125)"})}}},ThemeIcon:{styleOverrides:{icon:function(e){var t=e.ownerState;return{color:"dark"===(null==t?void 0:t.value)?"#000000":void 0}}}},MuiAccordion:{variants:[{props:{variant:"compact"},style:{"& .MuiAccordionSummary-root":{minHeight:"unset",padding:0},"& .MuiAccordionSummary-content":{margin:0},"& .MuiAccordionDetails-root":{padding:0}}}]},MuiButton:{styleOverrides:{inlineText:{lineHeight:"1.5em",padding:0,textAlign:"inherit",textTransform:"none"},inlineTextSecondary:function(e){return{color:e.theme.palette.secondary.main}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0}},MuiDialog:{variants:[{props:{variant:"contained"},style:{position:"absolute","& .MuiBackdrop-root":{position:"absolute"}}}]},MuiFab:{styleOverrides:{root:{transition:"none"}}},MuiLink:{defaultProps:{underline:"always"}},MuiListSubheader:{styleOverrides:{root:{'&[role="presentation"]:focus':{outline:0}}}},MuiTooltip:{styleOverrides:{tooltipPlacementLeft:l({},"@media (min-width:600px)",{margin:"0 !important"}),tooltipPlacementRight:l({},"@media (min-width:600px)",{margin:"0 !important"}),tooltipPlacementTop:l({},"@media (min-width:600px)",{margin:"0 !important"}),tooltipPlacementBottom:l({},"@media (min-width:600px)",{margin:"0 !important"})}},MuiTouchRipple:{styleOverrides:{childPulsate:{animation:"none"},rippleVisible:{animation:"none"}}}}},language:"en",availableLanguages:{ar:"العربية",de:"Deutsch",en:"English",et:"Eesti",fa:"فارسی",fr:"Français",ja:"日本語",kr:"한국어",lt:"Lietuvių",nl:"Nederlands","nb-NO":"Norwegian Bokmål",pl:"Polski","pt-BR":"Português do Brasil",vi:"Tiếng Việt","zh-CN":"中文(简体)","zh-TW":"中文(繁體)",it:"Italiano",sr:"Српски",sv:"Svenska",bg:"Български"},annotations:{htmlSanitizationRuleSet:"iiif",filteredMotivations:["oa:commenting","oa:tagging","sc:painting","commenting","tagging"]},createGenerateClassNameOptions:{productionPrefix:"mirador"},requests:{preprocessors:[],postprocessors:[]},translations:{},window:{allowClose:!0,allowFullscreen:!1,allowMaximize:!0,allowTopMenuButton:!0,allowWindowSideBar:!0,authNewWindowCenter:"parent",sideBarPanel:"info",defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,defaultView:"single",forceDrawAnnotations:!1,hideWindowTitle:!1,highlightAllAnnotations:!1,showLocalePicker:!1,sideBarOpen:!1,switchCanvasOnSearch:!0,panels:{info:!0,attribution:!0,canvas:!0,annotations:!0,search:!0,layers:!0},views:[{key:"single",behaviors:["individuals"]},{key:"book",behaviors:["paged"]},{key:"scroll",behaviors:["continuous"]},{key:"gallery"}],elastic:{height:400,width:480}},windows:[],thumbnails:{preferredFormats:["jpg","png","webp","tif"]},thumbnailNavigation:{defaultPosition:"off",displaySettings:!0,height:130,width:100},workspace:{draggingEnabled:!0,allowNewWindows:!0,id:(0,n.A)(),isWorkspaceAddVisible:!1,exposeModeOn:!1,height:5e3,showZoomControls:!1,type:"mosaic",viewportPosition:{x:0,y:0},width:5e3},workspaceControlPanel:{enabled:!0},galleryView:{height:120,width:null},osdConfig:{alwaysBlend:!1,blendTime:.1,preserveImageSizeOnResize:!0,preserveViewport:!0,showNavigationControl:!1},export:{catalog:!0,companionWindows:!0,config:!0,elasticLayout:!0,layers:!0,manifests:{filter:function(e){var t=o(e,2),r=t[0];t[1];return!r.startsWith("http")}},viewers:!0,windows:!0,workspace:!0},audioOptions:{controls:!0,crossOrigin:"anonymous"},videoOptions:{controls:!0,crossOrigin:"anonymous"},auth:{serviceProfiles:[{profile:"http://iiif.io/api/auth/1/external",external:!0},{profile:"http://iiif.io/api/auth/1/kiosk",kiosk:!0},{profile:"http://iiif.io/api/auth/1/clickthrough"},{profile:"http://iiif.io/api/auth/1/login"},{profile:"http://iiif.io/api/auth/0/external",external:!0},{profile:"http://iiif.io/api/auth/0/kiosk",kiosk:!0},{profile:"http://iiif.io/api/auth/0/clickthrough"},{profile:"http://iiif.io/api/auth/0/login"}]}}},14665:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(58301),o=r(90757),i=r(19857),a=r(38492),s=r(78281),l=r(49801),u=r(28477);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=(0,l.Ay)("div")({alignItems:"center",display:"flex",width:"100%"}),h=(0,l.Ay)("audio")({width:"100%"});function v(e){var t=e.captions,r=e.audioOptions,n=e.audioResources;return(0,u.jsx)(p,{children:(0,u.jsxs)(h,f(f({},r),{},{children:[n.map((function(e){return(0,u.jsx)(s.Fragment,{children:(0,u.jsx)("source",{src:e.id,type:e.getFormat()})},e.id)})),t.map((function(e){return(0,u.jsx)(s.Fragment,{children:(0,u.jsx)("track",{src:e.id,label:e.getDefaultLabel(),srcLang:e.getProperty("language")})},e.id)}))]}))})}v.defaultProps={audioOptions:{},audioResources:[],captions:[]};var g=r(69972),m=r(75685);const y=(0,o.Zz)((0,i.CI)(),(0,n.Ng)((function(e,t){var r=t.windowId;return{audioOptions:(0,g.zj)(e).audioOptions,audioResources:(0,m._K)(e,{windowId:r})||[],captions:(0,m.mK)(e,{windowId:r})||[]}}),null),(0,a.h)("AudioViewer"))(v)},56952:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(90757),o=r(19857),i=r(78281),a=r(48281),s=r(27413),l=r(53327),u=r(68506),c=r(52371),f=r(28477);function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function h(e,t,r){return t=g(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(e,v()?Reflect.construct(t,r||[],g(e).constructor):t.apply(e,r))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var b=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=h(this,t,[e])).state={open:!0},r.handleChange=r.handleChange.bind(m(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,(n=[{key:"handleChange",value:function(e,t){this.setState({open:t})}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.id,n=e.label,o=e.t,i=this.state.open;return(0,f.jsxs)(s.A,{id:r,elevation:0,expanded:i,onChange:this.handleChange,disableGutters:!0,square:!0,variant:"compact",children:[(0,f.jsx)(u.A,{id:"".concat(r,"-header"),"aria-controls":"".concat(r,"-content"),"aria-label":o(i?"collapseSection":"expandSection",{section:n}),expandIcon:(0,f.jsx)(c.A,{}),children:(0,f.jsx)(a.A,{variant:"overline",component:"h4",children:n})}),(0,f.jsx)(l.A,{children:t})]})}}])&&d(r.prototype,n),o&&d(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(i.Component);const w=(0,n.Zz)((0,o.CI)())(b)},7498:(e,t,r)=>{"use strict";r.d(t,{A:()=>$});var n=r(90757),o=r(58301),i=r(19857),a=r(72855),s=r(38492),l=r(78281),u=r(28477);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=r(6683),p=r(50789),h=r(60141),v=r(25661),g=r(69972),m=r(49801),y=r(18474),b=r(26863),w=r(1019),O=r(15312),x=r(48281),S=r(35874),A=r(54224),P=r(63317),j=r(60885);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function _(e,t,r){return t=N(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,R()?Reflect.construct(t,r||[],N(e).constructor):t.apply(e,r))}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}var M=(0,m.Ay)(O.A,{name:"CompanionWindow",slot:"root"})({}),L=(0,m.Ay)(S.A,{name:"CompanionWindow",slot:"toolbar"})({}),z=(0,m.Ay)(x.A,{name:"CompanionWindow",slot:"title"})({}),W=(0,m.Ay)("div",{name:"CompanionWindow",slot:"controls"})({}),B=(0,m.Ay)(O.A,{name:"CompanionWindow",slot:"contents"})({}),F=(0,m.Ay)(A.p,{name:"CompanionWindow",slot:"resize"})({}),H=(0,m.Ay)(P.A,{name:"CompanionWindow",slot:"positionButton"})({}),U=(0,m.Ay)(P.A,{name:"CompanionWindow",slot:"closeButton"})({}),V=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(t,e),r=t,(n=[{key:"openInNewStyle",value:function(){return"rtl"===this.props.direction?{transform:"scale(-1, 1)"}:{}}},{key:"resizeHandles",value:function(){var e=this.props,t=e.direction,r=e.position,n={ltr:{default:"left",opposite:"right"},rtl:{default:"right",opposite:"left"}},o={bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1};return"right"===r||"far-right"===r?I(I({},o),{},T({},n[t].default,!0)):"left"===r?I(I({},o),{},T({},n[t].opposite,!0)):"bottom"===r||"far-bottom"===r?I(I({},o),{},{top:!0}):o}},{key:"render",value:function(){var e=this.props,t=e.ariaLabel,r=e.classes,n=e.paperClassName,o=e.onCloseClick,i=e.updateCompanionWindow,a=e.isDisplayed,s=e.position,c=e.t,f=e.title,d=e.children,p=e.titleControls,h=e.size,v=e.defaultSidebarPanelWidth,g=e.defaultSidebarPanelHeight,m=e.innerRef,O="bottom"===s||"far-bottom"===s,x=l.Children.map(d,(function(e){return e?(0,l.cloneElement)(e,{parentactions:{closeCompanionWindow:o}}):null}));return(0,u.jsx)(M,{ownerState:this.props,ref:m,style:{display:a?null:"none",order:"left"===s?-1:null},className:[(0,j.A)("companion-window-".concat(s)),n,"bottom"===s?r.horizontal:r.vertical].join(" "),square:!0,component:"aside","aria-label":t||f,children:(0,u.jsxs)(F,{style:{display:"inherit",position:"inherit"},ownerState:this.props,default:{height:O?g:"100%",width:O?"auto":v},disableDragging:!0,enableResizing:this.resizeHandles(),minHeight:50,minWidth:"left"===s?235:100,children:[(0,u.jsxs)(L,{variant:"dense",className:[(0,j.A)("companion-window-header"),h.width<370?r.small:null].join(" "),disableGutters:!0,children:[(0,u.jsx)(z,{variant:"h3",children:f}),"left"===s?i&&(0,u.jsx)(P.A,{"aria-label":c("openInCompanionWindow"),onClick:function(){i({position:"right"})},children:(0,u.jsx)(b.A,{style:this.openInNewStyle()})}):(0,u.jsxs)(u.Fragment,{children:[i&&(0,u.jsx)(H,{"aria-label":c("bottom"===s?"moveCompanionWindowToRight":"moveCompanionWindowToBottom"),onClick:function(){i({position:"bottom"===s?"right":"bottom"})},children:(0,u.jsx)(w.A,{})}),(0,u.jsx)(U,{sx:I({},h.width<370&&{order:"unset"}),"aria-label":c("closeCompanionWindow"),onClick:o,children:(0,u.jsx)(y.A,{})})]}),p&&(0,u.jsx)(W,{ownerState:{position:s},sx:{order:O||h.width<370?"unset":1e3},className:(0,j.A)("companion-window-title-controls"),children:p})]}),(0,u.jsx)(B,{className:(0,j.A)("scrollto-scrollable"),elevation:0,children:x})]})})}}])&&C(r.prototype,n),o&&C(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(l.Component);function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){K(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}V.defaultProps={ariaLabel:void 0,children:void 0,classes:{},defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,innerRef:void 0,isDisplayed:!1,onCloseClick:function(){},paperClassName:"",position:null,size:{},t:function(e){return e},title:null,titleControls:null,updateCompanionWindow:void 0};const $=(0,n.Zz)((function(e){var t=(0,l.forwardRef)((function(t,r){return(0,u.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({innerRef:r},t))}));return t}),(0,i.CI)(),(0,a.withSize)(),(0,o.Ng)((function(e,t){var r=t.id,n=t.windowId,o=(0,h.DS)(e,{companionWindowId:r}),i=(0,v.R2)(e,{windowId:n}),a=i.defaultSidebarPanelHeight,s=i.defaultSidebarPanelWidth;return q(q({},o),{},{defaultSidebarPanelHeight:a,defaultSidebarPanelWidth:s,direction:(0,g.b3)(e),isDisplayed:o&&o.content&&o.content.length>0})}),(function(e,t){var r=t.windowId,n=t.id;return{onCloseClick:function(){return e(d.l2(r,n))},updateCompanionWindow:function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e(d.u3.apply(p,[r,n].concat(o)))}}})),(0,s.h)("CompanionWindow"))(V)},11267:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>X});var n=r(90757),o=r(58301),i=r(38492),a=r(78281),s=r(49801),l=r(15312),u=r(94881),c=r.n(u),f=r(92013),d=r(24580),p=r(79189),h=r(50789),v=r(14829),g=r(86521),m=r(59152),y=r(74560),b=r(28180),w=r(28477);function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function x(e,t,r){return t=A(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}(e,S()?Reflect.construct(t,r||[],A(e).constructor):t.apply(e,r))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return(t=C(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var k=(0,s.Ay)("div",{name:"GalleryView",slot:"thumbnail"})((function(e){var t=e.ownerState,r=e.theme;return I(I(I({"&:focus":{outline:"none"},"&:hover":{backgroundColor:r.palette.action.hover},border:"2px solid transparent"},t.selected&&{borderColor:r.palette.primary.main}),!t.selected&&t.searchAnnotationsCount>0&&{borderColor:r.palette.action.selected}),{},{cursor:"pointer",display:"inline-block",margin:r.spacing(1,.5),maxHeight:t.config.height+45,minWidth:"60px",overflow:"hidden",padding:r.spacing(.5),position:"relative",width:"min-content"})})),_=(0,s.Ay)("div",{name:"GalleryView",slot:"chipArea"})((function(e){return{display:"flex",flexDirection:"column",gap:e.theme.spacing(.25),position:"absolute",right:0,top:0}})),R=(0,s.Ay)(v.A,{name:"GalleryView",slot:"chip"})((function(e){return{backgroundColor:e.theme.palette.annotations.chipBackground,opacity:.875,textAlign:"right"}})),N=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=x(this,t,[e])).myRef=(0,a.createRef)(),r.state={requestedAnnotations:!1},r.handleSelect=r.handleSelect.bind(P(r)),r.handleKey=r.handleKey.bind(P(r)),r.handleIntersection=r.handleIntersection.bind(P(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),r=t,n=[{key:"componentDidMount",value:function(){var e;this.props.selected&&(null===(e=this.myRef.current)||void 0===e||e.scrollIntoView(!0))}},{key:"handleSelect",value:function(){var e=this.props,t=e.canvas,r=e.selected,n=e.setCanvas,o=e.focusOnCanvas;r?o():n(t.id)}},{key:"handleKey",value:function(e){var t=this.props,r=t.canvas,n=t.setCanvas,o=t.focusOnCanvas;this.keys={enter:"Enter",space:" "},this.chars={enter:13,space:32},e.key===this.keys.enter||e.which===this.chars.enter||e.key===this.keys.space||e.which===this.chars.space?o():n(r.id)}},{key:"handleIntersection",value:function(e,t){var r=t.isIntersecting,n=this.props,o=n.annotationsCount,i=n.requestCanvasAnnotations,a=this.state.requestedAnnotations;!r||void 0===o||o>0||a||(this.setState({requestedAnnotations:!0}),i())}},{key:"render",value:function(){var e=this.props,t=e.annotationsCount,r=e.searchAnnotationsCount,n=e.canvas,o=e.config,i=e.selected;return(0,w.jsx)(y.pL,{onChange:this.handleIntersection,children:(0,w.jsx)(k,{ownerState:this.props,className:i?"selected":"",onClick:this.handleSelect,onKeyUp:this.handleKey,ref:this.myRef,role:"button",tabIndex:0,children:(0,w.jsx)(b.A,{resource:n,labelled:!0,variant:"outside",maxHeight:o.height,maxWidth:o.width,children:(0,w.jsxs)(_,{children:[r>0&&(0,w.jsx)(R,{icon:(0,w.jsx)(m.A,{fontSize:"small"}),label:r,size:"small"}),t>0&&(0,w.jsx)(R,{icon:(0,w.jsx)(g.A,{fontSize:"small"}),label:t,size:"small"})]})})},n.id||n.index)})}}],n&&O(r.prototype,n),o&&O(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(a.Component);N.defaultProps={annotationsCount:void 0,config:{height:100,width:null},requestCanvasAnnotations:function(){},searchAnnotationsCount:0,selected:!1};var D=r(75685),M=r(65174),L=r(60141),z=r(33235),W=r(69972);const B=(0,n.Zz)((0,o.Ng)((function(e,t){var r=t.canvas,n=t.windowId,o=(0,D.kR)(e,{windowId:n}),i=(0,M.sC)(e,{windowId:n}),a=c()(i.map((function(e){return e.resources}))).filter((function(e){return e.targetId===r.id})),s=(0,L.Ih)(e,{content:"annotations",windowId:n}).length>0;return{annotationsCount:function(){if(s)return(0,z.Su)(e,{canvasId:r.id}).reduce((function(e,t){return e+t.resources.filter((function(e){return e.targetId===r.id})).length}),0)}(),config:(0,W.zj)(e).galleryView,searchAnnotationsCount:a.length,selected:o&&o.id===r.id}}),(function(e,t){var r=t.canvas,n=(t.id,t.windowId);return{focusOnCanvas:function(){return e(f.QO(n,"single"))},requestCanvasAnnotations:function(){return e(d.aw(n,r.id))},setCanvas:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(p.h5.apply(h,[n].concat(r)))}}})))(N);function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H(n.key),n)}}function H(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function U(e,t,r){return t=G(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,V()?Reflect.construct(t,r||[],G(e).constructor):t.apply(e,r))}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V=function(){return!!e})()}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}var K=(0,s.Ay)(l.A,{name:"GalleryView",slot:"root"})((function(e){e.theme;return{alignItems:"flex-start",display:"flex",flexDirection:"row",flexWrap:"wrap",overflowX:"hidden",overflowY:"scroll",padding:"50px 0 50px 20px",width:"100%"}})),$=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),U(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(t,e),r=t,n=[{key:"render",value:function(){var e=this.props,t=e.canvases,r=e.viewingDirection,n=e.windowId,o="right-to-left"===r?"rtl":"ltr";return(0,w.jsx)(K,{component:"section","aria-label":"gallery section",dir:o,square:!0,elevation:0,id:"".concat(n,"-gallery"),children:t.map((function(e){return(0,w.jsx)(B,{windowId:n,canvas:e},e.id)}))})}}],n&&F(r.prototype,n),o&&F(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(a.Component);$.defaultProps={viewingDirection:""};var Z=r(82154);const X=(0,n.Zz)((0,o.Ng)((function(e,t){var r=t.windowId;return{canvases:(0,D.P)(e,{windowId:r}),viewingDirection:(0,Z.Kb)(e,{windowId:r})}})),(0,i.h)("GalleryView"))($)},28180:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(90757),o=r(58301),i=r(19857),a=r(38492),s=r(69972),l=r(78281),u=r(49801),c=r(74560),f=r(20653),d=r(28477),p=["border","placeholder","style","thumbnail","resource","maxHeight","maxWidth","thumbnailsConfig"];function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P(n.key),n)}}function v(e,t,r){return t=m(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,r||[],m(e).constructor):t.apply(e,r))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return(t=P(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var j=(0,u.Ay)("div",{name:"IIIFThumbnail",slot:"root"})({}),E=(0,u.Ay)("span",{name:"IIIFThumbnail",slot:"label"})((function(e){return S({},e.theme.typography.caption)})),I=(0,u.Ay)("img",{name:"IIIFThumbnail",slot:"image"})((function(){return{height:"auto",width:"auto"}})),T=function(e){var t=e.border,r=e.placeholder,n=e.style,o=void 0===n?{}:n,i=e.thumbnail,a=e.resource,s=e.maxHeight,u=e.maxWidth,h=e.thumbnailsConfig,v=O(e,p),g=(0,c.Wx)(),m=g.ref,y=g.inView,w=b((0,l.useState)(!1),2),x=w[0],A=w[1];(0,l.useEffect)((function(){!x&&y&&A(!0)}),[y,x]);var P=(0,l.useMemo)((function(){if(i)return i;var e=(0,f.A)(a,S(S({},h),{},{maxHeight:s,maxWidth:u}));return e&&e.url?e:void 0}),[a,i,u,s,h]),j=(0,l.useMemo)((function(){var e={height:void 0,maxHeight:void 0,maxWidth:void 0,width:void 0};if(!P)return S(S({},o),{},{height:s,width:u});var t=P.height,r=P.width;if(t&&r)if(s&&t>s||u&&r>u){var n=r/t;s&&u?u/s<n?(e.height=Math.round(u/n),e.width=u):(e.height=s,e.width=Math.round(s*n)):s?(e.height=s,e.maxWidth=Math.round(s*n)):u&&(e.width=u,e.maxHeight=Math.round(u/n))}else e.width=r,e.height=t;else t&&!r?e.height=s:!t&&r?e.width=u:(e.width=u,e.height=s);return S(S({},e),o)}),[P,u,s,o]),E=(x&&(i||P)||{}).url,T=void 0===E?r:E;return(0,d.jsx)(I,S({ownerState:{border:t},ref:m,alt:"",role:"presentation",src:T,style:j},v))};T.defaultProps={border:!1,style:{},thumbnail:null,thumbnailsConfig:{}};var C=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,o=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],(n=[{key:"label",value:function(){var e=this.props,r=e.label,n=e.resource;return r||t.getUseableLabel(n)}},{key:"render",value:function(){var e=this.props,t=e.border,r=e.children,n=e.imagePlaceholder,o=e.labelled,i=e.maxHeight,a=e.maxWidth,s=e.resource,l=e.style,u=e.thumbnail,c=e.thumbnailsConfig;return(0,d.jsxs)(j,{ownerState:this.props,children:[(0,d.jsx)(T,{placeholder:n,thumbnail:u,resource:s,maxHeight:i,maxWidth:a,thumbnailsConfig:c,style:l,border:t}),o&&(0,d.jsx)(E,{ownerState:this.props,children:this.label()}),r]})}}])&&h(r.prototype,n),o&&h(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(l.Component);C.defaultProps={border:!1,children:null,imagePlaceholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mMMDQmtBwADgwF/Op8FmAAAAABJRU5ErkJggg==",label:void 0,labelled:!1,maxHeight:null,maxWidth:null,style:{},thumbnail:null,thumbnailsConfig:{},variant:null};const k=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{thumbnailsConfig:(0,s.zj)(e).thumbnails}})),(0,a.h)("IIIFThumbnail"))(C)},41912:(e,t,r)=>{"use strict";r.d(t,{A:()=>P});var n=r(90757),o=r(58301),i=r(19857),a=r(38492),s=r(26678),l=r(78281),u=r(48281),c=r(56952),f=r(49726),d=r(31392),p=r(74754),h=r(28477);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function w(e,t,r){return t=x(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(t,r||[],x(e).constructor):t.apply(e,r))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}var A=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),w(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestDescription,r=e.manifestSummary,n=e.manifestLabel,o=e.manifestMetadata,i=e.id,a=e.t;return(0,h.jsxs)(c.A,{id:"".concat(i,"-resource"),label:a("resource"),children:[n&&(0,h.jsx)(u.A,{"aria-labelledby":"".concat(i,"-resource ").concat(i,"-resource-heading"),id:"".concat(i,"-resource-heading"),variant:"h4",component:"h5",children:n}),t&&(0,h.jsx)(u.A,{variant:"body1",children:(0,h.jsx)(f.A,{htmlString:t,ruleSet:"iiif"})}),r&&(0,h.jsx)(u.A,{variant:"body1",children:(0,h.jsx)(f.A,{htmlString:r,ruleSet:"iiif"})}),o.length>0&&(0,h.jsx)(d.P,{labelValuePairs:o}),(0,h.jsx)(p.F,g({},this.props))]})}}])&&y(r.prototype,n),o&&y(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(l.Component);A.defaultProps={manifestDescription:null,manifestLabel:null,manifestMetadata:[],manifestSummary:null,t:function(e){return e}};const P=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.id,n=t.manifestId,o=t.windowId;return{manifestDescription:(0,s.CG)(e,{companionWindowId:r,manifestId:n,windowId:o}),manifestLabel:(0,s.aY)(e,{companionWindowId:r,manifestId:n,windowId:o}),manifestMetadata:(0,s.dB)(e,{companionWindowId:r,manifestId:n,windowId:o}),manifestSummary:(0,s.a$)(e,{companionWindowId:r,manifestId:n,windowId:o})}})),(0,a.h)("ManifestInfo"))(A)},63317:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(90757),o=r(38492),i=r(49801),a=r(18941),s=r(33237),l=r(34338),u=r(28477),c=["badge","children","container","dispatch","BadgeProps","TooltipProps","sx"];function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=(0,i.Ay)(s.A,{name:"MiradorMenuButton",slot:"root"})((function(e){var t=e.ownerState,r=e.theme;return p({fill:"currentcolor"},t.selected&&{backgroundColor:r.palette.action.selected})}));function g(e){var t=e["aria-label"],r=e.badge,n=e.children,o=e.container,i=(e.dispatch,e.BadgeProps),s=e.TooltipProps,d=e.sx,h=f(e,c),g=(0,u.jsx)(v,p(p({ownerState:e},h),{},{sx:d,size:"large",children:r?(0,u.jsx)(a.A,p(p({overlap:"rectangular"},i),{},{children:n})):n}));return h.disabled?g:(0,u.jsx)(l.A,p(p({PopperProps:{container:null==o?void 0:o.current},title:t},s),{},{children:g}))}g.defaultProps={badge:!1,BadgeProps:{},container:null,dispatch:function(){},selected:!1,sx:{},TooltipProps:{}};var m=r(40826);const y=(0,n.Zz)(m.D,(0,o.h)("MiradorMenuButton"))(g)},94719:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Ae});var n=r(90757),o=r(58301),i=r(19857),a=r(94881),s=r.n(a),l=r(38492),u=r(78281),c=r(49801),f=r(38624),d=r.n(f),p=r(15031),h=r.n(p),v=r(99982),g=r.n(v),m=r(76973),y=r.n(m),b=r(60885),w=r(8568),O=r(57434),x=r.n(O),S=r(45646),A=r.n(S);function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j(n.key),n)}}function j(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var E=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.viewer=t,this.ref=r,this.containerWidth=0,this.containerHeight=0,this.imgAspectRatio=1}var t,r,n;return t=e,(r=[{key:"canvas",get:function(){return this.canvasDiv.firstElementChild}},{key:"canvasDiv",get:function(){return this.ref.current}},{key:"context2d",get:function(){return this.canvas.getContext("2d")}},{key:"clear",value:function(){this.context2d.clearRect(0,0,this.containerWidth,this.containerHeight)}},{key:"resize",value:function(){this.containerWidth!==this.viewer.container.clientWidth&&(this.containerWidth=this.viewer.container.clientWidth,this.canvasDiv.setAttribute("width",this.containerWidth),this.canvas.setAttribute("width",this.containerWidth)),this.containerHeight!==this.viewer.container.clientHeight&&(this.containerHeight=this.viewer.container.clientHeight,this.canvasDiv.setAttribute("height",this.containerHeight),this.canvas.setAttribute("height",this.containerHeight)),this.viewportOrigin=new(g().Point)(0,0);var e=this.viewer.viewport.getBoundsNoRotateWithMargins(!0);this.viewportOrigin.x=e.x,this.viewportOrigin.y=e.y*this.imgAspectRatio,this.viewportWidth=e.width,this.viewportHeight=e.height*this.imgAspectRatio;var t=this.viewer.world.getItemAt(0);t&&(this.imgWidth=t.source.dimensions.x,this.imgHeight=t.source.dimensions.y,this.imgAspectRatio=this.imgWidth/this.imgHeight)}},{key:"canvasUpdate",value:function(e){var t=this.viewer.viewport.getZoom(!0),r=this.viewer.world.getItemAt(0);if(r){var n=r.viewportToImageZoom(t),o=(this.viewportOrigin.x/this.imgWidth-this.viewportOrigin.x)/this.viewportWidth*this.containerWidth,i=(this.viewportOrigin.y/this.imgHeight-this.viewportOrigin.y)/this.viewportHeight*this.containerHeight;this.clearBeforeRedraw&&this.clear(),this.context2d.translate(o,i),this.context2d.scale(n,n);var a=this.viewer.viewport.getCenter();this.viewer.viewport.getFlip()&&(this.context2d.translate(2*a.x,0),this.context2d.scale(-1,1));var s=this.viewer.viewport.getRotation();0!==s&&(this.context2d.translate(a.x,a.y),this.context2d.rotate(s*Math.PI/180),this.context2d.translate(-1*a.x,-1*a.y)),e(),this.context2d.setTransform(1,0,0,1,0,0)}}}])&&P(t.prototype,r),n&&P(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function I(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var _=function(){function e(t){var r=t.resource,n=t.palette,o=t.zoomRatio,i=t.offset,a=t.selected,s=t.hovered;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=r,this.palette=n,this.zoomRatio=o,this.offset=i,this.selected=a,this.hovered=s}var t,r,n;return t=e,(r=[{key:"toContext",value:function(e){this.context=e,this.resource.svgSelector?this.svgContext():this.resource.fragmentSelector&&this.fragmentContext()}},{key:"svgString",get:function(){return this.resource.svgSelector.value}},{key:"svgContext",value:function(){var e,t=this;0!==(e=this.hovered?this.palette.hovered:this.selected?this.palette.selected:this.palette.default).globalAlpha&&I(this.svgPaths).forEach((function(r){t.context.save(),t.context.translate(t.offset.x,t.offset.y);var n=new Path2D(r.attributes.d.nodeValue);t.context.strokeStyle=t.color,r.attributes["stroke-dasharray"]&&t.context.setLineDash(r.attributes["stroke-dasharray"].nodeValue.split(","));var o={fill:"fillStyle",stroke:"strokeStyle","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterlimit","stroke-width":"lineWidth"};Object.keys(o).forEach((function(e){r.attributes[e]&&(t.context[o[e]]=r.attributes[e].nodeValue)})),t.context.lineWidth/=t.zoomRatio,(t.selected||t.hovered)&&(t.context.strokeStyle=e.strokeStyle||e.fillStyle),r.attributes["stroke-opacity"]?t.context.globalAlpha=e.globalAlpha*r.attributes["stroke-opacity"].nodeValue:t.context.globalAlpha=e.globalAlpha,t.context.stroke(n),r.attributes.fill&&"none"!==r.attributes.fill.nodeValue&&(r.attributes["fill-opacity"]?t.context.globalAlpha=e.globalAlpha*r.attributes["fill-opacity"].nodeValue:t.context.globalAlpha=e.globalAlpha,t.context.fill(n)),t.context.restore()}))}},{key:"fragmentContext",value:function(){var e,t,r,n=this,o=this.resource.fragmentSelector;(o[0]+=this.offset.x,o[1]+=this.offset.y,e=this.selected?this.palette.selected:this.hovered?this.palette.hovered:this.palette.default,this.context.save(),Object.keys(e).forEach((function(t){n.context[t]=e[t]})),0!==e.globalAlpha)&&(e.fillStyle?(t=this.context).fillRect.apply(t,I(o)):(this.context.lineWidth=1/this.zoomRatio,(r=this.context).strokeRect.apply(r,I(o))),this.context.restore())}},{key:"svgPaths",get:function(){return(new DOMParser).parseFromString(this.svgString,"text/xml").getElementsByTagName("path")}}])&&C(t.prototype,r),n&&C(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),R=r(28477);function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return(t=H(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||W(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){if(e){if("string"==typeof e)return B(e,t);var r=Object.prototype.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)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H(n.key),n)}}function H(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function U(e,t,r){return t=G(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return q(e)}(e,V()?Reflect.construct(t,r||[],G(e).constructor):t.apply(e,r))}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V=function(){return!!e})()}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}var $=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=U(this,t,[e])).ref=(0,u.createRef)(),r.osdCanvasOverlay=null,r.updateCanvas=function(){},r.onUpdateViewport=r.onUpdateViewport.bind(q(r)),r.onCanvasClick=r.onCanvasClick.bind(q(r)),r.onCanvasMouseMove=d()(r.onCanvasMouseMove.bind(q(r)),10),r.onCanvasExit=r.onCanvasExit.bind(q(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(t,e),r=t,n=[{key:"componentDidMount",value:function(){this.initializeViewer()}},{key:"componentDidUpdate",value:function(e){var r=this.props,n=r.drawAnnotations,o=r.drawSearchAnnotations,i=r.annotations,a=r.searchAnnotations,s=r.hoveredAnnotationIds,l=r.selectedAnnotationId,u=r.highlightAllAnnotations,c=r.viewer;this.initializeViewer();var f=!t.annotationsMatch(i,e.annotations),d=!t.annotationsMatch(a,e.searchAnnotations),p=A()(s,e.hoveredAnnotationIds).length>0;this.osdCanvasOverlay&&p&&(s.length>0?this.osdCanvasOverlay.canvasDiv.style.cursor="pointer":this.osdCanvasOverlay.canvasDiv.style.cursor="");var h=l!==e.selectedAnnotationId,v=n!==e.drawAnnotations||o!==e.drawSearchAnnotations||u!==e.highlightAllAnnotations;(d||f||h||p||v)&&(this.updateCanvas=this.canvasUpdateCallback(),c.forceRedraw())}},{key:"componentWillUnmount",value:function(){var e=this.props.viewer;this.onCanvasMouseMove.cancel(),e.removeHandler("canvas-click",this.onCanvasClick),e.removeHandler("canvas-exit",this.onCanvasExit),e.removeHandler("update-viewport",this.onUpdateViewport),e.removeHandler("mouse-move",this.onCanvasMouseMove)}},{key:"onCanvasClick",value:function(e){var t=this,r=this.props.canvasWorld,n=e.position,o=e.eventSource.viewport.pointFromPixel(n),i=r.canvasAtPoint(o);if(i){var a=z(r.canvasToWorldCoordinates(i.id),4),s=(a[0],a[1],a[2]),l=a[3],u=this.annotationsAtPoint(i,o);if(u.length>0&&(e.preventDefaultAction=!0),1===u.length)this.toggleAnnotation(u[0].id);else if(u.length>0){var c=function(e){var r=Math.PI/180;return function(n){for(var a=0,s=0;s<360;s+=1){var l=Math.cos(s*r)*e+o.x,u=Math.sin(s*r)*e+o.y;t.isAnnotationAtPoint(n,i,{x:l,y:u})&&(a+=1)}return{anno:n,score:a}}},f=[],d=1;for(f=x()(u.map(c(d)),"score");d<Math.max(s,l)&&f[0].score===f[1].score;)d*=2,f=x()(u.map(c(d)),"score");this.toggleAnnotation(f[0].anno.id)}}}},{key:"onCanvasMouseMove",value:function(e){var t=this.props,r=t.annotations,n=t.canvasWorld,o=t.hoverAnnotation,i=t.hoveredAnnotationIds,a=t.searchAnnotations,s=t.viewer,l=t.windowId;if(0!==r.length||0!==a.length){var u=e.position,c=s.viewport.pointFromPixel(u),f=n.canvasAtPoint(c);if(f){var d=this.annotationsAtPoint(f,c);A()(i,d.map((function(e){return e.id}))).length>0&&o(l,d.map((function(e){return e.id})))}else o(l,[])}}},{key:"onCanvasExit",value:function(e){var t=this.props,r=t.hoverAnnotation,n=t.windowId;this.onCanvasMouseMove.cancel(),r(n,[])}},{key:"onUpdateViewport",value:function(e){this.updateCanvas()}},{key:"initializeViewer",value:function(){var e=this.props.viewer;e&&(this.osdCanvasOverlay||(this.osdCanvasOverlay=new E(e,this.ref),e.addHandler("canvas-click",this.onCanvasClick),e.addHandler("canvas-exit",this.onCanvasExit),e.addHandler("update-viewport",this.onUpdateViewport),e.addHandler("mouse-move",this.onCanvasMouseMove),this.updateCanvas=this.canvasUpdateCallback()))}},{key:"canvasUpdateCallback",value:function(){var e=this;return function(){e.osdCanvasOverlay.clear(),e.osdCanvasOverlay.resize(),e.osdCanvasOverlay.canvasUpdate(e.renderAnnotations.bind(e))}}},{key:"isAnnotationAtPoint",value:function(e,t,r){var n=z(this.props.canvasWorld.canvasToWorldCoordinates(t.id),2),o=n[0],i=n[1],a=r.x-o,s=r.y-i;if(e.svgSelector){var l=this.osdCanvasOverlay.context2d;return L(new _({resource:e}).svgPaths).some((function(e){return l.isPointInPath(new Path2D(e.attributes.d.nodeValue),a,s)}))}if(e.fragmentSelector){var u=z(e.fragmentSelector,4),c=u[0],f=u[1],d=u[2],p=u[3];return c<=a&&a<=c+d&&f<=s&&s<=f+p}return!1}},{key:"annotationsAtPoint",value:function(e,t){var r=this,n=this.props,o=n.annotations,i=n.searchAnnotations,a=[].concat(L(o),L(i));return s()(a.map((function(e){return e.resources}))).filter((function(n){return e.id===n.targetId&&r.isAnnotationAtPoint(n,e,t)}))}},{key:"toggleAnnotation",value:function(e){var t=this.props,r=t.selectedAnnotationId,n=t.selectAnnotation,o=t.deselectAnnotation,i=t.windowId;r===e?o(i,e):n(i,e)}},{key:"annotationsToContext",value:function(e,t){var r=this.props,n=r.highlightAllAnnotations,o=r.hoveredAnnotationIds,i=r.selectedAnnotationId,a=r.canvasWorld,s=r.viewer,l=this.osdCanvasOverlay.context2d,u=s.viewport.getZoom(!0)/s.viewport.getMaxZoom();e.forEach((function(e){e.resources.forEach((function(e){if(a.canvasIds.includes(e.targetId)){var r=a.offsetByCanvas(e.targetId);new _({hovered:o.includes(e.id),offset:r,palette:D(D({},t),{},{default:D(D({},t.default),!n&&t.hidden)}),resource:e,selected:i===e.id,zoomRatio:u}).toContext(l)}}))}))}},{key:"renderAnnotations",value:function(){var e=this.props,t=e.annotations,r=e.drawAnnotations,n=e.drawSearchAnnotations,o=e.searchAnnotations,i=e.palette;n&&this.annotationsToContext(o,i.search),r&&this.annotationsToContext(t,i.annotations)}},{key:"render",value:function(){var e=this.props.viewer;return e?w.createPortal((0,R.jsx)("div",{ref:this.ref,style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"},children:(0,R.jsx)("canvas",{})}),e.canvas):null}}],o=[{key:"annotationsMatch",value:function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(0===e.length&&0===t.length||e.length===t.length&&e.every((function(e,r){var n=e.resources.map((function(e){return e.id})),o=t[r].resources.map((function(e){return e.id}));return 0===n.length&&0===o.length||n.length===o.length&&!(e.id!==t[r].id||!h()(n,o))})))}}],n&&F(r.prototype,n),o&&F(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);$.defaultProps={annotations:[],deselectAnnotation:function(){},drawAnnotations:!0,drawSearchAnnotations:!0,highlightAllAnnotations:!1,hoverAnnotation:function(){},hoveredAnnotationIds:[],palette:{},searchAnnotations:[],selectAnnotation:function(){},selectedAnnotationId:void 0,viewer:null};var Z=r(24580),X=r(33235),Y=r(77628),Q=r(69972),J=r(60141),ee=r(47640),te=r(65174),re={deselectAnnotation:Z.PW,hoverAnnotation:Z.GW,selectAnnotation:Z.gN};const ne=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId;return{annotations:(0,X.Su)(e,{windowId:r}),canvasWorld:(0,Y.k)(e,{windowId:r}),drawAnnotations:(0,Q.zj)(e).window.forceDrawAnnotations||(0,J.Ih)(e,{content:"annotations",windowId:r}).length>0,drawSearchAnnotations:(0,Q.zj)(e).window.forceDrawAnnotations||(0,J.Ih)(e,{content:"search",windowId:r}).length>0,highlightAllAnnotations:(0,ee.zk)(e,{windowId:r}).highlightAllAnnotations,hoveredAnnotationIds:(0,ee.zk)(e,{windowId:r}).hoveredAnnotationIds,palette:(0,Q.O4)(e).palette,searchAnnotations:(0,te.sC)(e,{windowId:r}),selectedAnnotationId:(0,X.e3)(e,{windowId:r})}}),re),(0,l.h)("AnnotationsOverlay"))($);var oe=r(74754),ie={get:function(e){return this.refs[e]},refs:{},set:function(e,t){this.refs[e]=t}};function ae(e,t,r){if(ve())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&ye(o,r.prototype),o}function se(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return le(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fe(e,t,r){return(t=pe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pe(n.key),n)}}function pe(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function he(e,t,r){return t=ge(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return me(e)}(e,ve()?Reflect.construct(t,r||[],ge(e).constructor):t.apply(e,r))}function ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ve=function(){return!!e})()}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}function me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e,t){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ye(e,t)}var be=(0,c.Ay)("section")({cursor:"grab",flex:1,position:"relative"}),we=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=he(this,t,[e])).state={grabbing:!1,viewer:void 0},r.ref=(0,u.createRef)(),r.apiRef=(0,u.createRef)(),ie.set(e.windowId,r.apiRef),r.onCanvasMouseMove=d()(r.onCanvasMouseMove.bind(me(r)),10),r.onViewportChange=r.onViewportChange.bind(me(r)),r.zoomToWorld=r.zoomToWorld.bind(me(r)),r.osdUpdating=!1,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(t,e),r=t,n=[{key:"componentDidMount",value:function(){var e=this,t=this.props,r=t.osdConfig,n=t.t,o=t.windowId;if(this.ref.current){var i=new(g())(ce({id:this.ref.current.id},r)),a=i.canvas&&i.canvas.firstElementChild;a&&(a.setAttribute("role","img"),a.setAttribute("aria-label",n("digitizedView")),a.setAttribute("aria-describedby","".concat(o,"-osd"))),this.apiRef.current=i,this.setState({viewer:i}),i.addHandler("canvas-drag",(function(){e.setState({grabbing:!0})})),i.addHandler("canvas-drag-end",(function(){e.setState({grabbing:!1})})),i.addHandler("animation-start",(function(){e.osdUpdating=!0})),i.addHandler("animation-finish",this.onViewportChange),i.addHandler("animation-finish",(function(){e.osdUpdating=!1})),i.innerTracker&&(i.innerTracker.moveHandler=this.onCanvasMouseMove)}}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,n=r.viewerConfig,o=r.canvasWorld,i=this.state.viewer;if(this.apiRef.current=i,void 0===t.viewer)return n&&(i.viewport.panTo(n,!0),i.viewport.zoomTo(n.zoom,n,!0),void 0!==n.degrees&&i.viewport.setRotation(n.degrees),void 0!==n.flip&&i.viewport.setFlip(n.flip)),void this.addAllImageSources(!n);if(this.infoResponsesMatch(e.infoResponses)&&this.nonTiledImagedMatch(e.nonTiledImages))if(h()(o.layers,e.canvasWorld.layers)){if(n&&!this.osdUpdating){var a=i.viewport;n.x===a.centerSpringX.target.value&&n.y===a.centerSpringY.target.value||a.panTo(n,!1),n.zoom!==a.zoomSpring.target.value&&a.zoomTo(n.zoom,n,!1),n.rotation!==a.getRotation()&&a.setRotation(n.rotation),n.flip!==a.getFlip()&&a.setFlip(n.flip)}}else this.refreshTileProperties();else{i.close();var s=!h()(o.canvasIds,e.canvasWorld.canvasIds);this.addAllImageSources(s||!n)}}},{key:"componentWillUnmount",value:function(){var e=this.state.viewer;e.innerTracker&&e.innerTracker.moveHandler===this.onCanvasMouseMove&&(e.innerTracker.moveHandler=null),e.removeAllHandlers(),this.onCanvasMouseMove.cancel(),this.apiRef.current=void 0}},{key:"onCanvasMouseMove",value:function(e){this.state.viewer.raiseEvent("mouse-move",e)}},{key:"onViewportChange",value:function(e){var t=this.props,r=t.updateViewport,n=t.windowId,o=e.eventSource.viewport;r(n,{flip:o.getFlip(),rotation:o.getRotation(),x:Math.round(o.centerSpringX.target.value),y:Math.round(o.centerSpringY.target.value),zoom:o.zoomSpring.target.value})}},{key:"addAllImageSources",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=this.props,n=r.nonTiledImages,o=r.infoResponses;return Promise.allSettled([].concat(se(o.map((function(t){return e.addTileSource(t)}))),se(n.map((function(t){return e.addNonTiledImage(t)}))))).then((function(){(o[0]||n[0])&&(t&&e.zoomToWorld(),e.refreshTileProperties())}))}},{key:"addNonTiledImage",value:function(e){var t=this.props.canvasWorld,r=this.state.viewer,n=e.getProperty("type"),o=e.getProperty("format")||"";return"Image"===n||"dctypes:Image"===n||o.startsWith("image/")?new Promise((function(n,o){n(r.addSimpleImage({error:function(e){return o(e)},fitBounds:ae(g().Rect,se(t.contentResourceToWorldCoordinates(e))),index:t.layerIndexOfImageResource(e),opacity:t.layerOpacityOfImageResource(e),success:function(e){return n(e)},url:e.id}))})):Promise.resolve()}},{key:"addTileSource",value:function(e){var t=this.props.canvasWorld,r=this.state.viewer;return new Promise((function(n,o){var i=ce({},e.json),a=t.contentResource(e.id);a&&r.addTiledImage({error:function(e){return o(e)},fitBounds:ae(g().Rect,se(t.contentResourceToWorldCoordinates(a))),index:t.layerIndexOfImageResource(a),opacity:t.layerOpacityOfImageResource(a),success:function(e){return n(e)},tileSource:i})}))}},{key:"refreshTileProperties",value:function(){for(var e=this.props.canvasWorld,t=this.state.viewer.world,r=[],n=0;n<t.getItemCount();n+=1)r.push(t.getItemAt(n));r.forEach((function(r,n){var o=e.contentResource(r.source["@id"]||r.source.id);if(o){var i=e.layerIndexOfImageResource(o);n!==i&&t.setItemIndex(r,i),r.setOpacity(e.layerOpacityOfImageResource(o))}}))}},{key:"fitBounds",value:function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=this.state.viewer;i&&i.viewport&&i.viewport.fitBounds(new(g().Rect)(e,t,r,n),o)}},{key:"infoResponsesMatch",value:function(e){var t=this.props.infoResponses;return 0===t.length&&0===e.length||t.length===e.length&&t.every((function(t,r){return!!(e[r]&&t.json&&e[r].json&&t.tokenServiceId===e[r].tokenServiceId&&(t.json["@id"]&&t.json["@id"]===e[r].json["@id"]||t.json.id&&t.json.id===e[r].json.id))}))}},{key:"nonTiledImagedMatch",value:function(e){var t=this.props.nonTiledImages;return 0===t.length&&0===e.length||t.some((function(t,r){return!!e[r]&&t.id===e[r].id}))}},{key:"zoomToWorld",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.canvasWorld;this.fitBounds.apply(this,se(t.worldBounds()).concat([e]))}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=t.label,o=t.t,i=t.windowId,a=t.drawAnnotations,s=this.state,l=s.viewer,c=s.grabbing,f=u.Children.map(r,(function(t){return(0,u.cloneElement)(t,{zoomToWorld:e.zoomToWorld})}));return(0,R.jsxs)(be,{className:y()((0,b.A)("osd-container")),style:{cursor:c?"grabbing":void 0},id:"".concat(i,"-osd"),ref:this.ref,"aria-label":o("item",{label:n}),"aria-live":"polite",children:[a&&(0,R.jsx)(ne,{viewer:l,windowId:i}),f,(0,R.jsx)(oe.F,ce({viewer:l},ce(ce({},this.props),{},{children:null})))]})}}],n&&de(r.prototype,n),o&&de(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);we.defaultProps={children:null,drawAnnotations:!1,infoResponses:[],label:null,nonTiledImages:[],osdConfig:{},viewerConfig:null};var Oe=r(79189),xe=r(75685),Se={updateViewport:Oe.yR};const Ae=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId,n=(0,Y.k)(e,{windowId:r}),o=(0,xe.dN)(e),i=s()(n.canvases.map((function(e){return e.imageServiceIds})));return{canvasWorld:n,drawAnnotations:(0,Q.zj)(e).window.forceDrawAnnotations||(0,J.Ih)(e,{content:"annotations",windowId:r}).length>0||(0,J.Ih)(e,{content:"search",windowId:r}).length>0,infoResponses:i.map((function(e){return o[e]})).filter((function(e){return void 0!==e&&!1===e.isFetching&&void 0===e.error})),label:(0,xe.T2)(e,{canvasId:((0,xe.kR)(e,{windowId:r})||{}).id,windowId:r}),nonTiledImages:(0,xe.RP)(e,{windowId:r}),osdConfig:(0,Q.zj)(e).osdConfig,viewerConfig:(0,ee.tk)(e,{windowId:r})}}),Se),(0,l.h)("OpenSeadragonViewer"))(we)},49726:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(78281),o=r(49801),i=r(80595),a=r.n(i),s=r(60885);const l={iiif:{ALLOWED_ATTR:["href","src","alt"],ALLOWED_TAGS:["a","b","br","i","img","p","span"]},liberal:{},mirador2:{ALLOWED_ATTR:["href","target","src","alt","dir"],ALLOWED_TAGS:["a","b","br","i","img","p","span","strong","em","ul","ol","li"]},noHtml:{ALLOWED_TAGS:[]}};var u=r(28477),c=["classes","htmlString","ruleSet"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function v(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function g(e,t,r){return t=y(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,r||[],y(e).constructor):t.apply(e,r))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var w=(0,o.Ay)("span",{name:"IIIFHtmlContent",slot:"root"})({}),O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),r=t,n=[{key:"render",value:function(){var e=this.props,t=e.classes,r=e.htmlString,n=e.ruleSet,o=p(e,c);return a().addHook("afterSanitizeAttributes",(function(e){"target"in e&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))})),(0,u.jsx)(w,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:[(0,s.A)("third-party-html"),t.root].join(" "),dangerouslySetInnerHTML:{__html:a().sanitize(r,l[n])}},o))}}],n&&h(r.prototype,n),o&&h(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(n.Component);O.defaultProps={classes:{}};const x=O},81109:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>A});var n=r(90757),o=r(58301),i=r(19857),a=r(92013),s=r(38492),l=r(47640),u=r(78281),c=r(70943),f=r(70368),d=r(48281),p=r(76496),h=r(28477);function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function m(e,t,r){return t=b(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(e,y()?Reflect.construct(t,r||[],b(e).constructor):t.apply(e,r))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var x=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=m(this,t,[e])).openCollectionDialog=r.openCollectionDialog.bind(w(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),r=t,(n=[{key:"openCollectionDialog",value:function(){var e=this.props,t=e.collectionPath,r=e.manifestId,n=e.showCollectionDialog,o=e.windowId;n(r,t.slice(0,-1),o)}},{key:"render",value:function(){var e=this.props.t;return(0,h.jsx)(f.Ay,{container:!0,justifyContent:"center",alignItems:"center",children:(0,h.jsxs)(f.Ay,{container:!0,direction:"column",alignItems:"center",children:[(0,h.jsx)(d.A,{variant:"h4",paragraph:!0,children:(0,h.jsx)("em",{children:e("noItemSelected")})}),(0,h.jsx)(c.A,{"aria-label":"show collection",color:"primary",variant:"contained",onClick:this.openCollectionDialog,startIcon:(0,h.jsx)(p.A,{}),children:e("showCollection")})]})})}}])&&v(r.prototype,n),o&&v(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);x.defaultProps={collectionPath:[],manifestId:null,t:function(){},windowId:null};var S={showCollectionDialog:a.Az};const A=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId,n=(0,l.zk)(e,{windowId:r})||{};return{collectionPath:n.collectionPath,manifestId:n.manifestId}}),S),(0,s.h)("SelectCollection"))(x)},34576:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>A});var n=r(58301),o=r(90757),i=r(19857),a=r(38492),s=r(78281),l=r(49801),u=r(28477);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function v(e,t,r){return t=m(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,r||[],m(e).constructor):t.apply(e,r))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var b=(0,l.Ay)("div")((function(){return{alignItems:"center",display:"flex",width:"100%"}})),w=(0,l.Ay)("video")((function(){return{maxHeight:"100%",width:"100%"}})),O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.captions,r=e.videoOptions,n=e.videoResources;return(0,u.jsx)(b,{children:(0,u.jsxs)(w,f(f({},r),{},{children:[n.map((function(e){return(0,u.jsx)(s.Fragment,{children:(0,u.jsx)("source",{src:e.id,type:e.getFormat()})},e.id)})),t.map((function(e){return(0,u.jsx)(s.Fragment,{children:(0,u.jsx)("track",{src:e.id,label:e.getDefaultLabel(),srcLang:e.getProperty("language")})},e.id)}))]}))})}}])&&p(r.prototype,n),o&&p(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);O.defaultProps={captions:[],videoOptions:{},videoResources:[]};var x=r(75685),S=r(69972);const A=(0,o.Zz)((0,i.CI)(),(0,n.Ng)((function(e,t){var r=t.windowId;return{captions:(0,x.mK)(e,{windowId:r})||[],videoOptions:(0,S.zj)(e).videoOptions,videoResources:(0,x.HS)(e,{windowId:r})||[]}}),null),(0,a.h)("VideoViewer"))(O)},36535:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Be});var n=r(90757),o=r(38492),i=r(78281),a=r(58301),s=r(72855),l=r(69972),u=r(47640),c=r(49801),f=r(63548),d=r(76973),p=r.n(d),h=r(15312),v=r(92408),g=r(5550),m=r(63063),y=r(20997),b=r(80408),w=r(83032),O=r(83542),x=r(15220),S=r(28477),A=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],P=(0,c.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((function(e){var t=e.theme,r=e.ownerState;return(0,m.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,w.X4)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var t=e.ownerState;return(0,m.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(function(e){var t=e.theme,r=e.ownerState;return(0,m.A)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(function(e){var t=e.theme,r=e.ownerState;return(0,m.A)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(function(e){var t=e.ownerState;return(0,m.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),j=(0,c.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,t){var r=e.ownerState;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((function(e){var t=e.theme,r=e.ownerState;return(0,m.A)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),E=i.forwardRef((function(e,t){var r=(0,O.A)({props:e,name:"MuiDivider"}),n=r.absolute,o=void 0!==n&&n,i=r.children,a=r.className,s=r.component,l=void 0===s?i?"div":"hr":s,u=r.flexItem,c=void 0!==u&&u,f=r.light,d=void 0!==f&&f,p=r.orientation,h=void 0===p?"horizontal":p,v=r.role,w=void 0===v?"hr"!==l?"separator":void 0:v,E=r.textAlign,I=void 0===E?"center":E,T=r.variant,C=void 0===T?"fullWidth":T,k=(0,g.A)(r,A),_=(0,m.A)({},r,{absolute:o,component:l,flexItem:c,light:d,orientation:h,role:w,textAlign:I,variant:C}),R=function(e){var t=e.absolute,r=e.children,n=e.classes,o=e.flexItem,i=e.light,a=e.orientation,s=e.textAlign,l={root:["root",t&&"absolute",e.variant,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,b.A)(l,x.K,n)}(_);return(0,S.jsx)(P,(0,m.A)({as:l,className:(0,y.A)(R.root,a),role:w,ref:t,ownerState:_},k,{children:i?(0,S.jsx)(j,{className:R.wrapper,ownerState:_,children:i}):null}))}));E.muiSkipListHighlight=!0;const I=E;var T=r(48281),C=r(70026),k=r(19857),_=r(79189),R=r(67681),N=r(20224),D=r(57026);function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e){return(0,S.jsx)(D.A,L(L({},e),{},{children:(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,S.jsx)("path",{d:"M6,15H9v3h2V13H6Zm9-6V6H13v5h5V9Z"}),(0,S.jsx)("path",{d:"M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8,8,8,0,0,1-8,8Z"})]})}))}var B=r(63317);function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H(n.key),n)}}function H(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function U(e,t,r){return t=G(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return q(e)}(e,V()?Reflect.construct(t,r||[],G(e).constructor):t.apply(e,r))}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V=function(){return!!e})()}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}var $=(0,c.Ay)("div")({display:"flex",flexDirection:"row",justifyContent:"center"}),Z=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=U(this,t,[e])).handleZoomInClick=r.handleZoomInClick.bind(q(r)),r.handleZoomOutClick=r.handleZoomOutClick.bind(q(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(t,e),r=t,(n=[{key:"handleZoomInClick",value:function(){var e=this.props,t=e.windowId;(0,e.updateViewport)(t,{zoom:2*e.viewer.zoom})}},{key:"handleZoomOutClick",value:function(){var e=this.props,t=e.windowId;(0,e.updateViewport)(t,{zoom:e.viewer.zoom/2})}},{key:"render",value:function(){var e=this.props,t=e.t,r=e.zoomToWorld;return(0,S.jsxs)($,{children:[(0,S.jsx)(B.A,{"aria-label":t("zoomIn"),onClick:this.handleZoomInClick,children:(0,S.jsx)(R.A,{})}),(0,S.jsx)(B.A,{"aria-label":t("zoomOut"),onClick:this.handleZoomOutClick,children:(0,S.jsx)(N.A,{})}),(0,S.jsx)(B.A,{"aria-label":t("zoomReset"),onClick:function(){return r(!1)},children:(0,S.jsx)(W,{})})]})}}])&&F(r.prototype,n),o&&F(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(i.Component);Z.defaultProps={t:function(e){return e},updateViewport:function(){},viewer:{},windowId:""};var X={updateViewport:_.yR};const Y=(0,n.Zz)((0,k.CI)(),(0,a.Ng)((function(e,t){var r=t.windowId;return{viewer:(0,u.tk)(e,{windowId:r})}}),X),(0,o.h)("ZoomControls"))(Z);var Q=r(60885);function J(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ee(n.key),n)}}function ee(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function te(e,t,r){return t=ne(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,re()?Reflect.construct(t,r||[],ne(e).constructor):t.apply(e,r))}function re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(re=function(){return!!e})()}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function oe(e,t){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oe(e,t)}var ie=(0,c.Ay)("div")((function(){return{overflow:"hidden",paddingBottom:.5,textOverflow:"ellipsis",unicodeBidi:"plaintext",whiteSpace:"nowrap",width:"100%"}})),ae=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),te(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasCount,r=e.canvasIndex,n=e.canvasLabel,o=e.t;return(0,S.jsxs)(ie,{className:p()((0,Q.A)("osd-info")),children:[(0,S.jsx)(T.A,{display:"inline",variant:"caption",className:(0,Q.A)("canvas-count"),children:o("pagination",{current:r+1,total:t})}),(0,S.jsx)(T.A,{display:"inline",variant:"caption",className:(0,Q.A)("canvas-label"),children:n&&" • ".concat(n)})]})}}])&&J(r.prototype,n),o&&J(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(i.Component);ae.defaultProps={canvasLabel:void 0,t:function(){}};var se=r(75685),le=r(82154);const ue=(0,n.Zz)((0,k.CI)(),(0,a.Ng)((function(e,t){var r=t.windowId,n=(0,se.P)(e,{windowId:r}),o=(0,le.PB)(e,{windowId:r}),i=((0,se.kR)(e,{windowId:r})||{}).id;return{canvasCount:n.length,canvasIndex:o,canvasLabel:(0,se.T2)(e,{canvasId:i,windowId:r})}}),null),(0,o.h)("ViewerInfo"))(ae);var ce=r(66694);function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,de(n.key),n)}}function de(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function pe(e,t,r){return t=ve(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,he()?Reflect.construct(t,r||[],ve(e).constructor):t.apply(e,r))}function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(he=function(){return!!e})()}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(e)}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}var me=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),pe(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ge(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.hasNextCanvas,r=e.hasPreviousCanvas,n=e.setNextCanvas,o=e.setPreviousCanvas,i=e.t,a="ltr",s={},l={};switch(e.viewingDirection){case"top-to-bottom":s={transform:"rotate(270deg)"},l={transform:"rotate(90deg)"};break;case"bottom-to-top":s={transform:"rotate(90deg)"},l={transform:"rotate(270deg)"};break;case"right-to-left":a="rtl",s={},l={transform:"rotate(180deg)"};break;default:s={transform:"rotate(180deg)"},l={}}return(0,S.jsxs)("div",{className:p()((0,Q.A)("osd-navigation")),dir:a,children:[(0,S.jsx)(B.A,{"aria-label":i("previousCanvas"),className:(0,Q.A)("previous-canvas-button"),disabled:!r,onClick:function(){r&&o()},children:(0,S.jsx)(ce.A,{style:s})}),(0,S.jsx)(B.A,{"aria-label":i("nextCanvas"),className:(0,Q.A)("next-canvas-button"),disabled:!t,onClick:function(){t&&n()},children:(0,S.jsx)(ce.A,{style:l})})]})}}])&&fe(r.prototype,n),o&&fe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(i.Component);me.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function(){},setPreviousCanvas:function(){},viewingDirection:""};const ye=(0,n.Zz)((0,k.CI)(),(0,a.Ng)((function(e,t){var r=t.windowId;return{hasNextCanvas:!!(0,se.BL)(e,{windowId:r}),hasPreviousCanvas:!!(0,se.Nj)(e,{windowId:r}),viewingDirection:(0,le.Kb)(e,{windowId:r})}}),(function(e,t){var r=t.windowId;return{setNextCanvas:function(){return e(_.OZ(r))},setPreviousCanvas:function(){return e(_.Kh(r))}}})),(0,o.h)("ViewerNavigation"))(me);var be=r(74754);function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xe(e,t,r){return(t=Ae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ae(n.key),n)}}function Ae(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Pe(e,t,r){return t=Ee(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,je()?Reflect.construct(t,r||[],Ee(e).constructor):t.apply(e,r))}function je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(je=function(){return!!e})()}function Ee(e){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ee(e)}function Ie(e,t){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ie(e,t)}var Te=(0,c.Ay)(h.A,{name:"WindowCanvasNavigationControls",slot:"root"})((function(e){var t=e.theme;return{alignItems:"center",backgroundColor:(0,f.X4)(t.palette.background.paper,.5),bottom:0,cursor:"default",display:"flex",flexDirection:"column",flexWrap:"wrap",justifyContent:"center",position:"absolute",textAlign:"center",width:"100%",zIndex:50}})),Ce=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pe(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ie(e,t)}(t,e),r=t,(n=[{key:"canvasNavControlsAreStacked",value:function(){var e=this.props.size;return e&&e.width&&e.width<=253}},{key:"render",value:function(){var e=this.props,t=e.showZoomControls,r=e.visible,n=e.windowId,o=e.zoomToWorld;return r?(0,S.jsxs)(Te,{square:!0,className:p()((0,Q.A)("canvas-nav"),this.canvasNavControlsAreStacked()?(0,Q.A)("canvas-nav-stacked"):null),elevation:0,children:[(0,S.jsxs)(v.A,{direction:this.canvasNavControlsAreStacked()?"column":"row",divider:(0,S.jsx)(I,{orientation:this.canvasNavControlsAreStacked()?"horizontal":"vertical",variant:"middle",flexItem:!0}),spacing:0,children:[t&&(0,S.jsx)(Y,{windowId:n,zoomToWorld:o}),(0,S.jsx)(ye,{windowId:n})]}),(0,S.jsx)(ue,{windowId:n}),(0,S.jsx)(be.F,Oe({},this.props))]}):(0,S.jsx)(T.A,{style:C.A,component:"div",children:(0,S.jsx)(ue,{windowId:n})})}}])&&Se(r.prototype,n),o&&Se(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(i.Component);Ce.defaultProps={showZoomControls:!1,visible:!0};const ke=(0,n.Zz)((0,a.Ng)((function(e,t){var r=t.windowId;return{showZoomControls:(0,l.X3)(e),visible:(0,u.K4)(e).focusedWindowId===r}})),(0,s.withSize)(),(0,o.h)("WindowCanvasNavigationControls"))(Ce);function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Re(n.key),n)}}function Re(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ne(e,t,r){return t=Me(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,De()?Reflect.construct(t,r||[],Me(e).constructor):t.apply(e,r))}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(De=function(){return!!e})()}function Me(e){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(e)}function Le(e,t){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Le(e,t)}var ze=(0,i.lazy)((function(){return Promise.resolve().then(r.bind(r,94719))})),We=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ne(this,t,[e])).state={},r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Le(e,t)}(t,e),r=t,o=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}],(n=[{key:"render",value:function(){var e=this.props.windowId;return this.state.hasError?null:(0,S.jsx)(i.Suspense,{fallback:(0,S.jsx)("div",{}),children:(0,S.jsx)(ze,{windowId:e,children:(0,S.jsx)(ke,{windowId:e})})})}}])&&_e(r.prototype,n),o&&_e(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(i.Component);const Be=(0,n.Zz)((0,o.h)("WindowViewer"))(We)},94555:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>fg});var n=r(90757),o=r(58301),i=r(19857),a=r(38492),s=r(78281),l=r.t(s,2),u=r(49801),c=r(63548),f=r(37891),d=r.n(f),p=r(5550),h=r(63063),v=r(20997),g=r(80408),m=r(70946),y=r(71905),b=r(79100),w=r(4832),O=r(15312),x=r(83542),S=r(95298),A=r(88842);function P(e){return(0,A.Ay)("MuiDialog",e)}const j=(0,S.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const E=s.createContext({});var I=r(83136),T=r(77682),C=r(28477);function k(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],R=(0,u.Ay)(I.A,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),N=(0,u.Ay)(b.A,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),D=(0,u.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var r=e.ownerState;return[t.container,t["scroll".concat((0,y.A)(r.scroll))]]}})((function(e){var t=e.ownerState;return(0,h.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),M=(0,u.Ay)(O.A,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var r=e.ownerState;return[t.paper,t["scrollPaper".concat((0,y.A)(r.scroll))],t["paperWidth".concat((0,y.A)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,r=e.ownerState;return(0,h.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&k({maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)")},"&.".concat(j.paperScrollBody),k({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),r.maxWidth&&"xs"!==r.maxWidth&&k({maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(j.paperScrollBody),k({},t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&k({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(j.paperScrollBody),{margin:0,maxWidth:"100%"}))}));const L=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiDialog"}),n=(0,T.A)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},i=r["aria-describedby"],a=r["aria-labelledby"],l=r.BackdropComponent,u=r.BackdropProps,c=r.children,f=r.className,d=r.disableEscapeKeyDown,b=void 0!==d&&d,S=r.fullScreen,A=void 0!==S&&S,j=r.fullWidth,I=void 0!==j&&j,k=r.maxWidth,L=void 0===k?"sm":k,z=r.onBackdropClick,W=r.onClose,B=r.open,F=r.PaperComponent,H=void 0===F?O.A:F,U=r.PaperProps,V=void 0===U?{}:U,G=r.scroll,q=void 0===G?"paper":G,K=r.TransitionComponent,$=void 0===K?w.A:K,Z=r.transitionDuration,X=void 0===Z?o:Z,Y=r.TransitionProps,Q=(0,p.A)(r,_),J=(0,h.A)({},r,{disableEscapeKeyDown:b,fullScreen:A,fullWidth:I,maxWidth:L,scroll:q}),ee=function(e){var t=e.classes,r=e.scroll,n=e.maxWidth,o=e.fullWidth,i=e.fullScreen,a={root:["root"],container:["container","scroll".concat((0,y.A)(r))],paper:["paper","paperScroll".concat((0,y.A)(r)),"paperWidth".concat((0,y.A)(String(n))),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,g.A)(a,P,t)}(J),te=s.useRef(),re=(0,m.A)(a),ne=s.useMemo((function(){return{titleId:re}}),[re]);return(0,C.jsx)(N,(0,h.A)({className:(0,v.A)(ee.root,f),closeAfterTransition:!0,components:{Backdrop:R},componentsProps:{backdrop:(0,h.A)({transitionDuration:X,as:l},u)},disableEscapeKeyDown:b,onClose:W,open:B,ref:t,onClick:function(e){te.current&&(te.current=null,z&&z(e),W&&W(e,"backdropClick"))},ownerState:J},Q,{children:(0,C.jsx)($,(0,h.A)({appear:!0,in:B,timeout:X,role:"presentation"},Y,{children:(0,C.jsx)(D,{className:(0,v.A)(ee.container),onMouseDown:function(e){te.current=e.target===e.currentTarget},ownerState:J,children:(0,C.jsx)(M,(0,h.A)({as:H,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":re},V,{className:(0,v.A)(ee.paper,V.className),ownerState:J,children:(0,C.jsx)(E.Provider,{value:ne,children:c})}))})}))}))}));function z(e){return(0,A.Ay)("MuiDialogContent",e)}(0,S.A)("MuiDialogContent",["root","dividers"]);function W(e){return(0,A.Ay)("MuiDialogTitle",e)}const B=(0,S.A)("MuiDialogTitle",["root"]);function F(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H=["className","dividers"],U=(0,u.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.dividers&&t.dividers]}})((function(e){var t=e.theme,r=e.ownerState;return(0,h.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:F({},".".concat(B.root," + &"),{paddingTop:0}))}));const V=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiDialogContent"}),n=r.className,o=r.dividers,i=void 0!==o&&o,a=(0,p.A)(r,H),s=(0,h.A)({},r,{dividers:i}),l=function(e){var t=e.classes,r={root:["root",e.dividers&&"dividers"]};return(0,g.A)(r,z,t)}(s);return(0,C.jsx)(U,(0,h.A)({className:(0,v.A)(l.root,n),ownerState:s,ref:t},a))}));var G=r(48281),q=["className","id"],K=(0,u.Ay)(G.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"});const $=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiDialogTitle"}),n=r.className,o=r.id,i=(0,p.A)(r,q),a=r,l=function(e){var t=e.classes;return(0,g.A)({root:["root"]},W,t)}(a),u=s.useContext(E).titleId,c=void 0===u?o:u;return(0,C.jsx)(K,(0,h.A)({component:"h2",className:(0,v.A)(l.root,n),ownerState:a,ref:t,variant:"h6",id:null!=o?o:c},i))}));function Z(e){return(0,A.Ay)("MuiDialogContentText",e)}(0,S.A)("MuiDialogContentText",["root"]);var X=["children","className"],Y=(0,u.Ay)(G.A,{shouldForwardProp:function(e){return(0,u.ep)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,t){return t.root}})({});const Q=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiDialogContentText"}),n=r.className,o=(0,p.A)(r,X),i=function(e){var t=e.classes,r=(0,g.A)({root:["root"]},Z,t);return(0,h.A)({},t,r)}(o);return(0,C.jsx)(Y,(0,h.A)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,v.A)(i.root,n)},r,{classes:i}))}));function J(e){return(0,A.Ay)("MuiDialogActions",e)}(0,S.A)("MuiDialogActions",["root","spacing"]);var ee=["className","disableSpacing"],te=(0,u.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,h.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})}));const re=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiDialogActions"}),n=r.className,o=r.disableSpacing,i=void 0!==o&&o,a=(0,p.A)(r,ee),s=(0,h.A)({},r,{disableSpacing:i}),l=function(e){var t=e.classes,r={root:["root",!e.disableSpacing&&"spacing"]};return(0,g.A)(r,J,t)}(s);return(0,C.jsx)(te,(0,h.A)({className:(0,v.A)(l.root,n),ownerState:s,ref:t},a))}));var ne=r(70943);function oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ie(n.key),n)}}function ie(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ae(e,t,r){return t=le(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,se()?Reflect.construct(t,r||[],le(e).constructor):t.apply(e,r))}function se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(se=function(){return!!e})()}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}function ue(e,t){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ue(e,t)}var ce=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ae(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.error,r=e.removeError,n=e.t,o=!d()(t);return t?(0,C.jsxs)(L,{"aria-labelledby":"error-dialog-title",id:"error-dialog",onClose:function(){return r(t.id)},open:o,children:[(0,C.jsx)($,{id:"error-dialog-title",children:n("errorDialogTitle")}),(0,C.jsxs)(V,{children:[(0,C.jsx)(Q,{variant:"body2",noWrap:!0,color:"inherit",children:"".concat(t.message)}),(0,C.jsx)(re,{children:(0,C.jsx)(ne.A,{onClick:function(){return r(t.id)},variant:"contained",children:n("errorDialogConfirm")})})]})]}):null}}])&&oe(r.prototype,n),o&&oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);ce.defaultProps={error:null,removeError:function(){},t:function(e){return e}};var fe=r(23978),de=r(33793),pe={removeError:fe.$};const he=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{error:(0,de.g)(e)}}),pe),(0,a.h)("ErrorDialog"))(ce);var ve=r(76973),ge=r.n(ve);function me(e){return(0,A.Ay)("MuiAppBar",e)}(0,S.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var ye=["className","color","enableColorOnDark","position"],be=function(e,t){return e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t},we=(0,u.Ay)(O.A,{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["position".concat((0,y.A)(r.position))],t["color".concat((0,y.A)(r.color))]]}})((function(e){var t=e.theme,r=e.ownerState,n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,h.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,h.A)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,h.A)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,h.A)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:be(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:be(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:be(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:be(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}));const Oe=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiAppBar"}),n=r.className,o=r.color,i=void 0===o?"primary":o,a=r.enableColorOnDark,s=void 0!==a&&a,l=r.position,u=void 0===l?"fixed":l,c=(0,p.A)(r,ye),f=(0,h.A)({},r,{color:i,position:u,enableColorOnDark:s}),d=function(e){var t=e.color,r=e.position,n=e.classes,o={root:["root","color".concat((0,y.A)(t)),"position".concat((0,y.A)(r))]};return(0,g.A)(o,me,n)}(f);return(0,C.jsx)(we,(0,h.A)({square:!0,component:"header",ownerState:f,elevation:4,className:(0,v.A)(d.root,n,"fixed"===u&&"mui-fixed"),ref:t},c))}));var xe=r(35874),Se=r(78006),Ae=r(54241),Pe=r(31124);function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ee(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ie(e,t,r,n,o){var i=je(s.useState((function(){return o&&r?r(e).matches:n?n(e).matches:t})),2),a=i[0],l=i[1];return(0,Se.A)((function(){var t=!0;if(r){var n=r(e),o=function(){t&&l(n.matches)};return o(),n.addListener(o),function(){t=!1,n.removeListener(o)}}}),[e,r]),a}var Te=l.useSyncExternalStore;function Ce(e,t,r,n,o){var i=s.useCallback((function(){return t}),[t]),a=s.useMemo((function(){if(o&&r)return function(){return r(e).matches};if(null!==n){var t=n(e).matches;return function(){return t}}return i}),[i,e,n,o,r]),l=je(s.useMemo((function(){if(null===r)return[i,function(){return function(){}}];var t=r(e);return[function(){return t.matches},function(e){return t.addListener(e),function(){t.removeListener(e)}}]}),[i,r,e]),2),u=l[0],c=l[1];return Te(c,u,a)}var ke=r(80300),_e=r(47640),Re=r(39926);function Ne(e){return(0,A.Ay)("MuiFab",e)}const De=(0,S.A)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);function Me(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Le=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],ze=(0,u.Ay)(Re.A,{name:"MuiFab",slot:"Root",shouldForwardProp:function(e){return(0,u.ep)(e)||"classes"===e},overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["size".concat((0,y.A)(r.size))],"inherit"===r.color&&t.colorInherit,t[(0,y.A)(r.size)],t[r.color]]}})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,h.A)({},n.typography.button,Me({minHeight:36,transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(n.vars||n).zIndex.fab,boxShadow:(n.vars||n).shadows[6],"&:active":{boxShadow:(n.vars||n).shadows[12]},color:n.vars?n.vars.palette.text.primary:null==(t=(r=n.palette).getContrastText)?void 0:t.call(r,n.palette.grey[300]),backgroundColor:(n.vars||n).palette.grey[300],"&:hover":{backgroundColor:(n.vars||n).palette.grey.A100,"@media (hover: none)":{backgroundColor:(n.vars||n).palette.grey[300]},textDecoration:"none"}},"&.".concat(De.focusVisible),{boxShadow:(n.vars||n).shadows[6]}),"small"===o.size&&{width:40,height:40},"medium"===o.size&&{width:48,height:48},"extended"===o.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===o.variant&&"small"===o.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===o.variant&&"medium"===o.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===o.color&&{color:"inherit"})}),(function(e){var t=e.theme,r=e.ownerState;return(0,h.A)({},"inherit"!==r.color&&"default"!==r.color&&null!=(t.vars||t).palette[r.color]&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}})}),(function(e){var t=e.theme;return Me({},"&.".concat(De.disabled),{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})}));const We=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiFab"}),n=r.children,o=r.className,i=r.color,a=void 0===i?"default":i,s=r.component,l=void 0===s?"button":s,u=r.disabled,c=void 0!==u&&u,f=r.disableFocusRipple,d=void 0!==f&&f,m=r.focusVisibleClassName,b=r.size,w=void 0===b?"large":b,O=r.variant,S=void 0===O?"circular":O,A=(0,p.A)(r,Le),P=(0,h.A)({},r,{color:a,component:l,disabled:c,disableFocusRipple:d,size:w,variant:S}),j=function(e){var t=e.color,r=e.variant,n=e.classes,o=e.size,i={root:["root",r,"size".concat((0,y.A)(o)),"inherit"===t?"colorInherit":t]},a=(0,g.A)(i,Ne,n);return(0,h.A)({},n,a)}(P);return(0,C.jsx)(ze,(0,h.A)({className:(0,v.A)(j.root,o),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:(0,v.A)(j.focusVisible,m),ownerState:P,ref:t},A,{classes:j,children:n}))}));var Be=r(34338),Fe=r(19751),He=r(18474);function Ue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ve(n.key),n)}}function Ve(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ge(e,t,r){return t=Ke(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qe()?Reflect.construct(t,r||[],Ke(e).constructor):t.apply(e,r))}function qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qe=function(){return!!e})()}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}function $e(e,t){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$e(e,t)}var Ze=(0,u.Ay)(We,{name:"WorkspaceAddButton",slot:"root"})((function(e){return{marginBottom:e.theme.spacing(1)}})),Xe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ge(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$e(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.t,r=e.setWorkspaceAddVisibility,n=e.isWorkspaceAddVisible,o=e.useExtendedFab;return(0,C.jsx)(Be.A,{title:t(n?"closeAddResourceMenu":"addResource"),children:(0,C.jsxs)(Ze,{size:"medium",color:"primary",id:"addBtn","aria-label":n?t("closeAddResourceMenu"):o&&t("startHere")||t("addResource"),variant:o?"extended":"circular",onClick:function(){r(!n)},children:[n?(0,C.jsx)(He.A,{}):(0,C.jsx)(Fe.A,{}),o&&t("startHere")]})})}}])&&Ue(r.prototype,n),o&&Ue(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(r),!0).forEach((function(t){Je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Je(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function et(e){return function(e){if(Array.isArray(e))return tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rt(){var e=(0,T.A)();return et(e.breakpoints.keys).reverse().reduce((function(t,r){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,Pe.A)(),n="undefined"!=typeof window&&void 0!==window.matchMedia,o=(0,Ae.A)({name:"MuiUseMediaQuery",props:t,theme:r}),i=o.defaultMatches,a=void 0!==i&&i,s=o.matchMedia,l=void 0===s?n?window.matchMedia:null:s,u=o.ssrMatchMedia,c=void 0===u?null:u,f=o.noSsr,d=void 0!==f&&f,p="function"==typeof e?e(r):e;return p=p.replace(/^@media( ?)/m,""),(void 0!==Te?Ce:Ie)(p,a,l,c,d)}(e.breakpoints.up(r));return!t&&n?r:t}),null)||"xs"}Xe.defaultProps={isWorkspaceAddVisible:!1,t:function(e){return e}};var nt={setWorkspaceAddVisibility:ke.DW};const ot=(0,n.Zz)((0,i.CI)(),(function(e){return function(t){return(0,C.jsx)(e,Qe(Qe({},t),{},{width:rt()}))}}),(0,o.Ng)((function(e,t){var r=t.width,n=(0,_e.K4)(e).isWorkspaceAddVisible;return{isWorkspaceAddVisible:n,useExtendedFab:"xs"!==r&&!n&&0===(0,_e.rG)(e).length}}),nt),(0,a.h)("WorkspaceAddButton"))(Xe);var it=r(63051),at=r(68827),st=r(63317),lt=r(16840);function ut(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ct(n.key),n)}}function ct(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ft(e,t,r){return t=pt(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dt()?Reflect.construct(t,r||[],pt(e).constructor):t.apply(e,r))}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dt=function(){return!!e})()}function pt(e){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pt(e)}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ht(e,t)}var vt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ft(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.t;return(0,C.jsx)(lt.A.Consumer,{children:function(e){return e&&(0,C.jsx)(st.A,{className:t,"aria-label":e.active?r("exitFullScreen"):r("workspaceFullScreen"),onClick:e.active?e.exit:e.enter,children:e.active?(0,C.jsx)(at.A,{}):(0,C.jsx)(it.A,{})})}})}}])&&ut(r.prototype,n),o&&ut(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);vt.defaultProps={className:void 0,t:function(e){return e}};const gt=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{}}),{}),(0,a.h)("FullScreenButton"))(vt);var mt=r(27883),yt=r(69972),bt=r(40826),wt=r(19170),Ot=r(21196),xt=r(80391),St=r(2160),At=r(50596),Pt=r(98750);function jt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Et(n.key),n)}}function Et(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function It(e,t,r){return t=Ct(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tt()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}function Tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tt=function(){return!!e})()}function Ct(e){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ct(e)}function kt(e,t){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kt(e,t)}var _t=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),It(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.handleClick,r=e.languages;return(0,C.jsx)(C.Fragment,{children:r.map((function(e){return(0,C.jsxs)(Ot.A,{onClick:function(){t(e.locale)},children:[(0,C.jsx)(St.A,{children:e.current&&(0,C.jsx)(Pt.A,{})}),(0,C.jsx)(At.A,{primaryTypographyProps:{variant:"body1"},children:e.label})]},e.locale)}))})}}])&&jt(r.prototype,n),o&&jt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);const Rt=(0,n.Zz)((0,o.Ng)((function(e){return{languages:(0,yt.x2)(e)}}),(function(e,t){var r=t.afterSelect;return{handleClick:function(t){e(xt._R({language:t})),r&&r()}}})),(0,a.h)("LanguageSettings"))(_t);var Nt=r(15175),Dt=r(3839),Mt=["children","icon","label"];function Lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(r),!0).forEach((function(t){Wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wt(e,t,r){return(t=Ht(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ht(n.key),n)}}function Ht(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ut(e,t,r){return t=Gt(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qt(e)}(e,Vt()?Reflect.construct(t,r||[],Gt(e).constructor):t.apply(e,r))}function Vt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vt=function(){return!!e})()}function Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gt(e)}function qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kt(e,t){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kt(e,t)}var $t=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ut(this,t,[e])).state={nestedMenuIsOpen:!1},r.handleMenuClick=r.handleMenuClick.bind(qt(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kt(e,t)}(t,e),r=t,(n=[{key:"handleMenuClick",value:function(){var e=this.state.nestedMenuIsOpen;this.setState({nestedMenuIsOpen:!e})}},{key:"render",value:function(){var e=this.state.nestedMenuIsOpen,t=this.props,r=t.children,n=t.icon,o=t.label,i=Bt(t,Mt);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(Ot.A,zt(zt({onClick:this.handleMenuClick,divider:e},i),{},{children:[n&&(0,C.jsx)(St.A,{children:n}),(0,C.jsx)(At.A,{primaryTypographyProps:{variant:"body1"},children:o}),e?(0,C.jsx)(Nt.A,{}):(0,C.jsx)(Dt.A,{})]})),e&&r]})}}])&&Ft(r.prototype,n),o&&Ft(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);$t.defaultProps={icon:null};var Zt=r(12491);function Xt(e){return(0,A.Ay)("MuiCard",e)}(0,S.A)("MuiCard",["root"]);var Yt=["className","raised"],Qt=(0,u.Ay)(O.A,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}}));const Jt=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiCard"}),n=r.className,o=r.raised,i=void 0!==o&&o,a=(0,p.A)(r,Yt),s=(0,h.A)({},r,{raised:i}),l=function(e){var t=e.classes;return(0,g.A)({root:["root"]},Xt,t)}(s);return(0,C.jsx)(Qt,(0,h.A)({className:(0,v.A)(l.root,n),elevation:i?8:void 0,ref:t,ownerState:s},a))}));function er(e){return(0,A.Ay)("MuiCardContent",e)}(0,S.A)("MuiCardContent",["root"]);var tr=["className","component"],rr=(0,u.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}}));const nr=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiCardContent"}),n=r.className,o=r.component,i=void 0===o?"div":o,a=(0,p.A)(r,tr),s=(0,h.A)({},r,{component:i}),l=function(e){var t=e.classes;return(0,g.A)({root:["root"]},er,t)}(s);return(0,C.jsx)(rr,(0,h.A)({as:i,className:(0,v.A)(l.root,n),ownerState:s,ref:t},a))}));function or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ir(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ar=(0,u.Ay)(L,{name:"WorkspaceDialog",slot:"root"})((function(e){var t=e.theme,r=e.variant;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?or(Object(r),!0).forEach((function(t){ir(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({"& .MuiDialogTitle-root":t.unstable_sx({typography:"h2"})},"menu"===r&&{"& .MuiDialogContent-root":{padding:0}})})),sr=r(57026);function lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(r),!0).forEach((function(t){cr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cr(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fr(e){return(0,C.jsx)(sr.A,ur(ur({},e),{},{children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"90",viewBox:"0 0 300 225",children:[(0,C.jsxs)("defs",{children:[(0,C.jsxs)("linearGradient",{id:"linear-gradient",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox",children:[(0,C.jsx)("stop",{offset:"0"}),(0,C.jsx)("stop",{offset:"0.14",stopOpacity:"0.631"}),(0,C.jsx)("stop",{offset:"1",stopOpacity:"0"})]}),(0,C.jsxs)("linearGradient",{id:"linear-gradient-2",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox",children:[(0,C.jsx)("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),(0,C.jsx)("stop",{offset:"0.23",stopColor:"#fff",stopOpacity:"0.012"}),(0,C.jsx)("stop",{offset:"0.36",stopColor:"#fff",stopOpacity:"0.039"}),(0,C.jsx)("stop",{offset:"0.47",stopColor:"#fff",stopOpacity:"0.102"}),(0,C.jsx)("stop",{offset:"0.57",stopColor:"#fff",stopOpacity:"0.18"}),(0,C.jsx)("stop",{offset:"0.67",stopColor:"#fff",stopOpacity:"0.278"}),(0,C.jsx)("stop",{offset:"0.75",stopColor:"#fff",stopOpacity:"0.412"}),(0,C.jsx)("stop",{offset:"0.83",stopColor:"#fff",stopOpacity:"0.561"}),(0,C.jsx)("stop",{offset:"0.91",stopColor:"#fff",stopOpacity:"0.741"}),(0,C.jsx)("stop",{offset:"0.98",stopColor:"#fff",stopOpacity:"0.929"}),(0,C.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,C.jsx)("clipPath",{id:"clip-elastic_icon",children:(0,C.jsx)("rect",{width:"300",height:"225"})})]}),(0,C.jsxs)("g",{id:"elastic_icon","data-name":"elastic icon",clipPath:"url(#clip-elastic_icon)",children:[(0,C.jsx)("rect",{width:"300",height:"225",fill:"#fff"}),(0,C.jsxs)("g",{id:"Rectangle_278","data-name":"Rectangle 278",transform:"translate(232 159)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"54",height:"54",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"53",height:"53",fill:"none"})]}),(0,C.jsxs)("g",{id:"Rectangle_8","data-name":"Rectangle 8",transform:"translate(7 148)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"70",height:"70",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"69",height:"69",fill:"none"})]}),(0,C.jsxs)("g",{id:"Rectangle_258","data-name":"Rectangle 258",transform:"translate(224 6)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"70",height:"100",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"69",height:"99",fill:"none"})]}),(0,C.jsxs)("g",{id:"Rectangle_259","data-name":"Rectangle 259",transform:"translate(71 64)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"115",height:"75",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"114",height:"74",fill:"none"})]}),(0,C.jsxs)("g",{id:"Rectangle_260","data-name":"Rectangle 260",transform:"translate(99 87)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"115",height:"75",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"114",height:"74",fill:"none"})]}),(0,C.jsxs)("g",{id:"Group_689","data-name":"Group 689",children:[(0,C.jsxs)("g",{id:"Group_687","data-name":"Group 687",transform:"translate(0 3)",children:[(0,C.jsx)("path",{id:"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.164 -1.063)",fill:"#010101",fillRule:"evenodd",opacity:"0.246"}),(0,C.jsxs)("g",{id:"Path_821","data-name":"Path 821",transform:"translate(40 36)",fill:"none",children:[(0,C.jsx)("path",{d:"M0,0H220V147H0Z",stroke:"none"}),(0,C.jsx)("path",{d:"M 2 2 L 2 145 L 218 145 L 218 2 L 172.9869689941406 2 L 2 2 M 0 0 L 172.9869689941406 0 L 220 0 L 220 147 L 0 147 L 0 0 Z",stroke:"none",fill:"#01579b"})]})]}),(0,C.jsxs)("g",{id:"Rectangle_257","data-name":"Rectangle 257",transform:"translate(40 39)",fill:"#fff",stroke:"#01579b",strokeWidth:"2",children:[(0,C.jsx)("rect",{width:"20",height:"147",stroke:"none"}),(0,C.jsx)("rect",{x:"1",y:"1",width:"18",height:"145",fill:"none"})]}),(0,C.jsxs)("g",{id:"Group_688","data-name":"Group 688",transform:"translate(-27.5 -126)",children:[(0,C.jsx)("circle",{id:"teal_circle","data-name":"teal circle",cx:"7.5",cy:"7.5",r:"7.5",transform:"translate(70 171)",fill:"#009688"}),(0,C.jsxs)("g",{id:"Group_333","data-name":"Group 333",transform:"translate(70 171)",opacity:"0.12",children:[(0,C.jsx)("path",{id:"gradient_border_2","data-name":"gradient border 2",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient)"}),(0,C.jsx)("path",{id:"gradient_border_1","data-name":"gradient border 1",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient-2)"})]})]})]})]})]})}))}function dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hr(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vr(e){return(0,C.jsx)(sr.A,pr(pr({},e),{},{children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"90",viewBox:"0 0 300 225",children:[(0,C.jsxs)("defs",{children:[(0,C.jsxs)("linearGradient",{id:"linear-gradient",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox",children:[(0,C.jsx)("stop",{offset:"0"}),(0,C.jsx)("stop",{offset:"0.14",stopOpacity:"0.631"}),(0,C.jsx)("stop",{offset:"1",stopOpacity:"0"})]}),(0,C.jsxs)("linearGradient",{id:"linear-gradient-2",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox",children:[(0,C.jsx)("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),(0,C.jsx)("stop",{offset:"0.23",stopColor:"#fff",stopOpacity:"0.012"}),(0,C.jsx)("stop",{offset:"0.36",stopColor:"#fff",stopOpacity:"0.039"}),(0,C.jsx)("stop",{offset:"0.47",stopColor:"#fff",stopOpacity:"0.102"}),(0,C.jsx)("stop",{offset:"0.57",stopColor:"#fff",stopOpacity:"0.18"}),(0,C.jsx)("stop",{offset:"0.67",stopColor:"#fff",stopOpacity:"0.278"}),(0,C.jsx)("stop",{offset:"0.75",stopColor:"#fff",stopOpacity:"0.412"}),(0,C.jsx)("stop",{offset:"0.83",stopColor:"#fff",stopOpacity:"0.561"}),(0,C.jsx)("stop",{offset:"0.91",stopColor:"#fff",stopOpacity:"0.741"}),(0,C.jsx)("stop",{offset:"0.98",stopColor:"#fff",stopOpacity:"0.929"}),(0,C.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,C.jsx)("clipPath",{id:"clip-mosaic_icon",children:(0,C.jsx)("rect",{width:"300",height:"225"})})]}),(0,C.jsxs)("g",{id:"mosaic_icon","data-name":"mosaic icon",clipPath:"url(#clip-mosaic_icon)",children:[(0,C.jsx)("rect",{width:"300",height:"225",fill:"#fff"}),(0,C.jsx)("path",{id:"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.163 1.938)",fill:"#010101",fillRule:"evenodd",opacity:"0.5"}),(0,C.jsx)("path",{id:"checkbox-2","data-name":"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.164 1.938)",fill:"#010101",fillRule:"evenodd",opacity:"0.246"}),(0,C.jsxs)("g",{id:"Path_821","data-name":"Path 821",transform:"translate(40 39)",fill:"none",children:[(0,C.jsx)("path",{d:"M0,0H220V147H0Z",stroke:"none"}),(0,C.jsx)("path",{d:"M 2 2 L 2 145 L 218 145 L 218 2 L 172.9869689941406 2 L 2 2 M 0 0 L 172.9869689941406 0 L 220 0 L 220 147 L 0 147 L 0 0 Z",stroke:"none",fill:"#01579b"})]}),(0,C.jsxs)("g",{id:"Rectangle_257","data-name":"Rectangle 257",transform:"translate(40 39)",fill:"#fff",stroke:"#01579b",strokeWidth:"2",children:[(0,C.jsx)("rect",{width:"20",height:"147",stroke:"none"}),(0,C.jsx)("rect",{x:"1",y:"1",width:"18",height:"145",fill:"none"})]}),(0,C.jsxs)("g",{id:"Group_688","data-name":"Group 688",transform:"translate(-27.5 -126)",children:[(0,C.jsx)("circle",{id:"teal_circle","data-name":"teal circle",cx:"7.5",cy:"7.5",r:"7.5",transform:"translate(70 171)",fill:"#009688"}),(0,C.jsxs)("g",{id:"Group_333","data-name":"Group 333",transform:"translate(70 171)",opacity:"0.12",children:[(0,C.jsx)("path",{id:"gradient_border_2","data-name":"gradient border 2",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient)"}),(0,C.jsx)("path",{id:"gradient_border_1","data-name":"gradient border 1",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient-2)"})]})]}),(0,C.jsxs)("g",{id:"Rectangle_270","data-name":"Rectangle 270",transform:"translate(60 40.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"99",height:"72",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"98",height:"71",fill:"none"})]}),(0,C.jsxs)("g",{id:"Rectangle_271","data-name":"Rectangle 271",transform:"translate(159 40.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"99",height:"72",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"98",height:"71",fill:"none"})]}),(0,C.jsxs)("g",{id:"Rectangle_272","data-name":"Rectangle 272",transform:"translate(192 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"66",height:"71.45",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})]}),(0,C.jsxs)("g",{id:"Rectangle_284","data-name":"Rectangle 284",transform:"translate(60 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"66",height:"71.45",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})]}),(0,C.jsxs)("g",{id:"Rectangle_285","data-name":"Rectangle 285",transform:"translate(126 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747",children:[(0,C.jsx)("rect",{width:"66",height:"71.45",stroke:"none"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})]})]})]})}))}var gr=["classes","className"];function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yr(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function br(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wr=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)},Or=(0,u.Ay)(V,{name:"ScrollIndicatedDialogContent",slot:"root"})((function(e){var t=e.ownerState,r=e.theme,n="dark"===r.palette.mode?{backgroundImage:"linear-gradient(".concat((0,c.X4)("#fff",wr((null==t?void 0:t.elevation)||24)),", ").concat((0,c.X4)("#fff",wr((null==t?void 0:t.elevation)||24)),")")}:r.palette.background.paper;return br(br(br(br(br({background:"linear-gradient(".concat(n," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(n," 70%) 0 100%, ")+"radial-gradient(50% 0, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%,"},"background","linear-gradient(".concat(n," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(n," 70%) 0 100%, ")+"radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%;"),"backgroundAttachment","local, local, scroll, scroll"),"backgroundRepeat","no-repeat"),"backgroundSize","100% 40px, 100% 40px, 100% 14px, 100% 14px"),"overflowY","auto")}));function xr(e){var t=e.classes,r=e.className,n=yr(e,gr),o=[r,t.shadowScrollDialog].join(" ");return(0,C.jsx)(Or,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(r),!0).forEach((function(t){br(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:o},n))}xr.defaultProps={classes:{},className:""};const Sr=xr;function Ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pr(n.key),n)}}function Pr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function jr(e,t,r){return t=Ir(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tr(e)}(e,Er()?Reflect.construct(t,r||[],Ir(e).constructor):t.apply(e,r))}function Er(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Er=function(){return!!e})()}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}function Tr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cr(e,t){return Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cr(e,t)}var kr=(0,u.Ay)("div")((function(){return{display:"flex",flexDirection:"column"}})),_r=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=jr(this,t,[e])).handleWorkspaceTypeChange=r.handleWorkspaceTypeChange.bind(Tr(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cr(e,t)}(t,e),r=t,(n=[{key:"handleWorkspaceTypeChange",value:function(e){var t=this.props,r=t.handleClose;(0,t.updateWorkspace)({type:e}),r()}},{key:"render",value:function(){var e=this,t=this.props,r=t.container,n=t.handleClose,o=t.open,i=t.children,a=t.t,s=t.workspaceType;return(0,C.jsxs)(ar,{"aria-labelledby":"workspace-selection-dialog-title",container:r,id:"workspace-selection-dialog",onClose:n,open:o,children:[(0,C.jsx)($,{id:"workspace-selection-dialog-title",children:a("workspaceSelectionTitle")}),(0,C.jsxs)(Sr,{children:[i,(0,C.jsxs)(Zt.A,{sx:{"&active":{outline:"none"},"&focus":{outline:"none"},outline:"none"},selected:s,autoFocusItem:!0,children:[(0,C.jsx)(Ot.A,{sx:{height:"auto",overflow:"auto",whiteSpace:"inherit"},onClick:function(){return e.handleWorkspaceTypeChange("elastic")},selected:"elastic"===s,value:"elastic",children:(0,C.jsxs)(Jt,{sx:{backgroundColor:"transparent",borderRadius:"0",boxShadow:"0 0 transparent",display:"flex"},children:[(0,C.jsx)(fr,{sx:{flexShrink:0,height:"90px",width:"120px"},viewBox:"0 0 120 90"}),(0,C.jsx)(kr,{children:(0,C.jsxs)(nr,{sx:{"&.MuiCardContent-root":{"&:last-child":{paddingBottom:"12px"},paddingBottom:0,paddingTop:0,textAlign:"left"},flex:"1 0 auto"},children:[(0,C.jsx)(G.A,{sx:{paddingBottom:"6px"},component:"p",variant:"h3",children:a("elastic")}),(0,C.jsx)(G.A,{variant:"body1",children:a("elasticDescription")})]})})]})}),(0,C.jsx)(Ot.A,{sx:{height:"auto",overflow:"auto",whiteSpace:"inherit"},onClick:function(){return e.handleWorkspaceTypeChange("mosaic")},selected:"mosaic"===s,value:"mosaic",children:(0,C.jsxs)(Jt,{sx:{backgroundColor:"transparent",borderRadius:"0",boxShadow:"0 0 transparent",display:"flex"},children:[(0,C.jsx)(vr,{sx:{flexShrink:0,height:"90px",width:"120px"},viewBox:"0 0 120 90"}),(0,C.jsx)(kr,{children:(0,C.jsxs)(nr,{sx:{"&.MuiCardContent-root":{"&:last-child":{paddingBottom:"12px"},paddingBottom:0,paddingTop:0,textAlign:"left"},flex:"1 0 auto"},children:[(0,C.jsx)(G.A,{sx:{paddingBottom:"6px"},component:"p",variant:"h3",children:a("mosaic")}),(0,C.jsx)(G.A,{variant:"body1",children:a("mosaicDescription")})]})})]})})]})]})]})}}])&&Ar(r.prototype,n),o&&Ar(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);_r.defaultProps={children:null,container:null,open:!1,t:function(e){return e}};var Rr={updateWorkspace:ke.tO};const Nr=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{workspaceType:(0,de.I3)(e)}}),Rr),(0,a.h)("WorkspaceSelectionDialog"))(_r);var Dr=r(69035);function Mr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lr(n.key),n)}}function Lr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function zr(e,t,r){return t=Br(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fr(e)}(e,Wr()?Reflect.construct(t,r||[],Br(e).constructor):t.apply(e,r))}function Wr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wr=function(){return!!e})()}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Br(e)}function Fr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hr(e,t){return Hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hr(e,t)}var Ur=(0,u.Ay)(Dr.A,{name:"ThemeIcon",slot:"icon"})((function(e){e.theme;return{color:"#BDBDBD"}})),Vr=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=zr(this,t,[e])).handleThemeChange=r.handleThemeChange.bind(Fr(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hr(e,t)}(t,e),r=t,(n=[{key:"handleThemeChange",value:function(e){var t=this.props,r=t.setSelectedTheme,n=t.handleClose;r(e),n()}},{key:"render",value:function(){var e=this,t=this.props,r=t.handleClose,n=t.open,o=t.selectedTheme,i=t.t,a=t.themeIds;return(0,C.jsxs)(ar,{onClose:r,open:n,variant:"menu",children:[(0,C.jsx)($,{children:i("changeTheme")}),(0,C.jsx)(V,{children:(0,C.jsx)(Zt.A,{autoFocusItem:!0,children:a.map((function(t){return(0,C.jsxs)(Ot.A,{className:"listitem",onClick:function(){return e.handleThemeChange(t)},selected:t===o,value:t,children:[(0,C.jsx)(St.A,{children:(0,C.jsx)(Ur,{ownerState:{value:t}})}),(0,C.jsx)(At.A,{children:i(t)})]},t)}))})})]})}}])&&Mr(r.prototype,n),o&&Mr(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Vr.defaultProps={open:!1,themeIds:[]};const Gr=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{selectedTheme:(0,yt.zj)(e).selectedTheme,themeIds:(0,yt.Qc)(e)}}),(function(e,t){t.windowId;return{setSelectedTheme:function(t){return e(xt._R({selectedTheme:t}))}}})),(0,a.h)("ChangeThemeDialog"))(Vr);var qr=r(74754),Kr=["container","handleClose","showThemePicker","isWorkspaceAddVisible","t","showZoomControls","toggleZoomControls"];function $r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(r),!0).forEach((function(t){Xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xr(e,t,r){return(t=Jr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yr(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Qr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jr(n.key),n)}}function Jr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function en(e,t,r){return t=rn(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nn(e)}(e,tn()?Reflect.construct(t,r||[],rn(e).constructor):t.apply(e,r))}function tn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tn=function(){return!!e})()}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}function nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}var an=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=en(this,t,[e])).state={changeTheme:{},toggleZoom:{},workspaceSelection:{}},r.handleMenuItemClick=r.handleMenuItemClick.bind(nn(r)),r.handleMenuItemClose=r.handleMenuItemClose.bind(nn(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&on(e,t)}(t,e),r=t,(n=[{key:"handleMenuItemClick",value:function(e,t){var r={};r[e]={},r[e].open=!0,r[e].anchorEl=t.currentTarget,this.setState(r)}},{key:"handleMenuItemClose",value:function(e){var t=this;return function(r){var n={};n[e]={},n[e].open=!1,n[e].anchorEl=null,t.setState(n)}}},{key:"handleZoomToggleClick",value:function(){var e=this.props;(0,e.toggleZoomControls)(!e.showZoomControls)}},{key:"render",value:function(){var e=this,t=this.props,r=t.container,n=t.handleClose,o=t.showThemePicker,i=t.isWorkspaceAddVisible,a=t.t,s=t.showZoomControls,l=(t.toggleZoomControls,Zr({},Yr(t,Kr)));delete l.tReady;var u=this.state,c=u.changeTheme,f=u.toggleZoom,d=u.workspaceSelection;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(wt.A,Zr(Zr({container:null==r?void 0:r.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},onClose:n},l),{},{children:[(0,C.jsx)(Ot.A,{"aria-haspopup":"true",disabled:i,onClick:function(t){e.handleZoomToggleClick(t),n(t)},"aria-owns":f.anchorEl?"toggle-zoom-menu":void 0,children:(0,C.jsx)(G.A,{variant:"body1",children:a(s?"hideZoomControls":"showZoomControls")})}),(0,C.jsx)(Ot.A,{"aria-haspopup":"true",onClick:function(t){e.handleMenuItemClick("workspaceSelection",t),n(t)},"aria-owns":d.anchorEl?"workspace-selection":void 0,children:(0,C.jsx)(G.A,{variant:"body1",children:a("selectWorkspaceMenu")})}),(0,C.jsx)($t,{label:a("language"),children:(0,C.jsx)(Rt,{afterSelect:n})}),o&&(0,C.jsx)(Ot.A,{"aria-haspopup":"true",onClick:function(t){e.handleMenuItemClick("changeTheme",t),n(t)},"aria-owns":c.anchorEl?"change-theme":void 0,children:(0,C.jsx)(G.A,{variant:"body1",children:a("changeTheme")})}),(0,C.jsx)(qr.F,Zr({},this.props))]})),Boolean(c.open)&&(0,C.jsx)(Gr,{container:null==r?void 0:r.current,handleClose:this.handleMenuItemClose("changeTheme"),open:Boolean(c.open)}),Boolean(d.open)&&(0,C.jsx)(Nr,{open:Boolean(d.open),container:null==r?void 0:r.current,handleClose:this.handleMenuItemClose("workspaceSelection")})]})}}])&&Qr(r.prototype,n),o&&Qr(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);an.defaultProps={container:null,isWorkspaceAddVisible:!1,showThemePicker:!1,showZoomControls:!1,t:function(e){return e},toggleZoomControls:function(){}};var sn={toggleZoomControls:ke.WU};const ln=(0,n.Zz)((0,i.CI)(),bt.D,(0,o.Ng)((function(e){return{isWorkspaceAddVisible:(0,_e.K4)(e).isWorkspaceAddVisible,showThemePicker:(0,yt.Qc)(e).length>0,showZoomControls:(0,yt.X3)(e)}}),sn),(0,a.h)("WorkspaceMenu"))(an);function un(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cn(n.key),n)}}function cn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function fn(e,t,r){return t=pn(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hn(e)}(e,dn()?Reflect.construct(t,r||[],pn(e).constructor):t.apply(e,r))}function dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dn=function(){return!!e})()}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pn(e)}function hn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vn(e,t){return vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vn(e,t)}var gn=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=fn(this,t,[e])).state={anchorEl:null,open:!1},r.handleMenuClick=r.handleMenuClick.bind(hn(r)),r.handleMenuClose=r.handleMenuClose.bind(hn(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}(t,e),r=t,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget,open:!0})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null,open:!1})}},{key:"render",value:function(){var e=this.props.t,t=this.state,r=t.anchorEl,n=t.open;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(st.A,{"aria-haspopup":"true","aria-label":e("workspaceMenu"),"aria-owns":n?"workspace-menu":void 0,selected:n,id:"menuBtn",onClick:this.handleMenuClick,children:(0,C.jsx)(mt.A,{})}),(0,C.jsx)(ln,{anchorEl:r,id:"workspace-menu",handleClose:this.handleMenuClose,open:n})]})}}])&&un(r.prototype,n),o&&un(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);gn.defaultProps={t:function(e){return e}};const mn=(0,n.Zz)((0,i.CI)(),(0,a.h)("WorkspaceMenuButton"))(gn);var yn=r(25573),bn=r(38216),wn=r(42850),On=r(17080),xn=r(1244),Sn=r(32540),An=r(92266);function Pn(e){return e.substring(2).toLowerCase()}function jn(e){var t=e.children,r=e.disableReactTree,n=void 0!==r&&r,o=e.mouseEvent,i=void 0===o?"onClick":o,a=e.onClickAway,l=e.touchEvent,u=void 0===l?"onTouchEnd":l,c=s.useRef(!1),f=s.useRef(null),d=s.useRef(!1),p=s.useRef(!1);s.useEffect((function(){return setTimeout((function(){d.current=!0}),0),function(){d.current=!1}}),[]);var h=(0,xn.A)(t.ref,f),v=(0,Sn.A)((function(e){var t=p.current;p.current=!1;var r=(0,An.A)(f.current);!d.current||!f.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r)||(c.current?c.current=!1:(e.composedPath?e.composedPath().indexOf(f.current)>-1:!r.documentElement.contains(e.target)||f.current.contains(e.target))||!n&&t||a(e))})),g=function(e){return function(r){p.current=!0;var n=t.props[e];n&&n(r)}},m={ref:h};return!1!==u&&(m[u]=g(u)),s.useEffect((function(){if(!1!==u){var e=Pn(u),t=(0,An.A)(f.current),r=function(){c.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",r),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",r)}}}),[v,u]),!1!==i&&(m[i]=g(i)),s.useEffect((function(){if(!1!==i){var e=Pn(i),t=(0,An.A)(f.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,i]),(0,C.jsx)(s.Fragment,{children:s.cloneElement(t,m)})}var En=r(10887),In=r(87677);var Tn=r(31102),Cn=r(83032);function kn(e){return(0,A.Ay)("MuiSnackbarContent",e)}(0,S.A)("MuiSnackbarContent",["root","message","action"]);function _n(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Rn=["action","className","message","role"],Nn=(0,u.Ay)(O.A,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,r="light"===t.palette.mode?.8:.98,n=(0,Cn.tL)(t.palette.background.default,r);return(0,h.A)({},t.typography.body2,_n({color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}))})),Dn=(0,u.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0"}),Mn=(0,u.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8});const Ln=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiSnackbarContent"}),n=r.action,o=r.className,i=r.message,a=r.role,s=void 0===a?"alert":a,l=(0,p.A)(r,Rn),u=r,c=function(e){var t=e.classes;return(0,g.A)({root:["root"],action:["action"],message:["message"]},kn,t)}(u);return(0,C.jsxs)(Nn,(0,h.A)({role:s,square:!0,elevation:6,className:(0,v.A)(c.root,o),ownerState:u,ref:t},l,{children:[(0,C.jsx)(Dn,{className:c.message,ownerState:u,children:i}),n?(0,C.jsx)(Mn,{className:c.action,ownerState:u,children:n}):null]}))}));function zn(e){return(0,A.Ay)("MuiSnackbar",e)}(0,S.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);function Wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fn(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Hn=["onEnter","onExited"],Un=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Vn=(0,u.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["anchorOrigin".concat((0,y.A)(r.anchorOrigin.vertical)).concat((0,y.A)(r.anchorOrigin.horizontal))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,h.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},Fn({},t.breakpoints.up("sm"),(0,h.A)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})))}));const Gn=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiSnackbar"}),n=(0,T.A)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},i=r.action,a=r.anchorOrigin,l=void 0===a?{vertical:"bottom",horizontal:"left"}:a,u=l.vertical,c=l.horizontal,f=r.autoHideDuration,d=void 0===f?null:f,v=r.children,m=r.className,b=r.ClickAwayListenerProps,w=r.ContentProps,O=r.disableWindowBlurListener,S=void 0!==O&&O,A=r.message,P=r.open,j=r.TransitionComponent,E=void 0===j?Tn.A:j,I=r.transitionDuration,k=void 0===I?o:I,_=r.TransitionProps,R=void 0===_?{}:_,N=R.onEnter,D=R.onExited,M=(0,p.A)(r.TransitionProps,Hn),L=(0,p.A)(r,Un),z=(0,h.A)({},r,{anchorOrigin:{vertical:u,horizontal:c},autoHideDuration:d,disableWindowBlurListener:S,TransitionComponent:E,transitionDuration:k}),W=function(e){var t=e.classes,r=e.anchorOrigin,n={root:["root","anchorOrigin".concat((0,y.A)(r.vertical)).concat((0,y.A)(r.horizontal))]};return(0,g.A)(n,zn,t)}(z),B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoHideDuration,r=void 0===t?null:t,n=e.disableWindowBlurListener,o=void 0!==n&&n,i=e.onClose,a=e.open,l=e.resumeHideDuration,u=(0,En.A)();s.useEffect((function(){if(a)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==i||i(e,"escapeKeyDown")}}),[a,i]);var c=(0,Sn.A)((function(e,t){null==i||i(e,t)})),f=(0,Sn.A)((function(e){i&&null!=e&&u.start(e,(function(){c(null,"timeout")}))}));s.useEffect((function(){return a&&f(r),u.clear}),[a,r,f,u]);var d=u.clear,p=s.useCallback((function(){null!=r&&f(null!=l?l:.5*r)}),[r,l,f]),v=function(e){return function(t){var r=e.onFocus;null==r||r(t),d()}},g=function(e){return function(t){var r=e.onMouseEnter;null==r||r(t),d()}},m=function(e){return function(t){var r=e.onMouseLeave;null==r||r(t),p()}};return s.useEffect((function(){if(!o&&a)return window.addEventListener("focus",p),window.addEventListener("blur",d),function(){window.removeEventListener("focus",p),window.removeEventListener("blur",d)}}),[o,a,p,d]),{getRootProps:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,h.A)({},(0,In.h)(e),(0,In.h)(r));return(0,h.A)({role:"presentation"},r,n,{onBlur:(t=n,function(e){var r=t.onBlur;null==r||r(e),p()}),onFocus:v(n),onMouseEnter:g(n),onMouseLeave:m(n)})},onClickAway:function(e){null==i||i(e,"clickaway")}}}((0,h.A)({},z)),F=B.getRootProps,H=B.onClickAway,U=Wn(s.useState(!0),2),V=U[0],G=U[1],q=(0,On.Q)({elementType:Vn,getSlotProps:F,externalForwardedProps:L,ownerState:z,additionalProps:{ref:t},className:[W.root,m]});return!P&&V?null:(0,C.jsx)(jn,(0,h.A)({onClickAway:H},b,{children:(0,C.jsx)(Vn,(0,h.A)({},q,{children:(0,C.jsx)(E,(0,h.A)({appear:!0,in:P,timeout:k,direction:"top"===u?"down":"up",onEnter:function(e,t){G(!1),N&&N(e,t)},onExited:function(e){G(!0),D&&D(e)}},M,{children:v||(0,C.jsx)(Ln,(0,h.A)({message:A,action:i},w))}))}))}))}));var qn=r(33237),Kn=r(52371),$n=r(98784),Zn=r(27413),Xn=r(68506),Yn=r(53327),Qn=r(15686);function Jn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eo(n.key),n)}}function eo(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function to(e,t,r){return t=no(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oo(e)}(e,ro()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function ro(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ro=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},no(e)}function oo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function io(e,t){return io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},io(e,t)}var ao=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=to(this,t,[e])).state={copied:!1},r.onCopy=r.onCopy.bind(oo(r)),r.handleClose=r.handleClose.bind(oo(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&io(e,t)}(t,e),r=t,(n=[{key:"handleClose",value:function(){var e=this.props.handleClose;e()}},{key:"onCopy",value:function(){this.setState({copied:!0})}},{key:"exportedState",value:function(){var e=this.props.exportableState;return JSON.stringify(e,null,2)}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.container,n=e.open,o=e.t;return this.state.copied?(0,C.jsx)(Gn,{anchorOrigin:{horizontal:"center",vertical:"top"},open:!0,autoHideDuration:6e3,onClose:this.handleClose,message:o("exportCopied"),action:(0,C.jsx)(qn.A,{size:"small","aria-label":o("dismiss"),color:"inherit",onClick:this.handleClose,children:(0,C.jsx)($n.A,{fontSize:"small"})})}):(0,C.jsxs)(ar,{id:"workspace-export",container:r,open:n,onClose:this.handleClose,scroll:"paper",fullWidth:!0,maxWidth:"sm",children:[(0,C.jsx)($,{id:"form-dialog-title",children:o("downloadExport")}),(0,C.jsx)(V,{children:(0,C.jsxs)(Zn.A,{elevation:2,children:[(0,C.jsx)(Xn.A,{expandIcon:(0,C.jsx)(Kn.A,{}),children:(0,C.jsx)(G.A,{variant:"h4",children:o("viewWorkspaceConfiguration")})}),(0,C.jsxs)(Yn.A,{sx:{overflow:"scroll"},children:[t,(0,C.jsx)("pre",{children:this.exportedState()})]})]})}),(0,C.jsxs)(re,{children:[(0,C.jsx)(ne.A,{onClick:this.handleClose,children:o("cancel")}),(0,C.jsx)(Qn.CopyToClipboard,{onCopy:this.onCopy,text:this.exportedState(),children:(0,C.jsx)(ne.A,{variant:"contained",color:"primary",children:o("copy")})})]})]})}}])&&Jn(r.prototype,n),o&&Jn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);ao.defaultProps={children:null,container:null,open:!1,t:function(e){return e}};const so=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{exportableState:(0,yt.Gt)(e)}}),{}),(0,a.h)("WorkspaceExport"))(ao);var lo=r(31559);function uo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,co(n.key),n)}}function co(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function fo(e,t,r){return t=ho(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vo(e)}(e,po()?Reflect.construct(t,r||[],ho(e).constructor):t.apply(e,r))}function po(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(po=function(){return!!e})()}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ho(e)}function vo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function go(e,t){return go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},go(e,t)}var mo=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=fo(this,t,[e])).state={configImportValue:""},r.handleImportConfig=r.handleImportConfig.bind(vo(r)),r.handleChange=r.handleChange.bind(vo(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&go(e,t)}(t,e),r=t,(n=[{key:"handleChange",value:function(e){e.preventDefault(),this.setState({configImportValue:e.target.value})}},{key:"handleImportConfig",value:function(e){var t=this.props,r=t.handleClose,n=t.importConfig,o=this.state.configImportValue;try{n(JSON.parse(o)),r()}catch(e){(0,this.props.addError)(e.toString())}}},{key:"render",value:function(){var e=this.props,t=e.classes,r=e.handleClose,n=e.open,o=e.t;return(0,C.jsxs)(ar,{"aria-labelledby":"workspace-import-title",id:"workspace-import",onClose:r,open:n,fullWidth:!0,maxWidth:"sm",children:[(0,C.jsx)($,{id:"workspace-import-title",children:o("importWorkspace")}),(0,C.jsx)(Sr,{children:(0,C.jsx)(lo.A,{className:t.textField,id:"workspace-import-input",multiline:!0,onChange:this.handleChange,minRows:15,variant:"filled",sx:{"& .MuiInputBase-input":{fontFamily:"monospace"},width:"100%"},inputProps:{autoFocus:"autofocus"},helperText:o("importWorkspaceHint")})}),(0,C.jsxs)(re,{children:[(0,C.jsx)(ne.A,{onClick:r,children:o("cancel")}),(0,C.jsx)(ne.A,{color:"primary",onClick:this.handleImportConfig,variant:"contained",children:o("import")})]})]})}}])&&uo(r.prototype,n),o&&uo(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);mo.defaultProps={classes:{},open:!1,t:function(e){return e}};var yo={addError:fe.C,importConfig:xt.Jk};const bo=(0,n.Zz)((0,i.CI)(),(0,o.Ng)(null,yo),(0,a.h)("WorkspaceImport"))(mo);function wo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(r),!0).forEach((function(t){xo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xo(e,t,r){return(t=Ao(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function So(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ao(n.key),n)}}function Ao(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Po(e,t,r){return t=Eo(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Io(e)}(e,jo()?Reflect.construct(t,r||[],Eo(e).constructor):t.apply(e,r))}function jo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jo=function(){return!!e})()}function Eo(e){return Eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Eo(e)}function Io(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function To(e,t){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},To(e,t)}var Co=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Po(this,t,[e])).state={exportWorkspace:{},importWorkspace:{}},r.handleMenuItemClick=r.handleMenuItemClick.bind(Io(r)),r.handleMenuItemClose=r.handleMenuItemClose.bind(Io(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&To(e,t)}(t,e),r=t,(n=[{key:"handleMenuItemClick",value:function(e){var t={};t[e]={},t[e].open=!0,this.setState(t)}},{key:"handleMenuItemClose",value:function(e){var t=this;return function(r){var n={};n[e]={},n[e].open=!1,t.setState(n)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.anchorEl,n=t.container,o=t.handleClose,i=t.t,a=t.open,s=this.state,l=s.exportWorkspace,u=s.importWorkspace;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(wt.A,{id:"workspace-options-menu",container:null==n?void 0:n.current,anchorEl:r,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:a,onClose:o,children:[(0,C.jsxs)(Ot.A,{"aria-haspopup":"true",onClick:function(){e.handleMenuItemClick("exportWorkspace"),o()},"aria-owns":l.open?"workspace-export":void 0,children:[(0,C.jsx)(St.A,{children:(0,C.jsx)(wn.A,{})}),(0,C.jsx)(G.A,{variant:"body1",children:i("downloadExportWorkspace")})]}),(0,C.jsxs)(Ot.A,{"aria-haspopup":"true",id:"workspace-menu-import",onClick:function(){e.handleMenuItemClick("importWorkspace"),o()},"aria-owns":l.open?"workspace-import":void 0,children:[(0,C.jsx)(St.A,{children:(0,C.jsx)(bn.A,{})}),(0,C.jsx)(G.A,{variant:"body1",children:i("importWorkspace")})]}),(0,C.jsx)(qr.F,Oo({},this.props))]}),Boolean(l.open)&&(0,C.jsx)(so,{open:Boolean(l.open),container:null==n?void 0:n.current,handleClose:this.handleMenuItemClose("exportWorkspace")}),Boolean(u.open)&&(0,C.jsx)(bo,{open:Boolean(u.open),container:null==n?void 0:n.current,handleClose:this.handleMenuItemClose("importWorkspace")})]})}}])&&So(r.prototype,n),o&&So(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Co.defaultProps={anchorEl:null,container:null,open:!1};const ko=(0,n.Zz)((0,i.CI)(),bt.D)(Co);function _o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ro(n.key),n)}}function Ro(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function No(e,t,r){return t=Mo(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Lo(e)}(e,Do()?Reflect.construct(t,r||[],Mo(e).constructor):t.apply(e,r))}function Do(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Do=function(){return!!e})()}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mo(e)}function Lo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zo(e,t){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zo(e,t)}var Wo=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=No(this,t,[e])).state={anchorEl:null,open:!1},r.handleMenuClick=r.handleMenuClick.bind(Lo(r)),r.handleMenuClose=r.handleMenuClose.bind(Lo(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zo(e,t)}(t,e),r=t,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget,open:!0})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null,open:!1})}},{key:"render",value:function(){var e=this.props.t,t=this.state,r=t.anchorEl,n=t.open;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(st.A,{"aria-label":e("workspaceOptions"),onClick:this.handleMenuClick,selected:n,children:(0,C.jsx)(yn.A,{})}),(0,C.jsx)(ko,{anchorEl:r,handleClose:this.handleMenuClose,open:n})]})}}])&&_o(r.prototype,n),o&&_o(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);const Bo=(0,n.Zz)((0,i.CI)(),(0,a.h)("WorkspaceOptionsButton"))(Wo);var Fo=r(67105),Ho=r(92013),Uo=r(25661),Vo=r(84774),Go=["container","handleClose","windowIds","focusWindow","focusedWindowId","t"];function qo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ko(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(r),!0).forEach((function(t){$o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $o(e,t,r){return(t=Yo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zo(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Xo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yo(n.key),n)}}function Yo(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Qo(e,t,r){return t=ei(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Jo()?Reflect.construct(t,r||[],ei(e).constructor):t.apply(e,r))}function Jo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jo=function(){return!!e})()}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(e)}function ti(e,t){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ti(e,t)}var ri=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qo(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ti(e,t)}(t,e),r=t,(n=[{key:"titleContent",value:function(e){var t=this.props,r=t.titles,n=t.t;return r[e]||n("untitled")}},{key:"render",value:function(){var e=this,t=this.props,r=t.container,n=t.handleClose,o=t.windowIds,i=t.focusWindow,a=t.focusedWindowId,s=t.t,l=Zo(t,Go);return(0,C.jsxs)(wt.A,Ko(Ko({anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},id:"window-list-menu",container:null==r?void 0:r.current,onClose:n},l),{},{children:[(0,C.jsx)(Vo.A,{role:"presentation",selected:!1,disabled:!0,tabIndex:"-1",children:s("openWindows")}),o.map((function(t,r){return(0,C.jsx)(Ot.A,{selected:t===a,onClick:function(e){i(t,!0),n(e)},children:(0,C.jsx)(At.A,{primaryTypographyProps:{variant:"body1"},children:e.titleContent(t)})},t)}))]}))}}])&&Xo(r.prototype,n),o&&Xo(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);ri.defaultProps={container:null,focusedWindowId:null,t:function(e){return e},titles:{}};var ni={focusWindow:Ho.hN};const oi=(0,n.Zz)((0,i.CI)(),bt.D,(0,o.Ng)((function(e){return{focusedWindowId:(0,de.fT)(e),titles:(0,Uo.wb)(e),windowIds:(0,_e.rG)(e)}}),ni),(0,a.h)("WindowList"))(ri);function ii(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ai(n.key),n)}}function ai(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function si(e,t,r){return t=ui(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ci(e)}(e,li()?Reflect.construct(t,r||[],ui(e).constructor):t.apply(e,r))}function li(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(li=function(){return!!e})()}function ui(e){return ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ui(e)}function ci(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fi(e,t)}var di=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=si(this,t,[e])).state={windowListAnchor:null},r.handleClose=r.handleClose.bind(ci(r)),r.handleOpen=r.handleOpen.bind(ci(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fi(e,t)}(t,e),r=t,(n=[{key:"handleClose",value:function(){this.setState({windowListAnchor:null})}},{key:"handleOpen",value:function(e){this.setState({windowListAnchor:e.currentTarget})}},{key:"render",value:function(){var e=this,t=this.props,r=t.disabled,n=t.t,o=t.windowCount,i=this.state.windowListAnchor;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(st.A,{"aria-haspopup":"true","aria-label":n("listAllOpenWindows"),"aria-owns":i?"window-list":null,selected:Boolean(i),disabled:r,badge:!0,BadgeProps:{badgeContent:o,sx:{".MuiBadge-badge":{paddingLeft:1.5}}},onClick:function(t){return e.handleOpen(t)},children:(0,C.jsx)(Fo.A,{})}),Boolean(i)&&(0,C.jsx)(oi,{anchorEl:i,id:"window-list",open:Boolean(i),handleClose:this.handleClose})]})}}])&&ii(r.prototype,n),o&&ii(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);di.defaultProps={disabled:!1};const pi=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{disabled:(0,_e.K4)(e).isWorkspaceAddVisible,windowCount:(0,_e.rG)(e).length}}),null),(0,a.h)("WindowListButton"))(di);function hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(r),!0).forEach((function(t){gi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gi(e,t,r){return(t=yi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yi(n.key),n)}}function yi(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function bi(e,t,r){return t=Oi(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wi()?Reflect.construct(t,r||[],Oi(e).constructor):t.apply(e,r))}function wi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wi=function(){return!!e})()}function Oi(e){return Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oi(e)}function xi(e,t){return xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xi(e,t)}var Si=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),bi(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xi(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(pi,{}),(0,C.jsx)(mn,{}),(0,C.jsx)(Bo,{}),(0,C.jsx)(gt,{}),(0,C.jsx)(qr.F,vi({},this.props))]})}}])&&mi(r.prototype,n),o&&mi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);const Ai=(0,n.Zz)((0,a.h)("WorkspaceControlPanelButtons"))(Si);var Pi=r(92408);function ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ei(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(r),!0).forEach((function(t){Ii(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ji(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ii(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ti(e){return(0,C.jsxs)(sr.A,Ei(Ei({viewBox:"0 0 60 55"},e),{},{children:[(0,C.jsx)("rect",{width:"18",height:"55"}),(0,C.jsx)("rect",{width:"18",height:"55",transform:"translate(42)"}),(0,C.jsx)("rect",{width:"18",height:"34",transform:"translate(21)"})]}))}var Ci=["t","variant"];function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(r),!0).forEach((function(t){Ri(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ri(e,t,r){return(t=Mi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ni(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Di(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mi(n.key),n)}}function Mi(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Li(e,t,r){return t=Wi(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zi()?Reflect.construct(t,r||[],Wi(e).constructor):t.apply(e,r))}function zi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zi=function(){return!!e})()}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wi(e)}function Bi(e,t){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bi(e,t)}var Fi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Li(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bi(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.t,r=e.variant,n=Ni(e,Ci);return(0,C.jsxs)(Pi.A,_i(_i({alignItems:"center"},n),{},{children:["wide"===r&&(0,C.jsx)("div",{children:(0,C.jsx)(G.A,{align:"center",component:"p",variant:"h3",children:t("mirador")})}),(0,C.jsx)(G.A,{align:"center",children:(0,C.jsx)(qn.A,{component:"a",href:"https://projectmirador.org",target:"_blank",rel:"noopener",size:"large",children:(0,C.jsx)(Ti,{"aria-label":t("aboutMirador"),titleAccess:t("aboutMirador"),fontSize:"large"})})})]}))}}])&&Di(r.prototype,n),o&&Di(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Fi.defaultProps={t:function(e){return e},variant:"default"};const Hi=(0,a.h)("Branding")(Fi);var Ui=r(60885);function Vi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yi(n.key),n)}}function Gi(e,t,r){return t=Ki(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qi()?Reflect.construct(t,r||[],Ki(e).constructor):t.apply(e,r))}function qi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qi=function(){return!!e})()}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ki(e)}function $i(e,t){return $i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$i(e,t)}function Zi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xi(e,t,r){return(t=Yi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yi(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Qi=(0,u.Ay)(Oe,{name:"WorkspaceControlPanel",slot:"root"})((function(e){var t=e.ownerState,r=e.theme;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(r),!0).forEach((function(t){Xi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(Xi({display:"flex",height:64,padding:r.spacing(1),paddingBottom:0,position:"relative"},r.breakpoints.up("sm"),{height:"auto",width:"wide"===t.variant?"auto":64}),"wide"===t.variant&&{width:"auto"})})),Ji=(0,u.Ay)(xe.A,{name:"WorkspaceControlPanel",slot:"toolbar"})((function(e){return Xi({display:"flex",flexGrow:1,justifyContent:"space-between"},e.theme.breakpoints.up("sm"),{flexDirection:"column",justifyContent:"flex-start",minHeight:0})})),ea=(0,u.Ay)("div",{name:"WorkspaceControlPanel",slot:"buttonArea"})((function(e){var t=e.theme;return Xi({},t.breakpoints.up("sm"),{display:"flex",flexDirection:"column",gap:t.spacing(2),marginBottom:t.spacing(1),marginTop:t.spacing(1)})})),ta=(0,u.Ay)(Hi,{name:"WorkspaceControlPanel",slot:"branding"})((function(e){var t=e.theme;return Xi(Xi({},t.breakpoints.up("xs"),{display:"none"}),t.breakpoints.up("sm"),{display:"flex"})})),ra=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gi(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$i(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.t,r=e.variant;return(0,C.jsxs)(Qi,{ownerState:this.props,className:ge()((0,Ui.A)("workspace-control-panel")),color:"default",enableColorOnDark:!0,position:"absolute",component:"nav","aria-label":t("workspaceNavigation"),children:[(0,C.jsxs)(Ji,{disableGutters:!0,children:[(0,C.jsx)(ot,{}),(0,C.jsx)(ea,{children:(0,C.jsx)(Ai,{})})]}),(0,C.jsx)(ta,{t,variant:r})]})}}])&&Vi(r.prototype,n),o&&Vi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);ra.defaultProps={variant:"default"};const na=(0,n.Zz)((0,i.CI)(),(0,a.h)("WorkspaceControlPanel"))(ra);var oa=r(70368),ia=r(70026),aa=r(35949),sa=r(36829),la=r(60141),ua=r(90211);function ca(e){return(0,A.Ay)("MuiFormControlLabel",e)}const fa=(0,S.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var da=r(45833);function pa(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ha=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],va=(0,u.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[pa({},"& .".concat(fa.label),t.label),t.root,t["labelPlacement".concat((0,y.A)(r.labelPlacement))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,h.A)(pa({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(fa.disabled),{cursor:"default"}),"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},pa({},"& .".concat(fa.label),pa({},"&.".concat(fa.disabled),{color:(t.vars||t).palette.text.disabled})))})),ga=(0,u.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return pa({},"&.".concat(fa.error),{color:(t.vars||t).palette.error.main})}));const ma=s.forwardRef((function(e,t){var r,n,o=(0,x.A)({props:e,name:"MuiFormControlLabel"}),i=o.className,a=o.componentsProps,l=void 0===a?{}:a,u=o.control,c=o.disabled,f=o.disableTypography,d=o.label,m=o.labelPlacement,b=void 0===m?"end":m,w=o.required,O=o.slotProps,S=void 0===O?{}:O,A=(0,p.A)(o,ha),P=(0,ua.A)(),j=null!=(r=null!=c?c:u.props.disabled)?r:null==P?void 0:P.disabled,E=null!=w?w:u.props.required,I={disabled:j,required:E};["checked","name","onChange","value","inputRef"].forEach((function(e){void 0===u.props[e]&&void 0!==o[e]&&(I[e]=o[e])}));var T=(0,da.A)({props:o,muiFormControl:P,states:["error"]}),k=(0,h.A)({},o,{disabled:j,labelPlacement:b,required:E,error:T.error}),_=function(e){var t=e.classes,r=e.disabled,n=e.labelPlacement,o=e.error,i=e.required,a={root:["root",r&&"disabled","labelPlacement".concat((0,y.A)(n)),o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,g.A)(a,ca,t)}(k),R=null!=(n=S.typography)?n:l.typography,N=d;return null==N||N.type===G.A||f||(N=(0,C.jsx)(G.A,(0,h.A)({component:"span"},R,{className:(0,v.A)(_.label,null==R?void 0:R.className),children:N}))),(0,C.jsxs)(va,(0,h.A)({className:(0,v.A)(_.root,i),ownerState:k,ref:t},A,{children:[s.cloneElement(u,I),E?(0,C.jsxs)(Pi.A,{display:"block",children:[N,(0,C.jsxs)(ga,{ownerState:k,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):N]}))}));var ya=r(56653);function ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(r),!0).forEach((function(t){Oa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ba(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oa(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xa(e){return(0,C.jsx)(sr.A,wa(wa({},e),{},{children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,C.jsx)("path",{d:"M3,3H21V5H3Z",transform:"translate(0 16)"}),(0,C.jsx)("path",{d:"M21,5H3V19H21ZM19,17H5V7H19Z",transform:"translate(0 -2)"})]})}))}function Sa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(r),!0).forEach((function(t){Pa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pa(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ja(e){return(0,C.jsx)(sr.A,Aa(Aa({},e),{},{children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,C.jsx)("path",{d:"M0,0H24V24H0Z",transform:"translate(24) rotate(90)",fill:"none"}),(0,C.jsx)("path",{d:"M3,3H21V5H3Z",transform:"translate(24) rotate(90)"}),(0,C.jsx)("path",{d:"M19,3H5V21H19ZM17,19H7V5H17Z",transform:"translate(-2)"})]})}))}function Ea(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ma(n.key),n)}}function Ia(e,t,r){return t=Ca(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ka(e)}(e,Ta()?Reflect.construct(t,r||[],Ca(e).constructor):t.apply(e,r))}function Ta(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ta=function(){return!!e})()}function Ca(e){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ca(e)}function ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_a(e,t)}function Ra(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(r),!0).forEach((function(t){Da(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ra(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Da(e,t,r){return(t=Ma(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ma(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var La=(0,u.Ay)(Ot.A,{name:"WindowThumbnailSettings",slot:"option"})((function(e){var t=e.selected,r=e.theme;return{"& .MuiFormControlLabel-label":Na({borderBottom:"2px solid transparent"},t&&{borderBottomColor:r.palette.secondary.main}),backgroundColor:"transparent !important",color:t?r.palette.secondary.main:void 0,display:"inline-block"}})),za=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ia(this,t,[e])).handleChange=r.handleChange.bind(ka(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_a(e,t)}(t,e),r=t,(n=[{key:"handleChange",value:function(e){var t=this.props,r=t.windowId;(0,t.setWindowThumbnailPosition)(r,e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.handleClose,n=t.t,o=t.thumbnailNavigationPosition,i=t.direction;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Vo.A,{role:"presentation",disableSticky:!0,tabIndex:-1,children:n("thumbnails")}),(0,C.jsx)(La,{selected:"off"===o,onClick:function(){e.handleChange("off"),r()},children:(0,C.jsx)(ma,{value:"off",control:(0,C.jsx)(ya.A,{color:"off"===o?"secondary":void 0,fill:"currentcolor"}),label:n("off"),labelPlacement:"bottom"})}),(0,C.jsx)(La,{selected:"far-bottom"===o,onClick:function(){e.handleChange("far-bottom"),r()},children:(0,C.jsx)(ma,{value:"far-bottom",control:(0,C.jsx)(xa,{color:"far-bottom"===o?"secondary":void 0,fill:"currentcolor"}),label:n("bottom"),labelPlacement:"bottom"})}),(0,C.jsx)(La,{selected:"far-right"===o,onClick:function(){e.handleChange("far-right"),r()},children:(0,C.jsx)(ma,{value:"far-right",control:(0,C.jsx)(ja,{color:"far-right"===o?"secondary":void 0,fill:"currentcolor",style:"rtl"===i?{transform:"rotate(180deg)"}:{}}),label:n("right"),labelPlacement:"bottom"})})]})}}])&&Ea(r.prototype,n),o&&Ea(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);za.defaultProps={handleClose:function(){},t:function(e){return e}};var Wa={setWindowThumbnailPosition:Ho.GR};const Ba=(0,n.Zz)((0,i.CI)(null,{withRef:!0}),(0,o.Ng)((function(e,t){var r=t.windowId;return{direction:(0,yt.b3)(e),thumbnailNavigationPosition:(0,la.Ir)(e,{windowId:r})}}),Wa,null,{forwardRef:!0}),(0,a.h)("WindowThumbnailSettings"))(za);var Fa=r(9439),Ha=r(80781);function Ua(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Va(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(r),!0).forEach((function(t){Ga(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ua(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ga(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qa(e){return(0,C.jsx)(sr.A,Va(Va({},e),{},{children:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,C.jsx)("path",{d:"M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8ZM14,9.5h6V11H14ZM14,12h6v1.5H14Zm0,2.5h6V16H14Z"})})}))}function Ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(r),!0).forEach((function(t){Za(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Za(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xa(e){return(0,C.jsx)(sr.A,$a($a({},e),{},{children:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,C.jsx)("path",{d:"M19.974,2H2V19.974H19.974V2ZM7.392,18.177H3.8V14.582H7.392Zm0-5.392H3.8V9.19H7.392Zm0-5.392H3.8V3.8H7.392Zm5.392,10.785H9.19V14.582h3.595Zm0-5.392H9.19V9.19h3.595Zm0-5.392H9.19V3.8h3.595Zm5.392,10.785H14.582V14.582h3.595Zm0-5.392H14.582V9.19h3.595Zm0-5.392H14.582V3.8h3.595Z",transform:"translate(1 1)"})})}))}function Ya(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,as(n.key),n)}}function Qa(e,t,r){return t=es(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ts(e)}(e,Ja()?Reflect.construct(t,r||[],es(e).constructor):t.apply(e,r))}function Ja(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ja=function(){return!!e})()}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},es(e)}function ts(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rs(e,t){return rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rs(e,t)}function ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function os(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(r),!0).forEach((function(t){is(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function is(e,t,r){return(t=as(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function as(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var ss=(0,u.Ay)(Ot.A,{name:"WindowViewSettings",slot:"option"})((function(e){var t=e.selected,r=e.theme;return{"& .MuiFormControlLabel-label":os({borderBottom:"2px solid transparent"},t&&{borderBottomColor:r.palette.secondary.main}),backgroundColor:"transparent !important",color:t?r.palette.secondary.main:void 0,display:"inline-block"}})),ls=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Qa(this,t,[e])).handleChange=r.handleChange.bind(ts(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rs(e,t)}(t,e),r=t,(n=[{key:"handleChange",value:function(e){var t=this.props,r=t.windowId;(0,t.setWindowViewType)(r,e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.handleClose,n=t.t,o=t.windowViewType,i=t.viewTypes,a={book:qa,gallery:Xa,scroll:Ha.A,single:Fa.A};return 0===i.length?null:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Vo.A,{role:"presentation",disableSticky:!0,tabIndex:-1,children:n("view")}),i.map((function(t){return function(t){var i=t.value,a=t.Icon;return(0,C.jsx)(ss,{selected:o===i,autoFocus:o===i,onClick:function(){e.handleChange(i),r()},children:(0,C.jsx)(ma,{value:i,control:(0,C.jsx)(a,{fill:"currentcolor",color:o===i?"secondary":void 0}),label:n(i),labelPlacement:"bottom"})},i)}({Icon:a[t],value:t})}))]})}}])&&Ya(r.prototype,n),o&&Ya(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);ls.defaultProps={handleClose:function(){},t:function(e){return e},viewTypes:[]};var us={setWindowViewType:Ho.QO};const cs=(0,n.Zz)((0,i.CI)(null,{withRef:!0}),(0,o.Ng)((function(e,t){var r=t.windowId;return{viewTypes:(0,Uo.B2)(e,{windowId:r}),windowViewType:(0,Uo.i9)(e,{windowId:r})}}),us,null,{forwardRef:!0}),(0,a.h)("WindowViewSettings"))(ls);function fs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bs(n.key),n)}}function ds(e,t,r){return t=hs(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ps()?Reflect.construct(t,r||[],hs(e).constructor):t.apply(e,r))}function ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ps=function(){return!!e})()}function hs(e){return hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hs(e)}function vs(e,t){return vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vs(e,t)}function gs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ms(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(r),!0).forEach((function(t){ys(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ys(e,t,r){return(t=bs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bs(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ws(e){var t=e.PluginComponents,r=e.t;return t?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Vo.A,{role:"presentation",disableSticky:!0,tabIndex:-1,children:r("windowPluginButtons")}),(0,C.jsx)(qr.F,ms({},e))]}):null}var Os=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ds(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vs(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.container,r=e.handleClose,n=e.showThumbnailNavigationSettings,o=e.toggleDraggingEnabled,i=e.windowId,a=e.anchorEl,s=e.open;return(0,C.jsxs)(wt.A,{container:null==t?void 0:t.current,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},onClose:r,TransitionProps:{onEntering:o,onExit:o},orientation:"horizontal",anchorEl:a,open:s,children:[(0,C.jsx)(cs,{windowId:i,handleClose:r}),n&&(0,C.jsx)(Ba,{windowId:i,handleClose:r}),(0,C.jsx)(ws,ms({},this.props))]})}}])&&fs(r.prototype,n),o&&fs(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Os.defaultProps={anchorEl:null,container:null,open:!1,showThumbnailNavigationSettings:!0};const xs=(0,n.Zz)((0,i.CI)(),bt.D,(0,o.Ng)((function(e){return{showThumbnailNavigationSettings:(0,yt.zj)(e).thumbnailNavigation.displaySettings}}),(function(e){return{toggleDraggingEnabled:function(){return e(ke.Zw())}}})),(0,a.h)("WindowTopMenu"))(Os);function Ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function As(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(r),!0).forEach((function(t){Ps(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ss(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ps(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function js(e){return(0,C.jsx)(sr.A,As(As({},e),{},{children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,C.jsx)("path",{d:"M0,0H24V24H0Z",fill:"none"}),(0,C.jsx)("path",{d:"M24.852,17.981,3,18V15.945l21.852-.019Z",transform:"translate(-2 5)"}),(0,C.jsx)("path",{d:"M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8Z",transform:"translate(0 -2)"})]})}))}function Es(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Is(n.key),n)}}function Is(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ts(e,t,r){return t=ks(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _s(e)}(e,Cs()?Reflect.construct(t,r||[],ks(e).constructor):t.apply(e,r))}function Cs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cs=function(){return!!e})()}function ks(e){return ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ks(e)}function _s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rs(e,t)}var Ns=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ts(this,t,[e])).state={anchorEl:null,open:!1},r.handleMenuClick=r.handleMenuClick.bind(_s(r)),r.handleMenuClose=r.handleMenuClose.bind(_s(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rs(e,t)}(t,e),r=t,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.target,open:!0})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null,open:!1})}},{key:"render",value:function(){var e=this.props,t=e.classes,r=e.t,n=e.windowId,o=this.state,i=o.open,a=o.anchorEl,s="window-menu_".concat(n);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(st.A,{"aria-haspopup":"true","aria-label":r("windowMenu"),"aria-owns":i?s:void 0,className:i?t.ctrlBtnSelected:void 0,selected:i,onClick:this.handleMenuClick,children:(0,C.jsx)(js,{})}),(0,C.jsx)(xs,{windowId:n,anchorEl:a,handleClose:this.handleMenuClose,id:s,open:i})]})}}])&&Es(r.prototype,n),o&&Es(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Ns.defaultProps={classes:{},t:function(e){return e}};const Ds=(0,n.Zz)((0,i.CI)(),(0,a.h)("WindowTopMenuButton"))(Ns);function Ms(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ls(e,t,r){return(t=Ws(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ws(n.key),n)}}function Ws(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Bs(e,t,r){return t=Hs(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fs()?Reflect.construct(t,r||[],Hs(e).constructor):t.apply(e,r))}function Fs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fs=function(){return!!e})()}function Hs(e){return Hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hs(e)}function Us(e,t){return Us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Us(e,t)}var Vs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Bs(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Us(e,t)}(t,e),r=t,n=[{key:"render",value:function(){return(0,C.jsx)(qr.F,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(r),!0).forEach((function(t){Ls(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ms(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.props))}}],n&&zs(r.prototype,n),o&&zs(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);const Gs=(0,n.Zz)((0,i.CI)(),(0,o.Ng)(null,null),(0,a.h)("WindowTopBarPluginArea"))(Vs);var qs=r(6826);function Ks(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ks(Object(r),!0).forEach((function(t){Zs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ks(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zs(e,t,r){return(t=Ys(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ys(n.key),n)}}function Ys(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Qs(e,t,r){return t=el(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tl(e)}(e,Js()?Reflect.construct(t,r||[],el(e).constructor):t.apply(e,r))}function Js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Js=function(){return!!e})()}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},el(e)}function tl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rl(e,t)}var nl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Qs(this,t,[e])).state={anchorEl:null,open:!1},r.handleMenuClick=r.handleMenuClick.bind(tl(r)),r.handleMenuClose=r.handleMenuClose.bind(tl(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rl(e,t)}(t,e),r=t,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget,open:!0})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null,open:!1})}},{key:"render",value:function(){var e=this,t=this.props,r=t.container,n=t.PluginComponents,o=t.t,i=t.windowId,a=t.menuIcon,s=this.state,l=s.anchorEl,u=s.open,c="window-plugin-menu_".concat(i);return n&&0!==n.length?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(st.A,{"aria-haspopup":"true","aria-label":o("windowPluginMenu"),"aria-owns":u?c:void 0,selected:u,onClick:this.handleMenuClick,children:a}),(0,C.jsx)(wt.A,{id:c,container:null==r?void 0:r.current,anchorEl:l,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},open:u,onClose:function(){return e.handleMenuClose()},children:(0,C.jsx)(qr.F,$s({handleClose:function(){return e.handleMenuClose()}},this.props))})]}):null}}])&&Xs(r.prototype,n),o&&Xs(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);nl.defaultProps={anchorEl:null,container:null,menuIcon:(0,C.jsx)(qs.A,{}),open:!1,PluginComponents:[]};const ol=(0,n.Zz)((0,i.CI)(),bt.D,(0,a.h)("WindowTopBarPluginMenu"))(nl);var il=r(26678),al=r(14878),sl=r(91312),ll=["children"];function ul(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yl(n.key),n)}}function cl(e,t,r){return t=dl(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fl()?Reflect.construct(t,r||[],dl(e).constructor):t.apply(e,r))}function fl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fl=function(){return!!e})()}function dl(e){return dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dl(e)}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pl(e,t)}function hl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function vl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(r),!0).forEach((function(t){ml(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ml(e,t,r){return(t=yl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yl(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var bl=(0,u.Ay)((function(e){var t=e.children,r=hl(e,ll);return(0,C.jsx)(G.A,gl(gl({variant:"h2",noWrap:!0,color:"inherit"},r),{},{children:t}))}))((function(e){var t=e.theme;return gl(gl({},t.typography.h6),{},{flexGrow:1,paddingLeft:t.spacing(.5)})})),wl=(0,u.Ay)("div")((function(e){var t=e.theme;return gl(gl({},t.typography.h6),{},{flexGrow:1,paddingLeft:t.spacing(.5)})}));var Ol=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cl(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pl(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.error,r=e.hideWindowTitle,n=e.isFetching,o=e.manifestTitle;return n?(0,C.jsx)(bl,{children:(0,C.jsx)(al.A,{variant:"text"})}):t?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(sl.A,{color:"error"}),(0,C.jsx)(bl,{color:"textSecondary",children:t})]}):r?(0,C.jsx)(wl,{}):(0,C.jsx)(bl,{children:o})}}])&&ul(r.prototype,n),o&&ul(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Ol.defaultProps={error:null,hideWindowTitle:!1,isFetching:!1,manifestTitle:""};const xl=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId;return{error:(0,il.YR)(e,{windowId:r}).error,hideWindowTitle:(0,Uo.R2)(e,{windowId:r}).hideWindowTitle,isFetching:(0,il.YR)(e,{windowId:r}).isFetching,manifestTitle:(0,il.aY)(e,{windowId:r})}}),null),(0,a.h)("WindowTopBarTitle"))(Ol);function Sl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Al(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(r),!0).forEach((function(t){Pl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pl(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jl(e){return(0,C.jsx)(sr.A,Al(Al({},e),{},{children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,C.jsx)("path",{d:"M7,14H5v5h5V17H7Zm7-9V7h3v3h2V5Z"}),(0,C.jsx)("path",{d:"M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"})]})}))}function El(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?El(Object(r),!0).forEach((function(t){Tl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):El(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tl(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cl(e){return(0,C.jsx)(sr.A,Il(Il({},e),{},{children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,C.jsx)("path",{d:"M5,16H8v3h2V14H5ZM16,8V5H14v5h5V8Z"}),(0,C.jsx)("path",{d:"M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"})]})}))}function kl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zl(n.key),n)}}function _l(e,t,r){return t=Nl(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rl()?Reflect.construct(t,r||[],Nl(e).constructor):t.apply(e,r))}function Rl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rl=function(){return!!e})()}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nl(e)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dl(e,t)}function Ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ll(e,t,r){return(t=zl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zl(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Wl=(0,u.Ay)(Oe,{name:"WindowTopBar",slot:"root"})((function(){return{zIndex:1100}})),Bl=(0,u.Ay)(xe.A,{name:"WindowTopBar",slot:"toolbar"})((function(e){var t,r=e.ownerState,n=e.theme;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(r),!0).forEach((function(t){Ll(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({backgroundColor:null===(t=n.palette.shades)||void 0===t?void 0:t.main,borderTop:"2px solid",borderTopColor:null!=r&&r.focused?n.palette.primary.main:"transparent",minHeight:32,paddingLeft:n.spacing(.5),paddingRight:n.spacing(.5)},(null==r?void 0:r.windowDraggable)&&{cursor:"move"})})),Fl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_l(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dl(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.removeWindow,r=e.windowId,n=e.toggleWindowSideBar,o=e.t,i=e.maximizeWindow,a=e.maximized,s=e.minimizeWindow,l=e.allowClose,u=e.allowMaximize,c=e.focusWindow,f=e.allowFullscreen,d=e.allowTopMenuButton,p=e.allowWindowSideBar,h=e.component;return(0,C.jsx)(Wl,{component:h,"aria-label":o("windowNavigation"),position:"relative",color:"default",enableColorOnDark:!0,children:(0,C.jsxs)(Bl,{disableGutters:!0,onMouseDown:c,ownerState:this.props,className:ge()((0,Ui.A)("window-top-bar")),variant:"dense",children:[p&&(0,C.jsx)(st.A,{"aria-label":o("toggleWindowSideBar"),onClick:n,className:(0,Ui.A)("window-menu-btn"),children:(0,C.jsx)(sa.A,{})}),(0,C.jsx)(xl,{windowId:r}),d&&(0,C.jsx)(Ds,{windowId:r,className:(0,Ui.A)("window-menu-btn")}),(0,C.jsx)(Gs,{windowId:r}),(0,C.jsx)(ol,{windowId:r}),u&&(0,C.jsx)(st.A,{"aria-label":o(a?"minimizeWindow":"maximizeWindow"),className:ge()((0,Ui.A)("window-maximize"),(0,Ui.A)("window-menu-btn")),onClick:a?s:i,children:a?(0,C.jsx)(Cl,{}):(0,C.jsx)(jl,{})}),f&&(0,C.jsx)(gt,{className:(0,Ui.A)("window-menu-btn")}),l&&(0,C.jsx)(st.A,{"aria-label":o("closeWindow"),className:ge()((0,Ui.A)("window-close"),(0,Ui.A)("window-menu-btn")),onClick:t,children:(0,C.jsx)(He.A,{})})]})})}}])&&kl(r.prototype,n),o&&kl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Fl.defaultProps={allowClose:!0,allowFullscreen:!1,allowMaximize:!0,allowTopMenuButton:!0,allowWindowSideBar:!0,component:"nav",focused:!1,focusWindow:function(){},maximized:!1,maximizeWindow:function(){},minimizeWindow:function(){},t:function(e){return e},windowDraggable:!0};var Hl=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId,n=(0,Uo.R2)(e,{windowId:r});return{allowClose:n.allowClose,allowFullscreen:n.allowFullscreen,allowMaximize:n.allowMaximize,allowTopMenuButton:n.allowTopMenuButton,allowWindowSideBar:n.allowWindowSideBar,focused:(0,de.ar)(e,{windowId:r}),maximized:n.maximized}}),(function(e,t){var r=t.windowId;return{focusWindow:function(){return e(Ho.hN(r))},maximizeWindow:function(){return e(Ho.Ff(r))},minimizeWindow:function(){return e(Ho.ds(r))},removeWindow:function(){return e(Ho.lM(r))},toggleWindowSideBar:function(){return e(Ho.F9(r))}}})),(0,a.h)("WindowTopBar"));const Ul=Hl(Fl);var Vl=r(75685),Gl=r(39701),ql=r(13389),Kl=r(27572),$l=r(84147),Zl=r(57479),Xl=r(94944),Yl=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ql(e,t,r){var n,o=function(e,t,r){var n,o=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),a=(0,Xl.A)(t);if(t.fakeTransform)n=t.fakeTransform;else{var s=a.getComputedStyle(t);n=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var l=0,u=0;if(n&&"none"!==n&&"string"==typeof n){var c=n.split("(")[1].split(")")[0].split(",");l=parseInt(c[4],10),u=parseInt(c[5],10)}return"left"===e?"translateX(".concat(i?i.right+l-o.left:a.innerWidth+l-o.left,"px)"):"right"===e?"translateX(-".concat(i?o.right-i.left-l:o.left+o.width-l,"px)"):"up"===e?"translateY(".concat(i?i.bottom+u-o.top:a.innerHeight+u-o.top,"px)"):"translateY(-".concat(i?o.top-i.top+o.height-u:o.top+o.height-u,"px)")}(e,t,"function"==typeof(n=r)?n():n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Jl=s.forwardRef((function(e,t){var r=(0,T.A)(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},i=e.addEndListener,a=e.appear,l=void 0===a||a,u=e.children,c=e.container,f=e.direction,d=void 0===f?"down":f,v=e.easing,g=void 0===v?n:v,m=e.in,y=e.onEnter,b=e.onEntered,w=e.onEntering,O=e.onExit,x=e.onExited,S=e.onExiting,A=e.style,P=e.timeout,j=void 0===P?o:P,E=e.TransitionComponent,I=void 0===E?ql.Ay:E,k=(0,p.A)(e,Yl),_=s.useRef(null),R=(0,$l.A)(u.ref,_,t),N=function(e){return function(t){e&&(void 0===t?e(_.current):e(_.current,t))}},D=N((function(e,t){Ql(d,e,c),(0,Zl.q)(e),y&&y(e,t)})),M=N((function(e,t){var n=(0,Zl.c)({timeout:j,style:A,easing:g},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,h.A)({},n)),e.style.transition=r.transitions.create("transform",(0,h.A)({},n)),e.style.webkitTransform="none",e.style.transform="none",w&&w(e,t)})),L=N(b),z=N(S),W=N((function(e){var t=(0,Zl.c)({timeout:j,style:A,easing:g},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),Ql(d,e,c),O&&O(e)})),B=N((function(e){e.style.webkitTransition="",e.style.transition="",x&&x(e)})),F=s.useCallback((function(){_.current&&Ql(d,_.current,c)}),[d,c]);return s.useEffect((function(){if(!m&&"down"!==d&&"right"!==d){var e=(0,Kl.A)((function(){_.current&&Ql(d,_.current,c)})),t=(0,Xl.A)(_.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[d,m,c]),s.useEffect((function(){m||F()}),[m,F]),(0,C.jsx)(I,(0,h.A)({nodeRef:_,onEnter:D,onEntered:L,onEntering:M,onExit:W,onExited:B,onExiting:z,addEndListener:function(e){i&&i(_.current,e)},appear:l,in:m,timeout:j},k,{children:function(e,t){return s.cloneElement(u,(0,h.A)({ref:R,style:(0,h.A)({visibility:"exited"!==e||m?void 0:"hidden"},A,u.props.style)},t))}}))}));function eu(e){return(0,A.Ay)("MuiDrawer",e)}(0,S.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var tu=["BackdropProps"],ru=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],nu=function(e,t){var r=e.ownerState;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},ou=(0,u.Ay)(b.A,{name:"MuiDrawer",slot:"Root",overridesResolver:nu})((function(e){var t=e.theme;return{zIndex:(t.vars||t).zIndex.drawer}})),iu=(0,u.Ay)("div",{shouldForwardProp:u.ep,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:nu})({flex:"0 0 auto"}),au=(0,u.Ay)(O.A,{name:"MuiDrawer",slot:"Paper",overridesResolver:function(e,t){var r=e.ownerState;return[t.paper,t["paperAnchor".concat((0,y.A)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,y.A)(r.anchor))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,h.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),su={left:"right",right:"left",top:"down",bottom:"up"};const lu=s.forwardRef((function(e,t){var r=(0,x.A)({props:e,name:"MuiDrawer"}),n=(0,T.A)(),o=(0,Gl.I)(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},a=r.anchor,l=void 0===a?"left":a,u=r.BackdropProps,c=r.children,f=r.className,d=r.elevation,m=void 0===d?16:d,b=r.hideBackdrop,w=void 0!==b&&b,O=r.ModalProps,S=(void 0===O?{}:O).BackdropProps,A=r.onClose,P=r.open,j=void 0!==P&&P,E=r.PaperProps,I=void 0===E?{}:E,k=r.SlideProps,_=r.TransitionComponent,R=void 0===_?Jl:_,N=r.transitionDuration,D=void 0===N?i:N,M=r.variant,L=void 0===M?"temporary":M,z=(0,p.A)(r.ModalProps,tu),W=(0,p.A)(r,ru),B=s.useRef(!1);s.useEffect((function(){B.current=!0}),[]);var F=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?su[t]:t}({direction:o?"rtl":"ltr"},l),H=l,U=(0,h.A)({},r,{anchor:H,elevation:m,open:j,variant:L},W),V=function(e){var t=e.classes,r=e.anchor,n=e.variant,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,y.A)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,y.A)(r))]};return(0,g.A)(o,eu,t)}(U),G=(0,C.jsx)(au,(0,h.A)({elevation:"temporary"===L?m:0,square:!0},I,{className:(0,v.A)(V.paper,I.className),ownerState:U,children:c}));if("permanent"===L)return(0,C.jsx)(iu,(0,h.A)({className:(0,v.A)(V.root,V.docked,f),ownerState:U,ref:t},W,{children:G}));var q=(0,C.jsx)(R,(0,h.A)({in:j,direction:su[F],timeout:D,appear:B.current},k,{children:G}));return"persistent"===L?(0,C.jsx)(iu,(0,h.A)({className:(0,v.A)(V.root,V.docked,f),ownerState:U,ref:t},W,{children:q})):(0,C.jsx)(ou,(0,h.A)({BackdropProps:(0,h.A)({},u,S,{transitionDuration:D}),className:(0,v.A)(V.root,V.modal,f),open:j,ownerState:U,onClose:A,hideBackdrop:w,ref:t},W,z,{children:q}))}));var uu=r(6683),cu=r(11879),fu=r(33235),du=r(65174),pu=r(18941),hu=r(87237),vu=r(88150),gu=r(91772),mu=r(86521),yu=r(47089),bu=r(53462),wu=r(59152);function Ou(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(r),!0).forEach((function(t){Su(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ou(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Su(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Au(e){return(0,C.jsx)(sr.A,xu(xu({},e),{},{children:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,C.jsx)("path",{d:"M6.924,21H21V19H6.924ZM3,17H21V15H3Zm3.924-4H21V11H6.924Zm0-4H21V7H6.924ZM3,3V5H21V3Z"})})}))}var Pu=["t","value"];function ju(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Du(n.key),n)}}function Eu(e,t,r){return t=Tu(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cu(e)}(e,Iu()?Reflect.construct(t,r||[],Tu(e).constructor):t.apply(e,r))}function Iu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Iu=function(){return!!e})()}function Tu(e){return Tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tu(e)}function Cu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ku(e,t)}function _u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ru(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(r),!0).forEach((function(t){Nu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nu(e,t,r){return(t=Du(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Du(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Mu(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Lu=(0,u.Ay)(hu.A,{name:"WindowSideBarButtons",slot:"root"})({"& .MuiTabs-flexContainer":{flexDirection:"column"},"&.MuiTabs-indicator":{display:"none"}}),zu=(0,u.Ay)(vu.A,{name:"WindowSideBarButtons",slot:"button"})((function(e){var t=e.theme;return{"&.Mui-selected":{borderRight:"2px solid",borderRightColor:t.palette.primary.main},"&.MuiTab-root":{"&:active":{backgroundColor:t.palette.action.active},"&:focus":{"@media (hover: none)":{backgroundColor:"transparent"},backgroundColor:t.palette.action.hover,textDecoration:"none"},"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"},backgroundColor:t.palette.action.hover,textDecoration:"none"},borderRight:"2px solid transparent",minWidth:"auto"},fill:"currentcolor"}}));function Wu(e){var t=e.t,r=e.value,n=Mu(e,Pu);return(0,C.jsx)(Be.A,{title:t("openCompanionWindow",{context:r}),children:(0,C.jsx)(zu,Ru(Ru({},n),{},{value:r,"aria-label":t("openCompanionWindow",{context:r}),disableRipple:!0}))})}var Bu=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Eu(this,t,[e])).handleChange=r.handleChange.bind(Cu(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ku(e,t)}(t,e),r=t,n=[{key:"handleChange",value:function(e,t){(0,this.props.addCompanionWindow)(t)}},{key:"render",value:function(){var e=this,t=this.props,r=t.hasAnnotations,n=t.hasAnyAnnotations,o=t.hasAnyLayers,i=t.hasCurrentLayers,a=t.hasSearchResults,s=t.hasSearchService,l=t.panels,u=t.PluginComponents,c=t.sideBarPanel,f=t.t;return(0,C.jsxs)(Lu,{value:"closed"!==c&&c,onChange:this.handleChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary",orientation:"vertical","aria-orientation":"vertical","aria-label":f("sidebarPanelsNavigation"),children:[l.info&&(0,C.jsx)(Wu,{value:"info",onKeyUp:this.handleKeyUp,t:f,icon:(0,C.jsx)(gu.A,{})}),l.attribution&&(0,C.jsx)(Wu,{value:"attribution",onKeyUp:this.handleKeyUp,t:f,icon:(0,C.jsx)(yu.A,{})}),l.canvas&&(0,C.jsx)(Wu,{value:"canvas",onKeyUp:this.handleKeyUp,t:f,icon:(0,C.jsx)(Au,{})}),l.annotations&&(r||n)&&(0,C.jsx)(Wu,{value:"annotations",onKeyUp:this.handleKeyUp,t:f,icon:(0,C.jsx)(pu.A,{overlap:"rectangular",color:"notification",invisible:!r,variant:"dot",children:(0,C.jsx)(mu.A,{})})}),l.search&&s&&(0,C.jsx)(Wu,{value:"search",onKeyUp:this.handleKeyUp,t:f,icon:(0,C.jsx)(pu.A,{overlap:"rectangular",color:"notification",invisible:!a,variant:"dot",children:(0,C.jsx)(wu.A,{})})}),l.layers&&o&&(0,C.jsx)(Wu,{value:"layers",onKeyUp:this.handleKeyUp,t:f,icon:(0,C.jsx)(pu.A,{overlap:"rectangular",color:"notification",invisible:!i,variant:"dot",children:(0,C.jsx)(bu.A,{})})}),u&&u.map((function(t){return(0,C.jsx)(Wu,{onKeyUp:e.handleKeyUp,t:f,value:t.value,icon:(0,C.jsx)(t,{})},t.value)}))]})}}],n&&ju(r.prototype,n),o&&ju(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Bu.defaultProps={hasAnnotations:!1,hasAnyAnnotations:!1,hasAnyLayers:!1,hasCurrentLayers:!1,hasSearchResults:!1,hasSearchService:!1,panels:[],PluginComponents:null,sideBarPanel:"closed",t:function(e){return e}};function Fu(e){return e&&e.some((function(e){return new cu.A(e).imageResources.length>1}))}function Hu(e){return e&&e.some((function(e){var t=new cu.A(e);return t.annotationListUris.length>0||t.canvasAnnotationPages.length>0}))}const Uu=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId;return{hasAnnotations:(0,fu.Y2)(e,{windowId:r}).length>0,hasAnyAnnotations:Hu((0,Vl.P)(e,{windowId:r})),hasAnyLayers:Fu((0,Vl.P)(e,{windowId:r})),hasCurrentLayers:Fu((0,Vl.Mg)(e,{windowId:r})),hasSearchResults:(0,_e.zk)(e,{windowId:r}).suggestedSearches||(0,du.V8)(e,{companionWindowId:((0,la.kH)(e,{position:"left",windowId:r})[0]||{}).id,windowId:r}),hasSearchService:null!==(0,il.B8)(e,{windowId:r}),panels:(0,Uo.R2)(e,{windowId:r}).panels,sideBarPanel:((0,la.kH)(e,{position:"left",windowId:r})[0]||{}).content}}),(function(e,t){var r=t.windowId;return{addCompanionWindow:function(t){return e(uu.Yy(r,{content:t,position:"left"}))}}})),(0,a.h)("WindowSideBarButtons"))(Bu);function Vu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gu(n.key),n)}}function Gu(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function qu(e,t,r){return t=$u(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ku()?Reflect.construct(t,r||[],$u(e).constructor):t.apply(e,r))}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ku=function(){return!!e})()}function $u(e){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$u(e)}function Zu(e,t){return Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zu(e,t)}var Xu=(0,u.Ay)(lu,{name:"WindowSideBar",slot:"root"})((function(e){return{flexShrink:0,order:-1e3,zIndex:e.theme.zIndex.appBar-1}})),Yu=(0,u.Ay)("nav",{name:"WindowSideBar",slot:"nav"})({position:"relative !important",width:48}),Qu=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qu(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zu(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,r=e.direction,n=e.t,o=e.windowId,i=e.sideBarOpen;return(0,C.jsx)(Xu,{variant:"persistent",className:t.drawer,anchor:"rtl"===r?"right":"left",PaperProps:{"aria-label":n("sidebarPanelsNavigation"),component:Yu,variant:"outlined"},SlideProps:{direction:"rtl"===r?"left":"right",mountOnEnter:!0,unmountOnExit:!0},open:i,children:(0,C.jsx)(Uu,{windowId:o})})}}])&&Vu(r.prototype,n),o&&Vu(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Qu.defaultProps={classes:{},sideBarOpen:!1};const Ju=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId;return{direction:(0,yt.b3)(e),sideBarOpen:((0,_e.zk)(e,{windowId:r})||{}).sideBarOpen,sideBarPanel:((0,_e.zk)(e,{windowId:r})||{}).sideBarPanel}}),null),(0,a.h)("WindowSideBar"))(Qu);var ec=r(31042),tc=r(1831),rc=r(37465),nc=r(7498),oc=r(87584),ic=r(24715);function ac(e){return(0,A.Ay)("MuiAlert",e)}const sc=(0,S.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var lc=r(87712);const uc=(0,lc.A)((0,C.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),cc=(0,lc.A)((0,C.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),fc=(0,lc.A)((0,C.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),dc=(0,lc.A)((0,C.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var pc=r(38569);function hc(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||mc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gc(e){return function(e){if(Array.isArray(e))return yc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mc(e,t){if(e){if("string"==typeof e)return yc(e,t);var r=Object.prototype.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)?yc(e,t):void 0}}function yc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var bc=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],wc=(0,oc.h)("MuiAlert"),Oc=(0,u.Ay)(O.A,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,y.A)(r.color||r.severity))]]}})((function(e){var t=e.theme,r="light"===t.palette.mode?Cn.e$:Cn.a,n="light"===t.palette.mode?Cn.a:Cn.e$;return(0,h.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[].concat(gc(Object.entries(t.palette).filter((function(e){var t=vc(e,2)[1];return t.main&&t.light})).map((function(e){var o=vc(e,1)[0];return{props:{colorSeverity:o,variant:"standard"},style:hc({color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:n(t.palette[o].light,.9)},"& .".concat(sc.icon),t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main})}}))),gc(Object.entries(t.palette).filter((function(e){var t=vc(e,2)[1];return t.main&&t.light})).map((function(e){var n=vc(e,1)[0];return{props:{colorSeverity:n,variant:"outlined"},style:hc({color:t.vars?t.vars.palette.Alert["".concat(n,"Color")]:r(t.palette[n].light,.6),border:"1px solid ".concat((t.vars||t).palette[n].light)},"& .".concat(sc.icon),t.vars?{color:t.vars.palette.Alert["".concat(n,"IconColor")]}:{color:t.palette[n].main})}}))),gc(Object.entries(t.palette).filter((function(e){var t=vc(e,2)[1];return t.main&&t.dark})).map((function(e){var r=vc(e,1)[0];return{props:{colorSeverity:r,variant:"filled"},style:(0,h.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(r,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(r,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)})}}))))})})),xc=(0,u.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Sc=(0,u.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ac=(0,u.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Pc={success:(0,C.jsx)(uc,{fontSize:"inherit"}),warning:(0,C.jsx)(cc,{fontSize:"inherit"}),error:(0,C.jsx)(fc,{fontSize:"inherit"}),info:(0,C.jsx)(dc,{fontSize:"inherit"})};const jc=s.forwardRef((function(e,t){var r=wc({props:e,name:"MuiAlert"}),n=r.action,o=r.children,i=r.className,a=r.closeText,s=void 0===a?"Close":a,l=r.color,u=r.components,c=void 0===u?{}:u,f=r.componentsProps,d=void 0===f?{}:f,m=r.icon,b=r.iconMapping,w=void 0===b?Pc:b,O=r.onClose,x=r.role,S=void 0===x?"alert":x,A=r.severity,P=void 0===A?"success":A,j=r.slotProps,E=void 0===j?{}:j,I=r.slots,T=void 0===I?{}:I,k=r.variant,_=void 0===k?"standard":k,R=(0,p.A)(r,bc),N=(0,h.A)({},r,{color:l,severity:P,variant:_,colorSeverity:l||P}),D=function(e){var t=e.variant,r=e.color,n=e.severity,o=e.classes,i={root:["root","color".concat((0,y.A)(r||n)),"".concat(t).concat((0,y.A)(r||n)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,g.A)(i,ac,o)}(N),M={slots:(0,h.A)({closeButton:c.CloseButton,closeIcon:c.CloseIcon},T),slotProps:(0,h.A)({},d,E)},L=vc((0,ic.A)("closeButton",{elementType:qn.A,externalForwardedProps:M,ownerState:N}),2),z=L[0],W=L[1],B=vc((0,ic.A)("closeIcon",{elementType:pc.A,externalForwardedProps:M,ownerState:N}),2),F=B[0],H=B[1];return(0,C.jsxs)(Oc,(0,h.A)({role:S,elevation:0,ownerState:N,className:(0,v.A)(D.root,i),ref:t},R,{children:[!1!==m?(0,C.jsx)(xc,{ownerState:N,className:D.icon,children:m||w[P]||Pc[P]}):null,(0,C.jsx)(Sc,{ownerState:N,className:D.message,children:o}),null!=n?(0,C.jsx)(Ac,{ownerState:N,className:D.action,children:n}):null,null==n&&O?(0,C.jsx)(Ac,{ownerState:N,className:D.action,children:(0,C.jsx)(z,(0,h.A)({size:"small","aria-label":s,title:s,color:"inherit",onClick:O},W,{children:(0,C.jsx)(F,(0,h.A)({fontSize:"small"},H))}))}):null]}))}));function Ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(r),!0).forEach((function(t){Tc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ec(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tc(e,t,r){return(t=kc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kc(n.key),n)}}function kc(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function _c(e,t,r){return t=Nc(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rc()?Reflect.construct(t,r||[],Nc(e).constructor):t.apply(e,r))}function Rc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rc=function(){return!!e})()}function Nc(e){return Nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nc(e)}function Dc(e,t){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dc(e,t)}var Mc=(0,u.Ay)("pre",{name:"ErrorContent",slot:"stacktrace"})({overflowY:"scroll"}),Lc=(0,u.Ay)("pre",{name:"ErrorContent",slot:"metadata"})({height:"100px",overflowY:"scroll"}),zc=(0,u.Ay)(Zn.A,{name:"ErrorContent",slot:"accordion"})({backgroundColor:"inherit",color:"inherit",margin:0}),Wc=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_c(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dc(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.error,r=e.metadata,n=e.showJsError,o=e.t;return n?(0,C.jsxs)(jc,{elevation:6,variant:"filled",severity:"error",children:[o("errorDialogTitle"),n&&(0,C.jsxs)(zc,{elevation:2,square:!0,children:[(0,C.jsx)(Xn.A,{sx:{marginInlineStart:"-1rem"},expandIcon:(0,C.jsx)(Kn.A,{sx:{color:"#fff"}}),children:o("jsError",{message:t.message,name:t.name})}),(0,C.jsx)(Yn.A,{children:(0,C.jsxs)(Pi.A,{children:[(0,C.jsx)(Mc,{children:o("jsStack",{stack:t.stack})}),r&&(0,C.jsx)(Lc,{children:JSON.stringify(r,null,2)})]})})]}),(0,C.jsx)(qr.F,Ic({},this.props))]}):null}}])&&Cc(r.prototype,n),o&&Cc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Wc.defaultProps={metadata:null,showJsError:!0,t:function(e){return e}};const Bc=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.companionWindowId,n=t.windowId;return{metadata:{companionWindow:r&&(0,la.DS)(e,{companionWindowId:r}),manifest:(0,_e.c2)(e,{windowId:n}),viewer:(0,_e.tk)(e,{windowId:n}),window:(0,_e.zk)(e,{windowId:n})},showJsError:(0,yt.zj)(e).window.showJsError}})),(0,a.h)("ErrorContent"))(Wc);function Fc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hc(n.key),n)}}function Hc(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Uc(e,t,r){return t=Gc(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vc()?Reflect.construct(t,r||[],Gc(e).constructor):t.apply(e,r))}function Vc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vc=function(){return!!e})()}function Gc(e){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gc(e)}function qc(e,t){return qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qc(e,t)}var Kc=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Uc(this,t,[e])).state={},r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qc(e,t)}(t,e),r=t,o=[{key:"getDerivedStateFromError",value:function(e){return{error:e,hasError:!0}}}],(n=[{key:"componentDidUpdate",value:function(e){this.props.content!==e.content&&this.setState({error:null,hasError:!1})}},{key:"render",value:function(){var e=this.props,t=e.content,r=e.windowId,n=e.id,o=e.t,i=this.state,a=i.error;if(i.hasError)return(0,C.jsx)(nc.A,{title:o("error"),windowId:r,id:n,children:(0,C.jsx)(Bc,{error:a,windowId:r,companionWindowId:n})});var l=rc.A[t];return l?(0,s.createElement)(l,{id:n,windowId:r}):null}}])&&Fc(r.prototype,n),o&&Fc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Kc.defaultProps={content:null,t:function(e){return e}};const $c=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.id;return{content:(0,la.DS)(e,{companionWindowId:r}).content,id:r}})),(0,a.h)("CompanionWindowFactory"))(Kc);function Zc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nf(n.key),n)}}function Xc(e,t,r){return t=Qc(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yc()?Reflect.construct(t,r||[],Qc(e).constructor):t.apply(e,r))}function Yc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yc=function(){return!!e})()}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qc(e)}function Jc(e,t){return Jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jc(e,t)}function ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(r),!0).forEach((function(t){rf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rf(e,t,r){return(t=nf(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var of=(0,u.Ay)("div",{name:"CompanionArea",slot:"root"})((function(e){var t=e.ownerState;return tf({display:"flex",minHeight:0,position:"relative",zIndex:e.theme.zIndex.appBar-2},("bottom"===t.position||"far-bottom"===t.position)&&{flexDirection:"column",width:"100%"})})),af=(0,u.Ay)("div",{name:"CompanionArea",slot:"container"})((function(e){var t=e.ownerState;return tf(tf({display:null!=t&&t.companionAreaOpen?"flex":"none"},("bottom"===(null==t?void 0:t.position)||"far-bottom"===(null==t?void 0:t.position))&&{flexDirection:"column",width:"100%"}),"left"===(null==t?void 0:t.position)&&(null==t?void 0:t.companionWindowIds)&&t.companionWindowIds.length>0&&{minWidth:"235px"})})),sf=(0,u.Ay)("div",{name:"CompanionArea",slot:"toggle"})((function(e){var t,r=e.theme;return{alignItems:"center",backgroundColor:r.palette.background.paper,border:"1px solid ".concat("dark"===r.palette.mode?r.palette.divider:null===(t=r.palette.shades)||void 0===t?void 0:t.dark),borderInlineStart:0,borderRadius:0,display:"inline-flex",height:"48px",left:"100%",marginTop:"1rem",overflow:"hidden",padding:2,position:"absolute",width:"23px",zIndex:r.zIndex.drawer}})),lf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xc(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jc(e,t)}(t,e),r=t,(n=[{key:"areaLayoutClass",value:function(){var e=this.props,t=e.classes,r=e.position;return"bottom"===r||"far-bottom"===r?t.horizontal:null}},{key:"collapseIcon",value:function(){var e=this.props,t=e.companionAreaOpen;return"rtl"===e.direction?t?(0,C.jsx)(tc.A,{}):(0,C.jsx)(ec.A,{}):t?(0,C.jsx)(ec.A,{}):(0,C.jsx)(tc.A,{})}},{key:"slideDirection",value:function(){var e=this.props,t=e.direction,r="rtl"===t?"left":"right",n="rtl"===t?"right":"left";switch(e.position){case"right":case"far-right":return n;case"bottom":case"far-bottom":return"up";default:return r}}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.companionWindowIds,n=e.companionAreaOpen,o=e.setCompanionAreaOpen,i=e.position,a=e.sideBarOpen,s=e.t,l=e.windowId,u=ge()(this.areaLayoutClass(),(0,Ui.A)("companion-area-".concat(i)),t);return(0,C.jsxs)(of,{ownerState:this.props,className:u,children:[(0,C.jsx)(Jl,{in:n,direction:this.slideDirection(),children:(0,C.jsx)(af,{ownerState:this.props,className:"".concat((0,Ui.A)("companion-windows")),children:r.map((function(e){return(0,C.jsx)($c,{id:e,windowId:l},e)}))})}),o&&"left"===i&&a&&r.length>0&&(0,C.jsx)(sf,{children:(0,C.jsx)(st.A,{"aria-expanded":n,"aria-label":s(n?"collapseSidePanel":"expandSidePanel"),edge:"start",onClick:function(){o(l,!n)},TooltipProps:{placement:"right"},children:this.collapseIcon()})})]})}}])&&Zc(r.prototype,n),o&&Zc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);lf.defaultProps={classes:{},className:void 0,setCompanionAreaOpen:function(){},sideBarOpen:!1};var uf={setCompanionAreaOpen:Ho.Aq};const cf=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId,n=t.position;return{companionAreaOpen:(0,la.ar)(e,{position:n,windowId:r}),companionWindowIds:(0,la.bN)(e,{position:n,windowId:r}),direction:(0,yt.b3)(e),sideBarOpen:((0,_e.zk)(e,{windowId:r})||{}).sideBarOpen}}),uf),(0,a.h)("CompanionArea"))(lf);var ff=r(82154),df=r(70256),pf=r(14829),hf=r(75228),vf=r(78502),gf=r(31392),mf=r(56952),yf=r(41912);function bf(e){return function(e){if(Array.isArray(e))return wf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Of(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xf(n.key),n)}}function xf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Sf(e,t,r){return t=Pf(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jf(e)}(e,Af()?Reflect.construct(t,r||[],Pf(e).constructor):t.apply(e,r))}function Af(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Af=function(){return!!e})()}function Pf(e){return Pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pf(e)}function jf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ef(e,t)}var If=(0,u.Ay)(Sr)((function(){return{padding:function(e){return e.spacing(1)}}})),Tf=(0,u.Ay)("div")((function(){return{"& .MuiPaper-root":{background:"transparent"},padding:function(e){return e.spacing(2)}}})),Cf=(0,u.Ay)("div")((function(){return{padding:function(e){return e.spacing(2)},paddingTop:0}})),kf=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Sf(this,t,[e])).state={filter:null},r.hideDialog=r.hideDialog.bind(jf(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ef(e,t)}(t,e),r=t,n=[{key:"setFilter",value:function(e){this.setState({filter:e})}},{key:"hideDialog",value:function(){var e=this.props;(0,e.hideCollectionDialog)(e.windowId)}},{key:"selectCollection",value:function(e){var t=this.props,r=t.collectionPath,n=t.manifestId,o=t.showCollectionDialog,i=t.windowId;o(e.id,[].concat(bf(r),[n]),i)}},{key:"goToPreviousCollection",value:function(){var e=this.props,t=e.collectionPath,r=e.showCollectionDialog,n=e.windowId;r(t[t.length-1],t.slice(0,-1),n)}},{key:"selectManifest",value:function(e){var t=this.props,r=t.addWindow,n=t.collectionPath,o=t.manifestId,i=t.setWorkspaceAddVisibility,a=t.updateWindow,s=t.windowId;s?a(s,{canvasId:null,collectionPath:[].concat(bf(n),[o]),manifestId:e.id}):r({collectionPath:[].concat(bf(n),[o]),manifestId:e.id}),this.hideDialog(),i(!1)}},{key:"dialogContainer",value:function(){var e=this.props,t=e.container,r=e.windowId;return((null==t?void 0:t.current)||document.body).querySelector("#".concat(r))}},{key:"placeholder",value:function(){return(0,C.jsxs)(L,{variant:"contained",onClose:this.hideDialog,open:!0,container:this.dialogContainer(),children:[(0,C.jsx)($,{id:"select-collection",children:(0,C.jsx)(al.A,{variant:"text"})}),(0,C.jsxs)(Sr,{children:[(0,C.jsx)(al.A,{variant:"text"}),(0,C.jsx)(al.A,{variant:"text"})]})]})}},{key:"render",value:function(){var e=this,r=this.props,n=r.collection,o=r.error,i=r.isMultipart,a=r.manifest,s=r.ready,l=r.t,u=this.state.filter;if(o)return null;if(!this.dialogContainer())return this.forceUpdate(),null;if(!s)return this.placeholder();var c=a&&(0,vf.A)(a.getProperty("rights")||a.getProperty("license")),f=a&&(0,vf.A)(a.getRequiredStatement()).filter((function(e){return e.getValue()})).map((function(e){return{label:null,values:e.getValues()}})),d=a.getCollections(),p=u||(d.length>0?"collections":"manifests");return(0,C.jsxs)(L,{variant:"contained",onClose:this.hideDialog,container:this.dialogContainer(),open:!0,children:[(0,C.jsxs)($,{id:"select-collection",children:[(0,C.jsx)(G.A,{component:"div",variant:"overline",children:l(i?"multipartCollection":"collection")}),(0,C.jsx)(G.A,{component:"div",variant:"h3",children:t.getUseableLabel(a)})]}),(0,C.jsxs)(If,{children:[n&&(0,C.jsx)(ne.A,{startIcon:(0,C.jsx)(hf.A,{}),onClick:function(){return e.goToPreviousCollection()},children:t.getUseableLabel(n)}),(0,C.jsxs)(Tf,{children:[(0,C.jsx)(yf.A,{manifestId:a.id}),(0,C.jsxs)(mf.A,{id:"select-collection-rights",label:l("attributionTitle"),children:[f&&(0,C.jsx)(gf.P,{labelValuePairs:f,defaultLabel:l("attribution")}),c&&c.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(G.A,{variant:"subtitle2",component:"dt",children:l("rights")}),c.map((function(e){return(0,C.jsx)(G.A,{variant:"body1",component:"dd",children:(0,C.jsx)(df.A,{target:"_blank",rel:"noopener noreferrer",href:e,children:e})},e)}))]})]})]}),(0,C.jsxs)(Cf,{children:[a.getTotalCollections()>0&&(0,C.jsx)(pf.A,{clickable:!0,color:"collections"===p?"primary":"default",onClick:function(){return e.setFilter("collections")},label:l("totalCollections",{count:a.getTotalCollections()})}),a.getTotalManifests()>0&&(0,C.jsx)(pf.A,{clickable:!0,color:"manifests"===p?"primary":"default",onClick:function(){return e.setFilter("manifests")},label:l("totalManifests",{count:a.getTotalManifests()})})]}),"collections"===p&&(0,C.jsx)(Zt.A,{children:d.map((function(r){return(0,C.jsx)(Ot.A,{onClick:function(){e.selectCollection(r)},variant:"multiline",children:t.getUseableLabel(r)},r.id)}))}),"manifests"===p&&(0,C.jsx)(Zt.A,{children:a.getManifests().map((function(r){return(0,C.jsx)(Ot.A,{onClick:function(){e.selectManifest(r)},variant:"multiline",children:t.getUseableLabel(r)},r.id)}))})]}),(0,C.jsx)(re,{children:(0,C.jsx)(ne.A,{onClick:this.hideDialog,children:l("close")})})]})}}],o=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],n&&Of(r.prototype,n),o&&Of(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);kf.defaultProps={collection:null,collectionPath:[],container:null,error:null,isMultipart:!1,ready:!1,windowId:null};var _f={addWindow:Ho._U,hideCollectionDialog:Ho.Th,setWorkspaceAddVisibility:ke.DW,showCollectionDialog:Ho.Az,updateWindow:Ho.uE},Rf=(0,n.Zz)((0,i.CI)(),bt.D,(0,o.Ng)((function(e,t){var r=t.windowId,n=(0,_e.zk)(e,{windowId:r}),o=n.collectionPath,i=n.collectionManifestId,a=(0,_e.c2)(e,{manifestId:i}),s=o&&o[o.length-1],l=s&&(0,_e.c2)(e,{manifestId:s});return{collection:l&&(0,il.SG)(e,{manifestId:l.id}),collectionPath:o,error:a&&a.error,isMultipart:(0,ff.pw)(e,{manifestId:i}).includes("multi-part"),manifest:a&&(0,il.SG)(e,{manifestId:i}),manifestId:i,open:e.workspace.collectionDialogOn,ready:a&&!!a.json,windowId:r}}),_f),(0,a.h)("CollectionDialog"));const Nf=Rf(kf);function Df(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mf(n.key),n)}}function Mf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Lf(e,t,r){return t=Wf(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zf()?Reflect.construct(t,r||[],Wf(e).constructor):t.apply(e,r))}function zf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zf=function(){return!!e})()}function Wf(e){return Wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wf(e)}function Bf(e,t){return Bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bf(e,t)}var Ff=(0,s.lazy)((function(){return Promise.resolve().then(r.bind(r,14665))})),Hf=(0,s.lazy)((function(){return Promise.resolve().then(r.bind(r,11267))})),Uf=(0,s.lazy)((function(){return Promise.resolve().then(r.bind(r,81109))})),Vf=(0,s.lazy)((function(){return Promise.resolve().then(r.bind(r,36535))})),Gf=(0,s.lazy)((function(){return Promise.resolve().then(r.bind(r,34576))}));Hf.displayName="GalleryView",Uf.displayName="SelectCollection",Vf.displayName="WindowViewer";var qf=(0,u.Ay)("div",{name:"PrimaryWindow",slot:"root"})((function(){return{display:"flex",flex:1,position:"relative"}})),Kf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Lf(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bf(e,t)}(t,e),r=t,(n=[{key:"renderViewer",value:function(){var e=this.props,t=e.audioResources,r=e.isCollection,n=e.isFetching,o=e.videoResources,i=e.view,a=e.windowId;return r?(0,C.jsx)(Uf,{windowId:a}):!1===n?"gallery"===i?(0,C.jsx)(Hf,{windowId:a}):o.length>0?(0,C.jsx)(Gf,{windowId:a}):t.length>0?(0,C.jsx)(Ff,{windowId:a}):(0,C.jsx)(Vf,{windowId:a}):null}},{key:"render",value:function(){var e=this.props,t=e.isCollectionDialogVisible,r=e.windowId,n=e.children,o=e.className;return(0,C.jsxs)(qf,{"data-testid":"test-window",className:ge()((0,Ui.A)("primary-window"),o),children:[(0,C.jsx)(Ju,{windowId:r}),(0,C.jsx)(cf,{windowId:r,position:"left"}),t&&(0,C.jsx)(Nf,{windowId:r}),(0,C.jsx)(s.Suspense,{fallback:(0,C.jsx)("div",{}),children:n||this.renderViewer()})]})}}])&&Df(r.prototype,n),o&&Df(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Kf.defaultProps={audioResources:[],children:void 0,className:void 0,isCollection:!1,isCollectionDialogVisible:!1,isFetching:!1,videoResources:[],view:void 0};const $f=(0,n.Zz)((0,o.Ng)((function(e,t){var r=t.windowId,n=(0,il.SG)(e,{windowId:r});return{audioResources:(0,Vl._K)(e,{windowId:r})||[],isCollection:n&&n.isCollection(),isCollectionDialogVisible:(0,_e.zk)(e,{windowId:r}).collectionDialogOn,videoResources:(0,Vl.HS)(e,{windowId:r})||[]}}),null),(0,a.h)("PrimaryWindow"))(Kf);function Zf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xf(n.key),n)}}function Xf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Yf(e,t,r){return t=Jf(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Qf()?Reflect.construct(t,r||[],Jf(e).constructor):t.apply(e,r))}function Qf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qf=function(){return!!e})()}function Jf(e){return Jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jf(e)}function ed(e,t){return ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ed(e,t)}var td=(0,u.Ay)(st.A)((function(){return{marginLeft:"auto"}})),rd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Yf(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ed(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.allowClose,r=e.allowWindowSideBar,n=e.ariaLabel,o=e.children,i=e.label,a=e.removeWindow,s=e.t,l=e.windowId;return(0,C.jsxs)(O.A,{component:"section",elevation:1,id:l,className:ge()((0,Ui.A)("placeholder-window")),sx:{backgroundColor:"shades.dark",borderRadius:0,display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden",width:"100%"},"aria-label":i&&n?s("window",{label:i}):null,children:[(0,C.jsx)(Oe,{position:"relative",color:"default",enableColorOnDark:!0,children:(0,C.jsxs)(xe.A,{disableGutters:!0,className:ge()((0,Ui.A)("window-top-bar")),sx:{backgroundColor:"shades.main",borderTop:"2px solid transparent",minHeight:32,paddingLeft:.5,paddingRight:.5},variant:"dense",children:[r&&(0,C.jsx)(st.A,{"aria-label":s("toggleWindowSideBar"),disabled:!0,children:(0,C.jsx)(sa.A,{})}),(0,C.jsx)(G.A,{variant:"h2",noWrap:!0,color:"inherit",sx:{flexGrow:1,paddingLeft:.5,typography:"h6"},children:i}),t&&a&&(0,C.jsx)(td,{"aria-label":s("closeWindow"),className:ge()((0,Ui.A)("window-close")),onClick:a,TooltipProps:{tabIndex:n?0:-1},children:(0,C.jsx)(He.A,{})})]})}),o]})}}])&&Zf(r.prototype,n),o&&Zf(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);rd.defaultProps={allowClose:!0,allowWindowSideBar:!0,ariaLabel:!0,children:null,label:"",removeWindow:function(){},t:function(e){return e}};const nd=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId;return{allowClose:(0,Uo.R2)(e,{windowId:r}).allowClose,allowWindowSideBar:(0,Uo.R2)(e,{windowId:r}).allowWindowSideBar}}),(function(e,t){var r=t.windowId;return{removeWindow:function(){return e(Ho.lM(r))}}})),(0,a.h)("MinimalWindow"))(rd);var od=r(33415),id=r(45483),ad=r(79452),sd=["handleReceiveMessage"];function ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ud(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function fd(e){var t=e.handleReceiveMessage,r=cd(e,sd);return(0,s.useEffect)((function(){if(t)return window.addEventListener("message",t),function(){return window.removeEventListener("message",t,!1)}}),[t]),(0,C.jsx)("iframe",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ld(Object(r),!0).forEach((function(t){ud(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ld(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r))}function dd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pd(n.key),n)}}function pd(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function hd(e,t,r){return t=gd(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return md(e)}(e,vd()?Reflect.construct(t,r||[],gd(e).constructor):t.apply(e,r))}function vd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vd=function(){return!!e})()}function gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gd(e)}function md(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yd(e,t){return yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yd(e,t)}fd.defaultProps={"aria-hidden":!0,frameBorder:0,handleReceiveMessage:void 0,height:1,name:void 0,scrolling:void 0,style:{visibility:"hidden"},width:1};var bd=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=hd(this,t,[e])).onReceiveAccessTokenMessage=r.onReceiveAccessTokenMessage.bind(md(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yd(e,t)}(t,e),r=t,(n=[{key:"onReceiveAccessTokenMessage",value:function(e){var t=this.props,r=t.handleAccessTokenMessage,n=t.url;e.data&&e.data.messageId&&e.data.messageId===n&&r(e.data)}},{key:"render",value:function(){var e=this.props.url;return e?(0,C.jsx)(fd,{src:"".concat(e,"?origin=").concat(window.origin,"&messageId=").concat(e),title:"AccessTokenSender",handleReceiveMessage:this.onReceiveAccessTokenMessage}):null}}])&&dd(r.prototype,n),o&&dd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);function wd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Od(n.key),n)}}function Od(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function xd(e,t,r){return t=Ad(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sd()?Reflect.construct(t,r||[],Ad(e).constructor):t.apply(e,r))}function Sd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sd=function(){return!!e})()}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ad(e)}function Pd(e,t){return Pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pd(e,t)}bd.defaultProps={url:void 0};var jd=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=xd(this,t,[e])).released=void 0,r.window=null,r.checkIfWindowClosed=null,r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pd(e,t)}(t,e),r=t,(n=[{key:"componentDidMount",value:function(){this.openWindow()}},{key:"componentWillUnmount",value:function(){this.window&&this.window.close()}},{key:"onClose",value:function(){var e=this.props,t=e.onClose,r=e.url;this.released||(this.released=!0,clearInterval(this.checkIfWindowClosed),t(r))}},{key:"openWindow",value:function(){var e=this,t=this.props,r=t.depWindow,n=t.features,o=t.name,i=t.url;this.window=(r||window).open(i,o,n),this.released=!1,this.checkIfWindowClosed=setInterval((function(){e.window&&!e.window.closed||e.onClose()}),250)}},{key:"render",value:function(){return null}}])&&wd(r.prototype,n),o&&wd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);jd.defaultProps={depWindow:void 0,features:void 0,name:void 0};var Ed=r(36463),Id=r(37125),Td=r(49726);function Cd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(r),!0).forEach((function(t){_d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _d(e,t,r){return(t=Nd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nd(n.key),n)}}function Nd(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Dd(e,t,r){return t=Ld(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zd(e)}(e,Md()?Reflect.construct(t,r||[],Ld(e).constructor):t.apply(e,r))}function Md(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Md=function(){return!!e})()}function Ld(e){return Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ld(e)}function zd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wd(e,t){return Wd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wd(e,t)}var Bd=(0,u.Ay)("div")((function(e){return{"&:hover":{backgroundColor:e.theme.palette.secondary.main},alignItems:"center",display:"flex"}})),Fd=(0,u.Ay)("span")((function(e){return{marginLeft:e.theme.spacing(2.5)}})),Hd=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Dd(this,t,[e])).state={open:!1},r.setOpen=r.setOpen.bind(zd(r)),r.onSubmit=r.onSubmit.bind(zd(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wd(e,t)}(t,e),r=t,(n=[{key:"onSubmit",value:function(){var e=this.props.onConfirm;this.setOpen(!1),e()}},{key:"setOpen",value:function(e){this.setState((function(t){return kd(kd({},t),{},{open:e})}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.confirmButton,n=t.continueLabel,o=t.header,i=t.description,a=t.icon,s=t.label,l=t.t,u=t.ruleSet,f=t.hasLogoutService,d=t.status,p=t.ConfirmProps;if("ok"===d&&!f)return null;var h=this.state.open,v=(0,C.jsx)(ne.A,kd(kd({onClick:this.onSubmit,color:"secondary",sx:function(e){return{"&:hover":{backgroundColor:(0,c.X4)(e.palette.secondary.contrastText,1-e.palette.action.hoverOpacity)},backgroundColor:e.palette.secondary.contrastText}}},p),{},{children:r||l("login")}));return i||o?(0,C.jsxs)(O.A,{square:!0,elevation:4,color:"secondary",children:[(0,C.jsxs)(ne.A,{fullWidth:!0,onClick:function(){return e.setOpen(!0)},component:"div",color:"inherit",sx:function(e){return{"&:hover":{backgroundColor:e.palette.secondary.main},backgroundColor:e.palette.secondary.main,borderRadius:0,color:e.palette.secondary.contrastText,justifyContent:"start",textTransform:"none"}},children:[a||(0,C.jsx)(Id.A,{sx:{marginInlineEnd:1.5}}),(0,C.jsx)(G.A,{sx:{paddingBlockEnd:1,paddingBlockStart:1},component:"h3",variant:"body1",color:"inherit",children:u?(0,C.jsx)(Td.A,{htmlString:s,ruleSet:u}):s}),(0,C.jsx)(qr.F,kd({},this.props)),(0,C.jsx)(Fd,{children:!h&&(0,C.jsx)(G.A,{variant:"button",color:"inherit",children:n||l("continue")})})]}),(0,C.jsxs)(Ed.A,{sx:function(e){return{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText,paddingInlineEnd:e.spacing(1),paddingInlineStart:e.spacing(1)}},in:h,onClose:function(){return e.setOpen(!1)},children:[(0,C.jsxs)(G.A,{variant:"body1",color:"inherit",children:[u?(0,C.jsx)(Td.A,{htmlString:o,ruleSet:u}):o,o&&i?": ":"",u?(0,C.jsx)(Td.A,{htmlString:i,ruleSet:u}):i]}),(0,C.jsxs)(re,{children:[(0,C.jsx)(ne.A,{onClick:function(){return e.setOpen(!1)},color:"inherit",children:l("cancel")}),v]})]})]}):(0,C.jsx)(O.A,{square:!0,elevation:4,color:"secondary",children:(0,C.jsxs)(Bd,{children:[a||(0,C.jsx)(Id.A,{sx:{marginInlineEnd:1.5}}),(0,C.jsx)(G.A,{component:"h3",variant:"body1",color:"inherit",children:u?(0,C.jsx)(Td.A,{htmlString:s,ruleSet:u}):s}),(0,C.jsx)(qr.F,kd({},this.props)),v]})})}}])&&Rd(r.prototype,n),o&&Rd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Hd.defaultProps={confirmButton:void 0,ConfirmProps:{},continueLabel:void 0,description:void 0,hasLogoutService:!0,header:void 0,icon:void 0,ruleSet:"iiif",status:void 0,t:function(e){return e}};const Ud=(0,n.Zz)((0,i.CI)(),(0,a.h)("WindowAuthenticationBar"))(Hd);function Vd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(r),!0).forEach((function(t){qd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qd(e,t,r){return(t=$d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$d(n.key),n)}}function $d(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Zd(e,t,r){return t=Yd(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qd(e)}(e,Xd()?Reflect.construct(t,r||[],Yd(e).constructor):t.apply(e,r))}function Xd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xd=function(){return!!e})()}function Yd(e){return Yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yd(e)}function Qd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jd(e,t){return Jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jd(e,t)}var ep=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Zd(this,t,[e])).performLogout=r.performLogout.bind(Qd(r)),r.onReceiveAccessTokenMessage=r.onReceiveAccessTokenMessage.bind(Qd(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jd(e,t)}(t,e),r=t,(n=[{key:"onReceiveAccessTokenMessage",value:function(e){var t=this.props,r=t.authServiceId,n=t.accessTokenServiceId;(0,t.resolveAccessTokenRequest)(r,n,e)}},{key:"defaultAuthBarProps",value:function(){var e=this.props,t=e.authServiceId,r=e.windowId,n=e.status;return{authServiceId:t,hasLogoutService:!!e.logoutServiceId,status:n,windowId:r}}},{key:"performLogout",value:function(){var e=this.props,t=e.accessTokenServiceId,r=e.authServiceId,n=e.features,o=e.logoutServiceId,i=e.resetAuthenticationState;(0,e.openWindow)(o,void 0,n),i({authServiceId:r,tokenServiceId:t})}},{key:"renderLoggedIn",value:function(){var e=this.props,t=e.isInteractive,r=e.logoutConfirm,n=e.t;return t?(0,C.jsx)(Ud,Gd({confirmButton:r||n("logout"),onConfirm:this.performLogout},this.defaultAuthBarProps())):null}},{key:"renderFailure",value:function(){var e=this.props,t=e.handleAuthInteraction,r=e.failureHeader,n=e.failureDescription,o=e.t,i=e.authServiceId,a=e.windowId;return(0,C.jsx)(Ud,Gd({header:r,description:n,confirmButton:o("retry"),onConfirm:function(){return t(a,i)}},this.defaultAuthBarProps()))}},{key:"renderLoggingInCookie",value:function(){var e=this.props,t=e.accessTokenServiceId,r=e.authServiceId,n=e.resolveAuthenticationRequest,o=e.features;return(0,C.jsxs)(C.Fragment,{children:[this.renderLogin(),(0,C.jsx)(jd,{name:"IiifLoginSender",url:"".concat(r,"?origin=").concat(window.origin),features:o,onClose:function(){return n(r,t)}})]})}},{key:"renderLoggingInToken",value:function(){var e=this.props.accessTokenServiceId;return(0,C.jsxs)(C.Fragment,{children:[this.renderLogin(),(0,C.jsx)(bd,{handleAccessTokenMessage:this.onReceiveAccessTokenMessage,url:e})]})}},{key:"renderLogin",value:function(){var e=this.props,t=e.confirm,r=e.description,n=e.handleAuthInteraction,o=e.header,i=e.isInteractive,a=e.label,s=e.authServiceId,l=e.windowId;return i?(0,C.jsx)(Ud,Gd({header:o,description:r,label:a,confirmButton:t,onConfirm:function(){return n(l,s)}},this.defaultAuthBarProps())):null}},{key:"render",value:function(){var e=this.props,t=e.authServiceId,r=e.status;return t?null===r?this.renderLogin():"cookie"===r?this.renderLoggingInCookie():"token"===r?this.renderLoggingInToken():"failed"===r?this.renderFailure():"ok"===r?this.renderLoggedIn():null:null}}])&&Kd(r.prototype,n),o&&Kd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);ep.defaultProps={confirm:void 0,description:void 0,failureDescription:void 0,failureHeader:void 0,features:"centerscreen",header:void 0,isInteractive:!0,label:void 0,logoutConfirm:void 0,logoutServiceId:void 0,openWindow:window.open,status:null,t:function(e){return e}};var tp={handleAuthInteraction:id.Bq,resetAuthenticationState:id.HN,resolveAccessTokenRequest:id.fw,resolveAuthenticationRequest:id._U},rp=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId,n=(0,ad.wd)(e,{windowId:r})[0],o=n&&(od.Utils.getService(n,"http://iiif.io/api/auth/1/token")||od.Utils.getService(n,"http://iiif.io/api/auth/0/token")),i=n&&(od.Utils.getService(n,"http://iiif.io/api/auth/1/logout")||od.Utils.getService(n,"http://iiif.io/api/auth/0/logout")),a=(0,ad.xI)(e),s=n&&a[n.id],l=(0,ad.X8)(e),u=o&&l[o.id],c=null;s?s.isFetching?s.windowId===r&&(c="cookie"):u&&u.isFetching?s.windowId===r&&(c="token"):s.ok?c="ok":!1===s.ok&&(c="failed"):c=null;var f=(0,ad.Rf)(e),d=n&&n.getProfile(),p=f.some((function(e){return e.profile===d&&!(e.external||e.kiosk)}));return{accessTokenServiceId:o&&o.id,authServiceId:n&&n.id,confirm:n&&n.getConfirmLabel(),description:n&&n.getDescription(),failureDescription:n&&n.getFailureDescription(),failureHeader:n&&n.getFailureHeader(),header:n&&n.getHeader(),isInteractive:p,label:n&&n.getLabel()[0].value,logoutConfirm:i&&i.getLabel()[0]&&i.getLabel()[0].value,logoutServiceId:i&&i.id,profile:d,status:c}}),tp),(0,a.h)("IIIFAuthentication"));const np=rp(ep);var op=["children"];function ip(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hp(n.key),n)}}function ap(e,t,r){return t=lp(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sp()?Reflect.construct(t,r||[],lp(e).constructor):t.apply(e,r))}function sp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sp=function(){return!!e})()}function lp(e){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lp(e)}function up(e,t){return up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},up(e,t)}function cp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function fp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fp(Object(r),!0).forEach((function(t){pp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pp(e,t,r){return(t=hp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hp(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var vp={display:"flex",flex:"1",flexDirection:"row",minHeight:0},gp={display:"flex",flex:"1",flexDirection:"column",minHeight:0},mp=(0,u.Ay)(O.A,{name:"Window",slot:"root"})((function(e){var t,r=e.ownerState,n=e.theme;return dp(dp({},gp),{},{backgroundColor:null===(t=n.palette.shades)||void 0===t?void 0:t.dark,borderRadius:0,height:"100%",overflow:"hidden",width:"100%"},(null==r?void 0:r.maximized)&&{left:0,position:"absolute",top:0,zIndex:n.zIndex.modal-1})})),yp=(0,u.Ay)("div",{name:"Window",slot:"row"})((function(){return dp({},vp)})),bp=(0,u.Ay)("div",{name:"Window",slot:"column"})((function(){return dp({},gp)})),wp=(0,u.Ay)($f,{name:"Window",slot:"primary"})((function(){return dp(dp({},vp),{},{height:"300px",position:"relative"})})),Op=(0,u.Ay)(cf,{name:"Window",slot:"bottom"})((function(){return dp(dp({},vp),{},{flex:"0",flexBasis:"auto"})})),xp=(0,u.Ay)("div",{name:"Window",slot:"right"})((function(){return dp(dp({},vp),{},{flex:"0 1 auto"})})),Sp=function(e){var t=e.children,r=cp(e,op);return(0,s.useContext)(aa.MosaicWindowContext).mosaicWindowActions.connectDragSource((0,C.jsx)("nav",dp(dp({},r),{},{children:t})))},Ap=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=ap(this,t,[e])).state={},r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&up(e,t)}(t,e),r=t,o=[{key:"getDerivedStateFromError",value:function(e){return{error:e,hasError:!0}}}],(n=[{key:"render",value:function(){var e=this.props,t=e.focusWindow,r=e.label,n=e.isFetching,o=e.sideBarOpen,i=e.view,a=e.windowDraggable,s=e.windowId,l=e.workspaceType,u=e.t,c=e.manifestError,f=this.state,d=f.error;return f.hasError?(0,C.jsx)(nd,{windowId:s,children:(0,C.jsx)(Bc,{error:d,windowId:s})}):(0,C.jsxs)(mp,{onFocus:t,ownerState:this.props,component:"section",elevation:1,id:s,className:(0,Ui.A)("window"),"aria-label":u("window",{label:r}),children:[(0,C.jsx)(Ul,{component:"mosaic"===l&&a?Sp:void 0,windowId:s,windowDraggable:a}),(0,C.jsx)(np,{windowId:s}),c&&(0,C.jsx)(Bc,{error:{stack:c},windowId:s}),(0,C.jsxs)(yp,{children:[(0,C.jsxs)(bp,{children:[(0,C.jsx)(wp,{view:i,windowId:s,isFetching:n,sideBarOpen:o}),(0,C.jsx)(Op,{windowId:s,position:"bottom"})]}),(0,C.jsxs)(xp,{children:[(0,C.jsx)(cf,{windowId:s,position:"right"}),(0,C.jsx)(cf,{windowId:s,position:"far-right"})]})]}),(0,C.jsx)(cf,{windowId:s,position:"far-bottom"}),(0,C.jsx)(qr.F,dp({},this.props))]})}}])&&ip(r.prototype,n),o&&ip(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Ap.contextType=aa.MosaicWindowContext,Ap.defaultProps={focusWindow:function(){},isFetching:!1,label:null,manifestError:null,maximized:!1,sideBarOpen:!1,view:void 0,windowDraggable:null,workspaceType:null};const Pp=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId;return{isFetching:(0,il.YR)(e,{windowId:r}).isFetching,label:(0,il.aY)(e,{windowId:r}),manifestError:(0,il.WA)(e,{windowId:r}),maximized:((0,_e.zk)(e,{windowId:r})||{}).maximized,sideBarOpen:((0,_e.zk)(e,{windowId:r})||{}).sideBarOpen,thumbnailNavigationPosition:(0,la.Ir)(e,{windowId:r}),view:(0,Uo.i9)(e,{windowId:r}),windowDraggable:(0,Uo.kt)(e,{windowId:r}),workspaceType:(0,de.I3)(e)}}),(function(e,t){var r=t.windowId;return{focusWindow:function(){return e(Ho.hN(r))}}})),(0,a.h)("Window"))(Ap);var jp=r(27380),Ep=r(71031),Ip=r(66833),Tp=r(44360),Cp=r.n(Tp),kp=r(15031),_p=r.n(kp);function Rp(e){var t=e.t,r=e.title,n=e.windowId;return(0,C.jsx)(nd,{windowId:"".concat(n,"-preview"),label:t("previewWindowTitle",{title:r}),ariaLabel:!1})}Rp.defaultProps={t:function(e){return e},title:""};const Np=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.windowId;return{title:(0,il.aY)(e,{windowId:r})}}),null),(0,a.h)("MosaicRenderPreview"))(Rp);var Dp=r(87104),Mp=r(2614),Lp=r(34542),zp=r.n(Lp);function Wp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bp(n.key),n)}}function Bp(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Fp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layout=t}var t,r,n;return t=e,r=[{key:"pathToCorner",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mp.Corner.TOP_RIGHT;return(0,Mp.getPathToCorner)(this.layout,e)}},{key:"pathToParent",value:function(e){return(0,Mp.getNodeAtPath)(this.layout,zp()(e))}},{key:"nodeAtPath",value:function(e){return(0,Mp.getNodeAtPath)(this.layout,e)}},{key:"addWindows",value:function(e){var t=this;e.forEach((function(r,n){var o,i,a=t.pathToCorner(),s=t.pathToParent(a),l=t.nodeAtPath(a),u=s?(0,Mp.getOtherDirection)(s.direction):"row";"row"===u?(o=l,i=e[n]):(o=e[n],i=l);var c={path:a,spec:{$set:{direction:u,first:o,second:i}}};t.layout=(0,Dp.updateTree)(t.layout,[c])}))}},{key:"removeWindows",value:function(e,t){var r=this,n=e.map((function(e){return(0,Dp.createRemoveUpdate)(r.layout,t[e])}));this.layout=(0,Dp.updateTree)(this.layout,n)}}],r&&Wp(t.prototype,r),n&&Wp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Hp={".mosaic":{height:"100%",width:"100%"},".mosaic, .mosaic > *":{boxSizing:"border-box"},".mosaic .mosaic-zero-state":{position:"absolute",top:6,right:6,bottom:6,left:6,width:"auto",height:"auto",zIndex:"1"},".mosaic-root":{position:"absolute",top:3,right:3,bottom:3,left:3},".mosaic-split":{position:"absolute",zIndex:"1",touchAction:"none"},".mosaic-split:hover":{background:"black"},".mosaic-split .mosaic-split-line":{position:"absolute"},".mosaic-split.-row":{marginLeft:-3,width:6,cursor:"ew-resize"},".mosaic-split.-row .mosaic-split-line":{top:"0",bottom:"0",left:3,right:3},".mosaic-split.-column":{marginTop:-3,height:6,cursor:"ns-resize"},".mosaic-split.-column .mosaic-split-line":{top:3,bottom:3,left:"0",right:"0"},".mosaic-tile":{position:"absolute",margin:3},".mosaic-tile > *":{height:"100%",width:"100%"},".mosaic-drop-target":{position:"relative"},".mosaic-drop-target.drop-target-hover .drop-target-container":{display:"block"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.left":{right:"calc(100% - 10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.right":{left:"calc(100% - 10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.bottom":{top:"calc(100% - 10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.top":{bottom:"calc(100% - 10px )"},".mosaic-drop-target .drop-target-container":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"none"},".mosaic-drop-target .drop-target-container.-dragging":{display:"block"},".mosaic-drop-target .drop-target-container .drop-target":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.2)",border:"2px solid black",opacity:"0",zIndex:"5"},".mosaic-drop-target .drop-target-container .drop-target.left":{right:"calc(100% - 30% )"},".mosaic-drop-target .drop-target-container .drop-target.right":{left:"calc(100% - 30% )"},".mosaic-drop-target .drop-target-container .drop-target.bottom":{top:"calc(100% - 30% )"},".mosaic-drop-target .drop-target-container .drop-target.top":{bottom:"calc(100% - 30% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover":{opacity:"1"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.left":{right:"calc(100% - 50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.right":{left:"calc(100% - 50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.bottom":{top:"calc(100% - 50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.top":{bottom:"calc(100% - 50% )"},".mosaic-window, .mosaic-preview":{position:"relative",display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxOrient:"vertical",webkitBoxDirection:"normal",flexDirection:"column",overflow:"hidden",boxShadow:"0 0 1px rgba(0, 0, 0, 0.2)"},".mosaic-window .mosaic-window-toolbar, .mosaic-preview .mosaic-window-toolbar":{zIndex:"4",display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxPack:"justify",justifyContent:"space-between",webkitBoxAlign:"center",alignItems:"center",flexShrink:"0",height:30,background:"white",boxShadow:"0 1px 1px rgba(0, 0, 0, 0.2)"},".mosaic-window .mosaic-window-toolbar.draggable, .mosaic-preview .mosaic-window-toolbar.draggable":{cursor:"move"},".mosaic-window .mosaic-window-title, .mosaic-preview .mosaic-window-title":{paddingLeft:15,webkitBoxFlex:"1",flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",minHeight:18},".mosaic-window .mosaic-window-controls, .mosaic-preview .mosaic-window-controls":{display:"flex",fallbacks:[{display:"-webkit-box"}],height:"100%"},".mosaic-window .mosaic-window-controls .separator, .mosaic-preview .mosaic-window-controls .separator":{height:20,borderLeft:"1px solid black",margin:"5px 4px"},".mosaic-window .mosaic-window-body, .mosaic-preview .mosaic-window-body":{position:"relative",webkitBoxFlex:"1",flex:"1",height:"0",background:"white",zIndex:"1",overflow:"hidden"},".mosaic-window .mosaic-window-additional-actions-bar, .mosaic-preview .mosaic-window-additional-actions-bar":{position:"absolute",top:30,right:"0",bottom:"initial",left:"0",height:"0",overflow:"hidden",background:"white",webkitBoxPack:"end",justifyContent:"flex-end",display:"flex",fallbacks:[{display:"-webkit-box"}],zIndex:"3"},".mosaic-window .mosaic-window-additional-actions-bar .bp3-button, .mosaic-preview .mosaic-window-additional-actions-bar .bp3-button":{margin:"0"},".mosaic-window .mosaic-window-additional-actions-bar .bp3-button:after, .mosaic-preview .mosaic-window-additional-actions-bar .bp3-button:after":{display:"none"},".mosaic-window .mosaic-window-body-overlay, .mosaic-preview .mosaic-window-body-overlay":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",opacity:"0",background:"white",display:"none",zIndex:"2"},".mosaic-window.additional-controls-open .mosaic-window-additional-actions-bar, .mosaic-preview.additional-controls-open .mosaic-window-additional-actions-bar":{height:30},".mosaic-window.additional-controls-open .mosaic-window-body-overlay, .mosaic-preview.additional-controls-open .mosaic-window-body-overlay":{display:"block"},".mosaic-window .mosaic-preview, .mosaic-preview .mosaic-preview":{height:"100%",width:"100%",position:"absolute",zIndex:"0",border:"1px solid black",maxHeight:400},".mosaic-window .mosaic-preview .mosaic-window-body, .mosaic-preview .mosaic-preview .mosaic-window-body":{display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxOrient:"vertical",webkitBoxDirection:"normal",flexDirection:"column",webkitBoxAlign:"center",alignItems:"center",webkitBoxPack:"center",justifyContent:"center"},".mosaic-window .mosaic-preview h4, .mosaic-preview .mosaic-preview h4":{marginBottom:10},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.close-button:before":{content:"'Close'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.split-button:before":{content:"'Split'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.replace-button:before":{content:"'Replace'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.expand-button:before":{content:"'Expand'"}};function Up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Up(Object(r),!0).forEach((function(t){Gp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gp(e,t,r){return(t=Kp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kp(n.key),n)}}function Kp(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function $p(e,t,r){return t=Xp(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yp(e)}(e,Zp()?Reflect.construct(t,r||[],Xp(e).constructor):t.apply(e,r))}function Zp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zp=function(){return!!e})()}function Xp(e){return Xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xp(e)}function Yp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qp(e,t){return Qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qp(e,t)}var Jp=(0,u.Ay)(Ip.r3)({"& .mosaic-preview":{boxShadow:"none"},"& .mosaic-tile":{boxShadow:"0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .2), 0 2px 1px -1px rgba(0, 0, 0, .2)"},"& .mosaic-window":{boxShadow:"none"},"& .mosaic-window-toolbar":{display:"none !important"}}),eh=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=$p(this,t,[e])).tileRenderer=r.tileRenderer.bind(Yp(r)),r.mosaicChange=r.mosaicChange.bind(Yp(r)),r.determineWorkspaceLayout=r.determineWorkspaceLayout.bind(Yp(r)),r.zeroStateView=(0,C.jsx)("div",{}),r.windowPaths={},r.toolbarControls=[],r.additionalControls=[],r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qp(e,t)}(t,e),r=t,o=[{key:"renderPreview",value:function(e){return(0,C.jsx)("div",{className:"mosaic-preview","aria-hidden":!0,children:(0,C.jsx)(Np,{windowId:e.windowId})})}}],(n=[{key:"componentDidMount",value:function(){var e=this.props.updateWorkspaceMosaicLayout,t=this.determineWorkspaceLayout();t&&e(t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.windowIds,n=t.layout,o=t.updateWorkspaceMosaicLayout,i=e.windowIds;if(r.every((function(e){return i.includes(e)}))){if(!i.every((function(e){return r.includes(e)}))){if(0===r.length)return void o(null);var a=Cp()(i,r),s=new Fp(n);s.removeWindows(a,this.windowPaths),o(s.layout)}}else{var l=this.determineWorkspaceLayout();_p()(l,n)||o(l)}}},{key:"bookkeepPath",value:function(e,t){this.windowPaths[e]=t}},{key:"determineWorkspaceLayout",value:function(){var e=this.props,t=e.windowIds,r=e.layout,n=(0,Ip.Lg)(r);if(!t.every((function(e){return n.includes(e)}))){if(n.length<2)return(0,Ip.fj)(t);var o=Cp()(t,n),i=new Fp(r);return i.addWindows(o),i.layout}return n.every((function(e){return t.includes(e)}))?r:(0,Ip.fj)(t)}},{key:"tileRenderer",value:function(e,r){var n=this.props,o=n.windowIds,i=n.workspaceId;return o.includes(e)?(this.bookkeepPath(e,r),(0,C.jsx)(Ip.XF,{toolbarControls:this.toolbarControls,additionalControls:this.additionalControls,path:r,windowId:e,renderPreview:t.renderPreview,children:(0,C.jsx)(Pp,{windowId:e},"".concat(e,"-").concat(i))})):null}},{key:"mosaicChange",value:function(e){(0,this.props.updateWorkspaceMosaicLayout)(e)}},{key:"render",value:function(){var e=this,t=this.props.layout;return(0,C.jsx)(Ep.M.Consumer,{children:function(r){return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(jp.A,{styles:Vp({},Hp)}),(0,C.jsx)(Jp,{dragAndDropManager:r.dragDropManager,renderTile:e.tileRenderer,initialValue:t||e.determineWorkspaceLayout(),onChange:e.mosaicChange,className:ge()("mirador-mosaic"),zeroStateView:e.zeroStateView})]})}})}}])&&qp(r.prototype,n),o&&qp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);eh.defaultProps={layout:void 0,windowIds:[]};var th={updateWorkspaceMosaicLayout:ke.ZV};const rh=(0,n.Zz)((0,o.Ng)((function(e){return{layout:(0,_e.K4)(e).layout,windowIds:(0,_e.K4)(e).windowIds,workspaceId:(0,_e.K4)(e).id}}),th),(0,a.h)("WorkspaceMosaic"))(eh);var nh=r(39084),oh=r(54224),ih=r(63859);function ah(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sh(n.key),n)}}function sh(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function lh(e,t,r){return t=ch(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,uh()?Reflect.construct(t,r||[],ch(e).constructor):t.apply(e,r))}function uh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uh=function(){return!!e})()}function ch(e){return ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ch(e)}function fh(e,t){return fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fh(e,t)}var dh=(0,u.Ay)(oh.p)((function(e){var t=e.focused,r=e.theme;return{zIndex:t?r.zIndex.modal-1:"auto"}})),ph=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),lh(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fh(e,t)}(t,e),r=t,n=[{key:"render",value:function(){var e=this.props,t=e.classes,r=e.companionWindowDimensions,n=e.focused,o=e.focusWindow,i=e.layout,a=e.workspace,s=e.updateElasticWindowLayout,l=a.width/2,u=a.height/2;return(0,C.jsx)(dh,{focused:n,className:n?t.focused:void 0,size:{height:i.height+r.height,width:i.width+r.width},position:{x:i.x+l,y:i.y+u},bounds:"parent",onDragStop:function(e,t){s(i.windowId,{x:t.x-l,y:t.y-u})},onDragStart:o,onResize:function(e,t,n,o,a){s(i.windowId,{height:Number.parseInt(n.style.height,10)-r.height,width:Number.parseInt(n.style.width,10)-r.width,x:a.x-l,y:a.y-u})},dragHandleClassName:(0,Ui.A)("window-top-bar"),cancel:".".concat((0,Ui.A)("window-menu-btn")),children:(0,C.jsx)(Pp,{windowId:i.windowId})},"".concat(i.windowId,"-").concat(a.id))}}],n&&ah(r.prototype,n),o&&ah(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);ph.defaultProps={classes:{},companionWindowDimensions:{height:0,width:0},focused:!1,focusWindow:function(){}};const hh=ph;const vh=(0,n.Zz)((0,o.Ng)((function(e,t){var r=t.windowId;return{companionWindowDimensions:(0,la.a4)(e,{windowId:r}),focused:(0,de.ar)(e,{windowId:r}),layout:(0,de.Q9)(e)[r],workspace:(0,_e.K4)(e)}}),(function(e,t){return{focusWindow:function(){return e(Ho.hN(t.windowId))},updateElasticWindowLayout:function(t,r){e(nh.D(t,r))}}})))(hh);function gh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mh(n.key),n)}}function mh(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function yh(e,t,r){return t=wh(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bh()?Reflect.construct(t,r||[],wh(e).constructor):t.apply(e,r))}function bh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bh=function(){return!!e})()}function wh(e){return wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wh(e)}function Oh(e,t){return Oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oh(e,t)}var xh=(0,u.Ay)("div",{name:"WorkspaceElastic",slot:"root"})({height:"100%",position:"relative",width:"100%"}),Sh=(0,u.Ay)(oh.p)({boxSizing:"border-box",margin:0,position:"absolute",transitionDuration:".7s","&.react-draggable-dragging":{transitionDuration:"unset"}}),Ah=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),yh(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oh(e,t)}(t,e),r=t,n=[{key:"render",value:function(){var e=this.props,t=e.workspace,r=e.elasticLayout,n=e.setWorkspaceViewportDimensions,o=e.setWorkspaceViewportPosition,i=t.viewportPosition,a=t.width/2,s=t.height/2;return(0,C.jsxs)(xh,{children:[(0,C.jsx)(ih.A,{onReflow:function(){},onResize:function(e){n(e)}}),(0,C.jsx)(Sh,{size:{height:t.height,width:t.width},position:{x:-1*i.x-a,y:-1*i.y-s},enableResizing:{bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},onDragStop:function(e,t){o({x:-1*t.x-a,y:-1*t.y-s})},cancel:".".concat((0,Ui.A)("window")),className:(0,Ui.A)("workspace"),disableDragging:!t.draggingEnabled,children:Object.keys(r).map((function(e){return(0,C.jsx)(vh,{windowId:e},e)}))})]})}}],n&&gh(r.prototype,n),o&&gh(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);const Ph=Ah;const jh=(0,n.Zz)((0,o.Ng)((function(e){return{elasticLayout:(0,de.Q9)(e),workspace:(0,_e.K4)(e)}}),(function(e,t){return{setWorkspaceViewportDimensions:function(t){e(ke.Pi(t))},setWorkspaceViewportPosition:function(t){e(ke.Dl(t))},updateElasticWindowLayout:function(t,r){e(nh.D(t,r))}}})),(0,a.h)("WorkspaceElastic"))(Ph);var Eh=r(47673),Ih=r(67083),Th=r(26836),Ch=r(36242),kh=r(59984);function _h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Nh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rh(e){return function(e){if(Array.isArray(e))return Dh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nh(e,t){if(e){if("string"==typeof e)return Dh(e,t);var r=Object.prototype.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)?Dh(e,t):void 0}}function Dh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Mh=function(e,t,r){var n=r.onDrop;if(e.urls&&e.urls.forEach((function(e){var o=new URL(e),i=o.searchParams.get("manifest"),a=o.searchParams.get("canvas");i&&n({canvasId:a,manifestId:i},r,t)})),e.files){var o,i=e.files.filter((function(e){return"application/json"===e.type})).map((function(e){return new Promise((function(o,i){var a=new FileReader;a.addEventListener("load",(function(){var e=a.result,i=(0,Th.A)();e&&n({manifestId:i,manifestJson:e},r,t),o()})),a.readAsText(e)}))})),a=e.files.filter((function(e){return e.type.startsWith("image/")}));if(a.length>0){var s=(0,Th.A)(),l=a.map((function(e){return function(e){return new Promise((function(t,r){var n=new FileReader;n.addEventListener("load",(function(){var r=new Image;r.addEventListener("load",(function(){t({height:r.height,name:e.name,type:e.type,url:n.result,width:r.width})})),r.src=n.result})),n.readAsDataURL(e)}))}(e)}));o=Promise.all(l).then((function(e){var o={"@context":"http://iiif.io/api/presentation/3/context.json",id:s,items:e.map((function(e,t){var r=e.name,n=e.type,o=e.width,i=e.height,a=e.url;return{height:i,id:"".concat(s,"/canvas/").concat(t),items:[{id:"".concat(s,"/canvas/").concat(t,"/1"),items:[{body:{format:n,id:a,type:"Image"},height:i,id:"".concat(s,"/canvas/").concat(t,"/1/image"),motivation:"painting",target:"".concat(s,"/canvas/").concat(t,"/1"),type:"Annotation",width:o}],type:"AnnotationPage"}],label:r,type:"Canvas",width:o}})),label:e[0].name,type:"Manifest"},i=(0,Th.A)();o&&n({manifestId:i,manifestJson:o},r,t)}))}return Promise.all([].concat(Rh(i),[o]))}},Lh=function(e){var t=e.children,r=e.onDrop,n=_h((0,kh.H)({accept:[Ch.URL,Ch.FILE],collect:function(e){return{canDrop:e.canDrop(),isOver:e.isOver()}},drop:function(t,n){r&&Mh(t,n,e)}}),2),o=n[0],i=o.canDrop,a=o.isOver,s=n[1],l=i&&a;return(0,C.jsxs)("div",{ref:s,onDrop:function(t){if(window.safari&&r&&t.dataTransfer&&t.dataTransfer.types.includes("Files")&&t.dataTransfer.types.includes("text/uri-list")){var n=t.dataTransfer.getData("text/uri-list");if(!n)return;Mh({urls:[n]},null,e)}},style:{height:"100%",width:"100%"},children:[t,(0,C.jsx)(I.A,{open:l,style:{zIndex:9999},children:(0,C.jsx)(Eh.A,{style:{color:Ih.A[400],fontSize:256}})})]})};function zh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wh(n.key),n)}}function Wh(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Bh(e,t,r){return t=Hh(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Uh(e)}(e,Fh()?Reflect.construct(t,r||[],Hh(e).constructor):t.apply(e,r))}function Fh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fh=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hh(e)}function Uh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vh(e,t){return Vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vh(e,t)}var Gh=(0,u.Ay)("div",{name:"Workspace",slot:"root"})((function(){return{height:"100%",position:"relative",width:"100%"}})),qh=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Bh(this,t,[e])).handleDrop=r.handleDrop.bind(Uh(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vh(e,t)}(t,e),r=t,(n=[{key:"handleDrop",value:function(e,t,r){var n=e.canvasId,o=e.manifestId,i=e.manifestJson,a=this.props,s=a.addWindow;a.allowNewWindows&&s({canvasId:n,manifest:i,manifestId:o})}},{key:"workspaceByType",value:function(){var e=this.props,t=e.workspaceId,r=e.workspaceType,n=e.windowIds;if(this.maximizedWindows())return this.maximizedWindows();if(0===n.length)return this.zeroWindows();switch(r){case"elastic":return(0,C.jsx)(jh,{});case"mosaic":return(0,C.jsx)(rh,{});default:return n.map((function(e){return(0,C.jsx)(Pp,{windowId:e},"".concat(e,"-").concat(t))}))}}},{key:"zeroWindows",value:function(){var e=this.props.t;return(0,C.jsx)(Gh,{children:(0,C.jsx)(oa.Ay,{alignItems:"center",container:!0,style:{height:"100%"},children:(0,C.jsx)(oa.Ay,{xs:12,item:!0,children:(0,C.jsx)(G.A,{variant:"h1",component:"div",align:"center",children:e("welcome")})})})})}},{key:"maximizedWindows",value:function(){var e=this.props,t=e.maximizedWindowIds,r=e.workspaceId;return t.length>0&&t.map((function(e){return(0,C.jsx)(Pp,{windowId:e,className:ge()((0,Ui.A)("workspace-maximized-window"))},"".concat(e,"-").concat(r))}))}},{key:"render",value:function(){var e=this.props.t;return(0,C.jsx)(Lh,{onDrop:this.handleDrop,children:(0,C.jsxs)(Gh,{ownerState:this.props,className:ge()((0,Ui.A)("workspace-viewport")),children:[(0,C.jsx)(G.A,{style:ia.A,component:"h1",children:e("miradorViewer")}),this.workspaceByType()]})})}}])&&zh(r.prototype,n),o&&zh(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);qh.defaultProps={addWindow:function(){},allowNewWindows:!0,maximizedWindowIds:[],windowIds:[]};var Kh={addWindow:Ho._U};const $h=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{allowNewWindows:(0,yt.zj)(e).workspace.allowNewWindows,maximizedWindowIds:(0,Uo.Eu)(e),windowIds:(0,_e.rG)(e),workspaceId:(0,_e.K4)(e).id,workspaceType:(0,de.I3)(e)}}),Kh),(0,a.h)("Workspace"))(qh);var Zh=r(68574),Xh=r(21812);function Yh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qh(n.key),n)}}function Qh(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Jh(e,t,r){return t=tv(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rv(e)}(e,ev()?Reflect.construct(t,r||[],tv(e).constructor):t.apply(e,r))}function ev(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ev=function(){return!!e})()}function tv(e){return tv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tv(e)}function rv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nv(e,t){return nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nv(e,t)}var ov=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Jh(this,t,[e])).state={formValue:""},r.formSubmit=r.formSubmit.bind(rv(r)),r.handleCancel=r.handleCancel.bind(rv(r)),r.handleInputChange=r.handleInputChange.bind(rv(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nv(e,t)}(t,e),r=t,(n=[{key:"handleCancel",value:function(){(0,this.props.onCancel)(),this.setState({formValue:""})}},{key:"handleInputChange",value:function(e){e.preventDefault(),this.setState({formValue:e.target.value})}},{key:"formSubmit",value:function(e){var t=this.props,r=t.addResource,n=t.onSubmit,o=this.state.formValue;e.preventDefault(),n(),r(o),this.setState({formValue:""})}},{key:"render",value:function(){var e=this.state.formValue,t=this.props,r=t.addResourcesOpen,n=t.onCancel,o=t.t;return r?(0,C.jsx)("form",{onSubmit:this.formSubmit,children:(0,C.jsxs)(oa.Ay,{container:!0,spacing:2,children:[(0,C.jsx)(oa.Ay,{item:!0,xs:12,sm:8,md:9,children:(0,C.jsx)(lo.A,{autoFocus:!0,fullWidth:!0,value:e,id:"manifestURL",type:"text",onChange:this.handleInputChange,variant:"filled",label:o("addManifestUrl"),helperText:o("addManifestUrlHelp"),InputLabelProps:{shrink:!0},InputProps:{style:{typography:"body1"}}})}),(0,C.jsxs)(oa.Ay,{item:!0,xs:12,sm:4,md:3,sx:{textAlign:{sm:"inherit",xs:"right"}},children:[n&&(0,C.jsx)(ne.A,{onClick:this.handleCancel,children:o("cancel")}),(0,C.jsx)(ne.A,{id:"fetchBtn",type:"submit",variant:"contained",color:"primary",children:o("fetchManifest")})]})]})}):null}}])&&Yh(r.prototype,n),o&&Yh(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);ov.defaultProps={onCancel:null,onSubmit:function(){},t:function(e){return e}};var iv={addResource:Zh.M};const av=(0,n.Zz)((0,i.CI)(),(0,o.Ng)(null,iv),(0,a.h)("ManifestForm"))(ov);var sv=r(46316),lv=r(64663),uv=r(23420);function cv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fv(n.key),n)}}function fv(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function dv(e,t,r){return t=hv(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pv()?Reflect.construct(t,r||[],hv(e).constructor):t.apply(e,r))}function pv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pv=function(){return!!e})()}function hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hv(e)}function vv(e,t){return vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vv(e,t)}var gv=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dv(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vv(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestId,r=e.onDismissClick,n=e.onTryAgainClick,o=e.t;return(0,C.jsxs)(oa.Ay,{container:!0,children:[(0,C.jsx)(oa.Ay,{container:!0,children:(0,C.jsxs)(oa.Ay,{container:!0,item:!0,xs:12,sm:6,children:[(0,C.jsx)(oa.Ay,{item:!0,xs:4,sm:3,children:(0,C.jsx)(oa.Ay,{container:!0,justifyContent:"center",children:(0,C.jsx)(sl.A,{sx:{color:"error.main",height:"2rem",width:"2rem"}})})}),(0,C.jsxs)(oa.Ay,{item:!0,xs:8,sm:9,children:[(0,C.jsx)(G.A,{children:o("manifestError")}),(0,C.jsx)(G.A,{sx:{wordBreak:"break-all"},children:t})]})]})}),(0,C.jsx)(oa.Ay,{container:!0,children:(0,C.jsx)(oa.Ay,{container:!0,item:!0,xs:12,sm:6,justifyContent:"flex-end",children:(0,C.jsxs)(oa.Ay,{item:!0,children:[(0,C.jsx)(ne.A,{onClick:function(){r(t)},children:o("dismiss")}),(0,C.jsx)(ne.A,{onClick:function(){n(t)},children:o("tryAgain")})]})})})]})}}])&&cv(r.prototype,n),o&&cv(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component),mv={onDismissClick:Zh.l,onTryAgainClick:sv.Cj};const yv=(0,n.Zz)((0,i.CI)(),(0,o.Ng)(null,mv),(0,a.h)("ManifestListItemError"))(gv);function bv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pv(n.key),n)}}function wv(e,t,r){return t=xv(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Sv(e)}(e,Ov()?Reflect.construct(t,r||[],xv(e).constructor):t.apply(e,r))}function Ov(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ov=function(){return!!e})()}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xv(e)}function Sv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Av(e,t){return Av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Av(e,t)}function Pv(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var jv=(0,u.Ay)(lv.Ay,{name:"ManifestListItem",slot:"root"})((function(e){var t,r,n,o=e.ownerState,i=e.theme;return t={"&:hover,&:focus-within":{backgroundColor:i.palette.action.hover,borderLeftColor:null!=o&&o.active?i.palette.primary.main:i.palette.action.hover},borderLeft:"4px solid",borderLeftColor:null!=o&&o.active?i.palette.primary.main:"transparent",paddingLeft:i.spacing(2),paddingRight:i.spacing(2)},r=i.breakpoints.up("sm"),n={paddingLeft:i.spacing(3),paddingRight:i.spacing(3)},(r=Pv(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t})),Ev=(0,u.Ay)(uv.Img,{name:"ManifestListItem",slot:"thumbnail"})((function(e){e.theme;return{maxWidth:"100%",objectFit:"contain"}})),Iv=(0,u.Ay)(uv.Img,{name:"ManifestListItem",slot:"logo"})((function(e){e.theme;return{height:"2.5rem",maxWidth:"100%",objectFit:"contain",paddingRight:1}})),Tv=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=wv(this,t,[e])).handleOpenButtonClick=r.handleOpenButtonClick.bind(Sv(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Av(e,t)}(t,e),r=t,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.fetchManifest,r=e.manifestId,n=e.ready,o=e.isFetching,i=e.error,a=e.provider;n||i||o||"file"===a||t(r)}},{key:"handleOpenButtonClick",value:function(){var e=this.props,t=e.addWindow,r=e.handleClose;t({manifestId:e.manifestId}),r()}},{key:"render",value:function(){var e=this.props,t=e.active,r=e.buttonRef,n=e.manifestId,o=e.ready,i=e.title,a=e.thumbnail,s=e.manifestLogo,l=e.size,u=e.provider,c=e.t,f=e.error,d=e.isCollection,p=e.isMultipart,h=(0,C.jsxs)(oa.Ay,{container:!0,className:(0,Ui.A)("manifest-list-item"),spacing:2,children:[(0,C.jsx)(oa.Ay,{item:!0,xs:3,sm:2,children:(0,C.jsx)(al.A,{sx:{bgcolor:"grey[300]"},variant:"rectangular",height:80,width:120})}),(0,C.jsx)(oa.Ay,{item:!0,xs:9,sm:6,children:(0,C.jsx)(al.A,{sx:{bgcolor:"grey[300]"},variant:"text"})}),(0,C.jsxs)(oa.Ay,{item:!0,xs:8,sm:2,children:[(0,C.jsx)(al.A,{sx:{bgcolor:"grey[300]"},variant:"text"}),(0,C.jsx)(al.A,{sx:{bgcolor:"grey[300]"},variant:"text"})]}),(0,C.jsx)(oa.Ay,{item:!0,xs:4,sm:2,children:(0,C.jsx)(al.A,{sx:{bgcolor:"grey[300]"},variant:"rectangular",height:60,width:60})})]});return f?(0,C.jsx)(jv,{ownerState:this.props,divider:!0,selected:t,className:t?"active":"","data-manifestid":n,children:(0,C.jsx)(yv,{manifestId:n})}):(0,C.jsx)(jv,{divider:!0,selected:t,className:t?"active":"","data-manifestid":n,"data-active":t,children:o?(0,C.jsxs)(oa.Ay,{container:!0,className:(0,Ui.A)("manifest-list-item"),spacing:2,children:[(0,C.jsx)(oa.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsx)(Re.A,{ref:r,className:(0,Ui.A)("manifest-list-item-title"),style:{width:"100%"},onClick:this.handleOpenButtonClick,children:(0,C.jsxs)(oa.Ay,{container:!0,spacing:2,sx:{textAlign:"left",textTransform:"initial"},component:"span",children:[(0,C.jsx)(oa.Ay,{item:!0,xs:4,sm:3,component:"span",children:a?(0,C.jsx)(Ev,{className:[(0,Ui.A)("manifest-list-item-thumb")],src:[a],alt:"",height:"80",unloader:(0,C.jsx)(al.A,{variant:"rectangular",animation:!1,sx:{bgcolor:"grey[300]"},height:80,width:120})}):(0,C.jsx)(al.A,{sx:{bgcolor:"grey[300]"},variant:"rectangular",height:80,width:120})}),(0,C.jsxs)(oa.Ay,{item:!0,xs:8,sm:9,component:"span",children:[d&&(0,C.jsx)(G.A,{component:"div",variant:"overline",children:c(p?"multipartCollection":"collection")}),(0,C.jsx)(G.A,{component:"span",variant:"h6",children:i||n})]})]})})}),(0,C.jsxs)(oa.Ay,{item:!0,xs:8,sm:4,children:[(0,C.jsx)(G.A,{className:(0,Ui.A)("manifest-list-item-provider"),children:u}),(0,C.jsx)(G.A,{children:c("numItems",{count:l,number:l})})]}),(0,C.jsx)(oa.Ay,{item:!0,xs:4,sm:2,children:s&&(0,C.jsx)(Iv,{src:[s],alt:"",role:"presentation",unloader:(0,C.jsx)(al.A,{variant:"rectangular",animation:!1,sx:{bgcolor:"grey[300]"},height:60,width:60})})})]}):h})}}])&&bv(r.prototype,n),o&&bv(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Tv.defaultProps={active:!1,buttonRef:void 0,error:null,handleClose:function(){},isCollection:!1,isFetching:!1,isMultipart:!1,manifestLogo:null,provider:null,ready:!1,size:0,t:function(e){return e},thumbnail:null,title:null};var Cv={addWindow:Ho._U,fetchManifest:sv.Cj},kv=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e,t){var r=t.manifestId,n=t.provider,o=(0,_e.c2)(e,{manifestId:r})||{},i=(0,il.SG)(e,{manifestId:r}),a=(i||{isCollection:function(){return!1}}).isCollection(),s=a?i.getTotalItems():(0,Vl.P)(e,{manifestId:r}).length;return{active:(0,_e.p3)(e).includes(r),error:o.error,isCollection:a,isFetching:o.isFetching,isMultipart:a&&(0,ff.pw)(e,{manifestId:r}).includes("multi-part"),manifestLogo:(0,il.nB)(e,{manifestId:r}),provider:n||(0,il.is)(e,{manifestId:r}),ready:!!o.json,size:s,thumbnail:(0,il.yj)(e,{manifestId:r}),title:(0,il.aY)(e,{manifestId:r})}}),Cv),(0,a.h)("ManifestListItem"));const _v=kv(Tv);function Rv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rv(Object(r),!0).forEach((function(t){Dv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dv(e,t,r){return(t=Lv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lv(n.key),n)}}function Lv(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function zv(e,t,r){return t=Bv(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fv(e)}(e,Wv()?Reflect.construct(t,r||[],Bv(e).constructor):t.apply(e,r))}function Wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wv=function(){return!!e})()}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bv(e)}function Fv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hv(e,t){return Hv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hv(e,t)}var Uv=(0,u.Ay)("div")((function(){return{boxSizing:"border-box",height:"100%",overflowX:"hidden",overflowY:"auto"}})),Vv=(0,u.Ay)(st.A)((function(){return{marginLeft:-12,marginRight:20}})),Gv=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=zv(this,t,[e])).state={addResourcesOpen:!1},r.ref=(0,s.createRef)(),r.onSubmit=r.onSubmit.bind(Fv(r)),r.setAddResourcesVisibility=r.setAddResourcesVisibility.bind(Fv(r)),r.handleDrop=r.handleDrop.bind(Fv(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hv(e,t)}(t,e),r=t,n=[{key:"handleDrop",value:function(e,t,r){var n=e.manifestId,o=e.manifestJson,i=this.props.addResource;o?i(n,o,{provider:"file"}):i(n),this.scrollToTop()}},{key:"onSubmit",value:function(){this.setAddResourcesVisibility(!1),this.scrollToTop()}},{key:"setAddResourcesVisibility",value:function(e){this.setState({addResourcesOpen:e})}},{key:"scrollToTop",value:function(){this.ref.current&&this.ref.current.scrollTo({behavior:"smooth",left:0,top:0})}},{key:"render",value:function(){var e=this,t=this.props,r=t.catalog,n=t.setWorkspaceAddVisibility,o=t.t,i=this.state.addResourcesOpen,a=r.map((function(e,t){return(0,s.createElement)(_v,Nv(Nv({},0===t&&{buttonRef:function(e){return e&&e.focus()}}),{},{key:e.manifestId,manifestId:e.manifestId,provider:e.provider,handleClose:function(){return n(!1)}}))}));return(0,C.jsx)(Lh,{onDrop:this.handleDrop,children:(0,C.jsxs)(Uv,{ref:this.ref,className:ge()((0,Ui.A)("workspace-add")),children:[r.length<1?(0,C.jsx)(oa.Ay,{alignItems:"center",container:!0,style:{height:"100%"},children:(0,C.jsx)(oa.Ay,{xs:12,item:!0,children:(0,C.jsx)(G.A,{variant:"h1",component:"div",align:"center",children:o("emptyResourceList")})})}):(0,C.jsxs)(O.A,{sx:{margin:2},children:[(0,C.jsx)(G.A,{style:ia.A,component:"h1",children:o("miradorResources")}),(0,C.jsx)(qr.F,Nv({},this.props)),(0,C.jsx)(Xh.A,{disablePadding:!0,children:a})]}),(0,C.jsxs)(We,{variant:"extended",disabled:i,sx:function(e){return{bottom:e.spacing(2),position:"absolute",right:e.spacing(2)}},className:ge()((0,Ui.A)("add-resource-button")),color:"primary",onClick:function(){return e.setAddResourcesVisibility(!0)},children:[(0,C.jsx)(Fe.A,{}),o("addResource")]}),(0,C.jsx)(lu,{sx:function(e){return Nv({".MuiDrawer-paper":Dv({borderTop:"0",left:"0"},e.breakpoints.up("sm"),{left:"65px"})},!i&&{display:"none"})},variant:"persistent",anchor:"bottom",open:i,ModalProps:{disablePortal:!0,hideBackdrop:!0,style:{position:"absolute"}},children:(0,C.jsxs)(O.A,{sx:{left:"0",marginTop:6,paddingBottom:2,paddingLeft:{sm:3,xs:2},paddingRight:{sm:3,xs:2},paddingTop:2,right:"0"},children:[(0,C.jsx)(Oe,{position:"absolute",color:"primary",enableColorOnDark:!0,onClick:function(){return e.setAddResourcesVisibility(!1)},children:(0,C.jsxs)(xe.A,{variant:"dense",children:[(0,C.jsx)(Vv,{"aria-label":o("closeAddResourceForm"),color:"inherit",children:(0,C.jsx)(Dt.A,{})}),(0,C.jsx)(G.A,{variant:"h2",noWrap:!0,color:"inherit",sx:{flexGrow:1},children:o("addResource")})]})}),(0,C.jsx)(av,{addResourcesOpen:i,onSubmit:this.onSubmit,onCancel:function(){return e.setAddResourcesVisibility(!1)}})]})})]})})}}],n&&Mv(r.prototype,n),o&&Mv(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Gv.defaultProps={addResource:function(){},catalog:[],t:function(e){return e}};var qv={addResource:Zh.M,setWorkspaceAddVisibility:ke.DW};const Kv=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{catalog:(0,_e.O5)(e)}}),qv),(0,a.h)("WorkspaceAdd"))(Gv);function $v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(r),!0).forEach((function(t){Xv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xv(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yv=function(e){return(0,C.jsx)("div",{className:(0,Ui.A)("background-plugin-area"),style:{display:"none"},children:(0,C.jsx)(qr.F,Zv({},e))})};Yv.defaultProps={PluginComponents:[]};const Qv=(0,a.h)("BackgroundPluginArea")(Yv);function Jv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function eg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jv(Object(r),!0).forEach((function(t){ag(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sg(n.key),n)}}function rg(e,t,r){return t=og(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ng()?Reflect.construct(t,r||[],og(e).constructor):t.apply(e,r))}function ng(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ng=function(){return!!e})()}function og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},og(e)}function ig(e,t){return ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ig(e,t)}function ag(e,t,r){return(t=sg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sg(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var lg=(0,u.Ay)("div",{name:"WorkspaceArea",slot:"root"})((function(e){var t=e.theme;return ag({background:("light"===t.palette.mode?c.e$:c.a)(t.palette.shades.light,.1),bottom:0,display:"flex",flexDirection:"column",left:0,position:"absolute",right:0,top:0},t.breakpoints.up("sm"),{flexDirection:"row"})})),ug=(0,u.Ay)("main",{name:"WorkspaceArea",slot:"viewer"})((function(){return{flexGrow:1,position:"relative"}})),cg=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rg(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ig(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.areaRef,r=e.controlPanelVariant,n=e.isWorkspaceAddVisible,o=e.isWorkspaceControlPanelVisible,i=e.lang,a=e.t;return(0,C.jsxs)(lg,{ownerState:this.props,children:[o&&(0,C.jsx)(na,{variant:r}),(0,C.jsxs)(ug,eg(eg({className:(0,Ui.A)("viewer"),lang:i,"aria-label":a("workspace")},t?{ref:t}:{}),{},{children:[n?(0,C.jsx)(Kv,{}):(0,C.jsx)($h,{}),(0,C.jsx)(he,{}),(0,C.jsx)(Qv,{})]}))]})}}])&&tg(r.prototype,n),o&&tg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);cg.defaultProps={areaRef:null,controlPanelVariant:void 0,isWorkspaceAddVisible:!1,lang:void 0};const fg=(0,n.Zz)((0,i.CI)(),(0,o.Ng)((function(e){return{controlPanelVariant:(0,_e.K4)(e).isWorkspaceAddVisible||(0,_e.rG)(e).length>0?void 0:"wide",isWorkspaceAddVisible:(0,_e.K4)(e).isWorkspaceAddVisible,isWorkspaceControlPanelVisible:(0,yt.zj)(e).workspaceControlPanel.enabled,lang:(0,yt.zj)(e).language}})),(0,a.h)("WorkspaceArea"))(cg)},16840:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(78281).createContext)()},40826:(e,t,r)=>{"use strict";r.d(t,{A:()=>d,D:()=>f});var n=r(78281),o=r(28477);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=(0,n.createContext)({current:document.body}),f=function(e){function t(t,r){var i=(0,n.useContext)(c),s=l((0,n.useState)(),2),u=s[0],f=s[1];(0,n.useEffect)((function(){f(i)}),[i]);var d=a(a({},t),r?{ref:r}:{});return(0,o.jsx)(e,a({container:u},d))}var r=(0,n.forwardRef)(t);return r.displayName="WithWorkspaceContext(".concat(e.displayName||e.name||"Component",")"),r};const d=c},95606:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(78281).createContext)()},38492:(e,t,r)=>{"use strict";r.d(t,{h:()=>p});var n=r(78281),o=r(56456),i=r.n(o),a=r(47114),s=r.n(a),l=r(95606),u=r(28477);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=i()((function(e,t){function r(r,o){var i=(0,n.useContext)(l.A),a=f(f({},r),o?{ref:o}:{}),c=(i||{})[e];if(s()(c)||s()(c.wrap)&&s()(c.add))return(0,u.jsx)(t,f({},a));var d=(c.add||[]).map((function(e){return e.component})),p=(0,u.jsx)(t,f(f({},a),{},{PluginComponents:d}));if(s()(c.wrap))return p;return c.wrap.slice().reverse().reduce((function(e,r){var n=r.component;return(0,u.jsx)(n,f(f({targetProps:a},a),{},{PluginComponents:d,TargetComponent:t,children:e}))}),(0,u.jsx)(t,f({},a)))}var o=(0,n.forwardRef)(r);return o.displayName="WithPlugins(".concat(e,")"),o}))},75232:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(94881),o=r.n(n),i=r(36286),a=r.n(i),s=r(26836);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=t}var t,r,n;return t=e,(r=[{key:"isOnlyTag",value:function(){return 1===this.motivations.length&&"oa:tagging"===this.motivations[0]}},{key:"id",get:function(){return this._id=this._id||this.resource["@id"]||this.resources[0]&&this.resources[0]["@id"]||(0,s.A)(),this._id}},{key:"targetId",get:function(){var e=this.on[0];switch(typeof e){case"string":return e.replace(/#?xywh=(.*)$/,"");case"object":return e.full.replace(/#?xywh=(.*)$/,"");default:return null}}},{key:"motivations",get:function(){return o()(a()(new Array(this.resource.motivation)))}},{key:"resources",get:function(){return o()(a()(new Array(this.resource.resource)))}},{key:"on",get:function(){return o()(a()(new Array(this.resource.on)))}},{key:"tags",get:function(){return this.isOnlyTag()?this.resources.map((function(e){return e.chars})):this.resources.filter((function(e){return"oa:Tag"===e["@type"]})).map((function(e){return e.chars}))}},{key:"chars",get:function(){return this.resources.filter((function(e){return"oa:Tag"!==e["@type"]})).map((function(e){return e.chars})).join(" ")}},{key:"selector",get:function(){var e=this.on[0];switch(typeof e){case"string":return e;case"object":return"oa:Choice"===e.selector["@type"]?e.selector.default:e.selector;default:return null}}},{key:"svgSelector",get:function(){var e=this.on[0];switch(typeof e){case"string":default:return null;case"object":return e.selector&&e.selector.item&&"oa:SvgSelector"===e.selector.item["@type"]?e.selector.item:null}}},{key:"fragmentSelector",get:function(){var e,t=this.selector;switch(typeof t){case"string":e=t.match(/xywh=(.*)$/);break;case"object":e=t.value.match(/xywh=(.*)$/);break;default:return null}return e&&e[1].split(",").map((function(e){return parseInt(e,10)}))}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var p=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.json=t,this.target=r}var t,r,n;return t=e,(r=[{key:"id",get:function(){return this.json["@id"]}},{key:"present",value:function(){return this.resources&&this.resources.length>0}},{key:"resources",get:function(){var e=this;return this._resources=this._resources||(e.json&&e.json.resources?o()([e.json.resources]).map((function(e){return new c(e)})):[]),this._resources}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},70191:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(2913),o=r.n(n),i=r(11879);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.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)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var v=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left-to-right";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvases=t.map((function(e){return new i.A(e)})),this.layers=r,this.viewingDirection=n,this._canvasDimensions=null}var t,r,n;return t=e,(r=[{key:"canvasIds",get:function(){return this.canvases.map((function(e){return e.id}))}},{key:"canvasDimensions",get:function(){if(this._canvasDimensions)return this._canvasDimensions;var e=c(this.canvasDirection,2),t=e[0],r=e[1],n=0===r?Math.min.apply(Math,u(this.canvases.map((function(e){return e.getHeight()})))):Math.min.apply(Math,u(this.canvases.map((function(e){return e.getWidth()})))),o=0,i=0,a=this.canvases.reduce((function(e,a){var s=0,l=0;return isNaN(a.aspectRatio)||(0===r?(s=n,l=Math.floor(n*a.aspectRatio)):(l=n,s=Math.floor(n*(1/a.aspectRatio)))),e.push({canvas:a,height:s,width:l,x:o,y:i}),o+=t*l,i+=r*s,e}),[]),l=0===r?n:Math.abs(i),f=0===t?n:Math.abs(o);return this._canvasDimensions=a.reduce((function(e,n){return e.push(s(s({},n),{},{x:-1===t?n.x+f-n.width:n.x,y:-1===r?n.y+l-n.height:n.y})),e}),[]),this._canvasDimensions}},{key:"contentResourceToWorldCoordinates",value:function(e){var t=this.canvases.findIndex((function(t){return t.imageResources.find((function(t){return t.id===e.id}))})),r=this.canvases[t];if(!r)return[];var n=c(this.canvasToWorldCoordinates(r.id),4),o=n[0],i=n[1],a=n[2],s=n[3],l=r.onFragment(e.id);return l?[o+l[0],i+l[1],l[2],l[3]]:[o,i,a,s]}},{key:"canvasToWorldCoordinates",value:function(e){var t=this.canvasDimensions.find((function(t){return t.canvas.id===e}));return[t.x,t.y,t.width,t.height]}},{key:"canvasDirection",get:function(){switch(this.viewingDirection){case"left-to-right":default:return[1,0];case"right-to-left":return[-1,0];case"top-to-bottom":return[0,1];case"bottom-to-top":return[0,-1]}}},{key:"contentResource",value:function(e){var t=this.canvases.find((function(t){return t.imageServiceIds.some((function(t){return t&&e&&o()(t,{stripAuthentication:!1})===o()(e,{stripAuthentication:!1})}))}));if(t)return t.imageResources.find((function(t){return o()(t.getServices()[0].id,{stripAuthentication:!1})===o()(e,{stripAuthentication:!1})}))}},{key:"getLayerMetadata",value:function(e){if(this.layers){var t=this.canvases.find((function(t){return t.imageResources.find((function(t){return t.id===e.id}))}));if(t){var r=t.imageResources.findIndex((function(t){return t.id===e.id})),n=this.layers[t.canvas.id],o=n&&n[e.id];return s({index:r,opacity:1,total:t.imageResources.length,visibility:!0},o)}}}},{key:"layerOpacityOfImageResource",value:function(e){var t=this.getLayerMetadata(e);return t?t.visibility?t.opacity:0:1}},{key:"layerIndexOfImageResource",value:function(e){var t=this.getLayerMetadata(e);if(t)return t.total-t.index-1}},{key:"offsetByCanvas",value:function(e){var t=this.canvasToWorldCoordinates(e);return{x:t[0],y:t[1]}}},{key:"worldBounds",value:function(){return[0,0,Math.max.apply(Math,[0].concat(u(this.canvasDimensions.map((function(e){return e.x+e.width}))))),Math.max.apply(Math,[0].concat(u(this.canvasDimensions.map((function(e){return e.y+e.height})))))]}},{key:"canvasAtPoint",value:function(e){var t=this.canvasDimensions.find((function(t){return t.x<=e.x&&e.x<=t.x+t.width&&t.y<=e.y&&e.y<=t.y+t.height}));return t&&t.canvas}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},37465:(e,t,r)=>{"use strict";r.d(t,{A:()=>sm});var n,o=r(90757),i=r(58301),a=r(19857),s=r(38492),l=r(79189),u=r(78281),c=r(15312),f=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","doNotBailOutOnEmptyChildren","nonce","onResize","style","tagName"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function m(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function y(e,t,r){return t=w(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,r||[],w(e).constructor):t.apply(e,r))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}n="undefined"!=typeof window?window:"undefined"!=typeof self?self:r.g;var A=null,P=null,j=n.clearTimeout,E=n.setTimeout,I=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame,T=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame;function C(e){var t,r,o,i,a,s,l,u="undefined"!=typeof document&&document.attachEvent;if(!u){s=function(e){var t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,o=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=r.offsetWidth+1+"px",o.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&A(this.__resizeRAF__),this.__resizeRAF__=P((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))}};var c=!1,f="";o="animationstart";var d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var v=0;v<d.length;v++)if(void 0!==h.style[d[v]+"AnimationName"]){f="-"+d[v].toLowerCase()+"-",o=p[v],c=!0;break}t="@"+f+"keyframes "+(r="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",i=f+"animation: 1ms "+r+"; "}return{addResizeListener:function(a,c){if(u)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){var f=a.ownerDocument,d=n.getComputedStyle(a);d&&"static"===d.position&&(a.style.position="relative"),function(r){if(!r.getElementById("detectElementResize")){var n=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=r.head||r.getElementsByTagName("head")[0],a=r.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(r.createTextNode(n)),o.appendChild(a)}}(f),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=f.createElement("div")).className="resize-triggers";var p=f.createElement("div");p.className="expand-trigger",p.appendChild(f.createElement("div"));var h=f.createElement("div");h.className="contract-trigger",a.__resizeTriggers__.appendChild(p),a.__resizeTriggers__.appendChild(h),a.appendChild(a.__resizeTriggers__),s(a),a.addEventListener("scroll",l,!0),o&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===r&&s(a)},a.__resizeTriggers__.addEventListener(o,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(u)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(o,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==I||null==T?(A=j,P=function(e){return E(e,20)}):(A=function(e){var t=x(e,2),r=t[0],n=t[1];I(r),j(n)},P=function(e){var t=T((function(){j(r),e()})),r=E((function(){I(t),e()}),20);return[t,r]});var k=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=y(this,t,[].concat(n))).state={height:e.props.defaultHeight||0,scaledHeight:e.props.defaultHeight||0,scaledWidth:e.props.defaultWidth||0,width:e.props.defaultWidth||0},e._autoSizer=null,e._detectElementResize=null,e._parentNode=null,e._resizeObserver=null,e._timeoutId=null,e._onResize=function(){e._timeoutId=null;var t=e.props,r=t.disableHeight,n=t.disableWidth,o=t.onResize;if(e._parentNode){var i=window.getComputedStyle(e._parentNode)||{},a=parseFloat(i.paddingLeft||"0"),s=parseFloat(i.paddingRight||"0"),l=parseFloat(i.paddingTop||"0"),u=parseFloat(i.paddingBottom||"0"),c=e._parentNode.getBoundingClientRect(),f=c.height-l-u,d=c.width-a-s,p=e._parentNode.offsetHeight-l-u,h=e._parentNode.offsetWidth-a-s;(r||e.state.height===p&&e.state.scaledHeight===f)&&(n||e.state.width===h&&e.state.scaledWidth===d)||(e.setState({height:p,width:h,scaledHeight:f,scaledWidth:d}),"function"==typeof o&&o({height:p,scaledHeight:f,scaledWidth:d,width:h}))}},e._setRef=function(t){e._autoSizer=t},e}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),r=t,n=[{key:"componentDidMount",value:function(){var e=this,t=this.props.nonce,r=this._autoSizer?this._autoSizer.parentNode:null;if(null!=r&&r.ownerDocument&&r.ownerDocument.defaultView&&r instanceof r.ownerDocument.defaultView.HTMLElement){this._parentNode=r;var n=r.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((function(){e._timeoutId=setTimeout(e._onResize,0)})),this._resizeObserver.observe(r)):(this._detectElementResize=C(t),this._detectElementResize.addResizeListener(r,this._onResize)),this._onResize()}}},{key:"componentWillUnmount",value:function(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.defaultHeight,e.defaultWidth,e.disableHeight),n=void 0!==r&&r,o=e.disableWidth,i=void 0!==o&&o,a=e.doNotBailOutOnEmptyChildren,s=void 0!==a&&a,l=(e.nonce,e.onResize,e.style),c=void 0===l?{}:l,d=e.tagName,h=void 0===d?"div":d,g=v(e,f),m=this.state,y=m.height,b=m.scaledHeight,w=m.scaledWidth,O=m.width,x={overflow:"visible"},S={},A=!1;return n||(0===y&&(A=!0),x.height=0,S.height=y,S.scaledHeight=b),i||(0===O&&(A=!0),x.width=0,S.width=O,S.scaledWidth=w),s&&(A=!1),(0,u.createElement)(h,p({ref:this._setRef,style:p(p({},x),c)},g),!A&&t(S))}}],n&&g(r.prototype,n),o&&g(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);var _=r(63063),R=r(87354),N=r(37227),D=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function M(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||D(n)&&D(o)))return!1;var n,o;return!0}const L=function(e,t){var r;void 0===t&&(t=M);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}};var z="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function W(e){cancelAnimationFrame(e.id)}function B(e,t){var r=z();var n={id:requestAnimationFrame((function o(){z()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var F=-1;function H(e){if(void 0===e&&(e=!1),-1===F||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),F=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return F}var U=null;function V(e){if(void 0===e&&(e=!1),null===U||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?U="positive-descending":(t.scrollLeft=1,U=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),U}return U}var G=function(e,t){return e};function q(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,(0,R.A)(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:(0,R.A)(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=L((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=L((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var f=r(n.props,e,n._instanceProps),d=o(n.props,e,n._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,v=p?f:0;u[e]=t={position:"absolute",left:h?void 0:v,right:h?v:void 0,top:p?0:f,height:p?"100%":d,width:p?d:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=L((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(V()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&W(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=B(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}(0,N.A)(t,e),t.getDerivedStateFromProps=function(e,t){return K(e,t),f(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?H():0:l.scrollHeight>l.clientHeight?H():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(V()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&W(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,f=e.itemData,d=e.itemKey,p=void 0===d?G:d,h=e.layout,v=e.outerElementType,g=e.outerTagName,m=e.style,y=e.useIsScrolling,b=e.width,w=this.state.isScrolling,O="horizontal"===o||"horizontal"===h,x=O?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),A=S[0],P=S[1],j=[];if(c>0)for(var E=A;E<=P;E++)j.push((0,u.createElement)(t,{data:f,key:p(E,f),index:E,isScrolling:y?w:void 0,style:this._getItemStyle(E)}));var I=n(this.props,this._instanceProps);return(0,u.createElement)(v||g||"div",{className:r,onScroll:x,ref:this._outerRefSetter,style:(0,_.A)({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},m)},(0,u.createElement)(s||l||"div",{children:j,ref:a,style:{height:O?"100%":I,pointerEvents:w?"none":void 0,width:O?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),f=o&&"backward"!==i?1:Math.max(1,r),d=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-f),Math.max(0,Math.min(t-1,c+d)),u,c]},t}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var K=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},$=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},Z=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=$(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},X=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&$(e,r,t).offset<n;)r+=i,i*=2;return Z(e,t,Math.min(r,o-1),Math.floor(r/2),n)},Y=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},Q=q({getItemOffset:function(e,t,r){return $(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Y,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,f=$(e,t,o),d=Y(e,o),p=Math.max(0,Math.min(d-c,f.offset)),h=Math.max(0,f.offset-c+f.size+i);switch("smart"===r&&(r=n>=h-c&&n<=p+c?"auto":"center"),r){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return n>=h&&n<=p?n:n<h?h:p}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?Z(e,t,o,0,r):X(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=$(e,t,n),f=r+u,d=c.offset+c.size,p=t;p<a-1&&d<f;)p++,d+=$(e,p,n).size;return p},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var J=r(76973),ee=r.n(J),te=r(70191),re=r(50789),ne=r(75685),oe=r(49801),ie=r(28180),ae=r(60885),se=r(28477);function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ce(e,t,r){return(t=de(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,de(n.key),n)}}function de(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function pe(e,t,r){return t=ve(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ge(e)}(e,he()?Reflect.construct(t,r||[],ve(e).constructor):t.apply(e,r))}function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(he=function(){return!!e})()}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(e)}function ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}var ye=(0,oe.Ay)("div")((function(e){return{boxSizing:"border-box",color:e.theme.palette.common.white,cursor:"pointer",display:"inline-block",whiteSpace:"nowrap"}})),be=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=pe(this,t,[e])).setCanvas=r.setCanvas.bind(ge(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&me(e,t)}(t,e),r=t,n=[{key:"setCanvas",value:function(e){var t=this.props.setCanvas;t(e.currentTarget.dataset.canvasId)}},{key:"currentCanvasClass",value:function(e){var t=this.props.index;return e.includes(t)?"current-canvas-grouping":""}},{key:"render",value:function(){var e=this.props,t=e.index,r=e.style,n=e.data,o=e.currentCanvasId,i=n.canvasGroupings,a=n.position,s=n.height,l=i[t];return(0,se.jsx)("div",{style:ue(ue({},r),{},{boxSizing:"content-box",height:Number.isInteger(r.height)?r.height-8:null,left:Number.isInteger(r.left)?r.left+8:null,top:r.top+8,width:Number.isInteger(r.width)?r.width-8:null}),className:(0,ae.A)("thumbnail-nav-container"),role:"gridcell","aria-colindex":t+1,children:(0,se.jsx)(ye,{role:"button","data-canvas-id":l[0].id,"data-canvas-index":l[0].index,onKeyUp:this.setCanvas,onClick:this.setCanvas,tabIndex:-1,sx:function(e){return ue(ue({"&:hover":{outline:"9px solid ".concat(e.palette.action.hover),outlineOffset:"-2px"},height:"far-right"===a?"auto":"".concat(s-8,"px"),outline:l.map((function(e){return e.id})).includes(o)?"2px solid ".concat(e.palette.primary.main):0},l.map((function(e){return e.id})).includes(o)&&{outlineOffset:"3px"}),{},{width:"far-bottom"===a?"auto":"".concat(r.width,"px")})},className:ee()((0,ae.A)(["thumbnail-nav-canvas","thumbnail-nav-canvas-".concat(t),this.currentCanvasClass(l.map((function(e){return e.index})))])),children:l.map((function(e,t){return(0,se.jsx)(ie.A,{resource:e,labelled:!0,maxHeight:"far-right"===a?r.height-12:s-12,variant:"inside"},e.id)}))})})}}],n&&fe(r.prototype,n),o&&fe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.PureComponent);const we=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.data;return{currentCanvasId:((0,ne.kR)(e,{windowId:r.windowId})||{}).id}}),(function(e,t){var r=t.data;return{setCanvas:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e(l.h5.apply(re,[r.windowId].concat(n)))}}})),(0,s.h)("ThumbnailCanvasGrouping"))(be);function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xe(n.key),n)}}function xe(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Se(e,t,r){return t=Pe(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return je(e)}(e,Ae()?Reflect.construct(t,r||[],Pe(e).constructor):t.apply(e,r))}function Ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ae=function(){return!!e})()}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pe(e)}function je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ee(e,t){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ee(e,t)}var Ie=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Se(this,t,[e])).scrollbarSize=15,r.spacing=8,r.calculateScaledSize=r.calculateScaledSize.bind(je(r)),r.itemCount=r.itemCount.bind(je(r)),r.handleKeyDown=r.handleKeyDown.bind(je(r)),r.nextCanvas=r.nextCanvas.bind(je(r)),r.previousCanvas=r.previousCanvas.bind(je(r)),r.gridRef=(0,u.createRef)(),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ee(e,t)}(t,e),r=t,n=[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.canvasIndex,n=t.position,o=t.view;if(e.view!==o&&"off"!==n&&this.gridRef.current.resetAfterIndex(0),e.canvasIndex!==r){var i=r;"book"===o&&(i=Math.ceil(i/2)),this.gridRef.current.scrollToItem(i,"center")}}},{key:"handleKeyDown",value:function(e){var t="ArrowRight",r="ArrowLeft";switch("far-right"===this.props.position&&(t="ArrowDown",r="ArrowUp"),e.key){case t:this.nextCanvas();break;case r:this.previousCanvas()}}},{key:"calculateScaledSize",value:function(e){var t=this.props,r=t.thumbnailNavigation,n=t.canvasGroupings,o=t.position,i=n[e];if(!i)return r.width+this.spacing;var a=new te.A(i).worldBounds();if("far-right"===o){var s=Math.floor(this.calculatingWidth(i.length)*a[3]/a[2]);return Number.isInteger(s)?s+this.spacing:r.width+this.spacing}return 0===a[3]?r.width+this.spacing:Math.ceil((r.height-this.scrollbarSize-this.spacing-4)*a[2]/a[3])}},{key:"calculatingWidth",value:function(e){var t=this.props.thumbnailNavigation;return 1===e?t.width:2*t.width}},{key:"rightWidth",value:function(){var e=this.props,t=e.view,r=e.thumbnailNavigation;return"book"===t?2*r.width:r.width}},{key:"style",value:function(){var e=this.props,t=e.position,r=e.thumbnailNavigation;return"far-right"===t?{height:"100%",minHeight:0,width:"".concat(this.rightWidth()+this.scrollbarSize+this.spacing,"px")}:{height:"".concat(r.height,"px"),width:"100%"}}},{key:"areaHeight",value:function(e){var t=this.props,r=t.position,n=t.thumbnailNavigation;return"far-right"===r?e:n.height}},{key:"itemCount",value:function(){return this.props.canvasGroupings.length}},{key:"nextCanvas",value:function(){var e=this.props,t=e.hasNextCanvas,r=e.setNextCanvas;t&&r()}},{key:"previousCanvas",value:function(){var e=this.props,t=e.hasPreviousCanvas,r=e.setPreviousCanvas;t&&r()}},{key:"render",value:function(){var e=this,t=this.props,r=t.t,n=t.canvasGroupings,o=t.position,i=t.thumbnailNavigation,a=t.viewingDirection,s=t.windowId;if("off"===o)return null;var l="right-to-left"===a?"rtl":"ltr",u={canvasGroupings:n,height:i.height-this.spacing-this.scrollbarSize,position:o,windowId:s};return(0,se.jsx)(c.A,{className:ee()((0,ae.A)("thumb-navigation")),sx:{"&:focus":{boxShadow:0,outline:0}},"aria-label":r("thumbnailNavigation"),square:!0,elevation:0,style:this.style(),tabIndex:0,onKeyDown:this.handleKeyDown,role:"grid",children:(0,se.jsx)("div",{role:"row",style:{height:"100%",width:"100%"},children:(0,se.jsx)(k,{defaultHeight:100,defaultWidth:400,children:function(t){var r=t.height,n=t.width;return(0,se.jsx)(Q,{direction:l,height:e.areaHeight(r),itemCount:e.itemCount(),itemSize:e.calculateScaledSize,width:n,layout:"far-bottom"===o?"horizontal":"vertical",itemData:u,ref:e.gridRef,children:we})}})})})}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Ie.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function(){},setPreviousCanvas:function(){},view:void 0,viewingDirection:""};var Te=r(82154),Ce=r(60141),ke=r(47640),_e=r(69972),Re=r(25661);const Ne=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.windowId;return{canvasGroupings:(0,ne.tV)(e,{windowId:r}),canvasIndex:(0,Te.PB)(e,{windowId:r}),hasNextCanvas:!!(0,ne.BL)(e,{windowId:r}),hasPreviousCanvas:!!(0,ne.Nj)(e,{windowId:r}),position:(0,Ce.DS)(e,{companionWindowId:(0,ke.zk)(e,{windowId:r}).thumbnailNavigationId}).position,thumbnailNavigation:(0,_e.zj)(e).thumbnailNavigation,view:(0,Re.i9)(e,{windowId:r}),viewingDirection:(0,Te.Kb)(e,{windowId:r})}}),(function(e,t){var r=t.windowId;return{setNextCanvas:function(){return e(l.OZ(r))},setPreviousCanvas:function(){return e(l.Kh(r))}}})),(0,s.h)("ThumbnailNavigation"))(Ie);var De=r(33235),Me=r(48281),Le=r(24580),ze=r(70396),We=r(29397),Be=r(63317);function Fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,He(n.key),n)}}function He(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ue(e,t,r){return t=Ge(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ve()?Reflect.construct(t,r||[],Ge(e).constructor):t.apply(e,r))}function Ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ve=function(){return!!e})()}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ge(e)}function qe(e,t){return qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qe(e,t)}var Ke=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ue(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qe(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.displayAll,r=e.displayAllDisabled,n=e.t,o=e.toggleAnnotationDisplay;return(0,se.jsx)(Be.A,{"aria-label":n(t?"displayNoAnnotations":"highlightAllAnnotations"),onClick:o,disabled:r,size:"small",children:t?(0,se.jsx)(ze.A,{}):(0,se.jsx)(We.A,{})})}}])&&Fe(r.prototype,n),o&&Fe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);const $e=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.windowId;return{displayAll:(0,ke.zk)(e,{windowId:r}).highlightAllAnnotations,displayAllDisabled:(0,De.Y2)(e,{windowId:r}).length<2}}),(function(e,t){var r=t.windowId;return{toggleAnnotationDisplay:function(){e(Le.ow(r))}}})),(0,s.h)("AnnotationSettings"))(Ke);var Ze=r(14829),Xe=r(12491),Ye=r(21196),Qe=r(50596),Je=r(49726),et=r(47114),tt=r.n(et),rt=["children","containerRef","offsetTop","scrollTo","nodeId"];function nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ot(e,t,r){return(t=st(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function it(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function at(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,st(n.key),n)}}function st(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function lt(e,t,r){return t=ct(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ut()?Reflect.construct(t,r||[],ct(e).constructor):t.apply(e,r))}function ut(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ut=function(){return!!e})()}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ft(e,t)}var dt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=lt(this,t,[e])).scrollToRef=(0,u.createRef)(),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ft(e,t)}(t,e),r=t,n=[{key:"componentDidMount",value:function(){this.props.scrollTo&&this.scrollToElement()}},{key:"componentDidUpdate",value:function(e){var t=this.props.scrollTo;t&&e.scrollTo!==t&&this.scrollToElement()}},{key:"containerBoundingRect",value:function(){var e=this.props.containerRef;return e&&e.current?e.current.getBoundingClientRect():{}}},{key:"scrollToBoundingRect",value:function(){return this.elementToScrollTo()?this.elementToScrollTo().getBoundingClientRect():{}}},{key:"elementToScrollTo",value:function(){return this.scrollToRef&&this.scrollToRef.current?this.scrollToRef.current:null}},{key:"scrollableContainer",value:function(){var e=this.props.containerRef;return e&&e.current?e.current.getElementsByClassName("mirador-scrollto-scrollable")[0]:null}},{key:"elementIsVisible",value:function(){var e=this.props.offsetTop;return!(this.scrollToBoundingRect().top<this.containerBoundingRect().top+e||this.scrollToBoundingRect().bottom>this.containerBoundingRect().bottom)}},{key:"scrollToElement",value:function(){var e=this.props,t=e.offsetTop;if(e.scrollTo&&this.elementToScrollTo()&&!this.elementIsVisible()&&this.scrollableContainer()){var r=this.elementToScrollTo().offsetTop-this.containerBoundingRect().height/2+t;this.scrollableContainer().scrollTo(0,r)}}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.containerRef,e.offsetTop,e.scrollTo),n=(e.nodeId,it(e,rt));return!r&&tt()(n)?t:(0,u.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(r),!0).forEach((function(t){ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:this.scrollToRef},n))}}],n&&at(r.prototype,n),o&&at(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);function pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ht(n.key),n)}}function ht(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function vt(e,t,r){return t=mt(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yt(e)}(e,gt()?Reflect.construct(t,r||[],mt(e).constructor):t.apply(e,r))}function gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gt=function(){return!!e})()}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}function yt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bt(e,t){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bt(e,t)}dt.defaultProps={offsetTop:0};var wt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=vt(this,t,[e])).handleClick=r.handleClick.bind(yt(r)),r.handleAnnotationHover=r.handleAnnotationHover.bind(yt(r)),r.handleAnnotationBlur=r.handleAnnotationBlur.bind(yt(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bt(e,t)}(t,e),r=t,n=[{key:"handleClick",value:function(e,t){var r=this.props,n=r.deselectAnnotation,o=r.selectAnnotation,i=r.selectedAnnotationId,a=r.windowId;i===t.id?n(a,t.id):o(a,t.id)}},{key:"handleAnnotationHover",value:function(e){var t=this.props;(0,t.hoverAnnotation)(t.windowId,[e.id])}},{key:"handleAnnotationBlur",value:function(){var e=this.props;(0,e.hoverAnnotation)(e.windowId,[])}},{key:"render",value:function(){var e=this,t=this.props,r=t.annotations,n=t.index,o=t.label,i=t.selectedAnnotationId,a=t.t,s=t.totalSize,l=t.listContainerComponent,u=t.htmlSanitizationRuleSet,c=t.hoveredAnnotationIds,f=t.containerRef;return 0===r.length?null:(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Me.A,{sx:{paddingLeft:2,paddingRight:1,paddingTop:2},variant:"overline",children:a("annotationCanvasLabel",{context:"".concat(n+1,"/").concat(s),label:o})}),(0,se.jsx)(Xe.A,{autoFocusItem:!0,variant:"selectedMenu",children:r.map((function(t){return(0,se.jsx)(dt,{containerRef:f,offsetTop:96,scrollTo:i===t.id,selected:i===t.id,children:(0,se.jsx)(Ye.A,{component:l,variant:"multiline",divider:!0,sx:{"&:hover,&:focus":{backgroundColor:"action.hover"},backgroundColor:c.includes(t.id)?"action.hover":""},annotationid:t.id,onClick:function(r){return e.handleClick(r,t)},onFocus:function(){return e.handleAnnotationHover(t)},onBlur:e.handleAnnotationBlur,onMouseEnter:function(){return e.handleAnnotationHover(t)},onMouseLeave:e.handleAnnotationBlur,children:(0,se.jsx)(Qe.A,{primaryTypographyProps:{variant:"body2"},primary:(0,se.jsx)(Je.A,{ruleSet:u,htmlString:t.content}),secondary:t.tags.map((function(e){return(0,se.jsx)(Ze.A,{component:"span",size:"small",variant:"outlined",label:e,id:e},e.toString())}))})},t.id)},"".concat(t.id,"-scroll"))}))})]})}}],n&&pt(r.prototype,n),o&&pt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);wt.defaultProps={annotations:[],containerRef:void 0,hoveredAnnotationIds:[],htmlSanitizationRuleSet:"iiif",listContainerComponent:"li",selectedAnnotationId:void 0};var Ot={deselectAnnotation:Le.PW,hoverAnnotation:Le.GW,selectAnnotation:Le.gN};const xt=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r,n=t.canvasId,o=t.windowId;return{annotations:(r=(0,De.Ni)(e,{canvasId:n,windowId:o}),r.map((function(e,t){return{content:e.chars,id:e.id,tags:e.tags,targetId:e.targetId}}))),htmlSanitizationRuleSet:(0,_e.zj)(e).annotations.htmlSanitizationRuleSet,label:(0,ne.T2)(e,{canvasId:n,windowId:o}),selectedAnnotationId:(0,De.e3)(e,{windowId:o})}}),Ot),(0,s.h)("CanvasAnnotations"))(wt);var St=r(7498),At=(0,oe.Ay)("div",{name:"CompanionWindowSection",slot:"root"})((function(e){var t=e.theme;return{paddingBlockEnd:t.spacing(1),paddingBlockStart:t.spacing(2),paddingInlineEnd:t.spacing(1),paddingInlineStart:t.spacing(2)}}));function Pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jt(n.key),n)}}function jt(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Et(e,t,r){return t=Tt(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,It()?Reflect.construct(t,r||[],Tt(e).constructor):t.apply(e,r))}function It(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(It=function(){return!!e})()}function Tt(e){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tt(e)}function Ct(e,t){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ct(e,t)}var kt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Et(this,t,[e])).containerRef=(0,u.createRef)(),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ct(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this,t=this.props,r=t.annotationCount,n=t.canvasIds,o=t.t,i=t.windowId,a=t.id;return(0,se.jsxs)(St.A,{title:o("annotations"),paperClassName:(0,ae.A)("window-sidebar-annotation-panel"),windowId:i,id:a,ref:this.containerRef,titleControls:(0,se.jsx)($e,{windowId:i}),children:[(0,se.jsx)(At,{children:(0,se.jsx)(Me.A,{component:"p",variant:"subtitle2",children:o("showingNumAnnotations",{count:r,number:r})})}),n.map((function(t,r){return(0,se.jsx)(xt,{canvasId:t,containerRef:e.containerRef,index:r,totalSize:n.length,windowId:i},t)}))]})}}])&&Pt(r.prototype,n),o&&Pt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);kt.defaultProps={canvasIds:[],t:function(e){return e}};const _t=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.windowId;return{annotationCount:(0,De.Y2)(e,{windowId:r}).length,canvasIds:(0,ne.tv)(e,{windowId:r})}}),null),(0,s.h)("WindowSideBarAnnotationsPanel"))(kt);var Rt=r(6683),Nt=r(26678),Dt=r(56952),Mt=r(31392),Lt=r(74754);function zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(r),!0).forEach((function(t){Bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bt(e,t,r){return(t=Ht(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ht(n.key),n)}}function Ht(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ut(e,t,r){return t=Gt(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vt()?Reflect.construct(t,r||[],Gt(e).constructor):t.apply(e,r))}function Vt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vt=function(){return!!e})()}function Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gt(e)}function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}var Kt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ut(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasDescription,r=e.canvasLabel,n=e.canvasMetadata,o=e.id,i=e.index,a=e.t,s=e.totalSize;return(0,se.jsxs)(Dt.A,{id:"".concat(o,"-currentItem-").concat(i),label:a("currentItem",{context:"".concat(i+1,"/").concat(s)}),children:[r&&(0,se.jsx)(Me.A,{"aria-labelledby":"".concat(o,"-currentItem-").concat(i," ").concat(o,"-currentItem-").concat(i,"-heading"),id:"".concat(o,"-currentItem-").concat(i,"-heading"),variant:"h4",component:"h5",children:r}),t&&(0,se.jsx)(Me.A,{variant:"body1",children:(0,se.jsx)(Je.A,{htmlString:t,ruleSet:"iiif"})}),n&&n.length>0&&(0,se.jsx)(Mt.P,{labelValuePairs:n}),(0,se.jsx)(Lt.F,Wt({},this.props))]})}}])&&Ft(r.prototype,n),o&&Ft(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Kt.defaultProps={canvasDescription:null,canvasLabel:null,canvasMetadata:[],index:1,t:function(e){return e},totalSize:1};const $t=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.canvasId,n=t.id,o=t.windowId;return{canvasDescription:(0,ne.HU)(e,{canvasId:r,companionWindowId:n,windowId:o}),canvasLabel:(0,ne.T2)(e,{canvasId:r,companionWindowId:n,windowId:o}),canvasMetadata:(0,Nt.uh)((0,ne.dX)(e,{canvasId:r,companionWindowId:n,windowId:o}))}})),(0,s.h)("CanvasInfo"))(Kt);var Zt=r(48393),Xt=r(60910);function Yt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qt(n.key),n)}}function Qt(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Jt(e,t,r){return t=tr(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,er()?Reflect.construct(t,r||[],tr(e).constructor):t.apply(e,r))}function er(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(er=function(){return!!e})()}function tr(e){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tr(e)}function rr(e,t){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rr(e,t)}var nr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Jt(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rr(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.availableLocales,r=e.locale,n=e.setLocale;return!n||t.length<2?null:(0,se.jsx)(Zt.A,{children:(0,se.jsx)(Xt.A,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"}},displayEmpty:!0,value:r,onChange:function(e){n(e.target.value)},name:"locale",children:t.map((function(e){return(0,se.jsx)(Ye.A,{value:e,children:(0,se.jsx)(Me.A,{variant:"body2",children:e})},e)}))})})}}])&&Yt(r.prototype,n),o&&Yt(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);nr.defaultProps={availableLocales:[],locale:"",setLocale:void 0};const or=(0,o.Zz)((0,a.CI)())(nr);var ir=r(41912),ar=r(92013),sr=r(70943),lr=r(37363);function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cr(n.key),n)}}function cr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function fr(e,t,r){return t=pr(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hr(e)}(e,dr()?Reflect.construct(t,r||[],pr(e).constructor):t.apply(e,r))}function dr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dr=function(){return!!e})()}function pr(e){return pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pr(e)}function hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vr(e,t){return vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vr(e,t)}var gr=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=fr(this,t,[e])).openCollectionDialog=r.openCollectionDialog.bind(hr(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(e,t)}(t,e),r=t,(n=[{key:"openCollectionDialog",value:function(){var e=this.props,t=e.collectionPath,r=e.showCollectionDialog,n=e.windowId;r(t[t.length-1],t.slice(0,-1),n)}},{key:"render",value:function(){var e=this.props,t=e.collectionLabel,r=e.collectionPath,n=e.id,o=e.t;return 0===r.length?null:(0,se.jsxs)(Dt.A,{id:"".concat(n,"-collection"),label:o("collection"),children:[t&&(0,se.jsx)(Me.A,{"aria-labelledby":"".concat(n,"-resource ").concat(n,"-resource-heading"),id:"".concat(n,"-resource-heading"),variant:"h4",children:t}),(0,se.jsx)(sr.A,{color:"primary",onClick:this.openCollectionDialog,startIcon:(0,se.jsx)(lr.A,{}),children:o("showCollection")})]})}}])&&ur(r.prototype,n),o&&ur(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);gr.defaultProps={collectionLabel:null,collectionPath:[],t:function(e){return e},windowId:null};var mr={showCollectionDialog:ar.Az};const yr=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){t.id;var r=t.windowId,n=((0,ke.zk)(e,{windowId:r})||{}).collectionPath,o=n[n.length-1];return{collectionLabel:(0,Nt.aY)(e,{manifestId:o}),collectionPath:n}}),mr),(0,s.h)("CollectionInfo"))(gr);var br=r(70256);function wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(r),!0).forEach((function(t){xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xr(e,t,r){return(t=Ar(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ar(n.key),n)}}function Ar(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Pr(e,t,r){return t=Er(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jr()?Reflect.construct(t,r||[],Er(e).constructor):t.apply(e,r))}function jr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jr=function(){return!!e})()}function Er(e){return Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Er(e)}function Ir(e,t){return Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ir(e,t)}var Tr=(0,oe.Ay)("dl")((function(e){e.theme;return{"& dd":{marginBottom:".5em",marginLeft:"0"}}})),Cr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pr(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ir(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.homepage,r=e.manifestUrl,n=e.related,o=e.renderings,i=e.seeAlso,a=e.id,s=e.t;return(0,se.jsxs)(Dt.A,{id:"".concat(a,"-related"),label:s("related"),children:[(0,se.jsx)(Me.A,{"aria-labelledby":"".concat(a,"-related ").concat(a,"-related-heading"),id:"".concat(a,"-related-heading"),variant:"h4",component:"h5",children:s("links")}),(0,se.jsxs)(Tr,{className:ee()((0,ae.A)("label-value-metadata")),children:[t&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Me.A,{variant:"subtitle2",component:"dt",children:s("iiif_homepage")}),t.map((function(e){return(0,se.jsx)(Me.A,{variant:"body1",component:"dd",children:(0,se.jsx)(br.A,{target:"_blank",rel:"noopener noreferrer",href:e.value,children:e.label||e.value})},e.value)}))]}),o&&o.length>0&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Me.A,{variant:"subtitle2",component:"dt",children:s("iiif_renderings")}),o.map((function(e){return(0,se.jsx)(Me.A,{variant:"body1",component:"dd",children:(0,se.jsx)(br.A,{target:"_blank",rel:"noopener noreferrer",href:e.value,children:e.label||e.value})},e.value)}))]}),n&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Me.A,{variant:"subtitle2",component:"dt",children:s("iiif_related")}),n.map((function(e){return(0,se.jsxs)(Me.A,{variant:"body1",component:"dd",children:[(0,se.jsx)(br.A,{target:"_blank",rel:"noopener noreferrer",href:e.value,children:e.label||e.value}),e.format&&(0,se.jsx)(Me.A,{component:"span",children:" (".concat(e.format,")")})]},e.value)}))]}),i&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Me.A,{variant:"subtitle2",component:"dt",children:s("iiif_seeAlso")}),i.map((function(e){return(0,se.jsxs)(Me.A,{variant:"body1",component:"dd",children:[(0,se.jsx)(br.A,{target:"_blank",rel:"noopener noreferrer",href:e.value,children:e.label||e.value}),e.format&&(0,se.jsx)(Me.A,{component:"span",children:" (".concat(e.format,")")})]},e.value)}))]}),r&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Me.A,{variant:"subtitle2",component:"dt",children:s("iiif_manifest")}),(0,se.jsx)(Me.A,{variant:"body1",component:"dd",children:(0,se.jsx)(br.A,{target:"_blank",rel:"noopener noreferrer",href:r,children:r})})]})]}),(0,se.jsx)(Lt.F,Or({},this.props))]})}}])&&Sr(r.prototype,n),o&&Sr(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Cr.defaultProps={homepage:null,manifestUrl:null,related:null,renderings:null,seeAlso:null,t:function(e){return e}};const kr=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){t.id;var r=t.windowId;return{homepage:(0,Nt.cm)(e,{windowId:r}),manifestUrl:(0,Nt.hp)(e,{windowId:r}),related:(0,Nt.rv)(e,{windowId:r}),renderings:(0,Nt.dn)(e,{windowId:r}),seeAlso:(0,Nt.ES)(e,{windowId:r})}})),(0,s.h)("ManifestRelatedLinks"))(Cr);function _r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Rr(n.key),n)}}function Rr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Nr(e,t,r){return t=Mr(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dr()?Reflect.construct(t,r||[],Mr(e).constructor):t.apply(e,r))}function Dr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dr=function(){return!!e})()}function Mr(e){return Mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mr(e)}function Lr(e,t){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lr(e,t)}var zr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Nr(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lr(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.windowId,r=e.id,n=e.canvasIds,o=e.collectionPath,i=e.t,a=e.locale,s=e.setLocale,l=e.availableLocales,u=e.showLocalePicker;return(0,se.jsxs)(St.A,{title:i("aboutThisItem"),paperClassName:(0,ae.A)("window-sidebar-info-panel"),windowId:t,id:r,titleControls:u&&(0,se.jsx)(or,{locale:a,setLocale:s,availableLocales:l}),children:[n.map((function(e,o){return(0,se.jsx)(At,{children:(0,se.jsx)($t,{id:r,canvasId:e,index:o,totalSize:n.length,windowId:t})},e)})),o.length>0&&(0,se.jsx)(At,{children:(0,se.jsx)(yr,{id:r,windowId:t})}),(0,se.jsx)(At,{children:(0,se.jsx)(ir.A,{id:r,windowId:t})}),(0,se.jsx)(At,{children:(0,se.jsx)(kr,{id:r,windowId:t})})]})}}])&&_r(r.prototype,n),o&&_r(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);zr.defaultProps={availableLocales:[],canvasIds:[],collectionPath:[],locale:"",setLocale:void 0,showLocalePicker:!1,t:function(e){return e}};const Wr=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.id,n=t.windowId;return{availableLocales:(0,Nt.t_)(e,{companionWindowId:r,windowId:n}),canvasIds:(0,ne.tv)(e,{windowId:n}),collectionPath:((0,ke.zk)(e,{windowId:n})||{}).collectionPath,locale:(0,Ce.DS)(e,{companionWindowId:r}).locale||(0,Nt.U1)(e,{windowId:n}),showLocalePicker:(0,Re.R2)(e,{windowId:n}).showLocalePicker}}),(function(e,t){var r=t.windowId,n=t.id;return{setLocale:function(t){return e(Rt.u3(r,n,{locale:t}))}}})),(0,s.h)("WindowSideBarInfoPanel"))(zr);var Br=r(87237),Fr=r(88150),Hr=r(34338),Ur=r(70715),Vr=r(91712),Gr=r(51666),qr=r(11879);function Kr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$r(n.key),n)}}function $r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Zr(e,t,r){return t=Yr(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xr()?Reflect.construct(t,r||[],Yr(e).constructor):t.apply(e,r))}function Xr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xr=function(){return!!e})()}function Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yr(e)}function Qr(e,t){return Qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qr(e,t)}var Jr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zr(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qr(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props.label;return(0,se.jsx)(Me.A,{variant:"body1",children:e})}}])&&Kr(r.prototype,n),o&&Kr(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);const en=(0,o.Zz)((0,a.CI)(),(0,i.Ng)(null,null),(0,s.h)("SidebarIndexItem"))(Jr);function tn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rn(n.key),n)}}function rn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function nn(e,t,r){return t=an(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,on()?Reflect.construct(t,r||[],an(e).constructor):t.apply(e,r))}function on(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(on=function(){return!!e})()}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},an(e)}function sn(e,t){return sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sn(e,t)}var ln=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nn(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sn(e,t)}(t,e),r=t,n=[{key:"render",value:function(){var e=this.props,t=e.canvas,r=e.height,n=e.label,o=e.width;return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)("div",{style:{minWidth:50},children:(0,se.jsx)(ie.A,{label:n,resource:t,maxHeight:r,maxWidth:o})}),(0,se.jsx)(Me.A,{children:n})]})}}],n&&tn(r.prototype,n),o&&tn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cn(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ln.defaultProps={height:void 0,width:void 0};const fn=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){t.data;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?un(Object(r),!0).forEach((function(t){cn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},(0,_e.zj)(e).canvasNavigation||{})}),null),(0,s.h)("SidebarIndexThumbnail"))(ln);function dn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pn(n.key),n)}}function pn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function hn(e,t,r){return t=gn(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vn()?Reflect.construct(t,r||[],gn(e).constructor):t.apply(e,r))}function vn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vn=function(){return!!e})()}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gn(e)}function mn(e,t){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mn(e,t)}var yn=(0,oe.Ay)(Ye.A,{name:"SidebarIndexList",slot:"item"})((function(e){var t=e.theme;return{alignItems:"flex-start",paddingLeft:t.spacing(2),paddingRight:t.spacing(1),position:"initial",whiteSpace:"normal"}})),bn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hn(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mn(e,t)}(t,e),r=t,n=[{key:"getIdAndLabelOfCanvases",value:function(){return this.props.canvases.map((function(e,t){return{id:e.id,label:new qr.A(e).getLabel()}}))}},{key:"render",value:function(){var e,t=this.props,r=t.canvases,n=t.containerRef,o=t.selectedCanvasIds,i=t.setCanvas,a=t.variant,s=t.windowId,l=this.getIdAndLabelOfCanvases(r);return e="thumbnail"===a?fn:en,(0,se.jsx)(Xe.A,{variant:"selectedMenu",children:l.map((function(t,l){return(0,se.jsx)(dt,{containerRef:n,offsetTop:96,selected:o.includes(t.id),scrollTo:o.includes(t.id),children:(0,se.jsx)(yn,{divider:!0,onClick:function(){i(s,t.id)},component:"li",children:(0,se.jsx)(e,{label:t.label,canvas:r[l]})},t.id)},"".concat(t.id,"-").concat(a))}))})}}],n&&dn(r.prototype,n),o&&dn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);bn.defaultProps={selectedCanvasIds:[],variant:"item"};const wn=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.id,n=t.windowId;return{canvases:(0,ne.P)(e,{windowId:n}),selectedCanvasIds:(0,ne.tv)(e,{windowId:n}),variant:(0,Ce.DS)(e,{companionWindowId:r,windowId:n}).variant}}),(function(e,t){t.id,t.windowId;return{setCanvas:function(){return e(l.h5.apply(re,arguments))}}})),(0,s.h)("SidebarIndexList"))(bn);var On=r(63548),xn=r(5550),Sn=r(83542),An=r(80408),Pn=r(17080),jn=r(88842),En=r(95298);function In(e){return(0,jn.Ay)("MuiTreeView",e)}(0,En.A)("MuiTreeView",["root"]);var Tn=r(1244),Cn={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},kn=u.createContext(Cn);function _n(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mn(n.key),n)}}function Mn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Ln=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxListeners=20,this.warnOnce=!1,this.events={}}var t,r,n;return t=e,r=[{key:"on",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.events[e];n||(n={highPriority:new Map,regular:new Map},this.events[e]=n),r.isFirst?n.highPriority.set(t,!0):n.regular.set(t,!0)}},{key:"removeListener",value:function(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}},{key:"removeAllListeners",value:function(){this.events={}}},{key:"emit",value:function(e){var t=this.events[e];if(t){for(var r=Array.from(t.highPriority.keys()),n=Array.from(t.regular.keys()),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];for(var s=r.length-1;s>=0;s-=1){var l=r[s];t.highPriority.has(l)&&l.apply(this,i)}for(var u=0;u<n.length;u+=1){var c=n[u];t.regular.has(c)&&c.apply(this,i)}}}},{key:"once",value:function(e,t){var r=this;this.on(e,(function n(){r.removeListener(e,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(r,i)}))}}],r&&Dn(t.prototype,r),n&&Dn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),zn=function(e,t){var r=e.getNode(t),n=e.getNavigableChildrenIds(r.parentId),o=n.indexOf(t);if(0===o)return r.parentId;for(var i=n[o-1];e.isNodeExpanded(i)&&e.getNavigableChildrenIds(i).length>0;)i=e.getNavigableChildrenIds(i).pop();return i},Wn=function(e,t){if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];for(var r=e.getNode(t);null!=r;){var n=e.getNavigableChildrenIds(r.parentId),o=n[n.indexOf(r.id)+1];if(o)return o;r=e.getNode(r.parentId)}return null},Bn=function(e){for(var t=e.getNavigableChildrenIds(null).pop();e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},Fn=function(e){return e.getNavigableChildrenIds(null)[0]},Hn=function(e,t){Object.assign(e,t)};function Un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Gn=[function(e){var t=e.instance,r=Un(u.useState((function(){return new Ln})),1)[0],n=u.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t[1],a=t[2],s=void 0===a?{}:a;s.defaultMuiPrevented=!1,function(e){return void 0!==e.isPropagationStopped}(s)&&s.isPropagationStopped()||r.emit(o,i,s)}),[r]),o=u.useCallback((function(e,t){return r.on(e,t),function(){r.removeListener(e,t)}}),[r]);Hn(t,{$$publishEvent:n,$$subscribeEvent:o})}];function qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||$n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kn(e){return function(e){if(Array.isArray(e))return Zn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $n(e,t){if(e){if("string"==typeof e)return Zn(e,t);var r=Object.prototype.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)?Zn(e,t):void 0}}function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xn=function(e){var t=[].concat(Kn(Gn),Kn(e.plugins)),r=t.reduce((function(e,t){return t.getDefaultizedParams?t.getDefaultizedParams(e):e}),e),n=function(e,t){var r=u.useRef({}),n=u.useState((function(){var n={};return e.forEach((function(e){e.models&&Object.entries(e.models).forEach((function(e){var o=Rn(e,2),i=o[0],a=o[1];r.current[i]={controlledProp:a.controlledProp,defaultProp:a.defaultProp,isControlled:void 0!==t[a.controlledProp]},n[i]=t[a.defaultProp]}))})),n})),o=Rn(n,2),i=o[0],a=o[1];return Object.fromEntries(Object.entries(r.current).map((function(e){var r=Rn(e,2),n=r[0],o=r[1],s=o.isControlled?t[o.controlledProp]:i[n];return[n,{value:s,setValue:function(e){o.isControlled||a((function(t){return(0,_.A)({},t,_n({},n,e))}))}}]})))}(t,r),o=u.useRef({}).current,i=u.useRef(null),a=(0,Tn.A)(i,e.rootRef),s=qn(u.useState((function(){var e={};return t.forEach((function(t){t.getInitialState&&Object.assign(e,t.getInitialState(r))})),e})),2),l=s[0],c=s[1],f=[],d=Cn;t.forEach((function(e){var t=e({instance:o,params:r,state:l,setState:c,rootRef:i,models:n})||{};t.getRootProps&&f.push(t.getRootProps),t.contextValue&&(d=t.contextValue)}));return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,_.A)({role:"tree",tabIndex:0},e,{ref:a});return f.forEach((function(r){Object.assign(t,r(e))})),t},rootRef:a,contextValue:d}},Yn=r(78006);function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var eo=["element"];var to=u.createContext({});var ro=function(){};function no(e){var t,r,n=Qn(u.useState(),2)[1],o=u.useContext(to),i=o.registerDescendant,a=void 0===i?ro:i,s=o.unregisterDescendant,l=void 0===s?ro:s,c=o.descendants,f=void 0===c?[]:c,d=o.parentId,p=void 0===d?null:d,h=function(e,t){for(var r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}(f,(function(t){return t.element===e.element})),v=(t=f,r=u.useRef(null),u.useEffect((function(){r.current=t}),[t]),r.current),g=f.some((function(e,t){return v&&v[t]&&v[t].element!==e.element}));return(0,Yn.A)((function(){if(e.element)return a((0,_.A)({},e,{index:h})),function(){l(e.element)};n({})}),[a,l,h,g,e]),{parentId:p,index:h}}function oo(e){var t=e.children,r=e.id,n=Qn(u.useState([]),2),o=n[0],i=n[1],a=u.useCallback((function(e){var t=e.element,r=(0,xn.A)(e,eo);i((function(e){if(0===e.length)return[(0,_.A)({},r,{element:t,index:0})];var n,o=function(e,t){for(var r=0,n=e.length-1;r<=n;){var o=Math.floor((r+n)/2);if(e[o].element===t)return o;e[o].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?n=o-1:r=o+1}return r}(e,t);if(e[o]&&e[o].element===t)n=e;else{var i=(0,_.A)({},r,{element:t,index:o});(n=e.slice()).splice(o,0,i)}return n.forEach((function(e,t){e.index=t})),n}))}),[]),s=u.useCallback((function(e){i((function(t){return t.filter((function(t){return e!==t.element}))}))}),[]),l=u.useMemo((function(){return{descendants:o,registerDescendant:a,unregisterDescendant:s,parentId:r}}),[o,a,s,r]);return(0,se.jsx)(to.Provider,{value:l,children:t})}function io(e){var t=e.value,r=e.children;return(0,se.jsx)(kn.Provider,{value:t,children:(0,se.jsx)(oo,{children:r})})}var ao=r(32540),so=function(e){var t=e.instance,r=e.params,n=e.models,o=u.useCallback((function(e){return!!Array.isArray(n.expanded.value)&&-1!==n.expanded.value.indexOf(e)}),[n.expanded.value]),i=u.useCallback((function(e){var r;return!(null==(r=t.getNode(e))||!r.expandable)}),[t]),a=(0,ao.A)((function(e,t){var o;null!=t&&(o=-1!==n.expanded.value.indexOf(t)?n.expanded.value.filter((function(e){return e!==t})):[t].concat(n.expanded.value),r.onNodeToggle&&r.onNodeToggle(e,o),n.expanded.setValue(o))}));Hn(t,{isNodeExpanded:o,isNodeExpandable:i,toggleNodeExpansion:a,expandAllSiblings:function(e,o){var i=t.getNode(o),a=t.getChildrenIds(i.parentId).filter((function(e){return t.isNodeExpandable(e)&&!t.isNodeExpanded(e)})),s=n.expanded.value.concat(a);a.length>0&&(n.expanded.setValue(s),r.onNodeToggle&&r.onNodeToggle(e,s))}})};so.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};var lo=[];so.getDefaultizedParams=function(e){var t;return(0,_.A)({},e,{defaultExpanded:null!=(t=e.defaultExpanded)?t:lo})};function uo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return co(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return co(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function co(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fo=function(e){var t=e.instance,r=e.params,n=e.models,o=u.useRef(null),i=u.useRef(!1),a=u.useRef([]),s=function(e,o){var s=n.selected.value.slice(),l=o.start,u=o.end;i.current&&(s=s.filter((function(e){return-1===a.current.indexOf(e)})));var c=function(e,r){for(var n=function(e,t,r){if(t===r)return[t,r];var n=e.getNode(t),o=e.getNode(r);if(n.parentId===o.id||o.parentId===n.id)return o.parentId===n.id?[n.id,o.id]:[o.id,n.id];for(var i=[n.id],a=[o.id],s=n.parentId,l=o.parentId,u=-1!==a.indexOf(s),c=-1!==i.indexOf(l),f=!0,d=!0;!c&&!u;)f&&(i.push(s),f=null!==s,!(u=-1!==a.indexOf(s))&&f&&(s=e.getNode(s).parentId)),d&&!u&&(a.push(l),d=null!==l,!(c=-1!==i.indexOf(l))&&d&&(l=e.getNode(l).parentId));var p=u?s:l,h=e.getChildrenIds(p),v=i[i.indexOf(p)-1],g=a[a.indexOf(p)-1];return h.indexOf(v)<h.indexOf(g)?[t,r]:[r,t]}(t,e,r),o=uo(n,2),i=o[0],a=o[1],s=[i],l=i;l!==a;)l=Wn(t,l),s.push(l);return s}(l,u);c=c.filter((function(e){return!t.isNodeDisabled(e)})),a.current=c;var f=s.concat(c);f=f.filter((function(e,t){return f.indexOf(e)===t})),r.onNodeSelect&&r.onNodeSelect(e,f),n.selected.setValue(f)};return Hn(t,{isNodeSelected:function(e){return Array.isArray(n.selected.value)?-1!==n.selected.value.indexOf(e):n.selected.value===e},selectNode:function(e,t){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r.disableSelection){if(s){var l;if(Array.isArray(n.selected.value))l=-1!==n.selected.value.indexOf(t)?n.selected.value.filter((function(e){return e!==t})):[t].concat(n.selected.value),r.onNodeSelect&&r.onNodeSelect(e,l),n.selected.setValue(l)}else{var u=r.multiSelect?[t]:t;r.onNodeSelect&&r.onNodeSelect(e,u),n.selected.setValue(u)}o.current=t,i.current=!1,a.current=[]}},selectRange:function(e,t){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r.disableSelection){var u=t.start,c=void 0===u?o.current:u,f=t.end,d=t.current;l?function(e,t){var o=n.selected.value.slice(),s=t.start,l=t.next,u=t.current;l&&u&&(-1===a.current.indexOf(u)&&(a.current=[]),i.current?-1!==a.current.indexOf(l)?(o=o.filter((function(e){return e===s||e!==u})),a.current=a.current.filter((function(e){return e===s||e!==u}))):(o.push(l),a.current.push(l)):(o.push(l),a.current.push(u,l)),r.onNodeSelect&&r.onNodeSelect(e,o),n.selected.setValue(o))}(e,{start:c,next:f,current:d}):null!=c&&null!=f&&s(e,{start:c,end:f}),i.current=!0}},rangeSelectToLast:function(e,r){o.current||(o.current=r);var n=i.current?o.current:r;t.selectRange(e,{start:n,end:Bn(t)})},rangeSelectToFirst:function(e,r){o.current||(o.current=r);var n=i.current?o.current:r;t.selectRange(e,{start:n,end:Fn(t)})}}),{getRootProps:function(){return{"aria-multiselectable":r.multiSelect}}}};fo.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};var po=[];fo.getDefaultizedParams=function(e){var t,r,n;return(0,_.A)({},e,{disableSelection:null!=(t=e.disableSelection)&&t,multiSelect:null!=(r=e.multiSelect)&&r,defaultSelected:null!=(n=e.defaultSelected)?n:e.multiSelect?po:null})};var ho=r(92266);function vo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,go(n.key),n)}}function go(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var mo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}var t,r,n;return t=e,(r=[{key:"register",value:function(e,t,r){var n=this;this.timeouts||(this.timeouts=new Map);var o=setTimeout((function(){"function"==typeof t&&t(),n.timeouts.delete(r.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}},{key:"unregister",value:function(e){var t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}},{key:"reset",value:function(){var e=this;this.timeouts&&(this.timeouts.forEach((function(t,r){e.unregister({cleanupToken:r})})),this.timeouts=void 0)}}])&&vo(t.prototype,r),n&&vo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function yo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bo(n.key),n)}}function bo(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var wo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.registry=new FinalizationRegistry((function(e){"function"==typeof e&&e()}))}var t,r,n;return t=e,(r=[{key:"register",value:function(e,t,r){this.registry.register(e,t,r)}},{key:"unregister",value:function(e){this.registry.unregister(e)}},{key:"reset",value:function(){}}])&&yo(t.prototype,r),n&&yo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Oo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function So(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Po(n.key),n)}}function Ao(e,t,r){return t&&So(e.prototype,t),r&&So(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Po(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var jo=Ao((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));var Eo={registry:null},Io=function(e){var t=0;return function(r,n,o){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new wo:new mo);var i=Oo(u.useState(new jo),1)[0],a=u.useRef(null),s=u.useRef();s.current=o;var l=u.useRef(null);if(!a.current&&s.current){a.current=r.$$subscribeEvent(n,(function(e,t){var r;t.defaultMuiPrevented||(null==(r=s.current)||r.call(s,e,t))})),t+=1,l.current={cleanupToken:t},e.registry.register(i,(function(){var e;null==(e=a.current)||e.call(a),a.current=null,l.current=null}),l.current)}else!s.current&&a.current&&(a.current(),a.current=null,l.current&&(e.registry.unregister(l.current),l.current=null));u.useEffect((function(){if(!a.current&&s.current){a.current=r.$$subscribeEvent(n,(function(e,t){var r;t.defaultMuiPrevented||(null==(r=s.current)||r.call(s,e,t))}))}return l.current&&e.registry&&(e.registry.unregister(l.current),l.current=null),function(){var e;null==(e=a.current)||e.call(a),a.current=null}}),[r,n])}}(Eo),To=function(e){var t=e.instance,r=e.params,n=e.state,o=e.setState,i=e.models,a=e.rootRef,s=(0,ao.A)((function(e){var t="function"==typeof e?e(n.focusedNodeId):e;o((function(e){return(0,_.A)({},e,{focusedNodeId:t})}))})),l=u.useCallback((function(e){return n.focusedNodeId===e}),[n.focusedNodeId]),c=(0,ao.A)((function(e,t){t&&(s(t),r.onNodeFocus&&r.onNodeFocus(e,t))}));Hn(t,{isNodeFocused:l,focusNode:c}),Io(t,"removeNode",(function(e){var r=e.id;s((function(e){return e===r&&a.current===(0,ho.A)(a.current).activeElement?t.getChildrenIds(null)[0]:e}))}));var f=function(e){return function(r){var n;if(null==(n=e.onFocus)||n.call(e,r),r.target===r.currentTarget){var o,a=function(e){var r=t.getNode(e);return r&&(null==r.parentId||t.isNodeExpanded(r.parentId))};Array.isArray(i.selected.value)?o=i.selected.value.find(a):null!=i.selected.value&&a(i.selected.value)&&(o=i.selected.value),null==o&&(o=t.getNavigableChildrenIds(null)[0]),t.focusNode(r,o)}}},d=function(e){return function(t){var r;null==(r=e.onBlur)||r.call(e,t),s(null)}},p=t.getNode(n.focusedNodeId),h=p?p.idAttribute:null;return{getRootProps:function(e){return{onFocus:f(e),onBlur:d(e),"aria-activedescendant":null!=h?h:void 0}}}};To.getInitialState=function(){return{focusedNodeId:null}},To.getDefaultizedParams=function(e){var t;return(0,_.A)({},e,{disabledItemsFocusable:null!=(t=e.disabledItemsFocusable)&&t})};var Co=r(77682);function ko(e,t,r){for(var n=t;n<e.length;n+=1)if(r===e[n])return n;return-1}var _o=r(70946),Ro=[function(e){var t=e.instance,r=e.params,n=u.useRef({}),o=u.useCallback((function(e){return n.current[e]}),[]),i=u.useCallback((function(e){n.current[e.id]=e}),[]),a=u.useCallback((function(e){var r=(0,_.A)({},n.current);delete r[e],n.current=r,function(e,t,r){e.$$publishEvent(t,r)}(t,"removeNode",{id:e})}),[t]),s=u.useCallback((function(e){if(null==e)return!1;var r=t.getNode(e);if(!r)return!1;if(r.disabled)return!0;for(;null!=r.parentId;)if((r=t.getNode(r.parentId)).disabled)return!0;return!1}),[t]),l=(0,ao.A)((function(e){return Object.values(n.current).filter((function(t){return t.parentId===e})).sort((function(e,t){return e.index-t.index})).map((function(e){return e.id}))}));Hn(t,{getNode:o,updateNode:i,removeNode:a,getChildrenIds:l,getNavigableChildrenIds:function(e){var n=t.getChildrenIds(e);return r.disabledItemsFocusable||(n=n.filter((function(e){return!t.isNodeDisabled(e)}))),n},isNodeDisabled:s})},so,fo,To,function(e){var t=e.instance,r=e.params,n=e.state,o="rtl"===(0,Co.A)().direction,i=u.useRef({}),a=(0,ao.A)((function(e,t){return i.current[e]=t,function(){var t=(0,_.A)({},i.current);delete t[e],i.current=t}}));Hn(t,{mapFirstChar:a});var s=function(e){return null!=n.focusedNodeId&&t.isNodeExpandable(n.focusedNodeId)&&(t.isNodeExpanded(n.focusedNodeId)?t.focusNode(e,Wn(t,n.focusedNodeId)):t.isNodeDisabled(n.focusedNodeId)||t.toggleNodeExpansion(e,n.focusedNodeId)),!0},l=function(e){if(null==n.focusedNodeId)return!1;if(t.isNodeExpanded(n.focusedNodeId)&&!t.isNodeDisabled(n.focusedNodeId))return t.toggleNodeExpansion(e,n.focusedNodeId),!0;var r=t.getNode(n.focusedNodeId).parentId;return!!r&&(t.focusNode(e,r),!0)},c=function(e){return function(a){var u;null==(u=e.onKeyDown)||u.call(e,a);var c=!1,f=a.key;if(!a.altKey&&a.currentTarget===a.target&&null!=n.focusedNodeId){var d=a.ctrlKey||a.metaKey;switch(f){case" ":r.disableSelection||t.isNodeDisabled(n.focusedNodeId)||(c=!0,r.multiSelect&&a.shiftKey?t.selectRange(a,{end:n.focusedNodeId}):r.multiSelect?t.selectNode(a,n.focusedNodeId,!0):t.selectNode(a,n.focusedNodeId)),a.stopPropagation();break;case"Enter":t.isNodeDisabled(n.focusedNodeId)||(t.isNodeExpandable(n.focusedNodeId)?(t.toggleNodeExpansion(a,n.focusedNodeId),c=!0):r.disableSelection||(c=!0,r.multiSelect?t.selectNode(a,n.focusedNodeId,!0):t.selectNode(a,n.focusedNodeId))),a.stopPropagation();break;case"ArrowDown":r.multiSelect&&a.shiftKey&&!r.disableSelection&&function(e,r){t.isNodeDisabled(Wn(t,r))||t.selectRange(e,{end:Wn(t,r),current:r},!0)}(a,n.focusedNodeId),t.focusNode(a,Wn(t,n.focusedNodeId)),c=!0;break;case"ArrowUp":r.multiSelect&&a.shiftKey&&!r.disableSelection&&function(e,r){t.isNodeDisabled(zn(t,r))||t.selectRange(e,{end:zn(t,r),current:r},!0)}(a,n.focusedNodeId),t.focusNode(a,zn(t,n.focusedNodeId)),c=!0;break;case"ArrowRight":c=o?l(a):s(a);break;case"ArrowLeft":c=o?s(a):l(a);break;case"Home":r.multiSelect&&d&&a.shiftKey&&!r.disableSelection&&!t.isNodeDisabled(n.focusedNodeId)&&t.rangeSelectToFirst(a,n.focusedNodeId),t.focusNode(a,Fn(t)),c=!0;break;case"End":r.multiSelect&&d&&a.shiftKey&&!r.disableSelection&&!t.isNodeDisabled(n.focusedNodeId)&&t.rangeSelectToLast(a,n.focusedNodeId),t.focusNode(a,Bn(t)),c=!0;break;default:"*"===f?(t.expandAllSiblings(a,n.focusedNodeId),c=!0):r.multiSelect&&d&&"a"===f.toLowerCase()&&!r.disableSelection?(t.selectRange(a,{start:Fn(t),end:Bn(t)}),c=!0):d||a.shiftKey||!function(e){return e&&1===e.length&&e.match(/\S/)}(f)||(!function(e,n,o){var a,s,l=o.toLowerCase(),u=[],c=[];Object.keys(i.current).forEach((function(e){var n=t.getNode(e),o=!n.parentId||t.isNodeExpanded(n.parentId),a=!r.disabledItemsFocusable&&t.isNodeDisabled(e);o&&!a&&(u.push(e),c.push(i.current[e]))})),(a=u.indexOf(n)+1)>=u.length&&(a=0),-1===(s=ko(c,a,l))&&(s=ko(c,0,l)),s>-1&&t.focusNode(e,u[s])}(a,n.focusedNodeId,f),c=!0)}c&&(a.preventDefault(),a.stopPropagation())}}};return{getRootProps:function(e){return{onKeyDown:c(e)}}}},function(e){var t=e.instance,r=e.params,n=(0,_o.A)(r.id);return{getRootProps:function(){return{id:n}},contextValue:{treeId:n,instance:t,multiSelect:r.multiSelect,disabledItemsFocusable:r.disabledItemsFocusable,icons:{defaultCollapseIcon:r.defaultCollapseIcon,defaultEndIcon:r.defaultEndIcon,defaultExpandIcon:r.defaultExpandIcon,defaultParentIcon:r.defaultParentIcon}}}}],No=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],Do=(0,oe.Ay)("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:0,margin:0,listStyle:"none",outline:0}),Mo=u.forwardRef((function(e,t){var r=(0,Sn.A)({props:e,name:"MuiTreeView"}),n=r,o=r,i=o.disabledItemsFocusable,a=o.expanded,s=o.defaultExpanded,l=o.onNodeToggle,u=o.onNodeFocus,c=o.disableSelection,f=o.defaultSelected,d=o.selected,p=o.multiSelect,h=o.onNodeSelect,v=o.id,g=o.defaultCollapseIcon,m=o.defaultEndIcon,y=o.defaultExpandIcon,b=o.defaultParentIcon,w=o.children,O=(0,xn.A)(o,No),x=Xn({disabledItemsFocusable:i,expanded:a,defaultExpanded:s,onNodeToggle:l,onNodeFocus:u,disableSelection:c,defaultSelected:f,selected:d,multiSelect:p,onNodeSelect:h,id:v,defaultCollapseIcon:g,defaultEndIcon:m,defaultExpandIcon:y,defaultParentIcon:b,plugins:Ro,rootRef:t}),S=x.getRootProps,A=x.contextValue,P=function(e){var t=e.classes;return(0,An.A)({root:["root"]},In,t)}(r),j=(0,Pn.Q)({elementType:Do,externalSlotProps:{},externalForwardedProps:O,className:P.root,getSlotProps:S,ownerState:n});return(0,se.jsx)(io,{value:A,children:(0,se.jsx)(Do,(0,_.A)({},j,{children:w}))})})),Lo=r(52371),zo=r(87645),Wo=r(20997),Bo=r(36463),Fo=function(){return u.useContext(kn)};var Ho=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],Uo=u.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.displayIcon,i=e.expansionIcon,a=e.icon,s=e.label,l=e.nodeId,u=e.onClick,c=e.onMouseDown,f=(0,xn.A)(e,Ho),d=function(e){var t=Fo(),r=t.instance,n=t.multiSelect,o=!!r&&r.isNodeExpandable(e),i=!!r&&r.isNodeExpanded(e),a=!!r&&r.isNodeFocused(e),s=!!r&&r.isNodeSelected(e),l=!!r&&r.isNodeDisabled(e);return{disabled:l,expanded:i,selected:s,focused:a,handleExpansion:function(t){if(r&&!l){a||r.focusNode(t,e);var i=n&&(t.shiftKey||t.ctrlKey||t.metaKey);!o||i&&r.isNodeExpanded(e)||r.toggleNodeExpansion(t,e)}},handleSelection:function(t){r&&!l&&(a||r.focusNode(t,e),n&&(t.shiftKey||t.ctrlKey||t.metaKey)?t.shiftKey?r.selectRange(t,{end:e}):r.selectNode(t,e,!0):r.selectNode(t,e))},preventSelection:function(e){(e.shiftKey||e.ctrlKey||e.metaKey||l)&&e.preventDefault()}}}(l),p=d.disabled,h=d.expanded,v=d.selected,g=d.focused,m=d.handleExpansion,y=d.handleSelection,b=d.preventSelection,w=a||i||o;return(0,se.jsxs)("div",(0,_.A)({},f,{className:(0,Wo.A)(n,r.root,h&&r.expanded,v&&r.selected,g&&r.focused,p&&r.disabled),onClick:function(e){m(e),y(e),u&&u(e)},onMouseDown:function(e){b(e),c&&c(e)},ref:t,children:[(0,se.jsx)("div",{className:r.iconContainer,children:w}),(0,se.jsx)("div",{className:r.label,children:s})]}))}));function Vo(e){return(0,jn.Ay)("MuiTreeItem",e)}var Go=(0,En.A)("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]);function qo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ko(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ko(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $o(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zo=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Xo=(0,oe.Ay)("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:function(e,t){return t.root}})({listStyle:"none",margin:0,padding:0,outline:0}),Yo=(0,oe.Ay)(Uo,{name:"MuiTreeItem",slot:"Content",overridesResolver:function(e,t){return[t.content,t.iconContainer&&$o({},"& .".concat(Go.iconContainer),t.iconContainer),t.label&&$o({},"& .".concat(Go.label),t.label)]}})((function(e){var t=e.theme;return $o($o($o($o($o({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(Go.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity,backgroundColor:"transparent"}),"&.".concat(Go.focused),{backgroundColor:(t.vars||t).palette.action.focus}),"&.".concat(Go.selected),$o({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,On.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,On.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,On.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},"&.".concat(Go.focused),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,On.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})),"& .".concat(Go.iconContainer),{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}}),"& .".concat(Go.label),(0,_.A)({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},t.typography.body1))})),Qo=(0,oe.Ay)(Bo.A,{name:"MuiTreeItem",slot:"Group",overridesResolver:function(e,t){return t.group}})({margin:0,padding:0,marginLeft:17}),Jo=u.forwardRef((function(e,t){var r,n=(0,Sn.A)({props:e,name:"MuiTreeItem"}),o=n.children,i=n.className,a=n.collapseIcon,s=n.ContentComponent,l=void 0===s?Uo:s,c=n.ContentProps,f=n.endIcon,d=n.expandIcon,p=n.disabled,h=n.icon,v=n.id,g=n.label,m=n.nodeId,y=n.onClick,b=n.onMouseDown,w=n.TransitionComponent,O=void 0===w?Bo.A:w,x=n.TransitionProps,S=(0,xn.A)(n,Zo),A=Fo(),P=A.icons,j=A.multiSelect,E=A.disabledItemsFocusable,I=A.treeId,T=A.instance;null!=v?r=v:I&&m&&(r="".concat(I,"-").concat(m));var C,k,R,N=qo(u.useState(null),2),D=N[0],M=N[1],L=u.useRef(null),z=(0,Tn.A)(M,t),W=no(u.useMemo((function(){return{element:D,id:m}}),[m,D])),B=W.index,F=W.parentId,H=Boolean(Array.isArray(o)?o.length:o),U=!!T&&T.isNodeExpanded(m),V=!!T&&T.isNodeFocused(m),G=!!T&&T.isNodeSelected(m),q=!!T&&T.isNodeDisabled(m),K=(0,_.A)({},n,{expanded:U,focused:V,selected:G,disabled:q}),$=function(e){var t=e.classes;return(0,An.A)({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},Vo,t)}(K);return H&&(k=U?a||P.defaultCollapseIcon:d||P.defaultExpandIcon),C=H?P.defaultParentIcon:f||P.defaultEndIcon,u.useEffect((function(){if(T&&-1!==B)return T.updateNode({id:m,idAttribute:r,index:B,parentId:F,expandable:H,disabled:p}),function(){return T.removeNode(m)}}),[T,F,B,m,H,p,r]),u.useEffect((function(){var e,t;if(T&&g)return T.mapFirstChar(m,(null!=(e=null==(t=L.current)?void 0:t.textContent)?e:"").substring(0,1).toLowerCase())}),[T,m,g]),j?R=G:G&&(R=!0),(0,se.jsxs)(Xo,(0,_.A)({className:(0,Wo.A)($.root,i),role:"treeitem","aria-expanded":H?U:void 0,"aria-selected":R,"aria-disabled":q||void 0,id:r,tabIndex:-1},S,{ownerState:K,onFocus:function(e){e.target===e.currentTarget&&("function"==typeof e.target.getRootNode?e.target.getRootNode():(0,ho.A)(e.target)).getElementById(I).focus({preventScroll:!0});var t=!E&&q;!T||V||e.currentTarget!==e.target||t||T.focusNode(e,m)},ref:z,children:[(0,se.jsx)(Yo,(0,_.A)({as:l,ref:L,classes:{root:$.content,expanded:$.expanded,selected:$.selected,focused:$.focused,disabled:$.disabled,iconContainer:$.iconContainer,label:$.label},label:g,nodeId:m,onClick:y,onMouseDown:b,icon:h,expansionIcon:k,displayIcon:C,ownerState:K},c)),o&&(0,se.jsx)(oo,{id:m,children:(0,se.jsx)(Qo,(0,_.A)({as:O,unmountOnExit:!0,className:$.group,in:U,component:"ul",role:"group"},x,{children:o}))})]}))})),ei=["children","nodeId"];function ti(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ci(n.key),n)}}function ri(e,t,r){return t=oi(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ii(e)}(e,ni()?Reflect.construct(t,r||[],oi(e).constructor):t.apply(e,r))}function ni(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ni=function(){return!!e})()}function oi(e){return oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oi(e)}function ii(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(e,t){return ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ai(e,t)}function si(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function li(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?si(Object(r),!0).forEach((function(t){ui(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):si(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ui(e,t,r){return(t=ci(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ci(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function fi(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var di=(0,oe.Ay)("div")((function(){return{}}));function pi(e,t){if(e.id===t)return e;var r=null;if(e.nodes)for(var n=0;null==r&&n<e.nodes.length;n+=1)r=pi(e.nodes[n],t);return r}var hi=function(e){var t=e.children,r=(e.nodeId,fi(e,ei));return(0,se.jsx)(dt,li(li({},r),{},{children:t}))},vi=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=ri(this,t,[e])).handleNodeSelect=r.handleNodeSelect.bind(ii(r)),r.handleNodeToggle=r.handleNodeToggle.bind(ii(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ai(e,t)}(t,e),r=t,(n=[{key:"handleNodeSelect",value:function(e,t){var r=this.props.toggleNode;" "!==e.key&&"Spacebar"!==e.key||r(t),this.selectTreeItem(t)}},{key:"handleNodeToggle",value:function(e,t){(0,this.props.expandNodes)(t)}},{key:"selectTreeItem",value:function(e){var t=this.props,r=t.setCanvas,n=t.treeStructure,o=t.windowId,i=pi(n,e);if(i.data.getCanvasIds()&&0!==i.data.getCanvasIds().length&&!(i.nodes.length>0)){var a=function(e){var t=e.data.__jsonld;if(t.startCanvas&&"string"==typeof t.startCanvas)return t.startCanvas;if(t.start){if("Canvas"===t.start.type&&"string"==typeof t.start.id)return t.start.id;if("SpecificResource"===t.start.type&&"string"==typeof t.start.source)return t.start.source}return e.data.getCanvasIds()[0]}(i);r(o,-1===a.indexOf("#")?a:a.substr(0,a.indexOf("#")))}}},{key:"render",value:function(){var e=this.props,t=e.treeStructure,r=e.visibleNodeIds,n=e.expandedNodeIds,o=e.containerRef,i=e.nodeIdToScrollTo;if(!t)return null;var a=function e(t){return(0,se.jsx)(hi,{containerRef:o,nodeId:t.id,offsetTop:96,scrollTo:i===t.id,children:(0,se.jsx)(Jo,{nodeId:t.id,sx:{"& .MuiTreeItem-content":{alignItems:"flex-start",borderLeft:"1px solid transparent",padding:"8px 16px 8px 0",width:"auto"},"& .MuiTreeItem-group":{borderLeft:"1px solid",borderLeftColor:"grey.300"},"& .MuiTreeItem-iconContainer":{paddingBlockStart:.5},"& .MuiTreeItem-label":{paddingLeft:0},"& .MuiTreeItem-root":{"&:focus > .MuiTreeItem-content":{backgroundColor:"action.selected"},"&:hover > .MuiTreeItem-content":{backgroundColor:"action.hover"},"&:hover > .MuiTreeItem-content .MuiTreeItem-label, &:focus > .MuiTreeItem-content .MuiTreeItem-label, &.MuiTreeItem-selected > .MuiTreeItem-content .MuiTreeItem-label, &.MuiTreeItem-selected > .MuiTreeItem-content .MuiTreeItem-label:hover, &.MuiTreeItem-selected:focus > .MuiTreeItem-content .MuiTreeItem-label":{backgroundColor:"transparent"}}},label:(0,se.jsx)(di,{sx:function(e){var n;return{backgroundColor:-1!==r.indexOf(t.id)&&(0,On.X4)((null===(n=e.palette.highlights)||void 0===n?void 0:n.primary)||e.palette.action.selected,.35),display:-1!==r.indexOf(t.id)&&"inline"}},children:t.label}),children:Array.isArray(t.nodes)?t.nodes.map((function(t){return e(t)})):null})},t.id)};return(0,se.jsx)(Mo,{sx:{flexGrow:1},defaultCollapseIcon:(0,se.jsx)(Lo.A,{color:"action"}),defaultExpandIcon:(0,se.jsx)(zo.A,{color:"action"}),defaultEndIcon:null,onNodeSelect:this.handleNodeSelect,onNodeToggle:this.handleNodeToggle,expanded:n,children:Array.isArray(t.nodes)?t.nodes.map((function(e){return a(e)})):null})}}])&&ti(r.prototype,n),o&&ti(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component),gi=r(90176);const mi=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.id,n=t.windowId;return{expandedNodeIds:(0,gi.S)(e,{companionWindowId:r,windowId:n}),nodeIdToScrollTo:(0,gi.rK)(e,{companionWindowId:r,windowId:n}),treeStructure:(0,Te.P8)(e,{windowId:n}),visibleNodeIds:(0,gi.BB)(e,{companionWindowId:r,windowId:n})}}),(function(e,t){var r=t.id,n=t.windowId;return{expandNodes:function(t){return e(Rt.iB(n,r,t))},setCanvas:function(){return e(l.h5.apply(re,arguments))},toggleNode:function(t){return e(Rt.TN(n,r,t))}}})),(0,s.h)("SidebarIndexTableOfContents"))(vi);function yi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bi(n.key),n)}}function bi(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function wi(e,t,r){return t=xi(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Si(e)}(e,Oi()?Reflect.construct(t,r||[],xi(e).constructor):t.apply(e,r))}function Oi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oi=function(){return!!e})()}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xi(e)}function Si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ai(e,t)}var Pi=(0,oe.Ay)("div")((function(){return{flexBasis:"100%",height:0}})),ji=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=wi(this,t,[e])).handleSequenceChange=r.handleSequenceChange.bind(Si(r)),r.handleVariantChange=r.handleVariantChange.bind(Si(r)),r.containerRef=(0,u.createRef)(),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}(t,e),r=t,n=[{key:"handleSequenceChange",value:function(e){(0,this.props.updateSequence)(e.target.value)}},{key:"handleVariantChange",value:function(e,t){(0,this.props.updateVariant)(t)}},{key:"render",value:function(){var e,r=this.props,n=r.collection,o=r.id,i=r.showMultipart,a=r.sequenceId,s=r.sequences,l=r.t,u=r.variant,c=r.showToc,f=r.windowId;return e="tableOfContents"===u?(0,se.jsx)(mi,{id:o,containerRef:this.containerRef,windowId:f}):(0,se.jsx)(wn,{id:o,containerRef:this.containerRef,windowId:f}),(0,se.jsx)(St.A,{title:l("canvasIndex"),id:o,windowId:f,ref:this.containerRef,titleControls:(0,se.jsxs)(se.Fragment,{children:[s&&s.length>1&&(0,se.jsx)(Zt.A,{children:(0,se.jsx)(Xt.A,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"}},displayEmpty:!0,value:a,onChange:this.handleSequenceChange,name:"sequenceId",sx:{"&.MuiSelect-select":{"&:focus":{backgroundColor:"background.paper"}},backgroundColor:"background.paper"},"data-testid":"sequence-select",children:s.map((function(e,r){return(0,se.jsx)(Ye.A,{value:e.id,children:(0,se.jsx)(Me.A,{variant:"body2",children:t.getUseableLabel(e,r)})},e.id)}))})}),(0,se.jsx)(Pi,{}),(0,se.jsxs)(Br.A,{value:u,onChange:this.handleVariantChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary",children:[c&&(0,se.jsx)(Hr.A,{title:l("tableOfContentsList"),value:"tableOfContents",children:(0,se.jsx)(Fr.A,{sx:{minWidth:"auto"},value:"tableOfContents","aria-label":l("tableOfContentsList"),"aria-controls":"tab-panel-".concat(o),icon:(0,se.jsx)(Vr.A,{style:{transform:"scale(-1, 1)"}})})}),(0,se.jsx)(Hr.A,{title:l("itemList"),value:"item",children:(0,se.jsx)(Fr.A,{sx:{minWidth:"auto"},value:"item","aria-label":l("itemList"),"aria-controls":"tab-panel-".concat(o),icon:(0,se.jsx)(Ur.A,{})})}),(0,se.jsx)(Hr.A,{title:l("thumbnailList"),value:"thumbnail",children:(0,se.jsx)(Fr.A,{sx:{minWidth:"auto"},value:"thumbnail","aria-label":l("thumbnailList"),"aria-controls":"tab-panel-".concat(o),icon:(0,se.jsx)(lr.A,{})})})]})]}),children:(0,se.jsxs)("div",{id:"tab-panel-".concat(o),children:[n&&(0,se.jsx)(sr.A,{fullWidth:!0,onClick:i,endIcon:(0,se.jsx)(Gr.A,{}),children:(0,se.jsx)(Me.A,{sx:{textTransform:"none"},children:t.getUseableLabel(n)})}),e]})})}}],o=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():e.id}}],n&&yi(r.prototype,n),o&&yi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);ji.defaultProps={collection:null,sequenceId:null,sequences:[],showToc:!1};var Ei=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.id,n=t.windowId,o=(0,Te.P8)(e,{windowId:n}),i=(0,ke.zk)(e,{windowId:n}),a=e.config,s=(0,Ce.DS)(e,{companionWindowId:r}),l=i.collectionPath||[],u=l&&l[l.length-1],c=(0,Te.eb)(e,{windowId:n});return{collection:u&&(0,Nt.SG)(e,{manifestId:u}),config:a,sequenceId:c&&c.id,sequences:(0,Te.fO)(e,{windowId:n}),showToc:o&&o.nodes&&o.nodes.length>0,variant:s.variant||(0,gi.bT)(e,{windowId:n})}}),(function(e,t){var r=t.id,n=t.windowId;return{showMultipart:function(){return e(Rt.Yy(n,{content:"collection",position:"right"}))},updateSequence:function(t){return e(ar.uE(n,{sequenceId:t}))},updateVariant:function(t){return e(Rt.u3(n,r,{variant:t}))}}})),(0,s.h)("WindowSideBarCanvasPanel"));const Ii=Ei(ji);var Ti=r(14878),Ci=r(23420);function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(r),!0).forEach((function(t){Ri(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ri(e,t,r){return(t=Di(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ni(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Di(n.key),n)}}function Di(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Mi(e,t,r){return t=zi(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Li()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function Li(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Li=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zi(e)}function Wi(e,t){return Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wi(e,t)}var Bi=(0,oe.Ay)(Ci.Img)((function(){return{maxWidth:"100%"}})),Fi=(0,oe.Ay)(Ti.A)((function(e){return{backgroundColor:e.theme.palette.grey[300]}})),Hi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Mi(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wi(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestLogo,r=e.requiredStatement,n=e.rights,o=e.windowId,i=e.id,a=e.t;return(0,se.jsxs)(St.A,{title:a("attributionTitle"),paperClassName:(0,ae.A)("attribution-panel"),windowId:o,id:i,children:[(0,se.jsxs)(At,{children:[r&&(0,se.jsx)(Mt.P,{labelValuePairs:r,defaultLabel:a("attribution")}),n&&n.length>0&&(0,se.jsxs)("dl",{className:(0,ae.A)("label-value-metadata"),children:[(0,se.jsx)(Me.A,{variant:"subtitle2",component:"dt",children:a("rights")}),n.map((function(e){return(0,se.jsx)(Me.A,{variant:"body1",component:"dd",children:(0,se.jsx)(br.A,{target:"_blank",rel:"noopener noreferrer",href:e,children:e})},e.toString())}))]})]}),t&&(0,se.jsx)(At,{children:(0,se.jsx)(Bi,{src:[t],alt:"",role:"presentation",unloader:(0,se.jsx)(Fi,{variant:"rectangular",height:60,width:60})})}),(0,se.jsx)(Lt.F,_i({},this.props))]})}}])&&Ni(r.prototype,n),o&&Ni(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Hi.defaultProps={manifestLogo:null,requiredStatement:null,rights:null,t:function(e){return e}};const Ui=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){t.id;var r=t.windowId;return{manifestLogo:(0,Nt.nB)(e,{windowId:r}),requiredStatement:(0,Nt.lj)(e,{windowId:r}),rights:(0,Nt._6)(e,{windowId:r})}})),(0,s.h)("AttributionPanel"))(Hi);var Vi=r(14369),Gi=r(63209),qi=r.n(Gi),Ki=r(38624),$i=r.n(Ki),Zi=r(78204),Xi=r.n(Zi),Yi=r(35714),Qi=r(64984),Ji=r(68490);function ea(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ta(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ta(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ra(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function na(e,t){for(var r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}var oa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,r=void 0===t||t,n=e.ignoreCase,o=void 0===n||n,i=e.limit,a=e.matchFrom,s=void 0===a?"any":a,l=e.stringify,u=e.trim,c=void 0!==u&&u;return function(e,t){var n=t.inputValue,a=t.getOptionLabel,u=c?n.trim():n;o&&(u=u.toLowerCase()),r&&(u=ra(u));var f=u?e.filter((function(e){var t=(l||a)(e);return o&&(t=t.toLowerCase()),r&&(t=ra(t)),"start"===s?0===t.indexOf(u):t.indexOf(u)>-1})):e;return"number"==typeof i?f.slice(0,i):f}}(),ia=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function aa(e){var t,r=e.unstable_isActiveElementInListbox,n=void 0===r?ia:r,o=e.unstable_classNamePrefix,i=void 0===o?"Mui":o,a=e.autoComplete,s=void 0!==a&&a,l=e.autoHighlight,c=void 0!==l&&l,f=e.autoSelect,d=void 0!==f&&f,p=e.blurOnSelect,h=void 0!==p&&p,v=e.clearOnBlur,g=void 0===v?!e.freeSolo:v,m=e.clearOnEscape,y=void 0!==m&&m,b=e.componentName,w=void 0===b?"useAutocomplete":b,O=e.defaultValue,x=void 0===O?e.multiple?[]:null:O,S=e.disableClearable,A=void 0!==S&&S,P=e.disableCloseOnSelect,j=void 0!==P&&P,E=e.disabled,I=e.disabledItemsFocusable,T=void 0!==I&&I,C=e.disableListWrap,k=void 0!==C&&C,R=e.filterOptions,N=void 0===R?oa:R,D=e.filterSelectedOptions,M=void 0!==D&&D,L=e.freeSolo,z=void 0!==L&&L,W=e.getOptionDisabled,B=e.getOptionKey,F=e.getOptionLabel,H=void 0===F?function(e){var t;return null!=(t=e.label)?t:e}:F,U=e.groupBy,V=e.handleHomeEndKeys,G=void 0===V?!e.freeSolo:V,q=e.id,K=e.includeInputInList,$=void 0!==K&&K,Z=e.inputValue,X=e.isOptionEqualToValue,Y=void 0===X?function(e,t){return e===t}:X,Q=e.multiple,J=void 0!==Q&&Q,ee=e.onChange,te=e.onClose,re=e.onHighlightChange,ne=e.onInputChange,oe=e.onOpen,ie=e.open,ae=e.openOnFocus,se=void 0!==ae&&ae,le=e.options,ue=e.readOnly,ce=void 0!==ue&&ue,fe=e.selectOnFocus,de=void 0===fe?!e.freeSolo:fe,pe=e.value,he=(0,_o.A)(q);t=function(e){var t=H(e);return"string"!=typeof t?String(t):t};var ve=u.useRef(!1),ge=u.useRef(!0),me=u.useRef(null),ye=u.useRef(null),be=ea(u.useState(null),2),we=be[0],Oe=be[1],xe=ea(u.useState(-1),2),Se=xe[0],Ae=xe[1],Pe=c?0:-1,je=u.useRef(Pe),Ee=ea((0,Yi.A)({controlled:pe,default:x,name:w}),2),Ie=Ee[0],Te=Ee[1],Ce=ea((0,Yi.A)({controlled:Z,default:"",name:w,state:"inputValue"}),2),ke=Ce[0],_e=Ce[1],Re=ea(u.useState(!1),2),Ne=Re[0],De=Re[1],Me=u.useCallback((function(e,r){if((J?Ie.length<r.length:null!==r)||g){var n;if(J)n="";else if(null==r)n="";else{var o=t(r);n="string"==typeof o?o:""}ke!==n&&(_e(n),ne&&ne(e,n,"reset"))}}),[t,ke,J,ne,_e,g,Ie]),Le=ea((0,Yi.A)({controlled:ie,default:!1,name:w,state:"open"}),2),ze=Le[0],We=Le[1],Be=ea(u.useState(!0),2),Fe=Be[0],He=Be[1],Ue=!J&&null!=Ie&&ke===t(Ie),Ve=ze&&!ce,Ge=Ve?N(le.filter((function(e){return!M||!(J?Ie:[Ie]).some((function(t){return null!==t&&Y(e,t)}))})),{inputValue:Ue&&Fe?"":ke,getOptionLabel:t}):[],qe=(0,Qi.A)({filteredOptions:Ge,value:Ie,inputValue:ke});u.useEffect((function(){var e=Ie!==qe.value;Ne&&!e||z&&!e||Me(null,Ie)}),[Ie,Me,Ne,qe.value,z]);var Ke=ze&&Ge.length>0&&!ce,$e=(0,ao.A)((function(e){-1===e?me.current.focus():we.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));u.useEffect((function(){J&&Se>Ie.length-1&&(Ae(-1),$e(-1))}),[Ie,J,Se,$e]);var Ze=(0,ao.A)((function(e){var t=e.event,r=e.index,n=e.reason,o=void 0===n?"auto":n;if(je.current=r,-1===r?me.current.removeAttribute("aria-activedescendant"):me.current.setAttribute("aria-activedescendant","".concat(he,"-option-").concat(r)),re&&re(t,-1===r?null:Ge[r],o),ye.current){var a=ye.current.querySelector('[role="option"].'.concat(i,"-focused"));a&&(a.classList.remove("".concat(i,"-focused")),a.classList.remove("".concat(i,"-focusVisible")));var s=ye.current;if("listbox"!==ye.current.getAttribute("role")&&(s=ye.current.parentElement.querySelector('[role="listbox"]')),s)if(-1!==r){var l=ye.current.querySelector('[data-option-index="'.concat(r,'"]'));if(l&&(l.classList.add("".concat(i,"-focused")),"keyboard"===o&&l.classList.add("".concat(i,"-focusVisible")),s.scrollHeight>s.clientHeight&&"mouse"!==o&&"touch"!==o)){var u=l,c=s.clientHeight+s.scrollTop,f=u.offsetTop+u.offsetHeight;f>c?s.scrollTop=f-s.clientHeight:u.offsetTop-u.offsetHeight*(U?1.3:0)<s.scrollTop&&(s.scrollTop=u.offsetTop-u.offsetHeight*(U?1.3:0))}}else s.scrollTop=0}})),Xe=(0,ao.A)((function(e){var r=e.event,n=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,l=void 0===a?"auto":a;if(Ve){var u=function(e,t){if(!ye.current||e<0||e>=Ge.length)return-1;for(var r=e;;){var n=ye.current.querySelector('[data-option-index="'.concat(r,'"]')),o=!T&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!o)return r;if((r="next"===t?(r+1)%Ge.length:(r-1+Ge.length)%Ge.length)===e)return-1}}(function(){var e=Ge.length-1;if("reset"===n)return Pe;if("start"===n)return 0;if("end"===n)return e;var t=je.current+n;return t<0?-1===t&&$?-1:k&&-1!==je.current||Math.abs(n)>1?0:e:t>e?t===e+1&&$?-1:k||Math.abs(n)>1?e:0:t}(),i);if(Ze({index:u,reason:l,event:r}),s&&"reset"!==n)if(-1===u)me.current.value=ke;else{var c=t(Ge[u]);me.current.value=c,0===c.toLowerCase().indexOf(ke.toLowerCase())&&ke.length>0&&me.current.setSelectionRange(ke.length,c.length)}}})),Ye=u.useCallback((function(){if(Ve){var e=function(){var e,r;if(-1!==je.current&&qe.filteredOptions&&qe.filteredOptions.length!==Ge.length&&qe.inputValue===ke&&(J?Ie.length===qe.value.length&&qe.value.every((function(e,r){return t(Ie[r])===t(e)})):(e=qe.value,r=Ie,(e?t(e):"")===(r?t(r):"")))){var n=qe.filteredOptions[je.current];if(n)return na(Ge,(function(e){return t(e)===t(n)}))}return-1}();if(-1===e){var r=J?Ie[0]:Ie;if(0!==Ge.length&&null!=r){if(ye.current)if(null==r)je.current>=Ge.length-1?Ze({index:Ge.length-1}):Ze({index:je.current});else{var n=Ge[je.current];if(J&&n&&-1!==na(Ie,(function(e){return Y(n,e)})))return;var o=na(Ge,(function(e){return Y(e,r)}));-1===o?Xe({diff:"reset"}):Ze({index:o})}}else Xe({diff:"reset"})}else je.current=e}}),[Ge.length,!J&&Ie,M,Xe,Ze,Ve,ke,J]),Qe=(0,ao.A)((function(e){(0,Ji.A)(ye,e),e&&Ye()}));u.useEffect((function(){Ye()}),[Ye]);var Je=function(e){ze||(We(!0),He(!0),oe&&oe(e))},et=function(e,t){ze&&(We(!1),te&&te(e,t))},tt=function(e,t,r,n){if(J){if(Ie.length===t.length&&Ie.every((function(e,r){return e===t[r]})))return}else if(Ie===t)return;ee&&ee(e,t,r,n),Te(t)},rt=u.useRef(!1),nt=function(e,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",o=t;if(J){var i=na(o=Array.isArray(Ie)?Ie.slice():[],(function(e){return Y(t,e)}));-1===i?o.push(t):"freeSolo"!==r&&(o.splice(i,1),n="removeOption")}Me(e,o),tt(e,o,n,{option:t}),j||e&&(e.ctrlKey||e.metaKey)||et(e,n),(!0===h||"touch"===h&&rt.current||"mouse"===h&&!rt.current)&&me.current.blur()};var ot=function(e,t){if(J){""===ke&&et(e,"toggleInput");var r=Se;-1===Se?""===ke&&"previous"===t&&(r=Ie.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===Ie.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;for(var r=e;;){if("next"===t&&r===Ie.length||"previous"===t&&-1===r)return-1;var n=we.querySelector('[data-tag-index="'.concat(r,'"]'));if(n&&n.hasAttribute("tabindex")&&!n.disabled&&"true"!==n.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),Ae(r),$e(r)}},it=function(e){ve.current=!0,_e(""),ne&&ne(e,"","clear"),tt(e,J?[]:null,"clear")},at=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Se&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Ae(-1),$e(-1)),229!==t.which))switch(t.key){case"Home":Ve&&G&&(t.preventDefault(),Xe({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ve&&G&&(t.preventDefault(),Xe({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Xe({diff:-5,direction:"previous",reason:"keyboard",event:t}),Je(t);break;case"PageDown":t.preventDefault(),Xe({diff:5,direction:"next",reason:"keyboard",event:t}),Je(t);break;case"ArrowDown":t.preventDefault(),Xe({diff:1,direction:"next",reason:"keyboard",event:t}),Je(t);break;case"ArrowUp":t.preventDefault(),Xe({diff:-1,direction:"previous",reason:"keyboard",event:t}),Je(t);break;case"ArrowLeft":ot(t,"previous");break;case"ArrowRight":ot(t,"next");break;case"Enter":if(-1!==je.current&&Ve){var r=Ge[je.current],n=!!W&&W(r);if(t.preventDefault(),n)return;nt(t,r,"selectOption"),s&&me.current.setSelectionRange(me.current.value.length,me.current.value.length)}else z&&""!==ke&&!1===Ue&&(J&&t.preventDefault(),nt(t,ke,"createOption","freeSolo"));break;case"Escape":Ve?(t.preventDefault(),t.stopPropagation(),et(t,"escape")):y&&(""!==ke||J&&Ie.length>0)&&(t.preventDefault(),t.stopPropagation(),it(t));break;case"Backspace":if(J&&!ce&&""===ke&&Ie.length>0){var o=-1===Se?Ie.length-1:Se,i=Ie.slice();i.splice(o,1),tt(t,i,"removeOption",{option:Ie[o]})}break;case"Delete":if(J&&!ce&&""===ke&&Ie.length>0&&-1!==Se){var a=Se,l=Ie.slice();l.splice(a,1),tt(t,l,"removeOption",{option:Ie[a]})}}}},st=function(e){De(!0),se&&!ve.current&&Je(e)},lt=function(e){n(ye)?me.current.focus():(De(!1),ge.current=!0,ve.current=!1,d&&-1!==je.current&&Ve?nt(e,Ge[je.current],"blur"):d&&z&&""!==ke?nt(e,ke,"blur","freeSolo"):g&&Me(e,Ie),et(e,"blur"))},ut=function(e){var t=e.target.value;ke!==t&&(_e(t),He(!1),ne&&ne(e,t,"input")),""===t?A||J||tt(e,null,"clear"):Je(e)},ct=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));je.current!==t&&Ze({event:e,index:t,reason:"mouse"})},ft=function(e){Ze({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),rt.current=!0},dt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));nt(e,Ge[t],"selectOption"),rt.current=!1},pt=function(e){return function(t){var r=Ie.slice();r.splice(e,1),tt(t,r,"removeOption",{option:Ie[e]})}},ht=function(e){ze?et(e,"toggleInput"):Je(e)},vt=function(e){e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==he&&e.preventDefault()},gt=function(e){e.currentTarget.contains(e.target)&&(me.current.focus(),de&&ge.current&&me.current.selectionEnd-me.current.selectionStart==0&&me.current.select(),ge.current=!1)},mt=function(e){E||""!==ke&&ze||ht(e)},yt=z&&ke.length>0;yt=yt||(J?Ie.length>0:null!==Ie);var bt=Ge;if(U){new Map;bt=Ge.reduce((function(e,t,r){var n=U(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e}),[])}return E&&Ne&&lt(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.A)({"aria-owns":Ke?"".concat(he,"-listbox"):null},e,{onKeyDown:at(e),onMouseDown:vt,onClick:gt})},getInputLabelProps:function(){return{id:"".concat(he,"-label"),htmlFor:he}},getInputProps:function(){return{id:he,value:ke,onBlur:lt,onFocus:st,onChange:ut,onMouseDown:mt,"aria-activedescendant":Ve?"":null,"aria-autocomplete":s?"both":"list","aria-controls":Ke?"".concat(he,"-listbox"):void 0,"aria-expanded":Ke,autoComplete:"off",ref:me,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:E}},getClearProps:function(){return{tabIndex:-1,type:"button",onClick:it}},getPopupIndicatorProps:function(){return{tabIndex:-1,type:"button",onClick:ht}},getTagProps:function(e){var t=e.index;return(0,_.A)({key:t,"data-tag-index":t,tabIndex:-1},!ce&&{onDelete:pt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(he,"-listbox"),"aria-labelledby":"".concat(he,"-label"),ref:Qe,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var r,n=e.index,o=e.option,i=(J?Ie:[Ie]).some((function(e){return null!=e&&Y(o,e)})),a=!!W&&W(o);return{key:null!=(r=null==B?void 0:B(o))?r:t(o),tabIndex:-1,role:"option",id:"".concat(he,"-option-").concat(n),onMouseMove:ct,onClick:dt,onTouchStart:ft,"data-option-index":n,"aria-disabled":a,"aria-selected":i}},id:he,inputValue:ke,value:Ie,dirty:yt,expanded:Ve&&we,popupOpen:Ve,focused:Ne||-1!==Se,anchorEl:we,setAnchorEl:Oe,focusedTag:Se,groupedOptions:bt}}var sa=r(83032),la=r(61161),ua=r(84774),ca=r(33237),fa=r(56756),da=r(34640),pa=r(48576),ha=r(98920),va=r(38569),ga=r(86673);function ma(e){return(0,jn.Ay)("MuiAutocomplete",e)}const ya=(0,En.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var ba,wa,Oa=r(71905),xa=r(84147);function Sa(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Aa=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Pa=["ref"],ja=(0,oe.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState,n=r.fullWidth,o=r.hasClearIcon,i=r.hasPopupIcon,a=r.inputFocused,s=r.size;return[Sa({},"& .".concat(ya.tag),t.tag),Sa({},"& .".concat(ya.tag),t["tagSize".concat((0,Oa.A)(s))]),Sa({},"& .".concat(ya.inputRoot),t.inputRoot),Sa({},"& .".concat(ya.input),t.input),Sa({},"& .".concat(ya.input),a&&t.inputFocused),t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})((function(e){var t,r=e.ownerState;return(0,_.A)(Sa(Sa({},"&.".concat(ya.focused," .").concat(ya.clearIndicator),{visibility:"visible"}),"@media (pointer: fine)",Sa({},"&:hover .".concat(ya.clearIndicator),{visibility:"visible"})),r.fullWidth&&{width:"100%"},(Sa(Sa(Sa(Sa(Sa(Sa(Sa(Sa(Sa(Sa(t={},"& .".concat(ya.tag),(0,_.A)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===r.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),"& .".concat(ya.inputRoot),Sa(Sa(Sa({flexWrap:"wrap"},".".concat(ya.hasPopupIcon,"&, .").concat(ya.hasClearIcon,"&"),{paddingRight:30}),".".concat(ya.hasPopupIcon,".").concat(ya.hasClearIcon,"&"),{paddingRight:56}),"& .".concat(ya.input),{width:0,minWidth:30})),"& .".concat(fa.A.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),"& .".concat(fa.A.root,".").concat(da.A.sizeSmall),Sa({},"& .".concat(fa.A.input),{padding:"2px 4px 3px 0"})),"& .".concat(pa.A.root),Sa(Sa(Sa(Sa({padding:9},".".concat(ya.hasPopupIcon,"&, .").concat(ya.hasClearIcon,"&"),{paddingRight:39}),".".concat(ya.hasPopupIcon,".").concat(ya.hasClearIcon,"&"),{paddingRight:65}),"& .".concat(ya.input),{padding:"7.5px 4px 7.5px 5px"}),"& .".concat(ya.endAdornment),{right:9})),"& .".concat(pa.A.root,".").concat(da.A.sizeSmall),Sa({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(ya.input),{padding:"2.5px 4px 2.5px 8px"})),"& .".concat(ha.A.root),Sa(Sa(Sa(Sa({paddingTop:19,paddingLeft:8},".".concat(ya.hasPopupIcon,"&, .").concat(ya.hasClearIcon,"&"),{paddingRight:39}),".".concat(ya.hasPopupIcon,".").concat(ya.hasClearIcon,"&"),{paddingRight:65}),"& .".concat(ha.A.input),{padding:"7px 4px"}),"& .".concat(ya.endAdornment),{right:9})),"& .".concat(ha.A.root,".").concat(da.A.sizeSmall),Sa({paddingBottom:1},"& .".concat(ha.A.input),{padding:"2.5px 4px"})),"& .".concat(da.A.hiddenLabel),{paddingTop:8}),"& .".concat(ha.A.root,".").concat(da.A.hiddenLabel),Sa({paddingTop:0,paddingBottom:0},"& .".concat(ya.input),{paddingTop:16,paddingBottom:17})),Sa(Sa(t,"& .".concat(ha.A.root,".").concat(da.A.hiddenLabel,".").concat(da.A.sizeSmall),Sa({},"& .".concat(ya.input),{paddingTop:8,paddingBottom:9})),"& .".concat(ya.input),(0,_.A)({flexGrow:1,textOverflow:"ellipsis",opacity:0},r.inputFocused&&{opacity:1}))))})),Ea=(0,oe.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Ia=(0,oe.Ay)(ca.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),Ta=(0,oe.Ay)(ca.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var r=e.ownerState;return(0,_.A)({},t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,_.A)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),Ca=(0,oe.Ay)(la.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var r=e.ownerState;return[Sa({},"& .".concat(ya.option),t.option),t.popper,r.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,r=e.ownerState;return(0,_.A)({zIndex:(t.vars||t).zIndex.modal},r.disablePortal&&{position:"absolute"})})),ka=(0,oe.Ay)(c.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,_.A)({},t.typography.body1,{overflow:"auto"})})),_a=(0,oe.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Ra=(0,oe.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Na=(0,oe.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t=e.theme;return Sa({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(ya.option),Sa(Sa(Sa(Sa(Sa({minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},t.breakpoints.up("sm"),{minHeight:"auto"}),"&.".concat(ya.focused),{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),'&[aria-disabled="true"]',{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"}),"&.".concat(ya.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),'&[aria-selected="true"]',Sa(Sa({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,sa.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)},"&.".concat(ya.focused),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,sa.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}}),"&.".concat(ya.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,sa.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})))})),Da=(0,oe.Ay)(ua.A,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),Ma=(0,oe.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})(Sa({padding:0},"& .".concat(ya.option),{paddingLeft:24})),La=u.forwardRef((function(e,t){var r,n,o,i,a,s=(0,Sn.A)({props:e,name:"MuiAutocomplete"}),l=(s.autoComplete,s.autoHighlight,s.autoSelect,s.blurOnSelect,s.ChipProps),f=s.className,d=s.clearIcon,p=void 0===d?ba||(ba=(0,se.jsx)(va.A,{fontSize:"small"})):d,h=s.clearOnBlur,v=(void 0===h&&s.freeSolo,s.clearOnEscape,s.clearText),g=void 0===v?"Clear":v,m=s.closeText,y=void 0===m?"Close":m,b=s.componentsProps,w=void 0===b?{}:b,O=s.defaultValue,x=(void 0===O&&s.multiple,s.disableClearable),S=void 0!==x&&x,A=(s.disableCloseOnSelect,s.disabled),P=void 0!==A&&A,j=(s.disabledItemsFocusable,s.disableListWrap,s.disablePortal),E=void 0!==j&&j,I=(s.filterSelectedOptions,s.forcePopupIcon),T=void 0===I?"auto":I,C=s.freeSolo,k=void 0!==C&&C,R=s.fullWidth,N=void 0!==R&&R,D=s.getLimitTagsText,M=void 0===D?function(e){return"+".concat(e)}:D,L=s.getOptionLabel,z=s.groupBy,W=s.handleHomeEndKeys,B=(void 0===W&&s.freeSolo,s.includeInputInList,s.limitTags),F=void 0===B?-1:B,H=s.ListboxComponent,U=void 0===H?"ul":H,V=s.ListboxProps,G=s.loading,q=void 0!==G&&G,K=s.loadingText,$=void 0===K?"Loading…":K,Z=s.multiple,X=void 0!==Z&&Z,Y=s.noOptionsText,Q=void 0===Y?"No options":Y,J=(s.openOnFocus,s.openText),ee=void 0===J?"Open":J,te=s.PaperComponent,re=void 0===te?c.A:te,ne=s.PopperComponent,oe=void 0===ne?la.A:ne,ie=s.popupIcon,ae=void 0===ie?wa||(wa=(0,se.jsx)(ga.A,{})):ie,le=s.readOnly,ue=void 0!==le&&le,ce=s.renderGroup,fe=s.renderInput,de=s.renderOption,pe=s.renderTags,he=s.selectOnFocus,ve=(void 0===he&&s.freeSolo,s.size),ge=void 0===ve?"medium":ve,me=s.slotProps,ye=void 0===me?{}:me,be=(0,xn.A)(s,Aa),we=aa((0,_.A)({},s,{componentName:"Autocomplete"})),Oe=we.getRootProps,xe=we.getInputProps,Se=we.getInputLabelProps,Ae=we.getPopupIndicatorProps,Pe=we.getClearProps,je=we.getTagProps,Ee=we.getListboxProps,Ie=we.getOptionProps,Te=we.value,Ce=we.dirty,ke=we.expanded,_e=we.id,Re=we.popupOpen,Ne=we.focused,De=we.focusedTag,Me=we.anchorEl,Le=we.setAnchorEl,ze=we.inputValue,We=we.groupedOptions,Be=!S&&!P&&Ce&&!ue,Fe=(!k||!0===T)&&!1!==T,He=xe().onMouseDown,Ue=(null!=V?V:{}).ref,Ve=Ee(),Ge=Ve.ref,qe=(0,xn.A)(Ve,Pa),Ke=(0,xa.A)(Ge,Ue),$e=L||function(e){var t;return null!=(t=e.label)?t:e},Xe=(0,_.A)({},s,{disablePortal:E,expanded:ke,focused:Ne,fullWidth:N,getOptionLabel:$e,hasClearIcon:Be,hasPopupIcon:Fe,inputFocused:-1===De,popupOpen:Re,size:ge}),Ye=function(e){var t=e.classes,r=e.disablePortal,n=e.expanded,o=e.focused,i=e.fullWidth,a=e.hasClearIcon,s=e.hasPopupIcon,l=e.inputFocused,u=e.popupOpen,c=e.size,f={root:["root",n&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize".concat((0,Oa.A)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,An.A)(f,ma,t)}(Xe);if(X&&Te.length>0){var Qe=function(e){return(0,_.A)({className:Ye.tag,disabled:P},je(e))};a=pe?pe(Te,Qe,Xe):Te.map((function(e,t){return(0,se.jsx)(Ze.A,(0,_.A)({label:$e(e),size:ge},Qe({index:t}),l))}))}if(F>-1&&Array.isArray(a)){var Je=a.length-F;!Ne&&Je>0&&(a=a.splice(0,F)).push((0,se.jsx)("span",{className:Ye.tag,children:M(Je)},a.length))}var et=ce||function(e){return(0,se.jsxs)("li",{children:[(0,se.jsx)(Da,{className:Ye.groupLabel,ownerState:Xe,component:"div",children:e.group}),(0,se.jsx)(Ma,{className:Ye.groupUl,ownerState:Xe,children:e.children})]},e.key)},tt=de||function(e,t){return(0,u.createElement)("li",(0,_.A)({},e,{key:e.key}),$e(t))},rt=function(e,t){var r=Ie({option:e,index:t});return tt((0,_.A)({},r,{className:Ye.option}),e,{selected:r["aria-selected"],index:t,inputValue:ze},Xe)},nt=null!=(r=ye.clearIndicator)?r:w.clearIndicator,ot=null!=(n=ye.paper)?n:w.paper,it=null!=(o=ye.popper)?o:w.popper,at=null!=(i=ye.popupIndicator)?i:w.popupIndicator,st=function(e){return(0,se.jsx)(Ca,(0,_.A)({as:oe,disablePortal:E,style:{width:Me?Me.clientWidth:null},ownerState:Xe,role:"presentation",anchorEl:Me,open:Re},it,{className:(0,Wo.A)(Ye.popper,null==it?void 0:it.className),children:(0,se.jsx)(ka,(0,_.A)({ownerState:Xe,as:re},ot,{className:(0,Wo.A)(Ye.paper,null==ot?void 0:ot.className),children:e}))}))},lt=null;return!q&&We.length>0?lt=st((0,se.jsx)(Na,(0,_.A)({as:U,className:Ye.listbox,ownerState:Xe},qe,V,{ref:Ke,children:We.map((function(e,t){return z?et({key:e.key,group:e.group,children:e.options.map((function(t,r){return rt(t,e.index+r)}))}):rt(e,t)}))}))):q&&0===We.length?lt=st((0,se.jsx)(_a,{className:Ye.loading,ownerState:Xe,children:$})):0!==We.length||k||q||(lt=st((0,se.jsx)(Ra,{className:Ye.noOptions,ownerState:Xe,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Q}))),(0,se.jsxs)(u.Fragment,{children:[(0,se.jsx)(ja,(0,_.A)({ref:t,className:(0,Wo.A)(Ye.root,f),ownerState:Xe},Oe(be),{children:fe({id:_e,disabled:P,fullWidth:!0,size:"small"===ge?"small":void 0,InputLabelProps:Se(),InputProps:(0,_.A)({ref:Le,className:Ye.inputRoot,startAdornment:a,onClick:function(e){e.target===e.currentTarget&&He(e)}},(Be||Fe)&&{endAdornment:(0,se.jsxs)(Ea,{className:Ye.endAdornment,ownerState:Xe,children:[Be?(0,se.jsx)(Ia,(0,_.A)({},Pe(),{"aria-label":g,title:g,ownerState:Xe},nt,{className:(0,Wo.A)(Ye.clearIndicator,null==nt?void 0:nt.className),children:p})):null,Fe?(0,se.jsx)(Ta,(0,_.A)({},Ae(),{disabled:P,"aria-label":Re?y:ee,title:Re?y:ee,ownerState:Xe},at,{className:(0,Wo.A)(Ye.popupIndicator,null==at?void 0:at.className),children:ae})):null]})}),inputProps:(0,_.A)({className:Ye.input,disabled:P,readOnly:ue},xe())})})),Me?lt:null]})}));const za=La;var Wa=r(45748);function Ba(e){return(0,jn.Ay)("MuiCircularProgress",e)}(0,En.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var Fa,Ha,Ua,Va;function Ga(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var qa,Ka,$a,Za,Xa=["className","color","disableShrink","size","style","thickness","value","variant"],Ya=44,Qa=(0,Wa.i7)(qa||(qa=Fa||(Fa=Ga(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),Ja=(0,Wa.i7)(Ka||(Ka=Ha||(Ha=Ga(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),es=(0,oe.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["color".concat((0,Oa.A)(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme;return(0,_.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&(0,Wa.AH)($a||($a=Ua||(Ua=Ga(["\n animation: "," 1.4s linear infinite;\n "]))),Qa)})),ts=(0,oe.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),rs=(0,oe.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var r=e.ownerState;return[t.circle,t["circle".concat((0,Oa.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,r=e.theme;return(0,_.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&(0,Wa.AH)(Za||(Za=Va||(Va=Ga(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),Ja)})),ns=u.forwardRef((function(e,t){var r=(0,Sn.A)({props:e,name:"MuiCircularProgress"}),n=r.className,o=r.color,i=void 0===o?"primary":o,a=r.disableShrink,s=void 0!==a&&a,l=r.size,u=void 0===l?40:l,c=r.style,f=r.thickness,d=void 0===f?3.6:f,p=r.value,h=void 0===p?0:p,v=r.variant,g=void 0===v?"indeterminate":v,m=(0,xn.A)(r,Xa),y=(0,_.A)({},r,{color:i,disableShrink:s,size:u,thickness:d,value:h,variant:g}),b=function(e){var t=e.classes,r=e.variant,n=e.color,o=e.disableShrink,i={root:["root",r,"color".concat((0,Oa.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,Oa.A)(r)),o&&"circleDisableShrink"]};return(0,An.A)(i,Ba,t)}(y),w={},O={},x={};if("determinate"===g){var S=2*Math.PI*((Ya-d)/2);w.strokeDasharray=S.toFixed(3),x["aria-valuenow"]=Math.round(h),w.strokeDashoffset="".concat(((100-h)/100*S).toFixed(3),"px"),O.transform="rotate(-90deg)"}return(0,se.jsx)(es,(0,_.A)({className:(0,Wo.A)(b.root,n),style:(0,_.A)({width:u,height:u},O,c),ownerState:y,ref:t,role:"progressbar"},x,m,{children:(0,se.jsx)(ts,{className:b.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(Ya," ").concat(Ya),children:(0,se.jsx)(rs,{className:b.circle,style:w,ownerState:y,cx:Ya,cy:Ya,r:(Ya-d)/2,fill:"none",strokeWidth:d})})}))}));const os=ns;var is=r(31559),as=r(25755),ss=r(90211);function ls(e){return(0,jn.Ay)("MuiInputAdornment",e)}const us=(0,En.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);function cs(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fs,ds=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ps=(0,oe.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["position".concat((0,Oa.A)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,_.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&cs({},"&.".concat(us.positionStart,"&:not(.").concat(us.hiddenLabel,")"),{marginTop:16}),"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),hs=u.forwardRef((function(e,t){var r=(0,Sn.A)({props:e,name:"MuiInputAdornment"}),n=r.children,o=r.className,i=r.component,a=void 0===i?"div":i,s=r.disablePointerEvents,l=void 0!==s&&s,c=r.disableTypography,f=void 0!==c&&c,d=r.position,p=r.variant,h=(0,xn.A)(r,ds),v=(0,ss.A)()||{},g=p;p&&v.variant,v&&!g&&(g=v.variant);var m=(0,_.A)({},r,{hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:l,position:d,variant:g}),y=function(e){var t=e.classes,r=e.disablePointerEvents,n=e.hiddenLabel,o=e.position,i=e.size,a=e.variant,s={root:["root",r&&"disablePointerEvents",o&&"position".concat((0,Oa.A)(o)),a,n&&"hiddenLabel",i&&"size".concat((0,Oa.A)(i))]};return(0,An.A)(s,ls,t)}(m);return(0,se.jsx)(as.A.Provider,{value:null,children:(0,se.jsx)(ps,(0,_.A)({as:a,ownerState:m,className:(0,Wo.A)(y.root,o),ref:t},h,{children:"string"!=typeof n||f?(0,se.jsxs)(u.Fragment,{children:["start"===d?fs||(fs=(0,se.jsx)("span",{className:"notranslate",children:"​"})):null,n]}):(0,se.jsx)(Me.A,{color:"text.secondary",children:n})}))})}));const vs=hs;var gs=r(59152),ms=r(248),ys=r(31189);function bs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ws(n.key),n)}}function ws(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Os(e,t,r){return t=Ss(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xs()?Reflect.construct(t,r||[],Ss(e).constructor):t.apply(e,r))}function xs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xs=function(){return!!e})()}function Ss(e){return Ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ss(e)}function As(e,t){return As=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},As(e,t)}var Ps=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Os(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&As(e,t)}(t,e),r=t,(n=[{key:"nextSearchResult",value:function(e){var t=this.props,r=t.searchHits;(0,t.selectAnnotation)(r[e+1].annotations[0])}},{key:"previousSearchResult",value:function(e){var t=this.props,r=t.searchHits;(0,t.selectAnnotation)(r[e-1].annotations[0])}},{key:"hasNextResult",value:function(e){var t=this.props.searchHits;return 0!==t.length&&e<t.length-1}},{key:"hasPreviousResult",value:function(e){return 0!==this.props.searchHits.length&&e>0}},{key:"render",value:function(){var e=this,t=this.props,r=t.numTotal,n=t.searchHits,o=t.selectedContentSearchAnnotation,i=t.t,a="rtl"===t.direction?{transform:"rotate(180deg)"}:{},s=n.findIndex((function(e){return e.annotations.includes(o[0])})),l=n.length;return n.length<r&&(l+="+"),0===n.length?null:(0,se.jsxs)(Me.A,{variant:"body2",align:"center",children:[(0,se.jsx)(Be.A,{"aria-label":i("searchPreviousResult"),disabled:!this.hasPreviousResult(s),onClick:function(){return e.previousSearchResult(s)},children:(0,se.jsx)(ms.A,{style:a})}),(0,se.jsx)("span",{style:{unicodeBidi:"plaintext"},children:i("pagination",{current:s+1,total:l})}),(0,se.jsx)(Be.A,{"aria-label":i("searchNextResult"),disabled:!this.hasNextResult(s),onClick:function(){return e.nextSearchResult(s)},children:(0,se.jsx)(ys.A,{style:a})})]})}}])&&bs(r.prototype,n),o&&bs(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Ps.defaultProps={numTotal:void 0,searchHits:[],t:function(e){return e}};var js=r(65174);const Es=(0,o.Zz)((0,i.Ng)((function(e,t){var r=t.companionWindowId,n=t.windowId;return{direction:(0,_e.b3)(e),numTotal:(0,js.LR)(e,{companionWindowId:r,windowId:n}),searchHits:(0,js.XK)(e,{companionWindowId:r,windowId:n}),selectedContentSearchAnnotation:(0,js.SU)(e,{companionWindowId:r,windowId:n})}}),(function(e,t){var r=t.windowId;return{selectAnnotation:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e(Le.gN.apply(re,[r].concat(n)))}}})),(0,a.CI)(),(0,s.h)("SearchPanelNavigation"))(Ps);function Is(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ts(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(r),!0).forEach((function(t){Cs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Is(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cs(e,t,r){return(t=_s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ks(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_s(n.key),n)}}function _s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Rs(e,t,r){return t=Ds(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ms(e)}(e,Ns()?Reflect.construct(t,r||[],Ds(e).constructor):t.apply(e,r))}function Ns(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ns=function(){return!!e})()}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ds(e)}function Ms(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ls(e,t){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ls(e,t)}var zs=(0,oe.Ay)("form",{name:"SearchPanelControls",slot:"form"})((function(e){var t=e.theme;return{paddingBottom:t.spacing(1),paddingRight:t.spacing(1.5),width:"100%"}})),Ws=function(e){return Xi()(e)?e.match:e},Bs=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Rs(this,t,[e])).state={search:e.query,suggestions:[]},r.handleChange=r.handleChange.bind(Ms(r)),r.submitSearch=r.submitSearch.bind(Ms(r)),r.getSuggestions=r.getSuggestions.bind(Ms(r)),r.selectItem=r.selectItem.bind(Ms(r)),r.fetchAutocomplete=$i()(r.fetchAutocomplete.bind(Ms(r)),500),r.receiveAutocomplete=r.receiveAutocomplete.bind(Ms(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ls(e,t)}(t,e),r=t,n=[{key:"componentDidUpdate",value:function(e){var t=this.props.query;t!==e.query&&this.setState({search:t})}},{key:"componentWillUnmount",value:function(){this.fetchAutocomplete.cancel()}},{key:"handleChange",value:function(e,t,r){("reset"!==r||t)&&(this.setState({search:t,suggestions:[]}),t&&this.fetchAutocomplete(t))}},{key:"getSuggestions",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).showEmpty,r=void 0!==t&&t,n=this.state.suggestions;return 0!==qi()(e.trim()).toLowerCase().length||r?n:[]}},{key:"fetchAutocomplete",value:function(e){var t=this.props.autocompleteService;t&&e&&fetch("".concat(t.id,"?").concat(new URLSearchParams({q:e}))).then((function(e){return e.json()})).then(this.receiveAutocomplete)}},{key:"receiveAutocomplete",value:function(e){this.setState({suggestions:e.terms})}},{key:"submitSearch",value:function(e){var t=this.props,r=t.companionWindowId,n=t.fetchSearch,o=t.searchService,i=t.windowId,a=this.state.search;e&&e.preventDefault(),a&&n(i,r,"".concat(o.id,"?").concat(new URLSearchParams({q:a})),a)}},{key:"selectItem",value:function(e,t,r){t&&Ws(t)&&this.setState({search:Ws(t)},this.submitSearch)}},{key:"render",value:function(){var e=this.props,t=e.companionWindowId,r=e.searchIsFetching,n=e.t,o=e.windowId,i=this.state,a=i.search,s=i.suggestions,l="search-".concat(t);return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(zs,{"aria-label":n("searchTitle"),onSubmit:this.submitSearch,children:(0,se.jsx)(za,{id:l,inputValue:a,options:s,getOptionLabel:Ws,isOptionEqualToValue:function(e,t){return qi()(Ws(e).trim()).toLowerCase()===qi()(Ws(t).trim()).toLowerCase()},noOptionsText:"",onChange:this.selectItem,onInputChange:this.handleChange,freeSolo:!0,disableClearable:!0,renderInput:function(e){return(0,se.jsx)(is.A,Ts(Ts({},e),{},{label:n("searchInputLabel"),variant:"standard",InputProps:Ts(Ts({},e.InputProps),{},{endAdornment:(0,se.jsxs)(vs,{sx:{position:"relative"},position:"end",children:[(0,se.jsx)(Be.A,{"aria-label":n("searchSubmitAria"),type:"submit",children:(0,se.jsx)(gs.A,{})}),Boolean(r)&&(0,se.jsx)(os,{sx:{left:"50%",marginLeft:"-25px",marginTop:"-25px",position:"absolute",top:"50%"},size:50})]})})}))}})}),(0,se.jsx)(Es,{windowId:o,companionWindowId:t})]})}}],n&&ks(r.prototype,n),o&&ks(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Bs.defaultProps={autocompleteService:void 0,query:"",t:function(e){return e}};var Fs={fetchSearch:Vi.$Q};const Hs=(0,o.Zz)((0,i.Ng)((function(e,t){var r=t.companionWindowId,n=t.windowId;return{autocompleteService:(0,Nt.J4)(e,{windowId:n}),query:(0,js.V8)(e,{companionWindowId:r,windowId:n}),searchIsFetching:(0,js.bq)(e,{companionWindowId:r,windowId:n}),searchService:(0,Nt.B8)(e,{windowId:n})}}),Fs),(0,a.CI)(),(0,s.h)("SearchPanelControls"))(Bs);var Us=r(21812),Vs=r(75228);function Gs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qs(n.key),n)}}function qs(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Ks=null;function $s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"assertive",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7e3;Ks||(Ks=new Zs),Ks.announce(e,t,r)}var Zs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}var t,r,n;return t=e,r=[{key:"createLog",value:function(e){var t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}},{key:"destroy",value:function(){this.node&&(document.body.removeChild(this.node),this.node=null)}},{key:"announce",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"assertive",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7e3;if(this.node){var n=document.createElement("div");n.textContent=e,"assertive"===t?this.assertiveLog.appendChild(n):this.politeLog.appendChild(n),""!==e&&setTimeout((function(){n.remove()}),r)}}},{key:"clear",value:function(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}}],r&&Gs(t.prototype,r),n&&Gs(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Xs=r(64663);function Ys(e){return function(e){if(Array.isArray(e))return Qs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Js(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,el(n.key),n)}}function el(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var tl=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.maxChars,i=void 0===o?200:o,a=n.minimum,s=void 0===a?20:a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hit=t,this.annotation=r,this.maxChars=i||200,this.minimum=s||20}var t,r,n;return t=e,(r=[{key:"match",get:function(){return this.hit.match||this.annotation&&this.annotation.resource.resource.chars||"-"}},{key:"charsOnSide",get:function(){var e=(this.maxChars-this.match.length)/2,t=[(this.hit.before||"").length,(this.hit.after||"").length].filter((function(e){return e>0}));return Math.max(Math.min.apply(Math,[e].concat(Ys(t))),this.minimum)}},{key:"before",get:function(){return this.hit.before?this.hit.before.substring(this.hit.before.length-this.charsOnSide,this.hit.before.length):""}},{key:"after",get:function(){return this.hit.after?this.hit.after.substring(0,Math.min(this.hit.after.length,this.charsOnSide)):""}}])&&Js(t.prototype,r),n&&Js(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fl(n.key),n)}}function nl(e,t,r){return t=il(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return al(e)}(e,ol()?Reflect.construct(t,r||[],il(e).constructor):t.apply(e,r))}function ol(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ol=function(){return!!e})()}function il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},il(e)}function al(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sl(e,t)}function ll(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ul(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ll(Object(r),!0).forEach((function(t){cl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cl(e,t,r){return(t=fl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fl(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var dl=(0,oe.Ay)(Xs.Ay,{name:"SearchHit",slot:"root"})((function(e){var t=e.ownerState,r=e.theme;return{"&.Mui-focused":ul({"&:hover":ul({},t.windowSelected&&{backgroundColor:"inherit"})},t.windowSelected&&{backgroundColor:"inherit"}),paddingRight:r.spacing(1)}})),pl=(0,oe.Ay)("h4",{name:"SearchHit",slot:"canvasLabel"})((function(e){return{display:"inline",marginBottom:e.theme.spacing(1.5)}})),hl=(0,oe.Ay)(Ze.A,{name:"SearchHit",slot:"counter"})((function(e){var t=e.ownerState,r=e.theme;return ul(ul(ul({backgroundColor:r.palette.hitCounter.default},t.windowSelected&&{backgroundColor:r.palette.highlights.primary}),t.adjacent&&!t.windowSelected&&{backgroundColor:r.palette.highlights.secondary}),{},{height:30,marginRight:r.spacing(1),typography:"subtitle2",verticalAlign:"inherit"})})),vl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=nl(this,t,[e])).handleClick=r.handleClick.bind(al(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sl(e,t)}(t,e),r=t,n=[{key:"componentDidMount",value:function(){this.props.selected&&this.announceHit()}},{key:"componentDidUpdate",value:function(e){var t=this.props.selected;t&&t!==e.selected&&this.announceHit()}},{key:"handleClick",value:function(){var e=this.props,t=e.annotation,r=e.annotationId,n=e.selectAnnotation;t&&r&&n(r)}},{key:"announceHit",value:function(){var e=this.props,t=e.annotation,r=e.annotationLabel,n=e.announcer,o=e.canvasLabel,i=e.hit,a=e.index,s=e.t,l=e.total;if(i&&n){var u=new tl(i,t);n([s("pagination",{current:a+1,total:l}),o,r,u.before,u.match,u.after].join(" "),"polite")}}},{key:"render",value:function(){var e=this.props,t=e.adjacent,r=e.annotation,n=e.annotationLabel,o=e.canvasLabel,i=e.companionWindowId,a=e.containerRef,s=e.hit,l=e.focused,u=e.index,c=e.showDetails,f=e.selected,d=e.t,p=e.windowSelected;if(l&&!f)return null;var h=l?s:s&&new tl(s,r),v=s&&(h.before!==s.before||h.after!==s.after),g="".concat(i,"-").concat(u),m={adjacent:t,focused:l,selected:f,windowSelected:p},y=(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(hl,{component:"span",ownerState:m,label:u+1}),(0,se.jsxs)(pl,{id:g,children:[o,n&&(0,se.jsx)(Me.A,{component:"span",sx:{display:"block",marginTop:1},children:n})]})]});return(0,se.jsx)(dt,{containerRef:a,offsetTop:96,scrollTo:p&&!l,children:(0,se.jsx)(dl,{ownerState:m,className:p?"windowSelected":"",divider:!0,button:!f,component:"li",onClick:this.handleClick,selected:f,children:(0,se.jsx)(Qe.A,{primary:y,primaryTypographyProps:{component:"div",sx:{marginBottom:1},variant:"subtitle2"},secondaryTypographyProps:{variant:"body1"},secondary:(0,se.jsxs)(se.Fragment,{children:[s&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Je.A,{ruleSet:"iiif",htmlString:h.before})," ",(0,se.jsx)("strong",{children:(0,se.jsx)(Je.A,{ruleSet:"iiif",htmlString:h.match})})," ",(0,se.jsx)(Je.A,{ruleSet:"iiif",htmlString:h.after})," ",v&&!l&&(0,se.jsx)(sr.A,{sx:{"& span":{lineHeight:"1.5em"},margin:0,padding:0,textTransform:"none"},onClick:c,color:"secondary",size:"small","aria-describedby":g,children:d("more")})]}),!s&&r&&(0,se.jsx)(Je.A,{ruleSet:"iiif",htmlString:r.chars})]})})})})}}],n&&rl(r.prototype,n),o&&rl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);function gl(e){return function(e){if(Array.isArray(e))return ml(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ml(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ml(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}vl.defaultProps={adjacent:!1,annotation:void 0,annotationId:void 0,annotationLabel:void 0,announcer:void 0,canvasLabel:void 0,companionWindowId:void 0,containerRef:void 0,focused:!1,hit:void 0,index:void 0,selectAnnotation:function(){},selected:!1,showDetails:function(){},t:function(e){return e},total:void 0,windowSelected:!1};const yl=(0,o.Zz)((0,i.Ng)((function(e,t){var r=t.annotationId,n=t.hit,o=void 0===n?{annotations:[]}:n,i=t.companionWindowId,a=t.windowId,s=r||o.annotations[0],l=(0,js.KB)(e,{annotationUri:s,companionWindowId:i,windowId:a}),u=(0,js.wt)(e,{annotationUri:s,companionWindowId:i,windowId:a}),c=(0,ne.tv)(e,{windowId:a}),f=(0,js.SU)(e,{companionWindowId:i,windowId:a}),d=(0,De.e3)(e,{windowId:a}),p=[r].concat(gl(o.annotations));return{adjacent:c.includes(l.targetId),annotation:l,annotationId:s,annotationLabel:u[0],canvasLabel:l&&(0,ne.T2)(e,{canvasId:l.targetId,windowId:a}),selected:f[0]&&p.includes(f[0]),windowSelected:d&&p.includes(d)}}),(function(e,t){var r=t.windowId;return{selectAnnotation:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e(Le.gN.apply(re,[r].concat(n)))}}})),(0,a.CI)(),(0,s.h)("SearchHit"))(vl);function bl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wl(n.key),n)}}function wl(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ol(e,t,r){return t=Sl(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Al(e)}(e,xl()?Reflect.construct(t,r||[],Sl(e).constructor):t.apply(e,r))}function xl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xl=function(){return!!e})()}function Sl(e){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sl(e)}function Al(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pl(e,t){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pl(e,t)}var jl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ol(this,t,[e])).state={focused:!1},r.toggleFocus=r.toggleFocus.bind(Al(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pl(e,t)}(t,e),r=t,(n=[{key:"toggleFocus",value:function(){var e=this.state.focused;this.setState({focused:!e})}},{key:"renderSearchHitsAndAnnotations",value:function(){var e=this,t=this.props,r=t.companionWindowId,n=t.containerRef,o=t.searchAnnotations,i=t.searchHits,a=t.windowId,s=this.state.focused;return 0===i.length&&o.length>0?o.map((function(t,i){return(0,se.jsx)(yl,{announcer:$s,annotationId:t.id,companionWindowId:r,containerRef:n,focused:s,index:i,total:o.length,windowId:a,showDetails:e.toggleFocus},t.id)})):i.map((function(t,o){return(0,se.jsx)(yl,{announcer:$s,containerRef:n,companionWindowId:r,focused:s,hit:t,index:o,total:i.length,windowId:a,showDetails:e.toggleFocus},t.annotations[0])}))}},{key:"render",value:function(){var e=this.props,t=e.companionWindowId,r=e.containerRef,n=e.isFetching,o=e.fetchSearch,i=e.nextSearch,a=e.query,s=e.searchAnnotations,l=e.searchHits,u=e.searchNumTotal,c=e.t,f=e.windowId,d=this.state.focused,p=a&&!n&&0===l.length&&0===s.length;return(0,se.jsxs)(se.Fragment,{children:[d&&(0,se.jsx)(dt,{containerRef:r,offsetTop:96,scrollTo:!0,children:(0,se.jsxs)(sr.A,{onClick:this.toggleFocus,sx:{textTransform:"none"},size:"small",children:[(0,se.jsx)(Vs.A,{}),c("backToResults")]})}),p&&(0,se.jsx)(Me.A,{sx:{padding:2,typography:"h6"},children:c("searchNoResults")}),(0,se.jsx)(Us.A,{disablePadding:!0,children:this.renderSearchHitsAndAnnotations()}),i&&(0,se.jsxs)(sr.A,{sx:{width:"100%"},color:"secondary",onClick:function(){return o(f,t,i,a)},children:[c("moreResults"),(0,se.jsx)("br",{}),"(".concat(c("searchResultsRemaining",{numLeft:u-l.length}),")")]})]})}}])&&bl(r.prototype,n),o&&bl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);jl.defaultProps={containerRef:void 0,isFetching:!1,nextSearch:void 0,query:void 0,searchAnnotations:[],searchHits:[],searchNumTotal:void 0,t:function(e){return e}};var El={fetchSearch:Vi.$Q};const Il=(0,o.Zz)((0,i.Ng)((function(e,t){var r=t.companionWindowId,n=t.windowId;return{isFetching:(0,js.bq)(e,{companionWindowId:r,windowId:n}),nextSearch:(0,js.TU)(e,{companionWindowId:r,windowId:n}),query:(0,js.V8)(e,{companionWindowId:r,windowId:n}),searchAnnotations:(0,js.TA)(e,{companionWindowId:r,windowId:n}),searchHits:(0,js.XK)(e,{companionWindowId:r,windowId:n}),searchNumTotal:(0,js.LR)(e,{companionWindowId:r,windowId:n})}}),El),(0,a.CI)(),(0,s.h)("SearchResults"))(jl);function Tl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Cl(n.key),n)}}function Cl(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function kl(e,t,r){return t=Rl(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_l()?Reflect.construct(t,r||[],Rl(e).constructor):t.apply(e,r))}function _l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_l=function(){return!!e})()}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rl(e)}function Nl(e,t){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nl(e,t)}var Dl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=kl(this,t,[e])).containerRef=(0,u.createRef)(),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nl(e,t)}(t,e),r=t,n=[{key:"render",value:function(){var e=this.props,t=e.fetchSearch,r=e.windowId,n=e.id,o=e.query,i=e.removeSearch,a=e.searchService,s=e.suggestedSearches,l=e.t;return(0,se.jsxs)(St.A,{ariaLabel:l("searchTitle"),title:(0,se.jsxs)(se.Fragment,{children:[l("searchTitle"),o&&""!==o&&(0,se.jsx)(Ze.A,{role:"button",sx:{marginLeft:1},color:"secondary",label:l("clearSearch"),onClick:i,onDelete:i,size:"small",tabIndex:0,variant:"outlined"})]}),windowId:r,id:n,titleControls:(0,se.jsx)(Hs,{companionWindowId:n,windowId:r}),ref:this.containerRef,children:[(0,se.jsx)(Il,{containerRef:this.containerRef,companionWindowId:n,windowId:r}),t&&s&&""===o&&s.map((function(e){return(0,se.jsx)(Me.A,{component:"p",variant:"body1",sx:{margin:2},children:(0,se.jsx)(sr.A,{variant:"inlineText",color:"secondary",onClick:function(){return t("".concat(a.id,"?q=").concat(e),e)},children:l("suggestSearch",{query:e})})},e)}))]})}}],n&&Tl(r.prototype,n),o&&Tl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Dl.defaultProps={fetchSearch:void 0,query:"",suggestedSearches:[],t:function(e){return e}};const Ml=(0,o.Zz)((0,i.Ng)((function(e,t){var r=t.id,n=t.windowId;return{query:(0,js.V8)(e,{companionWindowId:r,windowId:n}),searchService:(0,Nt.B8)(e,{windowId:n}),suggestedSearches:(0,ke.zk)(e,{windowId:n}).suggestedSearches}}),(function(e,t){return{fetchSearch:function(r,n){return e(Vi.$Q(t.windowId,t.id,r,n))},removeSearch:function(){return e(Vi.Vw(t.windowId,t.id))}}})),(0,a.CI)(),(0,s.h)("SearchPanel"))(Dl);var Ll=r(59679),zl=r(28540),Wl=r(26836),Bl=r(22046),Fl=r(67714),Hl=r(4298),Ul=r(89062),Vl=r(70026);var Gl=r(87677);function ql(e){return function(e){if(Array.isArray(e))return Zl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||$l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $l(e,t){if(e){if("string"==typeof e)return Zl(e,t);var r=Object.prototype.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)?Zl(e,t):void 0}}function Zl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xl(e,t){return e-t}function Yl(e,t){var r,n=null!=(r=e.reduce((function(e,r,n){var o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e}),null))?r:{};return n.index}function Ql(e,t){if(void 0!==t.current&&e.changedTouches){for(var r=e,n=0;n<r.changedTouches.length;n+=1){var o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Jl(e,t,r){return 100*(e-t)/(r-t)}function eu(e,t,r){var n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}var n=e.toString().split(".")[1];return n?n.length:0}(t)))}function tu(e){var t=e.values,r=e.newValue,n=e.index,o=t.slice();return o[n]=r,o.sort(Xl)}function ru(e){var t,r,n,o=e.sliderRef,i=e.activeIndex,a=e.setActive,s=(0,ho.A)(o.current);null!=(t=o.current)&&t.contains(s.activeElement)&&Number(null==s||null==(r=s.activeElement)?void 0:r.getAttribute("data-index"))===i||(null==(n=o.current)||n.querySelector('[type="range"][data-index="'.concat(i,'"]')).focus());a&&a(i)}function nu(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};return e.length===t.length&&e.every((function(e,n){return r(e,t[n])}))}(e,t)}var ou,iu={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},au=function(e){return e};function su(){return void 0===ou&&(ou="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),ou}function lu(e){var t=e["aria-labelledby"],r=e.defaultValue,n=e.disabled,o=void 0!==n&&n,i=e.disableSwap,a=void 0!==i&&i,s=e.isRtl,l=void 0!==s&&s,c=e.marks,f=void 0!==c&&c,d=e.max,p=void 0===d?100:d,h=e.min,v=void 0===h?0:h,g=e.name,m=e.onChange,y=e.onChangeCommitted,b=e.orientation,w=void 0===b?"horizontal":b,O=e.rootRef,x=e.scale,S=void 0===x?au:x,A=e.step,P=void 0===A?1:A,j=e.shiftStep,E=void 0===j?10:j,I=e.tabIndex,T=e.value,C=u.useRef(),k=Kl(u.useState(-1),2),R=k[0],N=k[1],D=Kl(u.useState(-1),2),M=D[0],L=D[1],z=Kl(u.useState(!1),2),W=z[0],B=z[1],F=u.useRef(0),H=Kl((0,Yi.A)({controlled:T,default:null!=r?r:v,name:"Slider"}),2),U=H[0],V=H[1],G=m&&function(e,t,r){var n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:g}}),m(o,t,r)},q=Array.isArray(U),K=q?U.slice().sort(Xl):[U];K=K.map((function(e){return null==e?v:(0,Hl.A)(e,v,p)}));var $=!0===f&&null!==P?ql(Array(Math.floor((p-v)/P)+1)).map((function(e,t){return{value:v+P*t}})):f||[],Z=$.map((function(e){return e.value})),X=(0,Ul.A)(),Y=X.isFocusVisibleRef,Q=X.onBlur,J=X.onFocus,ee=X.ref,te=Kl(u.useState(-1),2),re=te[0],ne=te[1],oe=u.useRef(),ie=(0,Tn.A)(ee,oe),ae=(0,Tn.A)(O,ie),se=function(e){return function(t){var r,n=Number(t.currentTarget.getAttribute("data-index"));J(t),!0===Y.current&&ne(n),L(n),null==e||null==(r=e.onFocus)||r.call(e,t)}},le=function(e){return function(t){var r;Q(t),!1===Y.current&&ne(-1),L(-1),null==e||null==(r=e.onBlur)||r.call(e,t)}},ue=function(e,t){var r=Number(e.currentTarget.getAttribute("data-index")),n=K[r],o=Z.indexOf(n),i=t;if($&&null==P){var s=Z[Z.length-1];i=i>s?s:i<Z[0]?Z[0]:i<n?Z[o-1]:Z[o+1]}if(i=(0,Hl.A)(i,v,p),q){a&&(i=(0,Hl.A)(i,K[r-1]||-1/0,K[r+1]||1/0));var l=i;i=tu({values:K,newValue:i,index:r});var u=r;a||(u=i.indexOf(l)),ru({sliderRef:oe,activeIndex:u})}V(i),ne(r),G&&!nu(i,U)&&G(e,i,r),y&&y(e,i)},ce=function(e){return function(t){var r;if(null!==P){var n=Number(t.currentTarget.getAttribute("data-index")),o=K[n],i=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?i=Math.max(o-E,v):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(i=Math.min(o+E,p)),null!==i&&(ue(t,i),t.preventDefault())}null==e||null==(r=e.onKeyDown)||r.call(e,t)}};(0,Yn.A)((function(){var e;o&&oe.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[o]),o&&-1!==R&&N(-1),o&&-1!==re&&ne(-1);var fe=u.useRef(),de=w;l&&"horizontal"===w&&(de+="-reverse");var pe=function(e){var t,r,n=e.finger,o=e.move,i=void 0!==o&&o,s=oe.current.getBoundingClientRect(),l=s.width,u=s.height,c=s.bottom,f=s.left;if(t=0===de.indexOf("vertical")?(c-n.y)/u:(n.x-f)/l,-1!==de.indexOf("-reverse")&&(t=1-t),r=function(e,t,r){return(r-t)*e+t}(t,v,p),P)r=eu(r,P,v);else{var d=Yl(Z,r);r=Z[d]}r=(0,Hl.A)(r,v,p);var h=0;if(q){h=i?fe.current:Yl(K,r),a&&(r=(0,Hl.A)(r,K[h-1]||-1/0,K[h+1]||1/0));var g=r;r=tu({values:K,newValue:r,index:h}),a&&i||(h=r.indexOf(g),fe.current=h)}return{newValue:r,activeIndex:h}},he=(0,ao.A)((function(e){var t=Ql(e,C);if(t)if(F.current+=1,"mousemove"!==e.type||0!==e.buttons){var r=pe({finger:t,move:!0}),n=r.newValue,o=r.activeIndex;ru({sliderRef:oe,activeIndex:o,setActive:N}),V(n),!W&&F.current>2&&B(!0),G&&!nu(n,U)&&G(e,n,o)}else ve(e)})),ve=(0,ao.A)((function(e){var t=Ql(e,C);if(B(!1),t){var r=pe({finger:t,move:!0}).newValue;N(-1),"touchend"===e.type&&L(-1),y&&y(e,r),C.current=void 0,me()}})),ge=(0,ao.A)((function(e){if(!o){su()||e.preventDefault();var t=e.changedTouches[0];null!=t&&(C.current=t.identifier);var r=Ql(e,C);if(!1!==r){var n=pe({finger:r}),i=n.newValue,a=n.activeIndex;ru({sliderRef:oe,activeIndex:a,setActive:N}),V(i),G&&!nu(i,U)&&G(e,i,a)}F.current=0;var s=(0,ho.A)(oe.current);s.addEventListener("touchmove",he,{passive:!0}),s.addEventListener("touchend",ve,{passive:!0})}})),me=u.useCallback((function(){var e=(0,ho.A)(oe.current);e.removeEventListener("mousemove",he),e.removeEventListener("mouseup",ve),e.removeEventListener("touchmove",he),e.removeEventListener("touchend",ve)}),[ve,he]);u.useEffect((function(){var e=oe.current;return e.addEventListener("touchstart",ge,{passive:su()}),function(){e.removeEventListener("touchstart",ge),me()}}),[me,ge]),u.useEffect((function(){o&&me()}),[o,me]);var ye=Jl(q?K[0]:v,v,p),be=Jl(K[K.length-1],v,p)-ye,we=function(e){return function(t){var r;null==(r=e.onMouseLeave)||r.call(e,t),L(-1)}};return{active:R,axis:de,axisProps:iu,dragging:W,focusedThumbIndex:re,getHiddenInputProps:function(){var r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(0,Gl.h)(i),s={onChange:(n=a||{},function(e){var t;null==(t=n.onChange)||t.call(n,e),ue(e,e.target.valueAsNumber)}),onFocus:se(a||{}),onBlur:le(a||{}),onKeyDown:ce(a||{})},u=(0,_.A)({},a,s);return(0,_.A)({tabIndex:I,"aria-labelledby":t,"aria-orientation":w,"aria-valuemax":S(p),"aria-valuemin":S(v),name:g,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(r=e.step)?r:void 0,disabled:o},i,u,{style:(0,_.A)({},Vl.A,{direction:l?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,Gl.h)(t),n={onMouseDown:(e=r||{},function(t){var r;if(null==(r=e.onMouseDown)||r.call(e,t),!o&&!t.defaultPrevented&&0===t.button){t.preventDefault();var n=Ql(t,C);if(!1!==n){var i=pe({finger:n}),a=i.newValue,s=i.activeIndex;ru({sliderRef:oe,activeIndex:s,setActive:N}),V(a),G&&!nu(a,U)&&G(t,a,s)}F.current=0;var l=(0,ho.A)(oe.current);l.addEventListener("mousemove",he,{passive:!0}),l.addEventListener("mouseup",ve)}})},i=(0,_.A)({},r,n);return(0,_.A)({},t,{ref:ae},i)},getThumbProps:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,Gl.h)(t),n={onMouseOver:(e=r||{},function(t){var r;null==(r=e.onMouseOver)||r.call(e,t);var n=Number(t.currentTarget.getAttribute("data-index"));L(n)}),onMouseLeave:we(r||{})};return(0,_.A)({},t,r,n)},marks:$,open:M,range:q,rootRef:ae,trackLeap:be,trackOffset:ye,values:K,getThumbStyle:function(e){return{pointerEvents:-1!==R&&R!==e?"none":void 0}}}}var uu=r(39701);const cu=function(e){return!e||!(0,Fl.g)(e)};function fu(e){return(0,jn.Ay)("MuiSlider",e)}const du=(0,En.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);function pu(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hu=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function vu(e){return e}var gu=(0,oe.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["color".concat((0,Oa.A)(r.color))],"medium"!==r.size&&t["size".concat((0,Oa.A)(r.size))],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((function(e){var t=e.theme,r=e.ownerState;return(0,_.A)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[r.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===r.orientation&&(0,_.A)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===r.size&&{height:2},r.marked&&{marginBottom:20}),"vertical"===r.orientation&&(0,_.A)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===r.size&&{width:2},r.marked&&{marginRight:44}),pu(pu({"@media print":{colorAdjust:"exact"}},"&.".concat(du.disabled),{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]}),"&.".concat(du.dragging),pu({},"& .".concat(du.thumb,", & .").concat(du.track),{transition:"none"})))})),mu=(0,oe.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:function(e,t){return t.rail}})((function(e){var t=e.ownerState;return(0,_.A)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),yu=(0,oe.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme,r=e.ownerState,n="light"===t.palette.mode?(0,sa.a)(t.palette[r.color].main,.62):(0,sa.e$)(t.palette[r.color].main,.5);return(0,_.A)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===r.size&&{border:"none"},"horizontal"===r.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===r.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===r.track&&{display:"none"},"inverted"===r.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(r.color,"Track")]:n,borderColor:t.vars?t.vars.palette.Slider["".concat(r.color,"Track")]:n})})),bu=(0,oe.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:function(e,t){var r=e.ownerState;return[t.thumb,t["thumbColor".concat((0,Oa.A)(r.color))],"medium"!==r.size&&t["thumbSize".concat((0,Oa.A)(r.size))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,_.A)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},"small"===r.size&&{width:12,height:12},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},pu(pu(pu({"&::before":(0,_.A)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"small"===r.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},"&:hover, &.".concat(du.focusVisible),{boxShadow:"0px 0px 0px 8px ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.16)"):(0,sa.X4)(t.palette[r.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}}),"&.".concat(du.active),{boxShadow:"0px 0px 0px 14px ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.16)"):(0,sa.X4)(t.palette[r.color].main,.16))}),"&.".concat(du.disabled),{"&:hover":{boxShadow:"none"}}))})),wu=(0,oe.Ay)((function(e){var t=e.children,r=e.className,n=e.value,o=function(e){var t=e.open;return{offset:(0,Wo.A)(t&&du.valueLabelOpen),circle:du.valueLabelCircle,label:du.valueLabelLabel}}(e);return t?u.cloneElement(t,{className:(0,Wo.A)(t.props.className)},(0,se.jsxs)(u.Fragment,{children:[t.props.children,(0,se.jsx)("span",{className:(0,Wo.A)(o.offset,r),"aria-hidden":!0,children:(0,se.jsx)("span",{className:o.circle,children:(0,se.jsx)("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:function(e,t){return t.valueLabel}})((function(e){var t=e.theme,r=e.ownerState;return(0,_.A)(pu(pu(pu({},"&.".concat(du.valueLabelOpen),{transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")}),"zIndex",1),"whiteSpace","nowrap"),t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===r.orientation&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===r.orientation&&{right:"small"===r.size?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===r.size&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),Ou=(0,oe.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:function(e){return(0,oe._n)(e)&&"markActive"!==e},overridesResolver:function(e,t){var r=e.markActive;return[t.mark,r&&t.markActive]}})((function(e){var t=e.theme,r=e.ownerState,n=e.markActive;return(0,_.A)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),xu=(0,oe.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:function(e){return(0,oe._n)(e)&&"markLabelActive"!==e},overridesResolver:function(e,t){return t.markLabel}})((function(e){var t=e.theme,r=e.ownerState,n=e.markLabelActive;return(0,_.A)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===r.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===r.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(t.vars||t).palette.text.primary})})),Su=function(e){return e.children},Au=u.forwardRef((function(e,t){var r,n,o,i,a,s,l,c,f,d,p,h,v,g,m,y,b,w,O,x,S,A,P,j,E=(0,Sn.A)({props:e,name:"MuiSlider"}),I=(0,uu.I)(),T=E["aria-label"],C=E["aria-valuetext"],k=E["aria-labelledby"],R=E.component,N=void 0===R?"span":R,D=E.components,M=void 0===D?{}:D,L=E.componentsProps,z=void 0===L?{}:L,W=E.color,B=void 0===W?"primary":W,F=E.classes,H=E.className,U=E.disableSwap,V=void 0!==U&&U,G=E.disabled,q=void 0!==G&&G,K=E.getAriaLabel,$=E.getAriaValueText,Z=E.marks,X=void 0!==Z&&Z,Y=E.max,Q=void 0===Y?100:Y,J=E.min,ee=void 0===J?0:J,te=E.orientation,re=void 0===te?"horizontal":te,ne=E.shiftStep,oe=void 0===ne?10:ne,ie=E.size,ae=void 0===ie?"medium":ie,le=E.step,ue=void 0===le?1:le,ce=E.scale,fe=void 0===ce?vu:ce,de=E.slotProps,pe=E.slots,he=E.track,ve=void 0===he?"normal":he,ge=E.valueLabelDisplay,me=void 0===ge?"off":ge,ye=E.valueLabelFormat,be=void 0===ye?vu:ye,we=(0,xn.A)(E,hu),Oe=(0,_.A)({},E,{isRtl:I,max:Q,min:ee,classes:F,disabled:q,disableSwap:V,orientation:re,marks:X,color:B,size:ae,step:ue,shiftStep:oe,scale:fe,track:ve,valueLabelDisplay:me,valueLabelFormat:be}),xe=lu((0,_.A)({},Oe,{rootRef:t})),Se=xe.axisProps,Ae=xe.getRootProps,Pe=xe.getHiddenInputProps,je=xe.getThumbProps,Ee=xe.open,Ie=xe.active,Te=xe.axis,Ce=xe.focusedThumbIndex,ke=xe.range,_e=xe.dragging,Re=xe.marks,Ne=xe.values,De=xe.trackOffset,Me=xe.trackLeap,Le=xe.getThumbStyle;Oe.marked=Re.length>0&&Re.some((function(e){return e.label})),Oe.dragging=_e,Oe.focusedThumbIndex=Ce;var ze=function(e){var t=e.disabled,r=e.dragging,n=e.marked,o=e.orientation,i=e.track,a=e.classes,s=e.color,l=e.size,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",s&&"color".concat((0,Oa.A)(s)),l&&"size".concat((0,Oa.A)(l))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&"thumbSize".concat((0,Oa.A)(l)),s&&"thumbColor".concat((0,Oa.A)(s))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,An.A)(u,fu,a)}(Oe),We=null!=(r=null!=(n=null==pe?void 0:pe.root)?n:M.Root)?r:gu,Be=null!=(o=null!=(i=null==pe?void 0:pe.rail)?i:M.Rail)?o:mu,Fe=null!=(a=null!=(s=null==pe?void 0:pe.track)?s:M.Track)?a:yu,He=null!=(l=null!=(c=null==pe?void 0:pe.thumb)?c:M.Thumb)?l:bu,Ue=null!=(f=null!=(d=null==pe?void 0:pe.valueLabel)?d:M.ValueLabel)?f:wu,Ve=null!=(p=null!=(h=null==pe?void 0:pe.mark)?h:M.Mark)?p:Ou,Ge=null!=(v=null!=(g=null==pe?void 0:pe.markLabel)?g:M.MarkLabel)?v:xu,qe=null!=(m=null!=(y=null==pe?void 0:pe.input)?y:M.Input)?m:"input",Ke=null!=(b=null==de?void 0:de.root)?b:z.root,$e=null!=(w=null==de?void 0:de.rail)?w:z.rail,Ze=null!=(O=null==de?void 0:de.track)?O:z.track,Xe=null!=(x=null==de?void 0:de.thumb)?x:z.thumb,Ye=null!=(S=null==de?void 0:de.valueLabel)?S:z.valueLabel,Qe=null!=(A=null==de?void 0:de.mark)?A:z.mark,Je=null!=(P=null==de?void 0:de.markLabel)?P:z.markLabel,et=null!=(j=null==de?void 0:de.input)?j:z.input,tt=(0,Pn.Q)({elementType:We,getSlotProps:Ae,externalSlotProps:Ke,externalForwardedProps:we,additionalProps:(0,_.A)({},cu(We)&&{as:N}),ownerState:(0,_.A)({},Oe,null==Ke?void 0:Ke.ownerState),className:[ze.root,H]}),rt=(0,Pn.Q)({elementType:Be,externalSlotProps:$e,ownerState:Oe,className:ze.rail}),nt=(0,Pn.Q)({elementType:Fe,externalSlotProps:Ze,additionalProps:{style:(0,_.A)({},Se[Te].offset(De),Se[Te].leap(Me))},ownerState:(0,_.A)({},Oe,null==Ze?void 0:Ze.ownerState),className:ze.track}),ot=(0,Pn.Q)({elementType:He,getSlotProps:je,externalSlotProps:Xe,ownerState:(0,_.A)({},Oe,null==Xe?void 0:Xe.ownerState),className:ze.thumb}),it=(0,Pn.Q)({elementType:Ue,externalSlotProps:Ye,ownerState:(0,_.A)({},Oe,null==Ye?void 0:Ye.ownerState),className:ze.valueLabel}),at=(0,Pn.Q)({elementType:Ve,externalSlotProps:Qe,ownerState:Oe,className:ze.mark}),st=(0,Pn.Q)({elementType:Ge,externalSlotProps:Je,ownerState:Oe,className:ze.markLabel}),lt=(0,Pn.Q)({elementType:qe,getSlotProps:Pe,externalSlotProps:et,ownerState:Oe});return(0,se.jsxs)(We,(0,_.A)({},tt,{children:[(0,se.jsx)(Be,(0,_.A)({},rt)),(0,se.jsx)(Fe,(0,_.A)({},nt)),Re.filter((function(e){return e.value>=ee&&e.value<=Q})).map((function(e,t){var r,n=Jl(e.value,ee,Q),o=Se[Te].offset(n);return r=!1===ve?-1!==Ne.indexOf(e.value):"normal"===ve&&(ke?e.value>=Ne[0]&&e.value<=Ne[Ne.length-1]:e.value<=Ne[0])||"inverted"===ve&&(ke?e.value<=Ne[0]||e.value>=Ne[Ne.length-1]:e.value>=Ne[0]),(0,se.jsxs)(u.Fragment,{children:[(0,se.jsx)(Ve,(0,_.A)({"data-index":t},at,!(0,Fl.g)(Ve)&&{markActive:r},{style:(0,_.A)({},o,at.style),className:(0,Wo.A)(at.className,r&&ze.markActive)})),null!=e.label?(0,se.jsx)(Ge,(0,_.A)({"aria-hidden":!0,"data-index":t},st,!(0,Fl.g)(Ge)&&{markLabelActive:r},{style:(0,_.A)({},o,st.style),className:(0,Wo.A)(ze.markLabel,st.className,r&&ze.markLabelActive),children:e.label})):null]},t)})),Ne.map((function(e,t){var r=Jl(e,ee,Q),n=Se[Te].offset(r),o="off"===me?Su:Ue;return(0,se.jsx)(o,(0,_.A)({},!(0,Fl.g)(o)&&{valueLabelFormat:be,valueLabelDisplay:me,value:"function"==typeof be?be(fe(e),t):be,index:t,open:Ee===t||Ie===t||"on"===me,disabled:q},it,{children:(0,se.jsx)(He,(0,_.A)({"data-index":t},ot,{className:(0,Wo.A)(ze.thumb,ot.className,Ie===t&&ze.active,Ce===t&&ze.focusVisible),style:(0,_.A)({},n,Le(t),ot.style),children:(0,se.jsx)(qe,(0,_.A)({"data-index":t,"aria-label":K?K(t):T,"aria-valuenow":fe(e),"aria-labelledby":k,"aria-valuetext":$?$(fe(e),t):C,value:Ne[t]},lt))}))}),t)}))]}))}));const Pu=Au;var ju=r(87348),Eu=r(47610),Iu=r(12065),Tu=r(8568);function Cu(e){return Cu="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},Cu(e)}function ku(e){var t=function(e,t){if("object"!=Cu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Cu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cu(t)?t:String(t)}function _u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ru(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=ku(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nu(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Du="function"==typeof Symbol&&Symbol.observable||"@@observable",Mu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Lu={INIT:"@@redux/INIT"+Mu(),REPLACE:"@@redux/REPLACE"+Mu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Mu()}};function zu(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Wu(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(Nu(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(Nu(1));return r(Wu)(e,t)}if("function"!=typeof e)throw new Error(Nu(2));var o=e,i=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(Nu(3));return i}function f(e){if("function"!=typeof e)throw new Error(Nu(4));if(l)throw new Error(Nu(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(Nu(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function d(e){if(!zu(e))throw new Error(Nu(7));if(void 0===e.type)throw new Error(Nu(8));if(l)throw new Error(Nu(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}return d({type:Lu.INIT}),(n={dispatch:d,subscribe:f,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Nu(10));o=e,d({type:Lu.REPLACE})}})[Du]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Nu(11));function r(){e.next&&e.next(c())}return r(),{unsubscribe:t(r)}}})[Du]=function(){return this},e},n}function Bu(e,t){return function(){return t(e.apply(this,arguments))}}function Fu(e,t){if("function"==typeof e)return Bu(e,t);if("object"!=typeof e||null===e)throw new Error(Nu(16));var r={};for(var n in e){var o=e[n];"function"==typeof o&&(r[n]=Bu(o,t))}return r}function Hu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Uu=r(99051),Vu=r(17489);var Gu=function(e){e()},qu=function(){return Gu},Ku=Symbol.for("react-redux-context"),$u="undefined"!=typeof globalThis?globalThis:{};function Zu(){var e;if(!u.createContext)return{};var t=null!=(e=$u[Ku])?e:$u[Ku]=new Map,r=t.get(u.createContext);return r||(r=u.createContext(null),t.set(u.createContext,r)),r}var Xu=Zu();var Yu=r(24129),Qu=r.n(Yu),Ju=r(38428),ec=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function tc(e,t,r,n,o){var i,a,s,l,u,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,v,g=!f(p,a),m=!c(o,i,p,a);return i=o,a=p,g&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(n,a)),u=r(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(n,a)),u=r(s,l,a)):m?(h=e(i,a),v=!d(h,s),s=h,v&&(u=r(s,l,a)),u):u}return function(o,c){return p?h(o,c):(s=e(i=o,a=c),l=t(n,a),u=r(s,l,a),p=!0,u)}}function rc(e){return function(t){var r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function nc(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function oc(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=nc(e);var o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=nc(o),o=n(t,r)),o},n}}function ic(e,t){return function(r,n){throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(n.wrappedComponentName,"."))}}function ac(e,t,r){return(0,_.A)({},r,e,t)}var sc={notify:function(){},get:function(){return[]}};function lc(e,t){var r,n=sc,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){var e=qu(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function l(){o--,r&&0===o&&(r(),r=void 0,n.clear(),n=sc)}var u={addNestedSub:function(e){s();var t=n.subscribe(e),r=!1;return function(){r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:function(){return n}};return u}var uc=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?u.useLayoutEffect:u.useEffect;function cc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function fc(e,t){if(cc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!cc(e[r[o]],t[r[o]]))return!1;return!0}function dc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||hc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pc(e){return function(e){if(Array.isArray(e))return vc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hc(e,t){if(e){if("string"==typeof e)return vc(e,t);var r=Object.prototype.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)?vc(e,t):void 0}}function vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var gc=["reactReduxForwardedRef"],mc=function(){throw new Error("uSES not initialized!")},yc=[null,null];function bc(e,t,r,n,o,i){e.current=n,r.current=!1,o.current&&(o.current=null,i())}function wc(e,t){return e===t}const Oc=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=(n.pure,n.areStatesEqual),i=void 0===o?wc:o,a=n.areOwnPropsEqual,s=void 0===a?fc:a,l=n.areStatePropsEqual,c=void 0===l?fc:l,f=n.areMergedPropsEqual,d=void 0===f?fc:f,p=n.forwardRef,h=void 0!==p&&p,v=n.context,g=void 0===v?Xu:v,m=function(e){return e?"function"==typeof e?oc(e):ic(e,"mapStateToProps"):rc((function(){return{}}))}(e),y=function(e){return e&&"object"==typeof e?rc((function(t){return function(e,t){var r={},n=function(){var n=e[o];"function"==typeof n&&(r[o]=function(){return t(n.apply(void 0,arguments))})};for(var o in e)n();return r}(e,t)})):e?"function"==typeof e?oc(e):ic(e,"mapDispatchToProps"):rc((function(e){return{dispatch:e}}))}(t),b=function(e){return e?"function"==typeof e?function(e){return function(t,r){r.displayName;var n,o=r.areMergedPropsEqual,i=!1;return function(t,r,a){var s=e(t,r,a);return i?o(s,n)||(n=s):(i=!0,n=s),n}}}(e):ic(e,"mergeProps"):function(){return ac}}(r),w=Boolean(e);return function(e){var t=e.displayName||e.name||"Component",r="Connect(".concat(t,")"),n={shouldHandleStateChanges:w,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:m,initMapDispatchToProps:y,initMergeProps:b,areStatesEqual:i,areStatePropsEqual:c,areOwnPropsEqual:s,areMergedPropsEqual:d};function o(t){var r=u.useMemo((function(){var e=t.reactReduxForwardedRef,r=(0,xn.A)(t,gc);return[t.context,e,r]}),[t]),o=dc(r,3),i=o[0],a=o[1],s=o[2],l=u.useMemo((function(){return i&&i.Consumer&&(0,Ju.isContextConsumer)(u.createElement(i.Consumer,null))?i:g}),[i,g]),c=u.useContext(l),f=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),d=Boolean(c)&&Boolean(c.store);var p=f?t.store:c.store,h=d?c.getServerState:p.getState,v=u.useMemo((function(){return function(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,xn.A)(t,ec);return tc(r(e,i),n(e,i),o(e,i),e,i)}(p.dispatch,n)}),[p]),m=u.useMemo((function(){if(!w)return yc;var e=lc(p,f?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,f,c]),y=dc(m,2),b=y[0],O=y[1],x=u.useMemo((function(){return f?c:(0,_.A)({},c,{subscription:b})}),[f,c,b]),S=u.useRef(),A=u.useRef(s),P=u.useRef(),j=u.useRef(!1),E=(u.useRef(!1),u.useRef(!1)),I=u.useRef();uc((function(){return E.current=!0,function(){E.current=!1}}),[]);var T,C,k,R,N=u.useMemo((function(){return function(){return P.current&&s===A.current?P.current:v(p.getState(),s)}}),[p,s]),D=u.useMemo((function(){return function(e){return b?function(e,t,r,n,o,i,a,s,l,u,c){if(!e)return function(){};var f=!1,d=null,p=function(){if(!f&&s.current){var e,r,p=t.getState();try{e=n(p,o.current)}catch(e){r=e,d=e}r||(d=null),e===i.current?a.current||u():(i.current=e,l.current=e,a.current=!0,c())}};return r.onStateChange=p,r.trySubscribe(),p(),function(){if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}(w,p,b,v,A,S,j,E,P,O,e):function(){}}}),[b]);T=bc,C=[A,S,j,s,P,O],uc((function(){return T.apply(void 0,pc(C))}),k);try{R=mc(D,N,h?function(){return v(h(),s)}:N)}catch(e){throw I.current&&(e.message+="\nThe error may be correlated with this previous error:\n".concat(I.current.stack,"\n\n")),e}uc((function(){I.current=void 0,P.current=void 0,S.current=R}));var M=u.useMemo((function(){return u.createElement(e,(0,_.A)({},R,{ref:a}))}),[a,e,R]);return u.useMemo((function(){return w?u.createElement(l.Provider,{value:x},M):M}),[l,M,x])}var a=u.memo(o);if(a.WrappedComponent=e,a.displayName=o.displayName=r,h){var l=u.forwardRef((function(e,t){return u.createElement(a,(0,_.A)({},e,{reactReduxForwardedRef:t}))}));return l.displayName=r,l.WrappedComponent=e,Qu()(l,e)}return Qu()(a,e)}};const xc=function(e){var t=e.store,r=e.context,n=e.children,o=e.serverState,i=e.stabilityCheck,a=void 0===i?"once":i,s=e.noopCheck,l=void 0===s?"once":s,c=u.useMemo((function(){var e=lc(t);return{store:t,subscription:e,getServerState:o?function(){return o}:void 0,stabilityCheck:a,noopCheck:l}}),[t,o,a,l]),f=u.useMemo((function(){return t.getState()}),[t]);uc((function(){var e=c.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),f!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[c,f]);var d=r||Xu;return u.createElement(d.Provider,{value:c},n)};var Sc,Ac;function Pc(e,t){var r=(0,u.useState)((function(){return{inputs:t,result:e()}}))[0],n=(0,u.useRef)(!0),o=(0,u.useRef)(r),i=n.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,u.useEffect)((function(){n.current=!1,o.current=i}),[i]),i.result}Sc=Vu.useSyncExternalStoreWithSelector,function(e){mc=e}(Uu.useSyncExternalStore),Ac=Tu.unstable_batchedUpdates,Gu=Ac;var jc=Pc,Ec=function(e,t){return Pc((function(){return e}),t)},Ic="Invariant failed";var Tc=function(e){var t=e.top,r=e.right,n=e.bottom,o=e.left;return{top:t,right:r,bottom:n,left:o,width:r-o,height:n-t,x:o,y:t,center:{x:(r+o)/2,y:(n+t)/2}}},Cc=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},kc=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},_c={top:0,right:0,bottom:0,left:0},Rc=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?_c:r,o=e.border,i=void 0===o?_c:o,a=e.padding,s=void 0===a?_c:a,l=Tc(Cc(t,n)),u=Tc(kc(t,i)),c=Tc(kc(u,s));return{marginBox:l,borderBox:Tc(t),paddingBox:u,contentBox:c,margin:n,border:i,padding:s}},Nc=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&function(e,t){if(!e)throw new Error(Ic)}(!1),r},Dc=function(e,t){var r,n,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(n=t,{top:(r=o).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return Rc({borderBox:l,border:i,margin:a,padding:s})},Mc=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Dc(e,t)},Lc=function(e,t){var r={top:Nc(t.marginTop),right:Nc(t.marginRight),bottom:Nc(t.marginBottom),left:Nc(t.marginLeft)},n={top:Nc(t.paddingTop),right:Nc(t.paddingRight),bottom:Nc(t.paddingBottom),left:Nc(t.paddingLeft)},o={top:Nc(t.borderTopWidth),right:Nc(t.borderRightWidth),bottom:Nc(t.borderBottomWidth),left:Nc(t.borderLeftWidth)};return Rc({borderBox:e,margin:r,padding:n,border:o})},zc=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return Lc(t,r)},Wc=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Bc(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||Wc(n)&&Wc(o)))return!1;var n,o;return!0}function Fc(e,t){void 0===t&&(t=Bc);var r=null;function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return n.clear=function(){r=null},n}const Hc=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];t=o,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n};function Uc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||of(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rf(n.key),n)}}function Gc(e,t,r){return t&&Vc(e.prototype,t),r&&Vc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kc(e,t,r){return t=Qc(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xc()?Reflect.construct(t,r||[],Qc(e).constructor):t.apply(e,r))}function $c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yc(e,t)}function Zc(e){var t="function"==typeof Map?new Map:void 0;return Zc=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(Xc())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Yc(o,r.prototype),o}(e,arguments,Qc(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Yc(r,e)},Zc(e)}function Xc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xc=function(){return!!e})()}function Yc(e,t){return Yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yc(e,t)}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qc(e)}function Jc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(r),!0).forEach((function(t){tf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tf(e,t,r){return(t=rf(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function nf(e){return function(e){if(Array.isArray(e))return af(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||of(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function of(e,t){if(e){if("string"==typeof e)return af(e,t);var r=Object.prototype.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)?af(e,t):void 0}}function af(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sf(e,t){}sf.bind(null,"warn"),sf.bind(null,"error");function lf(){}function uf(e,t,r){var n=t.map((function(t){var n=function(e,t){return ef(ef({},e),t)}(r,t.options);return e.addEventListener(t.eventName,t.fn,n),function(){e.removeEventListener(t.eventName,t.fn,n)}}));return function(){n.forEach((function(e){e()}))}}var cf=!0,ff="Invariant failed",df=function(e){function t(){return qc(this,t),Kc(this,t,arguments)}return $c(t,e),Gc(t)}(Zc(Error));function pf(e,t){if(!e)throw new df(cf?ff:"".concat(ff,": ").concat(t||""))}df.prototype.toString=function(){return this.message};var hf=function(e){function t(){var e;qc(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=Kc(this,t,[].concat(n))).callbacks=null,e.unbind=lf,e.onWindowError=function(t){var r=e.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof df&&t.preventDefault()},e.getCallbacks=function(){if(!e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return e.callbacks},e.setCallbacks=function(t){e.callbacks=t},e}return $c(t,e),Gc(t,[{key:"componentDidMount",value:function(){this.unbind=uf(window,[{eventName:"error",fn:this.onWindowError}])}},{key:"componentDidCatch",value:function(e){if(!(e instanceof df))throw e;this.setState({})}},{key:"componentWillUnmount",value:function(){this.unbind()}},{key:"render",value:function(){return this.props.children(this.setCallbacks)}}]),t}(u.Component),vf=function(e){return e+1},gf=function(e,t){var r=e.droppableId===t.droppableId,n=vf(e.index),o=vf(t.index);return r?"\n You have moved the item from position ".concat(n,"\n to position ").concat(o,"\n "):"\n You have moved the item from position ".concat(n,"\n in list ").concat(e.droppableId,"\n to list ").concat(t.droppableId,"\n in position ").concat(o,"\n ")},mf=function(e,t,r){return t.droppableId===r.droppableId?"\n The item ".concat(e,"\n has been combined with ").concat(r.draggableId):"\n The item ".concat(e,"\n in list ").concat(t.droppableId,"\n has been combined with ").concat(r.draggableId,"\n in list ").concat(r.droppableId,"\n ")},yf=function(e){return"\n The item has returned to its starting position\n of ".concat(vf(e.index),"\n")},bf={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position ".concat(vf(e.source.index),"\n")},onDragUpdate:function(e){var t=e.destination;if(t)return gf(e.source,t);var r=e.combine;return r?mf(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n ".concat(yf(e.source),"\n ");var t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n ".concat(gf(e.source,t),"\n "):r?"\n You have dropped the item.\n ".concat(mf(e.draggableId,e.source,r),"\n "):"\n The item has been dropped while not over a drop area.\n ".concat(yf(e.source),"\n ")}},wf=bf,Of={x:0,y:0},xf=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Sf=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Af=function(e,t){return e.x===t.x&&e.y===t.y},Pf=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},jf=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return"x"===e?{x:t,y:r}:{x:r,y:t}},Ef=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},If=function(e,t){return Math.min.apply(Math,nf(t.map((function(t){return Ef(e,t)}))))},Tf=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Cf=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},kf=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},_f=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=Tc({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):Tc(e)},Rf=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,o=e.frame,i=function(e,t){return t?Cf(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,r){return r&&r.increasedBy?ef(ef({},e),{},tf({},t.end,e[t.end]+r.increasedBy[t.line])):e}(i,n,r);return{page:t,withPlaceholder:r,active:_f(a,o)}},Nf=function(e,t){e.frame||pf(!1);var r=e.frame,n=Sf(t,r.scroll.initial),o=Pf(n),i=ef(ef({},r),{},{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:o},max:r.scroll.max}}),a=Rf({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return ef(ef({},e),{},{frame:i,subject:a})},Df=Fc((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Mf=Fc((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Lf=Fc((function(e){return Object.values(e)})),zf=Fc((function(e){return Object.values(e)})),Wf=Fc((function(e,t){var r=zf(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return r}));function Bf(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ff(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Hf=Fc((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Uf=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Vf={point:Of,value:0},Gf={invisible:{},visible:{},all:[]},qf={displaced:Gf,displacedBy:Vf,at:null},Kf=function(e,t){return function(r){return e<=r&&r<=t}},$f=function(e){var t=Kf(e.top,e.bottom),r=Kf(e.left,e.right);return function(n){if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;var o=t(n.top)||t(n.bottom),i=r(n.left)||r(n.right);if(o&&i)return!0;var a=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},Zf=function(e){var t=Kf(e.top,e.bottom),r=Kf(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},Xf={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Yf={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Qf=function(e){var t=e.target,r=e.destination,n=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:Of;return Cf(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(a,r,i)&&function(e,t,r){return r(t)(e)}(a,n,i)},Jf=function(e){return Qf(ef(ef({},e),{},{isVisibleThroughFrameFn:$f}))},ed=function(e){return Qf(ef(ef({},e),{},{isVisibleThroughFrameFn:Zf}))},td=function(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,o=t.visible;if(n[e])return!1;var i=o[e];return!i||i.shouldAnimate};function rd(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return Tc(Cc(r,n))}(t,n),l=t.descriptor.id;if(e.all.push(l),!Jf({target:s,destination:r,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var u={draggableId:l,shouldAnimate:td(l,a,i)};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function nd(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:Gf,displacedBy:n,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function od(e){var t=e.draggable,r=e.insideDestination,n=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,u=Uf(t,n);if(null==s)return nd({insideDestination:r,inHomeList:u,displacedBy:i,destination:n});var c=r.find((function(e){return e.descriptor.index===s}));if(!c)return nd({insideDestination:r,inHomeList:u,displacedBy:i,destination:n});var f=Hf(t,r),d=r.indexOf(c);return{displaced:rd({afterDragging:f.slice(d),destination:n,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:s}}}}function id(e,t){return Boolean(t.effected[e])}var ad=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,u=e.afterCritical,c=s.at;if(c||pf(!1),"REORDER"===c.type){var f=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,o=e.location;if(!n.length)return null;var i=o.index,a=t?i+1:i-1,s=n[0].descriptor.index,l=n[n.length-1].descriptor.index;return a<s||a>(r?l:l+1)?null:a}({isMovingForward:t,isInHomeList:r,location:c.destination,insideDestination:a});return null==f?null:od({draggable:n,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})}var d=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,o=e.combine,i=e.afterCritical;if(!r.isCombineEnabled)return null;var a=o.draggableId,s=n[a].descriptor.index;return id(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==d?null:od({draggable:n,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})},sd=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,o=Ff(r);o||pf(!1);var i=o.draggableId,a=n[i].page.borderBox.center,s=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[n]||t.invisible[n]);return id(n,r)?i?Of:Pf(o.point):i?o.point:Of}({displaced:r.displaced,afterCritical:t,combineWith:i,displacedBy:r.displacedBy});return xf(a,s)},ld=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ud=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},cd=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return jf(t.line,r.marginBox[t.end]+ld(t,n),ud(t,r.marginBox,n))},fd=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return jf(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),ud(t,r.marginBox,n))},dd=function(e){var t=e.impact,r=e.draggable,n=e.draggables,o=e.droppable,i=e.afterCritical,a=Wf(o.descriptor.id,n),s=r.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return jf(t.line,r.contentBox[t.start]+ld(t,n),ud(t,r.contentBox,n))}({axis:l,moveInto:o.page,isMoving:s});var u=t.displaced,c=t.displacedBy,f=u.all[0];if(f){var d=n[f];if(id(f,i))return fd({axis:l,moveRelativeTo:d.page,isMoving:s});var p=Dc(d.page,c.point);return fd({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===r.descriptor.id)return s.borderBox.center;if(id(h.descriptor.id,i)){var v=Dc(h.page,Pf(i.displacedBy.point));return cd({axis:l,moveRelativeTo:v,isMoving:s})}return cd({axis:l,moveRelativeTo:h.page,isMoving:s})},pd=function(e,t){var r=e.frame;return r?xf(t,r.scroll.diff.displacement):t},hd=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,o=e.draggables,i=e.afterCritical,a=r.page.borderBox.center,s=t.at;return n&&s?"REORDER"===s.type?dd({impact:t,draggable:r,draggables:o,droppable:n,afterCritical:i}):sd({impact:t,draggables:o,afterCritical:i}):a}(e),r=e.droppable;return r?pd(r,t):t},vd=function(e,t){var r=Sf(t,e.scroll.initial),n=Pf(r);return{frame:Tc({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function gd(e,t){return e.map((function(e){return t[e]}))}var md=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return xf(e.scroll.diff.displacement,t)}(e.viewport,t),o=Sf(n,r.page.borderBox.center);return xf(r.client.borderBox.center,o)},yd=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=Sf(n,t.page.borderBox.center),u={target:Cf(t.page.borderBox,l),destination:r,withDroppableDisplacement:i,viewport:o};return s?function(e){return Qf(ef(ef({},e),{},{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=Kf(e.top,e.bottom),n=Kf(e.left,e.right);return function(e){return t===Xf?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(u):ed(u)},bd=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,u=e.afterCritical;if(!n.isEnabled)return null;var c=Wf(n.descriptor.id,o),f=Uf(r,n),d=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.insideDestination,i=e.previousImpact;if(!n.isCombineEnabled)return null;if(!Bf(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return ef(ef({},i),{},{at:t})}var s=i.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var u=Hf(r,o);if(!l)return u.length?a(u[u.length-1].descriptor.id):null;var c=u.findIndex((function(e){return e.descriptor.id===l}));-1===c&&pf(!1);var f=c-1;return f<0?null:a(u[f].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:c,previousImpact:i})||ad({isMovingForward:t,isInHomeList:f,draggable:r,draggables:o,destination:n,insideDestination:c,previousImpact:i,viewport:a,afterCritical:u});if(!d)return null;var p=hd({impact:d,draggable:r,droppable:n,draggables:o,afterCritical:u});if(yd({draggable:r,destination:n,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:md({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};var h=Sf(p,s),v=function(e){var t=e.impact,r=e.viewport,n=e.destination,o=e.draggables,i=e.maxScrollChange,a=vd(r,xf(r.scroll.current,i)),s=n.frame?Nf(n,xf(n.frame.scroll.current,i)):n,l=t.displaced,u=rd({afterDragging:gd(l.all,o),destination:n,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),c=rd({afterDragging:gd(l.all,o),destination:s,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),f={},d={},p=[l,u,c];return l.all.forEach((function(e){var t=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}(e,p);t?d[e]=t:f[e]=!0})),ef(ef({},t),{},{displaced:{all:l.all,invisible:f,visible:d}})}({impact:d,viewport:a,destination:n,draggables:o,maxScrollChange:h});return{clientSelection:l,impact:v,scrollJumpRequest:h}},wd=function(e){var t=e.subject.active;return t||pf(!1),t},Od=function(e,t){var r=e.page.borderBox.center;return id(e.descriptor.id,t)?Sf(r,t.displacedBy.point):r},xd=function(e,t){var r=e.page.borderBox;return id(e.descriptor.id,t)?Cf(r,Pf(t.displacedBy.point)):r},Sd=Fc((function(e,t){var r=t[e.line];return{value:r,point:jf(e.line,r)}})),Ad=function(e,t){return ef(ef({},e),{},{scroll:ef(ef({},e.scroll),{},{max:t})})},Pd=function(e,t,r){var n=e.frame;Uf(t,e)&&pf(!1),e.subject.withPlaceholder&&pf(!1);var o=Sd(e.axis,t.displaceBy).point,i=function(e,t,r){var n=e.axis;if("virtual"===e.descriptor.mode)return jf(n.line,t[n.line]);var o=e.subject.page.contentBox[n.size],i=Wf(e.descriptor.id,r).reduce((function(e,t){return e+t.client.marginBox[n.size]}),0)+t[n.line]-o;return i<=0?null:jf(n.line,i)}(e,o,r),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){var s=Rf({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return ef(ef({},e),{},{subject:s})}var l=i?xf(n.scroll.max,i):n.scroll.max,u=Ad(n,l),c=Rf({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u});return ef(ef({},e),{},{subject:c,frame:u})},jd=function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,u=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,o=e.droppables,i=e.viewport,a=n.subject.active;if(!a)return null;var s=n.axis,l=Kf(a[s.start],a[s.end]),u=Lf(o).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return $f(i.frame)(wd(e))})).filter((function(e){var r=wd(e);return t?a[s.crossAxisEnd]<r[s.crossAxisEnd]:r[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=wd(e),r=Kf(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||r(a[s.start])||r(a[s.end])})).sort((function(e,r){var n=wd(e)[s.crossAxisStart],o=wd(r)[s.crossAxisStart];return t?n-o:o-n})).filter((function(e,t,r){return wd(e)[s.crossAxisStart]===wd(r[0])[s.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return Kf(wd(e)[s.start],wd(e)[s.end])(r[s.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return wd(e)[s.start]-wd(t)[s.start]}))[0]:u.sort((function(e,t){var n=If(r,kf(wd(e))),o=If(r,kf(wd(t)));return n!==o?n-o:wd(e)[s.start]-wd(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:o,droppables:a,viewport:s});if(!u)return null;var c=Wf(u.descriptor.id,i),f=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return ed({target:xd(e,i),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var o=Ef(t,pd(n,Od(e,i))),a=Ef(t,pd(n,Od(r,i)));return o<a?-1:a<o?1:e.descriptor.index-r.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:r,viewport:s,destination:u,insideDestination:c,afterCritical:l}),d=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!r){if(n.length)return null;var u={displaced:Gf,displacedBy:Vf,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=hd({impact:u,draggable:o,droppable:a,draggables:i,afterCritical:l}),f=Uf(o,a)?a:Pd(a,o,i);return yd({draggable:o,destination:f,newPageBorderBoxCenter:c,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var d,p=Boolean(t[a.axis.line]<=r.page.borderBox.center[a.axis.line]),h=(d=r.descriptor.index,r.descriptor.id===o.descriptor.id||p?d:d+1),v=Sd(a.axis,o.displaceBy);return od({draggable:o,insideDestination:n,destination:a,viewport:s,displacedBy:v,last:Gf,index:h})}({previousPageBorderBoxCenter:r,destination:u,draggable:n,draggables:i,moveRelativeTo:f,insideDestination:c,viewport:s,afterCritical:l});if(!d)return null;var p=hd({impact:d,draggable:n,droppable:u,draggables:i,afterCritical:l});return{clientSelection:md({pageBorderBoxCenter:p,draggable:n,viewport:s}),impact:d,scrollJumpRequest:null}},Ed=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Id=function(e){var t=e.state,r=e.type,n=function(e,t){var r=Ed(e);return r?t[r]:null}(t.impact,t.dimensions.droppables),o=Boolean(n),i=t.dimensions.droppables[t.critical.droppable.id],a=n||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===s&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(l&&!o)return null;var u="MOVE_DOWN"===r||"MOVE_RIGHT"===r,c=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,d=t.dimensions,p=d.draggables,h=d.droppables;return l?bd({isMovingForward:u,previousPageBorderBoxCenter:f,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):jd({isMovingForward:u,previousPageBorderBoxCenter:f,draggable:c,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Td(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Cd(e){var t=Kf(e.top,e.bottom),r=Kf(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function kd(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,o=Lf(n).filter((function(e){if(!e.isEnabled)return!1;var r,n,o=e.subject.active;if(!o)return!1;if(n=o,!((r=t).left<n.right&&r.right>n.left&&r.top<n.bottom&&r.bottom>n.top))return!1;if(Cd(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],u=Kf(o[i.crossAxisStart],o[i.crossAxisEnd]),c=u(s),f=u(l);return!c&&!f||(c?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,o=r.page.borderBox.center,i=n.map((function(e){var r=e.axis,n=jf(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:Ef(o,n)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:r,candidates:o}):null}var _d=function(e,t){return Tc(Cf(e,t))};function Rd(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var Nd=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=_d(r.page.borderBox,t),u=kd({pageBorderBox:l,draggable:r,droppables:o});if(!u)return qf;var c=o[u],f=Wf(c.descriptor.id,n),d=function(e,t){var r=e.frame;return r?_d(t,r.scroll.diff.value):t}(c,l);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Sd(o.axis,t.displaceBy),u=l.value,c=r[s.start],f=r[s.end],d=Hf(t,i).find((function(e){var t=e.descriptor.id,r=e.page.borderBox,o=r[s.size]/4,i=id(t,a),l=Rd({displaced:n.displaced,id:t});return i?l?f>r[s.start]+o&&f<r[s.end]-o:c>r[s.start]-u+o&&c<r[s.end]-u-o:l?f>r[s.start]+u+o&&f<r[s.end]+u-o:c>r[s.start]+o&&c<r[s.end]-o}));return d?{displacedBy:l,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:i,destination:c,insideDestination:f,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=n.axis,u=Sd(n.axis,r.displaceBy),c=u.value,f=t[l.start],d=t[l.end],p=function(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:Hf(r,o).find((function(e){var t=e.descriptor.id,r=e.page.borderBox.center[l.line],n=id(t,s),o=Rd({displaced:i,id:t});return n?o?d<=r:f<r-c:o?d<=r+c:f<r}))||null,inHomeList:Uf(r,n)});return od({draggable:r,insideDestination:o,destination:n,viewport:a,last:i,displacedBy:u,index:p})}({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:c,insideDestination:f,last:i.displaced,viewport:a,afterCritical:s})},Dd=function(e,t){return ef(ef({},e),{},tf({},t.descriptor.id,t))},Md=function(e){var t=e.previousImpact,r=e.impact,n=e.droppables,o=Ed(t),i=Ed(r);if(!o)return n;if(o===i)return n;var a=n[o];if(!a.subject.withPlaceholder)return n;var s=function(e){var t=e.subject.withPlaceholder;t||pf(!1);var r=e.frame;if(!r){var n=Rf({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return ef(ef({},e),{},{subject:n})}var o=t.oldFrameMaxScroll;o||pf(!1);var i=Ad(r,o),a=Rf({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return ef(ef({},e),{},{subject:a,frame:i})}(a);return Dd(n,s)},Ld=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,s=o||t.viewport,l=n||t.dimensions,u=r||t.current.client.selection,c=Sf(u,t.initial.client.selection),f={offset:c,selection:u,borderBoxCenter:xf(t.initial.client.borderBoxCenter,c)},d={selection:xf(f.selection,s.scroll.current),borderBoxCenter:xf(f.borderBoxCenter,s.scroll.current),offset:xf(f.offset,s.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return ef(ef({},t),{},{dimensions:l,viewport:s,current:p});var h=l.draggables[t.critical.draggable.id],v=i||Nd({pageOffset:d.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,o=e.previousImpact,i=e.impact,a=Md({previousImpact:o,impact:i,droppables:n}),s=Ed(i);if(!s)return a;var l=n[s];if(Uf(t,l))return a;if(l.subject.withPlaceholder)return a;var u=Pd(l,t,r);return Dd(a,u)}({draggable:h,impact:v,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return ef(ef({},t),{},{current:p,dimensions:{draggables:l.draggables,droppables:g},impact:v,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var zd=function(e){var t=e.impact,r=e.viewport,n=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(a.all,n),l=rd({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:i,last:a});return ef(ef({},t),{},{displaced:l})},Wd=function(e){var t=e.impact,r=e.draggable,n=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=hd({impact:t,draggable:r,draggables:o,droppable:n,afterCritical:a});return md({pageBorderBoxCenter:s,draggable:r,viewport:i})},Bd=function(e){var t=e.state,r=e.dimensions,n=e.viewport;"SNAP"!==t.movementMode&&pf(!1);var o=t.impact,i=n||t.viewport,a=r||t.dimensions,s=a.draggables,l=a.droppables,u=s[t.critical.draggable.id],c=Ed(o);c||pf(!1);var f=l[c],d=zd({impact:o,viewport:i,destination:f,draggables:s}),p=Wd({impact:d,draggable:u,droppable:f,draggables:s,viewport:i,afterCritical:t.afterCritical});return Ld({impact:d,clientSelection:p,state:t,dimensions:a,viewport:i})},Fd=function(e){var t=e.draggable,r=e.home,n=e.draggables,o=e.viewport,i=Sd(r.axis,t.displaceBy),a=Wf(r.descriptor.id,n),s=a.indexOf(t);-1===s&&pf(!1);var l,u=a.slice(s+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:rd({afterDragging:u,destination:r,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:f}},Hd=function(e){0},Ud=function(e){0},Vd=function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,o=n.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||pf(!1),t}(r[t]),a=i.scroll.diff.value,s=function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,o=Dc(t.client,r),i=Mc(o,n);return ef(ef({},t),{},{placeholder:ef(ef({},t.placeholder),{},{client:o}),client:o,page:i})}({draggable:e,offset:xf(o,a),initialWindowScroll:n.scroll.initial});return s}))},Gd=function(e){return"SNAP"===e.movementMode},qd=function(e,t,r){var n=function(e,t){return{draggables:e.draggables,droppables:Dd(e.droppables,t)}}(e.dimensions,t);return!Gd(e)||r?Ld({state:e,dimensions:n}):Bd({state:e,dimensions:n})};function Kd(e){return e.isDragging&&"SNAP"===e.movementMode?ef(ef({},e),{},{scrollJumpRequest:null}):e}var $d={phase:"IDLE",completed:null,shouldFlush:!1},Zd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$d,t=arguments.length>1?arguments[1]:void 0;if("FLUSH"===t.type)return ef(ef({},$d),{},{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&pf(!1);var r=t.payload,n=r.critical,o=r.clientSelection,i=r.viewport,a=r.dimensions,s=r.movementMode,l=a.draggables[n.draggable.id],u=a.droppables[n.droppable.id],c={selection:o,borderBoxCenter:l.client.borderBox.center,offset:Of},f={client:c,page:{selection:xf(c.selection,i.scroll.initial),borderBoxCenter:xf(c.selection,i.scroll.initial),offset:xf(c.selection,i.scroll.diff.value)}},d=Lf(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Fd({draggable:l,home:u,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:s,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&pf(!1),ef(ef({},e),{},{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&pf(!1),function(e){var t=e.state,r=e.published;Hd();var n=r.modified.map((function(e){var r=t.dimensions.droppables[e.droppableId];return Nf(r,e.scroll)})),o=ef(ef({},t.dimensions.droppables),Df(n)),i=Mf(Vd({additions:r.additions,updatedDroppables:o,viewport:t.viewport})),a=ef(ef({},t.dimensions.draggables),i);r.removals.forEach((function(e){delete a[e]}));var s={droppables:o,draggables:a},l=Ed(t.impact),u=l?s.droppables[l]:null,c=s.draggables[t.critical.draggable.id],f=s.droppables[t.critical.droppable.id],d=Fd({draggable:c,home:f,draggables:a,viewport:t.viewport}),p=d.impact,h=d.afterCritical,v=u&&u.isCombineEnabled?t.impact:p,g=Nd({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:v,viewport:t.viewport,afterCritical:h});Ud();var m=ef(ef({},t),{},{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:s,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?m:ef(ef({},m),{},{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Td(e)||pf(!1);var v=t.payload.client;return Af(v,e.current.client.selection)?e:Ld({state:e,clientSelection:v,impact:Gd(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Kd(e);if("COLLECTING"===e.phase)return Kd(e);Td(e)||pf(!1);var g=t.payload,m=g.id,y=g.newScroll,b=e.dimensions.droppables[m];if(!b)return e;var w=Nf(b,y);return qd(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Td(e)||pf(!1);var O=t.payload,x=O.id,S=O.isEnabled,A=e.dimensions.droppables[x];A||pf(!1),A.isEnabled===S&&pf(!1);var P=ef(ef({},A),{},{isEnabled:S});return qd(e,P,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Td(e)||pf(!1);var j=t.payload,E=j.id,I=j.isCombineEnabled,T=e.dimensions.droppables[E];T||pf(!1),T.isCombineEnabled===I&&pf(!1);var C=ef(ef({},T),{},{isCombineEnabled:I});return qd(e,C,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Td(e)||pf(!1),e.isWindowScrollAllowed||pf(!1);var k=t.payload.newScroll;if(Af(e.viewport.scroll.current,k))return Kd(e);var _=vd(e.viewport,k);return Gd(e)?Bd({state:e,viewport:_}):Ld({state:e,viewport:_})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Td(e))return e;var R=t.payload.maxScroll;if(Af(R,e.viewport.scroll.max))return e;var N=ef(ef({},e.viewport),{},{scroll:ef(ef({},e.viewport.scroll),{},{max:R})});return ef(ef({},e),{},{viewport:N})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&pf(!1);var D=Id({state:e,type:t.type});return D?Ld({state:e,impact:D.impact,clientSelection:D.clientSelection,scrollJumpRequest:D.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var M=t.payload.reason;return"COLLECTING"!==e.phase&&pf(!1),ef(ef({},e),{},{phase:"DROP_PENDING",isWaiting:!0,reason:M})}if("DROP_ANIMATE"===t.type){var L=t.payload,z=L.completed,W=L.dropDuration,B=L.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&pf(!1),{phase:"DROP_ANIMATING",completed:z,dropDuration:W,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Xd=function(e){return{type:"LIFT",payload:e}},Yd=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Qd=function(){return{type:"COLLECTION_STARTING",payload:null}},Jd=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},ep=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},tp=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},rp=function(e){return{type:"MOVE",payload:e}},np=function(){return{type:"MOVE_UP",payload:null}},op=function(){return{type:"MOVE_DOWN",payload:null}},ip=function(){return{type:"MOVE_RIGHT",payload:null}},ap=function(){return{type:"MOVE_LEFT",payload:null}},sp=function(){return{type:"FLUSH",payload:null}},lp=function(e){return{type:"DROP_COMPLETE",payload:e}},up=function(e){return{type:"DROP",payload:e}},cp=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var fp="cubic-bezier(0.2, 0, 0, 1)",dp="cubic-bezier(.2,1,.1,1)",pp={drop:0,combining:.7},hp={drop:.75},vp=.33,gp=.55,mp="".concat(.2,"s ").concat(fp),yp={fluid:"opacity ".concat(mp),snap:"transform ".concat(mp,", opacity ").concat(mp),drop:function(e){var t="".concat(e,"s ").concat(dp);return"transform ".concat(t,", opacity ").concat(t)},outOfTheWay:"transform ".concat(mp),placeholder:"height ".concat(mp,", width ").concat(mp,", margin ").concat(mp)},bp=function(e){return Af(e,Of)?void 0:"translate(".concat(e.x,"px, ").concat(e.y,"px)")},wp={moveTo:bp,drop:function(e,t){var r=bp(e);if(r)return t?"".concat(r," scale(").concat(hp.drop,")"):r}},Op=vp,xp=gp,Sp=xp-Op,Ap=function(e){var t=e.getState,r=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var o=t(),i=n.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&pf(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&pf(!1);var a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:ef(ef({},n),{},{displaced:Gf}),didDropInsideDroppable:!0}:{impact:zd({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),c=u.impact,f=u.didDropInsideDroppable,d=f?Bf(c):null,p=f?Ff(c):null,h={index:a.draggable.index,droppableId:a.droppable.id},v={draggableId:l.descriptor.id,type:l.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:d,combine:p},g=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,o=e.viewport,i=e.afterCritical,a=n.draggables,s=n.droppables,l=Ed(t),u=l?s[l]:null,c=s[r.descriptor.droppableId],f=Wd({impact:t,draggable:r,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return Sf(f,r.client.borderBox.center)}({impact:c,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),m={critical:o.critical,afterCritical:o.afterCritical,result:v,impact:c};if(!Af(o.current.client.offset,g)||Boolean(v.combine)){var y=function(e){var t=e.current,r=e.destination,n=e.reason,o=Ef(t,r);if(o<=0)return Op;if(o>=1500)return xp;var i=Op+Sp*(o/1500);return Number(("CANCEL"===n?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:g,reason:i});r(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:y,completed:m}))}else r(lp({completed:m}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(n)}}},Pp=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function jp(e){var t=e.onWindowScroll;var r=Hc((function(){t(Pp())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(r),o=lf;function i(){return o!==lf}return{start:function(){i()&&pf(!1),o=uf(window,[n])},stop:function(){i()||pf(!1),r.cancel(),o(),o=lf},isActive:i}}var Ep=function(e){var t=jp({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},Ip=function(){var e=[];return{add:function(t){var r=setTimeout((function(){return function(t){var r=e.findIndex((function(e){return e.timerId===t}));-1===r&&pf(!1),Uc(e.splice(r,1),1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Tp=function(e,t){Hd(),t(),Ud()},Cp=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}};function kp(e,t,r,n){if(e){var o=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),o=function(o){t||r||(t=!0,e(o),clearTimeout(n))};return o.wasCalled=function(){return t},o}(r);e(t,{announce:o}),o.wasCalled()||r(n(t))}else r(n(t))}var _p=function(e,t){var r=function(e,t){var r=Ip(),n=null,o=function(r){n||pf(!1),n=null,Tp(0,(function(){return kp(e().onDragEnd,r,t,wf.onDragEnd)}))};return{beforeCapture:function(t,r){n&&pf(!1),Tp(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){n&&pf(!1),Tp(0,(function(){var n=e().onBeforeDragStart;n&&n(Cp(t,r))}))},start:function(o,i){n&&pf(!1);var a=Cp(o,i);n={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},r.add((function(){Tp(0,(function(){return kp(e().onDragStart,a,t,wf.onDragStart)}))}))},update:function(o,i){var a=Bf(i),s=Ff(i);n||pf(!1);var l=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(o,n.lastCritical);l&&(n.lastCritical=o);var u,c,f=(c=a,!(null==(u=n.lastLocation)&&null==c||null!=u&&null!=c&&u.droppableId===c.droppableId&&u.index===c.index));f&&(n.lastLocation=a);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(n.lastCombine,s);if(d&&(n.lastCombine=s),l||f||d){var p=ef(ef({},Cp(o,n.mode)),{},{combine:s,destination:a});r.add((function(){Tp(0,(function(){return kp(e().onDragUpdate,p,t,wf.onDragUpdate)}))}))}},flush:function(){n||pf(!1),r.flush()},drop:o,abort:function(){if(n){var e=ef(ef({},Cp(n.lastCritical,n.mode)),{},{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var o=n.payload.critical;return r.beforeStart(o,n.payload.movementMode),t(n),void r.start(o,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var i=n.payload.completed.result;return r.flush(),t(n),void r.drop(i)}if(t(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&r.update(a.critical,a.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Rp=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&pf(!1),e.dispatch(lp({completed:n.completed}))}else t(r)}}},Np=function(e){var t=null,r=null;return function(n){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=uf(window,[i])}))}}}},Dp=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(up({reason:n.reason})))}}}},Mp=Hu,Lp=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,s=e.autoScroller;return Wu(Zd,Mp(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(Nu(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=Hu.apply(void 0,i)(r.dispatch),Ru(Ru({},r),{},{dispatch:n})}}}((t=o,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,u=r();"DROP_ANIMATING"===u.phase&&n(lp({completed:u.completed})),"IDLE"!==r().phase&&pf(!1),n(sp()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},f=e.startPublishing(c),d=f.critical,p=f.dimensions,h=f.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(r),Ap,Rp,Np,Dp,function(e){return function(t){return function(r){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var o=t.getState();return"DRAGGING"!==o.phase&&pf(!1),void e.start(o)}r(n),e.scroll(t.getState())}}}}(s),Ep,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var o=n.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),_p(i,a))))};var zp=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,o=e.width,i=Sf({x:r,y:t},{x:o,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Wp=function(){var e=document.documentElement;return e||pf(!1),e},Bp=function(){var e=Wp();return zp({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Fp=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry;Hd();var o,i,a,s,l,u,c,f=(o=Pp(),i=Bp(),a=o.y,s=o.x,l=Wp(),u=l.clientWidth,c=l.clientHeight,{frame:Tc({top:a,left:s,right:s+u,bottom:a+c}),scroll:{initial:o,current:o,max:i,diff:{value:Of,displacement:Of}}}),d=f.scroll.current,p=t.droppable,h=n.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,r)})),v=n.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(d)})),g={draggables:Mf(v),droppables:Df(h)};return Ud(),{dimensions:g,critical:t,viewport:f}};function Hp(e,t,r){return r.descriptor.id!==t.id&&(r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode)}var Up,Vp,Gp=function(e,t){var r=null,n=function(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},o=null,i=function(){o||(r.collectionStarting(),o=requestAnimationFrame((function(){o=null,Hd();var e=n,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Of)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:l,removals:Object.keys(a),modified:u};n={additions:{},removals:{},modified:{}},Ud(),r.publish(c)})))};return{add:function(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],i()},remove:function(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){r||pf(!1);var o=r.critical.draggable;"ADDITION"===t.type&&Hp(e,o,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Hp(e,o,t.value)&&n.remove(t.value)},i={updateDroppableIsEnabled:function(n,o){e.droppable.exists(n)||pf(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:o})},updateDroppableIsCombineEnabled:function(n,o){r&&(e.droppable.exists(n)||pf(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:o}))},scrollDroppable:function(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function(n,o){r&&(e.droppable.exists(n)||pf(!1),t.updateDroppableScroll({id:n,newScroll:o}))},startPublishing:function(t){r&&pf(!1);var n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor},s=e.subscribe(o);return r={critical:a,unsubscribe:s},Fp({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}};return i},qp=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Kp=function(e){window.scrollBy(e.x,e.y)},$p=Fc((function(e){return Lf(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Zp=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var o=n[r];return o.frame?o:null}var i=function(e,t){var r=$p(t).find((function(t){return t.frame||pf(!1),Cd(t.frame.pageMarginBox)(e)}))||null;return r}(t,n);return i},Xp={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(e){return Math.pow(e,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1},Yp=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,o=r-t;return 0===o?0:(n-t)/o},Qp=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,o=e.shouldUseTimeDampening,i=e.getAutoScrollerOptions,a=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return Xp})();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;var n=1-Yp({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(n);return Math.ceil(o)}(t,r,i);return 0===a?0:o?Math.max(function(e,t,r){var n=r(),o=n.durationDampening.accelerateAt,i=n.durationDampening.stopDampeningAt,a=t,s=i,l=Date.now()-a;if(l>=i)return e;if(l<o)return 1;var u=Yp({startOfRange:o,endOfRange:s,current:l}),c=e*n.ease(u);return Math.ceil(c)}(a,n,i),1):a},Jp=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=e.getAutoScrollerOptions,s=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return Xp})();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}}(t,o,a);return r[o.end]<r[o.start]?Qp({distanceToEdge:r[o.end],thresholds:s,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a}):-1*Qp({distanceToEdge:r[o.start],thresholds:s,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})},eh=Tf((function(e){return 0===e?0:e})),th=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,o=e.center,i=e.shouldUseTimeDampening,a=e.getAutoScrollerOptions,s={top:o.y-r.top,right:r.right-o.x,bottom:r.bottom-o.y,left:o.x-r.left},l=Jp({container:r,distanceToEdges:s,dragStartTime:t,axis:Xf,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),u=Jp({container:r,distanceToEdges:s,dragStartTime:t,axis:Yf,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),c=eh({x:u,y:l});if(Af(c,Of))return null;var f=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,o=r.height>t.height,i=r.width>t.width;return i||o?i&&o?null:{x:i?0:n.x,y:o?0:n.y}:n}({container:r,subject:n,proposedScroll:c});return f?Af(f,Of)?null:f:null},rh=Tf((function(e){return 0===e?0:e>0?1:-1})),nh=(Up=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,o=xf(t,n),i={x:Up(o.x,r.x),y:Up(o.y,r.y)};return Af(i,Of)?null:i}),oh=function(e){var t=e.max,r=e.current,n=e.change,o={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},i=rh(n),a=nh({max:o,current:r,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},ih=function(e,t){return oh({current:e.scroll.current,max:e.scroll.max,change:t})},ah=function(e,t){var r=e.frame;return!!r&&oh({current:r.scroll.current,max:r.scroll.max,change:t})},sh=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=e.getAutoScrollerOptions,s=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,r=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=e.getAutoScrollerOptions,s=th({dragStartTime:o,container:t.frame,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return s&&ih(t,s)?s:null}({dragStartTime:r,viewport:t.viewport,subject:l,center:s,shouldUseTimeDampening:n,getAutoScrollerOptions:a});if(u)return void o(u)}var c=Zp({center:s,destination:Ed(t.impact),droppables:t.dimensions.droppables});if(c){var f=function(e){var t=e.droppable,r=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=e.getAutoScrollerOptions,s=t.frame;if(!s)return null;var l=th({dragStartTime:o,container:s.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return l&&ah(t,l)?l:null}({dragStartTime:r,droppable:c,subject:l,center:s,shouldUseTimeDampening:n,getAutoScrollerOptions:a});f&&i(c.descriptor.id,f)}},lh=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,o=function(e,t){if(!ah(e,t))return t;var n=function(e,t){var r=e.frame;return r&&ah(e,t)?nh({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var o=Sf(t,n);return r(e.descriptor.id,o),Sf(t,o)},i=function(e,t,r){if(!e)return r;if(!ih(t,r))return r;var o=function(e,t){if(!ih(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return nh({current:n,max:r,change:t})}(t,r);if(!o)return n(r),null;var i=Sf(r,o);return n(i),Sf(r,i)};return function(e){var r=e.scrollJumpRequest;if(r){var n=Ed(e.impact);n||pf(!1);var a=o(e.dimensions.droppables[n],r);if(a){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,a);l&&function(e,r){var n=xf(e.current.client.selection,r);t({client:n})}(e,l)}}}},uh=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,o=e.getAutoScrollerOptions,i=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=e.getAutoScrollerOptions,o=void 0===n?function(){return Xp}:n,i=Hc(t),a=Hc(r),s=null,l=function(e){s||pf(!1);var t=s,r=t.shouldUseTimeDampening,n=t.dragStartTime;sh({state:e,scrollWindow:i,scrollDroppable:a,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:o})};return{start:function(e){Hd(),s&&pf(!1);var t=Date.now(),r=!1,n=function(){r=!0};sh({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n,getAutoScrollerOptions:o}),s={dragStartTime:t,shouldUseTimeDampening:r},Ud(),r&&l(e)},stop:function(){s&&(i.cancel(),a.cancel(),s=null)},scroll:l}}({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:o}),a=lh({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){o().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):i.scroll(e))},start:i.start,stop:i.stop}},ch="data-rfd",fh={base:Vp="".concat(ch,"-drag-handle"),draggableId:"".concat(Vp,"-draggable-id"),contextId:"".concat(Vp,"-context-id")},dh=function(){var e="".concat(ch,"-draggable");return{base:e,contextId:"".concat(e,"-context-id"),id:"".concat(e,"-id")}}(),ph=function(){var e="".concat(ch,"-droppable");return{base:e,contextId:"".concat(e,"-context-id"),id:"".concat(e,"-id")}}(),hh={contextId:"".concat(ch,"-scroll-container-context-id")},vh=function(e,t){return e.map((function(e){var r=e.styles[t];return r?"".concat(e.selector," { ").concat(r," }"):""})).join(" ")},gh=function(e){var t,r,n,o=(t=e,function(e){return"[".concat(e,'="').concat(t,'"]')}),i=(r="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(fh.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),a=[(n="\n transition: ".concat(yp.outOfTheWay,";\n "),{selector:o(dh.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),i,{selector:o(ph.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:vh(a,"always"),resting:vh(a,"resting"),dragging:vh(a,"dragging"),dropAnimating:vh(a,"dropAnimating"),userCancel:vh(a,"userCancel")}},mh="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect,yh=function(){var e=document.querySelector("head");return e||pf(!1),e},bh=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function wh(e,t){return Array.from(e.querySelectorAll(t))}var Oh=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function xh(e){return e instanceof Oh(e).HTMLElement}function Sh(e,t){var r="[".concat(fh.contextId,'="').concat(e,'"]'),n=wh(document,r);if(!n.length)return null;var o=n.find((function(e){return e.getAttribute(fh.draggableId)===t}));return o&&xh(o)?o:null}function Ah(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=n(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||pf(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return Object.values(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=o(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||pf(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Object.values(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Ph=u.createContext(null),jh=function(){var e=document.body;return e||pf(!1),e},Eh={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ih=function(e){return"rfd-announcement-".concat(e)};var Th={separator:"::"};var Ch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Th,r=u.useId();return jc((function(){return"".concat(e).concat(t.separator).concat(r)}),[t.separator,e,r])};var kh=u.createContext(null);function _h(e){0}function Rh(e,t){_h()}function Nh(e){var t=(0,u.useRef)(e);return(0,u.useEffect)((function(){t.current=e})),t}function Dh(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}var Mh=27,Lh=32,zh=37,Wh=38,Bh=39,Fh=40,Hh=tf(tf({},13,!0),9,!0),Uh=function(e){Hh[e.keyCode]&&e.preventDefault()},Vh=function(){var e="visibilitychange";return"undefined"==typeof document?e:[e,"ms".concat(e),"webkit".concat(e),"moz".concat(e),"o".concat(e)].find((function(e){return"on".concat(e)in document}))||e}(),Gh=Vh,qh=0,Kh=5;var $h={type:"IDLE"};function Zh(e){var t=e.cancel,r=e.completed,n=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,i=e.clientY;if(t===qh){var a={x:r,y:i},s=n();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&pf(!1);var l=s.point;if(u=l,c=a,Math.abs(c.x-u.x)>=Kh||Math.abs(c.y-u.y)>=Kh){var u,c;e.preventDefault();var f=s.actions.fluidLift(a);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return e.keyCode===Mh?(e.preventDefault(),void t()):void Uh(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&pf(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Gh,fn:t}]}function Xh(){}var Yh=tf(tf(tf(tf({},34,!0),33,!0),36,!0),35,!0);function Qh(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return n.keyCode===Mh?(n.preventDefault(),void r()):n.keyCode===Lh?(n.preventDefault(),t(),void e.drop()):n.keyCode===Fh?(n.preventDefault(),void e.moveDown()):n.keyCode===Wh?(n.preventDefault(),void e.moveUp()):n.keyCode===Bh?(n.preventDefault(),void e.moveRight()):n.keyCode===zh?(n.preventDefault(),void e.moveLeft()):void(Yh[n.keyCode]?n.preventDefault():Uh(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Gh,fn:r}]}var Jh={type:"IDLE"},ev=.15;var tv=["input","button","textarea","select","option","optgroup","video","audio"];function rv(e,t){if(null==t)return!1;if(tv.includes(t.tagName.toLowerCase()))return!0;var r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&rv(e,t.parentElement)}function nv(e,t){var r=t.target;return!!xh(r)&&rv(e,r)}var ov=function(e){return Tc(e.getBoundingClientRect()).center};var iv=function(){var e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find((function(e){return e in Element.prototype}))||e}();function av(e,t){return null==e?null:e[iv](t)?e:av(e.parentElement,t)}function sv(e,t){return e.closest?e.closest(t):av(e,t)}function lv(e,t){var r,n=t.target;if(!((r=n)instanceof Oh(r).Element))return null;var o=function(e){return"[".concat(fh.contextId,'="').concat(e,'"]')}(e),i=sv(n,o);return i&&xh(i)?i:null}function uv(e){e.preventDefault()}function cv(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function fv(e){var t=e.lockAPI,r=e.store,n=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=n.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!qp(r.getState(),o))}function dv(e){var t=e.lockAPI,r=e.contextId,n=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!fv({lockAPI:t,store:n,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),u=function(e,t){var r="[".concat(dh.contextId,'="').concat(e,'"]'),n=wh(document,r).find((function(e){return e.getAttribute(dh.id)===t}));return n&&xh(n)?n:null}(r,l.descriptor.id);if(!u)return null;if(s&&!l.options.canDragInteractiveElements&&nv(u,s))return null;var c=t.claim(a||lf),f="PRE_DRAG";function d(){return l.options.shouldRespectForcePress}function p(){return t.isActive(c)}var h=function(e,t){cv({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function v(e){function r(){t.release(),f="COMPLETED"}function o(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldBlockNextClick:!1};if(e.cleanup(),o.shouldBlockNextClick){var i=uf(window,[{eventName:"click",fn:uv,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}r(),n.dispatch(up({reason:t}))}return"PRE_DRAG"!==f&&(r(),pf(!1)),n.dispatch(Xd(e.liftActionArgs)),f="DRAGGING",ef({isActive:function(){return cv({expected:"DRAGGING",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var g={isActive:function(){return cv({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=Hc((function(e){h((function(){return rp({client:e})}))}));return ef(ef({},v({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}})),{},{move:t})},snapLift:function(){var e={moveUp:function(){return h(np)},moveRight:function(){return h(ip)},moveDown:function(){return h(op)},moveLeft:function(){return h(ap)}};return v({liftActionArgs:{id:i,clientSelection:ov(u),movementMode:"SNAP"},cleanup:lf,actions:e})},abort:function(){cv({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}};return g}var pv=[function(e){var t=(0,u.useRef)($h),r=(0,u.useRef)(lf),n=jc((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===qh&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};r.current(),c(o,i)}}}}}}),[e]),o=jc((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),i=Ec((function(){r.current=uf(window,[o,n],{passive:!1,capture:!0})}),[o,n]),a=Ec((function(){"IDLE"!==t.current.type&&(t.current=$h,r.current(),i())}),[i]),s=Ec((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),l=Ec((function(){var e=Zh({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=uf(window,e,{capture:!0,passive:!1})}),[s,a]),c=Ec((function(e,r){"IDLE"!==t.current.type&&pf(!1),t.current={type:"PENDING",point:r,actions:e},l()}),[l]);mh((function(){return i(),function(){r.current()}}),[i])},function(e){var t=(0,u.useRef)(Xh),r=jc((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&r.keyCode===Lh){var o=e.findClosestDraggableId(r);if(o){var i=e.tryGetLock(o,l,{sourceEvent:r});if(i){r.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=uf(window,Qh(s,l),{capture:!0,passive:!1})}}}function l(){a||pf(!1),a=!1,t.current(),n()}}}}),[e]),n=Ec((function(){t.current=uf(window,[r],{passive:!1,capture:!0})}),[r]);mh((function(){return n(),function(){t.current()}}),[n])},function(e){var t=(0,u.useRef)(Jh),r=(0,u.useRef)(lf),n=Ec((function(){return t.current}),[]),o=Ec((function(e){t.current=e}),[]),i=jc((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};r.current(),d(o,a)}}}}}}),[e]),a=Ec((function(){r.current=uf(window,[i],{capture:!0,passive:!1})}),[i]),s=Ec((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(Jh),r.current(),a())}),[a,o]),l=Ec((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Ec((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:n},o=uf(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),r.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&pf(!1);var o=e.touches[0];if(o&&o.force>=ev){var i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Gh,fn:t}]}(t),e),i=uf(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(e.keyCode===Mh&&e.preventDefault(),t()):t()}},{eventName:Gh,fn:t}]}(t),e);r.current=function(){o(),i()}}),[l,n,s]),f=Ec((function(){var e=n();"PENDING"!==e.type&&pf(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[n,o]),d=Ec((function(e,t){"IDLE"!==n().type&&pf(!1);var r=setTimeout(f,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),c()}),[c,n,o,f]);mh((function(){return a(),function(){r.current();var e=n();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(Jh))}}),[n,a,o]),mh((function(){return uf(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function hv(e){var t=e.contextId,r=e.store,n=e.registry,o=e.customSensors,i=e.enableDefaultSensors,a=[].concat(nf(i?pv:[]),nf(o||[])),s=(0,u.useState)((function(){return function(){var e=null;function t(){e||pf(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&pf(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=Ec((function(e,t){Dh(e)&&!Dh(t)&&s.tryAbandon()}),[s]);mh((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();l(e,t),e=t}))}),[s,r,l]),mh((function(){return s.tryAbandon}),[s.tryAbandon]);var c=Ec((function(e){return fv({lockAPI:s,registry:n,store:r,draggableId:e})}),[s,n,r]),f=Ec((function(e,o,i){return dv({lockAPI:s,registry:n,contextId:t,store:r,draggableId:e,forceSensorStop:o||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,n,r]),d=Ec((function(e){return function(e,t){var r=lv(e,t);return r?r.getAttribute(fh.draggableId):null}(t,e)}),[t]),p=Ec((function(e){var t=n.draggable.findById(e);return t?t.options:null}),[n.draggable]),h=Ec((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(sp()))}),[s,r]),v=Ec((function(){return s.isClaimed()}),[s]),g=jc((function(){return{canGetLock:c,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:v}}),[c,f,d,p,h,v]);_h();for(var m=0;m<a.length;m++)a[m](g)}var vv=function(e){return{onBeforeCapture:function(t){var r=function(){e.onBeforeCapture&&e.onBeforeCapture(t)};u.version.startsWith("16")||u.version.startsWith("17")?r():(0,Tu.flushSync)(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}},gv=function(e){return ef(ef(ef({},Xp),e.autoScrollerOptions),{},{durationDampening:ef(ef({},Xp.durationDampening),e.autoScrollerOptions)})};function mv(e){return e.current||pf(!1),e.current}function yv(e){var t=e.contextId,r=e.setCallbacks,n=e.sensors,o=e.nonce,i=e.dragHandleUsageInstructions,a=(0,u.useRef)(null);Rh();var s=Nh(e),l=Ec((function(){return vv(s.current)}),[s]),c=Ec((function(){return gv(s.current)}),[s]),f=function(e){var t=jc((function(){return Ih(e)}),[e]),r=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,_.A)(e.style,Eh),jh().appendChild(e),function(){setTimeout((function(){var t=jh();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),Ec((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),d=function(e){var t=e.contextId,r=e.text,n=Ch("hidden-text",{separator:"-"}),o=jc((function(){return function(e){var t=e.contextId,r=e.uniqueId;return"rfd-hidden-text-".concat(t,"-").concat(r)}({contextId:t,uniqueId:n})}),[n,t]);return(0,u.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=r,e.style.display="none",jh().appendChild(e),function(){var t=jh();t.contains(e)&&t.removeChild(e)}}),[o,r]),o}({contextId:t,text:i}),p=function(e,t){var r=jc((function(){return gh(e)}),[e]),n=(0,u.useRef)(null),o=(0,u.useRef)(null),i=Ec(Fc((function(e){var t=o.current;t||pf(!1),t.textContent=e})),[]),a=Ec((function(e){var t=n.current;t||pf(!1),t.textContent=e}),[]);mh((function(){(n.current||o.current)&&pf(!1);var s=bh(t),l=bh(t);return n.current=s,o.current=l,s.setAttribute("".concat(ch,"-always"),e),l.setAttribute("".concat(ch,"-dynamic"),e),yh().appendChild(s),yh().appendChild(l),a(r.always),i(r.resting),function(){var e=function(e){var t=e.current;t||pf(!1),yh().removeChild(t),e.current=null};e(n),e(o)}}),[t,a,i,r.always,r.resting,e]);var s=Ec((function(){return i(r.dragging)}),[i,r.dragging]),l=Ec((function(e){i("DROP"!==e?r.userCancel:r.dropAnimating)}),[i,r.dropAnimating,r.userCancel]),c=Ec((function(){o.current&&i(r.resting)}),[i,r.resting]);return jc((function(){return{dragging:s,dropping:l,resting:c}}),[s,l,c])}(t,o),h=Ec((function(e){mv(a).dispatch(e)}),[]),v=jc((function(){return Fu({publishWhileDragging:Yd,updateDroppableScroll:Jd,updateDroppableIsEnabled:ep,updateDroppableIsCombineEnabled:tp,collectionStarting:Qd},h)}),[h]),g=function(){var e=jc(Ah,[]);return(0,u.useEffect)((function(){return function(){u.version.startsWith("16")||u.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()}}),[e]),e}(),m=jc((function(){return Gp(g,v)}),[g,v]),y=jc((function(){return uh(ef({scrollWindow:Kp,scrollDroppable:m.scrollDroppable,getAutoScrollerOptions:c},Fu({move:rp},h)))}),[m.scrollDroppable,h,c]),b=function(e){var t=(0,u.useRef)({}),r=(0,u.useRef)(null),n=(0,u.useRef)(null),o=(0,u.useRef)(!1),i=Ec((function(e,r){var n={id:e,focus:r};return t.current[e]=n,function(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),a=Ec((function(t){var r=Sh(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),s=Ec((function(e,t){r.current===e&&(r.current=t)}),[]),l=Ec((function(){n.current||o.current&&(n.current=requestAnimationFrame((function(){n.current=null;var e=r.current;e&&a(e)})))}),[a]),c=Ec((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(fh.draggableId)===e&&(r.current=e)}),[]);return mh((function(){return o.current=!0,function(){o.current=!1;var e=n.current;e&&cancelAnimationFrame(e)}}),[]),jc((function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}}),[i,c,l,s])}(t),w=jc((function(){return Lp({announce:f,autoScroller:y,dimensionMarshal:m,focusMarshal:b,getResponders:l,styleMarshal:p})}),[f,y,m,b,l,p]);a.current=w;var O=Ec((function(){var e=mv(a);"IDLE"!==e.getState().phase&&e.dispatch(sp())}),[]),x=Ec((function(){var e=mv(a).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r(jc((function(){return{isDragging:x,tryAbort:O}}),[x,O]));var S=Ec((function(e){return qp(mv(a).getState(),e)}),[]),A=Ec((function(){return Td(mv(a).getState())}),[]),P=jc((function(){return{marshal:m,focus:b,contextId:t,canLift:S,isMovementAllowed:A,dragHandleUsageInstructionsId:d,registry:g}}),[t,m,d,b,S,A,g]);return hv({contextId:t,store:w,registry:g,customSensors:n||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,u.useEffect)((function(){return O}),[O]),u.createElement(kh.Provider,{value:P},u.createElement(xc,{context:Ph,store:w},e.children))}var bv=function(){return u.useId()};function wv(e){var t=bv(),r=e.dragHandleUsageInstructions||wf.dragHandleUsageInstructions;return u.createElement(hf,null,(function(n){return u.createElement(yv,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children)}))}var Ov={dragging:5e3,dropAnimating:4500},xv=function(e,t){return t?yp.drop(t.duration):e?yp.snap:yp.fluid},Sv=function(e,t){if(e)return t?pp.drop:pp.combining},Av=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function Pv(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,r=e.offset,n=e.combineWith,o=e.dropping,i=Boolean(n),a=Av(e),s=Boolean(o),l=s?wp.drop(r,i):wp.moveTo(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:xv(a,o),transform:l,opacity:Sv(i,s),zIndex:s?Ov.dropAnimating:Ov.dragging,pointerEvents:"none"}}(e):(t=e,{transform:wp.moveTo(t.offset),transition:t.shouldAnimateDisplacement?void 0:"none"});var t}function jv(e){var t=Ch("draggable"),r=e.descriptor,n=e.registry,o=e.getDraggableRef,i=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=jc((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}}),[i,s,a]),c=Ec((function(e){var t=o();return t||pf(!1),function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Of,n=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Lc(o,n),a=Mc(i,r);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,o]),f=jc((function(){return{uniqueId:t,descriptor:r,options:l,getDimension:c}}),[r,c,l,t]),d=(0,u.useRef)(f),p=(0,u.useRef)(!0);mh((function(){return n.draggable.register(d.current),function(){return n.draggable.unregister(d.current)}}),[n.draggable]),mh((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,n.draggable.update(f,e)}}),[f,n.draggable])}var Ev=u.createContext(null);function Iv(e){var t=(0,u.useContext)(e);return t||pf(!1),t}function Tv(e){e.preventDefault()}var Cv=function(e){var t=(0,u.useRef)(null),r=Ec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t.current=e}),[]),n=Ec((function(){return t.current}),[]),o=Iv(kh),i=o.contextId,a=o.dragHandleUsageInstructionsId,s=o.registry,l=Iv(Ev),c=l.type,f=l.droppableId,d=jc((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:f}}),[e.draggableId,e.index,c,f]),p=e.children,h=e.draggableId,v=e.isEnabled,g=e.shouldRespectForcePress,m=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;(Rh(),_h(),y)||jv(jc((function(){return{descriptor:d,registry:s,getDraggableRef:n,canDragInteractiveElements:m,shouldRespectForcePress:g,isEnabled:v}}),[d,s,n,m,g,v]));var O=jc((function(){return v?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":h,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:Tv}:null}),[i,a,h,v]),x=Ec((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&(u.version.startsWith("16")||u.version.startsWith("17")?w():(0,Tu.flushSync)(w))}),[w,b]),S=jc((function(){var e=Pv(b),t="DRAGGING"===b.type&&b.dropping?x:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:O}}),[i,O,h,b,x,r]),A=jc((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return u.createElement(u.Fragment,null,p(S,b.snapshot,A))},kv=function(e,t){return e===t},_v=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null};function Rv(){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,combineWith:null}}var Nv={mapped:{type:"SECONDARY",offset:Of,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Rv(null)}};var Dv=Oc((function(){var e,t,r,n=(e=Fc((function(e,t){return{x:e,y:t}})),t=Fc((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=Fc((function(e,r,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,snapshot:t(r,o,i,a,null)}}})),function(n,o){if(Dh(n)){if(n.critical.draggable.id!==o.draggableId)return null;var i=n.current.client.offset,a=n.dimensions.draggables[o.draggableId],s=Ed(n.impact),l=(c=n.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,u=n.forceShouldAnimate;return r(e(i.x,i.y),n.movementMode,a,o.isClone,s,l,u)}var c;if("DROP_ANIMATING"===n.phase){var f=n.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=n.dimensions.draggables[o.draggableId],h=f.result,v=h.mode,g=_v(h),m=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:n.dropDuration,curve:dp,moveTo:n.newHomeClientOffset,opacity:m?pp.drop:null,scale:m?hp.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:m,mode:v,forceShouldAnimate:null,snapshot:t(v,d,g,m,y)}}}return null}),o=function(){var e=Fc((function(e,t){return{x:e,y:t}})),t=Fc(Rv),r=Fc((function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:arguments.length>2?arguments[2]:void 0,snapshot:t(r)}}})),n=function(e){return e?r(Of,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),u=Ff(i),c=u&&u.draggableId===t?o:null;if(!s){if(!l)return n(c);if(i.displaced.invisible[t])return null;var f=Pf(a.displacedBy.point),d=e(f.x,f.y);return r(d,c,!0)}if(l)return n(c);var p=i.displacedBy.point,h=e(p.x,p.y);return r(h,c,s.shouldAnimate)};return function(e,t){if(Dh(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var r=e.completed;return r.result.draggableId===t.draggableId?null:o(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function(e,t){return n(e,t)||o(e,t)||Nv}}),{dropAnimationFinished:cp},null,{context:Ph,areStatePropsEqual:kv})(Cv),Mv=Dv;function Lv(e){return Iv(Ev).isUsingCloneFor!==e.draggableId||e.isClone?u.createElement(Mv,e):null}function zv(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return u.createElement(Lv,(0,_.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}var Wv=function(e){return function(t){return e===t}},Bv=Wv("scroll"),Fv=Wv("auto"),Hv=(Wv("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Uv=function(e){var t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return Hv(r,Bv)||Hv(r,Fv)},Vv=function e(t){return null==t||t===document.body||t===document.documentElement?null:Uv(t)?t:e(t.parentElement)},Gv=function(e){return{x:e.scrollLeft,y:e.scrollTop}},qv=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Kv=function(e){return{closestScrollable:Vv(e),isFixedOnPage:qv(e)}},$v=function(e){var t=e.ref,r=e.descriptor,n=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,u=n.closestScrollable,c=function(e,t){var r=zc(e);if(!t)return r;if(e!==t)return r;var n=r.paddingBox.top-t.scrollTop,o=r.paddingBox.left-t.scrollLeft,i=n+t.scrollHeight,a=o+t.scrollWidth,s=Cc({top:n,right:a,bottom:i,left:o},r.border);return Rc({borderBox:s,margin:r.margin,border:r.border,padding:r.padding})}(t,u),f=Mc(c,o),d=function(){if(!u)return null;var e=zc(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Mc(e,o),scroll:Gv(u),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,u=function(){if(!l)return null;var e=l.scrollSize,t=l.client,r=zp({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:r,diff:{value:Of,displacement:Of}}}}(),c="vertical"===i?Xf:Yf;return{descriptor:t,isCombineEnabled:n,isFixedOnPage:o,axis:c,isEnabled:r,client:a,page:s,frame:u,subject:Rf({page:s,withPlaceholder:null,axis:c,frame:u})}}({descriptor:r,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:n.isFixedOnPage,direction:i,client:c,page:f,closest:d});return p},Zv={passive:!1},Xv={passive:!0},Yv=function(e){return e.shouldPublishImmediately?Zv:Xv},Qv=function(e){return e&&e.env.closestScrollable||null};function Jv(){}var eg={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},tg=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate;return t||"close"===n?eg:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?yp.placeholder:null}},rg=function(e){var t=(0,u.useRef)(null),r=Ec((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),n=e.animate,o=e.onTransitionEnd,i=e.onClose,a=e.contextId,s=Uc((0,u.useState)("open"===e.animate),2),l=s[0],c=s[1];(0,u.useEffect)((function(){return l?"open"!==n?(r(),c(!1),Jv):t.current?Jv:(t.current=setTimeout((function(){t.current=null,c(!1)})),r):Jv}),[n,l,r]);var f=Ec((function(e){"height"===e.propertyName&&(o(),"close"===n&&i())}),[n,i,o]),d=tg({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return u.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":a,onTransitionEnd:f,ref:e.innerRef})},ng=u.memo(rg);var og=function(e){function t(){var e;qc(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=Kc(this,t,[].concat(n))).state={isVisible:Boolean(e.props.on),data:e.props.on,animate:e.props.shouldAnimate&&e.props.on?"open":"none"},e.onClose=function(){"close"===e.state.animate&&e.setState({isVisible:!1})},e}return $c(t,e),Gc(t,[{key:"render",value:function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}}]),t}(u.PureComponent),ig=function(e){var t=(0,u.useContext)(kh);t||pf(!1);var r=t.contextId,n=t.isMovementAllowed,o=(0,u.useRef)(null),i=(0,u.useRef)(null),a=e.children,s=e.droppableId,l=e.type,c=e.mode,f=e.direction,d=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,v=e.snapshot,g=e.useClone,m=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Ec((function(){return o.current}),[]),w=Ec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o.current=e}),[]),O=(Ec((function(){return i.current}),[]),Ec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;i.current=e}),[]));Rh();var x=Ec((function(){n()&&m({maxScroll:Bp()})}),[n,m]);!function(e){var t=(0,u.useRef)(null),r=Iv(kh),n=Ch("droppable"),o=r.registry,i=r.marshal,a=Nh(e),s=jc((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=(0,u.useRef)(s),c=jc((function(){return Fc((function(e,r){t.current||pf(!1);var n={x:e,y:r};i.updateDroppableScroll(s.id,n)}))}),[s.id,i]),f=Ec((function(){var e=t.current;return e&&e.env.closestScrollable?Gv(e.env.closestScrollable):Of}),[]),d=Ec((function(){var e=f();c(e.x,e.y)}),[f,c]),p=jc((function(){return Hc(d)}),[d]),h=Ec((function(){var e=t.current,r=Qv(e);e&&r||pf(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),v=Ec((function(e,n){t.current&&pf(!1);var o=a.current,i=o.getDroppableRef();i||pf(!1);var l=Kv(i),u={ref:i,descriptor:s,env:l,scrollOptions:n};t.current=u;var c=$v({ref:i,descriptor:s,env:l,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=l.closestScrollable;return f&&(f.setAttribute(hh.contextId,r.contextId),f.addEventListener("scroll",h,Yv(u.scrollOptions))),c}),[r.contextId,s,h,a]),g=Ec((function(){var e=t.current,r=Qv(e);return e&&r||pf(!1),Gv(r)}),[]),m=Ec((function(){var e=t.current;e||pf(!1);var r=Qv(e);t.current=null,r&&(p.cancel(),r.removeAttribute(hh.contextId),r.removeEventListener("scroll",h,Yv(e.scrollOptions)))}),[h,p]),y=Ec((function(e){var r=t.current;r||pf(!1);var n=Qv(r);n||pf(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),b=jc((function(){return{getDimensionAndWatchScroll:v,getScrollWhileDragging:g,dragStopped:m,scroll:y}}),[m,v,g,y]),w=jc((function(){return{uniqueId:n,descriptor:s,callbacks:b}}),[b,s,n]);mh((function(){return l.current=w.descriptor,o.droppable.register(w),function(){t.current&&m(),o.droppable.unregister(w)}}),[b,s,m,w,i,o.droppable]),mh((function(){t.current&&i.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),mh((function(){t.current&&i.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:s,type:l,mode:c,direction:f,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:d,getDroppableRef:b});var S=jc((function(){return u.createElement(og,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,o=e.animate;return u.createElement(ng,{placeholder:n,onClose:t,innerRef:O,animate:o,contextId:r,onTransitionEnd:x})}))}),[r,x,e.placeholder,e.shouldAnimatePlaceholder,O]),A=jc((function(){return{innerRef:w,placeholder:S,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":r}}}),[r,s,S,w]),P=g?g.dragging.draggableId:null,j=jc((function(){return{droppableId:s,type:l,isUsingCloneFor:P}}),[s,P,l]);return u.createElement(Ev.Provider,{value:j},a(A,v),function(){if(!g)return null;var e=g.dragging,t=g.render,r=u.createElement(Lv,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return t(r,n,e)}));return Tu.createPortal(r,y())}())};var ag={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||pf(!1),document.body}},sg=function(e){var t,r=ef({},e);for(t in ag)void 0===e[t]&&(r=ef(ef({},r),{},tf({},t,ag[t])));return r},lg=function(e,t){return e===t.droppable.type},ug=function(e,t){return t.draggables[e.draggable.id]},cg=Oc((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=ef(ef({},e),{},{shouldAnimatePlaceholder:!1}),r=Fc((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=Fc((function(n,o,i,a,s,l){var u=s.descriptor.id;if(s.descriptor.droppableId===n){var c=l?{render:l,dragging:r(s.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:c}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(r,o){var i=sg(o),a=i.droppableId,s=i.type,l=!i.isDropDisabled,u=i.renderClone;if(Dh(r)){var c=r.critical;if(!lg(s,c))return t;var f=ug(c,r.dimensions),d=Ed(r.impact)===a;return n(a,l,d,d,f,u)}if("DROP_ANIMATING"===r.phase){var p=r.completed;if(!lg(s,p.critical))return t;var h=ug(p.critical,r.dimensions);return n(a,l,_v(p.result)===a,Ed(p.impact)===a,h,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var v=r.completed;if(!lg(s,v.critical))return t;var g=Ed(v.impact)===a,m=Boolean(v.impact.at&&"COMBINE"===v.impact.at.type),y=v.critical.droppable.id===a;return g?m?e:t:y?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},(function(e,t,r){return ef(ef(ef({},sg(r)),e),t)}),{context:Ph,areStatePropsEqual:kv})(ig);function fg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(r),!0).forEach((function(t){pg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pg(e,t,r){return(t=vg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vg(n.key),n)}}function vg(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function gg(e,t,r){return t=yg(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bg(e)}(e,mg()?Reflect.construct(t,r||[],yg(e).constructor):t.apply(e,r))}function mg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mg=function(){return!!e})()}function yg(e){return yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yg(e)}function bg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wg(e,t)}function Og(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Sg=(0,oe.Ay)("div")((function(e){var t=e.theme;return{alignItems:"center",borderRight:"0.5px solid ".concat(t.palette.divider),display:"flex",flex:1,flexDirection:"row",marginBottom:t.spacing(-2),marginRight:t.spacing(1),marginTop:t.spacing(-2),maxWidth:t.spacing(3),width:t.spacing(3)}})),Ag=function(e,t,r){var n=Array.from(e),o=Og(n.splice(t,1),1)[0];return n.splice(r,0,o),n},Pg=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=gg(this,t,[e])).droppableId=(0,Wl.A)(),r.onDragEnd=r.onDragEnd.bind(bg(r)),r.handleOpacityChange=r.handleOpacityChange.bind(bg(r)),r.setLayerVisibility=r.setLayerVisibility.bind(bg(r)),r.moveToTop=r.moveToTop.bind(bg(r)),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}(t,e),r=t,o=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],(n=[{key:"handleOpacityChange",value:function(e,t){var r=this.props,n=r.canvasId;(0,r.updateLayers)(r.windowId,n,pg({},e,{opacity:t/100}))}},{key:"onDragEnd",value:function(e){var t=this.props,r=t.canvasId,n=t.layers,o=t.updateLayers,i=t.windowId;if(e.destination&&e.destination.droppableId===this.droppableId&&e.source.droppableId===this.droppableId){var a=Ag(n.map((function(e){return e.id})),e.source.index,e.destination.index);o(i,r,n.reduce((function(e,t){return e[t.id]={index:a.indexOf(t.id)},e}),{}))}}},{key:"setLayerVisibility",value:function(e,t){var r=this.props,n=r.canvasId;(0,r.updateLayers)(r.windowId,n,pg({},e,{visibility:t}))}},{key:"moveToTop",value:function(e){var t=this.props,r=t.canvasId,n=t.layers,o=t.updateLayers,i=t.windowId,a=Ag(n.map((function(e){return e.id})),n.findIndex((function(t){return t.id===e})),0);o(i,r,n.reduce((function(e,t){return e[t.id]={index:a.indexOf(t.id)},e}),{}))}},{key:"renderLayer",value:function(e,r){var n=this,o=this.props,i=o.layerMetadata,a=o.t,s={height:void 0,width:50},l=s.width,u=s.height,c=dg({opacity:1,visibility:!0},(i||{})[e.id]);return(0,se.jsxs)("div",{style:{flex:1},children:[(0,se.jsxs)("div",{style:{alignItems:"flex-start",display:"flex"},children:[(0,se.jsx)(ie.A,{maxHeight:u,maxWidth:l,resource:e,border:!0}),(0,se.jsxs)(Me.A,{sx:{paddingLeft:1},component:"div",variant:"body1",children:[t.getUseableLabel(e,r),(0,se.jsxs)("div",{children:[(0,se.jsx)(Be.A,{"aria-label":a(c.visibility?"layer_hide":"layer_show"),edge:"start",size:"small",onClick:function(){n.setLayerVisibility(e.id,!c.visibility)},children:c.visibility?(0,se.jsx)(ze.A,{}):(0,se.jsx)(We.A,{})}),0!==c.index&&(0,se.jsx)(Be.A,{"aria-label":a("layer_moveToTop"),size:"small",onClick:function(){n.moveToTop(e.id)},children:(0,se.jsx)(Eu.A,{})})]})]})]}),(0,se.jsxs)("div",{style:{alignItems:"center",display:"flex"},children:[(0,se.jsx)(Hr.A,{title:a("layer_opacity"),children:(0,se.jsx)(Iu.A,{sx:{marginRight:.5},color:c.visibility?"inherit":"disabled",fontSize:"small"})}),(0,se.jsx)(Bl.A,{sx:{"MuiInput-input":{"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"},MozAppearance:"textfield",textAlign:"right",typography:"caption",width:"3ch"}},disabled:!c.visibility,value:Math.round(100*c.opacity),type:"number",min:0,max:100,onChange:function(t){return n.handleOpacityChange(e.id,t.target.value)},endAdornment:(0,se.jsx)(vs,{disableTypography:!0,position:"end",children:(0,se.jsx)(Me.A,{variant:"caption",children:"%"})}),inputProps:{"aria-label":a("layer_opacity")}}),(0,se.jsx)(Pu,{sx:{marginLeft:2,marginRight:2,maxWidth:150},disabled:!c.visibility,value:100*c.opacity,onChange:function(t,r){return n.handleOpacityChange(e.id,r)}})]})]})}},{key:"renderDraggableLayer",value:function(e,t){var r=this,n=this.props.t;return(0,se.jsx)(zv,{draggableId:e.id,index:t,children:function(o,i){return(0,u.createElement)(Xs.Ay,dg(dg({ref:o.innerRef},o.draggableProps),{},{component:"li",divider:!0,sx:dg({alignItems:"stretch",cursor:"pointer",paddingBottom:2,paddingRight:2,paddingTop:2},i.isDragging&&{backgroundColor:"action.hover"}),disableGutters:!0,key:e.id}),(0,se.jsx)(Sg,dg(dg({},o.dragHandleProps),{},{sx:{"&:hover":{backgroundColor:i.isDragging?"action.selected":"action.hover"},backgroundColor:i.isDragging?"action.selected":"shades.light"},children:(0,se.jsx)(Hr.A,{title:n("layer_move"),children:(0,se.jsx)(ju.A,{})})})),r.renderLayer(e,t))}},e.id)}},{key:"render",value:function(){var e=this,t=this.props,r=t.index,n=t.label,o=t.layers,i=t.t,a=t.totalSize;return(0,se.jsxs)(se.Fragment,{children:[a>1&&(0,se.jsx)(Me.A,{sx:{paddingLeft:1,paddingRight:1,paddingTop:2},variant:"overline",children:i("annotationCanvasLabel",{context:"".concat(r+1,"/").concat(a),label:n})}),(0,se.jsx)(wv,{onDragEnd:this.onDragEnd,children:(0,se.jsx)(cg,{droppableId:this.droppableId,children:function(t,r){return(0,se.jsxs)(Us.A,dg(dg({sx:{paddingTop:0}},t.droppableProps),{},{ref:t.innerRef,children:[o&&o.map((function(t,r){return e.renderDraggableLayer(t,r)})),t.placeholder]}))}})})]})}}])&&hg(r.prototype,n),o&&hg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Pg.defaultProps={layerMetadata:void 0};var jg={updateLayers:Ll.o};const Eg=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.canvasId,n=t.windowId;return{label:(0,ne.T2)(e,{canvasId:r,windowId:n}),layerMetadata:(0,zl.bB)(e,{canvasId:r,windowId:n}),layers:(0,zl.yK)(e,{canvasId:r,windowId:n})}}),jg))(Pg);function Ig(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tg(n.key),n)}}function Tg(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Cg(e,t,r){return t=_g(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kg()?Reflect.construct(t,r||[],_g(e).constructor):t.apply(e,r))}function kg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kg=function(){return!!e})()}function _g(e){return _g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_g(e)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rg(e,t)}var Ng=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Cg(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rg(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasIds,r=e.id,n=e.t,o=e.windowId;return(0,se.jsx)(St.A,{title:n("layers"),id:r,windowId:o,children:t.map((function(e,r){return(0,se.jsx)(Eg,{canvasId:e,index:r,totalSize:t.length,windowId:o},e)}))})}}])&&Ig(r.prototype,n),o&&Ig(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Ng.defaultProps={canvasIds:[]};const Dg=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){t.id;var r=t.windowId;return{canvasIds:(0,ne.tv)(e,{windowId:r})}})),(0,s.h)("LayersPanel"))(Ng);function Mg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lg(n.key),n)}}function Lg(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function zg(e,t,r){return t=Bg(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wg()?Reflect.construct(t,r||[],Bg(e).constructor):t.apply(e,r))}function Wg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wg=function(){return!!e})()}function Bg(e){return Bg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bg(e)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fg(e,t)}var Hg=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zg(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fg(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.children,n=e.t,o=e.title,i=e.windowId;return(0,se.jsx)(St.A,{title:n(o),id:t,windowId:i,children:r})}}])&&Mg(r.prototype,n),o&&Mg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);Hg.defaultProps={children:null};const Ug=(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){t.id,t.windowId;return{}})),(0,s.h)("CustomPanel"))(Hg);var Vg=r(2160),Gg=r(49832),qg=["manifest","canvasNavigation","variant"];function Kg(e){return function(e){if(Array.isArray(e))return $g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $g(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nm(n.key),n)}}function Xg(e,t,r){return t=Qg(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yg()?Reflect.construct(t,r||[],Qg(e).constructor):t.apply(e,r))}function Yg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yg=function(){return!!e})()}function Qg(e){return Qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qg(e)}function Jg(e,t){return Jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jg(e,t)}function em(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?em(Object(r),!0).forEach((function(t){rm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rm(e,t,r){return(t=nm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nm(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function om(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function im(e){var t=e.manifest,r=e.canvasNavigation,n=e.variant,o=om(e,qg);return(0,se.jsxs)(Ye.A,tm(tm({alignItems:"flex-start",button:!0,divider:!0,component:"li",variant:"multiline",sx:{paddingRight:1}},o),{},{children:["thumbnail"===n&&(0,se.jsx)(Vg.A,{children:(0,se.jsx)(ie.A,{resource:t,maxHeight:r.height,maxWidth:r.width})}),(0,se.jsx)(Qe.A,{children:am.getUseableLabel(t)})]}))}var am=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xg(this,t,arguments)}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jg(e,t)}(t,e),r=t,o=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():e.id}}],(n=[{key:"isMultipart",value:function(){var e=this.props.collection;if(!e)return!1;var t=e.getProperty("behavior");return Array.isArray(t)?t.includes("multi-part"):"multi-part"===t}},{key:"render",value:function(){var e=this.props,r=e.canvasNavigation,n=e.collectionPath,o=e.collection,i=e.id,a=e.isFetching,s=e.manifestId,l=e.parentCollection,u=e.updateCompanionWindow,c=e.updateWindow,f=e.t,d=e.variant,p=e.windowId;return(0,se.jsx)(St.A,{title:f(this.isMultipart()?"multipartCollection":"collection"),windowId:p,id:i,titleControls:(0,se.jsxs)(se.Fragment,{children:[l&&(0,se.jsx)(Us.A,{children:(0,se.jsxs)(Xs.Ay,{button:!0,onClick:function(){return u({collectionPath:n.slice(0,-1)})},children:[(0,se.jsx)(Vg.A,{children:(0,se.jsx)(Gg.A,{})}),(0,se.jsx)(Qe.A,{primaryTypographyProps:{variant:"body1"},children:t.getUseableLabel(l)})]})}),(0,se.jsxs)(Me.A,{variant:"h6",children:[o&&t.getUseableLabel(o),a&&(0,se.jsx)(Ti.A,{variant:"text"})]})]}),children:(0,se.jsxs)(Xe.A,{children:[a&&(0,se.jsx)(Ye.A,{children:(0,se.jsxs)(Qe.A,{children:[(0,se.jsx)(Ti.A,{variant:"text"}),(0,se.jsx)(Ti.A,{variant:"text"}),(0,se.jsx)(Ti.A,{variant:"text"})]})}),o&&o.getCollections().map((function(e){return(0,se.jsx)(im,{onClick:function(){u({collectionPath:[].concat(Kg(n),[e.id])})},canvasNavigation:r,manifest:e,variant:d,selected:s===e.id},e.id)})),o&&o.getManifests().map((function(e){return(0,se.jsx)(im,{onClick:function(){c({canvasId:null,collectionPath:n,manifestId:e.id}),u({multipart:!1})},canvasNavigation:r,manifest:e,variant:d,selected:s===e.id},e.id)}))]})})}}])&&Zg(r.prototype,n),o&&Zg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(u.Component);am.defaultProps={collection:null,collectionPath:[],isFetching:!1,parentCollection:null,t:function(e){return e},variant:null};const sm={annotations:_t,attribution:Ui,canvas:Ii,collection:(0,o.Zz)((0,a.CI)(),(0,i.Ng)((function(e,t){var r=t.id,n=t.windowId,o=(0,ke.zk)(e,{windowId:n}),i=(0,Ce.DS)(e,{companionWindowId:r}),a=i.collectionPath||o.collectionPath,s=a&&a[a.length-1],l=a&&a[a.length-2],u=s&&(0,ke.c2)(e,{manifestId:s}),c=l&&(0,ke.c2)(e,{manifestId:l}),f=(0,ke.c2)(e,{windowId:n});return{canvasNavigation:e.config.canvasNavigation,collection:u&&(0,Nt.SG)(e,{manifestId:u.id}),collectionId:s,collectionPath:a,error:u&&u.error,isFetching:u&&u.isFetching,manifestId:f&&f.id,parentCollection:c&&(0,Nt.SG)(e,{manifestId:c.id}),ready:u&&!!u.json,variant:i.variant||(0,gi.bT)(e,{windowId:n})}}),(function(e,t){var r=t.id,n=t.windowId;return{updateCompanionWindow:function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e(Rt.u3.apply(re,[n,r].concat(o)))},updateWindow:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(ar.uE.apply(re,[n].concat(r)))}}})),(0,s.h)("WindowSideBarCollectionPanel"))(am),custom:Ug,info:Wr,layers:Dg,search:Ml,thumbnailNavigation:Ne}},11879:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(94881),o=r.n(n),i=r(98027),a=r.n(i),s=r(33415);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvas=t}var t,r,n;return t=e,(r=[{key:"id",get:function(){return this.canvas.id}},{key:"getWidth",value:function(){return this.canvas.getWidth()}},{key:"getHeight",value:function(){return this.canvas.getHeight()}},{key:"aspectRatio",get:function(){return this.canvas.getWidth()/this.canvas.getHeight()}},{key:"annotationListUris",get:function(){return o()(new Array(this.canvas.__jsonld.otherContent)).filter((function(e){return e&&("string"==typeof e||"sc:AnnotationList"===e["@type"])})).map((function(e){return"string"==typeof e?e:e["@id"]}))}},{key:"canvasAnnotationPages",get:function(){return o()(new Array(this.canvas.__jsonld.annotations)).filter((function(e){return e&&"AnnotationPage"===e.type}))}},{key:"imageResource",get:function(){return this.imageResources[0]}},{key:"imageResources",get:function(){var e=this,t=a()([this.canvas.getImages().map((function(e){return e.getResource()})),this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(t.map((function(t){return"oa:Choice"===t.getProperty("type")?new s.Canvas({images:o()([t.getProperty("default"),t.getProperty("item")]).map((function(e){return{resource:e}}))},e.canvas.options).getImages().map((function(e){return e.getResource()})):t})))}},{key:"videoResources",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"Video"===e.getProperty("type")})))}},{key:"audioResources",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"Sound"===e.getProperty("type")})))}},{key:"v2VttContent",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"text/vtt"===e.getProperty("format")})))}},{key:"v3VttContent",get:function(){var e=this,t=a()(this.canvasAnnotationPages.map((function(t){return new s.AnnotationPage(t,e.canvas.options).getItems().map((function(t){return new s.Annotation(t,e.canvas.options).getBody()}))})));return o()(t.filter((function(e){return"text/vtt"===e.getProperty("format")})))}},{key:"resourceAnnotations",get:function(){return a()([this.canvas.getImages(),this.canvas.getContent()])}},{key:"resourceAnnotation",value:function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||o()(new Array(t.getBody())).some((function(t){return t.id===e}))}))}},{key:"onFragment",value:function(e){var t=this.resourceAnnotation(e);if(t){var r=t.getProperty("on"),n=t.getProperty("target"),o=(r||n).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(e){return parseInt(e,10)}))}}},{key:"iiifImageResources",get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))}},{key:"imageServiceIds",get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))}},{key:"service",get:function(){return this.canvas.__jsonld.service}},{key:"getLabel",value:function(){return this.canvas.getLabel().length>0?this.canvas.getLabel().getValue():String(this.canvas.index+1)}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},43418:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}r.d(t,{A:()=>i});var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=t}var t,r,o;return t=e,(r=[{key:"startCanvas",get:function(){var e,t=this.manifest.getSequences()[0];if(t){if(!(e=t.getProperty("startCanvas"))){var r=this.manifest.getProperty("start")||t.getProperty("start");e=r&&(r.id||r.source)}return e&&t.getCanvasById(e)||void 0}}},{key:"canvasAt",value:function(e){var t=this.manifest.getSequences()[0],r=t&&t.getCanvases();return r&&r[e]}}])&&n(t.prototype,r),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},20653:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(33415),o=r(43418),i=r(11879),a=r(78502);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function u(e){var t=e&&e.getServices().find((function(e){return function(e){var t=e.getProperty("type")||[];return(0,a.A)(t).some((function(e){return e.startsWith("ImageService")}))}(e)||n.Utils.isImageProfile(e.getProfile())}));if(t)return t}var c=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=t,this.iiifOpts=r}var t,r,l;return t=e,l=[{key:"staticImageUrl",value:function(e){return{height:e.getProperty("height"),url:e.id,width:e.getProperty("width")}}},{key:"getPreferredImage",value:function(e){var t=new i.A(e);return t.iiifImageResources[0]||t.imageResource}},{key:"selectBestImageSize",value:function(e,t){var r=(0,a.A)(e.getProperty("sizes")),n={default:!0,height:e.getProperty("height")||Number.MAX_SAFE_INTEGER,width:e.getProperty("width")||Number.MAX_SAFE_INTEGER},o=function(e){return e.width*e.height-t};if((n=r.reduce((function(e,t){var r=o(t);return r<0?e:Math.abs(r)<Math.abs(o(e))?t:e}),n)).width*n.height>6*t&&(n=r.reduce((function(e,t){return Math.abs(o(t))<Math.abs(o(e))?t:e}),n)),!n.default)return n}}],(r=[{key:"iiifThumbnailUrl",value:function(t){var r,o,i,a=120,s=a,l=a,c=this.iiifOpts,f=c.maxHeight,d=c.maxWidth;f&&(s=Math.max(f,a)),d&&(l=Math.max(d,a));var p=u(t);if(!p)return e.staticImageUrl(t);var h=t.getWidth()&&t.getHeight()&&t.getWidth()/t.getHeight(),v=d&&f?d*f:s*l,g=e.selectBestImageSize(p,v);if(g)o=g.width,i=g.height,r="".concat(o,",").concat(i);else if(function(e){var t=e.getProfile();return!t.endsWith("#level1")&&!t.endsWith("#level2")&&("level0"===t||n.Utils.isLevel0ImageProfile(t))}(p)){if(!p.getProperty("height")&&!p.getProperty("width"))return e.staticImageUrl(t)}else f&&d?function(e){var t=e.getProfile();return!t.endsWith("#level0")&&!t.endsWith("#level1")&&("level2"===t||n.Utils.isLevel2ImageProfile(t))}(p)?(r="!".concat(l,",").concat(s),o=l,i=s,h&&h>1&&(i=Math.round(l/h)),h&&h<1&&(o=Math.round(s*h))):l/s<h?(r="".concat(l,","),o=l,h&&(i=Math.round(l/h))):(r=",".concat(s),i=s,h&&(o=Math.round(s*h))):f&&!d?(r=",".concat(s),i=s,h&&(o=Math.round(s*h))):!f&&d?(r="".concat(l,","),o=l,h&&(i=Math.round(l/h))):(r=",".concat(a),i=a,h&&(o=Math.round(i*h)));var m=n.Utils.getImageQuality(p.getProfile()),y=p.id.replace(/\/+$/,""),b=this.getFormat(p);return{height:i,url:[y,"full",r,0,"".concat(m,".").concat(b)].join("/"),width:o}}},{key:"getFormat",value:function(e){var t=this.iiifOpts.preferredFormats,r=void 0===t?[]:t,n=e.getProperty("preferredFormats");if(!n)return"jpg";var o=n.filter((function(e){return r.includes(e)}));return o[0]?o[0]:!n.includes("jpg")&&r.includes("jpg")?"jpg":n[0]?n[0]:"jpg"}},{key:"getSourceContentResource",value:function(t){var r=t.getThumbnail();if(r)return"string"==typeof r.__jsonld?r.__jsonld:t.isCollection()||t.isManifest()||t.isCanvas()||"image"!==t.getType()||!u(t)||u(r)?r:t;if(t.isCollection()){var n=t.getManifests()[0];return n?this.getSourceContentResource(n):void 0}if(t.isManifest()){var i=new o.A(t),a=i.startCanvas||i.canvasAt(0);return a?this.getSourceContentResource(a):void 0}if(t.isCanvas()){var s=e.getPreferredImage(t);return s?this.getSourceContentResource(s):void 0}return"image"===t.getType()?t:void 0}},{key:"get",value:function(){if(this.resource){var e=this.getSourceContentResource(this.resource);if(e)return"string"==typeof e?{url:e}:this.iiifThumbnailUrl(e)}}}])&&s(t.prototype,r),l&&s(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}();const f=function(e,t){return new c(e,t).get()}},78502:(e,t,r)=>{"use strict";function n(e){return void 0===e?[]:Array.isArray(e)?e:[e]}r.d(t,{A:()=>n})},99359:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ADD_COMPANION_WINDOW:"mirador/ADD_COMPANION_WINDOW",UPDATE_COMPANION_WINDOW:"mirador/UPDATE_COMPANION_WINDOW",REMOVE_COMPANION_WINDOW:"mirador/REMOVE_COMPANION_WINDOW",TOGGLE_TOC_NODE:"mirador/TOGGLE_TOC_NODE",UPDATE_WINDOW:"mirador/UPDATE_WINDOW",REQUEST_CANVAS_ANNOTATIONS:"mirador/REQUEST_CANVAS_ANNOTATIONS",HOVER_ANNOTATION:"mirador/HOVER_ANNOTATION",REQUEST_ANNOTATION:"mirador/REQUEST_ANNOTATION",RECEIVE_ANNOTATION:"mirador/RECEIVE_ANNOTATION",RECEIVE_ANNOTATION_FAILURE:"mirador/RECEIVE_ANNOTATION_FAILURE",DESELECT_ANNOTATION:"mirador/DESELECT_ANNOTATION",SELECT_ANNOTATION:"mirador/SELECT_ANNOTATION",TOGGLE_ANNOTATION_DISPLAY:"mirador/TOGGLE_ANNOTATION_DISPLAY",FOCUS_WINDOW:"mirador/FOCUS_WINDOW",SET_WORKSPACE_FULLSCREEN:"mirador/SET_WORKSPACE_FULLSCREEN",SET_WORKSPACE_VIEWPORT_POSITION:"mirador/SET_WORKSPACE_VIEWPORT_POSITION",ADD_MANIFEST:"mirador/ADD_MANIFEST",ADD_WINDOW:"mirador/ADD_WINDOW",ADD_ERROR:"mirador/ADD_ERROR",IMPORT_CONFIG:"mirador/IMPORT_CONFIG",IMPORT_MIRADOR_STATE:"mirador/IMPORT_MIRADOR_STATE",SET_CANVAS:"mirador/SET_CANVAS",MAXIMIZE_WINDOW:"mirador/MAXIMIZE_WINDOW",MINIMIZE_WINDOW:"mirador/MINIMIZE_WINDOW",UPDATE_WINDOW_POSITION:"mirador/UPDATE_WINDOW_POSITION",SET_WINDOW_SIZE:"mirador/SET_WINDOW_SIZE",REMOVE_WINDOW:"mirador/REMOVE_WINDOW",PICK_WINDOWING_SYSTEM:"mirador/PICK_WINDOWING_SYSTEM",REQUEST_MANIFEST:"mirador/REQUEST_MANIFEST",RECEIVE_MANIFEST:"mirador/RECEIVE_MANIFEST",RECEIVE_MANIFEST_FAILURE:"mirador/RECEIVE_MANIFEST_FAILURE",REMOVE_ERROR:"mirador/REMOVE_ERROR",SET_CONFIG:"mirador/SET_CONFIG",UPDATE_WORKSPACE:"mirador/UPDATE_WORKSPACE",SET_WINDOW_THUMBNAIL_POSITION:"mirador/SET_WINDOW_THUMBNAIL_POSITION",SET_WINDOW_VIEW_TYPE:"mirador/SET_WINDOW_VIEW_TYPE",SET_WORKSPACE_ADD_VISIBILITY:"mirador/SET_WORKSPACE_ADD_VISIBILITY",TOGGLE_WINDOW_SIDE_BAR:"mirador/TOGGLE_WINDOW_SIDE_BAR",TOGGLE_DRAGGING:"mirador/TOGGLE_DRAGGING",TOGGLE_ZOOM_CONTROLS:"mirador/TOGGLE_ZOOM_CONTROLS",UPDATE_CONFIG:"mirador/UPDATE_CONFIG",REMOVE_MANIFEST:"mirador/REMOVE_MANIFEST",REQUEST_INFO_RESPONSE:"mirador/REQUEST_INFO_RESPONSE",RECEIVE_INFO_RESPONSE:"mirador/RECEIVE_INFO_RESPONSE",RECEIVE_DEGRADED_INFO_RESPONSE:"mirador/RECEIVE_DEGRADED_INFO_RESPONSE",RECEIVE_INFO_RESPONSE_FAILURE:"mirador/RECEIVE_INFO_RESPONSE_FAILURE",REMOVE_INFO_RESPONSE:"mirador/REMOVE_INFO_RESPONSE",UPDATE_WORKSPACE_MOSAIC_LAYOUT:"mirador/UPDATE_WORKSPACE_MOSAIC_LAYOUT",UPDATE_VIEWPORT:"mirador/UPDATE_VIEWPORT",UPDATE_ELASTIC_WINDOW_LAYOUT:"mirador/UPDATE_ELASTIC_WINDOW_LAYOUT",ADD_AUTHENTICATION_REQUEST:"mirador/ADD_AUTHENTICATION_REQUEST",RESOLVE_AUTHENTICATION_REQUEST:"mirador/RESOLVE_AUTHENTICATION_REQUEST",REQUEST_ACCESS_TOKEN:"mirador/REQUEST_ACCESS_TOKEN",RECEIVE_ACCESS_TOKEN:"mirador/RECEIVE_ACCESS_TOKEN",RECEIVE_ACCESS_TOKEN_FAILURE:"mirador/RECEIVE_ACCESS_TOKEN_FAILURE",RESET_AUTHENTICATION_STATE:"mirador/RESET_AUTHENTICATION_STATE",CLEAR_ACCESS_TOKEN_QUEUE:"mirador/CLEAR_ACCESS_TOKEN_QUEUE",REQUEST_SEARCH:"mirador/REQUEST_SEARCH",RECEIVE_SEARCH:"mirador/RECEIVE_SEARCH",RECEIVE_SEARCH_FAILURE:"mirador/RECEIVE_SEARCH_FAILURE",REMOVE_SEARCH:"mirador/REMOVE_SEARCH",SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:"mirador/SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS",UPDATE_LAYERS:"mirador/UPDATE_LAYERS",ADD_RESOURCE:"mirador/ADD_RESOURCE",REMOVE_RESOURCE:"mirador/REMOVE_RESOURCE",SHOW_COLLECTION_DIALOG:"mirador/SHOW_COLLECTION_DIALOG",HIDE_COLLECTION_DIALOG:"mirador/HIDE_COLLECTION_DIALOG"}},24580:(e,t,r)=>{"use strict";r.d(t,{GW:()=>f,PW:()=>u,aw:()=>o,gN:()=>l,n_:()=>a,ow:()=>c,pJ:()=>i,tf:()=>s});var n=r(99359);function o(e,t){return{canvasId:t,type:n.A.REQUEST_CANVAS_ANNOTATIONS,windowId:e}}function i(e,t){return{annotationId:t,targetId:e,type:n.A.REQUEST_ANNOTATION}}function a(e,t,r){return{annotationId:t,annotationJson:r,targetId:e,type:n.A.RECEIVE_ANNOTATION}}function s(e,t,r){return{annotationId:t,error:r,targetId:e,type:n.A.RECEIVE_ANNOTATION_FAILURE}}function l(e,t){return{annotationId:t,type:n.A.SELECT_ANNOTATION,windowId:e}}function u(e,t){return{annotationId:t,type:n.A.DESELECT_ANNOTATION,windowId:e}}function c(e){return{type:n.A.TOGGLE_ANNOTATION_DISPLAY,windowId:e}}function f(e,t){return{annotationIds:t,type:n.A.HOVER_ANNOTATION,windowId:e}}},45483:(e,t,r)=>{"use strict";r.d(t,{B0:()=>l,B2:()=>c,Bq:()=>a,HN:()=>d,_U:()=>s,fw:()=>f,h6:()=>u});var n=r(99359);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return{id:t,profile:arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,type:n.A.ADD_AUTHENTICATION_REQUEST,windowId:e}}function s(e,t,r){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e,tokenServiceId:t,type:n.A.RESOLVE_AUTHENTICATION_REQUEST},r)}function l(e,t){return{authId:t,serviceId:e,type:n.A.REQUEST_ACCESS_TOKEN}}function u(e,t,r){return{authId:e,json:r,serviceId:t,type:n.A.RECEIVE_ACCESS_TOKEN}}function c(e,t,r){return{authId:e,error:r,serviceId:t,type:n.A.RECEIVE_ACCESS_TOKEN_FAILURE}}function f(e,t,r){return r.accessToken?u(e,t,r):c(e,t,r)}function d(e){return{id:e.authServiceId,tokenServiceId:e.tokenServiceId,type:n.A.RESET_AUTHENTICATION_STATE}}},79189:(e,t,r)=>{"use strict";r.d(t,{Kh:()=>c,OZ:()=>u,h5:()=>l,yR:()=>f});var n=r(99359),o=r(75685);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(s,l){var u=l(),c=r;c||(c=((0,o.O$)(u,{canvasId:t,windowId:e})||[]).map((function(e){return e.id})));s(a(a({},i),{},{canvasId:t,type:n.A.SET_CANVAS,visibleCanvases:c,windowId:e}))}}function u(e){return function(t,r){var n=r(),i=(0,o.BL)(n,{windowId:e}),a=(i||[]).map((function(e){return e.id}));i&&t(l(e,a[0],a))}}function c(e){return function(t,r){var n=r(),i=(0,o.Nj)(n,{windowId:e}),a=(i||[]).map((function(e){return e.id}));i&&t(l(e,a[0],a))}}function f(e,t){return{payload:t,type:n.A.UPDATE_VIEWPORT,windowId:e}}},68574:(e,t,r)=>{"use strict";r.d(t,{M:()=>o,l:()=>i});var n=r(99359);function o(e){return{manifestId:e,manifestJson:arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,payload:arguments.length>2?arguments[2]:void 0,type:n.A.ADD_RESOURCE}}function i(e){return{manifestId:e,type:n.A.REMOVE_RESOURCE}}},6683:(e,t,r)=>{"use strict";r.d(t,{A_:()=>f,TN:()=>v,Yy:()=>d,iB:()=>g,l2:()=>h,u3:()=>p});var n=r(26836),o=r(99359),i=r(60141),a=r(90176);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={content:null,position:null};function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,i="cw-".concat((0,n.A)());return{id:i,payload:l(l(l({},r),t),{},{id:i,windowId:e}),type:o.A.ADD_COMPANION_WINDOW,windowId:e}}function d(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;return function(n,o){var a=o(),s=t.position,l="left"===s&&(0,i.bN)(a,{position:s,windowId:e})[0];n(l?p(e,l,t):f(e,t,r))}}function p(e,t,r){return{id:t,payload:r,type:o.A.UPDATE_COMPANION_WINDOW,windowId:e}}function h(e,t){return{id:t,type:o.A.REMOVE_COMPANION_WINDOW,windowId:e}}function v(e,t,r){return function(n,i){var s=i(),l=(0,a.tv)(s,{companionWindowId:t},!1),c=(0,a.tv)(s,{companionWindowId:t},!0),f=(0,a.BB)(s,{id:t,windowId:e}),d=-1!==l.indexOf(r)||-1===c.indexOf(r)&&-1===f.indexOf(r);return n({id:t,payload:u({},r,{expanded:d}),type:o.A.TOGGLE_TOC_NODE,windowId:e})}}function g(e,t,r){return function(n,i){var s=i(),l=(0,a.tv)(s,{companionWindowId:t},!0),u={};return l.forEach((function(e){u[e]={expanded:!1}})),r.forEach((function(e){u[e]={expanded:!0}})),n({id:t,payload:u,type:o.A.TOGGLE_TOC_NODE,windowId:e})}}},80391:(e,t,r)=>{"use strict";r.d(t,{Jk:()=>f,KZ:()=>l,Nk:()=>u,_R:()=>c});var n=r(26836),o=r(99359);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return{config:e,type:o.A.IMPORT_CONFIG}}function u(e){return{config:e,type:o.A.SET_CONFIG}}function c(e){return{config:e,type:o.A.UPDATE_CONFIG}}function f(e){return{state:a(a({},e),{},{workspace:a(a({},e.workspace),{},{id:(0,n.A)()})}),type:o.A.IMPORT_MIRADOR_STATE}}},39084:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(99359);function o(e,t){return{payload:t,type:n.A.UPDATE_ELASTIC_WINDOW_LAYOUT,windowId:e}}},23978:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,C:()=>i});var n=r(26836),o=r(99359);function i(e){return{id:"error-".concat((0,n.A)()),message:e,type:o.A.ADD_ERROR}}function a(e){return{id:e,type:o.A.REMOVE_ERROR}}},50789:(e,t,r)=>{"use strict";r.r(t),r.d(t,{addAuthenticationRequest:()=>d.Bq,addCompanionWindow:()=>n.A_,addError:()=>i.C,addOrUpdateCompanionWindow:()=>n.Yy,addResource:()=>g.M,addWindow:()=>a._U,deselectAnnotation:()=>f.PW,expandNodes:()=>n.iB,fetchInfoResponse:()=>l.E9,fetchManifest:()=>s.Cj,fetchSearch:()=>h.$Q,focusWindow:()=>a.hN,hideCollectionDialog:()=>a.Th,hoverAnnotation:()=>f.GW,importConfig:()=>o.KZ,importMiradorState:()=>o.Jk,maximizeWindow:()=>a.Ff,minimizeWindow:()=>a.ds,receiveAccessToken:()=>d.h6,receiveAccessTokenFailure:()=>d.B2,receiveAnnotation:()=>f.n_,receiveAnnotationFailure:()=>f.tf,receiveDegradedInfoResponse:()=>l.dv,receiveInfoResponse:()=>l.xO,receiveInfoResponseFailure:()=>l.P7,receiveManifest:()=>s.Dc,receiveManifestFailure:()=>s.ns,receiveSearch:()=>h.md,receiveSearchFailure:()=>h.ae,removeCompanionWindow:()=>n.l2,removeError:()=>i.$,removeInfoResponse:()=>l.UE,removeManifest:()=>s.ei,removeResource:()=>g.l,removeSearch:()=>h.Vw,removeWindow:()=>a.lM,requestAccessToken:()=>d.B0,requestAnnotation:()=>f.pJ,requestCanvasAnnotations:()=>f.aw,requestInfoResponse:()=>l.vZ,requestManifest:()=>s.dX,requestSearch:()=>h.ib,resetAuthenticationState:()=>d.HN,resolveAccessTokenRequest:()=>d.fw,resolveAuthenticationRequest:()=>d._U,selectAnnotation:()=>f.gN,setCanvas:()=>u.h5,setCompanionAreaOpen:()=>a.Aq,setConfig:()=>o.Nk,setContentSearchCurrentAnnotation:()=>h.q,setNextCanvas:()=>u.OZ,setPreviousCanvas:()=>u.Kh,setWindowThumbnailPosition:()=>a.GR,setWindowViewType:()=>a.QO,setWorkspaceAddVisibility:()=>c.DW,setWorkspaceViewportDimensions:()=>c.Pi,setWorkspaceViewportPosition:()=>c.Dl,showCollectionDialog:()=>a.Az,toggleAnnotationDisplay:()=>f.ow,toggleDraggingEnabled:()=>c.Zw,toggleNode:()=>n.TN,toggleWindowSideBar:()=>a.F9,toggleZoomControls:()=>c.WU,updateCompanionWindow:()=>n.u3,updateConfig:()=>o._R,updateElasticWindowLayout:()=>p.D,updateLayers:()=>v.o,updateViewport:()=>u.yR,updateWindow:()=>a.uE,updateWorkspace:()=>c.tO,updateWorkspaceMosaicLayout:()=>c.ZV});var n=r(6683),o=r(80391),i=r(23978),a=r(92013),s=r(46316),l=r(65218),u=r(79189),c=r(80300),f=r(24580),d=r(45483),p=r(39084),h=r(14369),v=r(59679),g=r(68574)},65218:(e,t,r)=>{"use strict";r.d(t,{E9:()=>l,P7:()=>s,UE:()=>u,dv:()=>a,vZ:()=>o,xO:()=>i});var n=r(99359);function o(e,t,r){return{imageResource:t,infoId:e,type:n.A.REQUEST_INFO_RESPONSE,windowId:r}}function i(e,t,r,o){return{infoId:e,infoJson:t,ok:r,tokenServiceId:o,type:n.A.RECEIVE_INFO_RESPONSE}}function a(e,t,r,o,i){return{infoId:e,infoJson:t,ok:r,tokenServiceId:o,type:n.A.RECEIVE_DEGRADED_INFO_RESPONSE,windowId:i}}function s(e,t,r){return{error:t,infoId:e,tokenServiceId:r,type:n.A.RECEIVE_INFO_RESPONSE_FAILURE}}function l(e){var t=e.imageId,r=e.imageResource,n=e.windowId,i=r&&r.getServices()[0];return o(t||i.id,i,n)}function u(e){return{infoId:e,type:n.A.REMOVE_INFO_RESPONSE}}},59679:(e,t,r)=>{"use strict";r.d(t,{o:()=>o});var n=r(99359);function o(e,t,r){return{canvasId:t,payload:r,type:n.A.UPDATE_LAYERS,windowId:e}}},46316:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>c,Dc:()=>l,dX:()=>s,ei:()=>f,ns:()=>u});var n=r(99359);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return{manifestId:e,properties:t,type:n.A.REQUEST_MANIFEST}}function l(e,t){return{manifestId:e,manifestJson:t,type:n.A.RECEIVE_MANIFEST}}function u(e,t){return{error:t,manifestId:e,type:n.A.RECEIVE_MANIFEST_FAILURE}}function c(e,t){return s(e,i(i({},t),{},{isFetching:!0}))}function f(e){return{manifestId:e,type:n.A.REMOVE_MANIFEST}}},14369:(e,t,r)=>{"use strict";r.d(t,{$Q:()=>l,Vw:()=>s,ae:()=>a,ib:()=>o,md:()=>i,q:()=>u});var n=r(99359);function o(e,t,r,o){return{companionWindowId:t,query:o,searchId:r,type:n.A.REQUEST_SEARCH,windowId:e}}function i(e,t,r,o){return{companionWindowId:t,searchId:r,searchJson:o,type:n.A.RECEIVE_SEARCH,windowId:e}}function a(e,t,r,o){return{companionWindowId:t,error:o,searchId:r,type:n.A.RECEIVE_SEARCH_FAILURE,windowId:e}}function s(e,t){return{companionWindowId:t,type:n.A.REMOVE_SEARCH,windowId:e}}function l(e,t,r,n){return o(e,t,r,n)}function u(e,t,r){return{annotationIds:r,companionWindowId:t,type:n.A.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS,windowId:e}}},92013:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>y,Az:()=>S,F9:()=>w,Ff:()=>g,GR:()=>O,QO:()=>x,Th:()=>A,_U:()=>h,ds:()=>m,hN:()=>p,lM:()=>b,uE:()=>v});var n=r(26836),o=r(99359),i=r(29929),a=["companionWindows","manifest"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e){return{pan:arguments.length>1&&void 0!==arguments[1]&&arguments[1],type:o.A.FOCUS_WINDOW,windowId:e}}function h(e){var t=e.companionWindows,r=e.manifest,s=d(e,a);return function(e,a){var u=(0,i.t)(a()),f=u.config,d=u.workspace.windowIds,p=(void 0===d?[]:d).length,h=s.id||"window-".concat((0,n.A)()),v="cw-".concat((0,n.A)()),g=[{content:"thumbnailNavigation",default:!0,id:v,position:s.thumbnailNavigationPosition||f.thumbnailNavigation.defaultPosition,windowId:h}].concat(c((t||[]).map((function(e,t){return l(l({},e),{},{id:"cw-".concat((0,n.A)())})}))));(s.sideBarPanel||f.window.defaultSideBarPanel||f.window.sideBarPanel)&&g.unshift({content:s.sideBarPanel||s.defaultSearchQuery&&"search"||f.window.defaultSideBarPanel||f.window.sideBarPanel,default:!0,id:"cw-".concat((0,n.A)()),position:"left",windowId:h});var m={canvasId:void 0,collectionIndex:0,companionAreaOpen:!0,companionWindowIds:g.map((function(e){return e.id})),draggingEnabled:!0,highlightAllAnnotations:f.window.highlightAllAnnotations||!1,id:h,manifestId:null,maximized:!1,rangeId:null,rotation:null,selectedAnnotations:{},sideBarOpen:void 0!==f.window.sideBarOpenByDefault?f.window.sideBarOpenByDefault||!!s.defaultSearchQuery:f.window.sideBarOpen||!!s.defaultSearchQuery,sideBarPanel:s.sideBarPanel||f.window.defaultSideBarPanel||f.window.sideBarPanel,thumbnailNavigationId:v};e({companionWindows:g,elasticLayout:l(l({},f.window.elastic||{height:400,width:480}),{},{x:50*Math.floor(p/10)+30*p%300+200,y:200+50*p%300}),manifest:r,type:o.A.ADD_WINDOW,window:l(l({},m),s)})}}function v(e,t){return{id:e,payload:t,type:o.A.UPDATE_WINDOW}}function g(e,t){return{type:o.A.MAXIMIZE_WINDOW,windowId:e}}function m(e){return{type:o.A.MINIMIZE_WINDOW,windowId:e}}function y(e,t){return{id:e,payload:{companionAreaOpen:t},type:o.A.UPDATE_WINDOW}}function b(e){return{type:o.A.REMOVE_WINDOW,windowId:e}}function w(e){return{type:o.A.TOGGLE_WINDOW_SIDE_BAR,windowId:e}}function O(e,t){return function(r,n){r({id:n().windows[e].thumbnailNavigationId,payload:{position:t},type:o.A.UPDATE_COMPANION_WINDOW})}}function x(e,t){return{type:o.A.SET_WINDOW_VIEW_TYPE,viewType:t,windowId:e}}function S(e){var t=arguments.length>2?arguments[2]:void 0;return{collectionPath:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],manifestId:e,type:o.A.SHOW_COLLECTION_DIALOG,windowId:t}}function A(e){return{type:o.A.HIDE_COLLECTION_DIALOG,windowId:e}}},80300:(e,t,r)=>{"use strict";r.d(t,{DW:()=>s,Dl:()=>l,Pi:()=>u,WU:()=>i,ZV:()=>a,Zw:()=>c,tO:()=>o});var n=r(99359);function o(e){return{config:e,type:n.A.UPDATE_WORKSPACE}}function i(e){return{showZoomControls:e,type:n.A.TOGGLE_ZOOM_CONTROLS}}function a(e){return{layout:e,type:n.A.UPDATE_WORKSPACE_MOSAIC_LAYOUT}}function s(e){return{isWorkspaceAddVisible:e,type:n.A.SET_WORKSPACE_ADD_VISIBILITY}}function l(e){return{payload:{position:{x:e.x,y:e.y}},type:n.A.SET_WORKSPACE_VIEWPORT_POSITION}}function u(e){var t=e.width;return{payload:{position:{height:e.height,width:t}},type:n.A.SET_WORKSPACE_VIEWPORT_POSITION}}function c(){return{type:n.A.TOGGLE_DRAGGING}}},33235:(e,t,r)=>{"use strict";r.d(t,{Y2:()=>N,Ni:()=>R,Rh:()=>E,Su:()=>_,e3:()=>D,Z_:()=>M});var n=r(34589),o=r(18653),i=r.n(o),a=r(94881),s=r.n(a),l=r(75232),u=r(36286),c=r.n(u),f=r(26836);function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=t}var t,r,n;return t=e,(r=[{key:"isOnlyTag",value:function(){return 1===this.motivations.length&&"tagging"===this.motivations[0]}},{key:"id",get:function(){return this._id=this._id||this.resource.id||(0,f.A)(),this._id}},{key:"targetId",get:function(){var e=this.target[0];switch(typeof e){case"string":return e.replace(/#?xywh=(.*)$/,"");case"object":return e.source&&e.source.id||e.source||e.id;default:return null}}},{key:"motivations",get:function(){return s()(c()(new Array(this.resource.motivation)))}},{key:"body",get:function(){return s()(c()(new Array(this.resource.body)))}},{key:"resources",get:function(){return this.body}},{key:"tags",get:function(){return this.isOnlyTag()?this.body.map((function(e){return e.value})):this.body.filter((function(e){return"tagging"===e.purpose})).map((function(e){return e.value}))}},{key:"target",get:function(){return s()(c()(new Array(this.resource.target)))}},{key:"chars",get:function(){return this.isOnlyTag()?null:this.body.filter((function(e){return"tagging"!==e.purpose})).map((function(e){return e.value})).join(" ")}},{key:"selector",get:function(){var e=this.target[0];switch(typeof e){case"string":return e;case"object":return s()(c()(new Array(e.selector)));default:return null}}},{key:"svgSelector",get:function(){var e=this.selector;switch(typeof e){case"string":default:return null;case"object":return e.find((function(e){return e.type&&"SvgSelector"===e.type}))}}},{key:"fragmentSelector",get:function(){var e,t,r=this.selector;switch(typeof r){case"string":e=r.match(/xywh=(.*)$/);break;case"object":e=(t=r.find((function(e){return e.type&&"FragmentSelector"===e.type})))&&t.value.match(/xywh=(.*)$/);break;default:return null}return e&&e[1].split(",").map((function(e){return parseInt(e,10)}))}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var m=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.json=t,this.target=r}var t,r,n;return t=e,(r=[{key:"id",get:function(){return this.json.id}},{key:"present",value:function(){return this.items&&this.items.length>0}},{key:"items",get:function(){var e=this;return this._items=this._items||(e.json&&e.json.items?s()([e.json.items]).map((function(e){return new h(e)})):[]),this._items}},{key:"resources",get:function(){return this.items}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"determineAnnotation",value:function(e,t){return e?"AnnotationPage"===e.type?new m(e,t):new l.A(e,t):null}}],(r=null)&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),O=r(29929),x=r(75685),S=r(69972),A=r(47640),P=["canvasId"];function j(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var E=function(e){return(0,O.t)(e).annotations},I=(0,n.Mz)([S.zj,function(e,t){return t.motivations}],(function(e,t){return t||e.annotations.filteredMotivations})),T=(0,n.Mz)([x.dX,E],(function(e,t){return t&&e&&t[e.id]?s()(Object.values(t[e.id])):[]})),C=(0,n.Mz)([T],(function(e){return i()(Object.values(e).map((function(e){return e&&w.determineAnnotation(e.json)})),(function(e){return e&&e.present()}))})),k=(0,n.Mz)([function(e,t){var r=t.canvasId,n=j(t,P);return r?[r]:(0,x.tv)(e,n)},E],(function(e,t){return t&&0!==e.length?s()(e.map((function(e){return t[e]&&Object.values(t[e])}))):[]})),_=(0,n.Mz)([k],(function(e){return i()(Object.values(e).map((function(e){return e&&w.determineAnnotation(e.json)})),(function(e){return e&&e.present()}))})),R=(0,n.Mz)([C,I],(function(e,t){return i()(s()(e.map((function(e){return e.resources}))),(function(e){return e.motivations.some((function(e){return t.includes(e)}))}))})),N=(0,n.Mz)([_,I],(function(e,t){return i()(s()(e.map((function(e){return e.resources}))),(function(e){return e.motivations.some((function(e){return t.includes(e)}))}))})),D=(0,n.Mz)([A.zk],(function(e){return e.selectedAnnotationId})),M=(0,n.Mz)([_,D],(function(e,t){return e.map((function(e){return{id:e["@id"]||e.id,resources:e.resources.filter((function(e){return t===e.id}))}})).filter((function(e){return e.resources.length>0}))}))},79452:(e,t,r)=>{"use strict";r.d(t,{Rf:()=>g,X8:()=>m,wd:()=>b,xI:()=>y});var n=r(34589),o=r(33415),i=r(94881),a=r.n(i),s=r(11879),l=r(29929),u=r(69972),c=r(75685);function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=(0,n.Mz)([u.zj],(function(e){var t=e.auth,r=(void 0===t?{}:t).serviceProfiles;return void 0===r?[]:r})),m=function(e){return(0,l.t)(e).accessTokens||{}},y=function(e){return(0,l.t)(e).auth||{}},b=(0,n.Mz)([c.Mg,c.dN,g,y,function(e,t){return t.iiifResources}],(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!i&&e&&(i=a()(e.map((function(e){return new s.A(e).iiifImageResources.map((function(e){var r=e.getServices()[0],n=t[r.id];return n&&n.json?h(h({},n.json),{},{options:{}}):r}))})))),!i)return[];if(0===i.length)return[];var l=i.map((function(e){var t,i,a=o.Utils.getServices(e),s=f(r);try{var l,u=function(){var e,r=i.value,o=f(a.filter((function(e){return r.profile===e.getProfile()})));try{for(o.s();!(e=o.n()).done;){var s=e.value;if(t=s,!n[s.id]||n[s.id].isFetching||n[s.id].ok)return{v:s}}}catch(e){o.e(e)}finally{o.f()}};for(s.s();!(i=s.n()).done;)if(l=u())return l.v}catch(e){s.e(e)}finally{s.f()}return t}));return Object.values(l.reduce((function(e,t){return t&&!e[t.id]&&(e[t.id]=t),e}),{}))}))},75685:(e,t,r)=>{"use strict";r.d(t,{dX:()=>g,HU:()=>P,O$:()=>O,tV:()=>w,T2:()=>A,P:()=>v,kR:()=>m,BL:()=>x,Nj:()=>S,_K:()=>T,mK:()=>I,tv:()=>y,RP:()=>j,HS:()=>E,Mg:()=>b,E_:()=>C,dN:()=>h});var n=r(34589),o=r(94881),i=r.n(o);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvases=t,this.viewType=r,this._groupings=null}var t,r,n;return t=e,(r=[{key:"getCanvases",value:function(e){return"book"===this.viewType?this.groupings()[Math.ceil(e/2)]:this.groupings()[e]}},{key:"groupings",value:function(){if(this._groupings)return this._groupings;if("scroll"===this.viewType)return[this.canvases];if("book"!==this.viewType)return this.canvases.map((function(e){return[e]}));var e=[];return this.canvases.forEach((function(t,r){0!==r?r%2!=0?e.push([t]):e[Math.ceil(r/2)].push(t):e.push([t])})),this._groupings=e,e}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=r(11879),c=r(29929),f=r(47640),d=r(82154),p=r(25661),h=function(e){return(0,c.t)(e).infoResponses},v=(0,n.Mz)([d.eb],(function(e){return e&&e.getCanvases()||[]})),g=(0,n.Mz)([d.eb,function(e,t){return t.canvasId}],(function(e,t){if(e&&t)return e.getCanvasById(t)})),m=(0,n.Mz)([d.eb,f.zk],(function(e,t){if(e&&t)return t.canvasId?e.getCanvasById(t.canvasId):e.getCanvasByIndex(0)})),y=(0,n.Mz)([f.zk],(function(e){return e&&(e.visibleCanvases||e.canvasId&&[e.canvasId])||[]})),b=(0,n.Mz)([y,v],(function(e,t){return(t||[]).filter((function(t){return e.includes(t.id)}))})),w=(0,n.Mz)([v,p.i9],(function(e,t){return e&&new l(e,t).groupings()})),O=(0,n.Mz)([w,function(e,t){return t.canvasId}],(function(e,t){return e&&e.find((function(e){return e.some((function(e){return e.id===t}))}))||[]})),x=(0,n.Mz)([w,m],(function(e,t,r){if(e&&t){var n=e.findIndex((function(e){return e.some((function(e){return e.id===t.id}))}));if(!(n<0||n+1>=e.length))return e[n+1]}})),S=(0,n.Mz)([w,m],(function(e,t,r){if(e&&t){var n=e.findIndex((function(e){return e.some((function(e){return e.id===t.id}))}));if(!(n<1))return e[n-1]}})),A=(0,n.Mz)([g],(function(e){return e&&(e.getLabel().length>0?e.getLabel().getValue():String(e.index+1))})),P=(0,n.Mz)([g],(function(e){return e&&e.getProperty("description")})),j=(0,n.Mz)([b],(function(e){return i()(e.map((function(e){return new u.A(e).imageResources}))).filter((function(e){return e.getServices().length<1}))})),E=(0,n.Mz)([b],(function(e){return i()(e.map((function(e){return new u.A(e).videoResources})))})),I=(0,n.Mz)([b],(function(e){return i()(e.map((function(e){var t=new u.A(e);return t.v3VttContent.length?t.v3VttContent:t.v2VttContent})))})),T=(0,n.Mz)([b],(function(e){return i()(e.map((function(e){return new u.A(e).audioResources})))})),C=(0,n.Mz)([function(e,t){return t.infoId},g,h],(function(e,t,r){var n=e;if(!e){if(!t)return;var o=new u.A(t).iiifImageResources[0];n=o&&o.getServices()[0].id}return n&&r[n]&&!r[n].isFetching&&r[n]}))},60141:(e,t,r)=>{"use strict";r.d(t,{DS:()=>h,Ih:()=>O,Ir:()=>v,a4:()=>P,aE:()=>p,ar:()=>A,bN:()=>S,kH:()=>w});var n=r(34589),o=r(55409),i=r.n(o),a=r(29929),s=r(47640);function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){return(0,a.t)(e).companionWindows||{}}var h=(0,n.Mz)([p,function(e,t){return t.companionWindowId}],(function(e,t){return t&&e[t]})),v=(0,n.Mz)([s.zk,p],(function(e,t){return e&&t[e.thumbnailNavigationId]&&t[e.thumbnailNavigationId].position})),g=(0,n.Mz)([s.sl,p],(function(e,t){return(Object.keys(e)||[]).reduce((function(r,n){return f(f({},r),{},d({},n,i()(e[n].companionWindowIds,(function(e){return t[e]&&t[e].position}))))}),{})})),m=(0,n.Mz)([s.sl,p],(function(e,t){return(Object.keys(e)||[]).reduce((function(r,n){return f(f({},r),{},d({},n,i()(e[n].companionWindowIds.map((function(e){return t[e]})),(function(e){return e.position}))))}),{})})),y=(0,n.Mz)([function(e,t){return t.windowId},m],(function(e,t){return t[e]||{}})),b=(0,n.Mz)([function(e,t){return t.windowId},g],(function(e,t){return t[e]||{}})),w=(0,n.Mz)([y,function(e,t){return t.position}],(function(e,t){return e[t]||x})),O=(0,n.Mz)([y,function(e,t){return t.content}],(function(e,t){var r;return(r=[]).concat.apply(r,l(Object.values(e))).filter((function(e){return e.content===t}))})),x=[],S=(0,n.Mz)([b,function(e,t){return t.position}],(function(e,t){return e[t]||x})),A=(0,n.Mz)([function(e,t){return t.position},s.zk],(function(e,t){if(!t)return!1;var r=t.companionAreaOpen,n=t.sideBarOpen;return"left"!==e||!(!r||!n)})),P=(0,n.Mz)([y],(function(e){var t,r=0,n=0;return(t=[]).concat.apply(t,l(Object.values(e))).forEach((function(e){e.position.match(/right/)&&(r+=235),e.position.match(/bottom/)&&(n+=201)})),{height:n,width:r}}))},69972:(e,t,r)=>{"use strict";r.d(t,{Gt:()=>f,O4:()=>h,Qc:()=>v,TW:()=>g,X3:()=>p,b3:()=>m,lT:()=>y,x2:()=>d,zj:()=>c});var n=r(34589),o=r(75735),i=r.n(o),a=r(29929),s=r(47640);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){return(0,a.t)(e||{}).config||{}}function f(e){var t=c(e).export;return Object.entries(t).reduce((function(t,r){var n=l(r,2),o=n[0],i=n[1];return!0===i?t[o]=e[o]:i.filter&&(t[o]=Object.entries(e[o]).filter(i.filter).reduce((function(e,t){var r=l(t,2),n=r[0],o=r[1];return e[n]=o,e}),{})),t}),{})}var d=(0,n.Mz)([c],(function(e){var t=e.availableLanguages,r=e.language;return Object.keys(t).map((function(e){return{current:e===r,label:t[e],locale:e}}))})),p=(0,n.Mz)([s.K4,c],(function(e,t){return void 0===e.showZoomControls?t.workspace.showZoomControls:e.showZoomControls})),h=(0,n.Mz)([c],(function(e){var t=e.theme,r=e.themes,n=e.selectedTheme;return i()(t,r[n]||{})})),v=(0,n.Mz)([c],(function(e){var t=e.themes;return Object.keys(t)})),g=(0,n.Mz)([c],(function(e){return e.id})),m=(0,n.Mz)([c],(function(e){return e.theme.direction||"ltr"})),y=(0,n.Mz)([c],(function(e){return e.requests||{}}))},47640:(e,t,r)=>{"use strict";r.d(t,{K4:()=>u,O5:()=>p,Rv:()=>f,c2:()=>d,p3:()=>i,rG:()=>c,sl:()=>a,tk:()=>l,zk:()=>s});var n=r(34589),o=r(29929);function i(e){return Object.values((0,o.t)(e).windows).map((function(e){return e.manifestId}))}function a(e){return(0,o.t)(e).windows||{}}function s(e,t){var r=t.windowId;return a(e)[r]}var l=(0,n.Mz)([function(e){return(0,o.t)(e).viewers},function(e,t){return t.windowId}],(function(e,t){return e[t]}));function u(e){return(0,o.t)(e).workspace}var c=(0,n.Mz)([u],(function(e){return e.windowIds||[]}));function f(e){return(0,o.t)(e).manifests||{}}function d(e,t){var r=t.manifestId,n=t.windowId,o=f(e);return o&&o[r||n&&(s(e,{windowId:n})||{}).manifestId]}function p(e){return(0,o.t)(e).catalog||{}}},28540:(e,t,r)=>{"use strict";r.d(t,{Av:()=>u,MS:()=>d,bB:()=>c,p8:()=>s,yK:()=>f});var n=r(34589),o=r(11879),i=r(75685),a=r(29929),s=(0,n.Mz)([i.dX],(function(e){return e?new o.A(e).imageResources:[]})),l=Object.freeze([]),u=(0,n.Mz)([function(e){return(0,a.t)(e).layers},function(e,t){return t.windowId}],(function(e,t){return e&&e[t]||l})),c=(0,n.Mz)([u,function(e,t){return t.canvasId}],(function(e,t){return e[t]})),f=(0,n.Mz)([s,c],(function(e,t){return t?e.sort((function(e,r){return t[e.id]&&void 0!==t[e.id].index&&t[r.id]&&void 0!==t[r.id].index?t[e.id].index-t[r.id].index:t[e.id]&&void 0!==t[e.id].index?-1:t[r.id]&&void 0!==t[r.id].index?1:0})):e})),d=(0,n.Mz)([i.tv,u],(function(e,t){return e.reduce((function(e,r){return e[r]=t[r],e}),{})}))},26678:(e,t,r)=>{"use strict";r.d(t,{B4:()=>S,B8:()=>F,CG:()=>N,ES:()=>E,J4:()=>H,SG:()=>y,U1:()=>b,WA:()=>g,X6:()=>O,YR:()=>v,_6:()=>k,_l:()=>I,a$:()=>D,aY:()=>R,cm:()=>P,dB:()=>z,dn:()=>j,hp:()=>M,is:()=>x,lj:()=>C,nB:()=>A,rv:()=>T,t_:()=>B,uh:()=>L,yj:()=>_});var n=r(34589),o=r(47817),i=r(33415),a=r(20653),s=r(78502),l=r(60141),u=r(47640),c=r(69972);function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){if(e){var r=i.Utils.parseManifest(e,t?{locale:t}:void 0);return"function"!=typeof r.getSequences&&(r.getSequences=function(){return[]}),r}}var h=(0,n.Mz)([l.DS,c.zj],(function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale||e.language})),v=(0,n.Mz)([u.c2],(function(e){return e||{missing:!0}})),g=(0,n.Mz)([u.c2],(function(e){return e&&e.error})),m=(0,o.createCachedSelector)(u.c2,h,(function(e,t){return e&&p(e.json,t)}))((function(e,t){var r=t.companionWindowId;return[t.manifestId,t.windowId,h(e,{companionWindowId:r})].join(" - ")})),y=(0,n.Mz)(m,(function(e,t){return t.json}),h,(function(e,t,r){return t&&p(t,r)||e})),b=(0,n.Mz)([y],(function(e){return e&&e.options&&e.options.locale&&e.options.locale.replace(/-.*$/,"")}));function w(e){return(0,n.Mz)([y],(function(t){return t&&t.getProperty(e)}))}var O=(0,n.Mz)([w("provider")],(function(e){return e})),x=(0,n.Mz)([w("provider"),b],(function(e,t){return e&&e[0].label&&i.PropertyValue.parse(e[0].label,t).getValue()})),S=(0,n.Mz)([O],(function(e){var t,r=e&&e[0]&&e[0].logo&&e[0].logo[0];return r?null===(t=(0,a.A)(new i.Resource(r)))||void 0===t?void 0:t.url:null})),A=(0,n.Mz)([y,S],(function(e,t){return t||e&&e.getLogo()})),P=(0,n.Mz)([w("homepage"),b],(function(e,t){return e&&(0,s.A)(e).map((function(e){return{label:i.PropertyValue.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),j=(0,n.Mz)([y],(function(e){return e&&e.getRenderings().map((function(e){return{label:e.getLabel().getValue(),value:e.id}}))})),E=(0,n.Mz)([w("seeAlso"),b],(function(e,t){return e&&(0,s.A)(e).map((function(e){return{format:e.format,label:i.PropertyValue.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),I=E,T=(0,n.Mz)([w("related"),b],(function(e,t){return e&&(0,s.A)(e).map((function(e){return"string"==typeof e?{value:e}:{format:e.format,label:i.PropertyValue.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),C=(0,n.Mz)([y],(function(e){return e&&(0,s.A)(e.getRequiredStatement()).filter((function(e){return e.getValues().some((function(e){return e}))})).map((function(e){return{label:e.label&&e.label.getValue()||null,values:e.getValues()}}))})),k=(0,n.Mz)([w("rights"),w("license"),b],(function(e,t,r){var n=e||t;return(0,s.A)(i.PropertyValue.parse(n,r).getValues())}));function _(e,t){var r=y(e,t),n=(0,c.zj)(e).thumbnails,o=void 0===n?{}:n;if(r){var i=(0,a.A)(r,{maxHeight:80,maxWidth:120,preferredFormats:o.preferredFormats});return i&&i.url}}var R=(0,n.Mz)([y],(function(e){return e&&e.getLabel().getValue()})),N=(0,n.Mz)([h,y],(function(e,t){return t&&t.getDescription().getValue(e)})),D=(0,n.Mz)([w("summary"),b],(function(e,t){return e&&i.PropertyValue.parse(e,t).getValue(t)})),M=(0,n.Mz)([y],(function(e){return e&&e.id}));function L(e){return e&&e.getMetadata().map((function(e){return{label:e.getLabel(),values:e.getValues()}}))}var z=(0,n.Mz)([y],(function(e){return e&&L(e)}));function W(e){var t=[];return Array.isArray(e)?t.push.apply(t,f(e.filter((function(e){return"object"==typeof e&&e["@language"]})).map((function(e){return e["@language"]})))):e&&"object"==typeof e&&e["@language"]&&t.push(e["@language"]),t}var B=(0,n.Mz)([y],(function(e){return function(e){if(!e)return[];for(var t=e.getProperty("metadata")||[],r={},n=0;n<t.length;n+=1){var o=t[n];W(o.label).forEach((function(e){r[e]=!0})),W(o.value).forEach((function(e){r[e]=!0}))}return Object.keys(r)}(e)})),F=(0,n.Mz)([y],(function(e){if(!e)return null;var t=e.getService("http://iiif.io/api/search/0/search")||e.getService("http://iiif.io/api/search/1/search");return t||null})),H=(0,n.Mz)([F],(function(e){var t=e&&(e.getService("http://iiif.io/api/search/0/autocomplete")||e.getService("http://iiif.io/api/search/1/autocomplete"));return t&&t}))},90176:(e,t,r)=>{"use strict";r.d(t,{BB:()=>w,S:()=>A,bT:()=>j,rK:()=>P,tv:()=>S});var n=r(34589),o=r(80852),i=r.n(o),a=r(77179),s=r.n(a),l=r(33415),u=r(75685),c=r(60141),f=r(82154);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function v(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e){return void 0===e.parentNode?[]:void 0===e.parentNode.parentNode?[e.parentNode.id]:[].concat(v(m(e.parentNode)),[e.parentNode.id])}function y(e,t){return e.reduce((function(e,r){var n=[];n.push.apply(n,v(e));var o=t.reduce((function(e,t){return e||function(e,t){for(var r=e.getCanvasIds(),n=0;n<r.length;n+=1)if(l.Utils.normalisedUrlsMatch(r[n],t))return!0;return!1}(r.data,t)}),!1),i=r.nodes.length>0?y(r.nodes,t):[];return n.push.apply(n,v(i)),(o||i.length>0)&&n.push({containsVisibleCanvas:o,descendantsContainVisibleCanvas:i.length>0,id:r.id,leaf:0===r.nodes.length,parentIds:m(r)}),n}),[])}var b=(0,n.Mz)([f.P8,u.tv],(function(e,t){return 0!==t.length&&e?y(e.nodes,t):[]})),w=(0,n.Mz)([b],(function(e){return e.map((function(e){return e.id}))})),O=(0,n.Mz)([b],(function(e){return e.reduce((function(e,t){return t.leaf||!t.descendantsContainVisibleCanvas?e:[].concat(v(e),[t.id])}),[])})),x=(0,n.Mz)([b],(function(e){return e.reduce((function(e,t){return t.containsVisibleCanvas?[].concat(v(e),[t]):e}),[])}));function S(e,t,r){var n=t.companionWindowId,o=(0,c.DS)(e,{companionWindowId:n});return o.tocNodes?Object.keys(o.tocNodes).reduce((function(e,t){return o.tocNodes[t].expanded===r?[].concat(v(e),[t]):e}),[]):[]}function A(e,t){var r=t.companionWindowId,n=t.windowId,o=O(e,{companionWindowId:r,windowId:n}),a=S(e,{companionWindowId:r},!0),l=S(e,{companionWindowId:r},!1);return s().apply(void 0,[i()(a,o)].concat(v(l)))}function P(e,t){var r=h({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),t)),n=x(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r)),o=S(e,r,!1);if(n&&n.length>0){for(var i=0;i<n[0].parentIds.length;i+=1)if(-1!==o.indexOf(n[0].parentIds[i]))return n[0].parentIds[i];return n[0].id}return null}var j=(0,n.Mz)([f.P8],(function(e){return e&&e.nodes&&e.nodes.length>0?"tableOfContents":"item"}))},65174:(e,t,r)=>{"use strict";r.d(t,{KB:()=>E,LR:()=>m,SU:()=>j,TA:()=>A,TU:()=>y,V8:()=>v,WF:()=>d,XK:()=>w,bg:()=>C,bq:()=>g,gD:()=>S,sC:()=>P,wt:()=>I,yy:()=>x});var n=r(34589),o=r(33415),i=r(94881),a=r.n(i),s=r(75232),l=r(75685),u=r(47640),c=r(26678),f=r(29929),d=(0,n.Mz)([function(e,t){return t.windowId},function(e){return(0,f.t)(e).searches}],(function(e,t){return e&&t?t[e]:{}})),p=(0,n.Mz)([d,function(e,t){return t.companionWindowId}],(function(e,t){if(e&&t)return e[t]})),h=(0,n.Mz)([p],(function(e){return e?Object.values(e.data):[]})),v=(0,n.Mz)([p],(function(e){return e&&e.query})),g=(0,n.Mz)([h],(function(e){return e.some((function(e){return e.isFetching}))})),m=(0,n.Mz)([p],(function(e){var t;if(e&&e.data){var r=Object.values(e.data).find((function(e){return!e.isFetching&&e.json&&e.json.within}));return null==r||null===(t=r.json)||void 0===t||null===(t=t.within)||void 0===t?void 0:t.total}})),y=(0,n.Mz)([p],(function(e){if(e&&e.data){var t=Object.values(e.data).find((function(t){return!t.isFetching&&t.json&&t.json.next&&!e.data[t.json.next]}));return t&&t.json&&t.json.next}})),b=(0,n.Mz)([h],(function(e){return a()(e.map((function(e){return e&&e.json&&!e.isFetching&&e.json.hits?e.json.hits:[]})))})),w=(0,n.Mz)([b,l.P,function(e,t){var r=t.companionWindowId,n=t.windowId;return function(t){return E(e,{annotationUri:t,companionWindowId:r,windowId:n})}}],(function(e,t,r){if(!t||0===t.length)return[];if(!e||0===e.length)return[];var n=t.map((function(e){return e.id}));return[].concat(e).sort((function(e,t){var o=r(e.annotations[0]),i=r(t.annotations[0]);return n.indexOf(o.targetId)-n.indexOf(i.targetId)}))})),O=function(e){var t=e.map((function(e){if(e&&e.json&&!e.isFetching&&e.json.resources){var t=new s.A(e.json);return{id:t.id,resources:t.resources}}})).filter(Boolean);return{id:(t.find((function(e){return e.id}))||{}).id,resources:a()(t.map((function(e){return e.resources})))}},x=(0,n.Mz)([h],(function(e){return e&&O(e)}));function S(e,t){if(!e||!e.resources||0===e.length)return[];if(!t||0===t.length)return[];var r=t.map((function(e){return e.id}));return[].concat(e.resources).sort((function(e,t){return r.indexOf(e.targetId)-r.indexOf(t.targetId)}))}var A=(0,n.Mz)([x,l.P],(function(e,t){return S(e,t)})),P=(0,n.Mz)([d],(function(e){return e?Object.values(e).map((function(e){return Object.values(e.data)})).map((function(e){return O(e)})).filter((function(e){return e.resources.length>0})):[]})),j=(0,n.Mz)([u.zk,p],(function(e,t){return t&&t.selectedContentSearchAnnotationIds||[]})),E=(0,n.Mz)([x,function(e,t){return t.annotationUri}],(function(e,t){return e.resources.find((function(e){return e.id===t}))})),I=(0,n.Mz)([E,c.U1],(function(e,t){return e&&e.resource&&e.resource.label?o.PropertyValue.parse(e.resource.label,t).getValues():[]})),T=(0,n.Mz)([P,function(e,t){return t.annotationId}],(function(e,t){return a()(e.map((function(e){return e.resources}))).find((function(e){return e.id===t}))})),C=(0,n.Mz)([T,function(e,t){var r=t.windowId;return function(t){return(0,l.dX)(e,{canvasId:t,windowId:r})}}],(function(e,t){var r=e&&e.targetId;return r&&t(r)}))},82154:(e,t,r)=>{"use strict";r.d(t,{Kb:()=>f,P8:()=>p,PB:()=>u,eb:()=>l,fO:()=>s,pw:()=>d,sR:()=>c});var n=r(34589),o=r(33415),i=r(26678),a=r(47640),s=(0,n.Mz)([i.SG],(function(e){if(!e||!e.getTopRanges)return null;var t=e.getTopRanges(),r=[];return 0===t.filter((function(e){return"top"===e.getProperty("viewingHint")})).length&&1===t.length&&(r=t[0].getRanges().filter((function(e){return"sequence"===e.getBehavior()}))),[].concat(e.getSequences(),r)})),l=(0,n.Mz)([s,a.zk,function(e,t){return t.sequenceId}],(function(e,t,r){if(!e)return null;if(r||t&&t.sequenceId){var n=e.find((function(e){return e.id===(r||t.sequenceId)}));if(n)return n}return e[0]})),u=(0,n.Mz)([a.zk,l],(function(e,t){return(t&&e&&e.canvasId&&t.getCanvasById(e.canvasId)||{}).index||0})),c=(0,n.Mz)([l,i.SG],(function(e,t){if(!t)return null;var r=e&&e.getViewingHint()||t.getViewingHint();return r||null})),f=(0,n.Mz)([a.zk,l,i.SG],(function(e,t,r){var n=e&&e.viewingDirection||t&&t.getViewingDirection()||r&&r.getViewingDirection();return n||null})),d=(0,n.Mz)([l,i.SG],(function(e,t){if(!t||!e)return[];var r=e&&e.getProperty("behavior");if(r)return Array.isArray(r)?r:[r];var n=t.getProperty("behavior");return n?Array.isArray(n)?n:[n]:[]})),p=(0,n.Mz)([l,i.SG],(function(e,t){return e&&e.getProperty("type")&&e.isRange()?e.getTree(new o.TreeNode("root")):t&&t.getDefaultTree()}))},29929:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r(12497);function o(e){return n.A.state.slice?e[n.A.state.slice]:e}},77628:(e,t,r)=>{"use strict";r.d(t,{k:()=>l});var n=r(34589),o=r(70191),i=r(75685),a=r(28540),s=r(82154),l=(0,n.Mz)([i.Mg,a.MS,s.Kb],(function(e,t,r){return new o.A(e,t,r)}))},25661:(e,t,r)=>{"use strict";r.d(t,{B2:()=>g,Eu:()=>h,R2:()=>d,i9:()=>v,kt:()=>m,wb:()=>p});var n=r(34589),o=r(26678),i=r(69972),a=r(47640),s=r(33793),l=r(82154);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=(0,n.Mz)([i.zj,a.zk],(function(e){var t=e.window,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(c({},t),r)}));function p(e){var t={};return Object.keys((0,a.sl)(e)).forEach((function(r){t[r]=(0,o.aY)(e,{windowId:r})})),t}var h=(0,n.Mz)([a.sl],(function(e){return Object.values(e).filter((function(e){return!0===e.maximized})).map((function(e){return e.id}))})),v=(0,n.Mz)([a.zk,d,l.sR,l.pw],(function(e,t,r,n){var o=t.views,i=void 0===o?[]:o,a=t.defaultView;if(e&&e.view)return e.view;var s=(i||[]).find((function(e){return e.behaviors&&e.behaviors.some((function(e){return r===e||n.includes(e)}))}));return s&&s.key||a})),g=(0,n.Mz)([l.sR,l.pw,d],(function(e,t,r){var n=r.views,o=void 0===n?[]:n,i=r.defaultView;return(o||[]).reduce((function(r,n){return n.key!==i&&n.behaviors&&!n.behaviors.some((function(r){return e===r||t.includes(r)}))||r.push(n.key),r}),[])})),m=(0,n.Mz)([s.I3,a.zk,function(e){return(0,a.rG)(e).length>1}],(function(e,t,r){return"elastic"===e||r&&t&&!1===t.maximized}))},33793:(e,t,r)=>{"use strict";r.d(t,{H:()=>u,I3:()=>f,Q9:()=>l,ar:()=>p,fT:()=>d,g:()=>c});var n=r(34589),o=r(47640),i=r(29929);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return(0,i.t)(e).elasticLayout}var u=(0,n.Mz)([o.K4],(function(e){return e.isFullscreenEnabled}));function c(e){var t=a((0,i.t)(e).errors.items,1)[0];return(0,i.t)(e).errors[t]}var f=(0,n.Mz)([o.K4],(function(e){return e.type})),d=(0,n.Mz)([o.K4],(function(e){return e.focusedWindowId})),p=function(e,t){var r=t.windowId;return d(e)===r}},42634:()=>{},90068:(e,t,r)=>{var n=r(7019);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},88041:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},61589:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},84376:e=>{e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},38262:(e,t,r)=>{var n=r(52735).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7019:(e,t,r)=>{var n=r(52735).default,o=r(38262);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},52735:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},76973:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},3873:(e,t,r)=>{"use strict";var n=r(55164),o=r(76390),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},66961:(e,t,r)=>{"use strict";var n=r(22930),o=r(76390),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},20857:(e,t,r)=>{"use strict";var n=r(96696),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},91954:(e,t,r)=>{"use strict";var n=r(41642),o=r(98905),i=r(50754).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},6698:(e,t,r)=>{"use strict";var n=r(83908).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},19662:(e,t,r)=>{"use strict";var n=r(76466),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},25546:(e,t,r)=>{"use strict";var n=r(55343),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},7164:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},40461:(e,t,r)=>{"use strict";var n=r(53634);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},53223:(e,t,r)=>{"use strict";var n,o,i,a=r(7164),s=r(54797),l=r(2928),u=r(55164),c=r(55343),f=r(32770),d=r(23502),p=r(76390),h=r(67592),v=r(34197),g=r(47557),m=r(76466),y=r(21562),b=r(96814),w=r(41642),O=r(96177),x=r(46814),S=x.enforce,A=x.get,P=l.Int8Array,j=P&&P.prototype,E=l.Uint8ClampedArray,I=E&&E.prototype,T=P&&y(P),C=j&&y(j),k=Object.prototype,_=l.TypeError,R=w("toStringTag"),N=O("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",M=a&&!!b&&"Opera"!==d(l.opera),L=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},B=function(e){if(!c(e))return!1;var t=d(e);return f(z,t)||f(W,t)};for(n in z)(i=(o=l[n])&&o.prototype)?S(i)[D]=o:M=!1;for(n in W)(i=(o=l[n])&&o.prototype)&&(S(i)[D]=o);if((!M||!u(T)||T===Function.prototype)&&(T=function(){throw new _("Incorrect invocation")},M))for(n in z)l[n]&&b(l[n],T);if((!M||!C||C===k)&&(C=T.prototype,M))for(n in z)l[n]&&b(l[n].prototype,C);if(M&&y(I)!==C&&b(I,C),s&&!f(C,R))for(n in L=!0,g(C,R,{configurable:!0,get:function(){return c(this)?this[N]:void 0}}),z)l[n]&&h(l[n],N,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:L&&N,aTypedArray:function(e){if(B(e))return e;throw new _("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||m(T,e)))return e;throw new _(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var o in z){var i=l[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}C[e]&&!r||v(C,e,r?t:M&&j[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(s){if(b){if(r)for(n in z)if((o=l[n])&&f(o,e))try{delete o[e]}catch(e){}if(T[e]&&!r)return;try{return v(T,e,r?t:M&&T[e]||t)}catch(e){}}for(n in z)!(o=l[n])||o[e]&&!r||v(o,e,t)}},getTypedArrayConstructor:function e(t){var r=y(t);if(c(r)){var n=A(r);return n&&f(n,D)?n[D]:e(r)}},isView:function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||f(z,t)||f(W,t)},isTypedArray:B,TypedArray:T,TypedArrayPrototype:C}},57561:(e,t,r)=>{"use strict";var n=r(2928),o=r(37889),i=r(54797),a=r(7164),s=r(9071),l=r(67592),u=r(47557),c=r(2784),f=r(53634),d=r(19662),p=r(93784),h=r(31995),v=r(26467),g=r(8004),m=r(15623),y=r(21562),b=r(96814),w=r(46934),O=r(75905),x=r(9526),S=r(44017),A=r(65418),P=r(46814),j=s.PROPER,E=s.CONFIGURABLE,I="ArrayBuffer",T="DataView",C="prototype",k="Wrong index",_=P.getterFor(I),R=P.getterFor(T),N=P.set,D=n[I],M=D,L=M&&M[C],z=n[T],W=z&&z[C],B=Object.prototype,F=n.Array,H=n.RangeError,U=o(w),V=o([].reverse),G=m.pack,q=m.unpack,K=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},X=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return G(g(e),23,4)},Q=function(e){return G(e,52,8)},J=function(e,t,r){u(e[C],t,{configurable:!0,get:function(){return r(this)[t]}})},ee=function(e,t,r,n){var o=R(e),i=v(r),a=!!n;if(i+t>o.byteLength)throw new H(k);var s=o.bytes,l=i+o.byteOffset,u=O(s,l,l+t);return a?u:V(u)},te=function(e,t,r,n,o,i){var a=R(e),s=v(r),l=n(+o),u=!!i;if(s+t>a.byteLength)throw new H(k);for(var c=a.bytes,f=s+a.byteOffset,d=0;d<t;d++)c[f+d]=l[u?d:t-d-1]};if(a){var re=j&&D.name!==I;f((function(){D(1)}))&&f((function(){new D(-1)}))&&!f((function(){return new D,new D(1.5),new D(NaN),1!==D.length||re&&!E}))?re&&E&&l(D,"name",I):((M=function(e){return d(this,L),x(new D(v(e)),this,M)})[C]=L,L.constructor=M,S(M,D)),b&&y(W)!==B&&b(W,B);var ne=new z(new M(2)),oe=o(W.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),!ne.getInt8(0)&&ne.getInt8(1)||c(W,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else L=(M=function(e){d(this,L);var t=v(e);N(this,{type:I,bytes:U(F(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)})[C],W=(z=function(e,t,r){d(this,W),d(e,L);var n=_(e),o=n.byteLength,a=p(t);if(a<0||a>o)throw new H("Wrong offset");if(a+(r=void 0===r?o-a:h(r))>o)throw new H("Wrong length");N(this,{type:T,buffer:e,byteLength:r,byteOffset:a,bytes:n.bytes}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=a)})[C],i&&(J(M,"byteLength",_),J(z,"buffer",R),J(z,"byteLength",R),J(z,"byteOffset",R)),c(W,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return X(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return X(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return q(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return q(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,K,t)},setUint8:function(e,t){te(this,1,e,K,t)},setInt16:function(e,t){te(this,2,e,$,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,$,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,Q,t,arguments.length>2&&arguments[2])}});A(M,I),A(z,T),e.exports={ArrayBuffer:M,DataView:z}},19968:(e,t,r)=>{"use strict";var n=r(19452),o=r(29603),i=r(28765),a=r(26025),s=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),l=i(r),u=o(e,l),c=o(t,l),f=arguments.length>2?arguments[2]:void 0,d=s((void 0===f?l:o(f,l))-c,l-u),p=1;for(c<u&&u<c+d&&(p=-1,c+=d-1,u+=d-1);d-- >0;)c in r?r[u]=r[c]:a(r,u),u+=p,c+=p;return r}},46934:(e,t,r)=>{"use strict";var n=r(19452),o=r(29603),i=r(28765);e.exports=function(e){for(var t=n(this),r=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,r),l=a>2?arguments[2]:void 0,u=void 0===l?r:o(l,r);u>s;)t[s++]=e;return t}},61964:(e,t,r)=>{"use strict";var n=r(95016).forEach,o=r(58421)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},71719:(e,t,r)=>{"use strict";var n=r(28765);e.exports=function(e,t,r){for(var o=0,i=arguments.length>2?r:n(t),a=new e(i);i>o;)a[o]=t[o++];return a}},98299:(e,t,r)=>{"use strict";var n=r(88269),o=r(23736),i=r(19452),a=r(95804),s=r(80098),l=r(22930),u=r(28765),c=r(73249),f=r(67998),d=r(60898),p=Array;e.exports=function(e){var t=i(e),r=l(this),h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v;g&&(v=n(v,h>2?arguments[2]:void 0));var m,y,b,w,O,x,S=d(t),A=0;if(!S||this===p&&s(S))for(m=u(t),y=r?new this(m):p(m);m>A;A++)x=g?v(t[A],A):t[A],c(y,A,x);else for(O=(w=f(t,S)).next,y=r?new this:[];!(b=o(O,w)).done;A++)x=g?a(w,v,[b.value,A],!0):b.value,c(y,A,x);return y.length=A,y}},25282:(e,t,r)=>{"use strict";var n=r(61212),o=r(29603),i=r(28765),a=function(e){return function(t,r,a){var s=n(t),l=i(s);if(0===l)return!e&&-1;var u,c=o(a,l);if(e&&r!=r){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},95016:(e,t,r)=>{"use strict";var n=r(88269),o=r(37889),i=r(24384),a=r(19452),s=r(28765),l=r(11198),u=o([].push),c=function(e){var t=1===e,r=2===e,o=3===e,c=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,m){for(var y,b,w=a(h),O=i(w),x=s(O),S=n(v,g),A=0,P=m||l,j=t?P(h,x):r||d?P(h,0):void 0;x>A;A++)if((p||A in O)&&(b=S(y=O[A],A,w),e))if(t)j[A]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return A;case 2:u(j,y)}else switch(e){case 4:return!1;case 7:u(j,y)}return f?-1:o||c?c:j}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},43062:(e,t,r)=>{"use strict";var n=r(30678),o=r(61212),i=r(93784),a=r(28765),s=r(58421),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=c||!f;e.exports=d?function(e){if(c)return n(u,this,arguments)||0;var t=o(this),r=a(t);if(0===r)return-1;var s=r-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},90074:(e,t,r)=>{"use strict";var n=r(53634),o=r(41642),i=r(32389),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},58421:(e,t,r)=>{"use strict";var n=r(53634);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},90069:(e,t,r)=>{"use strict";var n=r(3873),o=r(19452),i=r(24384),a=r(28765),s=TypeError,l="Reduce of empty array with no initial value",u=function(e){return function(t,r,u,c){var f=o(t),d=i(f),p=a(f);if(n(r),0===p&&u<2)throw new s(l);var h=e?p-1:0,v=e?-1:1;if(u<2)for(;;){if(h in d){c=d[h],h+=v;break}if(h+=v,e?h<0:p<=h)throw new s(l)}for(;e?h>=0:p>h;h+=v)h in d&&(c=r(c,d[h],h,f));return c}};e.exports={left:u(!1),right:u(!0)}},83648:(e,t,r)=>{"use strict";var n=r(54797),o=r(84783),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},75905:(e,t,r)=>{"use strict";var n=r(37889);e.exports=n([].slice)},51967:(e,t,r)=>{"use strict";var n=r(75905),o=Math.floor;e.exports=function e(t,r){var i=t.length;if(i<8)for(var a,s,l=1;l<i;){for(s=l,a=t[l];s&&r(t[s-1],a)>0;)t[s]=t[--s];s!==l++&&(t[s]=a)}else for(var u=o(i/2),c=e(n(t,0,u),r),f=e(n(t,u),r),d=c.length,p=f.length,h=0,v=0;h<d||v<p;)t[h+v]=h<d&&v<p?r(c[h],f[v])<=0?c[h++]:f[v++]:h<d?c[h++]:f[v++];return t}},93580:(e,t,r)=>{"use strict";var n=r(84783),o=r(22930),i=r(55343),a=r(41642)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},11198:(e,t,r)=>{"use strict";var n=r(93580);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},95804:(e,t,r)=>{"use strict";var n=r(25546),o=r(66020);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},58211:(e,t,r)=>{"use strict";var n=r(41642)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},27953:(e,t,r)=>{"use strict";var n=r(37889),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},23502:(e,t,r)=>{"use strict";var n=r(63361),o=r(55164),i=r(27953),a=r(41642)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},29263:(e,t,r)=>{"use strict";var n=r(98905),o=r(47557),i=r(2784),a=r(88269),s=r(19662),l=r(74350),u=r(77641),c=r(48993),f=r(96944),d=r(86956),p=r(54797),h=r(38934).fastKey,v=r(46814),g=v.set,m=v.getterFor;e.exports={getConstructor:function(e,t,r,c){var f=e((function(e,o){s(e,d),g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(o)||u(o,e[c],{that:e,AS_ENTRIES:r})})),d=f.prototype,v=m(t),y=function(e,t,r){var n,o,i=v(e),a=b(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var r,n=v(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(d,{clear:function(){for(var e=v(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),p?e.size=0:this.size=0},delete:function(e){var t=this,r=v(t),n=b(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),p?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=v(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(d,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),p&&o(d,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",o=m(t),i=m(n);c(e,t,(function(e,t){g(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),d(t)}}},20584:(e,t,r)=>{"use strict";var n=r(37889),o=r(2784),i=r(38934).getWeakData,a=r(19662),s=r(25546),l=r(74350),u=r(55343),c=r(77641),f=r(95016),d=r(32770),p=r(46814),h=p.set,v=p.getterFor,g=f.find,m=f.findIndex,y=n([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new O)},O=function(){this.entries=[]},x=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};O.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var r=x(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var f=e((function(e,o){a(e,p),h(e,{type:t,id:b++,frozen:void 0}),l(o)||c(o,e[n],{that:e,AS_ENTRIES:r})})),p=f.prototype,g=v(t),m=function(e,t,r){var n=g(e),o=i(s(t),!0);return!0===o?w(n).set(t,r):o[n.id]=r,e};return o(p,{delete:function(e){var t=g(this);if(!u(e))return!1;var r=i(e);return!0===r?w(t).delete(e):r&&d(r,t.id)&&delete r[t.id]},has:function(e){var t=g(this);if(!u(e))return!1;var r=i(e);return!0===r?w(t).has(e):r&&d(r,t.id)}}),o(p,r?{get:function(e){var t=g(this);if(u(e)){var r=i(e);return!0===r?w(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},51759:(e,t,r)=>{"use strict";var n=r(63485),o=r(2928),i=r(37889),a=r(84857),s=r(34197),l=r(38934),u=r(77641),c=r(19662),f=r(55164),d=r(74350),p=r(55343),h=r(53634),v=r(58211),g=r(65418),m=r(9526);e.exports=function(e,t,r){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=y?"set":"add",O=o[e],x=O&&O.prototype,S=O,A={},P=function(e){var t=i(x[e]);s(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!f(O)||!(b||x.forEach&&!h((function(){(new O).entries().next()})))))S=r.getConstructor(t,e,y,w),l.enable();else if(a(e,!0)){var j=new S,E=j[w](b?{}:-0,1)!==j,I=h((function(){j.has(1)})),T=v((function(e){new O(e)})),C=!b&&h((function(){for(var e=new O,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((S=t((function(e,t){c(e,x);var r=m(new O,e,S);return d(t)||u(t,r[w],{that:r,AS_ENTRIES:y}),r}))).prototype=x,x.constructor=S),(I||C)&&(P("delete"),P("has"),y&&P("get")),(C||E)&&P(w),b&&x.clear&&delete x.clear}return A[e]=S,n({global:!0,constructor:!0,forced:S!==O},A),g(S,e),b||r.setStrong(S,e,y),S}},44017:(e,t,r)=>{"use strict";var n=r(32770),o=r(36608),i=r(3880),a=r(50754);e.exports=function(e,t,r){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var f=s[c];n(e,f)||r&&n(r,f)||l(e,f,u(t,f))}}},46265:(e,t,r)=>{"use strict";var n=r(41642)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},24552:(e,t,r)=>{"use strict";var n=r(53634);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},25533:(e,t,r)=>{"use strict";var n=r(37889),o=r(31365),i=r(30106),a=/"/g,s=n("".replace);e.exports=function(e,t,r,n){var l=i(o(e)),u="<"+t;return""!==r&&(u+=" "+r+'="'+s(i(n),a,"&quot;")+'"'),u+">"+l+"</"+t+">"}},96944:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},67592:(e,t,r)=>{"use strict";var n=r(54797),o=r(50754),i=r(70019);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},70019:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},73249:(e,t,r)=>{"use strict";var n=r(54797),o=r(50754),i=r(70019);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},85059:(e,t,r)=>{"use strict";var n=r(37889),o=r(53634),i=r(87062).start,a=RangeError,s=isFinite,l=Math.abs,u=Date.prototype,c=u.toISOString,f=n(u.getTime),d=n(u.getUTCDate),p=n(u.getUTCFullYear),h=n(u.getUTCHours),v=n(u.getUTCMilliseconds),g=n(u.getUTCMinutes),m=n(u.getUTCMonth),y=n(u.getUTCSeconds);e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!==c.call(new Date(-50000000000001))}))||!o((function(){c.call(new Date(NaN))}))?function(){if(!s(f(this)))throw new a("Invalid time value");var e=this,t=p(e),r=v(e),n=t<0?"-":t>9999?"+":"";return n+i(l(t),n?6:4,0)+"-"+i(m(e)+1,2,0)+"-"+i(d(e),2,0)+"T"+i(h(e),2,0)+":"+i(g(e),2,0)+":"+i(y(e),2,0)+"."+i(r,3,0)+"Z"}:c},67305:(e,t,r)=>{"use strict";var n=r(25546),o=r(38367),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},47557:(e,t,r)=>{"use strict";var n=r(66514),o=r(50754);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},34197:(e,t,r)=>{"use strict";var n=r(55164),o=r(50754),i=r(66514),a=r(39998);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},2784:(e,t,r)=>{"use strict";var n=r(34197);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},39998:(e,t,r)=>{"use strict";var n=r(2928),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},26025:(e,t,r)=>{"use strict";var n=r(76390),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},54797:(e,t,r)=>{"use strict";var n=r(53634);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},49750:(e,t,r)=>{"use strict";var n=r(2928),o=r(55343),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},87330:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},8597:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},63031:(e,t,r)=>{"use strict";var n=r(49750)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},65959:(e,t,r)=>{"use strict";var n=r(37485).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},76323:(e,t,r)=>{"use strict";var n=r(59947),o=r(29407);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},14002:e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},59947:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},70861:(e,t,r)=>{"use strict";var n=r(37485);e.exports=/MSIE|Trident/.test(n)},97383:(e,t,r)=>{"use strict";var n=r(37485);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},55546:(e,t,r)=>{"use strict";var n=r(37485);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},29407:(e,t,r)=>{"use strict";var n=r(2928),o=r(27953);e.exports="process"===o(n.process)},13654:(e,t,r)=>{"use strict";var n=r(37485);e.exports=/web0s(?!.*chrome)/i.test(n)},37485:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},32389:(e,t,r)=>{"use strict";var n,o,i=r(2928),a=r(37485),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},37973:(e,t,r)=>{"use strict";var n=r(37485).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},23690:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63485:(e,t,r)=>{"use strict";var n=r(2928),o=r(3880).f,i=r(67592),a=r(34197),s=r(39998),l=r(44017),u=r(84857);e.exports=function(e,t){var r,c,f,d,p,h=e.target,v=e.global,g=e.stat;if(r=v?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(p=o(r,c))&&p.value:r[c],!u(v?c:h+(g?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(r,c,d,e)}}},53634:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},34691:(e,t,r)=>{"use strict";r(80248);var n=r(23736),o=r(34197),i=r(2542),a=r(53634),s=r(41642),l=r(67592),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,r,f){var d=s(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!p||!h||r){var v=/./[d],g=t(d,""[e],(function(e,t,r,o,a){var s=t.exec;return s===i||s===c.exec?p&&!a?{done:!0,value:n(v,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(c,d,g[1])}f&&l(c[d],"sham",!0)}},74960:(e,t,r)=>{"use strict";var n=r(84783),o=r(28765),i=r(87330),a=r(88269);e.exports=function e(t,r,s,l,u,c,f,d){for(var p,h=u,v=0,g=!!f&&a(f,d);v<l;)v in s&&(p=g?g(s[v],v,r):s[v],c>0&&n(p)?h=e(t,r,p,o(p),h,c-1)-1:(i(h+1),t[h]=p),h++),v++;return h}},68527:(e,t,r)=>{"use strict";var n=r(53634);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},30678:(e,t,r)=>{"use strict";var n=r(98607),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},88269:(e,t,r)=>{"use strict";var n=r(11515),o=r(3873),i=r(98607),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},98607:(e,t,r)=>{"use strict";var n=r(53634);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},43347:(e,t,r)=>{"use strict";var n=r(37889),o=r(3873),i=r(55343),a=r(32770),s=r(75905),l=r(98607),u=Function,c=n([].concat),f=n([].join),d={};e.exports=l?u.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),l=function(){var r=c(n,s(arguments));return this instanceof l?function(e,t,r){if(!a(d,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";d[t]=u("C,a","return new C("+f(n,",")+")")}return d[t](e,r)}(t,r.length,r):t.apply(e,r)};return i(r)&&(l.prototype=r),l}},23736:(e,t,r)=>{"use strict";var n=r(98607),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9071:(e,t,r)=>{"use strict";var n=r(54797),o=r(32770),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},87809:(e,t,r)=>{"use strict";var n=r(37889),o=r(3873);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},11515:(e,t,r)=>{"use strict";var n=r(27953),o=r(37889);e.exports=function(e){if("Function"===n(e))return o(e)}},37889:(e,t,r)=>{"use strict";var n=r(98607),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},80148:(e,t,r)=>{"use strict";var n=r(2928),o=r(55164);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},60898:(e,t,r)=>{"use strict";var n=r(23502),o=r(64897),i=r(74350),a=r(91356),s=r(41642)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},67998:(e,t,r)=>{"use strict";var n=r(23736),o=r(3873),i=r(25546),a=r(76390),s=r(60898),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new l(a(e)+" is not iterable")}},77534:(e,t,r)=>{"use strict";var n=r(37889),o=r(84783),i=r(55164),a=r(27953),s=r(30106),l=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?l(r,u):"number"!=typeof u&&"Number"!==a(u)&&"String"!==a(u)||l(r,s(u))}var c=r.length,f=!0;return function(e,t){if(f)return f=!1,t;if(o(this))return t;for(var n=0;n<c;n++)if(r[n]===e)return t}}}},64897:(e,t,r)=>{"use strict";var n=r(3873),o=r(74350);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},7289:(e,t,r)=>{"use strict";var n=r(37889),o=r(19452),i=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,f,d){var p=r+e.length,h=n.length,v=c;return void 0!==f&&(f=o(f),v=u),s(d,v,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,p);case"<":u=f[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>h){var d=i(c/10);return 0===d?o:d<=h?void 0===n[d-1]?a(s,1):n[d-1]+a(s,1):o}u=n[c-1]}return void 0===u?"":u}))}},2928:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},32770:(e,t,r)=>{"use strict";var n=r(37889),o=r(19452),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},77076:e=>{"use strict";e.exports={}},54138:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},33490:(e,t,r)=>{"use strict";var n=r(80148);e.exports=n("document","documentElement")},96182:(e,t,r)=>{"use strict";var n=r(54797),o=r(53634),i=r(49750);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},15623:e=>{"use strict";var t=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,s,l){var u,c,f,d=t(l),p=8*l-s-1,h=(1<<p)-1,v=h>>1,g=23===s?n(2,-24)-n(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;for((e=r(e))!=e||e===1/0?(c=e!=e?1:0,u=h):(u=o(i(e)/a),e*(f=n(2,-u))<1&&(u--,f*=2),(e+=u+v>=1?g/f:g*n(2,1-v))*f>=2&&(u++,f/=2),u+v>=h?(c=0,u=h):u+v>=1?(c=(e*f-1)*n(2,s),u+=v):(c=e*n(2,v-1)*n(2,s),u=0));s>=8;)d[y++]=255&c,c/=256,s-=8;for(u=u<<s|c,p+=s;p>0;)d[y++]=255&u,u/=256,p-=8;return d[--y]|=128*m,d},unpack:function(e,t){var r,o=e.length,i=8*o-t-1,a=(1<<i)-1,s=a>>1,l=i-7,u=o-1,c=e[u--],f=127&c;for(c>>=7;l>0;)f=256*f+e[u--],l-=8;for(r=f&(1<<-l)-1,f>>=-l,l+=t;l>0;)r=256*r+e[u--],l-=8;if(0===f)f=1-s;else{if(f===a)return r?NaN:c?-1/0:1/0;r+=n(2,t),f-=s}return(c?-1:1)*r*n(2,f-t)}}},24384:(e,t,r)=>{"use strict";var n=r(37889),o=r(53634),i=r(27953),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},9526:(e,t,r)=>{"use strict";var n=r(55164),o=r(55343),i=r(96814);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},79413:(e,t,r)=>{"use strict";var n=r(37889),o=r(55164),i=r(23094),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},38934:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(77076),a=r(55343),s=r(32770),l=r(50754).f,u=r(50125),c=r(26469),f=r(55687),d=r(96177),p=r(68527),h=!1,v=d("meta"),g=0,m=function(e){l(e,v,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=u.f,t=o([].splice),r={};r[v]=1,e(r).length&&(u.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===v){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!f(e))return"F";if(!t)return"E";m(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!f(e))return!0;if(!t)return!1;m(e)}return e[v].weakData},onFreeze:function(e){return p&&h&&f(e)&&!s(e,v)&&m(e),e}};i[v]=!0},46814:(e,t,r)=>{"use strict";var n,o,i,a=r(26185),s=r(2928),l=r(55343),u=r(67592),c=r(32770),f=r(23094),d=r(20056),p=r(77076),h="Object already initialized",v=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,n=function(e,t){if(m.has(e))throw new v(h);return t.facade=e,m.set(e,t),t},o=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var y=d("state");p[y]=!0,n=function(e,t){if(c(e,y))throw new v(h);return t.facade=e,u(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},80098:(e,t,r)=>{"use strict";var n=r(41642),o=r(91356),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},84783:(e,t,r)=>{"use strict";var n=r(27953);e.exports=Array.isArray||function(e){return"Array"===n(e)}},13864:(e,t,r)=>{"use strict";var n=r(23502);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},55164:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},22930:(e,t,r)=>{"use strict";var n=r(37889),o=r(53634),i=r(55164),a=r(23502),s=r(80148),l=r(79413),u=function(){},c=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=n(f.exec),p=!f.test(u),h=function(e){if(!i(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,l(e))}catch(e){return!0}};v.sham=!0,e.exports=!c||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?v:h},98244:(e,t,r)=>{"use strict";var n=r(32770);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},84857:(e,t,r)=>{"use strict";var n=r(53634),o=r(55164),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===c||r!==u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},61488:(e,t,r)=>{"use strict";var n=r(55343),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},74350:e=>{"use strict";e.exports=function(e){return null==e}},55343:(e,t,r)=>{"use strict";var n=r(55164);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},96696:(e,t,r)=>{"use strict";var n=r(55343);e.exports=function(e){return n(e)||null===e}},12358:e=>{"use strict";e.exports=!1},98681:(e,t,r)=>{"use strict";var n=r(55343),o=r(27953),i=r(41642)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},55648:(e,t,r)=>{"use strict";var n=r(80148),o=r(55164),i=r(76466),a=r(52865),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},77641:(e,t,r)=>{"use strict";var n=r(88269),o=r(23736),i=r(25546),a=r(76390),s=r(80098),l=r(28765),u=r(76466),c=r(67998),f=r(60898),d=r(66020),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},v=h.prototype;e.exports=function(e,t,r){var g,m,y,b,w,O,x,S=r&&r.that,A=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_RECORD),j=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),I=n(t,S),T=function(e){return g&&d(g,"normal",e),new h(!0,e)},C=function(e){return A?(i(e),E?I(e[0],e[1],T):I(e[0],e[1])):E?I(e,T):I(e)};if(P)g=e.iterator;else if(j)g=e;else{if(!(m=f(e)))throw new p(a(e)+" is not iterable");if(s(m)){for(y=0,b=l(e);b>y;y++)if((w=C(e[y]))&&u(v,w))return w;return new h(!1)}g=c(e,m)}for(O=P?e.next:g.next;!(x=o(O,g)).done;){try{w=C(x.value)}catch(e){d(g,"throw",e)}if("object"==typeof w&&w&&u(v,w))return w}return new h(!1)}},66020:(e,t,r)=>{"use strict";var n=r(23736),o=r(25546),i=r(64897);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},71543:(e,t,r)=>{"use strict";var n=r(41314).IteratorPrototype,o=r(98905),i=r(70019),a=r(65418),s=r(91356),l=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),a(e,c,!1,!0),s[c]=l,e}},48993:(e,t,r)=>{"use strict";var n=r(63485),o=r(23736),i=r(12358),a=r(9071),s=r(55164),l=r(71543),u=r(21562),c=r(96814),f=r(65418),d=r(67592),p=r(34197),h=r(41642),v=r(91356),g=r(41314),m=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,O=h("iterator"),x="keys",S="values",A="entries",P=function(){return this};e.exports=function(e,t,r,a,h,g,j){l(r,t,a);var E,I,T,C=function(e){if(e===h&&D)return D;if(!w&&e&&e in R)return R[e];switch(e){case x:case S:case A:return function(){return new r(this,e)}}return function(){return new r(this)}},k=t+" Iterator",_=!1,R=e.prototype,N=R[O]||R["@@iterator"]||h&&R[h],D=!w&&N||C(h),M="Array"===t&&R.entries||N;if(M&&(E=u(M.call(new e)))!==Object.prototype&&E.next&&(i||u(E)===b||(c?c(E,b):s(E[O])||p(E,O,P)),f(E,k,!0,!0),i&&(v[k]=P)),m&&h===S&&N&&N.name!==S&&(!i&&y?d(R,"name",S):(_=!0,D=function(){return o(N,this)})),h)if(I={values:C(S),keys:g?D:C(x),entries:C(A)},j)for(T in I)(w||_||!(T in R))&&p(R,T,I[T]);else n({target:t,proto:!0,forced:w||_},I);return i&&!j||R[O]===D||p(R,O,D,{name:h}),v[t]=D,I}},41314:(e,t,r)=>{"use strict";var n,o,i,a=r(53634),s=r(55164),l=r(55343),u=r(98905),c=r(21562),f=r(34197),d=r(41642),p=r(12358),h=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(n=o):v=!0),!l(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[h])||f(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},91356:e=>{"use strict";e.exports={}},28765:(e,t,r)=>{"use strict";var n=r(31995);e.exports=function(e){return n(e.length)}},66514:(e,t,r)=>{"use strict";var n=r(37889),o=r(53634),i=r(55164),a=r(32770),s=r(54797),l=r(9071).CONFIGURABLE,u=r(79413),c=r(46814),f=c.enforce,d=c.get,p=String,h=Object.defineProperty,v=n("".slice),g=n("".replace),m=n([].join),y=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===v(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return a(n,"source")||(n.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||u(this)}),"toString")},57245:e=>{"use strict";var t=Math.expm1,r=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!==t(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:t},20055:(e,t,r)=>{"use strict";var n=r(25971),o=Math.abs,i=2220446049250313e-31,a=1/i;e.exports=function(e,t,r,s){var l=+e,u=o(l),c=n(l);if(u<s)return c*function(e){return e+a-a}(u/s/t)*s*t;var f=(1+t/i)*u,d=f-(f-u);return d>r||d!=d?c*(1/0):c*d}},8004:(e,t,r)=>{"use strict";var n=r(20055);e.exports=Math.fround||function(e){return n(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},76167:e=>{"use strict";var t=Math.log,r=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*r}},41063:e=>{"use strict";var t=Math.log;e.exports=Math.log1p||function(e){var r=+e;return r>-1e-8&&r<1e-8?r-r*r/2:t(1+r)}},25971:e=>{"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},26814:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},33790:(e,t,r)=>{"use strict";var n,o,i,a,s,l=r(2928),u=r(27412),c=r(88269),f=r(96130).set,d=r(23128),p=r(55546),h=r(97383),v=r(13654),g=r(29407),m=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,w=l.Promise,O=u("queueMicrotask");if(!O){var x=new d,S=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&n(),e}e&&e.enter()};p||g||v||!m||!y?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=c(a.then,a),n=function(){s(S)}):g?n=function(){b.nextTick(S)}:(f=c(f,l),n=function(){f(S)}):(o=!0,i=y.createTextNode(""),new m(S).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),O=function(e){x.head||n(),x.add(e)}}e.exports=O},2308:(e,t,r)=>{"use strict";var n=r(3873),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},73060:(e,t,r)=>{"use strict";var n=r(98681),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},65735:(e,t,r)=>{"use strict";var n=r(2928).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},27139:(e,t,r)=>{"use strict";var n=r(2928),o=r(53634),i=r(37889),a=r(30106),s=r(34611).trim,l=r(71161),u=i("".charAt),c=n.parseFloat,f=n.Symbol,d=f&&f.iterator,p=1/c(l+"-0")!=-1/0||d&&!o((function(){c(Object(d))}));e.exports=p?function(e){var t=s(a(e)),r=c(t);return 0===r&&"-"===u(t,0)?-0:r}:c},23428:(e,t,r)=>{"use strict";var n=r(2928),o=r(53634),i=r(37889),a=r(30106),s=r(34611).trim,l=r(71161),u=n.parseInt,c=n.Symbol,f=c&&c.iterator,d=/^[+-]?0x/i,p=i(d.exec),h=8!==u(l+"08")||22!==u(l+"0x16")||f&&!o((function(){u(Object(f))}));e.exports=h?function(e,t){var r=s(a(e));return u(r,t>>>0||(p(d,r)?16:10))}:u},28192:(e,t,r)=>{"use strict";var n=r(54797),o=r(37889),i=r(23736),a=r(53634),s=r(81185),l=r(7260),u=r(60128),c=r(19452),f=r(24384),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||a((function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!==d({},e)[r]||s(d({},t)).join("")!==o}))?function(e,t){for(var r=c(e),o=arguments.length,a=1,d=l.f,p=u.f;o>a;)for(var v,g=f(arguments[a++]),m=d?h(s(g),d(g)):s(g),y=m.length,b=0;y>b;)v=m[b++],n&&!i(p,g,v)||(r[v]=g[v]);return r}:d},98905:(e,t,r)=>{"use strict";var n,o=r(25546),i=r(72046),a=r(23690),s=r(77076),l=r(33490),u=r(49750),c=r(20056),f="prototype",d="script",p=c("IE_PROTO"),h=function(){},v=function(e){return"<"+d+">"+e+"</"+d+">"},g=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;m="undefined"!=typeof document?document.domain&&n?g(n):(t=u("iframe"),r="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):g(n);for(var o=a.length;o--;)delete m[f][a[o]];return m()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[f]=o(e),r=new h,h[f]=null,r[p]=e):r=m(),void 0===t?r:i.f(r,t)}},72046:(e,t,r)=>{"use strict";var n=r(54797),o=r(71363),i=r(50754),a=r(25546),s=r(61212),l=r(81185);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,r=o[c++],n[r]);return e}},50754:(e,t,r)=>{"use strict";var n=r(54797),o=r(96182),i=r(71363),a=r(25546),s=r(90008),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=c(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3880:(e,t,r)=>{"use strict";var n=r(54797),o=r(23736),i=r(60128),a=r(70019),s=r(61212),l=r(90008),u=r(32770),c=r(96182),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=l(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},26469:(e,t,r)=>{"use strict";var n=r(27953),o=r(61212),i=r(50125).f,a=r(75905),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},50125:(e,t,r)=>{"use strict";var n=r(93763),o=r(23690).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},7260:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},21562:(e,t,r)=>{"use strict";var n=r(32770),o=r(55164),i=r(19452),a=r(20056),s=r(24552),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},55687:(e,t,r)=>{"use strict";var n=r(53634),o=r(55343),i=r(27953),a=r(40461),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},76466:(e,t,r)=>{"use strict";var n=r(37889);e.exports=n({}.isPrototypeOf)},93763:(e,t,r)=>{"use strict";var n=r(37889),o=r(32770),i=r(61212),a=r(25282).indexOf,s=r(77076),l=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,c=[];for(r in n)!o(s,r)&&o(n,r)&&l(c,r);for(;t.length>u;)o(n,r=t[u++])&&(~a(c,r)||l(c,r));return c}},81185:(e,t,r)=>{"use strict";var n=r(93763),o=r(23690);e.exports=Object.keys||function(e){return n(e,o)}},60128:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},94422:(e,t,r)=>{"use strict";var n=r(12358),o=r(2928),i=r(53634),a=r(37973);e.exports=n||!i((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}}))},96814:(e,t,r)=>{"use strict";var n=r(87809),o=r(25546),i=r(20857);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},32636:(e,t,r)=>{"use strict";var n=r(54797),o=r(53634),i=r(37889),a=r(21562),s=r(81185),l=r(61212),u=i(r(60128).f),c=i([].push),f=n&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),d=function(e){return function(t){for(var r,o=l(t),i=s(o),d=f&&null===a(o),p=i.length,h=0,v=[];p>h;)r=i[h++],n&&!(d?r in o:u(o,r))||c(v,e?[r,o[r]]:o[r]);return v}};e.exports={entries:d(!0),values:d(!1)}},5652:(e,t,r)=>{"use strict";var n=r(63361),o=r(23502);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},38367:(e,t,r)=>{"use strict";var n=r(23736),o=r(55164),i=r(55343),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},36608:(e,t,r)=>{"use strict";var n=r(80148),o=r(37889),i=r(50125),a=r(7260),s=r(25546),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},97520:(e,t,r)=>{"use strict";var n=r(2928);e.exports=n},59930:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},28021:(e,t,r)=>{"use strict";var n=r(2928),o=r(72405),i=r(55164),a=r(84857),s=r(79413),l=r(41642),u=r(76323),c=r(59947),f=r(12358),d=r(32389),p=o&&o.prototype,h=l("species"),v=!1,g=i(n.PromiseRejectionEvent),m=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(v=r.then((function(){}))instanceof n))return!0}return!t&&(u||c)&&!g}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:v}},72405:(e,t,r)=>{"use strict";var n=r(2928);e.exports=n.Promise},40899:(e,t,r)=>{"use strict";var n=r(25546),o=r(55343),i=r(2308);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},39476:(e,t,r)=>{"use strict";var n=r(72405),o=r(58211),i=r(28021).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},94951:(e,t,r)=>{"use strict";var n=r(50754).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},23128:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},14801:(e,t,r)=>{"use strict";var n=r(23736),o=r(25546),i=r(55164),a=r(27953),s=r(2542),l=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return n(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},2542:(e,t,r)=>{"use strict";var n,o,i=r(23736),a=r(37889),s=r(30106),l=r(2020),u=r(29720),c=r(61930),f=r(98905),d=r(46814).get,p=r(20180),h=r(30529),v=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,y=a("".charAt),b=a("".indexOf),w=a("".replace),O=a("".slice),x=(o=/b*/g,i(g,n=/a/,"a"),i(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),S=u.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(x||A||S||p||h)&&(m=function(e){var t,r,n,o,a,u,c,p=this,h=d(p),P=s(e),j=h.raw;if(j)return j.lastIndex=p.lastIndex,t=i(m,j,P),p.lastIndex=j.lastIndex,t;var E=h.groups,I=S&&p.sticky,T=i(l,p),C=p.source,k=0,_=P;if(I&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),_=O(P,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(P,p.lastIndex-1))&&(C="(?: "+C+")",_=" "+_,k++),r=new RegExp("^(?:"+C+")",T)),A&&(r=new RegExp("^"+C+"$(?!\\s)",T)),x&&(n=p.lastIndex),o=i(g,I?r:p,_),I?o?(o.input=O(o.input,k),o[0]=O(o[0],k),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:x&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),A&&o&&o.length>1&&i(v,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&E)for(o.groups=u=f(null),a=0;a<E.length;a++)u[(c=E[a])[0]]=o[c[1]];return o}),e.exports=m},2020:(e,t,r)=>{"use strict";var n=r(25546);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},45081:(e,t,r)=>{"use strict";var n=r(23736),o=r(32770),i=r(76466),a=r(2020),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},29720:(e,t,r)=>{"use strict";var n=r(53634),o=r(2928).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},20180:(e,t,r)=>{"use strict";var n=r(53634),o=r(2928).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},30529:(e,t,r)=>{"use strict";var n=r(53634),o=r(2928).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},31365:(e,t,r)=>{"use strict";var n=r(74350),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},27412:(e,t,r)=>{"use strict";var n=r(2928),o=r(54797),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},98093:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},96291:(e,t,r)=>{"use strict";var n,o=r(2928),i=r(30678),a=r(55164),s=r(14002),l=r(37485),u=r(75905),c=r(20597),f=o.Function,d=/MSIE .\./.test(l)||s&&((n=o.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return d?function(n,o){var s=c(arguments.length,1)>r,l=a(n)?n:f(n),d=s?u(arguments,r):[],p=s?function(){i(l,this,d)}:l;return t?e(p,o):e(p)}:e}},86956:(e,t,r)=>{"use strict";var n=r(80148),o=r(47557),i=r(41642),a=r(54797),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},65418:(e,t,r)=>{"use strict";var n=r(50754).f,o=r(32770),i=r(41642)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},20056:(e,t,r)=>{"use strict";var n=r(61930),o=r(96177),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},23094:(e,t,r)=>{"use strict";var n=r(12358),o=r(2928),i=r(39998),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.36.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},61930:(e,t,r)=>{"use strict";var n=r(23094);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},63900:(e,t,r)=>{"use strict";var n=r(25546),o=r(66961),i=r(74350),a=r(41642)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},77638:(e,t,r)=>{"use strict";var n=r(53634);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},83908:(e,t,r)=>{"use strict";var n=r(37889),o=r(93784),i=r(30106),a=r(31365),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,f=i(a(t)),d=o(r),p=f.length;return d<0||d>=p?e?"":void 0:(n=l(f,d))<55296||n>56319||d+1===p||(c=l(f,d+1))<56320||c>57343?e?s(f,d):n:e?u(f,d,d+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},46366:(e,t,r)=>{"use strict";var n=r(37485);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},87062:(e,t,r)=>{"use strict";var n=r(37889),o=r(31995),i=r(30106),a=r(73348),s=r(31365),l=n(a),u=n("".slice),c=Math.ceil,f=function(e){return function(t,r,n){var a,f,d=i(s(t)),p=o(r),h=d.length,v=void 0===n?" ":i(n);return p<=h||""===v?d:((f=l(v,c((a=p-h)/v.length))).length>a&&(f=u(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},60518:(e,t,r)=>{"use strict";var n=r(37889),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=n(a.exec),c=Math.floor,f=String.fromCharCode,d=n("".charCodeAt),p=n([].join),h=n([].push),v=n("".replace),g=n("".split),m=n("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),n+=36;return c(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=d(e,r++);if(o>=55296&&o<=56319&&r<n){var i=d(e,r++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),r--)}else h(t,o)}return t}(e);var r,n,i=e.length,a=128,u=0,v=72;for(r=0;r<e.length;r++)(n=e[r])<128&&h(t,f(n));var g=t.length,m=g;for(g&&h(t,"-");m<i;){var w=o;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<w&&(w=n);var O=m+1;if(w-a>c((o-u)/O))throw new l(s);for(u+=(w-a)*O,a=w,r=0;r<e.length;r++){if((n=e[r])<a&&++u>o)throw new l(s);if(n===a){for(var x=u,S=36;;){var A=S<=v?1:S>=v+26?26:S-v;if(x<A)break;var P=x-A,j=36-A;h(t,f(y(A+P%j))),x=c(P/j),S+=36}h(t,f(y(x))),v=b(u,O,m===g),u=0,m++}}u++,a++}return p(t,"")};e.exports=function(e){var t,r,n=[],o=g(v(m(e),a,"."),".");for(t=0;t<o.length;t++)r=o[t],h(n,u(i,r)?"xn--"+w(r):r);return p(n,".")}},73348:(e,t,r)=>{"use strict";var n=r(93784),o=r(30106),i=r(31365),a=RangeError;e.exports=function(e){var t=o(i(this)),r="",s=n(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},207:(e,t,r)=>{"use strict";var n=r(34611).end,o=r(93289);e.exports=o("trimEnd")?function(){return n(this)}:"".trimEnd},93289:(e,t,r)=>{"use strict";var n=r(9071).PROPER,o=r(53634),i=r(71161);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||n&&i[e].name!==e}))}},68402:(e,t,r)=>{"use strict";var n=r(34611).start,o=r(93289);e.exports=o("trimStart")?function(){return n(this)}:"".trimStart},34611:(e,t,r)=>{"use strict";var n=r(37889),o=r(31365),i=r(30106),a=r(71161),s=n("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,u,"$1")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},96576:(e,t,r)=>{"use strict";var n=r(32389),o=r(53634),i=r(2928).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},50677:(e,t,r)=>{"use strict";var n=r(23736),o=r(80148),i=r(41642),a=r(34197);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},75697:(e,t,r)=>{"use strict";var n=r(96576);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},96130:(e,t,r)=>{"use strict";var n,o,i,a,s=r(2928),l=r(30678),u=r(88269),c=r(55164),f=r(32770),d=r(53634),p=r(33490),h=r(75905),v=r(49750),g=r(20597),m=r(55546),y=r(29407),b=s.setImmediate,w=s.clearImmediate,O=s.process,x=s.Dispatch,S=s.Function,A=s.MessageChannel,P=s.String,j=0,E={},I="onreadystatechange";d((function(){n=s.location}));var T=function(e){if(f(E,e)){var t=E[e];delete E[e],t()}},C=function(e){return function(){T(e)}},k=function(e){T(e.data)},_=function(e){s.postMessage(P(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){g(arguments.length,1);var t=c(e)?e:S(e),r=h(arguments,1);return E[++j]=function(){l(t,void 0,r)},o(j),j},w=function(e){delete E[e]},y?o=function(e){O.nextTick(C(e))}:x&&x.now?o=function(e){x.now(C(e))}:A&&!m?(a=(i=new A).port2,i.port1.onmessage=k,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!d(_)?(o=_,s.addEventListener("message",k,!1)):o=I in v("script")?function(e){p.appendChild(v("script"))[I]=function(){p.removeChild(this),T(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:b,clear:w}},3817:(e,t,r)=>{"use strict";var n=r(37889);e.exports=n(1..valueOf)},29603:(e,t,r)=>{"use strict";var n=r(93784),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},10277:(e,t,r)=>{"use strict";var n=r(57762),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},26467:(e,t,r)=>{"use strict";var n=r(93784),o=r(31995),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw new i("Wrong length or index");return r}},61212:(e,t,r)=>{"use strict";var n=r(24384),o=r(31365);e.exports=function(e){return n(o(e))}},93784:(e,t,r)=>{"use strict";var n=r(26814);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},31995:(e,t,r)=>{"use strict";var n=r(93784),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},19452:(e,t,r)=>{"use strict";var n=r(31365),o=Object;e.exports=function(e){return o(n(e))}},81856:(e,t,r)=>{"use strict";var n=r(33595),o=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw new o("Wrong offset");return r}},33595:(e,t,r)=>{"use strict";var n=r(93784),o=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw new o("The argument can't be less than 0");return t}},57762:(e,t,r)=>{"use strict";var n=r(23736),o=r(55343),i=r(55648),a=r(64897),s=r(38367),l=r(41642),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,c);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},90008:(e,t,r)=>{"use strict";var n=r(57762),o=r(55648);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},63361:(e,t,r)=>{"use strict";var n={};n[r(41642)("toStringTag")]="z",e.exports="[object z]"===String(n)},30106:(e,t,r)=>{"use strict";var n=r(23502),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},50588:e=>{"use strict";var t=Math.round;e.exports=function(e){var r=t(e);return r<0?0:r>255?255:255&r}},76390:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},46666:(e,t,r)=>{"use strict";var n=r(63485),o=r(2928),i=r(23736),a=r(54797),s=r(65404),l=r(53223),u=r(57561),c=r(19662),f=r(70019),d=r(67592),p=r(61488),h=r(31995),v=r(26467),g=r(81856),m=r(50588),y=r(90008),b=r(32770),w=r(23502),O=r(55343),x=r(55648),S=r(98905),A=r(76466),P=r(96814),j=r(50125).f,E=r(8396),I=r(95016).forEach,T=r(86956),C=r(47557),k=r(50754),_=r(3880),R=r(71719),N=r(46814),D=r(9526),M=N.get,L=N.set,z=N.enforce,W=k.f,B=_.f,F=o.RangeError,H=u.ArrayBuffer,U=H.prototype,V=u.DataView,G=l.NATIVE_ARRAY_BUFFER_VIEWS,q=l.TYPED_ARRAY_TAG,K=l.TypedArray,$=l.TypedArrayPrototype,Z=l.isTypedArray,X="BYTES_PER_ELEMENT",Y="Wrong length",Q=function(e,t){C(e,t,{configurable:!0,get:function(){return M(this)[t]}})},J=function(e){var t;return A(U,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},ee=function(e,t){return Z(e)&&!x(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?f(2,e[t]):B(e,t)},re=function(e,t,r){return t=y(t),!(ee(e,t)&&O(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?W(e,t,r):(e[t]=r.value,e)};a?(G||(_.f=te,k.f=re,Q($,"buffer"),Q($,"byteOffset"),Q($,"byteLength"),Q($,"length")),n({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var a=e.match(/\d+/)[0]/8,l=e+(r?"Clamped":"")+"Array",u="get"+e,f="set"+e,p=o[l],y=p,b=y&&y.prototype,w={},x=function(e,t){W(e,t,{get:function(){return function(e,t){var r=M(e);return r.view[u](t*a+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var o=M(e);o.view[f](t*a+o.byteOffset,r?m(n):n,!0)}(this,t,e)},enumerable:!0})};G?s&&(y=t((function(e,t,r,n){return c(e,b),D(O(t)?J(t)?void 0!==n?new p(t,g(r,a),n):void 0!==r?new p(t,g(r,a)):new p(t):Z(t)?R(y,t):i(E,y,t):new p(v(t)),e,y)})),P&&P(y,K),I(j(p),(function(e){e in y||d(y,e,p[e])})),y.prototype=b):(y=t((function(e,t,r,n){c(e,b);var o,s,l,u=0,f=0;if(O(t)){if(!J(t))return Z(t)?R(y,t):i(E,y,t);o=t,f=g(r,a);var d=t.byteLength;if(void 0===n){if(d%a)throw new F(Y);if((s=d-f)<0)throw new F(Y)}else if((s=h(n)*a)+f>d)throw new F(Y);l=s/a}else l=v(t),o=new H(s=l*a);for(L(e,{buffer:o,byteOffset:f,byteLength:s,length:l,view:new V(o)});u<l;)x(e,u++)})),P&&P(y,K),b=y.prototype=S($)),b.constructor!==y&&d(b,"constructor",y),z(b).TypedArrayConstructor=y,q&&d(b,q,l);var A=y!==p;w[l]=y,n({global:!0,constructor:!0,forced:A,sham:!G},w),X in y||d(y,X,a),X in b||d(b,X,a),T(l)}):e.exports=function(){}},65404:(e,t,r)=>{"use strict";var n=r(2928),o=r(53634),i=r(58211),a=r(53223).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;e.exports=!a||!o((function(){l(1)}))||!o((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||o((function(){return 1!==new l(new s(2),1,void 0).length}))},75608:(e,t,r)=>{"use strict";var n=r(71719),o=r(14457);e.exports=function(e,t){return n(o(e),t)}},8396:(e,t,r)=>{"use strict";var n=r(88269),o=r(23736),i=r(66961),a=r(19452),s=r(28765),l=r(67998),u=r(60898),c=r(80098),f=r(13864),d=r(53223).aTypedArrayConstructor,p=r(10277);e.exports=function(e){var t,r,h,v,g,m,y,b,w=i(this),O=a(e),x=arguments.length,S=x>1?arguments[1]:void 0,A=void 0!==S,P=u(O);if(P&&!c(P))for(b=(y=l(O,P)).next,O=[];!(m=o(b,y)).done;)O.push(m.value);for(A&&x>2&&(S=n(S,arguments[2])),r=s(O),h=new(d(w))(r),v=f(h),t=0;r>t;t++)g=A?S(O[t],t):O[t],h[t]=v?p(g):+g;return h}},14457:(e,t,r)=>{"use strict";var n=r(53223),o=r(63900),i=n.aTypedArrayConstructor,a=n.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},96177:(e,t,r)=>{"use strict";var n=r(37889),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},69501:(e,t,r)=>{"use strict";var n=r(53634),o=r(41642),i=r(54797),a=r(12358),s=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(a||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},52865:(e,t,r)=>{"use strict";var n=r(96576);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},71363:(e,t,r)=>{"use strict";var n=r(54797),o=r(53634);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},20597:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},26185:(e,t,r)=>{"use strict";var n=r(2928),o=r(55164),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},62860:(e,t,r)=>{"use strict";var n=r(97520),o=r(32770),i=r(78490),a=r(50754).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},78490:(e,t,r)=>{"use strict";var n=r(41642);t.f=n},41642:(e,t,r)=>{"use strict";var n=r(2928),o=r(61930),i=r(32770),a=r(96177),s=r(96576),l=r(52865),u=n.Symbol,c=o("wks"),f=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(u,e)?u[e]:f("Symbol."+e)),c[e]}},71161:e=>{"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},11790:(e,t,r)=>{"use strict";var n=r(63485),o=r(2928),i=r(57561),a=r(86956),s="ArrayBuffer",l=i[s];n({global:!0,constructor:!0,forced:o[s]!==l},{ArrayBuffer:l}),a(s)},43376:(e,t,r)=>{"use strict";var n=r(63485),o=r(53223);n({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},14260:(e,t,r)=>{"use strict";var n=r(63485),o=r(11515),i=r(53634),a=r(57561),s=r(25546),l=r(29603),u=r(31995),c=r(63900),f=a.ArrayBuffer,d=a.DataView,p=d.prototype,h=o(f.prototype.slice),v=o(p.getUint8),g=o(p.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(s(this),e);for(var r=s(this).byteLength,n=l(e,r),o=l(void 0===t?r:t,r),i=new(c(this,f))(u(o-n)),a=new d(this),p=new d(i),m=0;n<o;)g(p,m++,v(a,n++));return i}})},85035:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(84783),a=r(55343),s=r(19452),l=r(28765),u=r(87330),c=r(73249),f=r(11198),d=r(90074),p=r(41642),h=r(32389),v=p("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),m=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),d=f(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(m(i=-1===t?a:arguments[t]))for(o=l(i),u(p+o),r=0;r<o;r++,p++)r in i&&c(d,p,i[r]);else u(p+1),c(d,p++,i);return d.length=p,d}})},36664:(e,t,r)=>{"use strict";var n=r(63485),o=r(19968),i=r(91954);n({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},98220:(e,t,r)=>{"use strict";var n=r(63485),o=r(95016).every;n({target:"Array",proto:!0,forced:!r(58421)("every")},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},15486:(e,t,r)=>{"use strict";var n=r(63485),o=r(46934),i=r(91954);n({target:"Array",proto:!0},{fill:o}),i("fill")},265:(e,t,r)=>{"use strict";var n=r(63485),o=r(95016).filter;n({target:"Array",proto:!0,forced:!r(90074)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},79125:(e,t,r)=>{"use strict";var n=r(63485),o=r(95016).findIndex,i=r(91954),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},5668:(e,t,r)=>{"use strict";var n=r(63485),o=r(95016).find,i=r(91954),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},1395:(e,t,r)=>{"use strict";var n=r(63485),o=r(74960),i=r(3873),a=r(19452),s=r(28765),l=r(11198);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=a(this),n=s(r);return i(e),(t=l(r,0)).length=o(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},30768:(e,t,r)=>{"use strict";var n=r(63485),o=r(74960),i=r(19452),a=r(28765),s=r(93784),l=r(11198);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),r=a(t),n=l(t,0);return n.length=o(n,t,t,r,0,void 0===e?1:s(e)),n}})},38356:(e,t,r)=>{"use strict";var n=r(63485),o=r(61964);n({target:"Array",proto:!0,forced:[].forEach!==o},{forEach:o})},38707:(e,t,r)=>{"use strict";var n=r(63485),o=r(98299);n({target:"Array",stat:!0,forced:!r(58211)((function(e){Array.from(e)}))},{from:o})},69674:(e,t,r)=>{"use strict";var n=r(63485),o=r(25282).includes,i=r(53634),a=r(91954);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},7701:(e,t,r)=>{"use strict";var n=r(63485),o=r(11515),i=r(25282).indexOf,a=r(58421),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},23271:(e,t,r)=>{"use strict";r(63485)({target:"Array",stat:!0},{isArray:r(84783)})},88641:(e,t,r)=>{"use strict";var n=r(61212),o=r(91954),i=r(91356),a=r(46814),s=r(50754).f,l=r(48993),u=r(96944),c=r(12358),f=r(54797),d="Array Iterator",p=a.set,h=a.getterFor(d);e.exports=l(Array,"Array",(function(e,t){p(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},21299:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(24384),a=r(61212),s=r(58421),l=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},35214:(e,t,r)=>{"use strict";var n=r(63485),o=r(43062);n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},23541:(e,t,r)=>{"use strict";var n=r(63485),o=r(95016).map;n({target:"Array",proto:!0,forced:!r(90074)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},44414:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(22930),a=r(73249),s=Array;n({target:"Array",stat:!0,forced:o((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,r=new(i(this)?this:s)(t);t>e;)a(r,e,arguments[e++]);return r.length=t,r}})},65566:(e,t,r)=>{"use strict";var n=r(63485),o=r(90069).right,i=r(58421),a=r(32389);n({target:"Array",proto:!0,forced:!r(29407)&&a>79&&a<83||!i("reduceRight")},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},3053:(e,t,r)=>{"use strict";var n=r(63485),o=r(90069).left,i=r(58421),a=r(32389);n({target:"Array",proto:!0,forced:!r(29407)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},95749:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(84783),a=o([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},18121:(e,t,r)=>{"use strict";var n=r(63485),o=r(84783),i=r(22930),a=r(55343),s=r(29603),l=r(28765),u=r(61212),c=r(73249),f=r(41642),d=r(90074),p=r(75905),h=d("slice"),v=f("species"),g=Array,m=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,f,d=u(this),h=l(d),y=s(e,h),b=s(void 0===t?h:t,h);if(o(d)&&(r=d.constructor,(i(r)&&(r===g||o(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===g||void 0===r))return p(d,y,b);for(n=new(void 0===r?g:r)(m(b-y,0)),f=0;y<b;y++,f++)y in d&&c(n,f,d[y]);return n.length=f,n}})},11547:(e,t,r)=>{"use strict";var n=r(63485),o=r(95016).some;n({target:"Array",proto:!0,forced:!r(58421)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},55719:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(3873),a=r(19452),s=r(28765),l=r(26025),u=r(30106),c=r(53634),f=r(51967),d=r(58421),p=r(65959),h=r(70861),v=r(32389),g=r(37973),m=[],y=o(m.sort),b=o(m.push),w=c((function(){m.sort(void 0)})),O=c((function(){m.sort(null)})),x=d("sort"),S=!c((function(){if(v)return v<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)m.push({k:t+n,v:r})}for(m.sort((function(e,t){return t.v-e.v})),n=0;n<m.length;n++)t=m[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!O||!x||!S},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(S)return void 0===e?y(t):y(t,e);var r,n,o=[],c=s(t);for(n=0;n<c;n++)n in t&&b(o,t[n]);for(f(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:u(t)>u(r)?1:-1}}(e)),r=s(o),n=0;n<r;)t[n]=o[n++];for(;n<c;)l(t,n++);return t}})},53229:(e,t,r)=>{"use strict";r(86956)("Array")},38771:(e,t,r)=>{"use strict";var n=r(63485),o=r(19452),i=r(29603),a=r(93784),s=r(28765),l=r(83648),u=r(87330),c=r(11198),f=r(73249),d=r(26025),p=r(90074)("splice"),h=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,g,m,y,b=o(this),w=s(b),O=i(e,w),x=arguments.length;for(0===x?r=n=0:1===x?(r=0,n=w-O):(r=x-2,n=v(h(a(t),0),w-O)),u(w+r-n),p=c(b,n),g=0;g<n;g++)(m=O+g)in b&&f(p,g,b[m]);if(p.length=n,r<n){for(g=O;g<w-n;g++)y=g+r,(m=g+n)in b?b[y]=b[m]:d(b,y);for(g=w;g>w-n+r;g--)d(b,g-1)}else if(r>n)for(g=w-n;g>O;g--)y=g+r-1,(m=g+n-1)in b?b[y]=b[m]:d(b,y);for(g=0;g<r;g++)b[g+O]=arguments[g+2];return l(b,w-n+r),p}})},55792:(e,t,r)=>{"use strict";r(91954)("flatMap")},11339:(e,t,r)=>{"use strict";r(91954)("flat")},30648:(e,t,r)=>{"use strict";var n=r(63485),o=r(57561);n({global:!0,constructor:!0,forced:!r(7164)},{DataView:o.DataView})},51214:(e,t,r)=>{"use strict";r(30648)},34688:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=Date,a=o(i.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return a(new i)}})},11729:(e,t,r)=>{"use strict";var n=r(63485),o=r(85059);n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},52974:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(19452),a=r(57762);n({target:"Date",proto:!0,arity:1,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),r=a(t,"number");return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},67907:(e,t,r)=>{"use strict";var n=r(32770),o=r(34197),i=r(67305),a=r(41642)("toPrimitive"),s=Date.prototype;n(s,a)||o(s,a,i)},89957:(e,t,r)=>{"use strict";var n=r(37889),o=r(34197),i=Date.prototype,a="Invalid Date",s="toString",l=n(i[s]),u=n(i.getTime);String(new Date(NaN))!==a&&o(i,s,(function(){var e=u(this);return e==e?l(this):a}))},54933:(e,t,r)=>{"use strict";var n=r(63485),o=r(43347);n({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},66962:(e,t,r)=>{"use strict";var n=r(55164),o=r(55343),i=r(50754),a=r(76466),s=r(41642),l=r(66514),u=s("hasInstance"),c=Function.prototype;u in c||i.f(c,u,{value:l((function(e){if(!n(this)||!o(e))return!1;var t=this.prototype;return o(t)?a(t,e):e instanceof this}),u)})},57837:(e,t,r)=>{"use strict";var n=r(54797),o=r(9071).EXISTS,i=r(37889),a=r(47557),s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},85607:(e,t,r)=>{"use strict";var n=r(63485),o=r(80148),i=r(30678),a=r(23736),s=r(37889),l=r(53634),u=r(55164),c=r(55648),f=r(75905),d=r(77534),p=r(96576),h=String,v=o("JSON","stringify"),g=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),O=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,A=!p||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==v([e])||"{}"!==v({a:e})||"{}"!==v(Object(e))})),P=l((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),j=function(e,t){var r=f(arguments),n=d(t);if(u(n)||void 0!==e&&!c(e))return r[1]=function(e,t){if(u(n)&&(t=a(n,this,h(e),t)),!c(t))return t},i(v,null,r)},E=function(e,t,r){var n=m(r,t-1),o=m(r,t+1);return g(x,e)&&!g(S,o)||g(S,e)&&!g(x,n)?"\\u"+w(y(e,0),16):e};v&&n({target:"JSON",stat:!0,arity:3,forced:A||P},{stringify:function(e,t,r){var n=f(arguments),o=i(A?j:v,null,n);return P&&"string"==typeof o?b(o,O,E):o}})},4778:(e,t,r)=>{"use strict";var n=r(2928);r(65418)(n.JSON,"JSON",!0)},86e3:(e,t,r)=>{"use strict";r(51759)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(29263))},15590:(e,t,r)=>{"use strict";r(86e3)},52228:(e,t,r)=>{"use strict";var n=r(63485),o=r(41063),i=Math.acosh,a=Math.log,s=Math.sqrt,l=Math.LN2;n({target:"Math",stat:!0,forced:!i||710!==Math.floor(i(Number.MAX_VALUE))||i(1/0)!==1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?a(t)+l:o(t-1+s(t-1)*s(t+1))}})},18727:(e,t,r)=>{"use strict";var n=r(63485),o=Math.asinh,i=Math.log,a=Math.sqrt;n({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function e(t){var r=+t;return isFinite(r)&&0!==r?r<0?-e(-r):i(r+a(r*r+1)):r}})},74060:(e,t,r)=>{"use strict";var n=r(63485),o=Math.atanh,i=Math.log;n({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){var t=+e;return 0===t?t:i((1+t)/(1-t))/2}})},5299:(e,t,r)=>{"use strict";var n=r(63485),o=r(25971),i=Math.abs,a=Math.pow;n({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return o(t)*a(i(t),1/3)}})},41244:(e,t,r)=>{"use strict";var n=r(63485),o=Math.floor,i=Math.log,a=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-o(i(t+.5)*a):32}})},97085:(e,t,r)=>{"use strict";var n=r(63485),o=r(57245),i=Math.cosh,a=Math.abs,s=Math.E;n({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=o(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},82767:(e,t,r)=>{"use strict";var n=r(63485),o=r(57245);n({target:"Math",stat:!0,forced:o!==Math.expm1},{expm1:o})},61418:(e,t,r)=>{"use strict";r(63485)({target:"Math",stat:!0},{fround:r(8004)})},9812:(e,t,r)=>{"use strict";var n=r(63485),o=Math.hypot,i=Math.abs,a=Math.sqrt;n({target:"Math",stat:!0,arity:2,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var r,n,o=0,s=0,l=arguments.length,u=0;s<l;)u<(r=i(arguments[s++]))?(o=o*(n=u/r)*n+1,u=r):o+=r>0?(n=r/u)*n:r;return u===1/0?1/0:u*a(o)}})},81891:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=Math.imul;n({target:"Math",stat:!0,forced:o((function(){return-5!==i(4294967295,5)||2!==i.length}))},{imul:function(e,t){var r=65535,n=+e,o=+t,i=r&n,a=r&o;return 0|i*a+((r&n>>>16)*a+i*(r&o>>>16)<<16>>>0)}})},69057:(e,t,r)=>{"use strict";r(63485)({target:"Math",stat:!0},{log10:r(76167)})},10657:(e,t,r)=>{"use strict";r(63485)({target:"Math",stat:!0},{log1p:r(41063)})},40676:(e,t,r)=>{"use strict";var n=r(63485),o=Math.log,i=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},46725:(e,t,r)=>{"use strict";r(63485)({target:"Math",stat:!0},{sign:r(25971)})},6002:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(57245),a=Math.abs,s=Math.exp,l=Math.E;n({target:"Math",stat:!0,forced:o((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return a(t)<1?(i(t)-i(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},27721:(e,t,r)=>{"use strict";var n=r(63485),o=r(57245),i=Math.exp;n({target:"Math",stat:!0},{tanh:function(e){var t=+e,r=o(t),n=o(-t);return r===1/0?1:n===1/0?-1:(r-n)/(i(t)+i(-t))}})},59598:(e,t,r)=>{"use strict";r(65418)(Math,"Math",!0)},1948:(e,t,r)=>{"use strict";r(63485)({target:"Math",stat:!0},{trunc:r(26814)})},26673:(e,t,r)=>{"use strict";var n=r(63485),o=r(12358),i=r(54797),a=r(2928),s=r(97520),l=r(37889),u=r(84857),c=r(32770),f=r(9526),d=r(76466),p=r(55648),h=r(57762),v=r(53634),g=r(50125).f,m=r(3880).f,y=r(50754).f,b=r(3817),w=r(34611).trim,O="Number",x=a[O],S=s[O],A=x.prototype,P=a.TypeError,j=l("".slice),E=l("".charCodeAt),I=function(e){var t,r,n,o,i,a,s,l,u=h(e,"number");if(p(u))throw new P("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=E(u,0))||45===t){if(88===(r=E(u,2))||120===r)return NaN}else if(48===t){switch(E(u,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=j(u,2)).length,s=0;s<a;s++)if((l=E(i,s))<48||l>o)return NaN;return parseInt(i,n)}return+u},T=u(O,!x(" 0o1")||!x("0b1")||x("+0x1")),C=function(e){var t,r=arguments.length<1?0:x(function(e){var t=h(e,"number");return"bigint"==typeof t?t:I(t)}(e));return d(A,t=this)&&v((function(){b(t)}))?f(Object(r),this,C):r};C.prototype=A,T&&!o&&(A.constructor=C),n({global:!0,constructor:!0,wrap:!0,forced:T},{Number:C});var k=function(e,t){for(var r,n=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)c(t,r=n[o])&&!c(e,r)&&y(e,r,m(t,r))};o&&S&&k(s[O],S),(T||o)&&k(s[O],x)},32055:(e,t,r)=>{"use strict";r(63485)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},81977:(e,t,r)=>{"use strict";r(63485)({target:"Number",stat:!0},{isFinite:r(65735)})},51614:(e,t,r)=>{"use strict";r(63485)({target:"Number",stat:!0},{isInteger:r(61488)})},58093:(e,t,r)=>{"use strict";r(63485)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},80340:(e,t,r)=>{"use strict";var n=r(63485),o=r(61488),i=Math.abs;n({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},48270:(e,t,r)=>{"use strict";r(63485)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},59604:(e,t,r)=>{"use strict";r(63485)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},37257:(e,t,r)=>{"use strict";var n=r(63485),o=r(27139);n({target:"Number",stat:!0,forced:Number.parseFloat!==o},{parseFloat:o})},70358:(e,t,r)=>{"use strict";var n=r(63485),o=r(23428);n({target:"Number",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},50827:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(93784),a=r(3817),s=r(73348),l=r(53634),u=RangeError,c=String,f=Math.floor,d=o(s),p=o("".slice),h=o(1..toFixed),v=function e(t,r,n){return 0===r?n:r%2==1?e(t,r-1,n*t):e(t*t,r/2,n)},g=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=f(o/1e7)},m=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=f(n/t),n=n%t*1e7},y=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=c(e[t]);r=""===r?n:r+d("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:l((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!l((function(){h({})}))},{toFixed:function(e){var t,r,n,o,s=a(this),l=i(e),f=[0,0,0,0,0,0],h="",b="0";if(l<0||l>20)throw new u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(h="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*v(2,69,1))-69)<0?s*v(2,-t,1):s/v(2,t,1),r*=4503599627370496,(t=52-t)>0){for(g(f,0,r),n=l;n>=7;)g(f,1e7,0),n-=7;for(g(f,v(10,n,1),0),n=t-1;n>=23;)m(f,1<<23),n-=23;m(f,1<<n),g(f,1,1),m(f,2),b=y(f)}else g(f,0,r),g(f,1<<-t,0),b=y(f)+d("0",l);return b=l>0?h+((o=b.length)<=l?"0."+d("0",l-o)+b:p(b,0,o-l)+"."+p(b,o-l)):h+b}})},47001:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(53634),a=r(3817),s=o(1..toPrecision);n({target:"Number",proto:!0,forced:i((function(){return"1"!==s(1,void 0)}))||!i((function(){s({})}))},{toPrecision:function(e){return void 0===e?s(a(this)):s(a(this),e)}})},96186:(e,t,r)=>{"use strict";var n=r(63485),o=r(28192);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},28147:(e,t,r)=>{"use strict";r(63485)({target:"Object",stat:!0,sham:!r(54797)},{create:r(98905)})},85778:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(94422),a=r(3873),s=r(19452),l=r(50754);o&&n({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){l.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},60836:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(72046).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},27748:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(50754).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},12734:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(94422),a=r(3873),s=r(19452),l=r(50754);o&&n({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){l.f(s(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},85767:(e,t,r)=>{"use strict";var n=r(63485),o=r(32636).entries;n({target:"Object",stat:!0},{entries:function(e){return o(e)}})},58336:(e,t,r)=>{"use strict";var n=r(63485),o=r(68527),i=r(53634),a=r(55343),s=r(38934).onFreeze,l=Object.freeze;n({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!o},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},35198:(e,t,r)=>{"use strict";var n=r(63485),o=r(77641),i=r(73249);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,r){i(t,e,r)}),{AS_ENTRIES:!0}),t}})},25870:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(61212),a=r(3880).f,s=r(54797);n({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},86533:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(36608),a=r(61212),s=r(3880),l=r(73249);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=s.f,u=i(n),c={},f=0;u.length>f;)void 0!==(r=o(n,t=u[f++]))&&l(c,t,r);return c}})},3811:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(26469).f;n({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},67658:(e,t,r)=>{"use strict";var n=r(63485),o=r(96576),i=r(53634),a=r(7260),s=r(19452);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},83164:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(19452),a=r(21562),s=r(24552);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},55957:(e,t,r)=>{"use strict";var n=r(63485),o=r(55687);n({target:"Object",stat:!0,forced:Object.isExtensible!==o},{isExtensible:o})},19562:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(55343),a=r(27953),s=r(40461),l=Object.isFrozen;n({target:"Object",stat:!0,forced:s||o((function(){l(1)}))},{isFrozen:function(e){return!i(e)||(!(!s||"ArrayBuffer"!==a(e))||!!l&&l(e))}})},77340:(e,t,r)=>{"use strict";var n=r(63485),o=r(53634),i=r(55343),a=r(27953),s=r(40461),l=Object.isSealed;n({target:"Object",stat:!0,forced:s||o((function(){l(1)}))},{isSealed:function(e){return!i(e)||(!(!s||"ArrayBuffer"!==a(e))||!!l&&l(e))}})},10711:(e,t,r)=>{"use strict";r(63485)({target:"Object",stat:!0},{is:r(98093)})},78739:(e,t,r)=>{"use strict";var n=r(63485),o=r(19452),i=r(81185);n({target:"Object",stat:!0,forced:r(53634)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},94889:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(94422),a=r(19452),s=r(90008),l=r(21562),u=r(3880).f;o&&n({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,r=a(this),n=s(e);do{if(t=u(r,n))return t.get}while(r=l(r))}})},24069:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(94422),a=r(19452),s=r(90008),l=r(21562),u=r(3880).f;o&&n({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,r=a(this),n=s(e);do{if(t=u(r,n))return t.set}while(r=l(r))}})},43384:(e,t,r)=>{"use strict";var n=r(63485),o=r(55343),i=r(38934).onFreeze,a=r(68527),s=r(53634),l=Object.preventExtensions;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&o(e)?l(i(e)):e}})},14178:(e,t,r)=>{"use strict";var n=r(63485),o=r(55343),i=r(38934).onFreeze,a=r(68527),s=r(53634),l=Object.seal;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{seal:function(e){return l&&o(e)?l(i(e)):e}})},89360:(e,t,r)=>{"use strict";r(63485)({target:"Object",stat:!0},{setPrototypeOf:r(96814)})},58950:(e,t,r)=>{"use strict";var n=r(63361),o=r(34197),i=r(5652);n||o(Object.prototype,"toString",i,{unsafe:!0})},27985:(e,t,r)=>{"use strict";var n=r(63485),o=r(32636).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},20912:(e,t,r)=>{"use strict";var n=r(63485),o=r(27139);n({global:!0,forced:parseFloat!==o},{parseFloat:o})},20511:(e,t,r)=>{"use strict";var n=r(63485),o=r(23428);n({global:!0,forced:parseInt!==o},{parseInt:o})},20760:(e,t,r)=>{"use strict";var n=r(63485),o=r(23736),i=r(3873),a=r(2308),s=r(59930),l=r(77641);n({target:"Promise",stat:!0,forced:r(39476)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=i(t.resolve),a=[],s=0,c=1;l(e,(function(e){var i=s++,l=!1;c++,o(r,t,e).then((function(e){l||(l=!0,a[i]=e,--c||n(a))}),u)})),--c||n(a)}));return c.error&&u(c.value),r.promise}})},85836:(e,t,r)=>{"use strict";var n=r(63485),o=r(12358),i=r(28021).CONSTRUCTOR,a=r(72405),s=r(80148),l=r(55164),u=r(34197),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var f=s("Promise").prototype.catch;c.catch!==f&&u(c,"catch",f,{unsafe:!0})}},80043:(e,t,r)=>{"use strict";var n,o,i,a=r(63485),s=r(12358),l=r(29407),u=r(2928),c=r(23736),f=r(34197),d=r(96814),p=r(65418),h=r(86956),v=r(3873),g=r(55164),m=r(55343),y=r(19662),b=r(63900),w=r(96130).set,O=r(33790),x=r(54138),S=r(59930),A=r(23128),P=r(46814),j=r(72405),E=r(28021),I=r(2308),T="Promise",C=E.CONSTRUCTOR,k=E.REJECTION_EVENT,_=E.SUBCLASSING,R=P.getterFor(T),N=P.set,D=j&&j.prototype,M=j,L=D,z=u.TypeError,W=u.document,B=u.process,F=I.f,H=F,U=!!(W&&W.createEvent&&u.dispatchEvent),V="unhandledrejection",G=function(e){var t;return!(!m(e)||!g(t=e.then))&&t},q=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&Y(t),t.rejection=1),!0===s?r=i:(f&&f.enter(),r=s(i),f&&(f.exit(),o=!0)),r===e.promise?u(new z("Promise-chain cycle")):(n=G(r))?c(n,r,l,u):l(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},K=function(e,t){e.notified||(e.notified=!0,O((function(){for(var r,n=e.reactions;r=n.get();)q(r,e);e.notified=!1,t&&!e.rejection&&Z(e)})))},$=function(e,t,r){var n,o;U?((n=W.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!k&&(o=u["on"+e])?o(n):e===V&&x("Unhandled promise rejection",r)},Z=function(e){c(w,u,(function(){var t,r=e.facade,n=e.value;if(X(e)&&(t=S((function(){l?B.emit("unhandledRejection",n,r):$(V,r,n)})),e.rejection=l||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){c(w,u,(function(){var t=e.facade;l?B.emit("rejectionHandled",t):$("rejectionhandled",t,e.value)}))},Q=function(e,t,r){return function(n){e(t,n,r)}},J=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,K(e,!0))},ee=function e(t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===r)throw new z("Promise can't be resolved itself");var o=G(r);o?O((function(){var n={done:!1};try{c(o,r,Q(e,n,t),Q(J,n,t))}catch(e){J(n,e,t)}})):(t.value=r,t.state=1,K(t,!1))}catch(e){J({done:!1},e,t)}}};if(C&&(L=(M=function(e){y(this,L),v(e),c(n,this);var t=R(this);try{e(Q(ee,t),Q(J,t))}catch(e){J(t,e)}}).prototype,(n=function(e){N(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=f(L,"then",(function(e,t){var r=R(this),n=F(b(this,M));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?B.domain:void 0,0===r.state?r.reactions.add(n):O((function(){q(n,r)})),n.promise})),o=function(){var e=new n,t=R(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(J,t)},I.f=F=function(e){return e===M||undefined===e?new o(e):H(e)},!s&&g(j)&&D!==Object.prototype)){i=D.then,_||f(D,"then",(function(e,t){var r=this;return new M((function(e,t){c(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(e){}d&&d(D,L)}a({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:M}),p(M,T,!1,!0),h(T)},93820:(e,t,r)=>{"use strict";var n=r(63485),o=r(12358),i=r(72405),a=r(53634),s=r(80148),l=r(55164),u=r(63900),c=r(40899),f=r(34197),d=i&&i.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),r=l(e);return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),!o&&l(i)){var p=s("Promise").prototype.finally;d.finally!==p&&f(d,"finally",p,{unsafe:!0})}},33633:(e,t,r)=>{"use strict";r(80043),r(20760),r(85836),r(21414),r(47096),r(18555)},21414:(e,t,r)=>{"use strict";var n=r(63485),o=r(23736),i=r(3873),a=r(2308),s=r(59930),l=r(77641);n({target:"Promise",stat:!0,forced:r(39476)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},47096:(e,t,r)=>{"use strict";var n=r(63485),o=r(2308);n({target:"Promise",stat:!0,forced:r(28021).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},18555:(e,t,r)=>{"use strict";var n=r(63485),o=r(80148),i=r(12358),a=r(72405),s=r(28021).CONSTRUCTOR,l=r(40899),u=o("Promise"),c=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},4299:(e,t,r)=>{"use strict";var n=r(63485),o=r(30678),i=r(3873),a=r(25546);n({target:"Reflect",stat:!0,forced:!r(53634)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,r){return o(i(e),t,a(r))}})},89910:(e,t,r)=>{"use strict";var n=r(63485),o=r(80148),i=r(30678),a=r(43347),s=r(66961),l=r(25546),u=r(55343),c=r(98905),f=r(53634),d=o("Reflect","construct"),p=Object.prototype,h=[].push,v=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),g=!f((function(){d((function(){}))})),m=v||g;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),l(t);var r=arguments.length<3?e:s(arguments[2]);if(g&&!v)return d(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,f=c(u(o)?o:p),m=i(e,f,t);return u(m)?m:f}})},33876:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(25546),a=r(90008),s=r(50754);n({target:"Reflect",stat:!0,forced:r(53634)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(e,t,r){i(e);var n=a(t);i(r);try{return s.f(e,n,r),!0}catch(e){return!1}}})},2556:(e,t,r)=>{"use strict";var n=r(63485),o=r(25546),i=r(3880).f;n({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var r=i(o(e),t);return!(r&&!r.configurable)&&delete e[t]}})},69630:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(25546),a=r(3880);n({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},27564:(e,t,r)=>{"use strict";var n=r(63485),o=r(25546),i=r(21562);n({target:"Reflect",stat:!0,sham:!r(24552)},{getPrototypeOf:function(e){return i(o(e))}})},97379:(e,t,r)=>{"use strict";var n=r(63485),o=r(23736),i=r(55343),a=r(25546),s=r(98244),l=r(3880),u=r(21562);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,c,f=arguments.length<3?t:arguments[2];return a(t)===f?t[r]:(n=l.f(t,r))?s(n)?n.value:void 0===n.get?void 0:o(n.get,f):i(c=u(t))?e(c,r,f):void 0}})},3055:(e,t,r)=>{"use strict";r(63485)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},61573:(e,t,r)=>{"use strict";var n=r(63485),o=r(25546),i=r(55687);n({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),i(e)}})},70444:(e,t,r)=>{"use strict";r(63485)({target:"Reflect",stat:!0},{ownKeys:r(36608)})},22888:(e,t,r)=>{"use strict";var n=r(63485),o=r(80148),i=r(25546);n({target:"Reflect",stat:!0,sham:!r(68527)},{preventExtensions:function(e){i(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},81792:(e,t,r)=>{"use strict";var n=r(63485),o=r(25546),i=r(20857),a=r(96814);a&&n({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),i(t);try{return a(e,t),!0}catch(e){return!1}}})},27111:(e,t,r)=>{"use strict";var n=r(63485),o=r(23736),i=r(25546),a=r(55343),s=r(98244),l=r(53634),u=r(50754),c=r(3880),f=r(21562),d=r(70019);n({target:"Reflect",stat:!0,forced:l((function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,r,n){var l,p,h,v=arguments.length<4?t:arguments[3],g=c.f(i(t),r);if(!g){if(a(p=f(t)))return e(p,r,n,v);g=d(0)}if(s(g)){if(!1===g.writable||!a(v))return!1;if(l=c.f(v,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=n,u.f(v,r,l)}else u.f(v,r,d(0,n))}else{if(void 0===(h=g.set))return!1;o(h,v,n)}return!0}})},63817:(e,t,r)=>{"use strict";var n=r(54797),o=r(2928),i=r(37889),a=r(84857),s=r(9526),l=r(67592),u=r(98905),c=r(50125).f,f=r(76466),d=r(98681),p=r(30106),h=r(45081),v=r(29720),g=r(94951),m=r(34197),y=r(53634),b=r(32770),w=r(46814).enforce,O=r(86956),x=r(41642),S=r(20180),A=r(30529),P=x("match"),j=o.RegExp,E=j.prototype,I=o.SyntaxError,T=i(E.exec),C=i("".charAt),k=i("".replace),_=i("".indexOf),R=i("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,M=/a/g,L=new j(D)!==D,z=v.MISSED_STICKY,W=v.UNSUPPORTED_Y,B=n&&(!L||z||S||A||y((function(){return M[P]=!1,j(D)!==D||j(M)===M||"/a/i"!==String(j(D,"i"))})));if(a("RegExp",B)){for(var F=function(e,t){var r,n,o,i,a,c,v=f(E,this),g=d(e),m=void 0===t,y=[],O=e;if(!v&&g&&m&&e.constructor===F)return e;if((g||f(E,e))&&(e=e.source,m&&(t=h(O))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),O=e,S&&"dotAll"in D&&(n=!!t&&_(t,"s")>-1)&&(t=k(t,/s/g,"")),r=t,z&&"sticky"in D&&(o=!!t&&_(t,"y")>-1)&&W&&(t=k(t,/y/g,"")),A&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a=u(null),s=!1,l=!1,c=0,f="";n<=r;n++){if("\\"===(t=C(e,n)))t+=C(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(N,R(e,n+1))&&(n+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===f||b(a,f))throw new I("Invalid capture group name");a[f]=!0,i[i.length]=[f,c],l=!1,f="";continue}l?f+=t:o+=t}return[o,i]}(e),e=i[0],y=i[1]),a=s(j(e,t),v?this:E,F),(n||o||y.length)&&(c=w(a),n&&(c.dotAll=!0,c.raw=F(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=C(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+C(e,++n);return o}(e),r)),o&&(c.sticky=!0),y.length&&(c.groups=y)),e!==O)try{l(a,"source",""===O?"(?:)":O)}catch(e){}return a},H=c(j),U=0;H.length>U;)g(F,j,H[U++]);E.constructor=F,F.prototype=E,m(o,"RegExp",F,{constructor:!0})}O("RegExp")},80248:(e,t,r)=>{"use strict";var n=r(63485),o=r(2542);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},51898:(e,t,r)=>{"use strict";var n=r(2928),o=r(54797),i=r(47557),a=r(2020),s=r(53634),l=n.RegExp,u=l.prototype;o&&s((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==n||r!==n}))&&i(u,"flags",{configurable:!0,get:a})},84600:(e,t,r)=>{"use strict";var n=r(9071).PROPER,o=r(34197),i=r(25546),a=r(30106),s=r(53634),l=r(45081),u="toString",c=RegExp.prototype,f=c[u],d=s((function(){return"/a/b"!==f.call({source:"a",flags:"b"})})),p=n&&f.name!==u;(d||p)&&o(c,u,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},11898:(e,t,r)=>{"use strict";r(51759)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(29263))},96244:(e,t,r)=>{"use strict";r(11898)},11060:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},56551:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("big")},{big:function(){return o(this,"big","","")}})},63483:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("blink")},{blink:function(){return o(this,"blink","","")}})},5986:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("bold")},{bold:function(){return o(this,"b","","")}})},59801:(e,t,r)=>{"use strict";var n=r(63485),o=r(83908).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},26548:(e,t,r)=>{"use strict";var n,o=r(63485),i=r(11515),a=r(3880).f,s=r(31995),l=r(30106),u=r(73060),c=r(31365),f=r(46265),d=r(12358),p=i("".slice),h=Math.min,v=f("endsWith");o({target:"String",proto:!0,forced:!!(d||v||(n=a(String.prototype,"endsWith"),!n||n.writable))&&!v},{endsWith:function(e){var t=l(c(this));u(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,o=void 0===r?n:h(s(r),n),i=l(e);return p(t,o-i.length,o)===i}})},76431:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("fixed")},{fixed:function(){return o(this,"tt","","")}})},45201:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},41521:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},27808:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(29603),a=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=o([].join);n({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw new a(t+" is not a valid code point");r[o]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(r,"")}})},27284:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(73060),a=r(31365),s=r(30106),l=r(46265),u=o("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},47672:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("italics")},{italics:function(){return o(this,"i","","")}})},85587:(e,t,r)=>{"use strict";var n=r(83908).charAt,o=r(30106),i=r(46814),a=r(48993),s=r(96944),l="String Iterator",u=i.set,c=i.getterFor(l);a(String,"String",(function(e){u(this,{type:l,string:o(e),index:0})}),(function(){var e,t=c(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},87833:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("link")},{link:function(e){return o(this,"a","href",e)}})},30932:(e,t,r)=>{"use strict";var n=r(23736),o=r(34691),i=r(25546),a=r(74350),s=r(31995),l=r(30106),u=r(31365),c=r(64897),f=r(6698),d=r(14801);o("match",(function(e,t,r){return[function(t){var r=u(this),o=a(t)?void 0:c(t,e);return o?n(o,t,r):new RegExp(t)[e](l(r))},function(e){var n=i(this),o=l(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return d(n,o);var u=n.unicode;n.lastIndex=0;for(var c,p=[],h=0;null!==(c=d(n,o));){var v=l(c[0]);p[h]=v,""===v&&(n.lastIndex=f(o,s(n.lastIndex),u)),h++}return 0===h?null:p}]}))},47216:(e,t,r)=>{"use strict";var n=r(63485),o=r(87062).end;n({target:"String",proto:!0,forced:r(46366)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},62193:(e,t,r)=>{"use strict";var n=r(63485),o=r(87062).start;n({target:"String",proto:!0,forced:r(46366)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},16223:(e,t,r)=>{"use strict";var n=r(63485),o=r(37889),i=r(61212),a=r(19452),s=r(30106),l=r(28765),u=o([].push),c=o([].join);n({target:"String",stat:!0},{raw:function(e){var t=i(a(e).raw),r=l(t);if(!r)return"";for(var n=arguments.length,o=[],f=0;;){if(u(o,s(t[f++])),f===r)return c(o,"");f<n&&u(o,s(arguments[f]))}}})},50426:(e,t,r)=>{"use strict";r(63485)({target:"String",proto:!0},{repeat:r(73348)})},6021:(e,t,r)=>{"use strict";var n=r(30678),o=r(23736),i=r(37889),a=r(34691),s=r(53634),l=r(25546),u=r(55164),c=r(74350),f=r(93784),d=r(31995),p=r(30106),h=r(31365),v=r(6698),g=r(64897),m=r(7289),y=r(14801),b=r(41642)("replace"),w=Math.max,O=Math.min,x=i([].concat),S=i([].push),A=i("".indexOf),P=i("".slice),j="$0"==="a".replace(/./,"$0"),E=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=E?"$":"$0";return[function(e,r){var n=h(this),i=c(e)?void 0:g(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=l(this),s=p(e);if("string"==typeof o&&-1===A(o,i)&&-1===A(o,"$<")){var c=r(t,a,s,o);if(c.done)return c.value}var h=u(o);h||(o=p(o));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var j,E=[];null!==(j=y(a,s))&&(S(E,j),b);){""===p(j[0])&&(a.lastIndex=v(s,d(a.lastIndex),g))}for(var I,T="",C=0,k=0;k<E.length;k++){for(var _,R=p((j=E[k])[0]),N=w(O(f(j.index),s.length),0),D=[],M=1;M<j.length;M++)S(D,void 0===(I=j[M])?I:String(I));var L=j.groups;if(h){var z=x([R],D,N,s);void 0!==L&&S(z,L),_=p(n(o,void 0,z))}else _=m(R,s,N,D,L,o);N>=C&&(T+=P(s,C,N)+_,C=N+R.length)}return T+P(s,C)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!j||E)},33033:(e,t,r)=>{"use strict";var n=r(23736),o=r(34691),i=r(25546),a=r(74350),s=r(31365),l=r(98093),u=r(30106),c=r(64897),f=r(14801);o("search",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:c(t,e);return o?n(o,t,r):new RegExp(t)[e](u(r))},function(e){var n=i(this),o=u(e),a=r(t,n,o);if(a.done)return a.value;var s=n.lastIndex;l(s,0)||(n.lastIndex=0);var c=f(n,o);return l(n.lastIndex,s)||(n.lastIndex=s),null===c?-1:c.index}]}))},95782:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("small")},{small:function(){return o(this,"small","","")}})},47169:(e,t,r)=>{"use strict";var n=r(23736),o=r(37889),i=r(34691),a=r(25546),s=r(74350),l=r(31365),u=r(63900),c=r(6698),f=r(31995),d=r(30106),p=r(64897),h=r(14801),v=r(29720),g=r(53634),m=v.UNSUPPORTED_Y,y=Math.min,b=o([].push),w=o("".slice),O=!g((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(e,t,r){var o="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:n(t,this,e,r)}:t;return[function(t,r){var i=l(this),a=s(t)?void 0:p(t,e);return a?n(a,t,i,r):n(o,d(i),t,r)},function(e,n){var i=a(this),s=d(e);if(!x){var l=r(o,i,s,n,o!==t);if(l.done)return l.value}var p=u(i,RegExp),v=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(m?"g":"y"),O=new p(m?"^(?:"+i.source+")":i,g),S=void 0===n?4294967295:n>>>0;if(0===S)return[];if(0===s.length)return null===h(O,s)?[s]:[];for(var A=0,P=0,j=[];P<s.length;){O.lastIndex=m?0:P;var E,I=h(O,m?w(s,P):s);if(null===I||(E=y(f(O.lastIndex+(m?P:0)),s.length))===A)P=c(s,P,v);else{if(b(j,w(s,A,P)),j.length===S)return j;for(var T=1;T<=I.length-1;T++)if(b(j,I[T]),j.length===S)return j;P=A=E}}return b(j,w(s,A)),j}]}),x||!O,m)},34533:(e,t,r)=>{"use strict";var n,o=r(63485),i=r(11515),a=r(3880).f,s=r(31995),l=r(30106),u=r(73060),c=r(31365),f=r(46265),d=r(12358),p=i("".slice),h=Math.min,v=f("startsWith");o({target:"String",proto:!0,forced:!!(d||v||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!v},{startsWith:function(e){var t=l(c(this));u(e);var r=s(h(arguments.length>1?arguments[1]:void 0,t.length)),n=l(e);return p(t,r,r+n.length)===n}})},85843:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("strike")},{strike:function(){return o(this,"strike","","")}})},60075:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("sub")},{sub:function(){return o(this,"sub","","")}})},54653:(e,t,r)=>{"use strict";var n=r(63485),o=r(25533);n({target:"String",proto:!0,forced:r(77638)("sup")},{sup:function(){return o(this,"sup","","")}})},68161:(e,t,r)=>{"use strict";r(40042);var n=r(63485),o=r(207);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==o},{trimEnd:o})},63491:(e,t,r)=>{"use strict";var n=r(63485),o=r(68402);n({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==o},{trimLeft:o})},40042:(e,t,r)=>{"use strict";var n=r(63485),o=r(207);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==o},{trimRight:o})},69760:(e,t,r)=>{"use strict";r(63491);var n=r(63485),o=r(68402);n({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==o},{trimStart:o})},6497:(e,t,r)=>{"use strict";var n=r(63485),o=r(34611).trim;n({target:"String",proto:!0,forced:r(93289)("trim")},{trim:function(){return o(this)}})},79319:(e,t,r)=>{"use strict";r(62860)("asyncIterator")},22384:(e,t,r)=>{"use strict";var n=r(63485),o=r(2928),i=r(23736),a=r(37889),s=r(12358),l=r(54797),u=r(96576),c=r(53634),f=r(32770),d=r(76466),p=r(25546),h=r(61212),v=r(90008),g=r(30106),m=r(70019),y=r(98905),b=r(81185),w=r(50125),O=r(26469),x=r(7260),S=r(3880),A=r(50754),P=r(72046),j=r(60128),E=r(34197),I=r(47557),T=r(61930),C=r(20056),k=r(77076),_=r(96177),R=r(41642),N=r(78490),D=r(62860),M=r(50677),L=r(65418),z=r(46814),W=r(95016).forEach,B=C("hidden"),F="Symbol",H="prototype",U=z.set,V=z.getterFor(F),G=Object[H],q=o.Symbol,K=q&&q[H],$=o.RangeError,Z=o.TypeError,X=o.QObject,Y=S.f,Q=A.f,J=O.f,ee=j.f,te=a([].push),re=T("symbols"),ne=T("op-symbols"),oe=T("wks"),ie=!X||!X[H]||!X[H].findChild,ae=function(e,t,r){var n=Y(G,t);n&&delete G[t],Q(e,t,r),n&&e!==G&&Q(G,t,n)},se=l&&c((function(){return 7!==y(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ae:Q,le=function(e,t){var r=re[e]=y(K);return U(r,{type:F,tag:e,description:t}),l||(r.description=t),r},ue=function(e,t,r){e===G&&ue(ne,t,r),p(e);var n=v(t);return p(r),f(re,n)?(r.enumerable?(f(e,B)&&e[B][n]&&(e[B][n]=!1),r=y(r,{enumerable:m(0,!1)})):(f(e,B)||Q(e,B,m(1,y(null))),e[B][n]=!0),se(e,n,r)):Q(e,n,r)},ce=function(e,t){p(e);var r=h(t),n=b(r).concat(he(r));return W(n,(function(t){l&&!i(fe,r,t)||ue(e,t,r[t])})),e},fe=function(e){var t=v(e),r=i(ee,this,t);return!(this===G&&f(re,t)&&!f(ne,t))&&(!(r||!f(this,t)||!f(re,t)||f(this,B)&&this[B][t])||r)},de=function(e,t){var r=h(e),n=v(t);if(r!==G||!f(re,n)||f(ne,n)){var o=Y(r,n);return!o||!f(re,n)||f(r,B)&&r[B][n]||(o.enumerable=!0),o}},pe=function(e){var t=J(h(e)),r=[];return W(t,(function(e){f(re,e)||f(k,e)||te(r,e)})),r},he=function(e){var t=e===G,r=J(t?ne:h(e)),n=[];return W(r,(function(e){!f(re,e)||t&&!f(G,e)||te(n,re[e])})),n};u||(E(K=(q=function(){if(d(K,this))throw new Z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=_(e);return l&&ie&&se(G,t,{configurable:!0,set:function e(r){var n=void 0===this?o:this;n===G&&i(e,ne,r),f(n,B)&&f(n[B],t)&&(n[B][t]=!1);var a=m(1,r);try{se(n,t,a)}catch(e){if(!(e instanceof $))throw e;ae(n,t,a)}}}),le(t,e)})[H],"toString",(function(){return V(this).tag})),E(q,"withoutSetter",(function(e){return le(_(e),e)})),j.f=fe,A.f=ue,P.f=ce,S.f=de,w.f=O.f=pe,x.f=he,N.f=function(e){return le(R(e),e)},l&&(I(K,"description",{configurable:!0,get:function(){return V(this).description}}),s||E(G,"propertyIsEnumerable",fe,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),W(b(oe),(function(e){D(e)})),n({target:F,stat:!0,forced:!u},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:de}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe}),M(),L(q,F),k[B]=!0},61942:(e,t,r)=>{"use strict";var n=r(63485),o=r(54797),i=r(2928),a=r(37889),s=r(32770),l=r(55164),u=r(76466),c=r(30106),f=r(47557),d=r(44017),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var v={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(v[t]=!0),t};d(g,p),g.prototype=h,h.constructor=g;var m="Symbol(description detection)"===String(p("description detection")),y=a(h.valueOf),b=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,O=a("".replace),x=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=y(this);if(s(v,e))return"";var t=b(e),r=m?x(t,7,-1):O(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},28867:(e,t,r)=>{"use strict";var n=r(63485),o=r(80148),i=r(32770),a=r(30106),s=r(61930),l=r(75697),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var r=o("Symbol")(t);return u[t]=r,c[r]=t,r}})},56298:(e,t,r)=>{"use strict";r(62860)("hasInstance")},18243:(e,t,r)=>{"use strict";r(62860)("isConcatSpreadable")},49520:(e,t,r)=>{"use strict";r(62860)("iterator")},7558:(e,t,r)=>{"use strict";r(22384),r(28867),r(51637),r(85607),r(67658)},51637:(e,t,r)=>{"use strict";var n=r(63485),o=r(32770),i=r(55648),a=r(76390),s=r(61930),l=r(75697),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},92693:(e,t,r)=>{"use strict";r(62860)("match")},68668:(e,t,r)=>{"use strict";r(62860)("replace")},57398:(e,t,r)=>{"use strict";r(62860)("search")},58742:(e,t,r)=>{"use strict";r(62860)("species")},38988:(e,t,r)=>{"use strict";r(62860)("split")},17179:(e,t,r)=>{"use strict";var n=r(62860),o=r(50677);n("toPrimitive"),o()},63392:(e,t,r)=>{"use strict";var n=r(80148),o=r(62860),i=r(65418);o("toStringTag"),i(n("Symbol"),"Symbol")},33915:(e,t,r)=>{"use strict";r(62860)("unscopables")},96565:(e,t,r)=>{"use strict";var n=r(37889),o=r(53223),i=n(r(19968)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},76921:(e,t,r)=>{"use strict";var n=r(53223),o=r(95016).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},41285:(e,t,r)=>{"use strict";var n=r(53223),o=r(46934),i=r(10277),a=r(23502),s=r(23736),l=r(37889),u=r(53634),c=n.aTypedArray,f=n.exportTypedArrayMethod,d=l("".slice);f("fill",(function(e){var t=arguments.length;c(this);var r="Big"===d(a(this),0,3)?i(e):+e;return s(o,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},64982:(e,t,r)=>{"use strict";var n=r(53223),o=r(95016).filter,i=r(75608),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},79422:(e,t,r)=>{"use strict";var n=r(53223),o=r(95016).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},71407:(e,t,r)=>{"use strict";var n=r(53223),o=r(95016).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},54137:(e,t,r)=>{"use strict";r(46666)("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},30222:(e,t,r)=>{"use strict";r(46666)("Float64",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},46571:(e,t,r)=>{"use strict";var n=r(53223),o=r(95016).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},50284:(e,t,r)=>{"use strict";var n=r(65404);(0,r(53223).exportTypedArrayStaticMethod)("from",r(8396),n)},7313:(e,t,r)=>{"use strict";var n=r(53223),o=r(25282).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},53270:(e,t,r)=>{"use strict";var n=r(53223),o=r(25282).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},44016:(e,t,r)=>{"use strict";r(46666)("Int16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},22422:(e,t,r)=>{"use strict";r(46666)("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},4999:(e,t,r)=>{"use strict";r(46666)("Int8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},3882:(e,t,r)=>{"use strict";var n=r(2928),o=r(53634),i=r(37889),a=r(53223),s=r(88641),l=r(41642)("iterator"),u=n.Uint8Array,c=i(s.values),f=i(s.keys),d=i(s.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,v=u&&u.prototype,g=!o((function(){v[l].call([1])})),m=!!v&&v.values&&v[l]===v.values&&"values"===v.values.name,y=function(){return c(p(this))};h("entries",(function(){return d(p(this))}),g),h("keys",(function(){return f(p(this))}),g),h("values",y,g||!m,{name:"values"}),h(l,y,g||!m,{name:"values"})},45952:(e,t,r)=>{"use strict";var n=r(53223),o=r(37889),i=n.aTypedArray,a=n.exportTypedArrayMethod,s=o([].join);a("join",(function(e){return s(i(this),e)}))},95147:(e,t,r)=>{"use strict";var n=r(53223),o=r(30678),i=r(43062),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},18208:(e,t,r)=>{"use strict";var n=r(53223),o=r(95016).map,i=r(14457),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},18361:(e,t,r)=>{"use strict";var n=r(53223),o=r(65404),i=n.aTypedArrayConstructor;(0,n.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,r=new(i(this))(t);t>e;)r[e]=arguments[e++];return r}),o)},92589:(e,t,r)=>{"use strict";var n=r(53223),o=r(90069).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},8782:(e,t,r)=>{"use strict";var n=r(53223),o=r(90069).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},96532:(e,t,r)=>{"use strict";var n=r(53223),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,r=o(t).length,n=a(r/2),i=0;i<n;)e=t[i],t[i++]=t[--r],t[r]=e;return t}))},15994:(e,t,r)=>{"use strict";var n=r(2928),o=r(23736),i=r(53223),a=r(28765),s=r(81856),l=r(19452),u=r(53634),c=n.RangeError,f=n.Int8Array,d=f&&f.prototype,p=d&&d.set,h=i.aTypedArray,v=i.exportTypedArrayMethod,g=!u((function(){var e=new Uint8ClampedArray(2);return o(p,e,{length:1,0:3},1),3!==e[1]})),m=g&&i.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){h(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=l(e);if(g)return o(p,this,r,t);var n=this.length,i=a(r),u=0;if(i+t>n)throw new c("Wrong length");for(;u<i;)this[t+u]=r[u++]}),!g||m)},36784:(e,t,r)=>{"use strict";var n=r(53223),o=r(14457),i=r(53634),a=r(75905),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=a(s(this),e,t),n=o(this),i=0,l=r.length,u=new n(l);l>i;)u[i]=r[i++];return u}),i((function(){new Int8Array(1).slice()})))},54524:(e,t,r)=>{"use strict";var n=r(53223),o=r(95016).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},60456:(e,t,r)=>{"use strict";var n=r(2928),o=r(11515),i=r(53634),a=r(3873),s=r(51967),l=r(53223),u=r(65959),c=r(70861),f=r(32389),d=r(37973),p=l.aTypedArray,h=l.exportTypedArrayMethod,v=n.Uint16Array,g=v&&o(v.prototype.sort),m=!(!g||i((function(){g(new v(2),null)}))&&i((function(){g(new v(2),{})}))),y=!!g&&!i((function(){if(f)return f<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var e,t,r=new v(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(g(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),y?g(this,e):s(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!y||m)},69771:(e,t,r)=>{"use strict";var n=r(53223),o=r(31995),i=r(29603),a=r(14457),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=s(this),n=r.length,l=i(e,n);return new(a(r))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,o((void 0===t?n:i(t,n))-l))}))},13584:(e,t,r)=>{"use strict";var n=r(2928),o=r(30678),i=r(53223),a=r(53634),s=r(75905),l=n.Int8Array,u=i.aTypedArray,c=i.exportTypedArrayMethod,f=[].toLocaleString,d=!!l&&a((function(){f.call(new l(1))}));c("toLocaleString",(function(){return o(f,d?s(u(this)):u(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!==new l([1,2]).toLocaleString()}))||!a((function(){l.prototype.toLocaleString.call([1,2])})))},49195:(e,t,r)=>{"use strict";var n=r(53223).exportTypedArrayMethod,o=r(53634),i=r(2928),a=r(37889),s=i.Uint8Array,l=s&&s.prototype||{},u=[].toString,c=a([].join);o((function(){u.call({})}))&&(u=function(){return c(this)});var f=l.toString!==u;n("toString",u,f)},42963:(e,t,r)=>{"use strict";r(46666)("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},81373:(e,t,r)=>{"use strict";r(46666)("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},7978:(e,t,r)=>{"use strict";r(46666)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},66225:(e,t,r)=>{"use strict";r(46666)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}),!0)},4571:(e,t,r)=>{"use strict";var n,o=r(68527),i=r(2928),a=r(37889),s=r(2784),l=r(38934),u=r(51759),c=r(20584),f=r(55343),d=r(46814).enforce,p=r(53634),h=r(26185),v=Object,g=Array.isArray,m=v.isExtensible,y=v.isFrozen,b=v.isSealed,w=v.freeze,O=v.seal,x=!i.ActiveXObject&&"ActiveXObject"in i,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A=u("WeakMap",S,c),P=A.prototype,j=a(P.set);if(h)if(x){n=c.getConstructor(S,"WeakMap",!0),l.enable();var E=a(P.delete),I=a(P.has),T=a(P.get);s(P,{delete:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new n),E(this,e)||t.frozen.delete(e)}return E(this,e)},has:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new n),I(this,e)||t.frozen.has(e)}return I(this,e)},get:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new n),I(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(f(e)&&!m(e)){var r=d(this);r.frozen||(r.frozen=new n),I(this,e)?j(this,e,t):r.frozen.set(e,t)}else j(this,e,t);return this}})}else o&&p((function(){var e=w([]);return j(new A,e,1),!y(e)}))&&s(P,{set:function(e,t){var r;return g(e)&&(y(e)?r=w:b(e)&&(r=O)),j(this,e,t),r&&r(e),this}})},8849:(e,t,r)=>{"use strict";r(4571)},69957:(e,t,r)=>{"use strict";r(51759)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(20584))},57063:(e,t,r)=>{"use strict";r(69957)},90137:(e,t,r)=>{"use strict";var n=r(63485),o=r(2928),i=r(96130).clear;n({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},97251:(e,t,r)=>{"use strict";var n=r(2928),o=r(8597),i=r(63031),a=r(61964),s=r(67592),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(n[u]&&n[u].prototype);l(i)},94482:(e,t,r)=>{"use strict";var n=r(2928),o=r(8597),i=r(63031),a=r(88641),s=r(67592),l=r(65418),u=r(41642)("iterator"),c=a.values,f=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var d in o)f(n[d]&&n[d].prototype,d);f(i,"DOMTokenList")},6545:(e,t,r)=>{"use strict";r(90137),r(37124)},45543:(e,t,r)=>{"use strict";var n=r(63485),o=r(33790),i=r(3873),a=r(20597);n({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){a(arguments.length,1),o(i(e))}})},37124:(e,t,r)=>{"use strict";var n=r(63485),o=r(2928),i=r(96130).set,a=r(96291),s=o.setImmediate?a(i,!1):i;n({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},56480:(e,t,r)=>{"use strict";var n=r(63485),o=r(2928),i=r(96291)(o.setInterval,!0);n({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},39570:(e,t,r)=>{"use strict";var n=r(63485),o=r(2928),i=r(96291)(o.setTimeout,!0);n({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},92092:(e,t,r)=>{"use strict";r(56480),r(39570)},47823:(e,t,r)=>{"use strict";r(88641);var n=r(63485),o=r(2928),i=r(27412),a=r(23736),s=r(37889),l=r(54797),u=r(69501),c=r(34197),f=r(47557),d=r(2784),p=r(65418),h=r(71543),v=r(46814),g=r(19662),m=r(55164),y=r(32770),b=r(88269),w=r(23502),O=r(25546),x=r(55343),S=r(30106),A=r(98905),P=r(70019),j=r(67998),E=r(60898),I=r(96944),T=r(20597),C=r(41642),k=r(51967),_=C("iterator"),R="URLSearchParams",N=R+"Iterator",D=v.set,M=v.getterFor(R),L=v.getterFor(N),z=i("fetch"),W=i("Request"),B=i("Headers"),F=W&&W.prototype,H=B&&B.prototype,U=o.RegExp,V=o.TypeError,G=o.decodeURIComponent,q=o.encodeURIComponent,K=s("".charAt),$=s([].join),Z=s([].push),X=s("".replace),Y=s([].shift),Q=s([].splice),J=s("".split),ee=s("".slice),te=/\+/g,re=Array(4),ne=function(e){return re[e-1]||(re[e-1]=U("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return G(e)}catch(t){return e}},ie=function(e){var t=X(e,te," "),r=4;try{return G(t)}catch(e){for(;r;)t=X(t,ne(r--),oe);return t}},ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return se[e]},ue=function(e){return X(q(e),ae,le)},ce=h((function(e,t){D(this,{type:N,target:M(e).entries,index:0,kind:t})}),R,(function(){var e=L(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,I(void 0,!0);var n=t[r];switch(e.kind){case"keys":return I(n.key,!1);case"values":return I(n.value,!1)}return I([n.key,n.value],!1)}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?ee(e,1):e:S(e)))};fe.prototype={type:R,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,s,l,u=this.entries,c=E(e);if(c)for(r=(t=j(e,c)).next;!(n=a(r,t)).done;){if(i=(o=j(O(n.value))).next,(s=a(i,o)).done||(l=a(i,o)).done||!a(i,o).done)throw new V("Expected sequence with length 2");Z(u,{key:S(s.value),value:S(l.value)})}else for(var f in e)y(e,f)&&Z(u,{key:f,value:S(e[f])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=J(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=J(t,"="),Z(n,{key:ie(Y(r)),value:ie($(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Z(r,ue(e.key)+"="+ue(e.value));return $(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var de=function(){g(this,pe);var e=D(this,new fe(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},pe=de.prototype;if(d(pe,{append:function(e,t){var r=M(this);T(arguments.length,2),Z(r.entries,{key:S(e),value:S(t)}),l||this.length++,r.updateURL()},delete:function(e){for(var t=M(this),r=T(arguments.length,1),n=t.entries,o=S(e),i=r<2?void 0:arguments[1],a=void 0===i?i:S(i),s=0;s<n.length;){var u=n[s];if(u.key!==o||void 0!==a&&u.value!==a)s++;else if(Q(n,s,1),void 0!==a)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=M(this).entries;T(arguments.length,1);for(var r=S(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=M(this).entries;T(arguments.length,1);for(var r=S(e),n=[],o=0;o<t.length;o++)t[o].key===r&&Z(n,t[o].value);return n},has:function(e){for(var t=M(this).entries,r=T(arguments.length,1),n=S(e),o=r<2?void 0:arguments[1],i=void 0===o?o:S(o),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var r=M(this);T(arguments.length,1);for(var n,o=r.entries,i=!1,a=S(e),s=S(t),u=0;u<o.length;u++)(n=o[u]).key===a&&(i?Q(o,u--,1):(i=!0,n.value=s));i||Z(o,{key:a,value:s}),l||(this.size=o.length),r.updateURL()},sort:function(){var e=M(this);k(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=M(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(pe,_,pe.entries,{name:"entries"}),c(pe,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),l&&f(pe,"size",{get:function(){return M(this).entries.length},configurable:!0,enumerable:!0}),p(de,R),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:de}),!u&&m(B)){var he=s(H.has),ve=s(H.set),ge=function(e){if(x(e)){var t,r=e.body;if(w(r)===R)return t=e.headers?new B(e.headers):new B,he(t,"content-type")||ve(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),A(e,{body:P(0,S(r)),headers:P(0,t)})}return e};if(m(z)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return z(e,arguments.length>1?ge(arguments[1]):{})}}),m(W)){var me=function(e){return g(this,F),new W(e,arguments.length>1?ge(arguments[1]):{})};F.constructor=me,me.prototype=F,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:me})}}e.exports={URLSearchParams:de,getState:M}},76301:(e,t,r)=>{"use strict";r(47823)},83759:(e,t,r)=>{"use strict";r(85587);var n,o=r(63485),i=r(54797),a=r(69501),s=r(2928),l=r(88269),u=r(37889),c=r(34197),f=r(47557),d=r(19662),p=r(32770),h=r(28192),v=r(98299),g=r(75905),m=r(83908).codeAt,y=r(60518),b=r(30106),w=r(65418),O=r(20597),x=r(47823),S=r(46814),A=S.set,P=S.getterFor("URL"),j=x.URLSearchParams,E=x.getState,I=s.URL,T=s.TypeError,C=s.parseInt,k=Math.floor,_=Math.pow,R=u("".charAt),N=u(/./.exec),D=u([].join),M=u(1..toString),L=u([].pop),z=u([].push),W=u("".replace),B=u([].shift),F=u("".split),H=u("".slice),U=u("".toLowerCase),V=u([].unshift),G="Invalid scheme",q="Invalid host",K="Invalid port",$=/[a-z]/i,Z=/[\d+-.a-z]/i,X=/\d/,Y=/^0x/i,Q=/^[0-7]+$/,J=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,ae=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=k(e/256);return D(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=M(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},se={},le=h({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=h({},le,{"#":1,"?":1,"{":1,"}":1}),ce=h({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var r=m(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2===e.length&&N($,R(e,0))&&(":"===(r=R(e,1))||!t&&"|"===r)},he=function(e){var t;return e.length>1&&pe(H(e,0,2))&&(2===e.length||"/"===(t=R(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===U(e)},ge={},me={},ye={},be={},we={},Oe={},xe={},Se={},Ae={},Pe={},je={},Ee={},Ie={},Te={},Ce={},ke={},_e={},Re={},Ne={},De={},Me={},Le=function e(t,r,n){var o,i,a,s=b(t);if(r){if(i=this.parse(s))throw new T(i);this.searchParams=null}else{if(void 0!==n&&(o=new e(n,!0)),i=this.parse(s,null,o))throw new T(i);(a=E(new j)).bindURL(this),this.searchParams=a}};Le.prototype={type:"URL",parse:function(e,t,r){var o,i,a,s,l,u=this,c=t||ge,f=0,d="",h=!1,m=!1,y=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=W(e,ne,""),e=W(e,oe,"$1")),e=W(e,ie,""),o=v(e);f<=o.length;){switch(i=o[f],c){case ge:if(!i||!N($,i)){if(t)return G;c=ye;continue}d+=U(i),c=me;break;case me:if(i&&(N(Z,i)||"+"===i||"-"===i||"."===i))d+=U(i);else{if(":"!==i){if(t)return G;d="",c=ye,f=0;continue}if(t&&(u.isSpecial()!==p(de,d)||"file"===d&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&de[u.scheme]===u.port&&(u.port=null));d="","file"===u.scheme?c=Te:u.isSpecial()&&r&&r.scheme===u.scheme?c=be:u.isSpecial()?c=Se:"/"===o[f+1]?(c=we,f++):(u.cannotBeABaseURL=!0,z(u.path,""),c=Ne)}break;case ye:if(!r||r.cannotBeABaseURL&&"#"!==i)return G;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=g(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=Me;break}c="file"===r.scheme?Te:Oe;continue;case be:if("/"!==i||"/"!==o[f+1]){c=Oe;continue}c=Ae,f++;break;case we:if("/"===i){c=Pe;break}c=Re;continue;case Oe:if(u.scheme=r.scheme,i===n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=g(r.path),u.query=r.query;else if("/"===i||"\\"===i&&u.isSpecial())c=xe;else if("?"===i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=g(r.path),u.query="",c=De;else{if("#"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=g(r.path),u.path.length--,c=Re;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=g(r.path),u.query=r.query,u.fragment="",c=Me}break;case xe:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=Re;continue}c=Pe}else c=Ae;break;case Se:if(c=Ae,"/"!==i||"/"!==R(d,f+1))continue;f++;break;case Ae:if("/"!==i&&"\\"!==i){c=Pe;continue}break;case Pe:if("@"===i){h&&(d="%40"+d),h=!0,a=v(d);for(var w=0;w<a.length;w++){var O=a[w];if(":"!==O||y){var x=fe(O,ce);y?u.password+=x:u.username+=x}else y=!0}d=""}else if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(h&&""===d)return"Invalid authority";f-=v(d).length+1,d="",c=je}else d+=i;break;case je:case Ee:if(t&&"file"===u.scheme){c=ke;continue}if(":"!==i||m){if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(u.isSpecial()&&""===d)return q;if(t&&""===d&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(d))return s;if(d="",c=_e,t)return;continue}"["===i?m=!0:"]"===i&&(m=!1),d+=i}else{if(""===d)return q;if(s=u.parseHost(d))return s;if(d="",c=Ie,t===Ee)return}break;case Ie:if(!N(X,i)){if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()||t){if(""!==d){var S=C(d,10);if(S>65535)return K;u.port=u.isSpecial()&&S===de[u.scheme]?null:S,d=""}if(t)return;c=_e;continue}return K}d+=i;break;case Te:if(u.scheme="file","/"===i||"\\"===i)c=Ce;else{if(!r||"file"!==r.scheme){c=Re;continue}switch(i){case n:u.host=r.host,u.path=g(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=g(r.path),u.query="",c=De;break;case"#":u.host=r.host,u.path=g(r.path),u.query=r.query,u.fragment="",c=Me;break;default:he(D(g(o,f),""))||(u.host=r.host,u.path=g(r.path),u.shortenPath()),c=Re;continue}}break;case Ce:if("/"===i||"\\"===i){c=ke;break}r&&"file"===r.scheme&&!he(D(g(o,f),""))&&(pe(r.path[0],!0)?z(u.path,r.path[0]):u.host=r.host),c=Re;continue;case ke:if(i===n||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&pe(d))c=Re;else if(""===d){if(u.host="",t)return;c=_e}else{if(s=u.parseHost(d))return s;if("localhost"===u.host&&(u.host=""),t)return;d="",c=_e}continue}d+=i;break;case _e:if(u.isSpecial()){if(c=Re,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==n&&(c=Re,"/"!==i))continue}else u.fragment="",c=Me;else u.query="",c=De;break;case Re:if(i===n||"/"===i||"\\"===i&&u.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(l=U(l=d))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||z(u.path,"")):ve(d)?"/"===i||"\\"===i&&u.isSpecial()||z(u.path,""):("file"===u.scheme&&!u.path.length&&pe(d)&&(u.host&&(u.host=""),d=R(d,0)+":"),z(u.path,d)),d="","file"===u.scheme&&(i===n||"?"===i||"#"===i))for(;u.path.length>1&&""===u.path[0];)B(u.path);"?"===i?(u.query="",c=De):"#"===i&&(u.fragment="",c=Me)}else d+=fe(i,ue);break;case Ne:"?"===i?(u.query="",c=De):"#"===i?(u.fragment="",c=Me):i!==n&&(u.path[0]+=fe(i,se));break;case De:t||"#"!==i?i!==n&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":fe(i,se)):(u.fragment="",c=Me);break;case Me:i!==n&&(u.fragment+=fe(i,le))}f++}},parseHost:function(e){var t,r,n;if("["===R(e,0)){if("]"!==R(e,e.length-1))return q;if(t=function(e){var t,r,n,o,i,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,d=function(){return R(e,f)};if(":"===d()){if(":"!==R(e,1))return;f+=2,c=++u}for(;d();){if(8===u)return;if(":"!==d()){for(t=r=0;r<4&&N(ee,d());)t=16*t+C(d(),16),f++,r++;if("."===d()){if(0===r)return;if(f-=r,u>6)return;for(n=0;d();){if(o=null,n>0){if(!("."===d()&&n<4))return;f++}if(!N(X,d()))return;for(;N(X,d());){if(i=C(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}l[u]=256*l[u]+o,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;f++,c=++u}}if(null!==c)for(a=u-c,u=7;0!==u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!==u)return;return l}(H(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=y(e),N(te,e))return q;if(t=function(e){var t,r,n,o,i,a,s,l=F(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(o=l[n]))return e;if(i=10,o.length>1&&"0"===R(o,0)&&(i=N(Y,o)?16:8,o=H(o,8===i?1:2)),""===o)a=0;else{if(!N(10===i?J:8===i?Q:ee,o))return e;a=C(o,i)}z(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=_(256,5-t))return null}else if(a>255)return null;for(s=L(r),n=0;n<r.length;n++)s+=r[n]*_(256,3-n);return s}(e),null===t)return q;this.host=t}else{if(N(re,e))return q;for(t="",r=v(e),n=0;n<r.length;n++)t+=fe(r[n],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(de,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=ae(o),null!==i&&(u+=":"+i)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+D(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw new T(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new ze(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",ge)},getUsername:function(){return this.username},setUsername:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=fe(t[r],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=fe(t[r],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,je)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,Ie))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+D(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,_e))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===R(e,0)&&(e=H(e,1)),this.query="",this.parse(e,De)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===R(e,0)&&(e=H(e,1)),this.fragment="",this.parse(e,Me)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var ze=function(e){var t=d(this,We),r=O(arguments.length,1)>1?arguments[1]:void 0,n=A(t,new Le(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},We=ze.prototype,Be=function(e,t){return{get:function(){return P(this)[e]()},set:t&&function(e){return P(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(We,"href",Be("serialize","setHref")),f(We,"origin",Be("getOrigin")),f(We,"protocol",Be("getProtocol","setProtocol")),f(We,"username",Be("getUsername","setUsername")),f(We,"password",Be("getPassword","setPassword")),f(We,"host",Be("getHost","setHost")),f(We,"hostname",Be("getHostname","setHostname")),f(We,"port",Be("getPort","setPort")),f(We,"pathname",Be("getPathname","setPathname")),f(We,"search",Be("getSearch","setSearch")),f(We,"searchParams",Be("getSearchParams")),f(We,"hash",Be("getHash","setHash"))),c(We,"toJSON",(function(){return P(this).serialize()}),{enumerable:!0}),c(We,"toString",(function(){return P(this).serialize()}),{enumerable:!0}),I){var Fe=I.createObjectURL,He=I.revokeObjectURL;Fe&&c(ze,"createObjectURL",l(Fe,I)),He&&c(ze,"revokeObjectURL",l(He,I))}w(ze,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:ze})},269:(e,t,r)=>{"use strict";r(83759)},55629:(e,t,r)=>{"use strict";var n=r(63485),o=r(23736);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},69113:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Mosaic=t.MosaicWithoutDragDropContext=void 0;var s=a(r(76973)),l=(a(r(78621)),a(r(3115)),a(r(13423)),r(7216)),u=a(r(78281)),c=r(44783),f=r(67373),d=r(56804),p=r(35949),h=r(13749),v=r(73226),g=r(60852),m=r(87104);r(2614);function y(e){return null!=e.initialValue}var b=function(e){function t(){var t,r=this;return(r=e.apply(this,arguments)||this).state={currentNode:null,lastInitialValue:null,mosaicId:null!==(t=r.props.mosaicId)&&void 0!==t?t:(0,d.v4)()},r.updateRoot=function(e,t){void 0===t&&(t=!1);var n=r.getRoot()||{};r.replaceRoot((0,m.updateTree)(n,e),t)},r.replaceRoot=function(e,t){void 0===t&&(t=!1),r.props.onChange(e),!t&&r.props.onRelease&&r.props.onRelease(e),y(r.props)&&r.setState({currentNode:e})},r.actions={updateTree:r.updateRoot,remove:function(e){0===e.length?r.replaceRoot(null):r.updateRoot([(0,m.createRemoveUpdate)(r.getRoot(),e)])},expand:function(e,t){return void 0===t&&(t=70),r.updateRoot([(0,m.createExpandUpdate)(e,t)])},getRoot:function(){return r.getRoot()},hide:function(e){return r.updateRoot([(0,m.createHideUpdate)(e)])},replaceWith:function(e,t){return r.updateRoot([{path:e,spec:{$set:t}}])}},r.childContext={mosaicActions:r.actions,mosaicId:r.state.mosaicId,blueprintNamespace:r.props.blueprintNamespace},r}return o(t,e),t.getDerivedStateFromProps=function(e,t){return e.mosaicId&&(t.mosaicId,e.mosaicId),y(e)&&e.initialValue!==t.lastInitialValue?{lastInitialValue:e.initialValue,currentNode:e.initialValue}:null},t.prototype.render=function(){var e=this.props.className;return u.default.createElement(p.MosaicContext.Provider,{value:this.childContext},u.default.createElement("div",{className:(0,s.default)(e,"mosaic mosaic-drop-target")},this.renderTree(),u.default.createElement(g.RootDropTargets,null)))},t.prototype.getRoot=function(){return y(this.props)?this.state.currentNode:this.props.value},t.prototype.renderTree=function(){var e=this.getRoot();if(this.validateTree(e),null==e)return this.props.zeroStateView;var t=this.props,r=t.renderTile,n=t.resize;return u.default.createElement(h.MosaicRoot,{root:e,renderTile:r,resize:n})},t.prototype.validateTree=function(e){},t.defaultProps={onChange:function(){},zeroStateView:u.default.createElement(v.MosaicZeroState,null),className:"mosaic-blueprint-theme",blueprintNamespace:"bp3"},t}(u.default.PureComponent);t.MosaicWithoutDragDropContext=b;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return u.default.createElement(c.DndProvider,i({backend:f.MultiBackend,options:l.HTML5toTouch},this.props.dragAndDropManager&&{manager:this.props.dragAndDropManager}),u.default.createElement(b,i({},this.props)))},t}(u.default.PureComponent);t.Mosaic=w},65153:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDropTarget=void 0;var s=a(r(76973)),l=i(r(78281)),u=r(44783),c=r(35949),f=r(9664);t.MosaicDropTarget=function(e){var t=e.path,r=e.position,n=(0,l.useContext)(c.MosaicContext).mosaicId,o=(0,u.useDrop)({accept:f.MosaicDragType.WINDOW,drop:function(e,o){return n===(null==e?void 0:e.mosaicId)?{path:t,position:r}:{}},collect:function(e){return{isOver:e.isOver(),draggedMosaicId:(e.getItem()||{}).mosaicId}}}),i=o[0],a=i.isOver,d=i.draggedMosaicId,p=o[1];return l.default.createElement("div",{ref:p,className:(0,s.default)("drop-target",r,{"drop-target-hover":a&&d===n})})}},13749:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicRoot=void 0;var s=a(r(94881)),l=a(r(78281)),u=r(35949),c=r(96269),f=r(10631),d=r(2614),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onResize=function(e,r,n){t.context.mosaicActions.updateTree([{path:r,spec:{splitPercentage:{$set:e}}}],n)},t}return o(t,e),t.prototype.render=function(){var e=this.props.root;return l.default.createElement("div",{className:"mosaic-root"},this.renderRecursively(e,f.BoundingBox.empty(),[]))},t.prototype.renderRecursively=function(e,t,r){if((0,d.isParent)(e)){var n=null==e.splitPercentage?50:e.splitPercentage,o=f.BoundingBox.split(t,n,e.direction),a=o.first,u=o.second;return(0,s.default)([this.renderRecursively(e.first,a,r.concat("first")),this.renderSplit(e.direction,t,n,r),this.renderRecursively(e.second,u,r.concat("second"))].filter(h))}return l.default.createElement("div",{key:e,className:"mosaic-tile",style:i({},f.BoundingBox.asStyles(t))},this.props.renderTile(e,r))},t.prototype.renderSplit=function(e,t,r,n){var o=this,a=this.props.resize;return"DISABLED"!==a?l.default.createElement(c.Split,i({key:n.join(",")+"splitter"},a,{boundingBox:t,splitPercentage:r,direction:e,onChange:function(e){return o.onResize(e,n,!0)},onRelease:function(e){return o.onResize(e,n,!1)}})):null},t.contextType=u.MosaicContext,t}(l.default.PureComponent);function h(e){return null!==e}t.MosaicRoot=p},91773:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return s(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicWindow=t.InternalMosaicWindow=void 0;var c=u(r(76973)),f=u(r(53875)),d=u(r(34542)),p=u(r(47114)),h=u(r(15031)),v=u(r(37337)),g=l(r(78281)),m=r(44783),y=r(45257),b=r(15768),w=r(35949),O=r(86435),x=r(65153),S=r(9664),A=r(87104),P=r(2614),j=r(31409),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={additionalControlsOpen:!1},t.rootElement=null,t.renderDropTarget=function(e){var r=t.props.path;return g.default.createElement(x.MosaicDropTarget,{position:e,path:r,key:e})},t.split=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.checkCreateNode();var n=t.props,o=n.createNode,i=n.path,a=t.context.mosaicActions,s=a.getRoot(),l=t.rootElement.offsetWidth>t.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,e)).then((function(e){return a.replaceWith(i,{direction:l,second:e,first:(0,P.getAndAssertNodeAtPathExists)(s,i)})}))},t.swap=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.checkCreateNode();var n=t.context.mosaicActions,o=t.props,i=o.createNode,a=o.path;return Promise.resolve(i.apply(void 0,e)).then((function(e){return n.replaceWith(a,e)}))},t.setAdditionalControlsOpen=function(e){var r,n,o="toggle"===e?!t.state.additionalControlsOpen:e;t.setState({additionalControlsOpen:o}),null===(n=(r=t.props).onAdditionalControlsToggle)||void 0===n||n.call(r,o)},t.getPath=function(){return t.props.path},t.connectDragSource=function(e){return(0,t.props.connectDragSource)(e)},t.childContext={blueprintNamespace:t.context.blueprintNamespace,mosaicWindowActions:{split:t.split,replaceWithNew:t.swap,setAdditionalControlsOpen:t.setAdditionalControlsOpen,getPath:t.getPath,connectDragSource:t.connectDragSource}},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.className,n=t.isOver,o=t.renderPreview,i=t.additionalControls,a=t.connectDropTarget,s=t.connectDragPreview,l=t.draggedMosaicId,u=t.disableAdditionalControlsOverlay;return g.default.createElement(w.MosaicWindowContext.Provider,{value:this.childContext},a(g.default.createElement("div",{className:(0,c.default)("mosaic-window mosaic-drop-target",r,{"drop-target-hover":n&&l===this.context.mosaicId,"additional-controls-open":this.state.additionalControlsOpen}),ref:function(t){return e.rootElement=t}},this.renderToolbar(),g.default.createElement("div",{className:"mosaic-window-body"},this.props.children),!u&&g.default.createElement("div",{className:"mosaic-window-body-overlay",onClick:function(){e.setAdditionalControlsOpen(!1)}}),g.default.createElement("div",{className:"mosaic-window-additional-actions-bar"},i),s(o(this.props)),g.default.createElement("div",{className:"drop-target-container"},(0,v.default)(O.MosaicDropTargetPosition).map(this.renderDropTarget)))))},t.prototype.getToolbarControls=function(){var e=this.props,t=e.toolbarControls,r=e.createNode;return t||(r?y.DEFAULT_CONTROLS_WITH_CREATION:y.DEFAULT_CONTROLS_WITHOUT_CREATION)},t.prototype.renderToolbar=function(){var e,t=this,r=this.props,n=r.title,o=r.draggable,i=r.additionalControls,a=r.additionalControlButtonText,s=r.path,l=r.renderToolbar,u=this.state.additionalControlsOpen,f=this.getToolbarControls(),d=o&&s.length>0,h=d?this.props.connectDragSource:function(e){return e};if(l){var v=h(l(this.props,o));return g.default.createElement("div",{className:(0,c.default)("mosaic-window-toolbar",{draggable:d})},v)}var m=h(g.default.createElement("div",{title:n,className:"mosaic-window-title"},n)),y=!(0,p.default)(i);return g.default.createElement("div",{className:(0,c.default)("mosaic-window-toolbar",{draggable:d})},m,g.default.createElement("div",{className:(0,c.default)("mosaic-window-controls",j.OptionalBlueprint.getClasses("BUTTON_GROUP"))},y&&g.default.createElement("button",{onClick:function(){return t.setAdditionalControlsOpen(!u)},className:(0,c.default)(j.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),j.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(e={},e[j.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=u,e))},g.default.createElement("span",{className:"control-text"},a)),y&&g.default.createElement(b.Separator,null),f))},t.prototype.checkCreateNode=function(){if(null==this.props.createNode)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(e){var t=e.title;return g.default.createElement("div",{className:"mosaic-preview"},g.default.createElement("div",{className:"mosaic-window-toolbar"},g.default.createElement("div",{className:"mosaic-window-title"},t)),g.default.createElement("div",{className:"mosaic-window-body"},g.default.createElement("h4",null,t),g.default.createElement(j.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=w.MosaicContext,t}(g.default.Component);function I(e){var t=(0,g.useContext)(w.MosaicContext),r=t.mosaicActions,n=t.mosaicId,o=(0,m.useDrag)({type:S.MosaicDragType.WINDOW,item:function(t){e.onDragStart&&e.onDragStart();var o=(0,f.default)((function(){return r.hide(e.path)}));return{mosaicId:n,hideTimer:o}},end:function(t,n){var o=t.hideTimer;window.clearTimeout(o);var i=e.path,a=n.getDropResult()||{},s=a.position,l=a.path;null==s||null==l||(0,h.default)(l,i)?(r.updateTree([{path:(0,d.default)(i),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset")):(r.updateTree((0,A.createDragToUpdates)(r.getRoot(),i,l,s)),e.onDragEnd&&e.onDragEnd("drop"))}}),a=o[1],s=o[2],l=(0,m.useDrop)({accept:S.MosaicDragType.WINDOW,collect:function(e){var t;return{isOver:e.isOver(),draggedMosaicId:null===(t=e.getItem())||void 0===t?void 0:t.mosaicId}}}),u=l[0],c=u.isOver,p=u.draggedMosaicId,v=l[1];return g.default.createElement(E,i({},e,{connectDragPreview:s,connectDragSource:a,connectDropTarget:v,isOver:c,draggedMosaicId:p}))}t.InternalMosaicWindow=E;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return g.default.createElement(I,i({},this.props))},t}(g.default.PureComponent);t.MosaicWindow=T},73226:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicZeroState=void 0;var a=i(r(76973)),s=i(r(35439)),l=i(r(78281)),u=r(35949),c=r(31409),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.replace=function(){return Promise.resolve(t.props.createNode()).then((function(e){return t.context.mosaicActions.replaceWith([],e)})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return l.default.createElement("div",{className:(0,a.default)("mosaic-zero-state",c.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"NON_IDEAL_STATE"))},l.default.createElement("div",{className:c.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"NON_IDEAL_STATE_VISUAL")},l.default.createElement(c.OptionalBlueprint.Icon,{className:"default-zero-state-icon",size:"large",icon:"APPLICATIONS"})),l.default.createElement("h4",{className:c.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"HEADING")},"No Windows Present"),l.default.createElement("div",null,this.props.createNode&&l.default.createElement("button",{className:(0,a.default)(c.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON"),c.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD")),onClick:this.replace},"Add New Window")))},t.contextType=u.MosaicContext,t}(l.default.PureComponent);t.MosaicZeroState=f},60852:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootDropTargets=void 0;var o=n(r(76973)),i=n(r(37337)),a=n(r(78281)),s=r(44783),l=r(86435),u=r(65153),c=r(9664);t.RootDropTargets=a.default.memo((function(){var e=function(e,t){var r=a.default.useRef(e),n=a.default.useState(0)[1],o=function(e){r.current=e,n((function(e){return e+1}))};e||(r.current=!1);return a.default.useEffect((function(){if(r.current!==e&&e){var n=window.setTimeout((function(){return o(!0)}),t);return function(){window.clearTimeout(n)}}}),[e]),r.current}((0,s.useDrop)({accept:c.MosaicDragType.WINDOW,collect:function(e){return{isDragging:null!==e.getItem()&&e.getItemType()===c.MosaicDragType.WINDOW}}})[0].isDragging,0);return a.default.createElement("div",{className:(0,o.default)("drop-target-container",{"-dragging":e})},(0,i.default)(l.MosaicDropTargetPosition).map((function(e){return a.default.createElement(u.MosaicDropTarget,{position:e,path:[],key:e})})))})),t.RootDropTargets.displayName="RootDropTargets"},96269:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Split=void 0;var s=a(r(76973)),l=a(r(15004)),u=a(r(8771)),c=a(r(78281)),f=r(10631),d=1e3/30,p={capture:!0,passive:!1},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElement=c.default.createRef(),t.listenersBound=!1,t.onMouseDown=function(e){(v(e)||0===e.button)&&(e.preventDefault(),t.bindListeners())},t.onMouseUp=function(e){t.unbindListeners();var r=t.calculateRelativePercentage(e);t.props.onRelease(r)},t.onMouseMove=function(e){e.preventDefault(),t.throttledUpdatePercentage(e)},t.throttledUpdatePercentage=(0,u.default)((function(e){var r=t.calculateRelativePercentage(e);r!==t.props.splitPercentage&&t.props.onChange(r)}),d),t}return o(t,e),t.prototype.render=function(){var e=this.props.direction;return c.default.createElement("div",{className:(0,s.default)("mosaic-split",{"-row":"row"===e,"-column":"column"===e}),ref:this.rootElement,onMouseDown:this.onMouseDown,style:this.computeStyle()},c.default.createElement("div",{className:"mosaic-split-line"}))},t.prototype.componentDidMount=function(){this.rootElement.current.addEventListener("touchstart",this.onMouseDown,p)},t.prototype.componentWillUnmount=function(){this.unbindListeners(),this.rootElement.current&&this.rootElement.current.ownerDocument.removeEventListener("touchstart",this.onMouseDown,p)},t.prototype.bindListeners=function(){this.listenersBound||(this.rootElement.current.ownerDocument.addEventListener("mousemove",this.onMouseMove,!0),this.rootElement.current.ownerDocument.addEventListener("touchmove",this.onMouseMove,p),this.rootElement.current.ownerDocument.addEventListener("mouseup",this.onMouseUp,!0),this.rootElement.current.ownerDocument.addEventListener("touchend",this.onMouseUp,!0),this.listenersBound=!0)},t.prototype.unbindListeners=function(){this.rootElement.current&&(this.rootElement.current.ownerDocument.removeEventListener("mousemove",this.onMouseMove,!0),this.rootElement.current.ownerDocument.removeEventListener("touchmove",this.onMouseMove,p),this.rootElement.current.ownerDocument.removeEventListener("mouseup",this.onMouseUp,!0),this.rootElement.current.ownerDocument.removeEventListener("touchend",this.onMouseUp,!0),this.listenersBound=!1)},t.prototype.computeStyle=function(){var e,t=this.props,r=t.boundingBox,n=t.direction,o=t.splitPercentage,a="column"===n?"top":"left",s=f.BoundingBox.getAbsoluteSplitPercentage(r,o,n);return i(i({},f.BoundingBox.asStyles(r)),((e={})[a]="".concat(s,"%"),e))},t.prototype.calculateRelativePercentage=function(e){var t,r=this.props,n=r.minimumPaneSizePercentage,o=r.direction,i=r.boundingBox,a=this.rootElement.current.parentElement.getBoundingClientRect(),s=v(e)?e.changedTouches[0]:e;t="column"===o?(s.clientY-a.top)/a.height*100:(s.clientX-a.left)/a.width*100;var u=f.BoundingBox.getRelativeSplitPercentage(i,t,o);return(0,l.default)(u,n,100-n)},t.defaultProps={onChange:function(){},onRelease:function(){},minimumPaneSizePercentage:20},t}(c.default.PureComponent);function v(e){return null!=e.changedTouches}t.Split=h},59079:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandButton=void 0;var a=i(r(76973)),s=i(r(78281)),l=r(35949),u=r(31409),c=r(6359),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s.default.createElement(l.MosaicContext.Consumer,null,(function(t){var r=t.mosaicActions;return s.default.createElement(c.DefaultToolbarButton,{title:"Expand",className:(0,a.default)("expand-button",u.OptionalBlueprint.getIconClass(e.context.blueprintNamespace,"MAXIMIZE")),onClick:e.createExpand(r)})}))},t.prototype.createExpand=function(e){var t=this;return function(){e.expand(t.context.mosaicWindowActions.getPath()),t.props.onClick&&t.props.onClick()}},t.contextType=l.MosaicWindowContext,t}(s.default.PureComponent);t.ExpandButton=f},6359:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultToolbarButton=t.DefaultToolbarButton=void 0;var o=n(r(76973)),i=n(r(78281)),a=r(35949),s=r(31409);t.DefaultToolbarButton=function(e){var t=e.title,r=e.className,n=e.onClick,l=e.text,u=i.default.useContext(a.MosaicContext).blueprintNamespace;return i.default.createElement("button",{title:t,onClick:n,className:(0,o.default)("mosaic-default-control",s.OptionalBlueprint.getClasses(u,"BUTTON","MINIMAL"),r)},l&&i.default.createElement("span",{className:"control-text"},l))};t.createDefaultToolbarButton=function(e,r,n,o){return i.default.createElement(t.DefaultToolbarButton,{title:e,className:r,onClick:n,text:o})}},28740:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButton=void 0;var a=i(r(76973)),s=i(r(78281)),l=r(35949),u=r(31409),c=r(6359),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s.default.createElement(l.MosaicContext.Consumer,null,(function(t){var r=t.mosaicActions,n=t.blueprintNamespace;return s.default.createElement(c.DefaultToolbarButton,{title:"Close Window",className:(0,a.default)("close-button",u.OptionalBlueprint.getIconClass(n,"CROSS")),onClick:e.createRemove(r)})}))},t.prototype.createRemove=function(e){var t=this;return function(){e.remove(t.context.mosaicWindowActions.getPath()),t.props.onClick&&t.props.onClick()}},t.contextType=l.MosaicWindowContext,t}(s.default.PureComponent);t.RemoveButton=f},41415:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaceButton=void 0;var a=i(r(76973)),s=i(r(35439)),l=i(r(78281)),u=r(35949),c=r(31409),f=r(6359),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.replace=function(){t.context.mosaicWindowActions.replaceWithNew().then((function(){t.props.onClick&&t.props.onClick()})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return l.default.createElement(f.DefaultToolbarButton,{title:"Replace Window",className:(0,a.default)("replace-button",c.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=u.MosaicWindowContext,t}(l.default.PureComponent);t.ReplaceButton=d},15768:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=void 0;var a=i(r(78281)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return a.default.createElement("div",{className:"separator"})},t}(a.default.PureComponent);t.Separator=s},54207:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitButton=void 0;var a=i(r(76973)),s=i(r(35439)),l=i(r(78281)),u=r(35949),c=r(31409),f=r(6359),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.split=function(){t.context.mosaicWindowActions.split().then((function(){t.props.onClick&&t.props.onClick()})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return l.default.createElement(f.DefaultToolbarButton,{title:"Split Window",className:(0,a.default)("split-button",c.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=u.MosaicWindowContext,t}(l.default.PureComponent);t.SplitButton=d},45257:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONTROLS_WITHOUT_CREATION=t.DEFAULT_CONTROLS_WITH_CREATION=void 0;var o=n(r(78281)),i=r(59079),a=r(28740),s=r(41415),l=r(54207);t.DEFAULT_CONTROLS_WITH_CREATION=o.default.Children.toArray([o.default.createElement(s.ReplaceButton,null),o.default.createElement(l.SplitButton,null),o.default.createElement(i.ExpandButton,null),o.default.createElement(a.RemoveButton,null)]),t.DEFAULT_CONTROLS_WITHOUT_CREATION=o.default.Children.toArray([o.default.createElement(i.ExpandButton,null),o.default.createElement(a.RemoveButton,null)])},35949:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicWindowContext=t.MosaicContext=void 0;var o=n(r(78281));t.MosaicContext=o.default.createContext(void 0),t.MosaicWindowContext=o.default.createContext(void 0)},66833:(e,t,r)=>{"use strict";t.XF=t.Lg=t.fj=t.r3=void 0;var n=r(69113);Object.defineProperty(t,"r3",{enumerable:!0,get:function(){return n.Mosaic}});var o=r(9664);var i=r(35949);var a=r(87104);var s=r(2614);Object.defineProperty(t,"fj",{enumerable:!0,get:function(){return s.createBalancedTreeFromLeaves}}),Object.defineProperty(t,"Lg",{enumerable:!0,get:function(){return s.getLeaves}});var l=r(91773);Object.defineProperty(t,"XF",{enumerable:!0,get:function(){return l.MosaicWindow}});var u=r(6359);var c=r(73226);var f=r(15768);var d=r(59079);var p=r(41415);var h=r(54207);var v=r(28740);var g=r(45257)},86435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDropTargetPosition=void 0,t.MosaicDropTargetPosition={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"}},9664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDragType=void 0,t.MosaicDragType={WINDOW:"MosaicWindow"}},10631:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.BoundingBox=void 0;var o=r(2378);!function(e){function t(e,t,r){var n=e.top,i=e.right,a=e.bottom,s=e.left;return"column"===r?(100-n-a)*t/100+n:"row"===r?(100-i-s)*t/100+s:(0,o.assertNever)(r)}e.empty=function(){return{top:0,right:0,bottom:0,left:0}},e.split=function(e,r,i){var a=t(e,r,i);return"column"===i?{first:n(n({},e),{bottom:100-a}),second:n(n({},e),{top:a})}:"row"===i?{first:n(n({},e),{right:100-a}),second:n(n({},e),{left:a})}:(0,o.assertNever)(i)},e.getAbsoluteSplitPercentage=t,e.getRelativeSplitPercentage=function(e,t,r){var n=e.top,i=e.right,a=e.bottom,s=e.left;return"column"===r?(t-n)/(100-n-a)*100:"row"===r?(t-s)/(100-i-s)*100:(0,o.assertNever)(r)},e.asStyles=function(e){var t=e.top,r=e.right,n=e.bottom,o=e.left;return{top:"".concat(t,"%"),right:"".concat(r,"%"),bottom:"".concat(n,"%"),left:"".concat(o,"%")}}}(t.BoundingBox||(t.BoundingBox={}))},31409:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBlueprint=void 0;var s=a(r(76973)),l=a(r(6350)),u=i(r(78281)),c=r(35949);!function(e){function t(e,t){return"".concat(e,"-icon-").concat((0,l.default)(t))}e.Icon=function(e){var r=e.icon,n=e.className,o=e.size,i=void 0===o?"standard":o,a=u.useContext(c.MosaicContext).blueprintNamespace;return u.createElement("span",{className:(0,s.default)(n,t(a,r),"".concat(a,"-icon-").concat(i))})},e.getClasses=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.map((function(t){return"".concat(e,"-").concat((0,l.default)(t))})).join(" ")},e.getIconClass=t}(t.OptionalBlueprint||(t.OptionalBlueprint={}))},2378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNever=void 0,t.assertNever=function(e){throw new Error("Unhandled case: "+JSON.stringify(e))}},87104:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createExpandUpdate=t.createHideUpdate=t.createDragToUpdates=t.createRemoveUpdate=t.updateTree=t.buildSpecFromUpdate=void 0;var o=n(r(46731)),i=n(r(18358)),a=n(r(34542)),s=n(r(15031)),l=n(r(5751)),u=n(r(33919)),c=n(r(80528)),f=r(86435),d=r(2614);function p(e){return e.path.length>0?(0,u.default)({},e.path,e.spec):e.spec}function h(e,t){var r=e;return t.forEach((function(e){r=(0,o.default)(r,p(e))})),r}function v(e,t){var r=(0,a.default)(t),n=(0,l.default)(t),o=r.concat((0,d.getOtherBranch)(n));return{path:r,spec:{$set:(0,d.getAndAssertNodeAtPathExists)(e,o)}}}function g(e,t,r){return(0,s.default)((0,c.default)(e,r),(0,c.default)(t,r))}t.buildSpecFromUpdate=p,t.updateTree=h,t.createRemoveUpdate=v,t.createDragToUpdates=function(e,t,r,n){var o=(0,d.getAndAssertNodeAtPathExists)(e,r),a=[];g(t,r,r.length)?o=h(o,[v(o,(0,i.default)(t,r.length))]):(a.push(v(e,t)),g(t,r,t.length-1)&&r.splice(t.length-1,1));var s,l,u=(0,d.getAndAssertNodeAtPathExists)(e,t);n===f.MosaicDropTargetPosition.LEFT||n===f.MosaicDropTargetPosition.TOP?(s=u,l=o):(s=o,l=u);var c="column";return n!==f.MosaicDropTargetPosition.LEFT&&n!==f.MosaicDropTargetPosition.RIGHT||(c="row"),a.push({path:r,spec:{$set:{first:s,second:l,direction:c}}}),a},t.createHideUpdate=function(e){return{path:(0,a.default)(e),spec:{splitPercentage:{$set:"first"===(0,l.default)(e)?0:100}}}},t.createExpandUpdate=function(e,t){for(var r,n={},o=e.length-1;o>=0;o--){var i=e[o];(r={splitPercentage:{$set:"first"===i?t:100-t}})[i]=n,n=r}return{spec:n,path:[]}}},2614:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAndAssertNodeAtPathExists=t.getNodeAtPath=t.getLeaves=t.getPathToCorner=t.getOtherDirection=t.getOtherBranch=t.createBalancedTreeFromLeaves=t.isParent=t.Corner=void 0;var o,i=n(r(25630)),a=n(r(41499));function s(e,t){if(void 0===t&&(t="row"),l(e)){var r=u(t);return{direction:t,first:s(e.first,r),second:s(e.second,r)}}return e}function l(e){return null!=e.direction}function u(e){return"row"===e?"column":"row"}function c(e,t){return t.length>0?(0,a.default)(e,t,null):e}!function(e){e[e.TOP_LEFT=1]="TOP_LEFT",e[e.TOP_RIGHT=2]="TOP_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=4]="BOTTOM_RIGHT"}(o=t.Corner||(t.Corner={})),t.isParent=l,t.createBalancedTreeFromLeaves=function(e,t){if(void 0===t&&(t="row"),0===e.length)return null;for(var r=(0,i.default)(e),n=[];r.length>1;){for(;r.length>0;)r.length>1?n.push({direction:"row",first:r.shift(),second:r.shift()}):n.unshift(r.shift());r=n,n=[]}return s(r[0],t)},t.getOtherBranch=function(e){if("first"===e)return"second";if("second"===e)return"first";throw new Error("Branch '".concat(e,"' not a valid branch"))},t.getOtherDirection=u,t.getPathToCorner=function(e,t){for(var r=e,n=[];l(r);)("row"!==r.direction||t!==o.TOP_LEFT&&t!==o.BOTTOM_LEFT)&&("column"!==r.direction||t!==o.TOP_LEFT&&t!==o.TOP_RIGHT)?(n.push("second"),r=r.second):(n.push("first"),r=r.first);return n},t.getLeaves=function e(t){return null==t?[]:l(t)?e(t.first).concat(e(t.second)):[t]},t.getNodeAtPath=c,t.getAndAssertNodeAtPathExists=function(e,t){if(null==e)throw new Error("Root is empty, cannot fetch path");var r=c(e,t);if(null==r)throw new Error("Path [".concat(t.join(", "),"] did not resolve to a node"));return r}},5134:(e,t)=>{"use strict";function r(e,t,r,n){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function l(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var f=this,d=Date.now()-a;function p(){a=Date.now(),r.apply(f,u)}i||(n&&!o&&p(),s(),void 0===n&&d>e?p():!0!==t&&(o=setTimeout(n?function(){o=void 0}:p,void 0===n?e-d:e)))}return"boolean"!=typeof t&&(n=r,r=t,t=void 0),l.cancel=function(){s(),i=!0},l}Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)},t.throttle=r},42885:e=>{"use strict";var t,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(a,{createSelector:()=>U,createSelectorCreator:()=>H,createStructuredSelector:()=>V,lruMemoize:()=>D,referenceEqualityCheck:()=>R,setGlobalDevModeChecks:()=>l,unstable_autotrackMemoize:()=>M,weakMapMemoize:()=>F}),e.exports=(t=a,((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of o(t))i.call(e,l)||l===a||r(e,l,{get:()=>t[l],enumerable:!(s=n(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),t));var s={inputStabilityCheck:"once",identityFunctionCheck:"once"},l=e=>{Object.assign(s,e)},u="NOT_FOUND";function c(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var f=e=>Array.isArray(e)?e:[e];function d(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const r=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}var p=0,h=null,v=class{revision=p;_value;_lastValue;_isEqual=g;constructor(e,t=g){this._value=this._lastValue=e,this._isEqual=t}get value(){return h?.add(this),this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++p)}};function g(e,t){return e===t}var m=class{_cachedValue;_cachedRevision=-1;_deps=[];hits=0;fn;constructor(e){this.fn=e}clear(){this._cachedValue=void 0,this._cachedRevision=-1,this._deps=[],this.hits=0}get value(){if(this.revision>this._cachedRevision){const{fn:e}=this,t=new Set,r=h;h=t,this._cachedValue=e(),h=r,this.hits++,this._deps=Array.from(t),this._cachedRevision=this.revision}return h?.add(this),this._cachedValue}get revision(){return Math.max(...this._deps.map((e=>e.revision)),0)}};function y(e){return e instanceof v||console.warn("Not a valid cell! ",e),e.value}var b=(e,t)=>!1;function w(){return function(e,t=g){return new v(e,t)}(null,b)}function O(e,t){!function(e,t){if(!(e instanceof v))throw new TypeError("setValue must be passed a tracked store created with `createStorage`.");e.value=e._lastValue=t}(e,t)}var x=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=w()),y(t)},S=e=>{const t=e.collectionTag;null!==t&&O(t,null)},A=(Symbol(),0),P=Object.getPrototypeOf({}),j=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,E);tag=w();tags={};children={};collectionTag=null;id=A++},E={get:(e,t)=>function(){const{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t)return n;if(t in P)return n;if("object"==typeof n&&null!==n){let r=e.children[t];return void 0===r&&(r=e.children[t]=C(n)),r.tag&&y(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&(r=e.tags[t]=w(),r.value=n),y(r),n}}(),ownKeys:e=>(x(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},I=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],T);tag=w();tags={};children={};collectionTag=null;id=A++},T={get:([e],t)=>("length"===t&&x(e),E.get(e,t)),ownKeys:([e])=>E.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>E.getOwnPropertyDescriptor(e,t),has:([e],t)=>E.has(e,t)};function C(e){return Array.isArray(e)?new I(e):new j(e)}function k(e,t){const{value:r,tags:n,children:o}=e;if(e.value=t,Array.isArray(r)&&Array.isArray(t)&&r.length!==t.length)S(e);else if(r!==t){let n=0,o=0,i=!1;for(const e in r)n++;for(const e in t)if(o++,!(e in r)){i=!0;break}(i||n!==o)&&S(e)}for(const o in n){const i=r[o],a=t[o];i!==a&&(S(e),O(n[o],a)),"object"==typeof a&&null!==a&&delete n[o]}for(const e in o){const r=o[e],n=t[e];r.value!==n&&("object"==typeof n&&null!==n?k(r,n):(_(r),delete o[e]))}}function _(e){e.tag&&O(e.tag,null),S(e);for(const t in e.tags)O(e.tags[t],null);for(const t in e.children)_(e.children[t])}var R=(e,t)=>e===t;function N(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;const{length:n}=t;for(let o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}}function D(e,t){const r="object"==typeof t?t:{equalityCheck:t},{equalityCheck:n=R,maxSize:o=1,resultEqualityCheck:i}=r,a=N(n);let s=0;const l=1===o?function(e){let t;return{get:r=>t&&e(t.key,r)?t.value:u,put(e,r){t={key:e,value:r}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(a):function(e,t){let r=[];function n(e){const n=r.findIndex((r=>t(e,r.key)));if(n>-1){const e=r[n];return n>0&&(r.splice(n,1),r.unshift(e)),e.value}return u}return{get:n,put:function(t,o){n(t)===u&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(o,a);function c(){let t=l.get(arguments);if(t===u){if(t=e.apply(null,arguments),s++,i){const e=l.getEntries().find((e=>i(e.value,t)));e&&(t=e.value,0!==s&&s--)}l.put(arguments,t)}return t}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}function M(e){const t=C([]);let r=null;const n=N(R),o=(c(i=()=>e.apply(null,t.proxy),"the first parameter to `createCache` must be a function"),new m(i));var i;function a(){return n(r,arguments)||(k(t,arguments),r=arguments),o.value}return a.clearCache=()=>o.clear(),a}var L="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},z=0,W=1;function B(){return{s:z,v:void 0,o:null,p:null}}function F(e,t={}){let r=B();const{resultEqualityCheck:n}=t;let o,i=0;function a(){let t=r;const{length:a}=arguments;for(let e=0,r=a;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=B(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=B(),e.set(r,t)):t=n}}const s=t;let l;if(t.s===W?l=t.v:(l=e.apply(null,arguments),i++),s.s=W,n){const e=o?.deref?.()??o;null!=e&&n(e,l)&&(l=e,0!==i&&i--);o="object"==typeof l&&null!==l||"function"==typeof l?new L(l):l}return s.v=l,l}return a.clearCache=()=>{r=B(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function H(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),c(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...r,...i},{memoize:l,memoizeOptions:u=[],argsMemoize:p=F,argsMemoizeOptions:h=[],devModeChecks:v={}}=s,g=f(u),m=f(h),y=d(e),b=l((function(){return n++,a.apply(null,arguments)}),...g);const w=p((function(){o++;const e=function(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}(y,arguments);return t=b.apply(null,e),t}),...m);return Object.assign(w,{resultFunc:a,memoizedResultFunc:b,dependencies:y,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:l,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var U=H(F),V=Object.assign(((e,t=U)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map((t=>e[t])),((...e)=>e.reduce(((e,t,n)=>(e[r[n]]=t,e)),{})))}),{withTypes:()=>V})},87354:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},63063:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},37227:(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{A:()=>o})},5550:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{A:()=>n})},88297:(e,t,r)=>{"use strict";function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return n[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}r.d(t,{V:()=>n})},4349:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],f=t[u];if(!1===(o=r?r.call(n,c,f,u):void 0)||void 0===o&&c!==f)return!1}return!0}r.d(t,{b:()=>n})},20997:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{A:()=>o});const o=function(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}},37543:(e,t,r)=>{"use strict";function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.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)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Ik:()=>_,U2:()=>T,eV:()=>C,lr:()=>k,nf:()=>N,v8:()=>R});var c,f=function(e,t,r){if(!t.has(e))throw TypeError("Cannot "+r)},d=function(e,t,r){return f(e,t,"read from private field"),r?r.call(e):t.get(e)},p=function(e,t,r){if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},h=function(e,t,r,n){return f(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r},v=s((function e(){var t=this;u(this,e),p(this,c,void 0),this.register=function(e){d(t,c).push(e)},this.unregister=function(e){for(var r;-1!==(r=d(t,c).indexOf(e));)d(t,c).splice(r,1)},this.backendChanged=function(e){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(d(t,c));try{for(n.s();!(r=n.n()).done;){r.value.backendChanged(e)}}catch(e){n.e(e)}finally{n.f()}},h(this,c,[])}));c=new WeakMap;var g,m,y,b,w,O,x,S,A,P,j,E=s((function e(t,r,o){var i=this;if(u(this,e),p(this,g,void 0),p(this,m,void 0),p(this,y,void 0),p(this,b,void 0),p(this,w,void 0),p(this,O,(function(e,t,r){var n,o;if(!r.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(r)));var a=r.backend(e,t,r.options),s=r.id,l=!r.id&&a&&a.constructor;if(l&&(s=a.constructor.name),!s)throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(r),"\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx"));if(l&&console.warn("Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.\n This might be unsupported in the future, please specify 'id' explicitely for every backend."),d(i,y)[s])throw new Error("You must specify a unique 'id' property in your Backend entry:\n ".concat(JSON.stringify(r)," (conflicts with: ").concat(JSON.stringify(d(i,y)[s]),")"));return{id:s,instance:a,preview:null!==(n=r.preview)&&void 0!==n&&n,transition:r.transition,skipDispatchOnTransition:null!==(o=r.skipDispatchOnTransition)&&void 0!==o&&o}})),this.setup=function(){if(!(typeof window>"u")){if(e.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");e.isSetUp=!0,d(i,x).call(i,window),d(i,y)[d(i,g)].instance.setup()}},this.teardown=function(){typeof window>"u"||(e.isSetUp=!1,d(i,S).call(i,window),d(i,y)[d(i,g)].instance.teardown())},this.connectDragSource=function(e,t,r){return d(i,j).call(i,"connectDragSource",e,t,r)},this.connectDragPreview=function(e,t,r){return d(i,j).call(i,"connectDragPreview",e,t,r)},this.connectDropTarget=function(e,t,r){return d(i,j).call(i,"connectDropTarget",e,t,r)},this.profile=function(){return d(i,y)[d(i,g)].instance.profile()},this.previewEnabled=function(){return d(i,y)[d(i,g)].preview},this.previewsList=function(){return d(i,m)},this.backendsList=function(){return d(i,b)},p(this,x,(function(e){d(i,b).forEach((function(t){t.transition&&e.addEventListener(t.transition.event,d(i,A))}))})),p(this,S,(function(e){d(i,b).forEach((function(t){t.transition&&e.removeEventListener(t.transition.event,d(i,A))}))})),p(this,A,(function(e){var t=d(i,g);if(d(i,b).some((function(t){return!(t.id===d(i,g)||!t.transition||!t.transition.check(e))&&(h(i,g,t.id),!0)})),d(i,g)!==t){var r;d(i,y)[t].instance.teardown(),Object.keys(d(i,w)).forEach((function(e){var t,r=d(i,w)[e];r.unsubscribe(),r.unsubscribe=(t=d(i,P)).call.apply(t,[i,r.func].concat(n(r.args)))})),d(i,m).backendChanged(i);var o=d(i,y)[d(i,g)];if(o.instance.setup(),o.skipDispatchOnTransition)return;var a=new(0,e.constructor)(e.type,e);null===(r=e.target)||void 0===r||r.dispatchEvent(a)}})),p(this,P,(function(e,t,r,n){return d(i,y)[d(i,g)].instance[e](t,r,n)})),p(this,j,(function(e,t,r,n){var o="".concat(e,"_").concat(t),a=d(i,P).call(i,e,t,r,n);return d(i,w)[o]={func:e,args:[t,r,n],unsubscribe:a},function(){d(i,w)[o].unsubscribe(),delete d(i,w)[o]}})),!o||!o.backends||o.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");h(this,m,new v),h(this,y,{}),h(this,b,[]),o.backends.forEach((function(e){var n=d(i,O).call(i,t,r,e);d(i,y)[n.id]=n,d(i,b).push(n)})),h(this,g,d(this,b)[0].id),h(this,w,{})}));g=new WeakMap,m=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakMap,O=new WeakMap,x=new WeakMap,S=new WeakMap,A=new WeakMap,P=new WeakMap,j=new WeakMap,E.isSetUp=!1;var I=E,T=function(e,t,r){return new I(e,t,r)},C=function(e,t){return{event:e,check:t}},k=C("touchstart",(function(e){var t=e;return null!==t.touches&&void 0!==t.touches})),_=C("dragstart",(function(e){return-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop")})),R=C("mousedown",(function(e){return-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse")})),N=C("pointerdown",(function(e){return"mouse"==e.pointerType}))},7216:(e,t,r)=>{"use strict";function n(e){var t=null;return function(){return null==t&&(t=e()),t}}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}r.r(t),r.d(t,{HTML5toTouch:()=>Z});var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,r,n;return t=e,(r=[{key:"enter",value:function(e){var t=this,r=this.entered.length;return this.entered=function(e,t){var r=new Set,n=function(e){return r.add(e)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(r){return t.isNodeInDocument(r)&&(!r.contains||r.contains(e))})),[e]),0===r&&this.entered.length>0}},{key:"leave",value:function(e){var t,r,n=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),r=e,t.filter((function(e){return e!==r}))),n>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,r,n;return t=e,(r=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach((function(n){var o=t.config.exposeProperties[n];null!=o&&(r[n]={value:o(e,t.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),c=r(36242);function f(e,t,r){var n=t.reduce((function(t,r){return t||e.getData(r)}),"");return null!=n?n:r}function d(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=d(d(d(d({},c.FILE,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),c.HTML,{exposeProperties:{html:function(e,t){return f(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),c.URL,{exposeProperties:{urls:function(e,t){return f(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),c.TEXT,{exposeProperties:{text:function(e,t){return f(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]});function h(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(p).filter((function(e){var r=p[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}var v=n((function(){return/firefox/i.test(navigator.userAgent)})),g=n((function(){return Boolean(window.safari)}));function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var b=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=t.length,o=[],i=0;i<n;i++)o.push(i);o.sort((function(e,r){return t[e]<t[r]?-1:1}));for(var a,s,l=[],u=[],c=[],f=0;f<n-1;f++)a=t[f+1]-t[f],s=r[f+1]-r[f],u.push(a),l.push(s),c.push(s/a);for(var d=[c[0]],p=0;p<u.length-1;p++){var h=c[p],v=c[p+1];if(h*v<=0)d.push(0);else{a=u[p];var g=u[p+1],m=a+g;d.push(3*m/((m+g)/h+(m+a)/v))}}d.push(c[c.length-1]);for(var y,b=[],w=[],O=0;O<d.length-1;O++){y=c[O];var x=d[O],S=1/u[O],A=x+d[O+1]-y-y;b.push((y-x-A)*S),w.push(A*S*S)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=b,this.c3s=w}var t,r,n;return t=e,(r=[{key:"interpolate",value:function(e){var t=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return r[a];for(var s,l=0,u=i.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return r[s];u=s-1}}var f=e-t[a=Math.max(0,u)],d=f*f;return r[a]+n[a]*f+o[a]*d+i[a]*f*d}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),w=1;function O(e){var t=e.nodeType===w?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function x(e){return{x:e.clientX,y:e.clientY}}function S(e,t,r,n,o){var i,a,s,l="IMG"===(i=t).nodeName&&(v()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(i))),u=O(l?e:t),c={x:r.x-u.x,y:r.y-u.y},f=e.offsetWidth,d=e.offsetHeight,p=n.anchorX,h=n.anchorY,m=function(e,t,r,n){var o=e?t.width:r,i=e?t.height:n;return g()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(l,t,f,d),y=m.dragPreviewWidth,w=m.dragPreviewHeight,x=o.offsetX,S=o.offsetY,A=0===S||S;return{x:0===x||x?x:new b([0,.5,1],[c.x,c.x/f*y,c.x+y-f]).interpolate(p),y:A?S:(s=new b([0,.5,1],[c.y,c.y/d*w,c.y+w-d]).interpolate(h),g()&&l&&(s+=(window.devicePixelRatio-1)*w),s)}}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P(n.key),n)}}function P(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var j=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&A(t.prototype,r),n&&A(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I(n.key),n)}}function I(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){T(e,t,r[t])}))}return e}var k,_=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&O(t)||null},this.endDragNativeItem=function(){o.isDraggingNativeItem()&&(o.actions.endDrag(),o.currentNativeHandle&&o.registry.removeSource(o.currentNativeHandle),o.currentNativeHandle=null,o.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&o.document&&o.document.body&&o.document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=o.currentDragSourceNode;null==e||o.isNodeInDocument(e)||(o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag(),o.cancelHover())},this.scheduleHover=function(e){null===o.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(o.hoverRafId=requestAnimationFrame((function(){o.monitor.isDragging()&&o.actions.hover(e||[],{clientOffset:o.lastClientOffset}),o.hoverRafId=null})))},this.cancelHover=function(){null!==o.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(o.hoverRafId),o.hoverRafId=null)},this.handleTopDragStartCapture=function(){o.clearCurrentDragSourceNode(),o.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=o.dragStartSourceIds;o.dragStartSourceIds=null;var r=x(e);o.monitor.isDragging()&&(o.actions.endDrag(),o.cancelHover()),o.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:o.getSourceClientOffset,clientOffset:r});var n=e.dataTransfer,i=h(n);if(o.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){var a=o.monitor.getSourceId(),s=o.sourceNodes.get(a),l=o.sourcePreviewNodes.get(a)||s;if(l){var u=o.getCurrentSourcePreviewNodeOptions(),c=S(s,l,r,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});n.setDragImage(l,c.x,c.y)}}try{null==n||n.setData("application/json",{})}catch(e){}o.setCurrentDragSourceNode(e.target),o.getCurrentSourcePreviewNodeOptions().captureDraggingState?o.actions.publishDragSource():setTimeout((function(){return o.actions.publishDragSource()}),0)}else if(i)o.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag(),o.cancelHover()},this.handleTopDragEnterCapture=function(e){var t;(o.dragEnterTargetIds=[],o.isDraggingNativeItem())&&(null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(o.enterLeaveCounter.enter(e.target)&&!o.monitor.isDragging()){var r=e.dataTransfer,n=h(r);n&&o.beginDragNativeItem(n,r)}},this.handleTopDragEnter=function(e){var t=o.dragEnterTargetIds;(o.dragEnterTargetIds=[],o.monitor.isDragging())&&(o.altKeyPressed=e.altKey,t.length>0&&o.actions.hover(t,{clientOffset:x(e)}),t.some((function(e){return o.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(e){var t;(o.dragOverTargetIds=[],o.isDraggingNativeItem())&&(null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=function(e){var t=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));o.altKeyPressed=e.altKey,o.lastClientOffset=x(e),o.scheduleHover(t),(t||[]).some((function(e){return o.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){o.isDraggingNativeItem()&&e.preventDefault(),o.enterLeaveCounter.leave(e.target)&&(o.isDraggingNativeItem()&&setTimeout((function(){return o.endDragNativeItem()}),0),o.cancelHover())},this.handleTopDropCapture=function(e){var t;(o.dropTargetIds=[],o.isDraggingNativeItem())?(e.preventDefault(),null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):h(e.dataTransfer)&&e.preventDefault();o.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(t,{clientOffset:x(e)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag(),o.cancelHover()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new j(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var t,r,n;return t=e,(r=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},i=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},i=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return C({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return C({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(c).some((function(t){return c[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var r=p[e];if(!r)throw new Error("native type ".concat(e," has no configuration"));var n=new u(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])&&E(t.prototype,r),n&&E(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),R=r(88297);function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D(n.key),n)}}function D(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(k||(k={}));var M=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.args=t,this.context=r}var t,r,n;return t=e,(r=[{key:"delay",get:function(){var e;return null!==(e=this.args.delay)&&void 0!==e?e:0}},{key:"scrollAngleRanges",get:function(){return this.args.scrollAngleRanges}},{key:"getDropTargetElementsAtPoint",get:function(){return this.args.getDropTargetElementsAtPoint}},{key:"ignoreContextMenu",get:function(){var e;return null!==(e=this.args.ignoreContextMenu)&&void 0!==e&&e}},{key:"enableHoverOutsideTarget",get:function(){var e;return null!==(e=this.args.enableHoverOutsideTarget)&&void 0!==e&&e}},{key:"enableKeyboardEvents",get:function(){var e;return null!==(e=this.args.enableKeyboardEvents)&&void 0!==e&&e}},{key:"enableMouseEvents",get:function(){var e;return null!==(e=this.args.enableMouseEvents)&&void 0!==e&&e}},{key:"enableTouchEvents",get:function(){var e;return null===(e=this.args.enableTouchEvents)||void 0===e||e}},{key:"touchSlop",get:function(){return this.args.touchSlop||0}},{key:"delayTouchStart",get:function(){var e,t,r,n;return null!==(n=null!==(r=null===(e=this.args)||void 0===e?void 0:e.delayTouchStart)&&void 0!==r?r:null===(t=this.args)||void 0===t?void 0:t.delay)&&void 0!==n?n:0}},{key:"delayMouseStart",get:function(){var e,t,r,n;return null!==(n=null!==(r=null===(e=this.args)||void 0===e?void 0:e.delayMouseStart)&&void 0!==r?r:null===(t=this.args)||void 0===t?void 0:t.delay)&&void 0!==n?n:0}},{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return(null===(e=this.context)||void 0===e?void 0:e.document)?this.context.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.args)||void 0===e?void 0:e.rootElement)||this.document}}])&&N(t.prototype,r),n&&N(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();var L=1,z=0;function W(e){return void 0===e.button||e.button===z}function B(e){return!!e.targetTouches}function F(e,t){return B(e)?function(e,t){return 1===e.targetTouches.length?F(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?F(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var H=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G(n.key),n)}}function V(e,t,r){return(t=G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var q=V(V(V({},k.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),k.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),k.keyboard,{keydown:"keydown"}),K=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&function(e){var t=1===e.nodeType?e:e.parentElement;if(t){var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}}(t)},this.handleTopMoveStartCapture=function(e){W(e)&&(o.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(o.moveStartSourceIds)&&o.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if(W(e)){var t=F(e);t&&(B(e)&&(o.lastTargetTouchFallback=e.targetTouches[0]),o._mouseClientOffset=t),o.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(W(e)){var t=e.type===q.touch.start?o.options.delayTouchStart:o.options.delayMouseStart;o.timeout=setTimeout(o.handleTopMoveStart.bind(o,e),t),o.waitingForDelay=!0}},this.handleTopMoveCapture=function(){o.dragOverTargetIds=[]},this.handleMove=function(e,t){o.dragOverTargetIds&&o.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(o.timeout&&clearTimeout(o.timeout),o.document&&!o.waitingForDelay){var t,r,n,i,a=o.moveStartSourceIds,s=o.dragOverTargetIds,l=o.options.enableHoverOutsideTarget,u=F(e,o.lastTargetTouchFallback);if(u)if(o._isScrolling||!o.monitor.isDragging()&&function(e,t,r,n,o){if(!o)return!1;for(var i=180*Math.atan2(n-t,r-e)/Math.PI+180,a=0;a<o.length;++a){var s=o[a];if(s&&(null==s.start||i>=s.start)&&(null==s.end||i<=s.end))return!0}return!1}(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,u.x,u.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&a&&(t=o._mouseClientOffset.x||0,r=o._mouseClientOffset.y||0,n=u.x,i=u.y,Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(i-r),2))>(o.options.touchSlop?o.options.touchSlop:0))&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(a,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var c=o.sourceNodes.get(o.monitor.getSourceId());o.installSourceNodeRemovalObserver(c),o.actions.publishDragSource(),e.cancelable&&e.preventDefault();var f=(s||[]).map((function(e){return o.targetNodes.get(e)})).filter((function(e){return!!e})),d=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(u.x,u.y,f):o.document.elementsFromPoint(u.x,u.y),p=[];for(var h in d)if(d.hasOwnProperty(h)){var v=d[h];for(null!=v&&p.push(v);v;)(v=v.parentElement)&&-1===p.indexOf(v)&&p.push(v)}var g=p.filter((function(e){return f.indexOf(e)>-1})).map((function(e){return o._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,r){return r.indexOf(e)===t}));if(l)for(var m in o.targetNodes){var y=o.targetNodes.get(m);if(c&&y&&y.contains(c)&&-1===g.indexOf(m)){g.unshift(m);break}}g.reverse(),o.actions.hover(g,{clientOffset:u})}}},this._getDropTargetId=function(e){for(var t=o.targetNodes.keys(),r=t.next();!1===r.done;){var n=r.value;if(e===o.targetNodes.get(n))return n;r=t.next()}},this.handleTopMoveEndCapture=function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||!(e.buttons&L)}(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.cancelable&&e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag()):o.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())},this.options=new M(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(k.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(k.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(k.keyboard)}var t,r,n;return t=e,r=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"document",get:function(){return this.options.document}},{key:"setup",value:function(){var t=this.options.rootElement;t&&((0,R.V)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){var t=this.options.rootElement;t&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=H?{capture:n,passive:!1}:n;this.listenerTypes.forEach((function(n){var i=q[n][t];i&&e.addEventListener(i,r,o)}))}},{key:"removeEventListener",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=H?{capture:n,passive:!1}:n;this.listenerTypes.forEach((function(n){var i=q[n][t];i&&e.removeEventListener(i,r,o)}))}},{key:"connectDragSource",value:function(e,t){var r=this,n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",n),function(){r.sourceNodes.delete(e),r.removeEventListener(t,"start",n)}}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=this.options.rootElement;if(!this.document||!n)return function(){};var o=function(o){if(r.document&&n&&r.monitor.isDragging()){var i;switch(o.type){case q.mouse.move:i={x:o.clientX,y:o.clientY};break;case q.touch.move:var a,s;i={x:(null===(a=o.touches[0])||void 0===a?void 0:a.clientX)||0,y:(null===(s=o.touches[0])||void 0===s?void 0:s.clientY)||0}}var l=null!=i?r.document.elementFromPoint(i.x,i.y):void 0,u=l&&t.contains(l);return l===t||u?r.handleMove(o,e):void 0}};return this.addEventListener(this.document.body,"move",o),this.targetNodes.set(e,t),function(){r.document&&(r.targetNodes.delete(e),r.removeEventListener(r.document.body,"move",o))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}}],r&&U(t.prototype,r),n&&U(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$=r(37543),Z={backends:[{id:"html5",backend:function(e,t,r){return new _(e,t,r)},transition:$.nf},{id:"touch",backend:function(e){return new K(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})},options:{enableMouseEvents:!0},preview:!0,transition:$.lr}]}},36242:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FILE:()=>n,HTML:()=>a,TEXT:()=>i,URL:()=>o});var n="__NATIVE_FILE__",o="__NATIVE_URL__",i="__NATIVE_TEXT__",a="__NATIVE_HTML__"},67373:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DndProvider:()=>I,HTML5DragTransition:()=>n.Ik,MouseTransition:()=>n.v8,MultiBackend:()=>n.U2,PointerTransition:()=>n.nf,Preview:()=>C,PreviewContext:()=>h,TouchTransition:()=>n.lr,createTransition:()=>n.eV,useMultiDrag:()=>R,useMultiDrop:()=>N,usePreview:()=>D});var n=r(37543),o=r(78281),i=r(66875),a=r(8568),s=r(86287),l=["display"];function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},f=function(e,t){var r=e.getClientOffset();if(null===r)return null;if(!t.current||!t.current.getBoundingClientRect)return c(r,function(e){var t=e.getInitialClientOffset(),r=e.getInitialSourceClientOffset();return null===t||null===r?{x:0,y:0}:c(t,r)}(e));var n=t.current.getBoundingClientRect(),o={x:n.width/2,y:n.height/2};return c(r,o)},d=function(e){var t="translate(".concat(e.x.toFixed(1),"px, ").concat(e.y.toFixed(1),"px)");return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},p=function(){var e=(0,o.useRef)(null),t=(0,s.V)((function(t){return{currentOffset:f(t,e),isDragging:t.isDragging(),itemType:t.getItemType(),item:t.getItem(),monitor:t}}));return t.isDragging&&null!==t.currentOffset?{display:!0,itemType:t.itemType,item:t.item,style:d(t.currentOffset),monitor:t.monitor,ref:e}:{display:!1}},h=(0,o.createContext)(void 0),v=function(e){var t=p();if(!t.display)return null;t.display;var r,n=u(t,l);return r="children"in e?"function"==typeof e.children?e.children(n):e.children:e.generator(n),o.createElement(h.Provider,{value:n},r)},g=r(71031),m=r(21375),y=r(59984),b=["portal"];function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||A(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.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)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var E=(0,o.createContext)(null),I=function(e){var t=e.portal,r=j(e,b),a=S((0,o.useState)(null),2),s=a[0],l=a[1];return o.createElement(E.Provider,{value:null!=t?t:s},o.createElement(i.Q,O({backend:n.U2},r)),t?null:o.createElement("div",{ref:l}))},T=function(){var e=S((0,o.useState)(!1),2),t=e[0],r=e[1],n=(0,o.useContext)(g.M);return(0,o.useEffect)((function(){var e,t=null==n||null===(e=n.dragDropManager)||void 0===e?void 0:e.getBackend(),o={backendChanged:function(e){r(e.previewEnabled())}};return r(t.previewEnabled()),t.previewsList().register(o),function(){t.previewsList().unregister(o)}}),[n,n.dragDropManager]),t},C=function(e){var t=T(),r=(0,o.useContext)(E);if(!t)return null;var n=o.createElement(v,O({},e));return null!==r?(0,a.createPortal)(n,r):n};C.Context=h;var k=function(e,t,r,n){var o=r.getBackend();r.receiveBackend(n);var i=t(e);return r.receiveBackend(o),i},_=function(e,t){var r,n=(0,o.useContext)(g.M),i=null==n||null===(r=n.dragDropManager)||void 0===r?void 0:r.getBackend();if(void 0===i)throw new Error("could not find backend, make sure you are using a <DndProvider />");var a,s=t(e),l={},u=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=A(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(i.backendsList());try{for(u.s();!(a=u.n()).done;){var c=a.value;l[c.id]=k(e,t,n.dragDropManager,c.instance)}}catch(e){u.e(e)}finally{u.f()}return[s,l]},R=function(e){return _(e,m.i)},N=function(e){return _(e,y.H)},D=function(){var e=T(),t=p();return e?t:{display:!1}}},71031:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});var n=(0,r(78281).createContext)({dragDropManager:void 0})},66875:(e,t,r)=>{"use strict";r.d(t,{Q:()=>De});var n=r(28477);function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(o(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(o(1));return r(u)(e,t)}if("function"!=typeof e)throw new Error(o(2));var a=e,c=t,f=[],d=f,p=!1;function h(){d===f&&(d=f.slice())}function v(){if(p)throw new Error(o(3));return c}function g(e){if("function"!=typeof e)throw new Error(o(4));if(p)throw new Error(o(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error(o(6));t=!1,h();var r=d.indexOf(e);d.splice(r,1),f=null}}}function m(e){if(!l(e))throw new Error(o(7));if(void 0===e.type)throw new Error(o(8));if(p)throw new Error(o(9));try{p=!0,c=a(c,e)}finally{p=!1}for(var t=f=d,r=0;r<t.length;r++){(0,t[r])()}return e}return m({type:s.INIT}),(n={dispatch:m,subscribe:g,getState:v,replaceReducer:function(e){if("function"!=typeof e)throw new Error(o(10));a=e,m({type:s.REPLACE})}})[i]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(o(11));function r(){e.next&&e.next(v())}return r(),{unsubscribe:t(r)}}})[i]=function(){return this},e},n}var c=r(88297);function f(e){return"object"==typeof e}var d="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",h="dnd-core/PUBLISH_DRAG_SOURCE",v="dnd-core/HOVER",g="dnd-core/DROP",m="dnd-core/END_DRAG";function y(e,t){return{type:d,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var b={type:d,payload:{clientOffset:null,sourceClientOffset:null}};function w(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,i=r.clientOffset,a=r.getSourceClientOffset,s=e.getMonitor(),l=e.getRegistry();e.dispatch(y(i)),function(e,t,r){(0,c.V)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,c.V)(r.getSource(e),"Expected sourceIds to be registered.")}))}(t,s,l);var u=function(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,s);if(null!=u){var d=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){(0,c.V)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),d=a(u)}e.dispatch(y(i,d));var h=l.getSource(u).beginDrag(s,u);if(null!=h){!function(e){(0,c.V)(f(e),"Item must be an object.")}(h),l.pinSource(u);var v=l.getSourceType(u);return{type:p,payload:{itemType:v,item:h,sourceId:u,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}}else e.dispatch(b)}}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){O(e,t,r[t])}))}return e}function S(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();!function(e){(0,c.V)(e.isDragging(),"Cannot call drop while not dragging."),(0,c.V)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);o.forEach((function(o,i){var a=function(e,t,r,n){var o=r.getTarget(e),i=o?o.drop(n,e):void 0;(function(e){(0,c.V)(void 0===e||f(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:n.getDropResult());return i}(o,i,n,r),s={type:g,payload:{dropResult:x({},t,a)}};e.dispatch(s)}))}}function A(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){(0,c.V)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource());return{type:m}}}function P(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function j(e){return function(t){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){(0,c.V)(Array.isArray(e),"Expected targetIds to be an array.")}(t);var n=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];P(t.getTargetType(o),r)||e.splice(n,1)}}(n,i,o.getItemType()),function(e,t,r){(0,c.V)(t.isDragging(),"Cannot call hover while not dragging."),(0,c.V)(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];(0,c.V)(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var i=r.getTarget(o);(0,c.V)(i,"Expected targetIds to be registered.")}}(n,o,i),function(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}(n,o,i),{type:v,payload:{targetIds:n,clientOffset:r||null}}}}function E(e){return function(){if(e.getMonitor().isDragging())return{type:h}}}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function T(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var C=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=n.store.getState().refCount>0;n.backend&&(e&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!e&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}var t,r,n;return t=e,r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,r=function(e){return{beginDrag:w(e),publishDragSource:E(e),hover:j(e),drop:S(e),endDrag:A(e)}}(this);return Object.keys(r).reduce((function(n,o){var i,a=r[o];return n[o]=(i=a,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=i.apply(e,n);void 0!==a&&t(a)}),n}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],r&&I(t.prototype,r),n&&I(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function k(e,t){return{x:e.x-t.x,y:e.y-t.y}}var _=[],R=[];function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D(n.key),n)}}function D(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}_.__IS_NONE__=!0,R.__IS_ALL__=!0;var M=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r,n;return t=e,r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).handlerIds;(0,c.V)("function"==typeof e,"listener must be a function."),(0,c.V)(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var n=this.store.getState().stateId;return this.store.subscribe((function(){var o=t.store.getState(),i=o.stateId;try{var a=i===n||i===n+1&&!function(e,t){return e!==_&&(e===R||void 0===t||(r=e,t.filter((function(e){return r.indexOf(e)>-1}))).length>0);var r}(o.dirtyHandlerIds,r);a||e()}finally{n=i}}))}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,c.V)("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,c.V)(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,c.V)(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&P(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,c.V)(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),n=this.getItemType();if(n&&!P(r,n))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,n=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,n&&o&&i?k((r=i,{x:(t=n).x+r.x,y:t.y+r.y}),o):null;var e,t,r,n,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,r=e.initialClientOffset,t&&r?k(t,r):null;var e,t,r}}],r&&N(t.prototype,r),n&&N(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),L="undefined"!=typeof global?global:self,z=L.MutationObserver||L.WebKitMutationObserver;function W(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}var B="function"==typeof z?function(e){var t=1,r=new z(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:W;function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H(n.key),n)}}function H(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var U=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=function(){for(var e=t.queue;t.index<e.length;){var r=t.index;if(t.index++,e[r].call(),t.index>t.capacity){for(var n=0,o=e.length-t.index;n<o;n++)e[n]=e[n+t.index];e.length-=t.index,t.index=0}}e.length=0,t.index=0,t.flushing=!1},this.registerPendingError=function(e){t.pendingErrors.push(e),t.requestErrorThrow()},this.requestFlush=B(this.flush),this.requestErrorThrow=W((function(){if(t.pendingErrors.length)throw t.pendingErrors.shift()}))}var t,r,n;return t=e,(r=[{key:"enqueueTask",value:function(e){var t=this.queue,r=this.requestFlush;t.length||(r(),this.flushing=!0),t[t.length]=e}}])&&F(t.prototype,r),n&&F(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G(n.key),n)}}function G(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var q=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onError=t,this.release=r,this.task=null}var t,r,n;return t=e,(r=[{key:"call",value:function(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}}])&&V(t.prototype,r),n&&V(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function K(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$(n.key),n)}}function $(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Z=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onError=t,this.freeTasks=[]}var t,r,n;return t=e,(r=[{key:"create",value:function(e){var t=this.freeTasks,r=t.length?t.pop():new q(this.onError,(function(e){return t[t.length]=e}));return r.task=e,r}}])&&K(t.prototype,r),n&&K(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),X=new U,Y=new Z(X.registerPendingError);var Q,J="dnd-core/ADD_SOURCE",ee="dnd-core/ADD_TARGET",te="dnd-core/REMOVE_SOURCE",re="dnd-core/REMOVE_TARGET";function ne(e,t){t&&Array.isArray(e)?e.forEach((function(e){return ne(e,!1)})):(0,c.V)("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Q||(Q={}));var oe=0;function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ae(n.key),n)}}function ae(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ue(e){var t=(oe++).toString();switch(e){case Q.SOURCE:return"S".concat(t);case Q.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function ce(e){switch(e[0]){case"S":return Q.SOURCE;case"T":return Q.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(e))}}function fe(e,t){var r=e.entries(),n=!1;do{var o=r.next(),i=o.done;if(se(o.value,2)[1]===t)return!0;n=!!i}while(!n);return!1}var de=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r,n;return t=e,r=[{key:"addSource",value:function(e,t){ne(e),function(e){(0,c.V)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,c.V)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,c.V)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(Q.SOURCE,e,t);return this.store.dispatch(function(e){return{type:J,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){ne(e,!0),function(e){(0,c.V)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,c.V)("function"==typeof e.hover,"Expected hover to be a function."),(0,c.V)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(Q.TARGET,e,t);return this.store.dispatch(function(e){return{type:ee,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return fe(this.dragSources,e)||fe(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,c.V)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return(0,c.V)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,c.V)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,c.V)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ce(e)===Q.SOURCE}},{key:"isTargetId",value:function(e){return ce(e)===Q.TARGET}},{key:"removeSource",value:function(e){var t,r=this;(0,c.V)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:te,payload:{sourceId:e}}}(e)),t=function(){r.dragSources.delete(e),r.types.delete(e)},X.enqueueTask(Y.create(t))}},{key:"removeTarget",value:function(e){(0,c.V)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:re,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,c.V)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,c.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=ue(e);return this.types.set(n,t),e===Q.SOURCE?this.dragSources.set(n,r):e===Q.TARGET&&this.dropTargets.set(n,r),n}}],r&&ie(t.prototype,r),n&&ie(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),pe=function(e,t){return e===t};function he(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case v:break;case J:case ee:case re:case te:return _;default:return R}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var r=new Map,n=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e,t){1===e&&o.push(t)})),o}(n,i),s=a.length>0||!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pe;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(n,i);if(!s)return _;var l=i[i.length-1],u=n[n.length-1];return l!==u&&(l&&a.push(l),u&&a.push(u)),a}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ge={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function me(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case d:case p:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case v:return e=r.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?r:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ve(e,t,r[t])}))}return e}({},r,{clientOffset:o.clientOffset});case m:case g:return ge;default:return r}}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ye(e,t,r[t])}))}return e}var we={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Oe(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case p:return be({},r,{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case h:return be({},r,{isSourcePublic:!0});case v:return be({},r,{targetIds:o.targetIds});case re:return-1===r.targetIds.indexOf(o.targetId)?r:be({},r,{targetIds:(e=r.targetIds,t=o.targetId,e.filter((function(e){return e!==t})))});case g:return be({},r,{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case m:return be({},r,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return r}}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case J:case ee:return e+1;case te:case re:return e-1;default:return e}}function Se(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function Ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ae(e,t,r[t])}))}return e}function je(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:he(n.dirtyHandlerIds,{type:o.type,payload:Pe({},o.payload,{prevTargetIds:(e=n,t="dragOperation.targetIds",r=[],t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),e))})}),dragOffset:me(n.dragOffset,o),refCount:xe(n.refCount,o),dragOperation:Oe(n.dragOperation,o),stateId:Se(n.stateId)}}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return u(je,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),o=new M(n,new de(n)),i=new C(n,o),a=e(i,t,r);return i.receiveBackend(a),i}var Ie=r(78281),Te=r(71031);function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ke(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _e(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Re=0,Ne=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),De=(0,Ie.memo)((function(e){var t=e.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;o[Ne]||(o[Ne]={dragDropManager:Ee(e,t,r,n)});return o[Ne]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(_e(e,["children"])),o=Ce(r,2),i=o[0],a=o[1];return(0,Ie.useEffect)((function(){if(a){var e=Me();return++Re,function(){0==--Re&&(e[Ne]=null)}}}),[]),(0,n.jsx)(Te.M.Provider,{value:i,children:t})}));function Me(){return"undefined"!=typeof global?global:window}},44681:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=r(76259),o=r(59020);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r){return function(e,t,r){var a=i((0,n.F)(e,t,r),2),s=a[0],l=a[1];return(0,o.E)((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(l,{handlerIds:[t]})}),[e,l]),s}(t,e||function(){return{}},(function(){return r.reconnect()}))}},76259:(e,t,r)=>{"use strict";r.d(t,{F:()=>l});var n=r(33912),o=r(78281),i=r(59020);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r){var s=a((0,o.useState)((function(){return t(e)})),2),l=s[0],u=s[1],c=(0,o.useCallback)((function(){var o=t(e);n(l,o)||(u(o),r&&r())}),[l,e,r]);return(0,i.E)(c),[l,c]}},21375:(e,t,r)=>{"use strict";r.d(t,{i:()=>T});var n=r(88297),o=r(44681),i=r(77462),a=r(78281);function s(e){return(0,a.useMemo)((function(){return e.hooks.dragSource()}),[e])}function l(e){return(0,a.useMemo)((function(){return e.hooks.dragPreview()}),[e])}var u=r(4349),c=r(41674),f=r(34742);function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var h=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,f.i)({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,(0,c.i)(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,(0,c.i)(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,n;return t=e,r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}},{key:"reconnectDragPreview",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,u.b)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,u.b)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}],r&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),v=r(49334),g=r(59020);function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var b=!1,w=!1,O=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r,o;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,n.V)(!b,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return b=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{b=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,n.V)(!w,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return w=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{w=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&m(t.prototype,r),o&&m(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();var x=r(3358);function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}function A(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var P=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=r,this.connector=n}var t,r,n;return t=e,(r=[{key:"beginDrag",value:function(){var e=this.spec,t=this.monitor,r=null;return null!=(r="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{})?r:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var r=this.spec,n=this.monitor,o=r.isDragging;return o?o(n):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,r=this.connector,n=e.end;n&&n(t.getItem(),t),r.reconnect()}}])&&S(t.prototype,r),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t,r){var o=(0,v.u)(),i=function(e,t,r){var n=(0,a.useMemo)((function(){return new P(e,t,r)}),[t,r]);return(0,a.useEffect)((function(){n.spec=e}),[e]),n}(e,t,r),s=function(e){return(0,a.useMemo)((function(){var t=e.type;return(0,n.V)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,g.E)((function(){if(null!=s){var e=j((0,x.V)(s,i,o),2),n=e[0],a=e[1];return t.receiveHandlerId(n),r.receiveHandlerId(n),a}}),[o,t,r,i,s])}function T(e,t){var r=(0,i.I)(e,t);(0,n.V)(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var u,c=(u=(0,v.u)(),(0,a.useMemo)((function(){return new O(u)}),[u])),f=function(e,t){var r=(0,v.u)(),n=(0,a.useMemo)((function(){return new h(r.getBackend())}),[r]);return(0,g.E)((function(){return n.dragSourceOptions=e||null,n.reconnect(),function(){return n.disconnectDragSource()}}),[n,e]),(0,g.E)((function(){return n.dragPreviewOptions=t||null,n.reconnect(),function(){return n.disconnectDragPreview()}}),[n,t]),n}(r.options,r.previewOptions);return I(r,c,f),[(0,o.j)(r.collect,c,f),s(f),l(f)]}},49334:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});var n=r(88297),o=r(78281),i=r(71031);function a(){var e=(0,o.useContext)(i.M).dragDropManager;return(0,n.V)(null!=e,"Expected drag drop context"),e}},86287:(e,t,r)=>{"use strict";r.d(t,{V:()=>l});var n=r(78281),o=r(76259),i=r(49334);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){var t=(0,i.u)().getMonitor(),r=a((0,o.F)(t,e),2),s=r[0],l=r[1];return(0,n.useEffect)((function(){return t.subscribeToOffsetChange(l)})),(0,n.useEffect)((function(){return t.subscribeToStateChange(l)})),s}},59984:(e,t,r)=>{"use strict";r.d(t,{H:()=>E});var n=r(44681),o=r(77462),i=r(78281);function a(e){return(0,i.useMemo)((function(){return e.hooks.dropTarget()}),[e])}var s=r(4349),l=r(41674),u=r(34742);function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var d=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,u.i)({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,(0,l.i)(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,s.b)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p=r(49334),h=r(59020);var v=r(88297);function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function m(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var y=!1,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r,n;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,v.V)(!y,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return y=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{y=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&g(t.prototype,r),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();var w=r(3358);function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x(n.key),n)}}function x(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var S=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=r}var t,r,n;return t=e,(r=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&O(t.prototype,r),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j(e,t,r){var n=(0,p.u)(),o=function(e,t){var r=(0,i.useMemo)((function(){return new S(e,t)}),[t]);return(0,i.useEffect)((function(){r.spec=e}),[e]),r}(e,t),a=function(e){var t=e.accept;return(0,i.useMemo)((function(){return(0,v.V)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]}),[t])}(e);(0,h.E)((function(){var e=A((0,w.l)(a,o,n),2),i=e[0],s=e[1];return t.receiveHandlerId(i),r.receiveHandlerId(i),s}),[n,t,o,r,a.map((function(e){return e.toString()})).join("|")])}function E(e,t){var r,s=(0,o.I)(e,t),l=(r=(0,p.u)(),(0,i.useMemo)((function(){return new b(r)}),[r])),u=function(e){var t=(0,p.u)(),r=(0,i.useMemo)((function(){return new d(t.getBackend())}),[t]);return(0,h.E)((function(){return r.dropTargetOptions=e||null,r.reconnect(),function(){return r.disconnectDropTarget()}}),[e]),r}(s.options);return j(s,l,u),[(0,n.j)(s.collect,l,u),a(u)]}},59020:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(78281),o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},77462:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(78281);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=o(t||[]);return null==t&&"function"!=typeof e&&r.push(e),(0,n.useMemo)((function(){return"function"==typeof e?e():e}),r)}},44783:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DndContext:()=>n.M,DndProvider:()=>o.Q,DragPreviewImage:()=>a,useDrag:()=>s.i,useDragDropManager:()=>l.u,useDragLayer:()=>u.V,useDrop:()=>c.H});var n=r(71031),o=r(66875),i=r(78281),a=(0,i.memo)((function(e){var t=e.connect,r=e.src;return(0,i.useEffect)((function(){if("undefined"!=typeof Image){var e=!1,n=new Image;return n.src=r,n.onload=function(){t(n),e=!0},function(){e&&t(null)}}})),null})),s=r(21375),l=r(49334),u=r(86287),c=r(59984)},41674:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{i:()=>n})},3358:(e,t,r)=>{"use strict";function n(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function o(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}r.d(t,{V:()=>o,l:()=>n})},34742:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(88297),o=r(78281);function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(t)){var i=t;return e(i,r),i}var a=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(a);var l=r?function(t){return e(t,r)}:e;return function(e,t){var r=e.ref;return(0,n.V)("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,o.cloneElement)(e,{ref:function(e){s(r,e),s(t,e)}}):(0,o.cloneElement)(e,{ref:t})}(a,l)}}function a(e){var t={};return Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=i(n);t[r]=function(){return o}}})),t}function s(e,t){"function"==typeof e?e(t):e.current=t}},19857:(e,t,r)=>{"use strict";r.d(t,{xC:()=>z,r9:()=>y,CI:()=>L});var n=r(78281);r(40378);Object.create(null);function o(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}var i={};function a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&i[t[0]]||("string"==typeof t[0]&&(i[t[0]]=new Date),o.apply(void 0,t))}var s=function(e,t){return function(){if(e.isInitialized)t();else{e.on("initialized",(function r(){setTimeout((function(){e.off("initialized",r)}),0),t()}))}}};function l(e,t,r){e.loadNamespaces(t,s(e,r))}function u(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach((function(t){e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,s(e,n))}var c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,f={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},d=function(e){return f[e]};function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(c,d)}};var m;var y={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g=h(h({},g),e)}(e.options.react),function(e){m=e}(e)}};function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function w(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var O=(0,n.createContext)(),x=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var t,r,n;return t=e,(r=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&b(t.prototype,r),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I=function(e,t){var r=(0,n.useRef)();return(0,n.useEffect)((function(){r.current=t?r.current:e}),[e,t]),r.current};function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,o=(0,n.useContext)(O)||{},i=o.i18n,s=o.defaultNS,c=r||i||m;if(c&&!c.reportNamespaces&&(c.reportNamespaces=new x),!c){a("You will need to pass in an i18next instance by using initReactI18next");var f=function(e,t){return"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},d=[f,{},!1];return d.t=f,d.i18n={},d.ready=!1,d}c.options.react&&void 0!==c.options.react.wait&&a("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=j(j(j({},g),c.options.react),t),h=p.useSuspense,v=p.keyPrefix,y=e||s||c.options&&c.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(y);var b=(c.isInitialized||c.initializedStoreOnce)&&y.every((function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}(e,t,r):(a("i18n.languages were undefined or empty",t.languages),!0)}(e,c,p)}));function w(){return c.getFixedT(t.lng||null,"fallback"===p.nsMode?y:y[0],v)}var A=S((0,n.useState)(w),2),P=A[0],E=A[1],T=y.join();t.lng&&(T="".concat(t.lng).concat(T));var C=I(T),k=(0,n.useRef)(!0);(0,n.useEffect)((function(){var e=p.bindI18n,r=p.bindI18nStore;function n(){k.current&&E(w)}return k.current=!0,b||h||(t.lng?u(c,t.lng,y,(function(){k.current&&E(w)})):l(c,y,(function(){k.current&&E(w)}))),b&&C&&C!==T&&k.current&&E(w),e&&c&&c.on(e,n),r&&c&&c.store.on(r,n),function(){k.current=!1,e&&c&&e.split(" ").forEach((function(e){return c.off(e,n)})),r&&c&&r.split(" ").forEach((function(e){return c.store.off(e,n)}))}}),[c,T]);var _=(0,n.useRef)(!0);(0,n.useEffect)((function(){k.current&&!_.current&&E(w),_.current=!1}),[c,v]);var R=[P,c,b];if(R.t=P,R.i18n=c,R.ready=b,b)return R;if(!b&&!h)return R;throw new Promise((function(e){t.lng?u(c,t.lng,y,(function(){return e()})):l(c,y,(function(){return e()}))}))}var C=["forwardedRef"];function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){R(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){function o(o){var i=o.forwardedRef,a=M(o,C),s=N(T(e,_(_({},a),{},{keyPrefix:t.keyPrefix})),3),l=s[0],u=s[1],c=s[2],f=_(_({},a),{},{t:l,i18n:u,tReady:c});return t.withRef&&i?f.ref=i:!t.withRef&&i&&(f.forwardedRef=i),(0,n.createElement)(r,f)}var i;o.displayName="withI18nextTranslation(".concat((i=r).displayName||i.name||("string"==typeof i&&i.length>0?i:"Unknown"),")"),o.WrappedComponent=r;var a=function(e,t){return(0,n.createElement)(o,Object.assign({},e,{forwardedRef:t}))};return t.withRef?(0,n.forwardRef)(a):o}}function z(e){var t=e.i18n,r=e.defaultNS,o=e.children,i=(0,n.useMemo)((function(){return{i18n:t,defaultNS:r}}),[t,r]);return(0,n.createElement)(O.Provider,{value:i},o)}},74560:(e,t,r)=>{"use strict";r.d(t,{Wx:()=>j,pL:()=>P});var n=r(78281),o=["as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function d(e,t,r){return t=h(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(e,p()?Reflect.construct(t,r||[],h(e).constructor):t.apply(e,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var m=Object.defineProperty,y=function(e,t,r){return function(e,t,r){t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!=typeof t?t+"":t,r),r},b=new Map,w=new WeakMap,O=0,x=void 0;function S(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return"".concat(t,"_").concat("root"===t?(r=e.root)?(w.has(r)||(O+=1,w.set(r,O.toString())),w.get(r)):"0":e[t]);var r})).toString()}function A(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x;if(void 0===window.IntersectionObserver&&void 0!==n){var o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=S(e),r=b.get(t);if(!r){var n,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var r,i=t.isIntersecting&&n.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=o.get(t.target))||r.forEach((function(e){e(i,t)}))}))}),e);n=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:o},b.set(t,r)}return r}(r),a=i.id,s=i.observer,l=i.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),b.delete(a))}}var P=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=d(this,t,[e]),y(v(r),"node",null),y(v(r),"_unobserveCb",null),y(v(r),"handleNode",(function(e){r.node&&(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()})),y(v(r),"handleChange",(function(e,t){e&&r.props.triggerOnce&&r.unobserve(),function(e){return"function"!=typeof e.children}(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)})),r.state={inView:!!e.initialInView,entry:void 0},r}var r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),r=t,i=[{key:"componentDidMount",value:function(){this.unobserve(),this.observeNode()}},{key:"componentDidUpdate",value:function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())}},{key:"componentWillUnmount",value:function(){this.unobserve()}},{key:"observeNode",value:function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin,o=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=A(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n,trackVisibility:o,delay:i},a)}}},{key:"unobserve",value:function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}},{key:"render",value:function(){var e=this.props.children;if("function"==typeof e){var t=this.state;return e({inView:t.inView,entry:t.entry,ref:this.handleNode})}var r=this.props,i=r.as,a=(r.triggerOnce,r.threshold,r.root,r.rootMargin,r.onChange,r.skip,r.trackVisibility,r.delay,r.initialInView,r.fallbackInView,u(r,o));return n.createElement(i||"div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:this.handleNode},a),e)}}],i&&c(r.prototype,i),a&&c(r,a),Object.defineProperty(r,"prototype",{writable:!1}),t}(n.Component);function j(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.threshold,o=t.delay,a=t.trackVisibility,s=t.rootMargin,l=t.root,u=t.triggerOnce,c=t.skip,f=t.initialInView,d=t.fallbackInView,p=t.onChange,h=i(n.useState(null),2),v=h[0],g=h[1],m=n.useRef(),y=i(n.useState({inView:!!f,entry:void 0}),2),b=y[0],w=y[1];m.current=p,n.useEffect((function(){var e;if(!c&&v)return e=A(v,(function(t,r){w({inView:t,entry:r}),m.current&&m.current(t,r),r.isIntersecting&&u&&e&&(e(),e=void 0)}),{root:l,rootMargin:s,threshold:r,trackVisibility:a,delay:o},d),function(){e&&e()}}),[Array.isArray(r)?r.toString():r,v,l,s,u,c,a,d,o]);var O=null==(e=b.entry)?void 0:e.target,x=n.useRef();v||!O||u||c||x.current===O||(x.current=O,w({inView:!!f,entry:void 0}));var S=[g,b.inView,b.entry];return S.ref=S[0],S.inView=S[1],S.entry=S[2],S}},58301:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>de,Ng:()=>fe});var n=r(78281),o=r(27647),i=["initMapStateToProps","initMapDispatchToProps","initMergeProps"],a=["reactReduxForwardedRef"];function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.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)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=n,g=Symbol.for("react-redux-context"),m="undefined"!=typeof globalThis?globalThis:{};function y(){var e;if(!v.createContext)return{};var t=null!==(e=m[g])&&void 0!==e?e:m[g]=new Map,r=t.get(v.createContext);return r||(r=v.createContext(null),t.set(v.createContext,r)),r}var b=y(),w=function(){throw new Error("uSES not initialized!")};var O=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),E=Symbol.for("react.context"),I=Symbol.for("react.server_context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),N=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),T),D=_;function M(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case O:var r=e.type;switch(r){case S:case P:case A:case C:case k:return r;default:var n=r&&r.$$typeof;switch(n){case I:case E:case T:case R:case _:case j:return n;default:return t}}case x:return t}}}function L(e,t,r,n,o){var i,a,s,l,u,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,v,g=!f(p,a),m=!c(o,i,p,a);return i=o,a=p,g&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(n,a)),u=r(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(n,a)),u=r(s,l,a)):m?(h=e(i,a),v=!d(h,s),s=h,v&&(u=r(s,l,a)),u):u}return function(o,c){return p?h(o,c):(s=e(i=o,a=c),l=t(n,a),u=r(s,l,a),p=!0,u)}}function z(e){return function(t){var r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function W(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function B(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=W(e);var o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=W(o),o=n(t,r)),o},n}}function F(e,t){return function(r,n){throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(n.wrappedComponentName,"."))}}function H(e,t,r){return p(p(p({},r),e),t)}function U(e){e()}var V={notify:function(){},get:function(){return[]}};function G(e,t){var r,n=V,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){var i,s;o++,r||(r=t?t.addNestedSub(a):e.subscribe(a),i=null,s=null,n={clear:function(){i=null,s=null},notify:function(){U((function(){for(var e=i;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=i;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,r=s={callback:e,next:null,prev:s};return r.prev?r.prev.next=r:i=r,function(){t&&null!==i&&(t=!1,r.next?r.next.prev=r.prev:s=r.prev,r.prev?r.prev.next=r.next:i=r.next)}}})}function l(){o--,r&&0===o&&(r(),r=void 0,n.clear(),n=V)}var u={addNestedSub:function(e){s();var t=n.subscribe(e),r=!1;return function(){r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:function(){return n}};return u}var q=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?v.useLayoutEffect:v.useEffect;function K(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function $(e,t){if(K(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!K(e[r[o]],t[r[o]]))return!1;return!0}var Z={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Q=h(h({},N,{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0}),D,Y);function J(e){return function(e){return M(e)===_}(e)?Y:Q[e.$$typeof]||Z}var ee=Object.defineProperty,te=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,ne=Object.getOwnPropertyDescriptor,oe=Object.getPrototypeOf,ie=Object.prototype;function ae(e,t){if("string"!=typeof t){if(ie){var r=oe(t);r&&r!==ie&&ae(e,r)}var n=te(t);re&&(n=n.concat(re(t)));for(var o=J(e),i=J(t),a=0;a<n.length;++a){var s=n[a];if(!(X[s]||i&&i[s]||o&&o[s])){var l=ne(t,s);try{ee(e,s,l)}catch(e){}}}}return e}var se=w,le=[null,null];function ue(e,t,r,n,o,i){e.current=n,r.current=!1,o.current&&(o.current=null,i())}function ce(e,t){return e===t}var fe=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=(n.pure,n.areStatesEqual),u=void 0===o?ce:o,c=n.areOwnPropsEqual,d=void 0===c?$:c,h=n.areStatePropsEqual,g=void 0===h?$:h,m=n.areMergedPropsEqual,y=void 0===m?$:m,w=n.forwardRef,O=void 0!==w&&w,x=n.context,S=void 0===x?b:x,A=function(e){return e?"function"==typeof e?B(e):F(e,"mapStateToProps"):z((function(){return{}}))}(e),P=function(e){return e&&"object"==typeof e?z((function(t){return function(e,t){var r={},n=function(){var n=e[o];"function"==typeof n&&(r[o]=function(){return t(n.apply(void 0,arguments))})};for(var o in e)n();return r}(e,t)})):e?"function"==typeof e?B(e):F(e,"mapDispatchToProps"):z((function(e){return{dispatch:e}}))}(t),j=function(e){return e?"function"==typeof e?function(e){return function(t,r){r.displayName;var n,o=r.areMergedPropsEqual,i=!1;return function(t,r,a){var s=e(t,r,a);return i?o(s,n)||(n=s):(i=!0,n=s),n}}}(e):F(e,"mergeProps"):function(){return H}}(r),E=Boolean(e);return function(e){var t=e.displayName||e.name||"Component",r="Connect(".concat(t,")"),n={shouldHandleStateChanges:E,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:A,initMapDispatchToProps:P,initMergeProps:j,areStatesEqual:u,areStatePropsEqual:g,areOwnPropsEqual:d,areMergedPropsEqual:y};function o(t){var r=s(v.useMemo((function(){var e=t.reactReduxForwardedRef,r=f(t,a);return[t.context,e,r]}),[t]),3),o=r[0],u=r[1],c=r[2],d=v.useMemo((function(){var e=S;if(null!=o&&o.Consumer);return e}),[o,S]),h=v.useContext(d),g=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),m=Boolean(h)&&Boolean(h.store);var y=g?t.store:h.store,b=m?h.getServerState:y.getState,w=v.useMemo((function(){return function(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,o=t.initMergeProps,a=f(t,i);return L(r(e,a),n(e,a),o(e,a),e,a)}(y.dispatch,n)}),[y]),O=s(v.useMemo((function(){if(!E)return le;var e=G(y,g?void 0:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,h]),2),x=O[0],A=O[1],P=v.useMemo((function(){return g?h:p(p({},h),{},{subscription:x})}),[g,h,x]),j=v.useRef(),I=v.useRef(c),T=v.useRef(),C=v.useRef(!1),k=(v.useRef(!1),v.useRef(!1)),_=v.useRef();q((function(){return k.current=!0,function(){k.current=!1}}),[]);var R,N,D,M,z=v.useMemo((function(){return function(){return T.current&&c===I.current?T.current:w(y.getState(),c)}}),[y,c]),W=v.useMemo((function(){return function(e){return x?function(e,t,r,n,o,i,a,s,l,u,c){if(!e)return function(){};var f=!1,d=null,p=function(){if(!f&&s.current){var e,r,p=t.getState();try{e=n(p,o.current)}catch(e){r=e,d=e}r||(d=null),e===i.current?a.current||u():(i.current=e,l.current=e,a.current=!0,c())}};return r.onStateChange=p,r.trySubscribe(),p(),function(){if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}(E,y,x,w,I,j,C,k,T,A,e):function(){}}}),[x]);R=ue,N=[I,j,C,c,T,A],q((function(){return R.apply(void 0,l(N))}),D);try{M=se(W,z,b?function(){return w(b(),c)}:z)}catch(e){throw _.current&&(e.message+="\nThe error may be correlated with this previous error:\n".concat(_.current.stack,"\n\n")),e}q((function(){_.current=void 0,T.current=void 0,j.current=M}));var B=v.useMemo((function(){return v.createElement(e,p(p({},M),{},{ref:u}))}),[u,e,M]);return v.useMemo((function(){return E?v.createElement(d.Provider,{value:P},B):B}),[d,B,P])}var c=v.memo(o);if(c.WrappedComponent=e,c.displayName=o.displayName=r,O){var h=v.forwardRef((function(e,t){return v.createElement(c,p(p({},e),{},{reactReduxForwardedRef:t}))}));return h.displayName=r,h.WrappedComponent=e,ae(h,e)}return ae(c,e)}};var de=function(e){var t=e.store,r=e.context,n=e.children,o=e.serverState,i=e.stabilityCheck,a=void 0===i?"once":i,s=e.identityFunctionCheck,l=void 0===s?"once":s,u=v.useMemo((function(){var e=G(t);return{store:t,subscription:e,getServerState:o?function(){return o}:void 0,stabilityCheck:a,identityFunctionCheck:l}}),[t,o,a,l]),c=v.useMemo((function(){return t.getState()}),[t]);q((function(){var e=u.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[u,c]);var f=r||b;return v.createElement(f.Provider,{value:u},n)};var pe;pe=o.useSyncExternalStoreWithSelector,function(e){se=e}(n.useSyncExternalStore)},90757:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}r.d(t,{HY:()=>h,Tw:()=>g,Zz:()=>v,y$:()=>p});var u=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),c=function(){return Math.random().toString(36).substring(7).split("").join(".")},f={INIT:"@@redux/INIT".concat(c()),REPLACE:"@@redux/REPLACE".concat(c()),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION".concat(c())}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function p(e,t,r){if("function"!=typeof e)throw new Error(l(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(l(1));return r(p)(e,t)}var n=e,o=t,i=new Map,a=i,c=0,h=!1;function v(){a===i&&(a=new Map,i.forEach((function(e,t){a.set(t,e)})))}function g(){if(h)throw new Error(l(3));return o}function m(e){if("function"!=typeof e)throw new Error(l(4));if(h)throw new Error(l(5));var t=!0;v();var r=c++;return a.set(r,e),function(){if(t){if(h)throw new Error(l(6));t=!1,v(),a.delete(r),i=null}}}function y(e){if(!d(e))throw new Error(l(7));if(void 0===e.type)throw new Error(l(8));if("string"!=typeof e.type)throw new Error(l(17));if(h)throw new Error(l(9));try{h=!0,o=n(o,e)}finally{h=!1}return(i=a).forEach((function(e){e()})),e}return y({type:f.INIT}),s({dispatch:y,subscribe:m,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error(l(10));n=e,y({type:f.REPLACE})}},u,(function(){var e=m;return s({subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(l(11));function r(){var e=t;e.next&&e.next(g())}return r(),{unsubscribe:e(r)}}},u,(function(){return this}))}))}function h(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];0,"function"==typeof e[o]&&(r[o]=e[o])}var i,a=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:f.INIT}))throw new Error(l(12));if(void 0===r(void 0,{type:f.PROBE_UNKNOWN_ACTION()}))throw new Error(l(13))}))}(r)}catch(e){i=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(i)throw i;for(var n=!1,o={},s=0;s<a.length;s++){var u=a[s],c=r[u],f=e[u],d=c(f,t);if(void 0===d){t&&t.type;throw new Error(l(14))}o[u]=d,n=n||d!==f}return(n=n||a.length!==Object.keys(e).length)?o:e}}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(r,n){var a=e(r,n),s=function(){throw new Error(l(15))},u={getState:a.getState,dispatch:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return s.apply(void 0,[e].concat(r))}},c=t.map((function(e){return e(u)}));return s=v.apply(void 0,i(c))(a.dispatch),o(o({},a),{},{dispatch:s})}}}},34589:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.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)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Mz:()=>x});function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received ".concat(typeof e);if("function"!=typeof e)throw new TypeError(t)}var h=function(e){return Array.isArray(e)?e:[e]};function v(e){var t=Array.isArray(e[0])?e[0]:e;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every((function(e){return"function"==typeof e}))){var r=e.map((function(e){return"function"==typeof e?"function ".concat(e.name||"unnamed","()"):typeof e})).join(", ");throw new TypeError("".concat(t,"[").concat(r,"]"))}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var g="undefined"!=typeof WeakRef?WeakRef:function(){function e(t){n(this,e),this.value=t}return i(e,[{key:"deref",value:function(){return this.value}}]),e}(),m=0,y=1;function b(){return{s:m,v:void 0,o:null,p:null}}function w(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(),o=r.resultEqualityCheck,i=0;function a(){for(var r=n,a=0,s=arguments.length;a<s;a++){var l=arguments[a];if("function"==typeof l||"object"==typeof l&&null!==l){var u=r.o;null===u&&(r.o=u=new WeakMap);var c=u.get(l);void 0===c?(r=b(),u.set(l,r)):r=c}else{var f=r.p;null===f&&(r.p=f=new Map);var d=f.get(l);void 0===d?(r=b(),f.set(l,r)):r=d}}var p,h=r;if(r.s===y?p=r.v:(p=e.apply(null,arguments),i++),h.s=y,o){var v,m,w,O=null!==(v=null===(m=t)||void 0===m||null===(w=m.deref)||void 0===w?void 0:w.call(m))&&void 0!==v?v:t;null!=O&&o(O,p)&&(p=O,0!==i&&i--),t="object"==typeof p&&null!==p||"function"==typeof p?new g(p):p}return h.v=p,p}return a.clearCache=function(){n=b(),a.resetResultsCount()},a.resultsCount=function(){return i},a.resetResultsCount=function(){i=0},a}function O(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o="function"==typeof e?{memoize:e,memoizeOptions:r}:e,i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=0,a=0,l={},u=t.pop();"object"==typeof u&&(l=u,u=t.pop()),p(u,"createSelector expects an output function after the inputs, but received: [".concat(typeof u,"]"));var f=s(s({},o),l),d=f.memoize,g=f.memoizeOptions,m=void 0===g?[]:g,y=f.argsMemoize,b=void 0===y?w:y,O=f.argsMemoizeOptions,x=void 0===O?[]:O,S=(f.devModeChecks,h(m)),A=h(x),P=v(t),j=d.apply(void 0,[function(){return i++,u.apply(null,arguments)}].concat(c(S))),E=b.apply(void 0,[function(){a++;var e=function(e,t){for(var r=[],n=e.length,o=0;o<n;o++)r.push(e[o].apply(null,t));return r}(P,arguments);return n=j.apply(null,e)}].concat(c(A)));return Object.assign(E,{resultFunc:u,memoizedResultFunc:j,dependencies:P,dependencyRecomputations:function(){return a},resetDependencyRecomputations:function(){a=0},lastResult:function(){return n},recomputations:function(){return i},resetRecomputations:function(){i=0},memoize:d,argsMemoize:b})};return Object.assign(i,{withTypes:function(){return i}}),i}var x=O(w),S=Object.assign((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x;!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received ".concat(typeof e);if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ".concat(typeof e));var r=Object.keys(e),n=t(r.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t,n){return e[r[n]]=t,e}),{})}));return n}),{withTypes:function(){return S}})}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var i={};return(()=>{"use strict";o(7558),o(61942),o(79319),o(56298),o(18243),o(49520),o(92693),o(68668),o(57398),o(58742),o(38988),o(17179),o(63392),o(33915),o(85035),o(36664),o(98220),o(15486),o(265),o(5668),o(79125),o(30768),o(1395),o(38356),o(38707),o(69674),o(7701),o(23271),o(88641),o(21299),o(35214),o(23541),o(44414),o(3053),o(65566),o(95749),o(18121),o(11547),o(55719),o(53229),o(38771),o(11339),o(55792),o(11790),o(43376),o(14260),o(51214),o(34688),o(11729),o(52974),o(67907),o(89957),o(54933),o(66962),o(57837),o(4778),o(15590),o(52228),o(18727),o(74060),o(5299),o(41244),o(97085),o(82767),o(61418),o(9812),o(81891),o(69057),o(10657),o(40676),o(46725),o(6002),o(27721),o(59598),o(1948),o(26673),o(32055),o(81977),o(51614),o(58093),o(80340),o(48270),o(59604),o(37257),o(70358),o(50827),o(47001),o(96186),o(28147),o(85778),o(60836),o(27748),o(12734),o(85767),o(58336),o(35198),o(25870),o(86533),o(3811),o(83164),o(10711),o(55957),o(19562),o(77340),o(78739),o(94889),o(24069),o(43384),o(14178),o(89360),o(58950),o(27985),o(20912),o(20511),o(33633),o(93820),o(4299),o(89910),o(33876),o(2556),o(97379),o(69630),o(27564),o(3055),o(61573),o(70444),o(22888),o(27111),o(81792),o(63817),o(80248),o(51898),o(84600),o(96244),o(59801),o(26548),o(27808),o(27284),o(85587),o(30932),o(47216),o(62193),o(16223),o(50426),o(6021),o(33033),o(47169),o(34533),o(6497),o(68161),o(69760),o(11060),o(56551),o(63483),o(5986),o(76431),o(45201),o(41521),o(47672),o(87833),o(95782),o(85843),o(60075),o(54653),o(54137),o(30222),o(4999),o(44016),o(22422),o(7978),o(66225),o(42963),o(81373),o(96565),o(76921),o(41285),o(64982),o(71407),o(79422),o(46571),o(50284),o(7313),o(53270),o(3882),o(45952),o(95147),o(18208),o(18361),o(8782),o(92589),o(96532),o(15994),o(36784),o(54524),o(60456),o(69771),o(13584),o(49195),o(8849),o(57063),o(97251),o(94482),o(6545),o(45543),o(92092),o(269),o(55629),o(76301)})(),(()=>{"use strict";o.d(i,{default:()=>Bu});var e={};o.r(e),o.d(e,{default:()=>mu});var t={};o.r(t),o.d(t,{accessTokensReducer:()=>Zi,annotationsReducer:()=>Ji,authReducer:()=>na,catalogReducer:()=>ua,companionWindowsReducer:()=>ma,configReducer:()=>Sa,elasticLayoutReducer:()=>Ea,errorsReducer:()=>Ma,infoResponsesReducer:()=>Ba,layersReducer:()=>Va,manifestsReducer:()=>$a,searchesReducer:()=>es,viewersReducer:()=>os,windowsReducer:()=>ls,workspaceReducer:()=>hs});var r={};o.r(r),o.d(r,{getAccessTokens:()=>_s.X8,getAllowedWindowViewTypes:()=>ll.B2,getAnnotationResourcesByMotivation:()=>Zl.Y2,getAnnotationResourcesByMotivationForCanvas:()=>Zl.Ni,getAnnotations:()=>Zl.Rh,getAuth:()=>_s.xI,getAuthProfiles:()=>_s.Rf,getCanvas:()=>Rs.dX,getCanvasDescription:()=>Rs.HU,getCanvasForAnnotation:()=>al.bg,getCanvasGrouping:()=>Rs.O$,getCanvasGroupings:()=>Rs.tV,getCanvasIndex:()=>Ru.PB,getCanvasLabel:()=>Rs.T2,getCanvasLayers:()=>_u.p8,getCanvases:()=>Rs.P,getCatalog:()=>Ns.O5,getCompanionAreaVisibility:()=>il.ar,getCompanionWindow:()=>il.DS,getCompanionWindowIdsForPosition:()=>il.bN,getCompanionWindows:()=>il.aE,getCompanionWindowsForContent:()=>il.Ih,getCompanionWindowsForPosition:()=>il.kH,getConfig:()=>A.zj,getContainerId:()=>A.TW,getCurrentCanvas:()=>Rs.kR,getCurrentCanvasWorld:()=>Du.k,getDefaultSidebarVariant:()=>ku.bT,getDestructuredMetadata:()=>ol.uh,getElasticLayout:()=>sl.Q9,getExpandedNodeIds:()=>ku.S,getExportableState:()=>A.Gt,getFocusedWindowId:()=>sl.fT,getFullScreenEnabled:()=>sl.H,getLanguagesFromConfigWithCurrent:()=>A.x2,getLatestError:()=>sl.g,getLayers:()=>_u.bB,getLayersForVisibleCanvases:()=>_u.MS,getLayersForWindow:()=>_u.Av,getManifest:()=>Ns.c2,getManifestAutocompleteService:()=>ol.J4,getManifestDescription:()=>ol.CG,getManifestError:()=>ol.WA,getManifestHomepage:()=>ol.cm,getManifestLocale:()=>ol.U1,getManifestLogo:()=>ol.nB,getManifestMetadata:()=>ol.dB,getManifestProvider:()=>ol.X6,getManifestProviderName:()=>ol.is,getManifestRelated:()=>ol.rv,getManifestRelatedContent:()=>ol._l,getManifestRenderings:()=>ol.dn,getManifestSearchService:()=>ol.B8,getManifestSeeAlso:()=>ol.ES,getManifestStatus:()=>ol.YR,getManifestSummary:()=>ol.a$,getManifestThumbnail:()=>ol.yj,getManifestTitle:()=>ol.aY,getManifestUrl:()=>ol.hp,getManifestoInstance:()=>ol.SG,getManifests:()=>Ns.Rv,getManuallyExpandedNodeIds:()=>ku.tv,getMaximizedWindowsIds:()=>ll.Eu,getMetadataLocales:()=>ol.t_,getNextCanvasGrouping:()=>Rs.BL,getNextSearchId:()=>al.TU,getNodeIdToScrollTo:()=>ku.rK,getPresentAnnotationsOnSelectedCanvases:()=>Zl.Su,getPreviousCanvasGrouping:()=>Rs.Nj,getProviderLogo:()=>ol.B4,getRequestsConfig:()=>A.lT,getRequiredStatement:()=>ol.lj,getResourceAnnotationForSearchHit:()=>al.KB,getResourceAnnotationLabel:()=>al.wt,getRights:()=>ol._6,getSearchAnnotationsForCompanionWindow:()=>al.yy,getSearchAnnotationsForWindow:()=>al.sC,getSearchForWindow:()=>al.WF,getSearchIsFetching:()=>al.bq,getSearchNumTotal:()=>al.LR,getSearchQuery:()=>al.V8,getSelectedAnnotationId:()=>Zl.e3,getSelectedAnnotationsOnCanvases:()=>Zl.Z_,getSelectedContentSearchAnnotationIds:()=>al.SU,getSequence:()=>Ru.eb,getSequenceBehaviors:()=>Ru.pw,getSequenceTreeStructure:()=>Ru.P8,getSequenceViewingDirection:()=>Ru.Kb,getSequenceViewingHint:()=>Ru.sR,getSequences:()=>Ru.fO,getShowZoomControlsConfig:()=>A.X3,getSortedLayers:()=>_u.yK,getSortedSearchAnnotationsForCompanionWindow:()=>al.TA,getSortedSearchHitsForCompanionWindow:()=>al.XK,getTheme:()=>A.O4,getThemeDirection:()=>A.b3,getThemeIds:()=>A.Qc,getThumbnailNavigationPosition:()=>il.Ir,getViewer:()=>Ns.tk,getVisibleCanvasAudioResources:()=>Rs._K,getVisibleCanvasCaptions:()=>Rs.mK,getVisibleCanvasIds:()=>Rs.tv,getVisibleCanvasNonTiledResources:()=>Rs.RP,getVisibleCanvasVideoResources:()=>Rs.HS,getVisibleCanvases:()=>Rs.Mg,getVisibleNodeIds:()=>ku.BB,getWindow:()=>Ns.zk,getWindowConfig:()=>ll.R2,getWindowDraggability:()=>ll.kt,getWindowIds:()=>Ns.rG,getWindowManifests:()=>Ns.p3,getWindowTitles:()=>ll.wb,getWindowViewType:()=>ll.i9,getWindows:()=>Ns.sl,getWorkspace:()=>Ns.K4,getWorkspaceType:()=>sl.I3,isFocused:()=>sl.ar,miradorSlice:()=>Nu.t,selectCompanionWindowDimensions:()=>il.a4,selectCurrentAuthServices:()=>_s.wd,selectInfoResponse:()=>Rs.E_,selectInfoResponses:()=>Rs.dN,sortSearchAnnotationsByCanvasOrder:()=>al.gD});var n=o(56289),a=o(58301),s=o(78281),l=o(95606),u=o(44914),c=o.n(u),f=o(37465);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e){return e.mapStateToProps||e.mapDispatchToProps?a.Ng.apply(void 0,[e.mapStateToProps,e.mapDispatchToProps].concat(v(e.connectOptions||[])))(e.component):e.component}var y=o(28477);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e){var t=e.plugins,r=e.children,n=b((0,s.useState)({}),2),o=n[0],i=n[1];return(0,s.useEffect)((function(){var e=function(e){return e.map((function(e){return p(p({},e),{},{component:m(e)})}))}(t);!function(e){e.filter((function(e){return e.companionWindowKey})).forEach((function(e){f.A[e.companionWindowKey]=e.component})),f.A}(e),i(function(e){return e.reduce((function(e,t){return c()(e,[t.target,t.mode],(function(e){return[].concat(v(e||[]),[t])}))}),{})}(e))}),[t]),(0,y.jsx)(l.A.Provider,{value:o,children:r})}O.defaultProps={children:null,plugins:[]};var x=o(90757),S=o(38492),A=o(69972),P={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},j=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],E=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],I=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],T="undefined"!=typeof window&&void 0!==window.document?window.document:{},C="fullscreenEnabled"in T&&Object.keys(P)||j[0]in T&&j||E[0]in T&&E||I[0]in T&&I||[];const k={requestFullscreen:function(e){return e[C[P.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[C[P.requestFullscreen]]},get exitFullscreen(){return T[C[P.exitFullscreen]].bind(T)},get fullscreenPseudoClass(){return":"+C[P.fullscreen]},addEventListener:function(e,t,r){return T.addEventListener(C[P[e]],t,r)},removeEventListener:function(e,t,r){return T.removeEventListener(C[P[e]],t,r)},get fullscreenEnabled(){return Boolean(T[C[P.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return T[C[P.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return T[("on"+C[P.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return T[("on"+C[P.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return T[("on"+C[P.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return T[("on"+C[P.fullscreenerror]).toLowerCase()]=e}};var _=function(e){var t=e.handle,r=e.onChange,n=e.children,o=e.className,i=[];return o&&i.push(o),i.push("fullscreen"),t.active&&i.push("fullscreen-enabled"),(0,s.useEffect)((function(){r&&r(t.active,t)}),[t.active]),s.createElement("div",{className:i.join(" "),ref:t.node,style:t.active?{height:"100%",width:"100%"}:void 0},n)},R=o(19857),N=o(90157),D=o(63063),M=o(5550);const L=s.createContext(null);function z(){return s.useContext(L)}const W="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const B=function(e){var t=e.children,r=e.theme,n=z(),o=s.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):(0,D.A)({},e,t)}(n,r);return null!=e&&(e[W]=null!==n),e}),[r,n]);return(0,y.jsx)(L.Provider,{value:o,children:t})};var F=o(61334),H=o(31124),U=o(39701);function V(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G={};function q(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return s.useMemo((function(){var o=e&&t[e]||t;if("function"==typeof r){var i=r(o),a=e?(0,D.A)({},t,V({},e,i)):i;return n?function(){return a}:a}return e?(0,D.A)({},t,V({},e,r)):(0,D.A)({},t,r)}),[e,t,r,n])}const K=function(e){var t=e.children,r=e.theme,n=e.themeId,o=(0,H.A)(G),i=z()||G,a=q(n,o,r),s=q(n,i,r,!0),l="rtl"===a.direction;return(0,y.jsx)(B,{theme:s,children:(0,y.jsx)(F.T.Provider,{value:a,children:(0,y.jsx)(U.A,{value:l,children:t})})})};var $=o(12801),Z=["theme"];function X(e){var t=e.theme,r=(0,M.A)(e,Z),n=t[$.A];return(0,y.jsx)(K,(0,D.A)({},r,{themeId:n?$.A:void 0,theme:n||t}))}var Y=o(37983),Q=o(66875),J=o(71031),ee=o(37543),te=o(7216),re=o(1183),ne=o.n(re),oe="-ms-",ie="-moz-",ae="-webkit-",se="comm",le="rule",ue="decl",ce="@import",fe="@keyframes";function de(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}var pe=Math.abs,he=String.fromCharCode,ve=Object.assign;function ge(e){return e.trim()}function me(e,t){return(e=t.exec(e))?e[0]:e}function ye(e,t,r){return e.replace(t,r)}function be(e,t,r){return e.indexOf(t,r)}function we(e,t){return 0|e.charCodeAt(t)}function Oe(e,t,r){return e.slice(t,r)}function xe(e){return e.length}function Se(e,t){return t.push(e),e}function Ae(e,t){return e.filter((function(e){return!me(e,t)}))}var Pe=1,je=1,Ee=0,Ie=0,Te=0,Ce="";function ke(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Pe,column:je,length:a,return:"",siblings:s}}function _e(e,t){return ve(ke("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Re(e){for(;e.root;)e=_e(e.root,{children:[e]});Se(e,e.siblings)}function Ne(){return Te=Ie>0?we(Ce,--Ie):0,je--,10===Te&&(je=1,Pe--),Te}function De(){return Te=Ie<Ee?we(Ce,Ie++):0,je++,10===Te&&(je=1,Pe++),Te}function Me(){return we(Ce,Ie)}function Le(){return Ie}function ze(e,t){return Oe(Ce,e,t)}function We(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Be(e){return Pe=je=1,Ee=xe(Ce=e),Ie=0,[]}function Fe(e){return Ce="",e}function He(e){return ge(ze(Ie-1,Ge(91===e?e+2:40===e?e+1:e)))}function Ue(e){for(;(Te=Me())&&Te<33;)De();return We(e)>2||We(Te)>3?"":" "}function Ve(e,t){for(;--t&&De()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return ze(e,Le()+(t<6&&32==Me()&&32==De()))}function Ge(e){for(;De();)switch(Te){case e:return Ie;case 34:case 39:34!==e&&39!==e&&Ge(Te);break;case 40:41===e&&Ge(e);break;case 92:De()}return Ie}function qe(e,t){for(;De()&&e+Te!==57&&(e+Te!==84||47!==Me()););return"/*"+ze(t,Ie-1)+"*"+he(47===e?e:De())}function Ke(e){for(;!We(Me());)De();return ze(e,Ie)}function $e(e){return Fe(Ze("",null,null,null,[""],e=Be(e),0,[0],e))}function Ze(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,f=a,d=0,p=0,h=0,v=1,g=1,m=1,y=0,b="",w=o,O=i,x=n,S=b;g;)switch(h=y,y=De()){case 40:if(108!=h&&58==we(S,f-1)){-1!=be(S+=ye(He(y),"&","&\f"),"&\f",pe(u?s[u-1]:0))&&(m=-1);break}case 34:case 39:case 91:S+=He(y);break;case 9:case 10:case 13:case 32:S+=Ue(h);break;case 92:S+=Ve(Le()-1,7);continue;case 47:switch(Me()){case 42:case 47:Se(Ye(qe(De(),Le()),t,r,l),l);break;default:S+="/"}break;case 123*v:s[u++]=xe(S)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==m&&(S=ye(S,/\f/g,"")),p>0&&xe(S)-f&&Se(p>32?Qe(S+";",n,r,f-1,l):Qe(ye(S," ","")+";",n,r,f-2,l),l);break;case 59:S+=";";default:if(Se(x=Xe(S,t,r,u,c,o,s,b,w=[],O=[],f,i),i),123===y)if(0===c)Ze(S,t,x,x,w,i,f,s,O);else switch(99===d&&110===we(S,3)?100:d){case 100:case 108:case 109:case 115:Ze(e,x,x,n&&Se(Xe(e,x,x,0,0,o,s,b,o,w=[],f,O),O),o,O,f,s,n?w:O);break;default:Ze(S,x,x,x,[""],O,0,s,O)}}u=c=p=0,v=m=1,b=S="",f=a;break;case 58:f=1+xe(S),p=h;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==Ne())continue;switch(S+=he(y),y*v){case 38:m=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(xe(S)-1)*m,m=1;break;case 64:45===Me()&&(S+=He(De())),d=Me(),c=f=xe(b=S+=Ke(Le())),y++;break;case 45:45===h&&2==xe(S)&&(v=0)}}return i}function Xe(e,t,r,n,o,i,a,s,l,u,c,f){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),v=0,g=0,m=0;v<n;++v)for(var y=0,b=Oe(e,d+1,d=pe(g=a[v])),w=e;y<h;++y)(w=ge(g>0?p[y]+" "+b:ye(b,/&\f/g,p[y])))&&(l[m++]=w);return ke(e,t,r,0===o?le:s,l,u,c,f)}function Ye(e,t,r,n){return ke(e,t,r,se,he(Te),Oe(e,2,-2),0,n)}function Qe(e,t,r,n,o){return ke(e,t,r,ue,Oe(e,0,n),Oe(e,n+1,-1),n,o)}function Je(e,t,r){switch(e.type){case ce:case ue:case se:return e.return=e.return||e.value;case le:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===se&&(e.children=e.value)}))}var n=de(Array.prototype.concat(e.children),Je);return xe(n)?e.return=e.value+"{"+n+"}":""}function et(e,t,r,n){if(e.type===fe||"@supports"===e.type||e.type===le&&(!e.parent||"@media"===e.parent.type||e.parent.type===le)){var o=ne().transform(Je(e));e.children=o?$e(o)[0].children:[],e.return=""}}Object.defineProperty(et,"name",{value:"stylisRTLPlugin"});const tt=et;function rt(e,t,r){switch(function(e,t){return 45^we(e,0)?(((t<<2^we(e,0))<<2^we(e,1))<<2^we(e,2))<<2^we(e,3):0}(e,t)){case 5103:return ae+"print-"+e+e;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 ae+e+e;case 4789:return ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+ie+e+oe+e+e;case 5936:switch(we(e,t+11)){case 114:return ae+e+oe+ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+oe+ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+oe+ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ae+e+oe+e+e;case 6165:return ae+e+oe+"flex-"+e+e;case 5187:return ae+e+ye(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+oe+"flex-$1$2")+e;case 5443:return ae+e+oe+"flex-item-"+ye(e,/flex-|-self/g,"")+(me(e,/flex-|baseline/)?"":oe+"grid-row-"+ye(e,/flex-|-self/g,""))+e;case 4675:return ae+e+oe+"flex-line-pack"+ye(e,/align-content|flex-|-self/g,"")+e;case 5548:return ae+e+oe+ye(e,"shrink","negative")+e;case 5292:return ae+e+oe+ye(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+ye(e,"-grow","")+ae+e+oe+ye(e,"grow","positive")+e;case 4554:return ae+ye(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return ye(ye(ye(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return ye(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return ye(ye(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4200:if(!me(e,/flex-|baseline/))return oe+"grid-column-align"+Oe(e,t)+e;break;case 2592:case 3360:return oe+ye(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,me(e.props,/grid-\w+-end/)}))?~be(e+(r=r[t].value),"span",0)?e:oe+ye(e,"-start","")+e+oe+"grid-row-span:"+(~be(r,"span",0)?me(r,/\d+/):+me(r,/\d+/)-+me(e,/\d+/))+";":oe+ye(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return me(e.props,/grid-\w+-start/)}))?e:oe+ye(ye(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ye(e,/(.+)-inline(.+)/,ae+"$1$2")+e;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(xe(e)-1-t>6)switch(we(e,t+1)){case 109:if(45!==we(e,t+4))break;case 102:return ye(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+ie+(108==we(e,t+3)?"$3":"$2-$3"))+e;case 115:return~be(e,"stretch",0)?rt(ye(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return ye(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return oe+r+":"+n+s+(o?oe+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===we(e,t+6))return ye(e,":",":"+ae)+e;break;case 6444:switch(we(e,45===we(e,14)?18:11)){case 120:return ye(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ae+(45===we(e,14)?"inline-":"")+"box$3$1"+ae+"$2$3$1"+oe+"$2box$3")+e;case 100:return ye(e,":",":"+oe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ye(e,"scroll-","scroll-snap-")+e}return e}function nt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ue:return void(e.return=rt(e.value,e.length,r));case fe:return de([_e(e,{value:ye(e.value,"@","@"+ae)})],n);case le:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(me(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Re(_e(e,{props:[ye(t,/:(read-\w+)/,":"+ie+"$1")]})),Re(_e(e,{props:[t]})),ve(e,{props:Ae(r,n)});break;case"::placeholder":Re(_e(e,{props:[ye(t,/:(plac\w+)/,":"+ae+"input-$1")]})),Re(_e(e,{props:[ye(t,/:(plac\w+)/,":"+ie+"$1")]})),Re(_e(e,{props:[ye(t,/:(plac\w+)/,oe+"input-$1")]})),Re(_e(e,{props:[t]})),ve(e,{props:Ae(r,n)})}return""}))}}var ot=o(75888);function it(e){return function(e){if(Array.isArray(e))return mt(e)}(e)||at(e)||gt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function st(e,t,r){return t=ft(t),lt(e,ct()?Reflect.construct(t,r||[],ft(e).constructor):t.apply(e,r))}function lt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ut(e)}function ut(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ct=function(){return!!e})()}function ft(e){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ft(e)}function dt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pt(e,t)}function pt(e,t){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pt(e,t)}function ht(e,t){return yt(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||gt(e,t)||vt()}function vt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gt(e,t){if(e){if("string"==typeof e)return mt(e,t);var r=Object.prototype.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)?mt(e,t):void 0}}function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yt(e){if(Array.isArray(e))return e}function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach((function(t){Ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ot(e,t,r){return(t=Pt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function St(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pt(n.key),n)}}function At(e,t,r){return t&&St(e.prototype,t),r&&St(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pt(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var jt={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Et=function(){function e(t){xt(this,e);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,r)}return At(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||jt,this.options=t,this.debug=t.debug}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,wt(wt({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),It=new Et,Tt=function(){function e(){xt(this,e),this.observers={}}return At(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]||(r.observers[e]=new Map);var n=r.observers[e].get(t)||0;r.observers[e].set(t,n+1)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((function(e){for(var t=ht(e,2),n=t[0],o=t[1],i=0;i<o;i++)n.apply(void 0,r)}));this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((function(t){for(var n=ht(t,2),o=n[0],i=n[1],a=0;a<i;a++)o.apply(o,[e].concat(r))}))}}]),e}();function Ct(){var e,t,r=new Promise((function(r,n){e=r,t=n}));return r.resolve=e,r.reject=t,r}function kt(e){return null==e?"":""+e}var _t=/###/g;function Rt(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(_t,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?t:t.split("."),a=0;a<i.length-1;){if(o())return{};var s=n(i[a]);!e[s]&&r&&(e[s]=new r),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{},++a}return o()?{}:{obj:e,k:n(i[a])}}function Nt(e,t,r){var n=Rt(e,t,Object),o=n.obj,i=n.k;if(void 0===o&&1!==t.length){for(var a=t[t.length-1],s=t.slice(0,t.length-1),l=Rt(e,s,Object);void 0===l.obj&&s.length;)a="".concat(s[s.length-1],".").concat(a),(l=Rt(e,s=s.slice(0,s.length-1),Object))&&l.obj&&void 0!==l.obj["".concat(l.k,".").concat(a)]&&(l.obj=void 0);l.obj["".concat(l.k,".").concat(a)]=r}else o[i]=r}function Dt(e,t){var r=Rt(e,t),n=r.obj,o=r.k;if(n)return n[o]}function Mt(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):Mt(e[n],t[n],r):e[n]=t[n]);return e}function Lt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Wt(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return zt[e]})):e}var Bt=function(){function e(t){xt(this,e),this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}return At(e,[{key:"getRegExp",value:function(e){var t=this.regExpMap.get(e);if(void 0!==t)return t;var r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}]),e}(),Ft=[" ",",","?","!",";"],Ht=new Bt(20);function Ut(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;){if(!o||"object"!=typeof o)return;for(var a=void 0,s="",l=i;l<n.length;++l)if(l!==i&&(s+=r),void 0!==(a=o[s+=n[l]])){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;i+=l-i+1;break}o=a}return o}}function Vt(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}var Gt=function(e){function t(e){var r;xt(this,t);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(r=st(this,t)).data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return dt(t,e),At(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;if(e.indexOf(".")>-1)n=e.split(".");else if(n=[e,t],r)if(Array.isArray(r))(o=n).push.apply(o,it(r));else if("string"==typeof r&&a){var l;(l=n).push.apply(l,it(r.split(a)))}else n.push(r);var u=Dt(this.data,n);return!u&&!t&&!r&&e.indexOf(".")>-1&&(e=n[0],t=n[1],r=n.slice(2).join(".")),u||!s||"string"!=typeof r?u:Ut(this.data&&this.data[e]&&this.data[e][t],r,a)}},{key:"addResource",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Nt(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=Dt(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?Mt(s,r,o):s=wt(wt({},s),r),Nt(this.data,a,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?wt(wt({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),t}(Tt),qt={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,o))})),t}},Kt={},$t=function(e){function t(e){var r;xt(this,t);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t,r){e.forEach((function(e){t[e]&&(r[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,ut(r=st(this,t))),r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=It.create("translator"),r}return dt(t,e),At(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,r){t=t||"",r=r||"";var n=Ft.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===n.length)return!0;var o=Ht.getRegExp("(".concat(n.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,r,n));if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,r,n){var o=this;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r=wt({},r)),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],r),l=s.key,u=s.namespaces,c=u[u.length-1],f=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var p=r.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(c).concat(p).concat(l),usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:"".concat(c).concat(p).concat(l)}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:l}var h=this.resolve(e,r),v=h&&h.res,g=h&&h.usedKey||l,m=h&&h.exactUsedKey||l,y=Object.prototype.toString.apply(v),b=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&v&&("string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,wt(wt({},r),{},{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=O,h.usedParams=this.getUsedParamsDetails(r),h):O}if(a){var x="[object Array]"===y,S=x?[]:{},A=x?m:g;for(var P in v)if(Object.prototype.hasOwnProperty.call(v,P)){var j="".concat(A).concat(a).concat(P);S[P]=this.translate(j,wt(wt({},r),{joinArrays:!1,ns:u})),S[P]===j&&(S[P]=v[P])}v=S}}else if(w&&"string"==typeof b&&"[object Array]"===y)(v=v.join(b))&&(v=this.extendTranslation(v,e,r,n));else{var E=!1,I=!1,T=void 0!==r.count&&"string"!=typeof r.count,C=t.hasDefaultValue(r),k=T?this.pluralResolver.getSuffix(f,r.count,r):"",_=r.ordinal&&T?this.pluralResolver.getSuffix(f,r.count,{ordinal:!1}):"",R=T&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),N=R&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]||r["defaultValue".concat(k)]||r["defaultValue".concat(_)]||r.defaultValue;!this.isValidLookup(v)&&C&&(E=!0,v=N),this.isValidLookup(v)||(I=!0,v=l);var D=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:v,M=C&&N!==v&&this.options.updateMissing;if(I||E||M){if(this.logger.log(M?"updateKey":"missingKey",f,c,l,M?N:v),a){var L=this.resolve(l,wt(wt({},r),{},{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var z=[],W=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&W&&W[0])for(var B=0;B<W.length;B++)z.push(W[B]);else"all"===this.options.saveMissingTo?z=this.languageUtils.toResolveHierarchy(r.lng||this.language):z.push(r.lng||this.language);var F=function(e,t,n){var i=C&&n!==v?n:D;o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,i,M,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,i,M,r),o.emit("missingKey",e,c,t,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?z.forEach((function(e){var t=o.pluralResolver.getSuffixes(e,r);R&&r["defaultValue".concat(o.options.pluralSeparator,"zero")]&&t.indexOf("".concat(o.options.pluralSeparator,"zero"))<0&&t.push("".concat(o.options.pluralSeparator,"zero")),t.forEach((function(t){F([e],l+t,r["defaultValue".concat(t)]||N)}))})):F(z,l,N))}v=this.extendTranslation(v,e,r,h,n),I&&v===l&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(l)),(I||E)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(l):l,E?v:void 0):this.options.parseMissingKeyHandler(v))}return i?(h.res=v,h.usedParams=this.getUsedParamsDetails(r),h):v}},{key:"extendTranslation",value:function(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,wt(wt({},this.options.interpolation.defaultVariables),r),r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(wt(wt({},r),{interpolation:wt(wt({},this.options.interpolation),r.interpolation)}));var a,s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=wt(wt({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,r.lng||this.language,r),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var f=r.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==r.applyPostProcessor&&(e=qt.handle(d,e,t,this.options&&this.options.postProcessPassResolved?wt({i18nResolved:wt(wt({},n),{},{usedParams:this.getUsedParamsDetails(r)})},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;r=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!Kt["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Kt["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(r){if(!a.isValidLookup(t)){o=r;var i,l=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,u,r,e,s);else{var c;f&&(c=a.pluralResolver.getSuffix(r,s.count,s));var h="".concat(a.options.pluralSeparator,"zero"),v="".concat(a.options.pluralSeparator,"ordinal").concat(a.options.pluralSeparator);if(f&&(l.push(u+c),s.ordinal&&0===c.indexOf(v)&&l.push(u+c.replace(v,a.options.pluralSeparator)),d&&l.push(u+h)),p){var g="".concat(u).concat(a.options.contextSeparator).concat(s.context);l.push(g),f&&(l.push(g+c),s.ordinal&&0===c.indexOf(v)&&l.push(g+c.replace(v,a.options.pluralSeparator)),d&&l.push(g+h))}}for(;i=l.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(r,e,i,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}},{key:"getUsedParamsDetails",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&"string"!=typeof e.replace,r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r=wt(wt({},this.options.interpolation.defaultVariables),r)),!t){r=wt({},r);var n,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=gt(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]);try{for(o.s();!(n=o.n()).done;){delete r[n.value]}}catch(e){o.e(e)}finally{o.f()}}return r}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,12)&&void 0!==e[r])return!0;return!1}}]),t}(Tt);function Zt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Xt=function(){function e(t){xt(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=It.create("languageUtils")}return At(e,[{key:"getScriptPartFromCode",value:function(e){if(!(e=Vt(e))||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!(e=Vt(e))||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zt(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zt(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Zt(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){return e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((function(e){o.indexOf(e)<0&&i(r.formatLanguageCode(e))})),o}}]),e}(),Yt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Qt={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Jt=["v1","v2","v3"],er=["v4"],tr={zero:0,one:1,two:2,few:3,many:4,other:5};var rr=function(){function e(t){xt(this,e);var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=It.create("pluralResolver"),this.options.compatibilityJSON&&!er.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(r={},Yt.forEach((function(e){e.lngs.forEach((function(t){r[t]={numbers:e.nr,plurals:Qt[e.fc]}}))})),r)}return At(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Vt("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(e,t){return tr[e]-tr[t]})).map((function(e){return"".concat(t.options.prepend).concat(r.ordinal?"ordinal".concat(t.options.prepend):"").concat(e)})):n.numbers.map((function(n){return t.getSuffix(e,n,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.ordinal?"ordinal".concat(this.options.prepend):"").concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Jt.includes(this.options.compatibilityJSON)}}]),e}();function nr(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,r){var n=Dt(e,r);return void 0!==n?n:Dt(t,r)}(e,t,r);return!i&&o&&"string"==typeof r&&void 0===(i=Ut(e,r,n))&&(i=Ut(t,r,n)),i}var or=function(){function e(){xt(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=It.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return At(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Wt,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Lt(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Lt(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Lt(t.nestingPrefix):t.nestingPrefixEscaped||Lt("$t("),this.nestingSuffix=t.nestingSuffix?Lt(t.nestingSuffix):t.nestingSuffixEscaped||Lt(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e=function(e,t){return e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g")};this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}},{key:"interpolate",value:function(e,t,r,n){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=nr(t,l,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(o,void 0,r,wt(wt(wt({},n),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(nr(t,l,a,s.options.keySeparator,s.options.ignoreJSONStructure),u,r,wt(wt(wt({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var r=o[1].trim();if(void 0===(i=c(r)))if("function"==typeof f){var l=f(e,o,n);i="string"==typeof l?l:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=kt(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0];var a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=wt(wt({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var l=[];(o=(o=wt({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,u=!0}if((n=t(s.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=kt(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=l.reduce((function(e,t){return i.format(e,t,a.lng,wt(wt({},a),{},{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function ir(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var o=n[1].substring(0,n[1].length-1);if("currency"===t&&o.indexOf(":")<0)r.currency||(r.currency=o.trim());else if("relativetime"===t&&o.indexOf(":")<0)r.range||(r.range=o.trim());else{o.split(";").forEach((function(e){if(e){var t,n=e.split(":"),o=yt(t=n)||at(t)||gt(t)||vt(),i=o[0],a=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[i.trim()]||(r[i.trim()]=a),"false"===a&&(r[i.trim()]=!1),"true"===a&&(r[i.trim()]=!0),isNaN(a)||(r[i.trim()]=parseInt(a,10))}}))}}return{formatName:t,formatOptions:r}}function ar(e){var t={};return function(r,n,o){var i=n+JSON.stringify(o),a=t[i];return a||(a=e(Vt(n),o),t[i]=a),a(r)}}var sr=function(){function e(){xt(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=It.create("formatter"),this.options=t,this.formats={number:ar((function(e,t){var r=new Intl.NumberFormat(e,wt({},t));return function(e){return r.format(e)}})),currency:ar((function(e,t){var r=new Intl.NumberFormat(e,wt(wt({},t),{},{style:"currency"}));return function(e){return r.format(e)}})),datetime:ar((function(e,t){var r=new Intl.DateTimeFormat(e,wt({},t));return function(e){return r.format(e)}})),relativetime:ar((function(e,t){var r=new Intl.RelativeTimeFormat(e,wt({},t));return function(e){return r.format(e,t.range||"day")}})),list:ar((function(e,t){var r=new Intl.ListFormat(e,wt({},t));return function(e){return r.format(e)}}))},this.init(t)}return At(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=ar(t)}},{key:"format",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((function(e,t){var i=ir(t),a=i.formatName,s=i.formatOptions;if(n.formats[a]){var l=e;try{var u=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},c=u.locale||u.lng||o.locale||o.lng||r;l=n.formats[a](e,c,wt(wt(wt({},s),o),u))}catch(e){n.logger.warn(e)}return l}return n.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();var lr=function(e){function t(e,r,n){var o;xt(this,t);var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(o=st(this,t)).backend=e,o.store=r,o.services=n,o.languageUtils=n.languageUtils,o.options=i,o.logger=It.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=i.maxParallelReads||10,o.readingCalls=0,o.maxRetries=i.maxRetries>=0?i.maxRetries:5,o.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(n,i.backend,i),o}return dt(t,e),At(t,[{key:"queueLoad",value:function(e,t,r,n){var o=this,i={},a={},s={},l={};return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===l[t]&&(l[t]=!0)))})),n||(s[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){!function(e,t,r,n){var o=Rt(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],n&&(i[a]=i[a].concat(r)),n||i[a].push(r)}(r.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:r,tried:o,wait:i,callback:a});else{this.readingCalls++;var s=function(s,l){if(n.readingCalls--,n.waitingReads.length>0){var u=n.waitingReads.shift();n.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&l&&o<n.maxRetries?setTimeout((function(){n.read.call(n,e,t,r,o+1,2*i,a)}),i):a(s,l)},l=this.backend[r].bind(this.backend);if(2!==l.length)return l(e,t,s);try{var u=l(e,t);u&&"function"==typeof u.then?u.then((function(e){return s(null,e)})).catch(s):s(null,u)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(o," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){var s=wt(wt({},i),{},{isUpdate:o}),l=this.backend.create.bind(this.backend);if(l.length<6)try{var u;(u=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof u.then?u.then((function(e){return a(null,e)})).catch(a):a(null,u)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}]),t}(Tt);function ur(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function cr(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function fr(){}var dr=function(e){function t(){var e;xt(this,t);var r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if((e=st(this,t)).options=cr(n),e.services={},e.logger=It,e.modules={external:[]},r=ut(e),Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((function(e){"function"==typeof r[e]&&(r[e]=r[e].bind(r))})),o&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,o),lt(e,ut(e));setTimeout((function(){e.init(n,o)}),0)}return e}return dt(t,e),At(t,[{key:"init",value:function(){var e=this,t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof r&&(n=r,r={}),!r.defaultNS&&!1!==r.defaultNS&&r.ns&&("string"==typeof r.ns?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));var o=ur();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=wt(wt(wt({},o),this.options),cr(r)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=wt(wt({},o.interpolation),this.options.interpolation)),void 0!==r.keySeparator&&(this.options.userDefinedKeySeparator=r.keySeparator),void 0!==r.nsSeparator&&(this.options.userDefinedNsSeparator=r.nsSeparator),!this.options.isClone){var a;this.modules.logger?It.init(i(this.modules.logger),this.options):It.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=sr);var s=new Xt(this.options);this.store=new Gt(this.options.resources,this.options);var l=this.services;l.logger=It,l.resourceStore=this.store,l.languageUtils=s,l.pluralResolver=new rr(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format||(l.formatter=i(a),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new or(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new lr(i(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t.emit.apply(t,[e].concat(n))})),this.modules.languageDetector&&(l.languageDetector=i(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=i(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new $t(this.services,this.options),this.translator.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];t.emit.apply(t,[e].concat(n))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=fr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(r){e[r]=function(){var e;return(e=t.store)[r].apply(e,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(r){e[r]=function(){var e;return(e=t.store)[r].apply(e,arguments),t}}));var c=Ct(),f=function(){var t=function(t,r){e.isInitializing=!1,e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fr,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();var o=[],i=function(e){e&&("cimode"!==e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){"cimode"!==e&&o.indexOf(e)<0&&o.push(e)})))};if(n)i(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,r){var n=Ct();return e||(e=this.languages),t||(t=this.options.ns),r||(r=fr),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&qt.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this,n=this;this.isLanguageChangingTo=e;var o=Ct();this.emit("languageChanging",e);var i=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},a=function(a){e||a||!r.services.languageDetector||(a=[]);var s="string"==typeof a?a:r.services.languageUtils.getBestMatchFromCodes(a);s&&(r.language||i(s),r.translator.language||r.translator.changeLanguage(s),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(s)),r.loadResources(s,(function(e){!function(e,a){a?(i(a),r.translator.changeLanguage(a),r.isLanguageChangingTo=void 0,r.emit("languageChanged",a),r.logger.log("languageChanged",a)):r.isLanguageChangingTo=void 0,o.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,s)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t,r){var n=this,o=function e(t,o){var i;if("object"!=typeof o){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else i=wt({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||r||e.keyPrefix;var u,c=n.options.keySeparator||".";return u=i.keyPrefix&&Array.isArray(t)?t.map((function(e){return"".concat(i.keyPrefix).concat(c).concat(e)})):i.keyPrefix?"".concat(i.keyPrefix).concat(c).concat(t):t,n.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=r.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(n,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=Ct();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=Ct();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter((function(e){return n.indexOf(e)<0}));return o.length?(this.options.preload=n.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new Xt(ur());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fr,o=r.forkResourceStore;o&&delete r.forkResourceStore;var i=wt(wt(wt({},this.options),r),{isClone:!0}),a=new t(i);void 0===r.debug&&void 0===r.prefix||(a.logger=a.logger.clone(r));return["store","services","language"].forEach((function(t){a[t]=e[t]})),a.services=wt({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},o&&(a.store=new Gt(this.store.data,i),a.services.resourceStore=a.store),a.translator=new $t(a.services,i),a.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];a.emit.apply(a,[e].concat(r))})),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}],[{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}}]),t}(Tt),pr=dr.createInstance();pr.createInstance=dr.createInstance;pr.createInstance,pr.dir,pr.init,pr.loadResources,pr.reloadResources,pr.use,pr.changeLanguage,pr.getFixedT,pr.t,pr.exists,pr.setDefaultNamespace,pr.hasLoadedNamespace,pr.loadNamespaces,pr.loadLanguages;const hr=JSON.parse('{"translation":{"aboutThisItem":"عن هذا العنصر","addedFromUrl":"(تمت إضافته من الرابط)","addManifestUrl":"موقع المصدر","addManifestUrlHelp":"الرابط لمصدر IIIF ","addResource":"اضف مصدر","annotationCanvasLabel_1/1":"العنصر: [{{الملصق}}]","annotationCanvasLabel_1/2":"يسار: [{{الملصق }}]","annotationCanvasLabel_2/2":"يمين: [{{الملصق}}]","annotations":"ملاحظات","attribution":"إسناد","attributionTitle":"حقوق","authenticationFailed":"التوثيق لم ينجح","authenticationRequired":"يجب توثيق الحساب لمنح الدخول الكامل","backToResults":"الرجوع الى النتائج","book":"كتاب","bottom":"أسفل","cancel":"الغاء","canvasIndex":"فهرس","changeTheme":"قم بتغيير الموضوع","clearSearch":"امسح","closeAddResourceForm":"إغلاق الإستمارة","closeAddResourceMenu":"إغلاق قائمة المصادر","closeCompanionWindow":"إغلاق اللوحة","closeWindow":"إغلاق النافذة","collapseSection":"تصغير جزء {{section}}","collapseSidePanel":"تصغير الشريط الجانبي","continue":"استمر","copy":"نسخ","currentItem":"العنصر الحالي","currentItem_1/1":"العنصر الحالي","currentItem_1/2":"يسار","currentItem_2/2":"يمين","dark":"موضوع داكن","dismiss":"تجاهل","downloadExport":"تصدير مساحة العمل","downloadExportWorkspace":"تصدير مساحة العمل","elastic":"مرن","elasticDescription":"حرك النوافذ و غير حجمها بحرية في مساحة عمل غير محدودة. يمكن أن تتداخل النوافذ أيضاً .","emptyResourceList":"قائمة المصادر الخاصة بك فارغة.","errorDialogConfirm":"حسناً","errorDialogTitle":"لقد حدث خطأ","exitFullScreen":"خروج من الشاشة الكاملة","expandSection":"توسيع الجزء {{section}}","expandSidePanel":"توسيع الشريط الجانبي","fetchManifest":"أضف","fullScreen":"شاشة كاملة","gallery":"المعرض","hideZoomControls":"إخفاء ضوابط التكبير","highlightAllAnnotations":"تحديد الكل","iiif_homepage":"عن هذه المصدر","iiif_manifest":"IIIF قائمة ","iiif_renderings":"تنسيقات بديلة","iiif_seeAlso":"أنظر أيضا","import":"استورد ","importWorkspace":"استيراد مساحة العمل","importWorkspaceHint":"قم بلصق تركيبة Mirador 3 ليتم استيراده","item":"العنصر: {{label}}","itemList":"قائمة العناصر","language":"اللغة","layer_hide":"إخفاء الطبقة","layer_move":"تحريك الطبقة","layer_moveToTop":"حرك الطبقة إلى الأعلى","layer_opacity":"تعتيم الطبقة","layer_show":"إظهار الطبقة","layers":"طبقات","light":"موضوع فاتح","links":"الروابط","listAllOpenWindows":"انتقل بسرعة للنافذة","login":"تسجيل الدخول","logout":"تسجيل الخروج","manifestError":"لا يمكن إضافة المصدر:","maximizeWindow":"تكبير النافذة إلى الحد الاكبر","minimizeWindow":"تصغير النافذة إلى الحد الأدنى","mirador":"Mirador","miradorResources":"مصادر Mirador ","miradorViewer":"مشاهد Mirador","more":"أكثر...","moreResults":"نتائج إضافية","mosaic":"فسيفساء","mosaicDescription":"حرك وغيٌر حجم النوافذ المتعلقة ببعضها البعض داخل الإطار المرئي.","moveCompanionWindowToBottom":"انتقل للأسفل","moveCompanionWindowToRight":"انتقل لليمين","nextCanvas":"العنصر التالي","numItems_one":"{{number}} عناصر","off":"ايقاف","openCompanionWindow_annotations":"ملاحظات","openCompanionWindow_attribution":"حقوق","openCompanionWindow_canvas":"فهرس","openCompanionWindow_info":"معلومات","openCompanionWindow_layers":"طبقات","openCompanionWindow_search":"بحث","openInCompanionWindow":"افتح في صفحة جديدة","openWindows":"النوافذ الحالية المفتوحة","pagination":"{{current}} من {{total}}","position":"مركز","previewWindowTitle":"عنوان","previousCanvas":"العنصر السابق","related":"ذات صلة","resource":"مصدر","retry":"أعد المحاولة ","right":"حق","rights":"ترخيص","searchInputLabel":"مصطلحات البحث","searchNextResult":"النتيجة التالية","searchNoResults":"لم يتم العثور على نتائج","searchPreviousResult":"النتيجة السابقة","searchSubmitAria":"ابحث","searchTitle":"بحث","selectWorkspaceMenu":"اختر نوع مساحة العمل","showingNumAnnotations_one":"تظهر {{number}} ملاحظات","showZoomControls":"اظهر عناصر التحكم بالتكبير و التصغير","sidebarPanelsNavigation":"تصفح لوح الشريط الجانبي","single":"مفرد","startHere":"إبدأ هنا","suggestSearch":"ابحث في هذا المستند عن \\"{{ query }}\\"","tableOfContentsList":"جدول المحتويات","theme":"موضوع","thumbnailList":"قائمة الصور المصغرة","thumbnailNavigation":"الصور المصغرة","thumbnails":"الصور المصغرة","toggleWindowSideBar":"تبديل الشريط الجانبي","tryAgain":"حاول مرة أخرى","untitled":"[بدون عنوان]","view":"شاهد","welcome":"مرحباً بكم في Mirador","window":"النافذة: {{label}}","windowMenu":"عرض النوافذ و الصور المصغرة","windowNavigation":"تصفح النافذة","windowPluginButtons":"خيارات","windowPluginMenu":"خيارات النافذة","workspace":"مساحة العمل","workspaceFullScreen":"شاشة كاملة","workspaceMenu":"اعدادات مساحة العمل","workspaceOptions":"خيارات مساحة العمل ","workspaceSelectionTitle":"اختر نوع مساحة العمل","zoomIn":"تكبير الصورة","zoomOut":"تصغير الصورة","zoomReset":"الرجوع لحجم الصورة الأساسي"}}'),vr=JSON.parse('{"translation":{"aboutMirador":"Über Mirador","aboutThisItem":"Über dieses Element","addedFromUrl":"(Via URL hinzugefügt)","addManifestUrl":"Ort der Ressource","addManifestUrlHelp":"Die URL einer IIIF-Ressource","addResource":"Ressource hinzufügen","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Links: [{{label}}]","annotationCanvasLabel_2/2":"Rechts: [{{label}}]","annotations":"Annotationen","attribution":"Zuschreibung","attributionTitle":"Rechte","authenticationFailed":"Authentifizierung fehlgeschlagen","authenticationRequired":"Für vollen Zugriff ist eine Authentifizierung nötig.","backToResults":"Zurück zur Trefferansicht","book":"Buch","bottom":"Unten","cancel":"Abbrechen","canvasIndex":"Index","changeTheme":"Farbschema ändern","clearSearch":"zurücksetzen","close":"Schließen","closeAddResourceForm":"Formular schließen","closeAddResourceMenu":"Ressourcenliste schließen","closeCompanionWindow":"Hilfsfenster schließen","closeWindow":"Fenster schließen","collapseSection":"Bereich \\"{{section}}\\" zuklappen","collapseSidePanel":"Seitenleiste zuklappen","collection":"Sammlung","continue":"Fortfahren","copy":"Kopieren","currentItem":"Aktuelles Objekt","currentItem_1/1":"Aktuelles Objekt","currentItem_1/2":"Links","currentItem_2/2":"Rechts","dark":"Dunkel","digitizedView":"Digitalisat-Ansicht","dismiss":"Verwerfen","displayNoAnnotations":"Keine hervorheben","downloadExport":"Arbeitsfläche exportieren","downloadExportWorkspace":"Arbeitsfläche exportieren","elastic":"Elastisch","elasticDescription":"Fenster können frei und unbegrenzt innerhalb der Arbeitsfläche bewegt werden und sich überlappen","emptyResourceList":"Ihre Ressourcenliste ist leer","error":"Fehler","errorDialogConfirm":"OK","errorDialogTitle":"Es ist ein Fehler aufgetreten","exitFullScreen":"Vollbildmodus verlassen","expandSection":"Bereich \\"{{section}}\\" aufklappen","expandSidePanel":"Seitenleiste aufklappen","exportCopied":"Die Konfiguration der Arbeitsfläche wurde in die Zwischenablage kopiert.","fetchManifest":"Hinzufügen","fullScreen":"Vollbild","gallery":"Galerie","hideZoomControls":"Zoomsteuerung verbergen","highlightAllAnnotations":"Alle hervorheben","iiif_homepage":"Über diese Ressource","iiif_manifest":"IIIF-Manifest","iiif_related":"Verwandtes","iiif_renderings":"Alternative Formate","iiif_seeAlso":"Siehe auch","import":"Importieren","importWorkspace":"Arbeitsfläche importieren","importWorkspaceHint":"Fügen Sie eine Mirador-3-Konfiguration ein, die importiert werden soll.","item":"Objekt: {{label}}","itemList":"Kompaktliste","jsError":"Technische Details","jsStack":"{{ stack }}","language":"Sprache","layer_hide":"Ebene verbergen","layer_move":"Ebene verschieben","layer_moveToTop":"Ebene ganz nach vorn bringen","layer_opacity":"Ebenendeckkraft","layer_show":"Ebene anzeigen","layers":"Ebenen","light":"Hell","links":"Links","listAllOpenWindows":"Zu Fenster springen","login":"Anmelden","logout":"Abmelden","manifestError":"Die Ressource konnte nicht hinzugefügt werden:","maximizeWindow":"Fenster maximieren","minimizeWindow":"Fenster minimieren","mirador":"Mirador","miradorResources":"Mirador-Ressourcen","miradorViewer":"Mirador","more":"mehr...","moreResults":"Mehr Treffer","mosaic":"Mosaik","mosaicDescription":"Fenster können innerhalb der Arbeitsfläche in Relation zueinander verschoben und ihrer Größe verändert werden.","moveCompanionWindowToBottom":"Unten anordnen","moveCompanionWindowToRight":"Rechts anordnen","multipartCollection":"Mehrteilige Sammlung","nextCanvas":"Nächstes Objekt","noItemSelected":"Kein Objekt ausgewählt","numItems_one":"{{number}} Elemente","numItems_other":"{{number}} Elemente","off":"Keine","openCompanionWindow_annotations":"Annotationen","openCompanionWindow_attribution":"Rechte","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informationen","openCompanionWindow_layers":"Ebenen","openCompanionWindow_search":"Suche","openInCompanionWindow":"In Hilfsfenster öffnen","openWindows":"Aktuell offene Fenster","pagination":"{{current}} von {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Vorheriges Objekt","related":"Verwandtes","resource":"Ressource","retry":"Erneut versuchen","right":"Rechts","rights":"Lizenz","scroll":"Kontinuierlich","searchInputLabel":"Suchbegriffe","searchNextResult":"Nächster Treffer","searchNoResults":"Keine Treffer","searchPreviousResult":"Vorheriger Treffer","searchResultsRemaining":"{{numLeft}} weitere","searchSubmitAria":"Suchen","searchTitle":"Suche","selectWorkspaceMenu":"Wählen Sie einen Arbeitsflächentyp","showCollection":"Zeige Sammlung","showingNumAnnotations_one":"{{number}} Annotation wird angezeigt","showingNumAnnotations_other":"{{number}} Annotationen werden angezeigt","showZoomControls":"Zoomsteuerung anzeigen","sidebarPanelsNavigation":"Hilfsfensternavigation","single":"Einzeln","startHere":"Hier starten","suggestSearch":"Dieses Dokument durchsuchen nach \\"{{ query }}\\"","tableOfContentsList":"Inhaltsverzeichnis","theme":"Farbschema","thumbnailList":"Miniaturansicht","thumbnailNavigation":"Miniaturansicht","thumbnails":"Miniaturansicht","toggleWindowSideBar":"Seitenleiste umschalten","totalCollections_one":"{{count}} Sammlung","totalCollections_other":"{{count}} Sammlungen","totalManifests_one":"{{count}} Manifest","totalManifests_other":"{{count}} Manifeste","tryAgain":"Wiederholen","untitled":"[Unbenannt]","view":"Ansicht","viewWorkspaceConfiguration":"Zeige Konfiguration der Arbeitsfläche","welcome":"Willkommen bei Mirador","window":"Fenster: {{label}}","windowMenu":"Fenstermenü und Miniaturansicht","windowNavigation":"Fensternavigation","windowPluginButtons":"Optionen","windowPluginMenu":"Fensteroptionen","workspace":"Arbeitsfläche","workspaceFullScreen":"Vollbild","workspaceMenu":"Arbeitsflächenmenü","workspaceNavigation":"Arbeitsflächensteuerung","workspaceOptions":"Arbeitsflächenoptionen","workspaceSelectionTitle":"Bitte wählen Sie einen Arbeitsflächentyp","zoomIn":"Vergrößern","zoomOut":"Verkleinern","zoomReset":"Ansicht zurücksetzen"}}'),gr=JSON.parse('{"translation":{"aboutMirador":"About Project Mirador","aboutThisItem":"About this item","addedFromUrl":"(Added from URL)","addManifestUrl":"Resource location","addManifestUrlHelp":"The URL of a IIIF resource","addResource":"Add resource","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Left: [{{label}}]","annotationCanvasLabel_2/2":"Right: [{{label}}]","annotations":"Annotations","attribution":"Attribution","attributionTitle":"Rights","authenticationFailed":"Authentication failed.","authenticationRequired":"Authentication required for full access","backToResults":"Back to results","book":"Book","bottom":"Bottom","cancel":"Cancel","canvasIndex":"Index","changeTheme":"Change theme","clearSearch":"clear","close":"Close","closeAddResourceForm":"Close form","closeAddResourceMenu":"Close resource list","closeCompanionWindow":"Close panel","closeWindow":"Close window","collapseSection":"Collapse \\"{{section}}\\" section","collapseSidePanel":"Collapse sidebar","collection":"Collection","continue":"Continue","copy":"Copy","currentItem":"Current item","currentItem_1/1":"Current item","currentItem_1/2":"Left","currentItem_2/2":"Right","dark":"Dark theme","digitizedView":"Digitized view","dismiss":"Dismiss","displayNoAnnotations":"Highlight none","downloadExport":"Export workspace","downloadExportWorkspace":"Export workspace","elastic":"Elastic","elasticDescription":"Move and size windows freely in an unlimited workspace. Windows can overlap.","emptyResourceList":"Your resource list is empty","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"An error occurred","exitFullScreen":"Exit full screen","expandSection":"Expand \\"{{section}}\\" section","expandSidePanel":"Expand sidebar","exportCopied":"The workspace configuration was copied to your clipboard","fetchManifest":"Add","fullScreen":"Full Screen","gallery":"Gallery","hideZoomControls":"Hide zoom controls","highlightAllAnnotations":"Highlight all","iiif_homepage":"About this resource","iiif_manifest":"IIIF manifest","iiif_related":"Related","iiif_renderings":"Alternate formats","iiif_seeAlso":"See also","import":"Import","importWorkspace":"Import workspace","importWorkspaceHint":"Paste a Mirador 3 configuration to be imported","item":"Item: {{label}}","itemList":"Item list","jsError":"Technical details","jsStack":"{{ stack }}","language":"Language","layer_hide":"Hide layer","layer_move":"Move layer","layer_moveToTop":"Move layer to top","layer_opacity":"Layer opacity","layer_show":"Show layer","layers":"Layers","light":"Light theme","links":"Links","listAllOpenWindows":"Jump to window","login":"Log in","logout":"Log out","manifestError":"The resource cannot be added:","maximizeWindow":"Maximize window","minimizeWindow":"Minimize window","mirador":"Mirador","miradorResources":"Mirador resources","miradorViewer":"Mirador viewer","more":"more...","moreResults":"More results","mosaic":"Mosaic","mosaicDescription":"Move and size windows in relation to each other, within the visible frame.","moveCompanionWindowToBottom":"Move to bottom","moveCompanionWindowToRight":"Move to right","multipartCollection":"Multipart Collection","nextCanvas":"Next item","noItemSelected":"No item selected","numItems_one":"{{number}} item","numItems_other":"{{number}} items","off":"Off","openCompanionWindow_annotations":"Annotations","openCompanionWindow_attribution":"Rights","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Information","openCompanionWindow_layers":"Layers","openCompanionWindow_search":"Search","openInCompanionWindow":"Open in separate panel","openWindows":"Current open windows","pagination":"{{current}} of {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Previous item","related":"Related","resource":"Resource","retry":"Retry","right":"Right","rights":"License","scroll":"Scroll","searchInputLabel":"search terms","searchNextResult":"Next result","searchNoResults":"No results found","searchPreviousResult":"Previous result","searchResultsRemaining":"{{numLeft}} remaining","searchSubmitAria":"Submit search","searchTitle":"Search","selectWorkspaceMenu":"Select workspace type","showCollection":"Show collection","showingNumAnnotations_one":"Showing {{number}} annotation","showingNumAnnotations_other":"Showing {{number}} annotations","showZoomControls":"Show zoom controls","sidebarPanelsNavigation":"Sidebar panels navigation","single":"Single","startHere":"Start Here","suggestSearch":"Search this document for \\"{{ query }}\\"","tableOfContentsList":"Table of contents","theme":"Theme","thumbnailList":"Thumbnail list","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Toggle sidebar","totalCollections_one":"{{count}} collection","totalCollections_other":"{{count}} collections","totalManifests_one":"{{count}} manifest","totalManifests_other":"{{count}} manifests","tryAgain":"Try again","untitled":"[Untitled]","view":"View","viewWorkspaceConfiguration":"View workspace configuration","welcome":"Welcome to Mirador","window":"Window: {{label}}","windowMenu":"Window views & thumbnail display","windowNavigation":"Window navigation","windowPluginButtons":"Options","windowPluginMenu":"Window options","workspace":"Workspace","workspaceFullScreen":"Full screen","workspaceMenu":"Workspace settings","workspaceNavigation":"Workspace navigation","workspaceOptions":"Workspace options","workspaceSelectionTitle":"Select a workspace type","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),mr=JSON.parse('{"translation":{"aboutMirador":"Projekti Mirador kohta","aboutThisItem":"Teave teose kohta","addedFromUrl":"(Lisatud URL-ist)","addManifestUrl":"Teose asukoht","addManifestUrlHelp":"IIIF manifesti URL","addResource":"Lisa teos","annotationCanvasLabel_1/1":"Teos: [{{label}}]","annotationCanvasLabel_1/2":"Vasak: [{{label}}]","annotationCanvasLabel_2/2":"Parem: [{{label}}]","annotations":"Annotatsioonid","attribution":"Omistus","attributionTitle":"Kasutusõigused","authenticationFailed":"Autentimine ebaõnnestus","authenticationRequired":"Juurdepääsu saamiseks on vajalik autentimine.","backToResults":"Tagasi tulemustele","book":"Raamat","bottom":"All","cancel":"Katkesta","canvasIndex":"Indeks","changeTheme":"Muuda teema","clearSearch":"Puhasta","close":"Sulge","closeAddResourceForm":"Sulge vorm","closeAddResourceMenu":"Sulge teoste loend","closeCompanionWindow":"Sulge paneel","closeWindow":"Sulge aken","collapseSection":"Sulge \\"{{section}}\\"","collapseSidePanel":"Sulge külgpaneel","collection":"Kollektsioon","continue":"Jätka","copy":"Kopeeri","currentItem":"Kuvatav lõuend","currentItem_1/1":"Pealkiri","currentItem_1/2":"Vasak","currentItem_2/2":"Parem","dark":"Tume teema","digitizedView":"Digiteeritud vaade","dismiss":"Vabasta","displayNoAnnotations":"Ära kuva annotatsioone","downloadExport":"Ekspordi tööruum","downloadExportWorkspace":"Ekspordi tööruum","elastic":"Paindlik vaade","elasticDescription":"Saad akende suurust muuta ja neid vabalt tööruumis ringi liigutada.","emptyResourceList":"Teoste loend on tühi","error":"Viga","errorDialogConfirm":"OK","errorDialogTitle":"Esines viga","exitFullScreen":"Lähtesta","expandSection":"Ava \\"{{section}}\\"","expandSidePanel":"Ava külgpaneel","exportCopied":"Tööruumi seadustused kopeeriti lõikepuhvrisse.","fetchManifest":"Lisa","fullScreen":"Täisekraan","gallery":"Galerii","hideZoomControls":"Peida suurendamisnupud","highlightAllAnnotations":"Kuva kõik annotatsioonid","iiif_homepage":"Teave teose kohta","iiif_manifest":"IIIF manifest","iiif_related":"Seotud","iiif_renderings":"Alternatiivsed vormingud","iiif_seeAlso":"Vaata ka","import":"Impordi","importWorkspace":"Impordi tööruum","importWorkspaceHint":"Kleebi imporditava tööruumi seadistused.","item":"Lõuend: {{label}}","itemList":"Lõuendite loetelu","jsError":"Tehnilised üksikasjad","jsStack":"{{ stack }}","language":"Keel","layer_hide":"Peida kiht","layer_move":"Liiguta kihti","layer_moveToTop":"Tõsta kiht esile","layer_opacity":"Kihi läbipaistvus","layer_show":"Näita kihti","layers":"Kihid","light":"Hele teema","links":"Lingid","listAllOpenWindows":"Vali aken","login":"Logi sisse","logout":"Logi välja","manifestError":"Ei ole võimalik lisada soovitud teost:","maximizeWindow":"Suurenda akent","minimizeWindow":"Vähenda akent","mirador":"Mirador","miradorResources":"Miradori teoste loetelu","miradorViewer":"Miradori vaatur","more":"rohkem...","moreResults":"Veel tulemusi","mosaic":"Mosaiik","mosaicDescription":"Muuda töölaua akende suurust ja liiguta neid üksteise suhtes.","moveCompanionWindowToBottom":"Liiguta alla","moveCompanionWindowToRight":"Liiguta paremale","multipartCollection":"Mitmeosaline kollektsioon","nextCanvas":"Järgmine lõuend","noItemSelected":"Ühtegi lõuendit pole valitud.","numItems_one":"{{number}} lõuend","numItems_other":"{{number}} lõuendit","off":"Väljas","openCompanionWindow_annotations":"Annotatsioonid","openCompanionWindow_attribution":"Kasutusõigused","openCompanionWindow_canvas":"Struktuur","openCompanionWindow_info":"Teave","openCompanionWindow_layers":"Kihid","openCompanionWindow_search":"Otsing","openInCompanionWindow":"Ava eraldi paneelis","openWindows":"Hetkel avatud aknad","pagination":"{{current}} / {{total}}","position":"Asukoht","previewWindowTitle":"{{title}}","previousCanvas":"Eelmine lõuend","related":"Seotud","resource":"Teos,","retry":"Proovi uuesti","right":"Parem","rights":"Kasutuslitsents","scroll":"Keri","searchInputLabel":"otsinguterminid","searchNextResult":"Järgmine tulemus","searchNoResults":"Tulemusi ei leitud","searchPreviousResult":"Eelmine tulemus","searchResultsRemaining":"{{numLeft}} alles","searchSubmitAria":"Otsi","searchTitle":"Otsi","selectWorkspaceMenu":"Vali tööruumi tüüp","showCollection":"Näita kollektsiooni","showingNumAnnotations_one":"Näitan {{number}} annotatsiooni","showingNumAnnotations_other":"Näitan {{number}} annotatsiooni","showZoomControls":"Näita suurendamisnuppe","sidebarPanelsNavigation":"Külgpaneelide navigeerimine","single":"Üksik","startHere":"Alusta siit","suggestSearch":"Otsi sellest dokumendist \\"{{ query }}\\"","tableOfContentsList":"Sisukord","theme":"Teema","thumbnailList":"Pisipiltide loend","thumbnailNavigation":"Pisipildid","thumbnails":"Pisipildid","toggleWindowSideBar":"külgpaneel","totalCollections_one":"{{count}} kollektsioon","totalCollections_other":"{{count}} kollektsiooni","totalManifests_one":"{{count}} manifest","totalManifests_other":"{{count}} manifesti","tryAgain":"Proovi uuesti","untitled":"[Pealkiri puudub]","view":"Vaade","viewWorkspaceConfiguration":"Vaata tööruumi seadistusi","welcome":"Tere tulemast Miradori","window":"Aken: {{label}}","windowMenu":"Akna vaated ja pisipiltide kuvamine","windowNavigation":"Akna navigeerimine","windowPluginButtons":"Suvandid","windowPluginMenu":"Akna suvandid","workspace":"Tööruum","workspaceFullScreen":"Täisekraan","workspaceMenu":"Tööruumi sätted","workspaceNavigation":"Tööruumi navigeerimine","workspaceOptions":"Tööruumi valikud","workspaceSelectionTitle":"Vali tööruumi tüüp","zoomIn":"Suurenda sisse","zoomOut":"Suurenda välja","zoomReset":"Lähtesta suurendus"}}'),yr=JSON.parse('{"translation":{"aboutMirador":"در بارهٔ پروژه Mirador","aboutThisItem":"در بارهٔ این مورد","addedFromUrl":"(از آدرس اینترنتی ازافه شده)","addManifestUrl":"مکان منبع","addManifestUrlHelp":"آدرس اینترنتی منبع IIIF ","addResource":"منبع را ازافه کن","annotationCanvasLabel_1/1":"مورد: [{{label}}]","annotationCanvasLabel_1/2":"چپ: [{{label}}]","annotationCanvasLabel_2/2":"راست: [{{label}}]","annotations":"حاشیه نویسی ها","attribution":"نسبت دادن","attributionTitle":"حقوق","authenticationFailed":"تصدیق هویت ناموفق بود.","authenticationRequired":"برای دسترسی کامل نیاز به احراز هویت","backToResults":"بازگشت به نتایج","book":"کتاب","bottom":"پایان","cancel":"لغو","canvasIndex":"فهرست راهنما","changeTheme":"تغیر زمینه","clearSearch":"پاک کن","close":"ببند","closeAddResourceForm":"پرسش‌نامه‌ را ببند","closeAddResourceMenu":"فهرست منابع را ببند","closeCompanionWindow":"پانل را ببند","closeWindow":"پنجره را ببند","collapseSection":"بخش \\"{{section}}\\" را کوچک کنید","collapseSidePanel":"نوار کناری را کوچک کن","collection":"مجموعه","continue":"ادامه","copy":"کپی","currentItem":"مورد فعلی","currentItem_1/1":"مورد فعلی","currentItem_1/2":"چپ","currentItem_2/2":"راست","dark":"زمینه تاریک","digitizedView":"نمای دیجیتالی شده","dismiss":"مرخص کن","displayNoAnnotations":"هیچ کدام را برجسته نکنید","downloadExport":"صدور فضای کاری","downloadExportWorkspace":"صدور فضای کاری","elastic":"کشدار","elasticDescription":"پنجره ها را آزادانه در یک فضای کاری نامحدود حرکت دهید و اندازه کنید. پنجره ها می تواند همپوشانی داشته باشند.","emptyResourceList":"فهرست منابع شما خالی است","error":"خطا","errorDialogConfirm":"OK","errorDialogTitle":"خطایی اتفاق افتاد","exitFullScreen":"خروج از تمام صفحه","expandSection":"بخش \\"{{section}}\\" را باز کنید","expandSidePanel":"نوار کناری را باز کن","exportCopied":"پیکربندی فضای کاری در کلیپ بورد شما کپی شد","fetchManifest":"اضافه کن","fullScreen":"تمام صفحه","gallery":"آلبوم عکس","hideZoomControls":"کنترل های بزرگنما را مخفی کنید","highlightAllAnnotations":"همه را برجسته کنید","iiif_homepage":"در باره ی این منبع","iiif_manifest":"بیانیه ی IIIF","iiif_related":"مربوط","iiif_renderings":"فرمت های جایگزین","iiif_seeAlso":"همچنین ببینید","import":"وارد كنید","importWorkspace":"فضای کاری را وارد كنید","importWorkspaceHint":"پیکربندی Mirador 3 را برای وارد کردن جای‌گذاری کنید","item":"مورد: {{label}}","itemList":"فهرست موارد","jsError":"جزییات فنی","jsStack":"{{ stack }}","language":"زبان","layer_hide":"لایه را پنهان کنید","layer_move":"لایه را حرکت دهید","layer_moveToTop":"لایه را به بالا منتقل کنید","layer_opacity":"لایه کدورت","layer_show":"نمایش لایه","layers":"لایه ها","light":"زمینه رشن","links":"پیوندها","listAllOpenWindows":"پرش به پنجره","login":"وارد به سیستم","logout":"خروج از سیستم","manifestError":"منبع اضافه نمیشود :","maximizeWindow":"پنجره را به حداکثر برسانید","minimizeWindow":"پنجره را به حداقل برسانید","mirador":"Mirador","miradorResources":"منابعی Mirador","miradorViewer":"بیننده Mirador","more":"بیشتر...","moreResults":"نتایج بیشتر","mosaic":"موزائیک","mosaicDescription":"جابجایی و اندازه پنجره ها نسبت به یکدیگر، در چارچوب قابل مشاهده.","moveCompanionWindowToBottom":"حرکت به سمت پایین","moveCompanionWindowToRight":"حرکت به سمت راست","multipartCollection":"مجموعه چند قسمتی","nextCanvas":"مورد بعدی","noItemSelected":"هیچ موردی انتخاب نشده است","numItems_one":"{{number}} مورد","numItems_other":"{{number}} موارد","off":"خاموش","openCompanionWindow_annotations":"حاشیه نویسی ها","openCompanionWindow_attribution":"حقوق","openCompanionWindow_canvas":"فهرست راهنما","openCompanionWindow_info":"اطلاعات","openCompanionWindow_layers":"لایه ها","openCompanionWindow_search":"جستجو","openInCompanionWindow":"در پنل جداگانه باز کن","openWindows":"پنجره های باز","pagination":"{{total}} از {{current}}","position":"موقعیت","previewWindowTitle":"{{title}}","previousCanvas":"مورد قبلی","related":"مربوط","resource":"منبع","retry":"امتحان دوباره","right":"حقوق","rights":"مجوز","scroll":"پیمایش","searchInputLabel":"عبارات جستجو","searchNextResult":"نتیجه بعدی","searchNoResults":"نتیجه ای پیدا نشد","searchPreviousResult":"نتیجه قبلی","searchResultsRemaining":"{{numLeft}} باقی مانده","searchSubmitAria":"ارسال جستجو","searchTitle":"جستجو","selectWorkspaceMenu":"نوع فضای کار را انتخاب کنید","showCollection":"نمایش مجموعه","showingNumAnnotations_one":"نمایش {{number}} حاشیه نویسی","showingNumAnnotations_other":"نمایش {{number}} حاشیه نویسی","showZoomControls":"نمایش کنترل های بزرگنمایی","sidebarPanelsNavigation":"پانل های ناوبری نوار کناری","single":"واحد","startHere":"از اینجا شروع کنید","suggestSearch":"این سند را برای \\"{{ query }}\\" جستجوی کنید","tableOfContentsList":"فهرست مطالب","theme":"زمینه","thumbnailList":"فهرست تصاویر بندانگشتی","thumbnailNavigation":"تصاویر بندانگشتی","thumbnails":"تصاویر بندانگشتی","toggleWindowSideBar":"نوار کناری را تغییر دهید","totalCollections_one":"{{count}} مجموعه","totalCollections_other":"{{count}} مجموعات","totalManifests_one":"{{count}} بیانیه","totalManifests_other":"{{count}} بیانیه ها","tryAgain":"دوباره امتحان کنید","untitled":"[بدون عنوان]","view":"مشاهده","viewWorkspaceConfiguration":"مشاهده پیکربندی فضای کاری","welcome":"به Mirador خوش آمدید","window":"پنجره: {{label}}","windowMenu":"نماهای پنجره و نمایش تصاویر کوچک","windowNavigation":"جهت یابی پنجره","windowPluginButtons":"گزینه ها","windowPluginMenu":"گزینه های پنجره","workspace":"فضای کار","workspaceFullScreen":"تمام صفحه","workspaceMenu":"تنظیمات فضای کاری","workspaceNavigation":"جهت یابی فضای کاری","workspaceOptions":"گزینه های فضای کاری","workspaceSelectionTitle":"نوع فضای کاری را انتخاب کنید","zoomIn":"بزرگنمایی","zoomOut":"کوچک نمایی","zoomReset":" تنظیم بزرگنما"}}'),br=JSON.parse('{"translation":{"aboutMirador":"关于Mirador项目","aboutThisItem":"有关此条目","addedFromUrl":"(从URL添加)","addManifestUrl":"来源","addManifestUrlHelp":"IIIF资源的URL","addResource":"添加资源","annotationCanvasLabel_1/1":"条目: [{{label}}]","annotationCanvasLabel_1/2":"左方: [{{label}}]","annotationCanvasLabel_2/2":"右方: [{{label}}]","annotations":"标注","attribution":"著作权","attributionTitle":"著作权","authenticationFailed":"认证失败。","authenticationRequired":"完全访问需要认证","backToResults":"返回到结果","book":"书籍","bottom":"下方","cancel":"取消","canvasIndex":"索引","changeTheme":"变更背景主题","clearSearch":"清除","close":"关闭","closeAddResourceForm":"关闭表格","closeAddResourceMenu":"关闭资源列表","closeCompanionWindow":"关闭附属窗口","closeWindow":"关闭窗口","collapseSection":"关闭{{section}}分页","collapseSidePanel":"关闭边栏","collection":"集合","continue":"继续","copy":"复制","currentItem":"当前条目","currentItem_1/1":"当前条目","currentItem_1/2":"左方","currentItem_2/2":"右方","dark":"暗色主题","digitizedView":"数字视图","dismiss":"关闭信息","displayNoAnnotations":"不高亮","downloadExport":"导出桌面排版","downloadExportWorkspace":"导出桌面排版","elastic":"弹性","elasticDescription":"在桌面上自由摆放窗口","emptyResourceList":"空资源列表","error":"错误","errorDialogConfirm":"确定","errorDialogTitle":"发生错误","exitFullScreen":"退出全屏","expandSection":"开启{{section}}分页","expandSidePanel":"开启边栏","exportCopied":"工作区配置被复制到你的剪贴板上了","fetchManifest":"添加","fullScreen":"全屏","gallery":"画廊","hideZoomControls":"隐藏缩放选项","highlightAllAnnotations":"高亮所有标注","iiif_homepage":"主页","iiif_manifest":"IIIF清单","iiif_renderings":"其他格式","iiif_seeAlso":"另见","import":"导入","importWorkspace":"导入桌面排版","importWorkspaceHint":"在此贴上Mirador 3排版设定码","item":"条目: {{label}}","itemList":"标题列表","jsError":"技术细节","jsStack":"{{ stack }}","language":"语言","layer_hide":"隐藏图层","layer_move":"移动图层","layer_moveToTop":"将图层移到顶部","layer_opacity":"图层不透明度","layer_show":"显示图层","layers":"图层","light":"亮色主题","links":"链接","listAllOpenWindows":"切换至窗口","login":"登入","logout":"登出","manifestError":"无法增添资源:","maximizeWindow":"窗口最大化","minimizeWindow":"窗口最小化","mirador":"Mirador","miradorResources":"Mirador资源","miradorViewer":"Mirador阅览器","more":"更多...","moreResults":"更多结果","mosaic":"马赛克","mosaicDescription":"在桌面上以格状方式排列窗口","moveCompanionWindowToBottom":"移至下方","moveCompanionWindowToRight":"移至右方","multipartCollection":"多卷集合","nextCanvas":"下一页","noItemSelected":"没有条目被选中","numItems_one":"{{number}} 项条目","numItems_other":"{{number}} 项条目","off":"关闭","openCompanionWindow_annotations":"标注","openCompanionWindow_attribution":"著作权","openCompanionWindow_canvas":"目录","openCompanionWindow_info":"资讯","openCompanionWindow_layers":"图层","openCompanionWindow_search":"搜索","openInCompanionWindow":"移至新附属窗口","openWindows":"当前窗口","pagination":"{{current}} / {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"上一页","related":"相关信息","resource":"资源","retry":"重试","right":"右方","rights":"版权","scroll":"滚动","searchInputLabel":"搜索关键字","searchNextResult":"下一个结果","searchNoResults":"没有搜索到结果","searchPreviousResult":"前一个结果","searchResultsRemaining":"{{numLeft}}剩余","searchSubmitAria":"提交搜索","searchTitle":"搜索","selectWorkspaceMenu":"选择桌面排版方式","showCollection":"显示集合","showingNumAnnotations_one":"显示 {{number}} 项标注","showingNumAnnotations_other":"显示 {{number}} 项标注","showZoomControls":"显示缩放选项","sidebarPanelsNavigation":"切换边栏","single":"单项","startHere":"按此开始","suggestSearch":"搜索本文档以\\"{{ query }}\\"","tableOfContentsList":"目录","theme":"背景主题","thumbnailList":"缩略图列表","thumbnailNavigation":"缩略图","thumbnails":"缩略图","toggleWindowSideBar":"切换边栏开关","totalCollections_one":"{{count}} 集合","totalCollections_other":"{{count}} 集合","totalManifests_one":"{{count}} 清单","totalManifests_other":"{{count}} 清单","tryAgain":"请重试","untitled":"[无标题]","view":"条目排列方式","viewWorkspaceConfiguration":"查看工作区配置","welcome":"欢迎使用Mirador","window":"窗口: {{label}}","windowMenu":"窗口视图 & 缩略图显示","windowNavigation":"切换窗口","windowPluginButtons":"选项","windowPluginMenu":"窗口选项","workspace":"桌面","workspaceFullScreen":"全屏","workspaceMenu":"桌面设定","workspaceNavigation":"工作区导航","workspaceOptions":"桌面选项","workspaceSelectionTitle":"选择桌面排版方式","zoomIn":"放大","zoomOut":"缩小","zoomReset":"重设缩放"}}'),wr=JSON.parse('{"translation":{"aboutMirador":"關於Mirador項目","aboutThisItem":"有關此物件","addedFromUrl":"(從URL添加)","addManifestUrl":"來源","addManifestUrlHelp":"IIIF資源的URL","addResource":"添加資源","annotationCanvasLabel_1/1":"物件: [{{label}}]","annotationCanvasLabel_1/2":"左方: [{{label}}]","annotationCanvasLabel_2/2":"右方: [{{label}}]","annotations":"標註","attribution":"著作權","attributionTitle":"著作權","authenticationFailed":"認證失敗。","authenticationRequired":"完全訪問需要認證","backToResults":"返回到結果","book":"書籍","bottom":"下方","cancel":"取消","canvasIndex":"索引","changeTheme":"變更佈景主題","clearSearch":"清除","close":"關閉","closeAddResourceForm":"關閉表格","closeAddResourceMenu":"關閉資源列表","closeCompanionWindow":"關閉附屬視窗","closeWindow":"關閉視窗","collapseSection":"關閉{{section}}分頁","collapseSidePanel":"關閉邊欄","collection":"集合","continue":"繼續","copy":"複製","currentItem":"目前物件","currentItem_1/1":"目前物件","currentItem_1/2":"左方","currentItem_2/2":"右方","dark":"暗色主題","digitizedView":"數字視圖","dismiss":"關閉信息","displayNoAnnotations":"不高亮","downloadExport":"滙出桌面排版","downloadExportWorkspace":"滙出桌面排版","elastic":"彈性","elasticDescription":"在桌面上自由擺放視窗","emptyResourceList":"資源列表沒有物件","error":"錯誤","errorDialogConfirm":"確定","errorDialogTitle":"發生錯誤","exitFullScreen":"退出全螢幕","expandSection":"開啟{{section}}分頁","expandSidePanel":"開啟邊欄","exportCopied":"工作區配置被複製到你的剪貼板上了","fetchManifest":"添加","fullScreen":"全螢幕","gallery":"矩列","hideZoomControls":"隱藏縮放選項","highlightAllAnnotations":"高亮所有標註","iiif_homepage":"有關此資源","iiif_manifest":"IIIF清單","iiif_renderings":"其他格式","iiif_seeAlso":"另見","import":"滙入","importWorkspace":"滙入桌面排版","importWorkspaceHint":"在此貼上Mirador 3排版設定碼","item":"物件: {{label}}","itemList":"標題列表","jsError":"技術細節","jsStack":"{{ stack }}","language":"語言","layer_hide":"隱藏圖層","layer_move":"移動圖層","layer_moveToTop":"將圖層移到頂部","layer_opacity":"圖層不透明度","layer_show":"顯示圖層","layers":"圖層","light":"亮色主題","links":"連結","listAllOpenWindows":"切換至視窗","login":"登入","logout":"登出","manifestError":"無法增添資源:","maximizeWindow":"視窗最大化","minimizeWindow":"視窗最小化","mirador":"Mirador","miradorResources":"Mirador資源","miradorViewer":"Mirador閱覽器","more":"更多...","moreResults":"更多結果","mosaic":"馬賽克","mosaicDescription":"在桌面上以格狀方式排列視窗","moveCompanionWindowToBottom":"移至下方","moveCompanionWindowToRight":"移至右方","multipartCollection":"多卷集合","nextCanvas":"下一頁","noItemSelected":"沒有物件被選中","numItems_one":"{{number}} 項物件","numItems_other":"{{number}} 項物件","off":"關閉","openCompanionWindow_annotations":"標註","openCompanionWindow_attribution":"著作權","openCompanionWindow_canvas":"目錄","openCompanionWindow_info":"資訊","openCompanionWindow_layers":"圖層","openCompanionWindow_search":"搜索","openInCompanionWindow":"移至新附屬視窗","openWindows":"現有視窗","pagination":"{{current}} / {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"上一頁","related":"相關資訊","resource":"資源","retry":"重試","right":"右方","rights":"版權","scroll":"滾動","searchInputLabel":"搜索關鍵字","searchNextResult":"下一個結果","searchNoResults":"沒有搜索到結果","searchPreviousResult":"前一個結果","searchResultsRemaining":"{{numLeft}}剩餘","searchSubmitAria":"提交搜索","searchTitle":"搜索","selectWorkspaceMenu":"選擇桌面排版方式","showCollection":"顯示集合","showingNumAnnotations_one":"顯示 {{number}} 項標註","showingNumAnnotations_other":"顯示 {{number}} 項標註","showZoomControls":"顯示縮放選項","sidebarPanelsNavigation":"切換邊欄","single":"單項","startHere":"按此開始","suggestSearch":"搜索本文檔以\\"{{ query }}\\"","tableOfContentsList":"目錄","theme":"佈景主題","thumbnailList":"縮略圖列表","thumbnailNavigation":"縮略圖","thumbnails":"縮略圖","toggleWindowSideBar":"切換邊欄開關","totalCollections_one":"{{count}} 集合","totalCollections_other":"{{count}} 集合","totalManifests_one":"{{count}} 清單","totalManifests_other":"{{count}} 清單","tryAgain":"請重試","untitled":"[無標題]","view":"物件排列方式","viewWorkspaceConfiguration":"查看工作區配置","welcome":"歡迎使用Mirador","window":"視窗: {{label}}","windowMenu":"視窗視圖 & 縮略圖顯示","windowNavigation":"切換視窗","windowPluginButtons":"選項","windowPluginMenu":"視窗選項","workspace":"桌面","workspaceFullScreen":"全螢幕","workspaceMenu":"桌面設定","workspaceNavigation":"工作區導航","workspaceOptions":"桌面選項","workspaceSelectionTitle":"選擇桌面排版方式","zoomIn":"放大","zoomOut":"縮小","zoomReset":"重設縮放"}}'),Or=JSON.parse('{"translation":{"aboutMirador":"A propos du projet Mirador","aboutThisItem":"Informations","addedFromUrl":"(Ajouté depuis une URL)","addManifestUrl":"Emplacement de la ressource","addManifestUrlHelp":"Coller ici l\'URL de la ressource IIIF","addResource":"Ajouter une ressource","annotationCanvasLabel_1/1":"Item : [{{label}}]","annotationCanvasLabel_1/2":"Gauche : [{{label}}]","annotationCanvasLabel_2/2":"Droite : [{{label}}]","annotations":"Annotations","attribution":"Attribution","attributionTitle":"Droits","authenticationFailed":"L\'authentification a échoué.","authenticationRequired":"Authentification requise pour un accès complet","backToResults":"Retour aux résultats","book":"Livre","bottom":"Bas","cancel":"Annuler","canvasIndex":"Index","changeTheme":"Changer le thème","clearSearch":"effacer","closeAddResourceForm":"Fermer le panneau","closeAddResourceMenu":"Fermer la liste des ressources","closeCompanionWindow":"Fermer le panneau","closeWindow":"Fermer cette fenêtre","collapseSection":"Replier la section \\"{{section}}\\"","collapseSidePanel":"Replier le panneau","continue":"Continuer","copy":"Copier","currentItem":"Image courante","currentItem_1/1":"Image courante","currentItem_1/2":"Gauche","currentItem_2/2":"Droite","dark":"Thème sombre","digitizedView":"Vue de l\'objet numérique","dismiss":"Rejeter","displayNoAnnotations":"Masquer tout","downloadExport":"Exporter l\'espace de travail","downloadExportWorkspace":"Exporter l\'espace de travail","elastic":"Elastique","elasticDescription":"Déplacer et redimensionner librement les fenêtres dans un espace de travail non limité par l\'écran. Les fenêtres peuvent être superposées.","emptyResourceList":"Votre liste de ressource est vide","error":"Erreur","errorDialogConfirm":"OK","errorDialogTitle":"Une erreur est survenue","exitFullScreen":"Quitter le plein écran","expandSection":"Déplier la section \\"{{section}}\\"","expandSidePanel":"Déplier le panneau","exportCopied":"La configuration de l\'espace de travail a été copiée dans votre presse-papier","fetchManifest":"Ajouter","fullScreen":"Plein écran","gallery":"Galerie","hideZoomControls":"Désactiver les commandes de zoom","highlightAllAnnotations":"Afficher tout","iiif_homepage":"A propos de cette ressource","iiif_manifest":"Manifeste IIIF","iiif_renderings":"Formats alternatifs","iiif_seeAlso":"Voir aussi","import":"Importer","importWorkspace":"Importer un espace de travail","importWorkspaceHint":"Insérer une configuration Mirador 3 à importer","item":"Item : {{label}}","itemList":"Liste compacte","jsError":"Détails techniques","jsStack":"{{ stack }}","language":"Langue","layer_hide":"Masquer le calque","layer_move":"Déplacer le calque","layer_moveToTop":"Déplacer le calque en haut","layer_opacity":"Opacité du calque","layer_show":"Afficher le calque","layers":"Calques","light":"Thème clair","links":"Liens","listAllOpenWindows":"Lister les fenêtres","login":"Se connecter","logout":"Se déconnecter","manifestError":"Cette ressource ne peut pas être ajoutée :","maximizeWindow":"Agrandir cette fenêtre","minimizeWindow":"Réduire cette fenêtre","mirador":"Mirador","miradorResources":"Ressources Mirador","miradorViewer":"Visualiseur Mirador","more":"plus...","moreResults":"Plus de résultats","mosaic":"Mosaïque","mosaicDescription":"Déplacer et redimensionner les fenêtres les unes par rapport aux autres dans l\'espace disponible sur l\'écran","moveCompanionWindowToBottom":"Déplacer en bas","moveCompanionWindowToRight":"Déplacer à droite","nextCanvas":"Suivant","noItemSelected":"Aucun élément sélectionné","numItems_one":"{{number}} image","numItems_other":"{{number}} images","off":"aucun","openCompanionWindow_annotations":"Annotations","openCompanionWindow_attribution":"Droits","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informations","openCompanionWindow_layers":"Calques","openCompanionWindow_search":"Rechercher","openInCompanionWindow":"Ouvrir dans un panneau séparé","openWindows":"Fenêtres ouvertes","pagination":"{{current}} sur {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Précédent","related":"En relation","resource":"Ressource","retry":"Réessayer","right":"Droite","rights":"Licence","scroll":"Défilement horizontal","searchInputLabel":"Chercher un mot","searchNextResult":"Résultat suivant","searchNoResults":"Aucun résultat trouvé","searchPreviousResult":"Résultat précédent","searchSubmitAria":"Lancer la recherche","searchTitle":"Rechercher","selectWorkspaceMenu":"Changer de type d\'espace de travail","showCollection":"Voir la collection","showingNumAnnotations_one":"{{number}} annotation affichée","showingNumAnnotations_other":"{{number}} annotations affichées","showZoomControls":"Activer les commandes de zoom","sidebarPanelsNavigation":"Navigation dans les panneaux latéraux","single":"Simple","startHere":"Commencer ici","suggestSearch":"Rechercher \\"{{ query }}\\" dans ce document","tableOfContentsList":"Sommaire","theme":"Thème","thumbnailList":"Liste des vignettes","thumbnailNavigation":"Vignettes","thumbnails":"Afficher les vignettes","toggleWindowSideBar":"Afficher le menu latéral","totalCollections_one":"{{count}} collection","totalCollections_other":"{{count}} collections","totalManifests_one":"{{count}} manifeste","totalManifests_other":"{{count}} manifestes","tryAgain":"Essayer à nouveau","untitled":"[Sans titre]","view":"Voir les images en mode","welcome":"Bienvenue dans Mirador","window":"Fenêtre : {{label}}","windowMenu":"Options de fenêtre","windowNavigation":"Navigation dans les fenêtres","windowPluginButtons":"Options","windowPluginMenu":"Autres options et outils","workspace":"Espace de travail","workspaceFullScreen":"Plein écran","workspaceMenu":"Réglages de l\'espace de travail","workspaceNavigation":"Menu de l\'espace de travail","workspaceOptions":"Options de l\'espace de travail","workspaceSelectionTitle":"Sélectionner un type d\'espace de travail","zoomIn":"Zoom avant","zoomOut":"Zoom arrière","zoomReset":"Réinitialiser le zoom"}}'),xr=JSON.parse('{"translation":{"aboutMirador":"Project Miradorについて","aboutThisItem":"この資料について","addedFromUrl":"(URLで追加)","addManifestUrl":"資料のURL","addManifestUrlHelp":"IIIF資料のURL","addResource":"資料の追加","annotationCanvasLabel_1/1":"アイテム: [{{label}}]","annotationCanvasLabel_1/2":"左: [{{label}}]","annotationCanvasLabel_2/2":"右: [{{label}}]","annotations":"アノテーション","attribution":"帰属","attributionTitle":"権利","authenticationFailed":"認証失敗","authenticationRequired":"フルアクセスには認証が必要","backToResults":"結果に戻る","book":"見開き","bottom":"下部","cancel":"キャンセル","canvasIndex":"インデックス","changeTheme":"テーマの変更","clearSearch":"クリア","close":"閉じる","closeAddResourceForm":"フォームを閉じる","closeAddResourceMenu":"資料一覧を閉じる","closeCompanionWindow":"パネルを閉じる","closeWindow":"ウインドウを閉じる","collapseSection":"{{section}} セクションを畳む","collapseSidePanel":"サイドバーを畳む","collection":"コレクション","continue":"続ける","copy":"コピー","currentItem":"現在のアイテム","currentItem_1/1":"現在のアイテム","currentItem_1/2":"左","currentItem_2/2":"右","dark":"ダークなテーマ","digitizedView":"デジタルビュー","dismiss":"片付け","displayNoAnnotations":"アノテーションを非表示","downloadExport":"ワークスペースをエクスポート","downloadExportWorkspace":"ワークスペースをエクスポート","elastic":"伸縮","elasticDescription":"自由なウインドウの伸縮","emptyResourceList":"資料の一覧が空です","error":"エラー","errorDialogConfirm":"OK","errorDialogTitle":"エラー発生","exitFullScreen":"全画面を解除","expandSection":"セクション {{section}}を拡大","expandSidePanel":"サイドバーを拡大","exportCopied":"ワークスペースの設定がクリップボードにコピーされました。","fetchManifest":"追加","fullScreen":"全画面","gallery":"ギャラリー","hideZoomControls":"zoom制御を隠す","highlightAllAnnotations":"すべてを表示","iiif_homepage":"IIIFホームページ","iiif_manifest":"IIIF マニフェスト","iiif_renderings":"別の形式","iiif_seeAlso":"参照","import":"取り込み","importWorkspace":"ワークスペースの取り込み","importWorkspaceHint":"Mirador3の設定を貼り付け","item":"アイテム: {{label}}","itemList":"アイテム一覧","jsError":"技術的な詳細","jsStack":"{{ stack }}","language":"言語","layer_hide":"レイヤーを隠す","layer_move":"レイヤーを動かす","layer_moveToTop":"レイヤーをトップへ","layer_opacity":"レイヤーの透過度","layer_show":"レイヤーを表示","layers":"レイヤー","light":"明るいテーマ","links":"リンク","listAllOpenWindows":"ウインドウにジャンプ","login":"ログイン","logout":"ログアウト","manifestError":"資料追加に失敗:","maximizeWindow":"ウインドウを最大化","minimizeWindow":"ウインドウを最小化","mirador":"Mirador","miradorResources":"Mirador資料","miradorViewer":"Miradorビューワ","more":"さらに...","moreResults":"さらに結果を","mosaic":"モザイク","mosaicDescription":"モザイク表示","moveCompanionWindowToBottom":"下部に移動","moveCompanionWindowToRight":"右に移動","nextCanvas":"次のアイテム","noItemSelected":"アイテムが未選択","numItems_one":"{{number}} アイテム","off":"オフ","openCompanionWindow_annotations":"アノテーション","openCompanionWindow_attribution":"権利","openCompanionWindow_canvas":"インデックス","openCompanionWindow_info":"情報","openCompanionWindow_layers":"レイヤー","openCompanionWindow_search":"検索","openInCompanionWindow":"別のパネルで開く","openWindows":"現在開いているウインドウ","pagination":"{{current}} of {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"前のアイテム","related":"関連","resource":"資料","retry":"リトライ","right":"右側","rights":"利用条件","scroll":"スクロール","searchInputLabel":"検索語","searchNextResult":"次の結果","searchNoResults":"ヒットせず","searchPreviousResult":"前の結果","searchSubmitAria":"検索","searchTitle":"検索","selectWorkspaceMenu":"ワークスペースタイプの選択","showCollection":"コレクションを表示","showingNumAnnotations_one":"アノテーション {{number}} を表示","showZoomControls":"ズーム操作を表示","sidebarPanelsNavigation":"サイドバーパネルの操作","single":"単一","startHere":"ここから始める","suggestSearch":"この文書を \\"{{ query }}\\" で検索","tableOfContentsList":"目次","theme":"テーマ","thumbnailList":"サムネイル一覧","thumbnailNavigation":"サムネイル","thumbnails":"サムネイル表示","toggleWindowSideBar":"サイドバー切り替え","totalCollections_one":"{{count}} コレクション","totalManifests_one":"{{count}} マニフェスト","tryAgain":"もう一度試す","untitled":"[タイトル無し]","view":"表示の仕方","welcome":"Miradorにようこそ","window":"{{label}} ウインドウ","windowMenu":"ウインドウメニュー","windowNavigation":"ウィンドウ操作","windowPluginButtons":"オプション","windowPluginMenu":"ウインドウオプション","workspace":"ワークスペース","workspaceFullScreen":"全画面","workspaceMenu":"ワークスペースの設定","workspaceNavigation":"ワークスペースナビ","workspaceOptions":"ワークスペースのオプション","workspaceSelectionTitle":"ワークスペースのタイプを選択","zoomIn":"ズームイン","zoomOut":"ズームアウト","zoomReset":"ズームを戻す"}}'),Sr=JSON.parse('{"translation":{"aboutMirador":"Mirador 프로젝트에 대하여","aboutThisItem":"해당 아이템에 대하여","addedFromUrl":"(URL에서 추가됨)","addManifestUrl":"리소스의 위치","addManifestUrlHelp":"IIIF 리소스의 URL","addResource":"리소스 추가","annotationCanvasLabel_1/1":"아이템: [{{label}}]","annotationCanvasLabel_1/2":"왼쪽: [{{label}}]","annotationCanvasLabel_2/2":"오른쪽: [{{label}}]","annotations":"주석","attribution":"귀속","attributionTitle":"권리","authenticationFailed":"인증 실패.","authenticationRequired":"모든 정보에 접근하기 위해선 인증이 필요합니다.","backToResults":"결과로 돌아가기","book":"책","bottom":"아래","cancel":"취소","canvasIndex":"인덱스","changeTheme":"테마 변경","clearSearch":"지우기","close":"닫기","closeAddResourceForm":"폼 닫기","closeAddResourceMenu":"리소스 목록 닫기","closeCompanionWindow":"패널 닫기","closeWindow":"윈도우 닫기","collapseSection":"\\"{{section}}\\" 섹션 접기","collapseSidePanel":"사이드바 접기","collection":"컬렉션","continue":"계속하기","copy":"복사","currentItem":"현재 아이템","currentItem_1/1":"현재 아이템","currentItem_1/2":"왼쪽","currentItem_2/2":"오른쪽","dark":"다크 모드","digitizedView":"디지털 뷰","dismiss":"무시하기","displayNoAnnotations":"하이라이트 해제","downloadExport":"작업공간 내보내기","downloadExportWorkspace":"작업공간 내보내기","elastic":"신축성","elasticDescription":"무한한 작업공간에서 윈도우를 자유롭게 움직이고 조절해보세요. 윈도우는 서로 겹칠 수 있습니다.","emptyResourceList":"리소스 목록이 비어있습니다","error":"오류","errorDialogConfirm":"허락","errorDialogTitle":"오류 발생","exitFullScreen":"전체화면에서 나가기","expandSection":"\\"{{section}}\\" 섹션 확장","expandSidePanel":"사이드바 확장","exportCopied":"작업공간 환경설정을 클립보드에 복사했습니다","fetchManifest":"추가하기","fullScreen":"전체화면","gallery":"갤러리","hideZoomControls":"확대/축소 기능 숨기기","highlightAllAnnotations":"모두 하이라이트하기","iiif_homepage":"해당 리소스에 대하여","iiif_manifest":"IIIF 매니페스트","iiif_renderings":"대체 포맷","iiif_seeAlso":"참고","import":"가져오기","importWorkspace":"작업공간 가져오기","importWorkspaceHint":"Mirador 3 환경설정 가져와 붙여넣기","item":"아이템: {{label}}","itemList":"아이템 목록","jsError":"기술적인 세부사항","jsStack":"{{ stack }}","language":"언어","layer_hide":"레이어 숨기기","layer_move":"레이어 움직이기","layer_moveToTop":"레이어를 위로 옮기기","layer_opacity":"레이어 불투명도","layer_show":"레이어 보이기","layers":"레이어","light":"라이트 모드","links":"링크","listAllOpenWindows":"윈도우로 이동하기","login":"로그인","logout":"로그아웃","manifestError":"리소스를 추가할 수 없습니다:","maximizeWindow":"윈도우 크기 최대화","minimizeWindow":"윈도우 크기 최소화","mirador":"Mirador","miradorResources":"Mirador 리소스","miradorViewer":"Mirador 뷰어","more":"더 보기...","moreResults":"결과 더 보기","mosaic":"모자이크","mosaicDescription":"프레임 내에서 윈도우를 이동하고 크기를 조정합니다.","moveCompanionWindowToBottom":"아래로 옮기기","moveCompanionWindowToRight":"오른쪽으로 옮기기","nextCanvas":"다음 아이템","noItemSelected":"아이템이 선택되지 않았습니다","numItems_one":"{{number}}개의 아이템","numItems_other":"{{number}}개의 아이템","off":"끄기","openCompanionWindow_annotations":"주석","openCompanionWindow_attribution":"권리","openCompanionWindow_canvas":"인덱스","openCompanionWindow_info":"정보","openCompanionWindow_layers":"레이어","openCompanionWindow_search":"검색","openInCompanionWindow":"별도의 패널에서 열기","openWindows":"현재 열려있는 윈도우","pagination":"{{current}} of {{total}}","position":"배치","previewWindowTitle":"{{title}}","previousCanvas":"이전 아이템","related":"관련","resource":"리소스","retry":"재시도","right":"오른쪽","rights":"라이선스","scroll":"스크롤","searchInputLabel":"용어 찾기","searchNextResult":"다음 결과","searchNoResults":"해당 결과 없음","searchPreviousResult":"이전 결과","searchResultsRemaining":"{{numLeft}}개 남음","searchSubmitAria":"검색하기","searchTitle":"검색","selectWorkspaceMenu":"작업공간 유형 선택","showCollection":"컬렉션 보이기","showingNumAnnotations_one":"{{number}}개의 주석 나타내기","showingNumAnnotations_other":"{{number}}개의 주석 나타내기","showZoomControls":"확대/축소 기능 보이기","sidebarPanelsNavigation":"사이드바 패널 탐색","single":"한 개","startHere":"시작하기","suggestSearch":"이 문서를 \\"{{ query }}\\"로 검색하기","tableOfContentsList":"목차","theme":"테마","thumbnailList":"썸네일 목록","thumbnailNavigation":"썸네일","thumbnails":"썸네일","toggleWindowSideBar":"사이드바 전환","totalCollections_one":"{{count}}개의 컬렉션","totalCollections_other":"{{count}}개의 컬렉션","totalManifests_one":"{{count}}개의 매니페스트","totalManifests_other":"{{count}}개의 매니페스트","tryAgain":"다시 시도하세요","untitled":"[타이틀 없음]","view":"뷰","viewWorkspaceConfiguration":"작업공간 환경설정 ㅂ괴","welcome":"Mirador에 오신 것을 환영합니다","window":"윈도우: {{label}}","windowMenu":"윈도우 뷰 & 썸네일 표시","windowNavigation":"윈도우 탐색","windowPluginButtons":"옵션","windowPluginMenu":"윈도우 옵션","workspace":"작업공간","workspaceFullScreen":"전체화면","workspaceMenu":"작업공간 설정","workspaceNavigation":"작업공간 탐색","workspaceOptions":"작업공간 옵션","workspaceSelectionTitle":"작업공간 유형을 선택하세요","zoomIn":"확대","zoomOut":"축소","zoomReset":"줌 재설정"}}'),Ar=JSON.parse('{"translation":{"aboutThisItem":"Over dit item","addedFromUrl":"(Toegevoegd via URL)","addManifestUrl":"Locatie bron","addManifestUrlHelp":"De URL van een IIIF-resource","addResource":"Voeg bron toe","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Links: [{{label}}]","annotationCanvasLabel_2/2":"Rechts: [{{label}}]","annotations":"Annotaties","attribution":"Naamsvermelding","attributionTitle":"Rechten","authenticationFailed":"Authenticatie gefaald.","authenticationRequired":"Authenticatie is vereist voor volledige toegang","backToResults":"Terug naar resultaten","book":"Boek","bottom":"Onderaan","cancel":"Annuleer","canvasIndex":"Index","changeTheme":"Wijzig thema","clearSearch":"clear","closeAddResourceForm":"Sluit formulier","closeAddResourceMenu":"Sluit lijst met bronnen","closeCompanionWindow":"Sluit paneel","closeWindow":"Sluit venster","collapseSection":"Klap \\"{{section}}\\" sectie in","collapseSidePanel":"Klap zijbalk in","continue":"Ga verder","copy":"Kopieer","currentItem":"Huidig item","currentItem_1/1":"Huidig item","currentItem_1/2":"Links","currentItem_2/2":"Rechts","dark":"Donker thema","dismiss":"Dismiss","downloadExport":"Exporteer workspace","downloadExportWorkspace":"Exporteer workspace","elastic":"Elastisch","elasticDescription":"Verplaats en rangschik vensters vrij in een onbeperkte workspace. Vensters kunnen elkaar overlappen.","emptyResourceList":"Je lijst met bronnen is leeg","errorDialogConfirm":"OK","errorDialogTitle":"Er is een fout opgetreden","exitFullScreen":"Verlaat volledig scherm","expandSection":"Klap \\"{{section}}\\" sectie uit","expandSidePanel":"Klap zijbalk uit","fetchManifest":"Voeg toe","fullScreen":"Volledig scherm","gallery":"Gallerij","hideZoomControls":"Verberg zoomknoppen","highlightAllAnnotations":"Markeer alles","iiif_homepage":"Over deze bron","iiif_manifest":"IIIF-manifest","iiif_renderings":"Alternatieve formaten","iiif_seeAlso":"Zie ook","import":"Importeer","importWorkspace":"Importeer workspace","importWorkspaceHint":"Plak een Mirador 3 configuratie die geïmporteerd moet worden","item":"Item: {{label}}","itemList":"Compacte lijst","language":"Taal","light":"Licht thema","links":"Links","listAllOpenWindows":"Ga naar venster","login":"Log in","manifestError":"De bron kan niet worden toegevoegd:","maximizeWindow":"Maximaliseer venster","minimizeWindow":"Minimaliseer venster","mirador":"Mirador","miradorResources":"Mirador resources","miradorViewer":"Mirador viewer","more":"meer...","moreResults":"Meer resultaten","mosaic":"Mozaïek","mosaicDescription":"Verplaats en rangschik vensters in verhouding tot elkaar binnen het zichtbare kader.","moveCompanionWindowToBottom":"Verplaats naar beneden","moveCompanionWindowToRight":"Verplaats naar rechts","nextCanvas":"Volgend item","numItems_one":"{{number}} item","numItems_other":"{{number}} items","off":"Uit","openCompanionWindow_annotations":"Annotaties","openCompanionWindow_attribution":"Rechten","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informatie","openCompanionWindow_search":"Zoeken","openInCompanionWindow":"Open in een apart paneel","openWindows":"Geopende vensters","pagination":"{{current}} van {{total}}","position":"Positie","previewWindowTitle":"{{title}}","previousCanvas":"Vorig item","related":"Verwant","resource":"Bron","retry":"Probeer opnieuw","right":"Rechts","rights":"Licentie","searchInputLabel":"zoek termen","searchNextResult":"Volgend resultaat","searchNoResults":"Geen resultaten gevonden","searchPreviousResult":"Vorig resultaat","searchSubmitAria":"Zoeken","searchTitle":"Zoek","selectWorkspaceMenu":"Selecteer workspacetype","showingNumAnnotations_one":"{{number}} annotatie weergegeven","showingNumAnnotations_other":"{{number}} annotaties weergegeven","showZoomControls":"Toon zoomknoppen","sidebarPanelsNavigation":"Zijbalk panelen navigatie","single":"Enkel","startHere":"Begin Hier","suggestSearch":"Zoek in dit document naar \\"{{ query }}\\"","theme":"Thema","thumbnailList":"Lijst thumbnails","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Toon zijbalk","totalCollections_one":"{{count}} collectie","totalCollections_other":"{{count}} collecties","totalManifests_one":"{{count}} manifest","totalManifests_other":"{{count}} manifests","tryAgain":"Probeer opnieuw","untitled":"[Zonder titel]","view":"Weergave","welcome":"Welkom in Mirador","window":"Venster: {{label}}","windowMenu":"Vensters- en miniatuurweergave","windowNavigation":"Navigatie venster","windowPluginButtons":"Opties","windowPluginMenu":"Vensteropties","workspace":"Workspace","workspaceFullScreen":"Volledig scherm","workspaceMenu":"Workspace instellingen","workspaceOptions":"Workspace opties","workspaceSelectionTitle":"Selecteer een workspace type","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),Pr=JSON.parse('{"translation":{"aboutMirador":"O Projekcie Mirador","aboutThisItem":"O bieżącej pozycji","addedFromUrl":"(Dodano z URL)","addManifestUrl":"Lokalizacja zasobów","addManifestUrlHelp":"URL zasobów IIIF","addResource":"Dodaj zasoby","annotationCanvasLabel_1/1":"Pozycja: [{{label}}]","annotationCanvasLabel_1/2":"Lewo: [{{label}}]","annotationCanvasLabel_2/2":"Prawo: [{{label}}]","annotations":"Adnotacje","attribution":"Atrybucja","attributionTitle":"Prawa","authenticationFailed":"Uwierzytelnianie nie powiodło się.","authenticationRequired":"Do pełnego dostępu wymagane jest uwierzytelnienie","backToResults":"Powrót do wyników","book":"Książka","bottom":"Dół","cancel":"Anuluj","canvasIndex":"Indeks","changeTheme":"Zmień motyw","clearSearch":"wyczyść","close":"Zamknij","closeAddResourceForm":"Zamknij formularz","closeAddResourceMenu":"Zamknij listę zasobów","closeCompanionWindow":"Zamknij panel","closeWindow":"Zamknij okno","collapseSection":"Zwiń sekcję \\"{{section}}\\"","collapseSidePanel":"Zwiń panel boczny","collection":"Zbiór","continue":"Kontynuuj","copy":"Kopiuj","currentItem":"Bieżąca pozycja","currentItem_1/1":"Bieżąca pozycja","currentItem_1/2":"Lewo","currentItem_2/2":"Prawo","dark":"Ciemny motyw","digitizedView":"Widok zdigitalizowany","dismiss":"Odrzuć","displayNoAnnotations":"Nie podświetlaj","downloadExport":"Eksportuj obszar roboczy","downloadExportWorkspace":"Eksportuj obszar roboczy","elastic":"Elastyczny","elasticDescription":"Swobodnie przesuwaj i dopasowuj okna w nieograniczonej przestrzeni roboczej. Okna mogą zachodzić na siebie.","emptyResourceList":"Twoja lista zasobów jest pusta","error":"Błąd","errorDialogConfirm":"OK","errorDialogTitle":"Wystąpił błąd","exitFullScreen":"Wyłącz tryb pełnoekranowy","expandSection":"Rozwiń sekcję \\"{{section}}\\"","expandSidePanel":"Rozwiń panel boczny","exportCopied":"Konfiguracja obszaru roboczego została skopiowana do schowka","fetchManifest":"Dodaj","fullScreen":"Pełny ekran","gallery":"Galeria","hideZoomControls":"Ukryj kontrolki powiększenia","highlightAllAnnotations":"Podświetl wszystko","iiif_homepage":"O tym zasobie","iiif_manifest":"Manifest IIIF","iiif_renderings":"Alternatywne formaty","iiif_seeAlso":"Zobacz też","import":"Importuj","importWorkspace":"Importuj obszar roboczy","importWorkspaceHint":"Wklej konfigurację Mirador 3 do zaimportowania","item":"Pozycja: {{label}}","itemList":"Lista pozycji","jsError":"Szczegóły techniczne","jsStack":"{{ stack }}","language":"Język","layer_hide":"Ukryj warstwę","layer_move":"Przenieś warstwę","layer_moveToTop":"Przenieś warstwę na górę","layer_opacity":"Krycie warstwy","layer_show":"Pokaż warstwę","layers":"Warstwy","light":"Jasny motyw","links":"Linki","listAllOpenWindows":"Przejdź do okna","login":"Zaloguj","logout":"Wyloguj","manifestError":"Następujące zasoby nie mogą być dodane:","maximizeWindow":"Maksymalizuj okno","minimizeWindow":"Minimalizuj okno","mirador":"Mirador","miradorResources":"Zasoby Mirador","miradorViewer":"Przeglądarka Mirador","more":"więcej...","moreResults":"Więcej wyników","mosaic":"Mozaika","mosaicDescription":"Przesuwaj i zmieniaj rozmiary okien względem siebie, w widocznej ramce.","moveCompanionWindowToBottom":"Przesuń na dół","moveCompanionWindowToRight":"Przesuń w prawo","nextCanvas":"Następna pozycja","noItemSelected":"Nie wybrano pozycji","numItems_one":"{{number}} pozycja","numItems_other":"{{number}} pozycje","off":"Wyłącz","openCompanionWindow_annotations":"Adnotacje","openCompanionWindow_attribution":"Prawa","openCompanionWindow_canvas":"Indeks","openCompanionWindow_info":"Informacje","openCompanionWindow_layers":"Warstwy","openCompanionWindow_search":"Szukaj","openInCompanionWindow":"Otwórz w oddzielnym panelu","openWindows":"Aktualnie otwarte okna","pagination":"{{current}} of {{total}}","position":"Pozycja","previewWindowTitle":"{{title}}","previousCanvas":"Poprzednia pozycja","related":"Powiązane","resource":"Zasoby","retry":"Spróbuj ponownie","right":"Prawo","rights":"Licencja","scroll":"Przewiń","searchInputLabel":"szukane słowa","searchNextResult":"Następny wynik","searchNoResults":"Nie znaleziono wyników","searchPreviousResult":"Poprzedni wynik","searchResultsRemaining":"Pozostało {{numLeft}}","searchSubmitAria":"Wyszukaj","searchTitle":"Wyszukaj","selectWorkspaceMenu":"Wybierz typ obszaru roboczego","showCollection":"Pokaż zbiór","showingNumAnnotations_one":"Wyświetlanie {{number}} adnotacji","showingNumAnnotations_other":"Wyświetlanie {{number}} adnotacji","showZoomControls":"Pokaż kontrolki powiększenia","sidebarPanelsNavigation":"Nawigacja pasków panelu bocznego","single":"Pojedynczy","startHere":"Zacznij tutaj","suggestSearch":"Przeszukaj ten dokument pod kątem \\"{{ query }}\\"","tableOfContentsList":"Spis treści","theme":"Motyw","thumbnailList":"Lista miniatur","thumbnailNavigation":"Miniatury","thumbnails":"Miniatury","toggleWindowSideBar":"Przełącz panel boczny","totalCollections_one":"{{count}} zbiór","totalCollections_other":"{{count}} zbiorów","totalManifests_one":"{{count}} manifest","totalManifests_other":"{{count}} manifestów","tryAgain":"Spróbuj ponownie","untitled":"[Bez nazwy]","view":"Widok","viewWorkspaceConfiguration":"Wyświetl konfigurację obszaru roboczego","welcome":"Witaj w Miradorze","window":"Okno: {{label}}","windowMenu":"Widoki okien i wyświetlanie miniatur","windowNavigation":"Nawigacja okna","windowPluginButtons":"Opcje","windowPluginMenu":"Opcje okna","workspace":"Obszar roboczy","workspaceFullScreen":"Pełny ekran","workspaceMenu":"Ustawienia obszaru roboczego","workspaceNavigation":"Nawigacja obszaru roboczego","workspaceOptions":"Opcje obszaru roboczego","workspaceSelectionTitle":"Wybierz typ obszaru roboczego","zoomIn":"Przybliż","zoomOut":"Oddal","zoomReset":"Zresetuj powiększenie"}}'),jr=JSON.parse('{"translation":{"aboutThisItem":"Sobre esse item","addedFromUrl":"(Adicionado por URL)","addManifestUrl":"Localização do manifesto","addManifestUrlHelp":"URL do manifesto IIIF","addResource":"Adicionar conteúdo","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Esquerda: [{{label}}]","annotationCanvasLabel_2/2":"Direita: [{{label}}]","annotations":"Anotações","attribution":"Atribuições","attributionTitle":"Direitos","authenticationFailed":"Falha na autenticação.","authenticationRequired":"Autenticação necessária para acesso completo","backToResults":"Voltar aos resultados","book":"Livro","bottom":"Embaixo","cancel":"Cancelar","canvasIndex":"Índice","changeTheme":"Mudar tema","clearSearch":"limpar","closeAddResourceForm":"Fechar formulário","closeAddResourceMenu":"Fechar lista de conteúdo","closeCompanionWindow":"Fechar painel","closeWindow":"Fechar janela","collapseSection":"Suprimir seção \\"{{section}}\\"","collapseSidePanel":"Suprimir barra lateral","continue":"Continuar","copy":"Copiar","currentItem":"Item atual","currentItem_1/1":"Item atual","currentItem_1/2":"Esquerda","currentItem_2/2":"Direita","dark":"Tema escuro","dismiss":"Cancelar","downloadExport":"Exportar área de trabalho","downloadExportWorkspace":"Exportar área de trabalho","elastic":"Elástico","elasticDescription":"Mova e redimensione janelas livremente numa área de trabalho ilimitada. Janelas podem se sobrepor.","emptyResourceList":"Sua lista de conteúdos está vazia","errorDialogConfirm":"OK","errorDialogTitle":"Um erro ocorreu","exitFullScreen":"Sair do modo tela cheia","expandSection":"Expandir seção \\"{{section}}\\"","expandSidePanel":"Expandir barra lateral","fetchManifest":"Adicionar","fullScreen":"Tela cheia","gallery":"Galeria","hideZoomControls":"Ocultar controles de zoom","highlightAllAnnotations":"Exibir todas","iiif_homepage":"Sobre esse conteúdo","iiif_manifest":"Manifesto IIIF","iiif_renderings":"Outros formatos","iiif_seeAlso":"Veja também","import":"Importar","importWorkspace":"Importar área de trabalho","importWorkspaceHint":"Cole uma configuração do Mirador 3 para importar","item":"Item: {{label}}","itemList":"Lista compacta","language":"Idioma","light":"Tema claro","links":"Links","listAllOpenWindows":"Pular para janela","login":"Login","manifestError":"O conteúdo não pode ser adicionado:","maximizeWindow":"Maximizar janela","minimizeWindow":"Minimizar janela","mirador":"Mirador","miradorResources":"conteúdo Mirador","miradorViewer":"visualizador Mirador","more":"mais...","moreResults":"Mais resultados","mosaic":"Mosáico","mosaicDescription":"Mova e redimensione janelas em relação entre si, dentro de uma área visível (grid).","moveCompanionWindowToBottom":"Mover para baixo","moveCompanionWindowToRight":"Mover para direita","nextCanvas":"Próximo item","numItems_one":"{{number}} itens","off":"Desativado","openCompanionWindow_annotations":"Anotações","openCompanionWindow_attribution":"Direitos","openCompanionWindow_canvas":"Índice","openCompanionWindow_info":"Informações","openCompanionWindow_search":"Busca","openInCompanionWindow":"Abrir em janela separada","openWindows":"Janelas abertas","pagination":"{{current}} de {{total}}","position":"Posição","previewWindowTitle":"{{title}}","previousCanvas":"Item anterior","related":"Relacionado","resource":"Conteúdo","retry":"Tentar novamente","right":"Direita","rights":"Licenças","searchInputLabel":"termos de busca","searchNextResult":"Próximo resultado","searchNoResults":"Nenhum resultado encontrado","searchPreviousResult":"Resultado anterior","searchSubmitAria":"Realizar busca","searchTitle":"Busca","selectWorkspaceMenu":"Selecione um tipo de área de trabalho","showingNumAnnotations_one":"Mostrando {{number}} anotações","showZoomControls":"Mostrar controles de zoom","sidebarPanelsNavigation":"Navegação por paineis na barra lateral","single":"Individual","startHere":"Comece aqui","suggestSearch":"Procurar neste documento por \\"{{ query }}\\"","theme":"Tema","thumbnailList":"Lista de thumbnails","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Ver barra lateral","tryAgain":"Tente novamente","untitled":"[Sem título]","view":"Visualizações","welcome":"Bem-vindo ao Mirador","window":"Janela: {{label}}","windowMenu":"Opções de visualização de janelas e thumbnails","windowNavigation":"Navegação de janelas","windowPluginButtons":"Opções","windowPluginMenu":"Opções de janela","workspace":"Área de trabalho","workspaceFullScreen":"Tela cheia","workspaceMenu":"Configurações de área de trabalho","workspaceOptions":"Opções de área de trabalho","workspaceSelectionTitle":"Selecionar tipo de área de trabalho","zoomIn":"Mais zoom","zoomOut":"Menos zoom","zoomReset":"Zerar zoom"}}'),Er=JSON.parse('{"translation":{"aboutMirador":"Informazioni su Mirador","aboutThisItem":"Informazioni sull\'oggetto","addedFromUrl":"(Aggiunto dall\'URL)","addManifestUrl":"URL della risorsa","addManifestUrlHelp":"L\'URL di una risorsa IIIF","addResource":"Aggiungi una risorsa","annotationCanvasLabel_1/1":"Oggetto: [{{label}}]","annotationCanvasLabel_1/2":"Sinistra: [{{label}}]","annotationCanvasLabel_2/2":"Destra: [{{label}}]","annotations":"Annotazioni","attribution":"Attribuzione","attributionTitle":"Diritti","authenticationFailed":"Autenticazione fallita.","authenticationRequired":"Autenticazione richiesta per l\'accesso completo","backToResults":"Torna ai risultati","book":"Libro","bottom":"Fondo","cancel":"Cancella","canvasIndex":"Indice","changeTheme":"Cambia tema","clearSearch":"pulisci","close":"Chiudi","closeAddResourceForm":"Chiudi il modulo","closeAddResourceMenu":"Chiudi la lista di risorse","closeCompanionWindow":"Chiudi il pannello","closeWindow":"Chiudi finestra","collapseSection":"Collassa la sezione \\"{{section}}\\"","collapseSidePanel":"Collassa la barra laterale","collection":"Collezione","continue":"Continua","copy":"Copia","currentItem":"Oggetto corrente","currentItem_1/1":"Oggetto corrente","currentItem_1/2":"Sinistra","currentItem_2/2":"Destra","dark":"Tema scuro","digitizedView":"Digitized view","dismiss":"Dismiss","displayNoAnnotations":"Nascondi evidenziazione","downloadExport":"Esporta il workspace","downloadExportWorkspace":"Esporta il workspace","elastic":"Elastico","elasticDescription":"Muovi e ridimensiona le finestre liberamente in un workspace illimitato. Le finestre possono sovrapporsi.","emptyResourceList":"La tua lista di risorse è vuota.","error":"Errore","errorDialogConfirm":"OK","errorDialogTitle":"Si è verificato un errore.","exitFullScreen":"Esci da schermo intero","expandSection":"Espandi la sezione \\"{{section}}\\"","expandSidePanel":"Espandi la barra laterale","exportCopied":"La configurazione del workspace è stata copiata nella tua clipboard","fetchManifest":"Aggiungi","fullScreen":"Schermo intero","gallery":"Galleria","hideZoomControls":"Nascondi i controlli di zoom","highlightAllAnnotations":"Evidenzia tutto","iiif_homepage":"Informazioni su questa risorsa","iiif_manifest":"IIIF manifest","iiif_renderings":"Formati alternativi","iiif_seeAlso":"Vedi anche","import":"Importa","importWorkspace":"Importa workspace","importWorkspaceHint":"Incolla una configurazione di Mirador 3 da importare","item":"Oggetto: {{label}}","itemList":"Lista compatta","jsError":"Dettagli tecnici","jsStack":"{{ stack }}","language":"Lingua","layer_hide":"Nascondi livello","layer_move":"Sposta livello","layer_moveToTop":"Sposta il livello in alto","layer_opacity":"Opacità del livello","layer_show":"Visualizza livello","layers":"Livelli","light":"Tema chiaro","links":"Link","listAllOpenWindows":"Vai alla finestra","login":"Entra","logout":"Esci","manifestError":"La risorsa non può essere aggiunta:","maximizeWindow":"Massimizza la finestra","minimizeWindow":"Minimizza la finestra","mirador":"Mirador","miradorResources":"Risorse Mirador","miradorViewer":"Visualizzatore Mirador","more":"ancora...","moreResults":"Più risultati","mosaic":"Mosaico","mosaicDescription":"Muovi e ridimensiona le finestre, tenendole all\'interno dell\'area visibile","moveCompanionWindowToBottom":"Sposta in fondo","moveCompanionWindowToRight":"Sposta a destra","nextCanvas":"Prossimo oggetto","noItemSelected":"Nessun oggetto selezionato","numItems_one":"{{number}} oggetti","numItems_other":"{{number}} oggetti","off":"Off","openCompanionWindow_annotations":"Annotazioni","openCompanionWindow_attribution":"Diritti","openCompanionWindow_canvas":"Indice","openCompanionWindow_info":"Informazioni","openCompanionWindow_layers":"Livelli","openCompanionWindow_search":"Cerca","openInCompanionWindow":"Apri in un pannello separato","openWindows":"Finestre aperte in questo momento","pagination":"{{current}} di {{total}}","position":"Posizione","previewWindowTitle":"{{title}}","previousCanvas":"Previous item","related":"Contenuti collegati","resource":"Risorsa","retry":"Riprova","right":"Right","rights":"Licenza","scroll":"Scorri","searchInputLabel":"termini di ricerca","searchNextResult":"Prossimo risultato","searchNoResults":"Nessun risultato","searchPreviousResult":"Risultato precedente","searchResultsRemaining":"{{numLeft}} rimanenti","searchSubmitAria":"Cerca","searchTitle":"Cerca","selectWorkspaceMenu":"Selezione il tipo di workspace","showCollection":"Visualizza la collezione","showingNumAnnotations_one":"Sto mostrando {{number}} annotazioni","showingNumAnnotations_other":"Visualizzando {{number}} annotazioni","showZoomControls":"Mostra i controlli di zoom","sidebarPanelsNavigation":"Navigazione dei pannelli della barra laterale","single":"Singolo","startHere":"Inizia qui","suggestSearch":"Cerca in questo documento: \\"{{ query }}\\"","tableOfContentsList":"Sommario","theme":"Tema","thumbnailList":"Lista thumbnail","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Apri/Chiudi la barra","totalCollections_one":"{{count}} collezione","totalCollections_other":"{{count}} collezioni","totalManifests_one":"{{count}} manifest","totalManifests_other":"{{count}} manifests","tryAgain":"Riprova","untitled":"[senza titolo]","view":"Visualizza","viewWorkspaceConfiguration":"Visualizza la configurazione del workspace","welcome":"Benvenuto in Mirador","window":"Finestra: {{label}}","windowMenu":"Visualizzazioni finestra e display thumbnail","windowNavigation":"Navigazione finestra","windowPluginButtons":"Opzioni","windowPluginMenu":"Opzioni finestra","workspace":"Workspace","workspaceFullScreen":"Schermo intero","workspaceMenu":"Configurazioni Workspace","workspaceNavigation":"Navigazione del workspace","workspaceOptions":"Opzioni Workspace","workspaceSelectionTitle":"Seleziona il tipo di workspace","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),Ir=JSON.parse('{"translation":{"aboutMirador":"О пројекту Mirador","aboutThisItem":"Опис","addedFromUrl":"(Додато са URL)","addManifestUrl":"Локација ресурса","addManifestUrlHelp":"URL IIIF ресурса","addResource":"Додајте ресурс","annotationCanvasLabel_1/1":"Страница: [{{label}}]","annotationCanvasLabel_1/2":"Лева: [{{label}}]","annotationCanvasLabel_2/2":"Десна: [{{label}}]","annotations":"Анотације","attribution":"Приступ","attributionTitle":"Права","authenticationFailed":"Неуспела аутентификација.","authenticationRequired":"За потпуни приступ неопходна је аутентификација","backToResults":"Повратак на резултате","book":"Књига","bottom":"На дну","cancel":"Одустаните","canvasIndex":"Индекс","changeTheme":"Промените тему","clearSearch":"обришите","close":"Затворите","closeAddResourceForm":"Затворите","closeAddResourceMenu":"Затворите листу ресурса","closeCompanionWindow":"Затворите панел","closeWindow":"Затворите приказ","collapseSection":"Сакријте \\"{{section}}\\" секцију","collapseSidePanel":"Сакријте","collection":"Колекција","continue":"Наставите","copy":"Копирајте","currentItem":"Тренутна страница","currentItem_1/1":"Тренутна страница","currentItem_1/2":"Лева","currentItem_2/2":"Десна","dark":"Тамна тема","digitizedView":"Приказ дигиталног објекта","dismiss":"Откажите","displayNoAnnotations":"Без приказа","downloadExport":"Извезите радно окружење","downloadExportWorkspace":"Извезите радно окружење","elastic":"Еластични","elasticDescription":"Слободно померајте и одредите величину приказа у неограниченом радном простору. Прикази могу бити већи од радног простора.","emptyResourceList":"Ваша листа ресурса је празна","error":"Грешка","errorDialogConfirm":"OK","errorDialogTitle":"Дошло је до грешке","exitFullScreen":"Изађите из приказа преко целог екрана","expandSection":"Проширите \\"{{section}}\\" секцију","expandSidePanel":"Прикажите","exportCopied":"Конфигурација радног окружења је копирана у привремену меморију","fetchManifest":"Додајте","fullScreen":"Приказ у пуном екрану","gallery":"Галерија","hideZoomControls":"Сакријте контроле зума","highlightAllAnnotations":"Приказ свих","iiif_homepage":"О ресурсу","iiif_manifest":"IIIF manifest","iiif_renderings":"Додатни формати","iiif_seeAlso":"Погледајте и","import":"Увезите","importWorkspace":"Увезите радно окружење","importWorkspaceHint":"Убаците конфигурацију Mirador 3 како би могли да је увезете","item":"Страница: {{label}}","itemList":"Листа страница","jsError":"Технички детаљи","jsStack":"{{ stack }}","language":"Језик приказа","layer_hide":"Сакријте слој","layer_move":"Померите слој","layer_moveToTop":"Померите слој на врх","layer_opacity":"Видљивост слоја","layer_show":"Приказ слоја","layers":"Слојеви","light":"Светла тема","links":"Линкови","listAllOpenWindows":"Идите на приказ","login":"Улогујте се","logout":"Излогујте се","manifestError":"Ресурс се не може додати","maximizeWindow":"Максималан приказ","minimizeWindow":"Минималан приказ","mirador":"Mirador","miradorResources":"Mirador ресурси","miradorViewer":"Mirador прегледач","more":"још...","moreResults":"Још резултата","mosaic":"Мозаик","mosaicDescription":"Померајте и одредите величину приказа који су у међусобној релацији, унутар видљивог оквира.","moveCompanionWindowToBottom":"Пребаците на дно","moveCompanionWindowToRight":"Померите у десну страну","nextCanvas":"Следећа","noItemSelected":"Нема изабраних објеката","numItems_one":"{{number}} страница/це","off":"Искључене","openCompanionWindow_annotations":"Анотације","openCompanionWindow_attribution":"Права","openCompanionWindow_canvas":"Индекс","openCompanionWindow_info":"Информације","openCompanionWindow_layers":"Слојеви","openCompanionWindow_search":"Претрага","openInCompanionWindow":"Отворите у засебном панелу","openWindows":"Тренутно отворени прикази","pagination":"{{current}} од {{total}}","position":"Позиција","previewWindowTitle":"{{title}}","previousCanvas":"Претходна","related":"Релације","resource":"Ресурс","retry":"Покушајте поново","right":"Десно","rights":"Лиценца","scroll":"Померајте","searchInputLabel":"претражите појам","searchNextResult":"Следећи резултат","searchNoResults":"Тражени појам није пронађен","searchPreviousResult":"Претходни резултат","searchSubmitAria":"Претражите","searchTitle":"Претрага","selectWorkspaceMenu":"Изаберите тип радног окружења","showCollection":"Прикажи колекцију","showingNumAnnotations_one":"Приказ {{number}} анотација/је","showZoomControls":"Приказ контрола зума","sidebarPanelsNavigation":"Навигација сајдбар панела","single":"Појединачно","startHere":"Започните","suggestSearch":"Пронађите појам \\"{{ query }}\\" у овом документу","tableOfContentsList":"Садржај","theme":"Тема","thumbnailList":"Листа сличица","thumbnailNavigation":"Сличице","thumbnails":"Сличице","toggleWindowSideBar":"Сајдбар","totalCollections_one":"{{count}} колекција/е","totalManifests_one":"{{count}} објек(а)та","tryAgain":"Покушајте поново","untitled":"[Без наслова]","view":"Преглед","welcome":"Добродошли у прегледач Mirador","window":"Приказ: {{label}}","windowMenu":"Изглед прегледа и позиција сличица","windowNavigation":"Навигација приказа","windowPluginButtons":"Опције","windowPluginMenu":"Опције приказа","workspace":"Радни простор","workspaceFullScreen":"Приказ преко целог екрана","workspaceMenu":"Уређивање радног простора","workspaceOptions":"Опције радног окружења","workspaceSelectionTitle":"Изаберите тип радног окружења","zoomIn":"Увећајте","zoomOut":"Умањите","zoomReset":"Ресет зума"}}'),Tr=JSON.parse('{"translation":{"aboutMirador":"Om Projekt Mirador","aboutThisItem":"Om det här objektet","addedFromUrl":"(Tillagd från URL)","addManifestUrl":"Webbadress till samling eller manifest","addManifestUrlHelp":"URL till en IIIF-resurs","addResource":"Lägg till resurs","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Vänster: [{{label}}]","annotationCanvasLabel_2/2":"Höger: [{{label}}]","annotations":"Noteringar","attribution":"Tillskrivning","attributionTitle":"Rättigheter","authenticationFailed":"Autentisering misslyckades.","authenticationRequired":"Autentisering krävs för full åtkomst","backToResults":"Tillbaka till resultat","book":"Bok","bottom":"Nederkant","cancel":"Avbryt","canvasIndex":"Index","changeTheme":"Ändra tema","clearSearch":"Ta bort sökning","close":"Stäng","closeAddResourceForm":"Stäng formulär","closeAddResourceMenu":"Stäng resurslista","closeCompanionWindow":"Stäng panel","closeWindow":"Stäng fönster","collapseSection":"Stäng sektionen \\"{{section}}\\"","collapseSidePanel":"Stäng sidofält","collection":"Samling","continue":"Fortsätt","copy":"Kopiera","currentItem":"Aktuellt objekt","currentItem_1/1":"Aktuellt objekt","currentItem_1/2":"Vänster","currentItem_2/2":"Höger","dark":"Mörkt tema","digitizedView":"Digitaliserad vy","dismiss":"Stäng","displayNoAnnotations":"Avmarkera alla","downloadExport":"Exportera arbetsyta","downloadExportWorkspace":"Exportera arbetsyta","elastic":"Elastisk","elasticDescription":"Flytta och ändra storlek på fönster fritt i en obegränsad arbetsyta. Fönster kan överlappa.","emptyResourceList":"Din resurslista är tom","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"Ett problem uppstod","exitFullScreen":"Lämna helskärmsläge","expandSection":"Expandera sektionen \\"{{section}}\\"","expandSidePanel":"Expandera sidofält","exportCopied":"Konfiguration av arbetsytan har kopierats till dina urklipp","fetchManifest":"Lägg till","fullScreen":"Helskärmsläge","gallery":"Galleri","hideZoomControls":"Dölj zoomkontroller","highlightAllAnnotations":"Markera alla","iiif_homepage":"Om den här resursen","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternativa format","iiif_seeAlso":"Se även","import":"Importera","importWorkspace":"Importera arbetsyta","importWorkspaceHint":"Klistra in en Mirador 3 konfiguration att importera","item":"Objekt: {{label}}","itemList":"Objektlista","jsError":"Tekniska detaljer","jsStack":"{{ stack }}","language":"Språk","layer_hide":"Dölj lager","layer_move":"Flytta lager","layer_moveToTop":"Flytta lager till toppen","layer_opacity":"Lageropacitet","layer_show":"Visa lager","layers":"Lager","light":"Ljust tema","links":"Länkar","listAllOpenWindows":"Gå till fönster","login":"Logga in","logout":"Logga ut","manifestError":"Resursen kan inte läggas till:","maximizeWindow":"Maximera fönster","minimizeWindow":"Minimera fönster","mirador":"Mirador","miradorResources":"Miradorresurser","miradorViewer":"Mirador bildvisare","more":"mer...","moreResults":"Fler resultat","mosaic":"Mosaik","mosaicDescription":"Flytta och ändra storlek på fönster i relation till varandra, innanför den synliga ramen.","moveCompanionWindowToBottom":"Flytta till botten","moveCompanionWindowToRight":"Flytta till höger","nextCanvas":"Nästa objekt","noItemSelected":"Inga valda objekt","numItems_one":"{{number}} objekt","off":"Av","openCompanionWindow_annotations":"Noteringar","openCompanionWindow_attribution":"Rättigheter","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Information","openCompanionWindow_layers":"Lager","openCompanionWindow_search":"Sök","openInCompanionWindow":"Öppna i separat panel","openWindows":"Öppna fönster","pagination":"{{current}} av {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Föregående objekt","related":"Relaterat","resource":"Resurs","retry":"Försök igen","right":"Till höger","rights":"Licens","scroll":"Scrolla","searchInputLabel":"Sökord","searchNextResult":"Nästa resultat","searchNoResults":"Inga resultat hittades","searchPreviousResult":"Föregående resultat","searchResultsRemaining":"{{numLeft}} kvar","searchSubmitAria":"Sök","searchTitle":"Sök","selectWorkspaceMenu":"Välj typ av arbetsyta","showCollection":"Visa samling","showingNumAnnotations_one":"Visar {{number}} noteringar","showZoomControls":"Visa zoomkontroller","sidebarPanelsNavigation":"Sidofältspaneler navigering","single":"En och en","startHere":"Börja här","suggestSearch":"Sök i detta dokument efter \\"{{ query }}\\"","tableOfContentsList":"Innehållsförteckning","theme":"Tema","thumbnailList":"Miniatyrlista","thumbnailNavigation":"Miniatyrer","thumbnails":"Miniatyrer","toggleWindowSideBar":"Visa/dölj sidofält","totalCollections_one":"{{count}} samlingar","totalManifests_one":"{{count}} manifest","tryAgain":"Försök igen","untitled":"[namnlös]","view":"Vy","welcome":"Välkommen till Mirador","window":"Fönster: {{label}}","windowMenu":"Fönstervyer & miniatyrdisplay","windowNavigation":"Fönsternavigation","windowPluginButtons":"Inställningar","windowPluginMenu":"Fönsterinställningar","workspace":"Arbetsyta","workspaceFullScreen":"Helskärmsläge","workspaceMenu":"Inställningar för arbetsyta","workspaceNavigation":"Navigera i arbetsyta","workspaceOptions":"Fler val för arbetsyta","workspaceSelectionTitle":"Välj typ av arbetsyta","zoomIn":"Zooma in","zoomOut":"Zooma ut","zoomReset":"Återställ zoom"}}'),Cr=JSON.parse('{"translation":{"aboutMirador":"Apie Project Mirador","aboutThisItem":"Apie šį įrašą","addedFromUrl":"(Pridėta naudojant URL)","addManifestUrl":"Šaltinio adresas","addManifestUrlHelp":"Nuoroda į IIIF šaltinį","addResource":"Pridėti šaltinį","annotationCanvasLabel_1/1":"Įrašas: [{{label}}]","annotationCanvasLabel_1/2":"Kairė: [{{label}}]","annotationCanvasLabel_2/2":"Dešinė: [{{label}}]","annotations":"Anotacijos","attribution":"Priskyrimas","attributionTitle":"Teisės","authenticationFailed":"Autentifikavimo klaida.","authenticationRequired":"Pilnai prieigai būtina autentifikacija","backToResults":"Grįžti į rezultatus","book":"Knyga","bottom":"Apačia","cancel":"Atšaukti","canvasIndex":"Indeksas","changeTheme":"Keisti temą","clearSearch":"valyti","closeAddResourceForm":"Uždaryti paraišką","closeAddResourceMenu":"Uždaryti šaltinių sąrašą","closeCompanionWindow":"Uždaryti panelę","closeWindow":"Uždaryti langą","collapseSection":"Suskleisti \\"{{section}}\\" sekciją","collapseSidePanel":"Suskleisti šoninę juostą","continue":"Tęsti","copy":"Kopijuoti","currentItem":"Dabartinis įrašas","currentItem_1/1":"Dabartinis įrašas","currentItem_1/2":"Kairė","currentItem_2/2":"Dešinė","dark":"Tamsi tema","digitizedView":"Skaitmenintas vaizdas","dismiss":"Atmesti","displayNoAnnotations":"Slėpti viską","downloadExport":"Išsaugoti darbalaukį","downloadExportWorkspace":"Išsaugoti darbalaukį","elastic":"Lankstus","elasticDescription":"Langų dydis ir vieta gali būti laisvai valdomi. Langai gali persidengti.","emptyResourceList":"Jūsų šaltinių sąrašas yra tuščias","error":"Klaida","errorDialogConfirm":"Gerai","errorDialogTitle":"Įvyko klaida","exitFullScreen":"Išjungti pilno ekrano režimą","expandSection":"Išplėsti \\"{{section}}\\" sekciją","expandSidePanel":"Išplėsti šoninę juostą","exportCopied":"Darbalaukio nustatymai nukopijuoti","fetchManifest":"Pridėti","fullScreen":"Pilnas ekranas","gallery":"Galerija","hideZoomControls":"Slėpti priartinimo valdymą","highlightAllAnnotations":"Paryškinti viską","iiif_homepage":"Apie šį šaltinį","iiif_manifest":"IIIF manifestas","iiif_renderings":"Kiti formatai","iiif_seeAlso":"Susiję","import":"Įkelti","importWorkspace":"Įkelti darbalaukį","importWorkspaceHint":"Įterpkite Mirador 3 nustatymus įkėlimui","item":"Įrašas: {{label}}","itemList":"Įrašų sąrašas","jsError":"Techninė informacija","jsStack":"{{ stack }}","language":"Kalba","layer_hide":"Slėpti sluoksnį","layer_move":"Perkelti sluoksnį","layer_moveToTop":"Perkelti sluoksnį į viršų","layer_opacity":"Sluoksnio nepermatomumas","layer_show":"Rodyti sluoksnį","layers":"Sluoksniai","light":"Šviesi tema","links":"Nuorodos","listAllOpenWindows":"Rodyti aktyvius langus","login":"Prisijungti","logout":"Atsijungti","manifestError":"Šaltinis negali būti pridėtas:","maximizeWindow":"Išdidinti langą","minimizeWindow":"Sumažinti langą","mirador":"Mirador","miradorResources":"Mirador šaltiniai","miradorViewer":"Mirador žiūryklė","more":"daugiau...","moreResults":"Daugiau rezultatų","mosaic":"Mosaic","mosaicDescription":"Langų dydžio ir pozicijos keitimai apribojami ekrano erdvėje.","moveCompanionWindowToBottom":"Perkelti į apačią","moveCompanionWindowToRight":"Perkelti į dešinę","nextCanvas":"Kitas įrašas","numItems_one":"{{number}} įrašas (-ai)","off":"Išjungti","openCompanionWindow_annotations":"Anotacijos","openCompanionWindow_attribution":"Teisės","openCompanionWindow_canvas":"Indeksas","openCompanionWindow_info":"Informacija","openCompanionWindow_layers":"Sluoksniai","openCompanionWindow_search":"Paieška","openInCompanionWindow":"Atidaryti kaip naują panelę","openWindows":"Aktyvųs langai","pagination":"{{current}} iš {{total}}","position":"Pozicija","previewWindowTitle":"{{title}}","previousCanvas":"Buvęs įrašas","related":"Susiję","resource":"Šaltinis","retry":"Pabandyti iš naujo","right":"Dešinė","rights":"Teisės","scroll":"Paslinkti","searchInputLabel":"paieškos terminas","searchNextResult":"Kitas rezultatas","searchNoResults":"Nėra rezultatų","searchPreviousResult":"Buvęs rezultatas","searchSubmitAria":"Pateikti paieškos užklausą","searchTitle":"Ieškoti","selectWorkspaceMenu":"Pasirinkti darbalaukio tipą","showCollection":"Rodyti kolekciją","showingNumAnnotations_one":"Rodoma {{number}} anotacija (-os)","showZoomControls":"Rodyti priartinimo valdymą","sidebarPanelsNavigation":"Šoninės juostos valdymas","single":"Atskiras","startHere":"Pradėkite čia","suggestSearch":"Ieškoti \\"{{ query }}\\" visame documente","tableOfContentsList":"Turinys","theme":"Tema","thumbnailList":"Miniatiūrų sąrašas","thumbnailNavigation":"Miniatiūros","thumbnails":"Miniatiūros","toggleWindowSideBar":"Perjungti šoninę juostą","totalCollections_one":"{{count}} kolekcija (-os)","totalManifests_one":"{{count}} šaltinis (-iai)","tryAgain":"Bandykite dar kartą","untitled":"[Be pavadinimo]","view":"Žiūrėti","welcome":"Sveiki atvykę į Mirador","window":"Langas: {{label}}","windowMenu":"Langų & miniatiūrų atvaizdavimas","windowNavigation":"Langų valdymas","windowPluginButtons":"Pasirinkimai","windowPluginMenu":"Langų pasirinkimai","workspace":"Darbalaukis","workspaceFullScreen":"Pilnas ekranas","workspaceMenu":"Darbalaukio nustatymai","workspaceNavigation":"Darbalaukio valdymas","workspaceOptions":"Darbalaukio pasirinkimai","workspaceSelectionTitle":"Pasirinkite darbalaukio tipą","zoomIn":"Priartinti","zoomOut":"Atitolinti","zoomReset":"Atstatyti priartinimą"}}'),kr=JSON.parse('{"translation":{"aboutMirador":"Về dự án Mirador","aboutThisItem":"Về khoản mục này","addedFromUrl":"(Được thêm từ URL)","addManifestUrl":"Vị trí tài nguyên","addManifestUrlHelp":"URL của tài nguyên IIIF","addResource":"Bổ sung tài nguyên","annotationCanvasLabel_1/1":"Khoản mục: [{{label}}]","annotationCanvasLabel_1/2":"Trái: [{{label}}]","annotationCanvasLabel_2/2":"Phải: [{{label}}]","annotations":"Chú giải","attribution":"Quyền hạn","attributionTitle":"Quyền","authenticationFailed":"Xác thực thất bại.","authenticationRequired":"Xác thực được yêu cầu cho truy nhập đầy đủ","backToResults":"Trở lại kết quả","book":"Sách","bottom":"Đáy","cancel":"Huỷ bỏ","canvasIndex":"Chỉ mục","changeTheme":"Đổi chủ đề","clearSearch":"xoá","close":"Đóng","closeAddResourceForm":"Đóng mẫu","closeAddResourceMenu":"Đóng danh sách tài nguyên","closeCompanionWindow":"Đóng panel","closeWindow":"Đóng cửa sổ","collapseSection":"Co sập {{section}} mục","collapseSidePanel":"Co sập thanh bên","collection":"Tuyển tập","continue":"Tiếp tục","copy":"Sao","currentItem":"Khoản mục hiện thời","currentItem_1/1":"Khoản mục hiện thời","currentItem_1/2":"Trái","currentItem_2/2":"Phải","dark":"Chủ đề tối","digitizedView":"Cái nhìn số hoá","dismiss":"Bác bỏ","displayNoAnnotations":"Không làm nổi bật","downloadExport":"Vùng xuất khẩu","downloadExportWorkspace":"Vùng xuất khẩu","elastic":"Co giãn","elasticDescription":"Di chuyển và định cỡ cửa sổ tự do trong vùng vô giới hạn. Cửa sổ có thể chèn lấp.","emptyResourceList":"Danh sách tài nguyên của bạn là trống","error":"Lỗi","errorDialogConfirm":"OK","errorDialogTitle":"Lỗi đã xuất hiện","exitFullScreen":"Ra khỏi toàn màn hình","expandSection":"Mở rộng {{section}} mục","expandSidePanel":"Mở rộng thanh bên","exportCopied":"Cấu hình vùng làm việc được sao vào bảng đệm của bạn","fetchManifest":"Thêm","fullScreen":"Toàn màn hình","gallery":"Phòng tranh","hideZoomControls":"Ẩn điều khiển thu phóng","highlightAllAnnotations":"Làm nổi bật tất","iiif_homepage":"Về tài nguyên này","iiif_manifest":"Bản kê IIIF","iiif_renderings":"Dạng thức luân phiên","iiif_seeAlso":"Cũng xem","import":"Nhập khẩu","importWorkspace":"Vùng nhập khẩu","importWorkspaceHint":"Dán cấu hình Mirador 3 để được nhập khẩu","item":"Khoản mục: {{label}}","itemList":"Danh sách khoản mục","jsError":"Chi tiết kĩ thuật","jsStack":"{{ stack }}","language":"Ngôn ngữ","layer_hide":"Giấu tầng","layer_move":"Chuyển tầng","layer_moveToTop":"Chuyển tầng lên đỉnh","layer_opacity":"Làm mờ tầng","layer_show":"Hiện tầng","layers":"Tầng","light":"Chủ đề sáng","links":"Móc nối","listAllOpenWindows":"Nhảy tới cửa sổ","login":"Đăng nhập","logout":"Đăng xuất","manifestError":"Tài nguyên không thể được bổ sung:","maximizeWindow":"Cực đại cửa sổ","minimizeWindow":"Cực tiểu cửa sổ","mirador":"Mirador","miradorResources":"Tài nguyên Mirador","miradorViewer":"Bộ xem Mirador","more":"thêm...","moreResults":"Thêm kết quả","mosaic":"Mosaic","mosaicDescription":"Di chuyển và định cỡ cửa sổ trong quan hệ lẫn nhau, bên trong khung thấy được.","moveCompanionWindowToBottom":"Chuyển tới đáy","moveCompanionWindowToRight":"Chuyển sang phải","nextCanvas":"Khoản mục tiếp","noItemSelected":"Không khoản mục nào được chọn","numItems_one":"{{number}} khoản mục","off":"Off","openCompanionWindow_annotations":"Chú giải","openCompanionWindow_attribution":"Quyền","openCompanionWindow_canvas":"Chỉ mục","openCompanionWindow_info":"Thông tin","openCompanionWindow_layers":"Tầng","openCompanionWindow_search":"Tìm","openInCompanionWindow":"Mở trong ngăn tách rời","openWindows":"Cửa sổ mở hiện thời","pagination":"{{current}} trong {{total}}","position":"Vị trí","previewWindowTitle":"{{title}}","previousCanvas":"Khoản mục trước","related":"Có liên quan","resource":"Tài nguyên","retry":"Thử lại","right":"Quyền","rights":"Cấp phép","scroll":"Cuộn","searchInputLabel":"Từ tìm kiếm","searchNextResult":"Kết quả tiếp","searchNoResults":"Không tìm được kết quả nào","searchPreviousResult":"Kết quả trước","searchSubmitAria":"Đệ trình việc tìm","searchTitle":"Tìm","selectWorkspaceMenu":"Chọn kiểu vùng làm việc","showCollection":"Hiện bộ sưu tập","showingNumAnnotations_one":"Hiện {{number}} chú giải","showZoomControls":"Hiện kiểm soát thu phóng","sidebarPanelsNavigation":"Dẫn lái ngăn thanh bên","single":"Chỉ một","startHere":"Bắt đầu ở đây","suggestSearch":"Tìm tài liệu này cho \\"{{ query }}\\"","tableOfContentsList":"Mục lục","theme":"Chủ đề","thumbnailList":"Danh sách ảnh thu nhỏ","thumbnailNavigation":"Ảnh thu nhỏ","thumbnails":"Ảnh thu nhỏ","toggleWindowSideBar":"chốt thanh bên","totalCollections_one":"{{count}} bộ sưu tập","totalManifests_one":"{{count}} bản kê","tryAgain":"Thử lại","untitled":"[Untitled]","view":"Xem","welcome":"Chào mừng bạn tới Mirador","window":"Cửa sổ: {{label}}","windowMenu":"Xem cửa sổ & hiển thị ảnh thu nhỏ","windowNavigation":"Dẫn lái cửa sổ","windowPluginButtons":"Tuỳ chọn","windowPluginMenu":"Tuỳ chọn cửa sổ","workspace":"Vùng làm việc","workspaceFullScreen":"Toàn màn hình","workspaceMenu":"Thiết đặt vùng làm việc","workspaceNavigation":"Dẫn lái vùng làm việc","workspaceOptions":"Tuỳ chọn vùng làm việc","workspaceSelectionTitle":"Chọn kiểu vùng làm việc","zoomIn":"Thu nhỏ","zoomOut":"Phóng to","zoomReset":"Đặt lại thu phóng"}}'),_r=JSON.parse('{"translation":{"aboutMirador":"За проекта Mirador","aboutThisItem":"За този елемент","addedFromUrl":"(Добавено от линк)","addManifestUrl":"Адрес на ресурса","addManifestUrlHelp":"Адресът на IIIF ресурса","addResource":"Добавяне на ресурс","annotationCanvasLabel_1/1":"Елемент: [{{label}}]","annotationCanvasLabel_1/2":"Ляво: [{{label}}]","annotationCanvasLabel_2/2":"Дясно: [{{label}}]","annotations":"Анотации","attribution":"Принос","attributionTitle":"Права","authenticationFailed":"Неуспешна аутентикация.","authenticationRequired":"Необходима е аутентикация за пълен достъп","backToResults":"Назад към ресултатите","book":"Книга","bottom":"Долу","cancel":"Отказ","canvasIndex":"Индекс","changeTheme":"Промяна на темата","clearSearch":"изчистване","close":"Затвори","closeAddResourceForm":"Затваряне на формата","closeAddResourceMenu":"Затваряне на списъка с ресурси","closeCompanionWindow":"Затваряне на панела","closeWindow":"Затваряне на прозореца","collapseSection":"Свиване на секция \\"{{section}}\\"","collapseSidePanel":"Свиване на страничен панел","collection":"Колекция","continue":"Продължи","copy":"Копиране","currentItem":"Текущ елемент","currentItem_1/1":"Текущ елемент","currentItem_1/2":"Ляво","currentItem_2/2":"Дясно","dark":"Тъмен режим","digitizedView":"Цифровизиран преглед","dismiss":"Отхвърляне","displayNoAnnotations":"Изчистване на маркирането","downloadExport":"Експорт на работното пространство","downloadExportWorkspace":"Експорт на работното пространство","elastic":"Еластичен","elasticDescription":"Премествайте и оразмерявайте прозорците свободно в неограничено работно пространство. Прозорците могат да се застъпват.","emptyResourceList":"Списъкът с ресурси е празен","error":"Грешка","errorDialogConfirm":"OK","errorDialogTitle":"Възникна грешка","exitFullScreen":"Изход от цял екран","expandSection":"Разширяване на секция \\"{{section}}\\"","expandSidePanel":"разширяване на страничния панел","exportCopied":"Конфигурацията на работното пространство е копирана в клипборда","fetchManifest":"Добавяне","fullScreen":"Цял екран","gallery":"Галерия","hideZoomControls":"Скриване на контролите за мащабиране","highlightAllAnnotations":"Маркиране на всичко","iiif_homepage":"За този ресурс","iiif_manifest":"IIIF манифест","iiif_related":"Свързано","iiif_renderings":"Алтернативни формати","iiif_seeAlso":"Вижте също","import":"Импорт","importWorkspace":"Импорт на работно пространство","importWorkspaceHint":"Поставете Mirador 3 конфигурация за импорт","item":"Елемент: {{label}}","itemList":"Списък с елементи","jsError":"Технически детайли","jsStack":"{{ stack }}","language":"Език","layer_hide":"Скриване на слой","layer_move":"Преместване на слой","layer_moveToTop":"Преместване на слой най-отгоре","layer_opacity":"Прозрачност на слой","layer_show":"Показване на слой","layers":"Слоеве","light":"Светъл режим","links":"Връзки","listAllOpenWindows":"Към прозорец","login":"Вход","logout":"Изход","manifestError":"Ресурсът не може да бъде добавен:","maximizeWindow":"Увеличаване на прозореца","minimizeWindow":"Минимизиране на прозореца","mirador":"Mirador","miradorResources":"Mirador ресурси","miradorViewer":"Mirador viewer","more":"още...","moreResults":"Още резултати","mosaic":"Мозайка","mosaicDescription":"Премествайте и оразмерявайте прозорците помежду им в рамките на видимата рамка.","moveCompanionWindowToBottom":"Преместване отдолу","moveCompanionWindowToRight":"Преместване вдясно","multipartCollection":"Колекция от много части","nextCanvas":"Следващ елемент","noItemSelected":"Не е избран елемент","numItems":"{{number}} елемент","numItems_plural":"{{number}} елемента","off":"Изключено","openCompanionWindow_annotations":"Анотации","openCompanionWindow_attribution":"Права","openCompanionWindow_canvas":"Индекс","openCompanionWindow_info":"Информация","openCompanionWindow_layers":"Слоеве","openCompanionWindow_search":"Търсене","openInCompanionWindow":"Отваряне в отделен панел","openWindows":"Текущо отворени прозорци","pagination":"{{current}} от {{total}}","position":"Позиция","previewWindowTitle":"{{title}}","previousCanvas":"Предишен елемент","related":"Свързано","resource":"Ресурс","retry":"Опитайте отново","right":"Дясно","rights":"Лиценз","scroll":"Скрол","searchInputLabel":"термини за търсене","searchNextResult":"Следващ резултат","searchNoResults":"Не са намерени резултати","searchPreviousResult":"Предишен резултат","searchResultsRemaining":"{{numLeft}} оставащи","searchSubmitAria":"Търси","searchTitle":"Търсене","selectWorkspaceMenu":"Посочете тип работно пространство","showCollection":"Показване на колекция","showingNumAnnotations":"Показване на {{number}} анотация","showingNumAnnotations_plural":"Показване на {{number}} анотации","showZoomControls":"Показване на контролите за мащабиране","sidebarPanelsNavigation":"Навигация на страничните панели","single":"Единичен","startHere":"Започнете оттук","suggestSearch":"Търсене в този документ за \\"{{ query }}\\"","tableOfContentsList":"Съдържание","theme":"Тема","thumbnailList":"Списък с представителни изображения","thumbnailNavigation":"Представителни изображения","thumbnails":"Представителни изображения","toggleWindowSideBar":"Превключване на страничния панел","totalCollections":"{{count}} колекция","totalCollections_plural":"{{count}} колекции","totalManifests":"{{count}} манифест","totalManifests_plural":"{{count}} манифеста","tryAgain":"Опитайте отново","untitled":"[Неозаглавено]","view":"Изглед","viewWorkspaceConfiguration":"Преглед на конфигурацията на работното пространство","welcome":"Добре дошли в Mirador","window":"Прозорец: {{label}}","windowMenu":"Изгледи на прозорците и на елементите","windowNavigation":"Навигация на прозорците","windowPluginButtons":"Настройки","windowPluginMenu":"Настройки на прозорците","workspace":"Работно пространство","workspaceFullScreen":"Цял екран","workspaceMenu":"Настройки на работното пространство","workspaceNavigation":"Навигация на работното пространство","workspaceOptions":"Опции за работното пространство","workspaceSelectionTitle":"Изберете тип на работно пространство","zoomIn":"Увеличаване","zoomOut":"Намаляване","zoomReset":"Нулиране"}}'),Rr=JSON.parse('{"translation":{"aboutMirador":"Om Projekt Mirador","aboutThisItem":"Om dette objektet","addedFromUrl":"(Lagt til fra URL)","addManifestUrl":"Nettadresse til samling eller manifest","addManifestUrlHelp":"URL til en IIIF-ressurs","addResource":"Legg til ressurs","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Venstre: [{{label}}]","annotationCanvasLabel_2/2":"Høyre: [{{label}}]","annotations":"Annoteringer","attribution":"Tilskrivelse","attributionTitle":"Rettigheter","authenticationFailed":"Autentiseringen feilet.","authenticationRequired":"Autentisering kreves for full tilgang","backToResults":"Tilbake til resultat","book":"Bok","bottom":"Nederst","cancel":"Avbryt","canvasIndex":"Index","changeTheme":"Skift tema","clearSearch":"Fjern søket","close":"Lukk","closeAddResourceForm":"Lukk skjemaet","closeAddResourceMenu":"Lukk ressurslisten","closeCompanionWindow":"Lukk panelet","closeWindow":"Lukk vinduet","collapseSection":"Lukk seksjonen \\"{{section}}\\"","collapseSidePanel":"Lukk sidemenyen","collection":"Samling","continue":"Fortsett","copy":"Kopiere","currentItem":"Valgt objekt","currentItem_1/1":"Valgt objekt","currentItem_1/2":"Venstre","currentItem_2/2":"Høyre","dark":"Mørkt tema","digitizedView":"Digitalisert visning","dismiss":"Lukk","displayNoAnnotations":"Avmarkér alle","downloadExport":"Eksportér arbeidsområde","downloadExportWorkspace":"Eksportér arbeidsområde","elastic":"Elastisk","elasticDescription":"Flytt og endre størrelsen på vinduet fritt i et ubegrenset arbeidsområde. Vindu kan overlappe.","emptyResourceList":"Din resursliste er tom","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"Et problem oppstod","exitFullScreen":"Forlat fullskjermsvisning","expandSection":"Ekspandér seksjonen \\"{{section}}\\"","expandSidePanel":"Ekspandér sidemenyen","exportCopied":"Konfiguration av arbeidsområdet ble kopiert til din utklippstavle","fetchManifest":"Legg til","fullScreen":"Fullskjermsvisning","gallery":"Galleri","hideZoomControls":"Skjul zoomkontroll","highlightAllAnnotations":"Markér alle","iiif_homepage":"Om denne ressursen","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternativt format","iiif_seeAlso":"Se også","import":"Importér","importWorkspace":"Importér arbeidsområde","importWorkspaceHint":"Lim inn en Mirador 3 konfigurasjon for import","item":"Objekt: {{label}}","itemList":"Objektliste","jsError":"Tekniske detaljer","jsStack":"{{ stack }}","language":"Språk","layer_hide":"Skjul lag","layer_move":"Flytt lag","layer_moveToTop":"Flytt laget øverst","layer_opacity":"Lag-gjennomsiktighet","layer_show":"Vis lag","layers":"Lag","light":"Lyst tema","links":"Lenker","listAllOpenWindows":"Gå til vindu","login":"Logg inn","logout":"Logg ut","manifestError":"Ressursen kan ikke legges til:","maximizeWindow":"Maksimér vinduet","minimizeWindow":"Minimér vinduet","mirador":"Mirador","miradorResources":"Miradorressurser","miradorViewer":"Mirador bildeviser","more":"mer...","moreResults":"Flere resultat","mosaic":"Mosaik","mosaicDescription":"Flytt og endre størrelse på vinduet i relasjon til hverandre, innenfor den synlige rammen.","moveCompanionWindowToBottom":"Flytt til bunnen","moveCompanionWindowToRight":"Flytt til høyre","nextCanvas":"Neste objekt","noItemSelected":"Ingen valgte objekt","numItems_one":"{{number}} objekt","numItems_other":"{{number}} objekter","off":"Av","openCompanionWindow_annotations":"Annoteringer","openCompanionWindow_attribution":"Rettigheter","openCompanionWindow_canvas":"Indeks","openCompanionWindow_info":"Informasjon","openCompanionWindow_layers":"Lag","openCompanionWindow_search":"Søk","openInCompanionWindow":"Åpne i eget panel","openWindows":"Åpne vindu","pagination":"{{current}} av {{total}}","position":"Posisjon","previewWindowTitle":"{{title}}","previousCanvas":"Forrige objekt","related":"Relatert","resource":"Ressurs","retry":"Forsøk igjen","right":"Til høyre","rights":"Lisens","scroll":"Bla","searchInputLabel":"Søkeord","searchNextResult":"Neste resultat","searchNoResults":"Ingen treff","searchPreviousResult":"Forrige resultat","searchResultsRemaining":"{{numLeft}} igjen","searchSubmitAria":"Søk","searchTitle":"Søk","selectWorkspaceMenu":"Velg arbeidsområde-type","showCollection":"Vis samling","showingNumAnnotations_one":"Vis {{number}} annotasjon","showingNumAnnotations_other":"Vis {{number}} annotasjoner","showZoomControls":"Vis zoomkontroll","sidebarPanelsNavigation":"Sidemeny-panel navigering","single":"En og en","startHere":"Start her","suggestSearch":"Søk etter \\"{{ query }}\\" i dette dokument","tableOfContentsList":"Innholdsfortegnelse","theme":"Tema","thumbnailList":"Miniatyrliste","thumbnailNavigation":"Miniatyrer","thumbnails":"Miniatyrer","toggleWindowSideBar":"Vis/skjul sidemenyen","totalCollections_one":"{{count}} samling","totalCollections_other":"{{count}} samlinger","totalManifests_one":"{{count}} manifest","totalManifests_other":"{{count}} manifester","tryAgain":"Forsøk igjen","untitled":"[uten tittel]","view":"Visning","viewWorkspaceConfiguration":"Vis konfigurasjon av arbeidsområde.","welcome":"Velkommen til Mirador","window":"Vindu: {{label}}","windowMenu":"Vindusvisning & miniatyrvisning","windowNavigation":"Vindusnavigasjon","windowPluginButtons":"Innstillinger","windowPluginMenu":"Vindusinnstillinger","workspace":"Arbeidsområde","workspaceFullScreen":"Fullskjermsvisning","workspaceMenu":"Innstillinger for arbeidsområdet","workspaceNavigation":"Navigasjon i arbeidsområdet","workspaceOptions":"Flere valg for arbeidsområdet","workspaceSelectionTitle":"Velg arbeidsområde-type","zoomIn":"Zoom inn","zoomOut":"Zoom ut","zoomReset":"Tilbakestill zoom"}}');const Nr=function(){var e={ar:hr,bg:_r,de:vr,en:gr,et:mr,fa:yr,fr:Or,it:Er,ja:xr,kr:Sr,lt:Cr,"nb-NO":Rr,nl:Ar,pl:Pr,"pt-BR":jr,sr:Ir,sv:Tr,vi:kr,"zh-CN":br,"zh-TW":wr},t=pr.createInstance();return t.use(R.r9).init({fallbackLng:"en",interpolation:{escapeValue:!1},lng:"en",resources:e}),t};var Dr=o(16840);function Mr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lr(n.key),n)}}function Lr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function zr(e,t,r){return t=Br(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wr()?Reflect.construct(t,r||[],Br(e).constructor):t.apply(e,r))}function Wr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wr=function(){return!!e})()}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Br(e)}function Fr(e,t){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fr(e,t)}var Hr=function(e){var t=e.dndManager,r=e.children;return!1===t?r:void 0===t?(0,y.jsx)(Q.Q,{backend:ee.U2,options:te.HTML5toTouch,children:r}):(0,y.jsx)(J.M.Provider,{value:t,children:r})},Ur=function(e){var t=e.children,r=function(){var e=(0,s.useState)(!1),t=e[0],r=e[1],n=(0,s.useRef)(null);(0,s.useEffect)((function(){var e=function(){r(k.fullscreenElement===n.current)};return k.addEventListener("fullscreenchange",e),function(){return k.removeEventListener("fullscreenchange",e)}}),[]);var o=(0,s.useCallback)((function(){return k.fullscreenElement?k.exitFullscreen().then((function(){return k.requestFullscreen(n.current)})):n.current?k.requestFullscreen(n.current):void 0}),[]),i=(0,s.useCallback)((function(){return k.fullscreenElement===n.current?k.exitFullscreen():Promise.resolve()}),[]);return(0,s.useMemo)((function(){return{active:t,enter:o,exit:i,node:n}}),[t,o,i])}();return(0,y.jsx)(_,{handle:r,children:(0,y.jsx)(Dr.A.Provider,{value:r,children:t})})},Vr=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=zr(this,t,[e])).i18n=Nr(),r.i18n.changeLanguage(e.language),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fr(e,t)}(t,e),r=t,(n=[{key:"componentDidUpdate",value:function(e){var t=this.props.language;e.language!==t&&this.i18n.changeLanguage(t)}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=t.theme,o=t.translations,i=t.dndManager,a=(0,ot.A)({key:"muirtl",stylisPlugins:[nt,tt]}),s=(0,ot.A)({key:"mui"});return Object.keys(o).forEach((function(t){e.i18n.addResourceBundle(t,"translation",o[t],!0,!0)})),(0,y.jsx)(Ur,{children:(0,y.jsx)(R.xC,{i18n:this.i18n,children:(0,y.jsx)(N.A,{injectFirst:!0,children:(0,y.jsx)(F.C,{value:"rtl"===n.direction?a:s,children:(0,y.jsx)(X,{theme:(0,Y.A)(n),children:(0,y.jsx)(Hr,{dndManager:i,children:r})})})})})})}}])&&Mr(r.prototype,n),o&&Mr(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);Vr.defaultProps={children:null,dndManager:void 0};var Gr=(0,x.Zz)((0,a.Ng)((function(e){return{language:(0,A.zj)(e).language,theme:(0,A.O4)(e),translations:(0,A.zj)(e).translations}})),(0,S.h)("AppProviders"));const qr=Gr(Vr);var Kr=o(40826);function $r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zr(n.key),n)}}function Zr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Xr(e,t,r){return t=Qr(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yr()?Reflect.construct(t,r||[],Qr(e).constructor):t.apply(e,r))}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yr=function(){return!!e})()}function Qr(e){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qr(e)}function Jr(e,t){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jr(e,t)}var en=(0,s.lazy)((function(){return Promise.resolve().then(o.bind(o,94555))})),tn=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Xr(this,t,[e])).areaRef=(0,s.createRef)(),r}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jr(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.dndManager,r=e.plugins;return(0,y.jsx)(O,{plugins:r,children:(0,y.jsx)(qr,{dndManager:t,children:(0,y.jsx)(Kr.A.Provider,{value:this.areaRef,children:(0,y.jsx)(s.Suspense,{fallback:(0,y.jsx)("div",{}),children:(0,y.jsx)(en,{areaRef:this.areaRef})})})})})}}])&&$r(r.prototype,n),o&&$r(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(s.Component);tn.defaultProps={dndManager:void 0,plugins:[]};const rn=tn;var nn=o(75735),on=o.n(nn),an=o(36634),sn=o.n(an),ln=o(37891),un=o.n(ln),cn=o(41927),fn=o.n(cn),dn=o(78204),pn=o.n(dn),hn=o(64398),vn=o.n(hn),gn=o(37337),mn=o.n(gn),yn=function(e){return[bn,wn,On,xn,Sn,An,Pn].every((function(t){return t(e)}))},bn=function(e){return pn()(e)},wn=function(e){var t=e.name;return un()(t)||sn()(t)},On=function(e){var t=e.mode,r=e.target;return un()(t)?un()(r):sn()(r)},xn=function(e){var t=e.mode;return un()(t)||["add","wrap"].some((function(e){return e===t}))},Sn=function(e){var t=e.mapStateToProps;return un()(t)||vn()(t)||fn()(t)},An=function(e){var t=e.mapDispatchToProps;return un()(t)||vn()(t)||fn()(t)||pn()(t)},Pn=function(e){var t=e.reducers;return un()(t)||pn()(t)&&mn()(t).every(fn())};function jn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function En(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(r),!0).forEach((function(t){In(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function In(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tn(e){return function(e){if(Array.isArray(e))return Cn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Cn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kn(e){var t=function(e){var t=[],r=[];return e.forEach((function(e){Array.isArray(e)?e.every((function(e){return yn(e)}))?r.push.apply(r,Tn(e)):t.push.apply(t,Tn(e)):yn(e)?r.push(e):t.push(e)})),{invalidPlugins:t,validPlugins:r}}(e),r=t.validPlugins;return function(e){e.forEach((function(e){return console.log("Mirador: Plugin ".concat(e.name," is not valid and was rejected."))}))}(t.invalidPlugins),r}function _n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}var Rn=_n(),Nn=function(e){return"@@redux-saga/"+e},Dn=Nn("CANCEL_PROMISE"),Mn=Nn("CHANNEL_END"),Ln=Nn("IO"),zn=Nn("MATCH"),Wn=Nn("MULTICAST"),Bn=Nn("SAGA_ACTION"),Fn=Nn("SELF_CANCELLATION"),Hn=Nn("TASK"),Un=Nn("TASK_CANCEL"),Vn=Nn("TERMINATE"),Gn=Nn("LOCATION"),qn=function(e){return null==e},Kn=function(e){return null!=e},$n=function(e){return"function"==typeof e},Zn=function(e){return"string"==typeof e},Xn=Array.isArray,Yn=function(e){return e&&$n(e.then)},Qn=function(e){return e&&$n(e.next)&&$n(e.throw)},Jn=function e(t){return t&&(Zn(t)||ro(t)||$n(t)||Xn(t)&&t.every(e))},eo=function(e){return e&&$n(e.take)&&$n(e.close)},to=function(e){return $n(e)&&e.hasOwnProperty("toString")},ro=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},no=function(e){return eo(e)&&e[Wn]};const oo=function(e,t){var r;void 0===t&&(t=!0);var n=new Promise((function(n){r=setTimeout(n,Math.min(2147483647,e),t)}));return n[Dn]=function(){clearTimeout(r)},n};var io=function(e){return function(){return e}}(!0),ao=function(){};var so=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var lo=function(e,t){(0,D.A)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(r){e[r]=t[r]}))};function uo(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}var co=function(e){throw e},fo=function(e){return{value:e,done:!0}};function po(e,t,r){void 0===t&&(t=co),void 0===r&&(r="iterator");var n={meta:{name:r},next:e,throw:t,return:fo,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(n[Symbol.iterator]=function(){return n}),n}function ho(e,t){var r=t.sagaStack;console.error(e),console.error(r)}var vo=function(e){return Array.apply(null,new Array(e))},go=function(e){return function(t){return e(Object.defineProperty(t,Bn,{value:!0}))}},mo=function(e){return e===Vn},yo=function(e){return e===Un},bo=function(e){return mo(e)||yo(e)};function wo(e,t){var r=Object.keys(e),n=r.length;var o,i=0,a=Xn(e)?vo(n):{},s={};return r.forEach((function(e){var r=function(r,s){o||(s||bo(r)?(t.cancel(),t(r,s)):(a[e]=r,++i===n&&(o=!0,t(a))))};r.cancel=ao,s[e]=r})),t.cancel=function(){o||(o=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Oo(e){return{name:e.name||"anonymous",location:xo(e)}}function xo(e){return e[Gn]}function So(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Ao(e,t){void 0===e&&(e=10);var r=new Array(e),n=0,o=0,i=0,a=function(t){r[o]=t,o=(o+1)%e,n++},s=function(){if(0!=n){var t=r[i];return r[i]=null,n--,i=(i+1)%e,t}},l=function(){for(var e=[];n;)e.push(s());return e};return{isEmpty:function(){return 0==n},put:function(s){var u;if(n<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:r[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,r=l(),n=r.length,o=r.length,i=0,r.length=u,e=u,a(s)}},take:s,flush:l}}var Po=function(e){return Ao(e,4)},jo="TAKE",Eo="PUT",Io="ALL",To="RACE",Co="CALL",ko="CPS",_o="FORK",Ro="JOIN",No="CANCEL",Do="SELECT",Mo="ACTION_CHANNEL",Lo="CANCELLED",zo="FLUSH",Wo="GET_CONTEXT",Bo="SET_CONTEXT",Fo=function(e,t){var r;return(r={})[Ln]=!0,r.combinator=!1,r.type=e,r.payload=t,r},Ho=function(e){return Fo(_o,(0,D.A)({},e.payload,{detached:!0}))};function Uo(e,t){return void 0===e&&(e="*"),Jn(e)?(Kn(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Fo(jo,{pattern:e})):no(e)&&Kn(t)&&Jn(t)?Fo(jo,{channel:e,pattern:t}):eo(e)?(Kn(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Fo(jo,{channel:e})):void 0}function Vo(e,t){return qn(t)&&(t=e,e=void 0),Fo(Eo,{channel:e,action:t})}function Go(e){var t=Fo(Io,e);return t.combinator=!0,t}function qo(e,t){var r,n=null;return $n(e)?r=e:(Xn(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&Zn(r)&&$n(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function Ko(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Fo(Co,qo(e,r))}function $o(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Fo(_o,qo(e,r))}function Zo(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Ho($o.apply(void 0,[e].concat(r)))}function Xo(e){void 0===e&&(e=so);for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Fo(Do,{selector:e,args:r})}var Yo=Ko.bind(null,oo);function Qo(){var e={};return e.promise=new Promise((function(t,r){e.resolve=t,e.reject=r})),e}const Jo=Qo;var ei=[],ti=0;function ri(e){try{ii(),e()}finally{ai()}}function ni(e){ei.push(e),ti||(ii(),si())}function oi(e){try{return ii(),e()}finally{si()}}function ii(){ti++}function ai(){ti--}function si(){var e;for(ai();!ti&&void 0!==(e=ei.shift());)ri(e)}var li=function(e){return function(t){return e.some((function(e){return pi(e)(t)}))}},ui=function(e){return function(t){return e(t)}},ci=function(e){return function(t){return t.type===String(e)}},fi=function(e){return function(t){return t.type===e}},di=function(){return io};function pi(e){var t="*"===e?di:Zn(e)?ci:Xn(e)?li:to(e)?ci:$n(e)?ui:ro(e)?fi:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var hi={type:Mn},vi=function(e){return e&&e.type===Mn};function gi(e){void 0===e&&(e=Po());var t=!1,r=[];return{take:function(n){t&&e.isEmpty()?n(hi):e.isEmpty()?(r.push(n),n.cancel=function(){uo(r,n)}):n(e.take())},put:function(n){if(!t){if(0===r.length)return e.put(n);r.shift()(n)}},flush:function(r){t&&e.isEmpty()?r(hi):r(e.flush())},close:function(){if(!t){t=!0;var e=r;r=[];for(var n=0,o=e.length;n<o;n++){(0,e[n])(hi)}}}}}function mi(){var e,t,r,n,o,i,a=(t=!1,n=r=[],o=function(){n===r&&(n=r.slice())},i=function(){t=!0;var e=r=n;n=[],e.forEach((function(e){e(hi)}))},(e={})[Wn]=!0,e.put=function(e){if(!t)if(vi(e))i();else for(var o=r=n,a=0,s=o.length;a<s;a++){var l=o[a];l[zn](e)&&(l.cancel(),l(e))}},e.take=function(e,r){var i,a;void 0===r&&(r=di),t?e(hi):(e[zn]=r,o(),n.push(e),e.cancel=(i=function(){o(),uo(n,e)},a=!1,function(){a||(a=!0,i())}))},e.close=i,e),s=a.put;return a.put=function(e){e[Bn]?s(e):ni((function(){s(e)}))},a}var yi=0,bi=1,wi=2,Oi=3;function xi(e,t){var r=e[Dn];$n(r)&&(t.cancel=r),e.then(t,(function(e){t(e,!0)}))}var Si,Ai=0,Pi=function(){return++Ai};function ji(e){e.isRunning()&&e.cancel()}var Ei=((Si={})[jo]=function(e,t,r){var n=t.channel,o=void 0===n?e.channel:n,i=t.pattern,a=t.maybe,s=function(e){e instanceof Error?r(e,!0):!vi(e)||a?r(e):r(Vn)};try{o.take(s,Kn(i)?pi(i):null)}catch(e){return void r(e,!0)}r.cancel=s.cancel},Si[Eo]=function(e,t,r){var n=t.channel,o=t.action,i=t.resolve;ni((function(){var t;try{t=(n?n.put:e.dispatch)(o)}catch(e){return void r(e,!0)}i&&Yn(t)?xi(t,r):r(t)}))},Si[Io]=function(e,t,r,n){var o=n.digestEffect,i=Ai,a=Object.keys(t);if(0!==a.length){var s=wo(t,r);a.forEach((function(e){o(t[e],i,s[e],e)}))}else r(Xn(t)?[]:{})},Si[To]=function(e,t,r,n){var o=n.digestEffect,i=Ai,a=Object.keys(t),s=Xn(t)?vo(a.length):{},l={},u=!1;a.forEach((function(e){var t=function(t,n){u||(n||bo(t)?(r.cancel(),r(t,n)):(r.cancel(),u=!0,s[e]=t,r(s)))};t.cancel=ao,l[e]=t})),r.cancel=function(){u||(u=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){u||o(t[e],i,l[e],e)}))},Si[Co]=function(e,t,r,n){var o=t.context,i=t.fn,a=t.args,s=n.task;try{var l=i.apply(o,a);if(Yn(l))return void xi(l,r);if(Qn(l))return void zi(e,l,s.context,Ai,Oo(i),!1,r);r(l)}catch(e){r(e,!0)}},Si[ko]=function(e,t,r){var n=t.context,o=t.fn,i=t.args;try{var a=function(e,t){qn(e)?r(t):r(e,!0)};o.apply(n,i.concat(a)),a.cancel&&(r.cancel=a.cancel)}catch(e){r(e,!0)}},Si[_o]=function(e,t,r,n){var o=t.context,i=t.fn,a=t.args,s=t.detached,l=n.task,u=function(e){var t=e.context,r=e.fn,n=e.args;try{var o=r.apply(t,n);if(Qn(o))return o;var i=!1;return po((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!Yn(o)})}))}catch(e){return po((function(){throw e}))}}({context:o,fn:i,args:a}),c=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Oo(t)}(u,i);oi((function(){var t=zi(e,u,l.context,Ai,c,s,void 0);s?r(t):t.isRunning()?(l.queue.addTask(t),r(t)):t.isAborted()?l.queue.abort(t.error()):r(t)}))},Si[Ro]=function(e,t,r,n){var o=n.task,i=function(e,t){if(e.isRunning()){var r={task:o,cb:t};t.cancel=function(){e.isRunning()&&uo(e.joiners,r)},e.joiners.push(r)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(Xn(t)){if(0===t.length)return void r([]);var a=wo(t,r);t.forEach((function(e,t){i(e,a[t])}))}else i(t,r)},Si[No]=function(e,t,r,n){var o=n.task;t===Fn?ji(o):Xn(t)?t.forEach(ji):ji(t),r()},Si[Do]=function(e,t,r){var n=t.selector,o=t.args;try{r(n.apply(void 0,[e.getState()].concat(o)))}catch(e){r(e,!0)}},Si[Mo]=function(e,t,r){var n=t.pattern,o=gi(t.buffer),i=pi(n),a=function t(r){vi(r)||e.channel.take(t,i),o.put(r)},s=o.close;o.close=function(){a.cancel(),s()},e.channel.take(a,i),r(o)},Si[Lo]=function(e,t,r,n){r(n.task.isCancelled())},Si[zo]=function(e,t,r){t.flush(r)},Si[Wo]=function(e,t,r,n){r(n.task.context[t])},Si[Bo]=function(e,t,r,n){var o=n.task;lo(o.context,t),r()},Si);function Ii(e,t){return e+"?"+t}function Ti(e){var t=e.name,r=e.location;return r?t+" "+Ii(r.fileName,r.lineNumber):t}function Ci(e){var t,r,n,o=(t=function(e){return e.cancelledTasks},r=e,(n=[]).concat.apply(n,r.map(t)));return o.length?["Tasks cancelled due to error:"].concat(o).join("\n"):""}var ki=null,_i=[],Ri=function(e){e.crashedEffect=ki,_i.push(e)},Ni=function(){ki=null,_i.length=0},Di=function(e){ki=e},Mi=function(){var e=_i[0],t=_i.slice(1),r=e.crashedEffect?function(e){var t=xo(e);return t?t.code+" "+Ii(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+Ti(e.meta)+(r?" \n when executing effect "+r:"")].concat(t.map((function(e){return" created by "+Ti(e.meta)})),[Ci(_i)]).join("\n")};function Li(e,t,r,n,o,i,a){var s;void 0===a&&(a=ao);var l,u,c=yi,f=null,d=[],p=Object.create(r),h=function(e,t,r){var n,o=[],i=!1;function a(e){t(),l(),r(e,!0)}function s(t){o.push(t),t.cont=function(s,l){i||(uo(o,t),t.cont=ao,l?a(s):(t===e&&(n=s),o.length||(i=!0,r(n))))}}function l(){i||(i=!0,o.forEach((function(e){e.cont=ao,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return o}}}(t,(function(){d.push.apply(d,h.getTasks().map((function(e){return e.meta.name})))}),v);function v(t,r){if(r){if(c=wi,Ri({meta:o,cancelledTasks:d}),g.isRoot){var n=Mi();Ni(),e.onError(t,{sagaStack:n})}u=t,f&&f.reject(t)}else t===Un?c=bi:c!==bi&&(c=Oi),l=t,f&&f.resolve(t);g.cont(t,r),g.joiners.forEach((function(e){e.cb(t,r)})),g.joiners=null}var g=((s={})[Hn]=!0,s.id=n,s.meta=o,s.isRoot=i,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){c===yi&&(c=bi,h.cancelAll(),v(Un,!1))},s.cont=a,s.end=v,s.setContext=function(e){lo(p,e)},s.toPromise=function(){return f||(f=Jo(),c===wi?f.reject(u):c!==yi&&f.resolve(l)),f.promise},s.isRunning=function(){return c===yi},s.isCancelled=function(){return c===bi||c===yi&&t.status===bi},s.isAborted=function(){return c===wi},s.result=function(){return l},s.error=function(){return u},s);return g}function zi(e,t,r,n,o,i,a){var s=e.finalizeRunEffect((function(t,r,n){if(Yn(t))xi(t,n);else if(Qn(t))zi(e,t,u.context,r,o,!1,n);else if(t&&t[Ln]){(0,Ei[t.type])(e,t.payload,n,c)}else n(t)}));f.cancel=ao;var l={meta:o,cancel:function(){l.status===yi&&(l.status=bi,f(Un))},status:yi},u=Li(e,l,r,n,o,i,a),c={task:u,digestEffect:d};return a&&(a.cancel=u.cancel),f(),u;function f(e,r){try{var o;r?(o=t.throw(e),Ni()):yo(e)?(l.status=bi,f.cancel(),o=$n(t.return)?t.return(Un):{done:!0,value:Un}):o=mo(e)?$n(t.return)?t.return():{done:!0}:t.next(e),o.done?(l.status!==bi&&(l.status=Oi),l.cont(o.value)):d(o.value,n,f)}catch(e){if(l.status===bi)throw e;l.status=wi,l.cont(e,!0)}}function d(t,r,n,o){void 0===o&&(o="");var i,a=Pi();function l(r,o){i||(i=!0,n.cancel=ao,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,r):e.sagaMonitor.effectResolved(a,r)),o&&Di(t),n(r,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:r,label:o,effect:t}),l.cancel=ao,n.cancel=function(){i||(i=!0,l.cancel(),l.cancel=ao,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Wi(e,t){var r=e.channel,n=void 0===r?mi():r,o=e.dispatch,i=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,u=e.effectMiddlewares,c=e.onError,f=void 0===c?ho:c;for(var d=arguments.length,p=new Array(d>2?d-2:0),h=2;h<d;h++)p[h-2]=arguments[h];var v=t.apply(void 0,p);var g,m=Pi();if(l&&(l.rootSagaStarted=l.rootSagaStarted||ao,l.effectTriggered=l.effectTriggered||ao,l.effectResolved=l.effectResolved||ao,l.effectRejected=l.effectRejected||ao,l.effectCancelled=l.effectCancelled||ao,l.actionDispatched=l.actionDispatched||ao,l.rootSagaStarted({effectId:m,saga:t,args:p})),u){var y=So.apply(void 0,u);g=function(e){return function(t,r,n){return y((function(t){return e(t,r,n)}))(t)}}}else g=so;var b={channel:n,dispatch:go(o),getState:i,sagaMonitor:l,onError:f,finalizeRunEffect:g};return oi((function(){var e=zi(b,v,s,m,Oo(t),!0,void 0);return l&&l.effectResolved(m,e),e}))}const Bi=function(e){var t,r=void 0===e?{}:e,n=r.context,o=void 0===n?{}:n,i=r.channel,a=void 0===i?mi():i,s=r.sagaMonitor,l=(0,M.A)(r,["context","channel","sagaMonitor"]);function u(e){var r=e.getState,n=e.dispatch;return t=Wi.bind(null,(0,D.A)({},l,{context:o,channel:a,dispatch:n,getState:r,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var r=e(t);return a.put(t),r}}}return u.run=function(){return t.apply(void 0,arguments)},u.setContext=function(e){lo(o,e)},u},Fi=Bi;var Hi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0!==t.length)return"object"==typeof t[0]?x.Zz:x.Zz.apply(void 0,t)},Ui=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,o(73966)),Vi=o.n(Ui),Gi=o(99359);function qi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ki(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(r),!0).forEach((function(t){$i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $i(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.RESOLVE_AUTHENTICATION_REQUEST:return Ki(Ki({},e),{},$i({},t.tokenServiceId,{authId:t.id,id:t.tokenServiceId,isFetching:!0}));case Gi.A.REQUEST_ACCESS_TOKEN:return Ki(Ki({},e),{},$i({},t.serviceId,{authId:t.authId,id:t.serviceId,isFetching:!0}));case Gi.A.RECEIVE_ACCESS_TOKEN:return Ki(Ki({},e),{},$i({},t.serviceId,Ki(Ki({},e[t.serviceId]),{},{isFetching:!1,json:t.json})));case Gi.A.RECEIVE_ACCESS_TOKEN_FAILURE:return Ki(Ki({},e),{},$i({},t.serviceId,Ki(Ki({},e[t.serviceId]),{},{error:t.error,isFetching:!1})));case Gi.A.RESET_AUTHENTICATION_STATE:return Vi()(e,t.tokenServiceId);case Gi.A.RECEIVE_INFO_RESPONSE:return t.tokenServiceId?e[t.tokenServiceId].success?e:Ki(Ki({},e),{},$i({},t.tokenServiceId,Ki(Ki({},e[t.tokenServiceId]),{},{success:!0}))):e;default:return e}}function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(r),!0).forEach((function(t){Qi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qi(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ji=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.REQUEST_ANNOTATION:return Yi(Yi({},e),{},Qi({},t.targetId,Yi(Yi({},e[t.targetId]),{},Qi({},t.annotationId,{id:t.annotationId,isFetching:!0}))));case Gi.A.RECEIVE_ANNOTATION:return Yi(Yi({},e),{},Qi({},t.targetId,Yi(Yi({},e[t.targetId]),{},Qi({},t.annotationId,{id:t.annotationId,isFetching:!1,json:t.annotationJson}))));case Gi.A.RECEIVE_ANNOTATION_FAILURE:return Yi(Yi({},e),{},Qi({},t.targetId,Yi(Yi({},e[t.targetId]),{},Qi({},t.annotationId,{error:t.error,id:t.annotationId,isFetching:!1}))));case Gi.A.IMPORT_MIRADOR_STATE:return{};default:return e}};function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(r),!0).forEach((function(t){ra(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ra(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var na=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.ADD_AUTHENTICATION_REQUEST:return ta(ta({},e),{},ra({},t.id,{id:t.id,isFetching:!0,profile:t.profile,windowId:t.windowId}));case Gi.A.RESOLVE_AUTHENTICATION_REQUEST:return ta(ta({},e),{},ra({},t.id,ta(ta({},e[t.id]),{},{isFetching:!1,ok:t.ok})));case Gi.A.RECEIVE_ACCESS_TOKEN:return t.authId?ta(ta({},e),{},ra({},t.authId,ta(ta({},e[t.authId]),{},{ok:!0}))):e;case Gi.A.RESET_AUTHENTICATION_STATE:return Vi()(e,t.id);default:return e}};function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ia(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(r),!0).forEach((function(t){aa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function aa(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sa(e){return function(e){if(Array.isArray(e))return la(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return la(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return la(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function la(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ua=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.ADD_RESOURCE:return e.some((function(e){return e.manifestId===t.manifestId}))?e:[ia({manifestId:t.manifestId},t.payload)].concat(sa(e));case Gi.A.ADD_WINDOW:return e.some((function(e){return e.manifestId===t.window.manifestId}))?e:[{manifestId:t.window.manifestId}].concat(sa(e));case Gi.A.UPDATE_WINDOW:return t.payload.manifestId?e.some((function(e){return e.manifestId===t.payload.manifestId}))?e:[{manifestId:t.payload.manifestId}].concat(sa(e)):e;case Gi.A.REMOVE_RESOURCE:return e.filter((function(e){return e.manifestId!==t.manifestId}));case Gi.A.IMPORT_CONFIG:return t.config.catalog||[];case Gi.A.IMPORT_MIRADOR_STATE:return t.state.catalog||[];default:return e}},ca=o(1082),fa=o.n(ca),da=o(68829),pa=o.n(da);function ha(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function va(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(r),!0).forEach((function(t){ga(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ha(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ga(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ma(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.ADD_COMPANION_WINDOW:return fa()([t.id],t.payload,e);case Gi.A.ADD_WINDOW:return va(va({},e),(t.companionWindows||[]).reduce((function(r,n){return r[n.id]=va(va(va({},e[n.id]),n),{},{windowId:t.id}),r}),{}));case Gi.A.REMOVE_WINDOW:return Object.keys(e).reduce((function(r,n){return e[n].windowId!==t.windowId&&(r[n]=e[n]),r}),{});case Gi.A.UPDATE_COMPANION_WINDOW:return pa()([t.id],(function(e){return va(va({},e||{}),t.payload)}),e);case Gi.A.REMOVE_COMPANION_WINDOW:return Vi()(e,t.id);case Gi.A.IMPORT_MIRADOR_STATE:return t.state.companionWindows||[];case Gi.A.TOGGLE_TOC_NODE:return pa()([t.id,"tocNodes"],(function(e){return va(va({},e||{}),t.payload)}),e);default:return e}}var ya=o(12497);function ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wa(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Oa=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(r),!0).forEach((function(t){wa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ba(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},ya.A),xa=function(e,t,r){return t},Sa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oa,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.UPDATE_CONFIG:case Gi.A.IMPORT_CONFIG:return on()(e,t.config,{arrayMerge:xa});case Gi.A.SET_CONFIG:return t.config;case Gi.A.IMPORT_MIRADOR_STATE:return t.state.config||{};default:return e}};function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach((function(t){ja(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ja(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ea=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.ADD_WINDOW:return Pa(Pa({},e),{},ja({},t.window.id,Pa({windowId:t.window.id},t.elasticLayout)));case Gi.A.UPDATE_ELASTIC_WINDOW_LAYOUT:return pa()([t.windowId],(function(e){return Pa(Pa({},e||{}),t.payload)}),e);case Gi.A.REMOVE_WINDOW:return Vi()(e,t.windowId);case Gi.A.IMPORT_MIRADOR_STATE:return t.state.elasticLayout||{};default:return e}},Ia=o(77179),Ta=o.n(Ia);function Ca(e){return function(e){if(Array.isArray(e))return ka(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ka(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ka(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ra(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(r),!0).forEach((function(t){Na(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Na(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Da={items:[]},Ma=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Da,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Gi.A.ADD_ERROR:return Ra(Ra({},t),{},Na(Na({},r.id,{id:r.id,message:r.message}),"items",[].concat(Ca(t.items),[r.id])));case Gi.A.RECEIVE_INFO_RESPONSE_FAILURE:return Ra(Ra({},t),{},Na(Na({},r.infoId,{id:r.infoId,message:r.error}),"items",[].concat(Ca(t.items),[r.infoId])));case Gi.A.RECEIVE_SEARCH_FAILURE:return Ra(Ra({},t),{},Na(Na({},r.searchId,{id:r.searchId,message:r.error}),"items",[].concat(Ca(t.items),[r.searchId])));case Gi.A.REMOVE_ERROR:return e=Object.keys(t).reduce((function(e,n){return n!==r.id&&(e[n]=t[n]),e}),{}),e.items=Ta()(e.items,r.id),e;case Gi.A.IMPORT_MIRADOR_STATE:return Da;default:return t}};function La(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?La(Object(r),!0).forEach((function(t){Wa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):La(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wa(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ba=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.REQUEST_INFO_RESPONSE:return za(za({},e),{},Wa({},t.infoId,{id:t.infoId,isFetching:!0}));case Gi.A.RECEIVE_INFO_RESPONSE:return za(za({},e),{},Wa({},t.infoId,{degraded:!1,id:t.infoId,isFetching:!1,json:t.infoJson,tokenServiceId:t.tokenServiceId}));case Gi.A.RECEIVE_DEGRADED_INFO_RESPONSE:return za(za({},e),{},Wa({},t.infoId,{degraded:!0,id:t.infoId,isFetching:!1,json:t.infoJson,tokenServiceId:t.tokenServiceId}));case Gi.A.RECEIVE_INFO_RESPONSE_FAILURE:return za(za({},e),{},Wa({},t.infoId,{error:t.error,id:t.infoId,isFetching:!1,tokenServiceId:t.tokenServiceId}));case Gi.A.REMOVE_INFO_RESPONSE:return Object.keys(e).reduce((function(r,n){return n!==t.infoId&&(r[n]=e[n]),r}),{});case Gi.A.IMPORT_MIRADOR_STATE:return{};default:return e}};function Fa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ha(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fa(Object(r),!0).forEach((function(t){Ua(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ua(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Va=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.UPDATE_LAYERS:return Ha(Ha({},e),{},Ua({},t.windowId,Ha(Ha({},e[t.windowId]),{},Ua({},t.canvasId,on()((e[t.windowId]||{})[t.canvasId]||{},t.payload)))));case Gi.A.REMOVE_WINDOW:return Vi()(e,[t.windowId]);default:return e}};function Ga(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(r),!0).forEach((function(t){Ka(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ga(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ka(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.REQUEST_MANIFEST:return qa(Ka({},t.manifestId,qa(qa(qa({},e[t.manifestId]),t.properties),{},{id:t.manifestId})),Vi()(e,t.manifestId));case Gi.A.RECEIVE_MANIFEST:return qa(qa({},e),{},Ka({},t.manifestId,qa(qa({},e[t.manifestId]),{},{error:null,id:t.manifestId,isFetching:!1,json:t.manifestJson})));case Gi.A.RECEIVE_MANIFEST_FAILURE:return qa(qa({},e),{},Ka({},t.manifestId,qa(qa({},e[t.manifestId]),{},{error:t.error,id:t.manifestId,isFetching:!1})));case Gi.A.REMOVE_MANIFEST:return Object.keys(e).reduce((function(r,n){return n!==t.manifestId&&(r[n]=e[n]),r}),{});case Gi.A.IMPORT_MIRADOR_STATE:return t.state.manifests||{};default:return e}},Za=o(94881),Xa=o.n(Za);function Ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(r),!0).forEach((function(t){Ja(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ja(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var es=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=(e[t.windowId]||{})[t.companionWindowId]||{};switch(t.type){case Gi.A.REQUEST_SEARCH:return r.query!==t.query?Qa(Qa({},e),{},Ja({},t.windowId,Qa(Qa({},e[t.windowId]),{},Ja({},t.companionWindowId,Qa(Qa({},r),{},{data:Ja({},t.searchId,{isFetching:!0}),query:t.query,selectedContentSearchAnnotation:[]}))))):Qa(Qa({},e),{},Ja({},t.windowId,Qa(Qa({},e[t.windowId]),{},Ja({},t.companionWindowId,Qa(Qa({},r),{},{data:Qa(Qa({},r.data),{},Ja({},t.searchId,{isFetching:!0}))})))));case Gi.A.RECEIVE_SEARCH:return Qa(Qa({},e),{},Ja({},t.windowId,Qa(Qa({},e[t.windowId]),{},Ja({},t.companionWindowId,Qa(Qa({},r),{},{data:Qa(Qa({},r.data),{},Ja({},t.searchId,{isFetching:!1,json:t.searchJson}))})))));case Gi.A.RECEIVE_SEARCH_FAILURE:return Qa(Qa({},e),{},Ja({},t.windowId,Qa(Qa({},e[t.windowId]),{},Ja({},t.companionWindowId,Qa(Qa({},r),{},{data:Qa(Qa({},r.data),{},Ja({},t.searchId,{error:t.error,isFetching:!1}))})))));case Gi.A.REMOVE_SEARCH:return Qa(Qa({},e),{},Ja({},t.windowId,Object.keys(e[t.windowId]).reduce((function(r,n){return n!==t.companionWindowId&&(r[n]=e[t.windowId][n]),r}),{})));case Gi.A.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:return Qa(Qa({},e),{},Ja({},t.windowId,Qa(Qa({},e[t.windowId]),{},Ja({},t.companionWindowId,Qa(Qa({},r),{},{selectedContentSearchAnnotationIds:t.annotationIds})))));case Gi.A.SELECT_ANNOTATION:return e[t.windowId]?Qa(Qa({},e),{},Ja({},t.windowId,Object.keys(e[t.windowId]).reduce((function(r,n){var o=e[t.windowId][n],i=o.data&&Object.values(o.data).filter((function(e){return e.json&&e.json.resources})).some((function(e){return Xa()([e.json.resources]).some((function(e){return e["@id"]===t.annotationId}))}));return r[n]=i?Qa(Qa({},o),{},{selectedContentSearchAnnotationIds:[t.annotationId]}):o,r}),{}))):e;case Gi.A.IMPORT_MIRADOR_STATE:return{};case Gi.A.REMOVE_WINDOW:return Vi()(e,t.windowId);case Gi.A.REMOVE_COMPANION_WINDOW:return e[t.windowId]?Qa(Qa({},e),{},Ja({},t.windowId,Qa({},Vi()(e[t.windowId],t.id)))):e;default:return e}};function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(r),!0).forEach((function(t){ns(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ts(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ns(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var os=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.UPDATE_VIEWPORT:return rs(rs({},e),{},ns({},t.windowId,rs(rs({},e[t.windowId]),t.payload)));case Gi.A.REMOVE_WINDOW:return Vi()(e,t.windowId);case Gi.A.SET_WINDOW_VIEW_TYPE:return fa()([t.windowId],null,e);case Gi.A.SET_CANVAS:return t.preserveViewport?e:fa()([t.windowId],null,e);case Gi.A.IMPORT_MIRADOR_STATE:return t.state.viewers||{};default:return e}};function is(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function as(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?is(Object(r),!0).forEach((function(t){ss(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ss(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ls=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gi.A.ADD_WINDOW:return as(as({},e),{},ss({},t.window.id,t.window));case Gi.A.MAXIMIZE_WINDOW:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{maximized:!0})));case Gi.A.MINIMIZE_WINDOW:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{maximized:!1})));case Gi.A.UPDATE_WINDOW:return pa()([t.id],(function(e){return as(as({},e||{}),t.payload)}),e);case Gi.A.REMOVE_WINDOW:return Vi()(e,[t.windowId]);case Gi.A.TOGGLE_WINDOW_SIDE_BAR:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{sideBarOpen:!e[t.windowId].sideBarOpen})));case Gi.A.SET_WINDOW_VIEW_TYPE:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{view:t.viewType})));case Gi.A.UPDATE_WINDOW_POSITION:return as(as({},e),{},ss({},t.payload.windowId,as(as({},e[t.payload.windowId]),{},{x:t.payload.position.x,y:t.payload.position.y})));case Gi.A.SET_WINDOW_SIZE:return as(as({},e),{},ss({},t.payload.windowId,as(as({},e[t.payload.windowId]),{},{height:t.payload.size.height,width:t.payload.size.width,x:t.payload.size.x,y:t.payload.size.y})));case Gi.A.SET_CANVAS:return e[t.windowId]?pa()([t.windowId],(function(e){return as(as({},e||{}),{},{canvasId:t.canvasId,visibleCanvases:t.visibleCanvases||[]})}),e):e;case Gi.A.ADD_COMPANION_WINDOW:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{companionWindowIds:e[t.windowId].companionWindowIds.concat([t.id])},"left"===t.payload.position?{companionAreaOpen:!0,sideBarPanel:t.payload.content}:{})));case Gi.A.UPDATE_COMPANION_WINDOW:return"left"!==t.payload.position?e:as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{companionAreaOpen:!0})));case Gi.A.REMOVE_COMPANION_WINDOW:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{companionWindowIds:e[t.windowId].companionWindowIds.filter((function(e){return e!==t.id}))})));case Gi.A.SELECT_ANNOTATION:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{selectedAnnotationId:t.annotationId})));case Gi.A.DESELECT_ANNOTATION:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{selectedAnnotationId:void 0})));case Gi.A.HOVER_ANNOTATION:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{hoveredAnnotationIds:t.annotationIds})));case Gi.A.TOGGLE_ANNOTATION_DISPLAY:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{highlightAllAnnotations:!e[t.windowId].highlightAllAnnotations})));case Gi.A.IMPORT_MIRADOR_STATE:return t.state.windows||[];case Gi.A.REQUEST_SEARCH:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{suggestedSearches:void 0})));case Gi.A.SHOW_COLLECTION_DIALOG:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{collectionDialogOn:!0,collectionManifestId:t.manifestId,collectionPath:t.collectionPath})));case Gi.A.HIDE_COLLECTION_DIALOG:return as(as({},e),{},ss({},t.windowId,as(as({},e[t.windowId]),{},{collectionDialogOn:!1})));default:return e}};function us(e){return function(e){if(Array.isArray(e))return cs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ds(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(r),!0).forEach((function(t){ps(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ps(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hs=function(){var e,t,r,n,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ds(ds({},ya.A.workspace),{},{windowIds:[]}),a=arguments.length>1?arguments[1]:void 0;switch(a.type){case Gi.A.UPDATE_WORKSPACE:return ds(ds({},i),a.config);case Gi.A.FOCUS_WINDOW:return ds(ds({},i),{},{focusedWindowId:a.windowId,viewportPosition:ds(ds({},i.viewportPosition),a.position)});case Gi.A.ADD_WINDOW:return ds(ds({},i),{},{focusedWindowId:a.window.id,windowIds:[].concat(us(i.windowIds||[]),[a.window.id])});case Gi.A.REMOVE_WINDOW:return r=(i.windowIds||[]).filter((function(e){return e!==a.windowId})),ds(ds({},i),{},{focusedWindowId:a.windowId===i.focusedWindowId?r[r.length-1]:i.focusedWindowId,windowIds:r});case Gi.A.SET_WORKSPACE_FULLSCREEN:return ds(ds({},i),{},{isFullscreenEnabled:a.isFullscreenEnabled});case Gi.A.TOGGLE_ZOOM_CONTROLS:return ds(ds({},i),{},{showZoomControls:a.showZoomControls});case Gi.A.UPDATE_WORKSPACE_MOSAIC_LAYOUT:return ds(ds({},i),{},{layout:a.layout});case Gi.A.SET_WORKSPACE_ADD_VISIBILITY:return ds(ds({},i),{},{isWorkspaceAddVisible:a.isWorkspaceAddVisible});case Gi.A.SET_WORKSPACE_VIEWPORT_POSITION:return e={},!function(e){return void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height}(t=ds(ds({},i.viewportPosition),a.payload.position))||(n={height:i.height,width:i.width,x:0,y:0},(o=t).x-o.width/2>n.x-n.width/2&&o.y-o.height/2>n.y-n.height/2&&o.x+o.width/2<n.x+n.width/2&&o.y+o.height/2<n.y+n.height/2)||(e={height:2*i.height,width:2*i.width}),ds(ds(ds({},i),e),{},{viewportPosition:t});case Gi.A.SET_CONFIG:case Gi.A.IMPORT_CONFIG:case Gi.A.UPDATE_CONFIG:return ds(ds({},i),a.config.workspace);case Gi.A.IMPORT_MIRADOR_STATE:return a.state.workspace||{};case Gi.A.TOGGLE_DRAGGING:return ds(ds({},i),{},{draggingEnabled:!i.draggingEnabled});default:return i}};function vs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gs(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ms(e){return(0,x.HY)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vs(Object(r),!0).forEach((function(t){gs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({accessTokens:Zi,annotations:Ji,auth:na,catalog:ua,companionWindows:ma,config:Sa,elasticLayout:Ea,errors:Ma,infoResponses:Ba,layers:Va,manifests:$a,searches:es,viewers:os,windows:ls,workspace:hs},e))}var ys=function(e){return{done:!0,value:e}},bs={};function ws(e){return eo(e)?"channel":to(e)?String(e):$n(e)?e.name:String(e)}function Os(e,t,r){var n,o,i,a=t;function s(t,r){if(a===bs)return ys(t);if(r&&!o)throw a=bs,r;n&&n(t);var s=r?e[o](r):e[a]();return a=s.nextState,i=s.effect,n=s.stateUpdater,o=s.errorState,a===bs?ys(t):i}return po(s,(function(e){return s(null,e)}),r)}function xs(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i,a={done:!1,value:Uo(e)},s=function(e){return i=e};return Os({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:$o.apply(void 0,[t].concat(n,[e]))})};var e}},"q1","takeEvery("+ws(e)+", "+t.name+")")}function Ss(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return $o.apply(void 0,[xs,e,t].concat(n))}var As=o(26836),Ps=o(33415),js=o(2913),Es=o.n(js),Is=o(46316),Ts=o(65218),Cs=o(14369),ks=o(24580),_s=o(79452),Rs=o(75685),Ns=o(47640),Ds=Fs().mark(qs),Ms=Fs().mark(Ys),Ls=Fs().mark(Qs);function zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ws(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(r),!0).forEach((function(t){Bs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bs(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fs(){Fs=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:j(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function m(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(k([])));x&&x!==r&&n.call(x,a)&&(w=x);var S=b.prototype=m.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,s){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Hs(e,t,r){var n=r.success,o=r.degraded,i=r.failure;return fetch(e,t).then((function(e){return e.json().then((function(t){return 401===e.status?(o||n)({json:t,response:e}):e.ok?n({json:t,response:e}):i({error:e.statusText,json:t,response:e})})).catch((function(t){return i({error:t,response:e})}))})).catch((function(e){return i({error:e})}))}function Us(e,t,r){var n=r.success,o=r.degraded,i=r.failure;return Fs().mark((function r(){var a,s,l,u,c,f,d;return Fs().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Xo(A.lT);case 2:return a=r.sent,s=a.preprocessors,l=void 0===s?[]:s,u=a.postprocessors,c=void 0===u?[]:u,r.prev=7,f=l.reduce((function(t,r){return r(e,t)||t}),t),r.next=11,Ko(Hs,e,f,{degraded:o,failure:i,success:n});case 11:return d=r.sent,d=c.reduce((function(t,r){return r(e,t)||t}),d),r.abrupt("return",d);case 16:return r.prev=16,r.t0=r.catch(7),r.abrupt("return",i({error:r.t0}));case 19:case"end":return r.stop()}}),r,null,[[7,16]])}))()}function Vs(e,t,r,n){var o=n.degraded,i=n.failure,a=n.success;return Fs().mark((function n(){var s,l,u,c,f,d,p,h,v;return Fs().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=Ws({},r),!t){n.next=7;break}return n.next=4,Ko(qs,t);case 4:u=n.sent,l=u&&u.id,u&&u.json&&(s.headers=Ws({Authorization:"Bearer ".concat(u.json.accessToken)},r.headers));case 7:return n.next=9,Ko(Us,e,s,{failure:function(e){return e},success:function(e){return e}});case 9:if(c=n.sent,f=c.error,d=c.json,p=c.response,!f){n.next=17;break}return n.next=16,Vo(i({error:f,json:d,response:p,tokenServiceId:l}));case 16:return n.abrupt("return");case 17:if(h=d["@id"]||d.id,!p.ok){n.next=25;break}if(Es()(h,{stripAuthentication:!1})!==Es()(e.replace(/info\.json$/,""),{stripAuthentication:!1})){n.next=23;break}return n.next=22,Vo(a({json:d,response:p,tokenServiceId:l}));case 22:return n.abrupt("return");case 23:n.next=29;break;case 25:if(401===p.status){n.next=29;break}return n.next=28,Vo(i({error:f,json:d,response:p,tokenServiceId:l}));case 28:return n.abrupt("return");case 29:return n.next=31,Ko(qs,d);case 31:if(!(v=n.sent)||v.id===l){n.next=36;break}return n.next=35,Ko(Vs,e,d,r,{degraded:o,failure:i,success:a});case 35:return n.abrupt("return");case 36:return n.next=38,Vo((o||a)({json:d,response:p,tokenServiceId:l}));case 38:case"end":return n.stop()}}),n)}))()}function Gs(e){var t=e.manifestId;return Fs().mark((function e(){var r,n;return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={failure:function(e){var r=e.error;e.json,e.response;return(0,Is.ns)(t,"object"==typeof r?String(r):r)},success:function(e){var r=e.json;e.response;return(0,Is.Dc)(t,r)}},e.next=3,Ko(Us,t,{},r);case 3:return n=e.sent,e.next=6,Vo(n);case 6:case"end":return e.stop()}}),e)}))()}function qs(e){var t,r,n,o,i,a,s;return Fs().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=e&&e.__jsonld?e:Ws(Ws({},e),{},{options:{}}),0!==(r=Ps.Utils.getServices(t).filter((function(e){return e.getProfile().match(/http:\/\/iiif.io\/api\/auth\//)}))).length){l.next=4;break}return l.abrupt("return",void 0);case 4:return l.next=6,Xo(_s.X8);case 6:if(n=l.sent){l.next=9;break}return l.abrupt("return",void 0);case 9:o=0;case 10:if(!(o<r.length)){l.next=19;break}if(i=r[o],a=Ps.Utils.getService(i,"http://iiif.io/api/auth/1/token")||Ps.Utils.getService(i,"http://iiif.io/api/auth/0/token"),!(s=a&&n[a.id])||!s.json){l.next=16;break}return l.abrupt("return",s);case 16:o+=1,l.next=10;break;case 19:return l.abrupt("return",void 0);case 20:case"end":return l.stop()}}),Ds)}function Ks(e){var t=e.imageResource,r=e.infoId,n=e.windowId;return Fs().mark((function e(){var o,i;return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t){e.next=5;break}return e.next=4,Xo(Rs.E_,{infoId:r});case 4:o=e.sent;case 5:return i={degraded:function(e){var t=e.json,o=e.response,i=e.tokenServiceId;return(0,Ts.dv)(r,t,o.ok,i,n)},failure:function(e){var t=e.error,n=(e.json,e.response,e.tokenServiceId);return(0,Ts.P7)(r,t,n)},success:function(e){var t=e.json,n=e.response,o=e.tokenServiceId;return(0,Ts.xO)(r,t,n.ok,o)}},e.next=8,Ko(Vs,"".concat(r.replace(/\/$/,""),"/info.json"),o,{},i);case 8:case"end":return e.stop()}}),e)}))()}function $s(e){var t=e.windowId,r=e.companionWindowId,n=(e.query,e.searchId);return Fs().mark((function e(){var o,i;return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={failure:function(e){var o=e.error;e.json,e.response;return(0,Cs.ae)(t,r,n,o)},success:function(e){var o=e.json;e.response;return(0,Cs.md)(t,r,n,o)}},e.next=3,Ko(Us,n,{},o);case 3:return i=e.sent,e.next=6,Vo(i);case 6:case"end":return e.stop()}}),e)}))()}function Zs(e){var t=e.targetId,r=e.annotationId;return Fs().mark((function e(){var n,o;return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={failure:function(e){var n=e.error;e.json,e.response;return(0,ks.tf)(t,r,n)},success:function(e){var n=e.json;e.response;return(0,ks.n_)(t,r,n)}},e.next=3,Ko(Us,r,{},n);case 3:return o=e.sent,e.next=6,Vo(o);case 6:case"end":return e.stop()}}),e)}))()}function Xs(e){var t=e.manifestId,r=e.manifestJson;return Fs().mark((function e(){return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=4;break}return e.next=3,Vo((0,Is.Dc)(t,r));case 3:return e.abrupt("return");case 4:if(t){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,Xo(Ns.Rv)||{};case 8:if(e.sent[t]){e.next=11;break}return e.delegateYield(Gs({manifestId:t}),"t0",11);case 11:case"end":return e.stop()}}),e)}))()}function Ys(){var e,t,r,n=arguments;return Fs().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Xo(Ns.Rv);case 2:e=o.sent,t=0;case 4:if(!(t<n.length)){o.next=12;break}if(e[r=t<0||n.length<=t?void 0:n[t]]){o.next=9;break}return o.next=9,Ko(Gs,{manifestId:r});case 9:t+=1,o.next=4;break;case 12:case"end":return o.stop()}}),Ms)}function Qs(){return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Go([Ss(Gi.A.REQUEST_MANIFEST,Gs),Ss(Gi.A.REQUEST_INFO_RESPONSE,Ks),Ss(Gi.A.REQUEST_SEARCH,$s),Ss(Gi.A.REQUEST_ANNOTATION,Zs),Ss(Gi.A.ADD_RESOURCE,Xs)]);case 2:case"end":return e.stop()}}),Ls)}var Js=o(43418),el=o(11879),tl=o(79189),rl=o(92013),nl=o(80300),ol=o(26678),il=o(60141),al=o(65174),sl=o(33793),ll=o(25661);function ul(){ul=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:j(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function m(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(k([])));x&&x!==r&&n.call(x,a)&&(w=x);var S=b.prototype=m.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,s){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var cl=ul().mark(bl),fl=ul().mark(wl),dl=ul().mark(xl),pl=ul().mark(Sl),hl=ul().mark(Al),vl=ul().mark(_l),gl=ul().mark(Rl);function ml(e){return function(e){if(Array.isArray(e))return yl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bl(e){var t,r,n,o;return ul().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.payload||e.window,r=t.collectionPath,n=t.id,o=t.manifestId){i.next=3;break}return i.abrupt("return");case 3:if(!e.manifest){i.next=8;break}return i.next=6,Vo((0,Is.Dc)(o,e.manifest));case 6:i.next=10;break;case 8:return i.next=10,Ko.apply(void 0,[Ys,o].concat(ml(r||[])));case 10:return i.next=12,Ko(Sl,e);case 12:return i.next=14,Ko(Al,e);case 14:if(r){i.next=17;break}return i.next=17,Ko(Ol,{manifestId:o,windowId:e.id||e.window.id});case 17:return i.next=19,Ko(_l,o,n);case 19:case"end":return i.stop()}}),cl)}function wl(e){var t,r,n;return ul().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.id,e&&e.payload&&e.payload.sequenceId){o.next=3;break}return o.abrupt("return");case 3:return o.next=5,Xo(Rs.P,{windowId:t});case 5:if((r=o.sent)&&r[0]&&r[0].id){o.next=8;break}return o.abrupt("return");case 8:return o.next=10,Ko(tl.h5,t,r[0].id);case 10:return n=o.sent,o.next=13,Vo(n);case 13:case"end":return o.stop()}}),fl)}function Ol(e){var t=e.manifestId,r=e.windowId;return ul().mark((function e(){var n,o,i;return ul().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(ol.SG,{manifestId:t});case 2:if(!(n=e.sent)){e.next=9;break}if(o=n.getProperty("partOf"),!(i=Array.isArray(o)?o[0]:o)||!i.id){e.next=9;break}return e.next=9,Vo((0,rl.uE)(r,{collectionPath:[i.id]}));case 9:case"end":return e.stop()}}),e)}))()}function xl(e){var t;return ul().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload.collectionPath){r.next=3;break}return r.abrupt("return");case 3:return r.next=5,Ko.apply(void 0,[Ys].concat(ml(t)));case 5:case"end":return r.stop()}}),dl)}function Sl(e){var t,r,n,o,i,a,s,l,u,c;return ul().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(t=e.payload||e.window,r=t.canvasId,n=t.canvasIndex,o=t.manifestId,i=e.id||e.window.id,!r){f.next=10;break}return f.next=5,Ko(tl.h5,i,r,null,{preserveViewport:!!e.payload});case 5:return a=f.sent,f.next=8,Vo(a);case 8:f.next=22;break;case 10:return f.next=12,Xo(ol.SG,{manifestId:o});case 12:if(!(s=f.sent)){f.next=22;break}if(l=new Js.A(s),!(u=l.startCanvas||l.canvasAt(n||0)||l.canvasAt(0))){f.next=22;break}return f.next=19,Ko(tl.h5,i,u.id);case 19:return c=f.sent,f.next=22,Vo(c);case 22:case"end":return f.stop()}}),pl)}function Al(e){var t,r,n,o,i,a,s;return ul().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e.window&&e.window.defaultSearchQuery){l.next=2;break}return l.abrupt("return");case 2:return t=e.window,r=t.id,n=t.defaultSearchQuery,l.next=5,Xo(ol.B8,{windowId:r});case 5:return o=l.sent,l.next=8,Xo(il.bN,{position:"left",windowId:r});case 8:if(i=l.sent,a=i[0],!o||!a){l.next=14;break}return s=o&&"".concat(o.id,"?q=").concat(n),l.next=14,Vo((0,Cs.$Q)(r,a,s,n));case 14:case"end":return l.stop()}}),hl)}function Pl(e,t){var r=t.canvasIds,n=t.companionWindowIds,o=t.windowId;return n.reduce((function(t,n){var i=(0,al.yy)(e,{companionWindowId:n,windowId:o}).resources.find((function(e){return r.includes(e.targetId)}));return i&&(t[n]=[i.id]),t}),{})}function jl(e){e.annotationId;var t=e.windowId,r=e.visibleCanvases;return ul().mark((function e(){var n,o,i;return ul().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(al.WF,{windowId:t});case 2:if(n=e.sent,0!==(o=Object.keys(n||{})).length){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,Xo(Pl,{canvasIds:r,companionWindowIds:o,windowId:t});case 8:return i=e.sent,e.next=11,Go(Object.keys(i).map((function(e){return Vo((0,Cs.q)(t,e,i[e]))})));case 11:if(!(Object.values(i).length>0)){e.next=14;break}return e.next=14,Vo((0,ks.gN)(t,Object.values(i)[0][0]));case 14:case"end":return e.stop()}}),e)}))()}function El(e){var t=e.pan,r=e.windowId;return ul().mark((function e(){var n,o,i,a,s,l,u,c,f,d;return ul().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Xo(sl.Q9);case 4:return n=e.sent,o=n[r]||{},i=o.x,a=o.y,s=o.width,l=o.height,e.next=8,Xo(Ns.K4);case 8:return u=e.sent,c=u.viewportPosition,f=c.width,d=c.height,e.next=14,Vo((0,nl.Dl)({x:i+s/2-f/2,y:a+l/2-d/2}));case 14:case"end":return e.stop()}}),e)}))()}function Il(e){var t=e.windowId;return ul().mark((function e(){var r,n,o;return ul().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(Ns.zk,{windowId:t});case 2:return r=e.sent,n=r.canvasId,e.next=6,Xo(Rs.O$,{canvasId:n,windowId:t});case 6:return o=e.sent,e.next=9,Vo((0,rl.uE)(t,{visibleCanvases:(o||[]).map((function(e){return e.id}))}));case 9:case"end":return e.stop()}}),e)}))()}function Tl(e){var t=e.companionWindowId,r=e.windowId;return ul().mark((function e(){var n,o;return ul().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(ll.R2,{windowId:r});case 2:if(n=e.sent,n.switchCanvasOnSearch){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,Xo(al.SU,{companionWindowId:t,windowId:r});case 8:if(0===e.sent.length){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,Xo(al.TA,{companionWindowId:t,windowId:r});case 13:if((o=e.sent)&&0!==o.length){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,Vo((0,ks.gN)(r,o[0].id));case 18:case"end":return e.stop()}}),e)}))()}function Cl(e){var t=e.annotationId,r=e.windowId;return ul().mark((function e(){var n,o,i;return ul().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(Rs.tv,{windowId:r});case 2:return n=e.sent,e.next=5,Xo(al.bg,{annotationId:t,windowId:r});case 5:if((o=e.sent)&&!n.includes(o.id)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,Ko(tl.h5,r,o.id);case 10:return i=e.sent,e.next=13,Vo(i);case 13:case"end":return e.stop()}}),e)}))()}function kl(e){var t=e.visibleCanvases,r=e.windowId;return ul().mark((function e(){var n,o,i;return ul().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(Rs.P,{windowId:r});case 2:return n=e.sent,e.next=5,Xo(Rs.dN);case 5:return o=e.sent,i=(n||[]).filter((function(e){return t.includes(e.id)})),e.next=9,Go(i.map((function(e){return Go(new el.A(e).iiifImageResources.map((function(e){return!o[e.getServices()[0].id]&&Vo((0,Ts.E9)({imageResource:e,windowId:r}))})).filter(Boolean))})));case 9:case"end":return e.stop()}}),e)}))()}function _l(e,t){var r;return ul().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Xo(ol.SG,{manifestId:e});case 2:if(!(r=n.sent)||!r.isCollection()){n.next=6;break}return n.next=6,Vo((0,rl.Az)(e,[],t));case 6:case"end":return n.stop()}}),vl)}function Rl(){return ul().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Go([Ss(Gi.A.ADD_WINDOW,bl),Ss(Gi.A.UPDATE_WINDOW,bl),Ss(Gi.A.UPDATE_WINDOW,wl),Ss(Gi.A.SET_CANVAS,jl),Ss(Gi.A.SET_CANVAS,kl),Ss(Gi.A.UPDATE_COMPANION_WINDOW,xl),Ss(Gi.A.SET_WINDOW_VIEW_TYPE,Il),Ss(Gi.A.RECEIVE_SEARCH,Tl),Ss(Gi.A.SELECT_ANNOTATION,Cl),Ss(Gi.A.FOCUS_WINDOW,El)]);case 2:case"end":return e.stop()}}),gl)}function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(r),!0).forEach((function(t){Ml(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ml(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ll(){Ll=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:j(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function m(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(k([])));x&&x!==r&&n.call(x,a)&&(w=x);var S=b.prototype=m.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,s){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var zl=Ll().mark(Gl),Wl=Ll().mark(Kl),Bl=Ll().mark($l);function Fl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Ul(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hl(e){return function(e){if(Array.isArray(e))return Vl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ul(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(e,t){if(e){if("string"==typeof e)return Vl(e,t);var r=Object.prototype.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)?Vl(e,t):void 0}}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gl(e){return Ll().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Go([].concat(Hl(Object.entries(e.state.windows||{}).map((function(e){var t=Fl(e,2),r=(t[0],t[1]);return Ko(bl,{id:r.id,payload:r})}))),Hl(Object.entries(e.state.manifests||{}).filter((function(e){var t=Fl(e,2);t[0];return!t[1].json})).map((function(e){var t=Fl(e,2);t[0];return Ko(Ys,t[1].id)})))));case 2:case"end":return t.stop()}}),zl)}function ql(e){var t=e.config,r=t.thumbnailNavigation,n=t.windows;return Ll().mark((function e(){var t;return Ll().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&0!==n.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Go(n.map((function(e){var t="window-".concat((0,As.A)()),n=e.manifestId||e.loadedManifest;return Ko(rl._U,Dl({id:t,manifestId:n,thumbnailNavigationPosition:r&&r.defaultPosition},e))})));case 4:return t=e.sent,e.next=7,Go(t.map((function(e){return Vo(e)})));case 7:case"end":return e.stop()}}),e)}))()}function Kl(e){var t,r;return Ll().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.collectionPath,r=e.manifestId,n.next=3,Ko.apply(void 0,[Ys,r].concat(Hl(t)));case 3:case"end":return n.stop()}}),Wl)}function $l(){return Ll().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Go([Ss(Gi.A.IMPORT_MIRADOR_STATE,Gl),Ss(Gi.A.IMPORT_CONFIG,ql),Ss(Gi.A.SHOW_COLLECTION_DIALOG,Kl)]);case 2:case"end":return e.stop()}}),Bl)}var Zl=o(33235),Xl=Yl().mark(ru);function Yl(){Yl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:j(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function m(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(k([])));x&&x!==r&&n.call(x,a)&&(w=x);var S=b.prototype=m.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,s){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Ql(e){return function(e){if(Array.isArray(e))return Jl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Jl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eu(e){var t=e.canvasId,r=e.windowId;return Yl().mark((function e(){var n,o,i;return Yl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(Rs.dX,{canvasId:t,windowId:r});case 2:return n=e.sent,e.next=5,Xo(Zl.Rh);case 5:return o=e.sent,i=new el.A(n),e.next=9,Go([].concat(Ql(i.annotationListUris.filter((function(e){return!(o[n.id]&&o[n.id][e])})).map((function(e){return Vo((0,ks.pJ)(n.id,e))}))),Ql(i.canvasAnnotationPages.filter((function(e){return!(o[n.id]&&o[n.id][e.id])})).map((function(e){return e.items?Vo((0,ks.n_)(n.id,e.id,e)):Vo((0,ks.pJ)(n.id,e.id))})))));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))()}function tu(e){var t=e.visibleCanvases,r=void 0===t?[]:t,n=e.windowId;return Yl().mark((function e(){return Yl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Go(r.map((function(e){return Vo((0,ks.aw)(n,e))})));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()}function ru(){return Yl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Go([Ss(Gi.A.REQUEST_CANVAS_ANNOTATIONS,eu),Ss(Gi.A.SET_CANVAS,tu)]);case 2:case"end":return e.stop()}}),Xl)}var nu=o(45483),ou=iu().mark(fu);function iu(){iu=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:j(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function m(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(k([])));x&&x!==r&&n.call(x,a)&&(w=x);var S=b.prototype=m.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,s){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function au(e){var t=e.tokenServiceId;return iu().mark((function e(){return iu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yo(2e3);case 2:return e.next=4,Ko(su,{serviceId:t});case 4:case"end":return e.stop()}}),e)}))()}function su(e){var t=e.serviceId;return iu().mark((function e(){var r,n,o,i,a,s;return iu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(Ns.sl);case 2:return r=e.sent,e.next=5,Go(Object.keys(r).map((function(e){return Xo(Rs.Mg,{windowId:e})})));case 5:return n=e.sent,o=Xa()(Xa()(n).map((function(e){return new el.A(e).imageServiceIds}))),e.next=9,Xo(Rs.dN);case 9:return i=e.sent,a=function(e){return Ps.Utils.getServices(e).some((function(e){var r=Ps.Utils.getService(e,"http://iiif.io/api/auth/1/token")||Ps.Utils.getService(e,"http://iiif.io/api/auth/0/token");return r&&r.id===t}))},s=Object.values(i).filter((function(e){return e.json&&a(e.json)})),e.next=14,Go(s.map((function(e){var t=e.id;return o.includes(t)?Ko(Ks,{infoId:t}):Vo({infoId:t,type:Gi.A.REMOVE_INFO_RESPONSE})})));case 14:case"end":return e.stop()}}),e)}))()}function lu(e){var t=e.infoJson,r=e.windowId;return iu().mark((function e(){var n,o,i,a,s,l,u,c;return iu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(_s.xI);case 2:return n=e.sent,e.next=5,Xo(A.zj);case 5:if(o=e.sent,i=o.auth,a=(void 0===i?{}:i).serviceProfiles,s=(void 0===a?[]:a).filter((function(e){return e.external||e.kiosk})),l=Ps.Utils.getServices(t).filter((function(e){return!n[e.id]})).find((function(e){return s.some((function(t){return t.profile===e.getProfile()}))}))){e.next=14;break}return e.abrupt("return");case 14:if(!(u=s.find((function(e){return e.profile===l.getProfile()}))).kiosk){e.next=20;break}return e.next=18,Vo((0,nu.Bq)(r,l.id,l.getProfile()));case 18:e.next=28;break;case 20:if(!u.external){e.next=28;break}if(c=Ps.Utils.getService(l,"http://iiif.io/api/auth/1/token")||Ps.Utils.getService(l,"http://iiif.io/api/auth/0/token")){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,Vo((0,nu._U)(l.id,c.id));case 26:return e.next=28,Vo((0,nu.B0)(c.id,l.id));case 28:case"end":return e.stop()}}),e)}))()}function uu(e){var t=e.infoJson,r=(e.windowId,e.tokenServiceId);return iu().mark((function e(){var n,o,i;return iu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return");case 2:if(n=Ps.Utils.getServices(t).find((function(e){var t=Ps.Utils.getService(e,"http://iiif.io/api/auth/1/token")||Ps.Utils.getService(e,"http://iiif.io/api/auth/0/token");return t&&t.id===r})),n){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Xo(_s.X8);case 7:if(o=e.sent,(i=o[r])&&i.success){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,Vo((0,nu.B0)(r,n.id));case 13:case"end":return e.stop()}}),e)}))()}function cu(e){var t=e.serviceId;return iu().mark((function e(){var r,n,o,i;return iu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xo(_s.X8);case 2:return r=e.sent,e.next=5,Xo(_s.xI);case 5:if(n=e.sent,o=r[t]){e.next=9;break}return e.abrupt("return");case 9:if(i=n[o.authId]){e.next=12;break}return e.abrupt("return");case 12:if(!o.success){e.next=17;break}return e.next=15,Vo((0,nu.HN)({authServiceId:i.id,tokenServiceId:o.id}));case 15:e.next=19;break;case 17:return e.next=19,Vo((0,nu._U)(i.id,o.id,{ok:!1}));case 19:case"end":return e.stop()}}),e)}))()}function fu(){return iu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Go([Ss(Gi.A.RECEIVE_DEGRADED_INFO_RESPONSE,uu),Ss(Gi.A.RECEIVE_ACCESS_TOKEN_FAILURE,cu),Ss(Gi.A.RECEIVE_DEGRADED_INFO_RESPONSE,lu),Ss(Gi.A.RECEIVE_ACCESS_TOKEN,su),Ss(Gi.A.RESET_AUTHENTICATION_STATE,au)]);case 2:case"end":return e.stop()}}),ou)}function du(e){return function(e){if(Array.isArray(e))return pu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return pu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hu(){hu=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:j(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function m(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(k([])));x&&x!==r&&n.call(x,a)&&(w=x);var S=b.prototype=m.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,s){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var vu=hu().mark(gu);function gu(e){return hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=1,t.next=4,Ko(e);case 4:return t.abrupt("break",12);case 7:t.prev=7,t.t0=t.catch(1),console.log(t.t0);case 10:t.next=0;break;case 12:case"end":return t.stop()}}),vu,null,[[1,7]])}const mu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return hu().mark((function t(){var r;return hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[ru,$l,Qs,Rl,fu].concat(du(e)),t.next=3,Go(r.map((function(e){return Zo(gu,e)})));case 3:case"end":return t.stop()}}),t)}))};function yu(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=ms(e),n=ya.A.state.slice?(0,x.HY)(yu({},ya.A.state.slice,r)):r,o=Fi(),i=(0,x.y$)(n,Hi((0,x.Tw)(Rn,o)));return o.run(mu(t)),i};var wu=o(80391);const Ou=function(e){var t=kn(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),r=bu(function(e){return e&&e.reduce((function(e,t){return En(En({},e),t.reducers)}),{})}(t),function(e){return e&&e.filter((function(e){return e.saga})).map((function(e){return e.saga}))}(t));return r.dispatch((0,wu.KZ)(on()(function(e){return e&&e.reduce((function(e,t){return on()(e,t.config||{})}),{})}(t),e))),r};function xu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Su(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(r),!0).forEach((function(t){Au(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Au(e,t,r){return(t=ju(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ju(n.key),n)}}function ju(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Eu=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugins=kn(r.plugins||[]),this.config=t,this.store=r.store||Ou(this.config,this.plugins),t.id&&(this.container=document.getElementById(t.id),this.root=(0,n.H)(this.container),this.root.render(this.render()))}var t,r,o;return t=e,r=[{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,y.jsx)(a.Kq,{store:this.store,children:(0,y.jsx)(rn,Su({plugins:this.plugins},e))})}},{key:"unmount",value:function(){this.root&&this.root.unmount()}}],r&&Pu(t.prototype,r),o&&Pu(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Iu=Eu;const Tu={viewer:function(e,t){var r;return r=Array.isArray(t)?{plugins:t}:t,new Iu(e,r)}};var Cu=o(50789),ku=o(90176),_u=o(28540),Ru=o(82154),Nu=o(29929),Du=o(77628);const Mu={actions:Cu,createStore:bu,reducers:t,sagas:e,selectors:r};function Lu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(r),!0).forEach((function(t){Wu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wu(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bu=zu(zu({},Tu),Mu)})(),i=i.default})()));
3//# sourceMappingURL=mirador.min.js.map
\No newline at end of file