mirror of
https://github.com/ducbao414/win32.run.git
synced 2025-12-17 01:32:50 +09:00
2 lines
419 KiB
JavaScript
2 lines
419 KiB
JavaScript
/*! For license information please see djvu_viewer.js.LICENSE.txt */
|
|
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=35)}([function(e,t,n){"use strict";e.exports=n(27)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Te})),n.d(t,"b",(function(){return Pe})),n.d(t,"c",(function(){return De})),n.d(t,"d",(function(){return be})),n.d(t,"f",(function(){return Le}));var r=n(7),o=n(2),i=n.n(o),a=n(11),l=n.n(a),s=n(12),u=n(13),c=n(8),d=n(5),f=n.n(d);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},g=Object.freeze([]),v=Object.freeze({});function b(e){return"function"==typeof e}function y(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var S="undefined"!=typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).SC_ATTR)||"data-styled",O="undefined"!=typeof window&&"HTMLElement"in window,x=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).REACT_APP_SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).REACT_APP_SC_DISABLE_SPEEDY?"false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).REACT_APP_SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).SC_DISABLE_SPEEDY&&("false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!1}).SC_DISABLE_SPEEDY)),_={};function j(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&j(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),C=new Map,k=new Map,T=1,P=function(e){if(C.has(e))return C.get(e);for(;k.has(T);)T++;var t=T++;return C.set(e,t),k.set(t,e),t},N=function(e){return k.get(e)},I=function(e,t){t>=T&&(T=t+1),C.set(e,t),k.set(t,e)},R="style["+S+'][data-styled-version="5.3.1"]',A=new RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},L=function(e,t){for(var n=(t.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(A);if(l){var s=0|parseInt(l[1],10),u=l[2];0!==s&&(I(u,s),D(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},M=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},z=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(S))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","5.3.1");var a=M();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},U=function(){function e(e){var t=this.element=z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}j(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),F=function(){function e(e){var t=this.element=z(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),V=O,W={isServer:!O,useCSSOMInjection:!x},H=function(){function e(e,t,n){void 0===e&&(e=v),void 0===t&&(t={}),this.options=p({},W,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&O&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(S)&&(L(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return P(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(p({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new B(o):r?new U(o):new F(o),new E(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(P(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(P(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=N(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=S+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+s+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),$=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace($,"$1-$2")}var Y=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},K=function(e){return Y(5381,e)};function Q(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(b(n)&&!w(n))return!1}return!0}var X=K("5.3.1"),Z=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Q(e),this.componentId=t,this.baseHash=Y(X,t),this.baseStyle=n,H.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ge(this.rules,e,t,n).join(""),a=q(Y(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,u=Y(this.baseHash,n.hash),c="",d=0;d<s;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var p=ge(f,e,t,n),h=Array.isArray(p)?p.join(""):p;u=Y(u,h+d),c+=h}}if(c){var m=q(u>>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,o,i=void 0===e?v:e,a=i.options,l=void 0===a?v:a,u=i.plugins,c=void 0===u?g:u,d=new s.a(l),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,i){return 0===r&&-1!==ee.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(J,""),u=i&&a?a+" "+i+" { "+s+" }":s;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(a||!i?"":i,u)}return d.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||j(15),Y(e,t.name)}),5381).toString():"",m}var ne=i.a.createContext(),re=(ne.Consumer,i.a.createContext()),oe=(re.Consumer,new H),ie=te();function ae(){return Object(o.useContext)(ne)||oe}function le(){return Object(o.useContext)(re)||ie}function se(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ae(),s=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=Object(o.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(ne.Provider,{value:s},i.a.createElement(re.Provider,{value:u},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return j(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ce=/([A-Z])/,de=/([A-Z])/g,fe=/^ms-/,pe=function(e){return"-"+e.toLowerCase()};function he(e){return ce.test(e)?e.replace(de,pe).replace(fe,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=ge(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return me(e)?"":w(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof ue?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!me(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(he(a)+":",t[a],";"):m(t[a])?i.push.apply(i,e(t[a],a)):i.push(he(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in u.a?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(e)||m(e)?ve(ge(h(g,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ve(ge(h(e,n)))}new Set;var ye=function(e,t,n){return void 0===n&&(n=v),e.theme!==n.theme&&e.theme||t||n.theme},we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g;function Oe(e){return e.replace(we,"-").replace(Se,"")}var xe=function(e){return q(K(e)>>>0)};function _e(e){return"string"==typeof e&&!0}var je=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ce(e,t,n){var r=e[n];je(t)&&je(r)?ke(r,t):e[n]=t}function ke(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(je(a))for(var l in a)Ee(l)&&Ce(e,a[l],l)}return e}var Te=i.a.createContext();Te.Consumer;function Pe(e){var t=Object(o.useContext)(Te),n=Object(o.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?j(8):t?p({},t,{},e):e:j(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.a.createElement(Te.Provider,{value:n},e.children):null}var Ne={};function Ie(e,t,n){var r=w(e),a=!_e(e),l=t.attrs,s=void 0===l?g:l,u=t.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Oe(e);Ne[n]=(Ne[n]||0)+1;var r=n+"-"+xe("5.3.1"+n+Ne[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,h=t.displayName,m=void 0===h?function(e){return _e(e)?"styled."+e:"Styled("+y(e)+")"}(e):h,S=t.displayName&&t.componentId?Oe(t.displayName)+"-"+t.componentId:t.componentId||d,O=r&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,x=t.shouldForwardProp;r&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var _,j=new Z(n,S,r?e.componentStyle:void 0),E=j.isStatic&&0===s.length,C=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,s=e.foldedComponentIds,u=e.shouldForwardProp,d=e.styledComponentId,f=e.target,h=function(e,t,n){void 0===e&&(e=v);var r=p({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in b(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(ye(t,Object(o.useContext)(Te),l)||v,t,i),m=h[0],g=h[1],y=function(e,t,n,r){var o=ae(),i=le();return t?e.generateAndInjectStyles(v,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,m),w=n,S=g.$as||t.$as||g.as||t.as||f,O=_e(S),x=g!==t?p({},t,{},g):t,_={};for(var j in x)"$"!==j[0]&&"as"!==j&&("forwardedAs"===j?_.as=x[j]:(u?u(j,c.a,S):!O||Object(c.a)(j))&&(_[j]=x[j]));return t.style&&g.style!==t.style&&(_.style=p({},t.style,{},g.style)),_.className=Array.prototype.concat(s,d,y!==d?y:null,t.className,g.className).filter(Boolean).join(" "),_.ref=w,Object(o.createElement)(S,_)}(_,e,t,E)};return C.displayName=m,(_=i.a.forwardRef(C)).attrs=O,_.componentStyle=j,_.displayName=m,_.shouldForwardProp=x,_.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,_.styledComponentId=S,_.target=r?e.target:e,_.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(_e(e)?e:Oe(y(e)));return Ie(e,p({},o,{attrs:O,componentId:i}),n)},Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ke({},e.defaultProps,t):t}}),_.toString=function(){return"."+_.styledComponentId},a&&f()(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),_}var Re=function(e){return function e(t,n,o){if(void 0===o&&(o=v),!Object(r.isValidElementType)(n))return j(1,String(n));var i=function(){return t(n,o,be.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,p({},o,{},r))},i.attrs=function(r){return e(t,n,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Ie,e)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Re[e]=Re(e)}));var Ae=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Q(e),H.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ge(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=be.apply(void 0,[e].concat(n)),l="sc-global-"+xe(JSON.stringify(a)),s=new Ae(a,l);function u(e){var t=ae(),n=le(),r=Object(o.useContext)(Te),i=Object(o.useRef)(t.allocateGSInstance(l)).current;return t.server&&c(i,e,t,r,n),Object(o.useLayoutEffect)((function(){if(!t.server)return c(i,e,t,r,n),function(){return s.removeStyles(i,t)}}),[i,e,t,r,n]),null}function c(e,t,n,r,o){if(s.isStatic)s.renderStyles(e,_,n,o);else{var i=p({},t,{theme:ye(t,r,u.defaultProps)});s.renderStyles(e,i,n,o)}}return i.a.memo(u)}function Le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=be.apply(void 0,[e].concat(n)).join(""),i=xe(o);return new ue(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=M();return"<style "+[n&&'nonce="'+n+'"',S+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?j(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return j(2);var n=((t={})[S]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=M();return r&&(n.nonce=r),[i.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?j(2):i.a.createElement(se,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return j(3)}}();t.e=Re}).call(this,n(9))},function(e,t,n){"use strict";e.exports=n(16)},,function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(17)},function(e,t,n){"use strict";var r=n(23),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!l||!l[v])){var b=f(n,v);try{u(t,v,b)}catch(y){}}}}return t}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var d=0;d<l.length;d++)i.call(n,l[d])&&(s[l[d]]=n[l[d]])}}return s}},function(e,t,n){"use strict";e.exports=n(26)},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=o},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],c=!1,d=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=l(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++d<t;)s&&s[d].run();d=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=n(25)},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,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 l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,r,s,u,f){for(var p,h,m,g,w,O=0,x=0,_=0,j=0,E=0,I=0,A=m=p=0,L=0,M=0,z=0,U=0,F=s.length,B=F-1,V="",W="",H="",$="";L<F;){if(h=s.charCodeAt(L),L===B&&0!==x+j+_+O&&(0!==x&&(h=47===x?10:47),j=_=O=0,F++,B++),0===x+j+_+O){if(L===B&&(0<M&&(V=V.replace(d,"")),0<V.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:V+=s.charAt(L)}h=59}switch(h){case 123:for(p=(V=V.trim()).charCodeAt(0),m=1,U=++L;L<F;){switch(h=s.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=s.charCodeAt(L+1)){case 42:case 47:e:{for(A=L+1;A<B;++A)switch(s.charCodeAt(A)){case 47:if(42===h&&42===s.charCodeAt(A-1)&&L+2!==A){L=A+1;break e}break;case 10:if(47===h){L=A+1;break e}}L=A}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<B&&s.charCodeAt(L)!==h;);}if(0===m)break;L++}switch(m=s.substring(U,L),0===p&&(p=(V=V.replace(c,"").trim()).charCodeAt(0)),p){case 64:switch(0<M&&(V=V.replace(d,"")),h=V.charCodeAt(1)){case 100:case 109:case 115:case 45:M=r;break;default:M=N}if(U=(m=t(r,M,m,h,f+1)).length,0<R&&(w=l(3,m,M=n(N,V,z),r,k,C,U,h,f,u),V=M.join(""),void 0!==w&&0===(U=(m=w.trim()).length)&&(h=0,m="")),0<U)switch(h){case 115:V=V.replace(S,a);case 100:case 109:case 45:m=V+"{"+m+"}";break;case 107:m=(V=V.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=V+m,112===u&&(W+=m,m="")}else m="";break;default:m=t(r,n(r,V,z),m,u,f+1)}H+=m,m=z=M=A=p=0,V="",h=s.charCodeAt(++L);break;case 125:case 59:if(1<(U=(V=(0<M?V.replace(d,""):V).trim()).length))switch(0===A&&(p=V.charCodeAt(0),45===p||96<p&&123>p)&&(U=(V=V.replace(" ",":")).length),0<R&&void 0!==(w=l(1,V,r,e,k,C,W.length,u,f,u))&&0===(U=(V=w.trim()).length)&&(V="\0\0"),p=V.charCodeAt(0),h=V.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){$+=V+s.charAt(L);break}default:58!==V.charCodeAt(U-1)&&(W+=o(V,p,h,V.charCodeAt(2)))}z=M=A=p=0,V="",h=s.charCodeAt(++L)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==u&&0<V.length&&(M=1,V+="\0"),0<R*D&&l(0,V,r,e,k,C,W.length,u,f,u),C=1,k++;break;case 59:case 125:if(0===x+j+_+O){C++;break}default:switch(C++,g=s.charAt(L),h){case 9:case 32:if(0===j+O+x)switch(E){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===j+x+O&&(M=z=1,g="\f"+g);break;case 108:if(0===j+x+O+T&&0<A)switch(L-A){case 2:112===E&&58===s.charCodeAt(L-3)&&(T=E);case 8:111===I&&(T=I)}break;case 58:0===j+x+O&&(A=L);break;case 44:0===x+_+j+O&&(M=1,g+="\r");break;case 34:case 39:0===x&&(j=j===h?0:0===j?h:j);break;case 91:0===j+x+_&&O++;break;case 93:0===j+x+_&&O--;break;case 41:0===j+x+O&&_--;break;case 40:if(0===j+x+O){if(0===p)switch(2*E+3*I){case 533:break;default:p=1}_++}break;case 64:0===x+_+j+O+A+m&&(m=1);break;case 42:case 47:if(!(0<j+O+_))switch(x){case 0:switch(2*h+3*s.charCodeAt(L+1)){case 235:x=47;break;case 220:U=L,x=42}break;case 42:47===h&&42===E&&U+2!==L&&(33===s.charCodeAt(U+2)&&(W+=s.substring(U,L+1)),g="",x=0)}}0===x&&(V+=g)}I=E,E=h,L++}if(0<(U=W.length)){if(M=r,0<R&&(void 0!==(w=l(2,W,M,e,k,C,U,u,f,u))&&0===(W=w).length))return $+W+H;if(W=M.join(",")+"{"+W+"}",0!==P*T){switch(2!==P||i(W,2)||(T=0),T){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}T=0}}return $+W+H}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var u=0;u<a;++u)t[s++]=r(e[u]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===P||2===P&&i(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!i(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(w,"tb");break;case 232:s=a.replace(w,"tb-rl");break;case 220:s=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===j.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace(_,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,c){for(var d,f=0,p=t;f<R;++f)switch(d=I[f].call(u,e,p,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!==typeof e?P=1:(P=2,A=e):P=0),s}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<R){var o=l(-1,n,r,r,k,C,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(N,r,n,0,0);return 0<R&&(void 0!==(o=l(-2,i,r,r,k,C,i.length,0,0,0))&&(i=o)),"",T=0,C=k=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,x=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,C=1,k=1,T=0,P=1,N=[],I=[],R=0,A=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:R=I.length=0;break;default:if("function"===typeof t)I[R++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},u.set=s,void 0!==e&&s(e),u}},function(e,t,n){"use strict";t.a={animationIterationCount: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}},function(e,t,n){"use strict";e.exports=function(e,t){var n=t||{},o=n.type||"attachment",i=function(e,t){if(void 0===e)return;var n={};if("string"!==typeof e)throw new TypeError("filename must be a string");void 0===t&&(t=!0);if("string"!==typeof t&&"boolean"!==typeof t)throw new TypeError("fallback must be a string or boolean");if("string"===typeof t&&s.test(t))throw new TypeError("fallback must be ISO-8859-1 string");var o=r(e),i=f.test(o),l="string"!==typeof t?t&&v(o):r(t),u="string"===typeof l&&l!==o;(u||!i||a.test(o))&&(n["filename*"]=o);(i||u)&&(n.filename=u?l:o);return n}(e,n.fallback);return function(e){var t=e.parameters,n=e.type;if(!n||"string"!==typeof n||!p.test(n))throw new TypeError("invalid type");var r=String(n).toLowerCase();if(t&&"object"===typeof t)for(var o,i=Object.keys(t).sort(),a=0;a<i.length;a++){var l="*"===(o=i[a]).substr(-1)?S(t[o]):w(t[o]);r+="; "+o+"="+l}return r}(new O(o,i))},e.exports.parse=function(e){if(!e||"string"!==typeof e)throw new TypeError("argument string is required");var t=m.exec(e);if(!t)throw new TypeError("invalid type format");var n,r,o=t[0].length,i=t[1].toLowerCase(),a=[],l={};o=d.lastIndex=";"===t[0].substr(-1)?o-1:o;for(;t=d.exec(e);){if(t.index!==o)throw new TypeError("invalid parameter format");if(o+=t[0].length,n=t[1].toLowerCase(),r=t[2],-1!==a.indexOf(n))throw new TypeError("invalid duplicate parameter");a.push(n),n.indexOf("*")+1!==n.length?"string"!==typeof l[n]&&('"'===r[0]&&(r=r.substr(1,r.length-2).replace(u,"$1")),l[n]=r):(n=n.slice(0,-1),r=g(r),l[n]=r)}if(-1!==o&&o!==e.length)throw new TypeError("invalid parameter format");return new O(i,l)};var r=n(28).basename,o=n(29).Buffer,i=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,a=/%[0-9A-Fa-f]{2}/,l=/%([0-9A-Fa-f]{2})/g,s=/[^\x20-\x7e\xa0-\xff]/g,u=/\\([\u0000-\u007f])/g,c=/([\\"])/g,d=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,f=/^[\x20-\x7e\x80-\xff]+$/,p=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,h=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,m=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function g(e){var t=h.exec(e);if(!t)throw new TypeError("invalid extended field value");var n,r=t[1].toLowerCase(),i=t[2].replace(l,b);switch(r){case"iso-8859-1":n=v(i);break;case"utf-8":n=o.from(i,"binary").toString("utf8");break;default:throw new TypeError("unsupported charset in extended field")}return n}function v(e){return String(e).replace(s,"?")}function b(e,t){return String.fromCharCode(parseInt(t,16))}function y(e){return"%"+String(e).charCodeAt(0).toString(16).toUpperCase()}function w(e){return'"'+String(e).replace(c,"\\$1")+'"'}function S(e){var t=String(e);return"UTF-8''"+encodeURIComponent(t).replace(i,y)}function O(e,t){this.type=e,this.parameters=t}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(e,t,n,r,i){if("function"!==typeof n)throw new TypeError("The listener must be a function");var l=new a(n,r||e,i),s=o?o+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new i:delete e._events[t]}function u(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,a=new Array(i);r<i;r++)a[r]=n[r].fn;return a},u.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,r,i,a){var l=o?o+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},u.prototype.on=function(e,t,n){return l(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return l(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,r){var i=o?o+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||s(this,i);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==t||r&&!a[l].once||n&&a[l].context!==n)&&u.push(a[l]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=o,u.EventEmitter=u,e.exports=u},function(e,t,n){"use strict";var r=n(6),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),l=d("react.context"),s=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var y=b.prototype=new v;y.constructor=b,r(y,g.prototype),y.isPureReactComponent=!0;var w={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:w.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var j=/\/+/g;function E(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 C(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case i:s=!0}}if(s)return a=a(s=e),e=""===r?"."+E(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(j,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(j,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+E(l=e[u],u);s+=C(l,t,n,c,a)}else if("function"===typeof(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=C(l=l.value,t,n,c=r+E(l,u++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function k(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function N(){var e=P.current;if(null===e)throw Error(p(321));return e}var I={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";var r=n(2),o=n(6),i=n(18);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(m,e)||!p.call(h,e)&&(f.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=60103,x=60106,_=60107,j=60108,E=60114,C=60109,k=60110,T=60112,P=60113,N=60120,I=60115,R=60116,A=60121,D=60128,L=60129,M=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var U=Symbol.for;O=U("react.element"),x=U("react.portal"),_=U("react.fragment"),j=U("react.strict_mode"),E=U("react.profiler"),C=U("react.provider"),k=U("react.context"),T=U("react.forward_ref"),P=U("react.suspense"),N=U("react.suspense_list"),I=U("react.memo"),R=U("react.lazy"),A=U("react.block"),U("react.scope"),D=U("react.opaque.id"),L=U("react.debug_trace_mode"),M=U("react.offscreen"),z=U("react.legacy_hidden")}var F,B="function"===typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function $(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function G(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 22:return e=$(e.type._render,!1);case 1:return e=$(e.type,!0);default:return""}}function q(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 _:return"Fragment";case x:return"Portal";case E:return"Profiler";case j:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return q(e.type);case A:return q(e._render);case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(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=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function pe(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 he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge,ve=(ge=function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!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},we=["Webkit","ms","Moz","O"];function Se(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Oe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Se(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var xe=o({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 _e(e,t){if(t){if(xe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function je(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}}function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,Te=null;function Pe(e){if(e=eo(e)){if("function"!==typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=no(t),Ce(e.stateNode,e.type,t))}}function Ne(e){ke?Te?Te.push(e):Te=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Te;if(Te=ke=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Re(e,t){return e(t)}function Ae(e,t,n,r,o){return e(t,n,r,o)}function De(){}var Le=Re,Me=!1,ze=!1;function Ue(){null===ke&&null===Te||(De(),Ie())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=no(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Be=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ge){Be=!1}function We(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var He=!1,$e=null,Ge=!1,qe=null,Ye={onError:function(e){He=!0,$e=e}};function Ke(e,t,n,r,o,i,a,l,s){He=!1,$e=null,We.apply(Ye,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(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 Ze(e){if(Qe(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ze(o),e;if(i===r)return Ze(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],lt=null,st=null,ut=null,ct=new Map,dt=new Map,ft=[],pt="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 ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=eo(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function vt(e){var t=Jr(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=eo(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){bt(e)&&n.delete(t)}function wt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=eo(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==lt&&bt(lt)&&(lt=null),null!==st&&bt(st)&&(st=null),null!==ut&&bt(ut)&&(ut=null),ct.forEach(yt),dt.forEach(yt)}function St(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function Ot(e){function t(t){return St(t,e)}if(0<at.length){St(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&St(lt,e),null!==st&&St(st,e),null!==ut&&St(ut,e),ct.forEach(t),dt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function xt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:xt("Animation","AnimationEnd"),animationiteration:xt("Animation","AnimationIteration"),animationstart:xt("Animation","AnimationStart"),transitionend:xt("Transition","TransitionEnd")},jt={},Et={};function Ct(e){if(jt[e])return jt[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in Et)return jt[e]=n[t];return e}d&&(Et=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var kt=Ct("animationend"),Tt=Ct("animationiteration"),Pt=Ct("animationstart"),Nt=Ct("transitionend"),It=new Map,Rt=new Map,At=["abort","abort",kt,"animationEnd",Tt,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Nt,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Rt.set(r,t),It.set(r,o),u(o,[r])}}(0,i.unstable_now)();var Lt=8;function Mt(e){if(0!==(1&e))return Lt=15,1;if(0!==(2&e))return Lt=14,2;if(0!==(4&e))return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):0!==(32&e)?(Lt=11,32):0!==(t=192&e)?(Lt=10,t):0!==(256&e)?(Lt=9,256):0!==(t=3584&e)?(Lt=8,t):0!==(4096&e)?(Lt=7,4096):0!==(t=4186112&e)?(Lt=6,t):0!==(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):0!==(134217728&e)?(Lt=3,134217728):0!==(t=805306368&e)?(Lt=2,t):0!==(1073741824&e)?(Lt=1,1073741824):(Lt=8,e)}function zt(e,t){var n=e.pendingLanes;if(0===n)return Lt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Lt=15;else if(0!==(i=134217727&n)){var s=i&~a;0!==s?(r=Mt(s),o=Lt):0!==(l&=i)&&(r=Mt(l),o=Lt)}else 0!==(i=n&~a)?(r=Mt(i),o=Lt):0!==l&&(r=Mt(l),o=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Mt(t),o<=Lt)return t;Lt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function Ut(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Gt|0)|0},$t=Math.log,Gt=Math.LN2;var qt=i.unstable_UserBlockingPriority,Yt=i.unstable_runWithPriority,Kt=!0;function Qt(e,t,n,r){Me||De();var o=Zt,i=Me;Me=!0;try{Ae(o,e,t,n,r)}finally{(Me=i)||Ue()}}function Xt(e,t,n,r){Yt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var o;if(Kt)if((o=0===(4&t))&&0<at.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&mt(e,r);else{if(o){if(-1<pt.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return lt=gt(lt,e,t,n,r,o),!0;case"dragenter":return st=gt(st,e,t,n,r,o),!0;case"mouseover":return ut=gt(ut,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ct.set(i,gt(ct.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,gt(dt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Ir(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Ee(r);if(null!==(o=Jr(o))){var i=Qe(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Ir(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(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 an(){return!0}function ln(){return!1}function sn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,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)?an:ln,this.isPropagationStopped=ln,this}return o(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=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var un,cn,dn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(fn),hn=o({},fn,{view:0,detail:0}),mn=sn(hn),gn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==dn&&(dn&&"mousemove"===e.type?(un=e.screenX-dn.screenX,cn=e.screenY-dn.screenY):cn=un=0,dn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),vn=sn(gn),bn=sn(o({},gn,{dataTransfer:0})),yn=sn(o({},hn,{relatedTarget:0})),wn=sn(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),Sn=sn(o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),On=sn(o({},fn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},jn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jn[e])&&!!t[e]}function Cn(){return En}var kn=sn(o({},hn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=sn(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=sn(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=sn(o({},gn,{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})),Rn=[9,13,27,32],An=d&&"CompositionEvent"in window,Dn=null;d&&"documentMode"in document&&(Dn=document.documentMode);var Ln=d&&"TextEvent"in window&&!Dn,Mn=d&&(!An||Dn&&8<Dn&&11>=Dn),zn=String.fromCharCode(32),Un=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Wn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function $n(e,t,n,r){Ne(r),0<(t=Ar(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,qn=null;function Yn(e){Er(e,0)}function Kn(e){if(X(to(e)))return e}function Qn(e,t){if("change"===e)return t}var Xn=!1;if(d){var Zn;if(d){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Xn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),qn=Gn=null)}function nr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];if($n(t,qn,e,Ee(e)),e=Yn,Me)e(t);else{Me=!0;try{Re(e,t)}finally{Me=!1,Ue()}}}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},sr=Object.prototype.hasOwnProperty;function ur(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=d&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Z(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&ur(br,r)||(br=r,0<(r=Ar(vr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(At,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Or=0;Or<Sr.length;Or++)Rt.set(Sr[Or],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if(Ke.apply(this,arguments),He){if(!He)throw Error(a(198));var c=$e;He=!1,$e=null,Ge||(Ge=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function Er(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;jr(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;jr(o,l,u),i=s}}}if(Ge)throw e=qe,Ge=!1,qe=null,e}function Cr(e,t){var n=ro(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var kr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[kr]||(e[kr]=!0,l.forEach((function(t){_r.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&_r.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ro(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Nr(i,e,o,t),a.add(l))}function Nr(e,t,n,r){var o=Rt.get(t);switch(void 0===o?2:o){case 0:o=Qt;break;case 1:o=Xt;break;default:o=Zt}n=o.bind(null,t,n,e),o=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ir(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Jr(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(ze)return e(t,n);ze=!0;try{Le(e,t,n)}finally{ze=!1,Ue()}}((function(){var r=i,o=Ee(n),a=[];e:{var l=It.get(e);if(void 0!==l){var s=pn,u=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":s=kn;break;case"focusin":u="focus",s=yn;break;case"focusout":u="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case kt:case Tt:case Pt:s=wn;break;case Nt:s=Nn;break;case"scroll":s=mn;break;case"wheel":s=In;break;case"copy":case"cut":case"paste":s=Sn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Fe(h,f))&&c.push(Rr(h,m,p)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(u=n.relatedTarget||n.fromElement)||!Jr(u)&&!u[Xr])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Jr(u):null)&&(u!==(d=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:to(s),p=null==u?l:to(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=p,m=null,Jr(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Dr(p))h++;for(p=0,m=f;m;m=Dr(m))p++;for(;0<h-p;)c=Dr(c),h--;for(;0<p-h;)f=Dr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Dr(c),f=Dr(f)}c=null}else c=null;null!==s&&Lr(a,l,s,c,!1),null!==u&&null!==d&&Lr(a,d,u,c,!0)}if("select"===(s=(l=r?to(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Qn;else if(Hn(l))if(Xn)g=ar;else{g=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ir);switch(g&&(g=g(e,r))?$n(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&oe(l,"number",l.value)),v=r?to(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var b;if(An)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Vn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Mn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Vn&&(b=rn()):(tn="value"in(en=o)?en.value:en.textContent,Vn=!0)),0<(v=Ar(r,y)).length&&(y=new On(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=Ln?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Un=!0,zn);case"textInput":return(e=t.data)===zn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!An&&Fn(e,t)?(e=rn(),nn=tn=en=null,Vn=!1,e):null;switch(e){case"paste":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 Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Ar(r,"onBeforeInput")).length&&(o=new On("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Er(a,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ar(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Fe(e,n))&&r.unshift(Rr(e,i,o)),null!=(i=Fe(e,t))&&r.push(Rr(e,i,o))),e=e.return}return r}function Dr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Fe(n,i))&&a.unshift(Rr(n,s,l)):o||null!=(s=Fe(n,i))&&a.push(Rr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Mr(){}var zr=null,Ur=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Br(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Vr="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function Hr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function $r(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0;var Yr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Yr,Qr="__reactProps$"+Yr,Xr="__reactContainer$"+Yr,Zr="__reactEvents$"+Yr;function Jr(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Kr])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function eo(e){return!(e=e[Kr]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function to(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function no(e){return e[Qr]||null}function ro(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=new Set),t}var oo=[],io=-1;function ao(e){return{current:e}}function lo(e){0>io||(e.current=oo[io],oo[io]=null,io--)}function so(e,t){io++,oo[io]=e.current,e.current=t}var uo={},co=ao(uo),fo=ao(!1),po=uo;function ho(e,t){var n=e.type.contextTypes;if(!n)return uo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function go(){lo(fo),lo(co)}function vo(e,t,n){if(co.current!==uo)throw Error(a(168));so(co,t),so(fo,n)}function bo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,q(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uo,po=co.current,so(co,e),so(fo,fo.current),!0}function wo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bo(e,t,po),r.__reactInternalMemoizedMergedChildContext=e,lo(fo),lo(co),so(co,e)):lo(fo),so(fo,n)}var So=null,Oo=null,xo=i.unstable_runWithPriority,_o=i.unstable_scheduleCallback,jo=i.unstable_cancelCallback,Eo=i.unstable_shouldYield,Co=i.unstable_requestPaint,ko=i.unstable_now,To=i.unstable_getCurrentPriorityLevel,Po=i.unstable_ImmediatePriority,No=i.unstable_UserBlockingPriority,Io=i.unstable_NormalPriority,Ro=i.unstable_LowPriority,Ao=i.unstable_IdlePriority,Do={},Lo=void 0!==Co?Co:function(){},Mo=null,zo=null,Uo=!1,Fo=ko(),Bo=1e4>Fo?ko:function(){return ko()-Fo};function Vo(){switch(To()){case Po:return 99;case No:return 98;case Io:return 97;case Ro:return 96;case Ao:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return Po;case 98:return No;case 97:return Io;case 96:return Ro;case 95:return Ao;default:throw Error(a(332))}}function Ho(e,t){return e=Wo(e),xo(e,t)}function $o(e,t,n){return e=Wo(e),_o(e,t,n)}function Go(){if(null!==zo){var e=zo;zo=null,jo(e)}qo()}function qo(){if(!Uo&&null!==Mo){Uo=!0;var e=0;try{var t=Mo;Ho(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mo=null}catch(n){throw null!==Mo&&(Mo=Mo.slice(e+1)),_o(Po,Go),n}finally{Uo=!1}}}var Yo=S.ReactCurrentBatchConfig;function Ko(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qo=ao(null),Xo=null,Zo=null,Jo=null;function ei(){Jo=Zo=Xo=null}function ti(e){var t=Qo.current;lo(Qo),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ri(e,t){Xo=e,Jo=Zo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Aa=!0),e.firstContext=null)}function oi(e,t){if(Jo!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Jo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zo){if(null===Xo)throw Error(a(308));Zo=t,Xo.dependencies={lanes:0,firstContext:t,responders:null}}else Zo=Zo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function li(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 si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ui(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function di(e,t,n,r){var i=e.updateQueue;ii=!1;var a=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?a=c:l.next=c,l=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==l&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==a){for(f=i.baseState,l=0,d=c=u=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(s=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){f=h.call(p,f,s);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(s="function"===typeof(h=m.payload)?h.call(p,f,s):h)||void 0===s)break e;f=o({},f,s);break e;case 2:ii=!0}}null!==a.callback&&(e.flags|=32,null===(s=i.effects)?i.effects=[a]:s.push(a))}else p={eventTime:p,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(c=d=p,u=f):d=d.next=p,l|=s;if(null===(a=a.next)){if(null===(s=i.shared.pending))break;a=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}null===d&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,zl|=l,e.lanes=l,e.memoizedState=f}}function fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var pi=(new r.Component).refs;function hi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=us(),o=cs(e),i=si(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),ui(e,i),ds(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=us(),o=cs(e),i=si(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),ui(e,i),ds(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=us(),r=cs(e),o=si(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),ui(e,o),ds(e,r,n)}};function gi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(o,i))}function vi(e,t,n){var r=!1,o=uo,i=t.contextType;return"object"===typeof i&&null!==i?i=oi(i):(o=mo(t)?po:co.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?ho(e,o):uo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function yi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=pi,ai(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=oi(i):(i=mo(t)?po:co.current,o.context=ho(e,i)),di(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(hi(e,t,i,n),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&&mi.enqueueReplaceState(o,o.state,null),di(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var wi=Array.isArray;function Si(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===pi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Oi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function xi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ws(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=qs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Si(e,t,n),r.return=e,r):((r=Hs(n.type,n.key,n.props,null,e.mode,r)).ref=Si(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ys(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=$s(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=qs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case O:return(n=Hs(t.type,t.key,t.props,null,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case x:return(t=Ys(t,e.mode,n)).return=e,t}if(wi(t)||V(t))return(t=$s(t,e.mode,n,null)).return=e,t;Oi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case O:return n.key===o?n.type===_?d(e,t,n.props.children,r,o):u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null}if(wi(n)||V(n))return null!==o?null:d(e,t,n,r,null);Oi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case O:return e=e.get(null===r.key?n:r.key)||null,r.type===_?d(t,e,r.props.children,o,r.key):u(t,e,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(wi(r)||V(r))return d(t,e=e.get(n)||null,r,o,null);Oi(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===l.length)return n(o,d),u;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],s))&&(a=i(d,a,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(o,d);m<l.length;m++)null!==(g=h(d,o,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(o,e)})),u}function g(o,l,s,u){var c=V(s);if("function"!==typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var d=c=null,m=l,g=l=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(o,m,b.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),l=i(y,l,g),null===d?c=y:d.sibling=y,d=y,m=v}if(b.done)return n(o,m),c;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=f(o,b.value,u))&&(l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return c}for(m=r(o,m);!b.done;g++,b=s.next())null!==(b=h(m,o,g,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(o,e)})),c}return function(e,r,i,s){var u="object"===typeof i&&null!==i&&i.type===_&&null===i.key;u&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case O:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(i.type===_){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}break;default:if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=Si(e,u,i),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}i.type===_?((r=$s(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Hs(i.type,i.key,i.props,null,e.mode,s)).ref=Si(e,r,i),s.return=e,e=s)}return l(e);case x:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ys(i,e.mode,s)).return=e,e=r}return l(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=qs(i,e.mode,s)).return=e,e=r),l(e);if(wi(i))return m(e,r,i,s);if(V(i))return g(e,r,i,s);if(c&&Oi(e,i),"undefined"===typeof i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return n(e,r)}}var _i=xi(!0),ji=xi(!1),Ei={},Ci=ao(Ei),ki=ao(Ei),Ti=ao(Ei);function Pi(e){if(e===Ei)throw Error(a(174));return e}function Ni(e,t){switch(so(Ti,t),so(ki,e),so(Ci,Ei),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ci),so(Ci,t)}function Ii(){lo(Ci),lo(ki),lo(Ti)}function Ri(e){Pi(Ti.current);var t=Pi(Ci.current),n=he(t,e.type);t!==n&&(so(ki,e),so(Ci,n))}function Ai(e){ki.current===e&&(lo(Ci),lo(ki))}var Di=ao(0);function Li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&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 Mi=null,zi=null,Ui=!1;function Fi(e,t){var n=Bs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Bi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Vi(e){if(Ui){var t=zi;if(t){var n=t;if(!Bi(e,t)){if(!(t=$r(n.nextSibling))||!Bi(e,t))return e.flags=-1025&e.flags|2,Ui=!1,void(Mi=e);Fi(Mi,n)}Mi=e,zi=$r(t.firstChild)}else e.flags=-1025&e.flags|2,Ui=!1,Mi=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Mi=e}function Hi(e){if(e!==Mi)return!1;if(!Ui)return Wi(e),Ui=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Br(t,e.memoizedProps))for(t=zi;t;)Fi(e,t),t=$r(t.nextSibling);if(Wi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zi=$r(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zi=null}}else zi=Mi?$r(e.stateNode.nextSibling):null;return!0}function $i(){zi=Mi=null,Ui=!1}var Gi=[];function qi(){for(var e=0;e<Gi.length;e++)Gi[e]._workInProgressVersionPrimary=null;Gi.length=0}var Yi=S.ReactCurrentDispatcher,Ki=S.ReactCurrentBatchConfig,Qi=0,Xi=null,Zi=null,Ji=null,ea=!1,ta=!1;function na(){throw Error(a(321))}function ra(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function oa(e,t,n,r,o,i){if(Qi=i,Xi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yi.current=null===e||null===e.memoizedState?Pa:Na,e=n(r,o),ta){i=0;do{if(ta=!1,!(25>i))throw Error(a(301));i+=1,Ji=Zi=null,t.updateQueue=null,Yi.current=Ia,e=n(r,o)}while(ta)}if(Yi.current=Ta,t=null!==Zi&&null!==Zi.next,Qi=0,Ji=Zi=Xi=null,ea=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ji?Xi.memoizedState=Ji=e:Ji=Ji.next=e,Ji}function aa(){if(null===Zi){var e=Xi.alternate;e=null!==e?e.memoizedState:null}else e=Zi.next;var t=null===Ji?Xi.memoizedState:Ji.next;if(null!==t)Ji=t,Zi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Zi=e).memoizedState,baseState:Zi.baseState,baseQueue:Zi.baseQueue,queue:Zi.queue,next:null},null===Ji?Xi.memoizedState=Ji=e:Ji=Ji.next=e}return Ji}function la(e,t){return"function"===typeof t?t(e):t}function sa(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Zi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=l=i=null,u=o;do{var c=u.lane;if((Qi&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Xi.lanes|=c,zl|=c}u=u.next}while(null!==u&&u!==o);null===s?i=r:s.next=l,lr(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ua(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ca(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Qi&e)===e)&&(t._workInProgressVersionPrimary=r,Gi.push(t))),e)return n(t._source);throw Gi.push(t),Error(a(350))}function da(e,t,n,r){var o=Pl;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),s=Yi.current,u=s.useState((function(){return ca(o,t,n)})),c=u[1],d=u[0];u=Ji;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var g=Xi;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!lr(l,e)){e=n(t._source),lr(d,e)||(c(e),e=cs(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var s=31-Ht(a),u=1<<s;r[s]|=e,a&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=cs(g);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),lr(h,n)&&lr(m,t)&&lr(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:d}).dispatch=c=ka.bind(null,Xi,e),u.queue=e,u.baseQueue=null,d=ca(o,t,n),u.memoizedState=u.baseState=d),d}function fa(e,t,n){return da(aa(),e,t,n)}function pa(e){var t=ia();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:e}).dispatch=ka.bind(null,Xi,e),[t.memoizedState,e]}function ha(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xi.updateQueue)?(t={lastEffect:null},Xi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ma(e){return e={current:e},ia().memoizedState=e}function ga(){return aa().memoizedState}function va(e,t,n,r){var o=ia();Xi.flags|=e,o.memoizedState=ha(1|t,n,void 0,void 0===r?null:r)}function ba(e,t,n,r){var o=aa();r=void 0===r?null:r;var i=void 0;if(null!==Zi){var a=Zi.memoizedState;if(i=a.destroy,null!==r&&ra(r,a.deps))return void ha(t,n,i,r)}Xi.flags|=e,o.memoizedState=ha(1|t,n,i,r)}function ya(e,t){return va(516,4,e,t)}function wa(e,t){return ba(516,4,e,t)}function Sa(e,t){return ba(4,2,e,t)}function Oa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ba(4,2,Oa.bind(null,t,e),n)}function _a(){}function ja(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ea(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ca(e,t){var n=Vo();Ho(98>n?98:n,(function(){e(!0)})),Ho(97<n?97:n,(function(){var n=Ki.transition;Ki.transition=1;try{e(!1),t()}finally{Ki.transition=n}}))}function ka(e,t,n){var r=us(),o=cs(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Xi||null!==a&&a===Xi)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(i.eagerReducer=a,i.eagerState=s,lr(s,l))return}catch(u){}ds(e,o,r)}}var Ta={readContext:oi,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useMutableSource:na,useOpaqueIdentifier:na,unstable_isNewReconciler:!1},Pa={readContext:oi,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:oi,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,va(4,2,Oa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return va(4,2,e,t)},useMemo:function(e,t){var n=ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ia();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ka.bind(null,Xi,e),[r.memoizedState,e]},useRef:ma,useState:pa,useDebugValue:_a,useDeferredValue:function(e){var t=pa(e),n=t[0],r=t[1];return ya((function(){var t=Ki.transition;Ki.transition=1;try{r(e)}finally{Ki.transition=t}}),[e]),n},useTransition:function(){var e=pa(!1),t=e[0];return ma(e=Ca.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ia();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},da(r,e,t,n)},useOpaqueIdentifier:function(){if(Ui){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(a(355))})),n=pa(t)[1];return 0===(2&Xi.mode)&&(Xi.flags|=516,ha(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return pa(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},Na={readContext:oi,useCallback:ja,useContext:oi,useEffect:wa,useImperativeHandle:xa,useLayoutEffect:Sa,useMemo:Ea,useReducer:sa,useRef:ga,useState:function(){return sa(la)},useDebugValue:_a,useDeferredValue:function(e){var t=sa(la),n=t[0],r=t[1];return wa((function(){var t=Ki.transition;Ki.transition=1;try{r(e)}finally{Ki.transition=t}}),[e]),n},useTransition:function(){var e=sa(la)[0];return[ga().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return sa(la)[0]},unstable_isNewReconciler:!1},Ia={readContext:oi,useCallback:ja,useContext:oi,useEffect:wa,useImperativeHandle:xa,useLayoutEffect:Sa,useMemo:Ea,useReducer:ua,useRef:ga,useState:function(){return ua(la)},useDebugValue:_a,useDeferredValue:function(e){var t=ua(la),n=t[0],r=t[1];return wa((function(){var t=Ki.transition;Ki.transition=1;try{r(e)}finally{Ki.transition=t}}),[e]),n},useTransition:function(){var e=ua(la)[0];return[ga().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ua(la)[0]},unstable_isNewReconciler:!1},Ra=S.ReactCurrentOwner,Aa=!1;function Da(e,t,n,r){t.child=null===e?ji(t,null,n,r):_i(t,e.child,n,r)}function La(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=oa(e,t,n,r,i,o),null===e||Aa?(t.flags|=1,Da(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nl(e,t,o))}function Ma(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Vs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hs(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)?nl(e,t,i):(t.flags|=1,(e=Ws(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,o,i){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(Aa=!1,0===(i&o))return t.lanes=e.lanes,nl(e,t,i);0!==(16384&e.flags)&&(Aa=!0)}return Ba(e,t,n,r,i)}function Ua(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},ys(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ys(t,e),null;t.memoizedState={baseLanes:0},ys(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,ys(t,r);return Da(e,t,o,n),t.child}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ba(e,t,n,r,o){var i=mo(n)?po:co.current;return i=ho(t,i),ri(t,o),n=oa(e,t,n,r,i,o),null===e||Aa?(t.flags|=1,Da(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nl(e,t,o))}function Va(e,t,n,r,o){if(mo(n)){var i=!0;yo(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),vi(t,n,r),yi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=oi(u):u=ho(t,u=mo(n)?po:co.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||s!==u)&&bi(t,a,r,u),ii=!1;var f=t.memoizedState;a.state=f,di(t,r,a,o),s=t.memoizedState,l!==r||f!==s||fo.current||ii?("function"===typeof c&&(hi(t,n,c,r),s=t.memoizedState),(l=ii||gi(t,n,l,r,f,s,u))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,li(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ko(t.type,l),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=oi(s):s=ho(t,s=mo(n)?po:co.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==s)&&bi(t,a,r,s),ii=!1,f=t.memoizedState,a.state=f,di(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||fo.current||ii?("function"===typeof p&&(hi(t,n,p,r),h=t.memoizedState),(u=ii||gi(t,n,u,r,f,h,s))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Wa(e,t,n,r,i,o)}function Wa(e,t,n,r,o,i){Fa(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&wo(t,n,!1),nl(e,t,i);r=t.stateNode,Ra.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,l,i)):Da(e,t,l,i),t.memoizedState=r.state,o&&wo(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?vo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vo(0,t.context,!1),Ni(e,t.containerInfo)}var $a,Ga,qa,Ya={dehydrated:null,retryLane:0};function Ka(e,t,n){var r,o=t.pendingProps,i=Di.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),so(Di,1&i),null===e?(void 0!==o.fallback&&Vi(t),e=o.children,i=o.fallback,a?(e=Qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,e):"number"===typeof o.unstable_expectedLoadTime?(e=Qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,t.lanes=33554432,e):((n=Gs({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=Za(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ya,o):(n=Xa(e,t,o.children,n),t.memoizedState=null,n))}function Qa(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Gs(t,o,0,null),n=$s(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Xa(e,t,n,r){var o=e.child;return e=o.sibling,n=Ws(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Za(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ws(a,l),null!==e?r=Ws(e,r):(r=$s(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ja(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ni(e.return,t)}function el(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function tl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Da(e,t,r.children,n),0!==(2&(r=Di.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ja(e,n);else if(19===e.tag)Ja(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(so(Di,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),el(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Li(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}el(t,!0,n,null,i,t.lastEffect);break;case"together":el(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zl|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ws(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ws(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rl(e,t){if(!Ui)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ol(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mo(t.type)&&go(),null;case 3:return Ii(),lo(fo),lo(co),qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Hi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ai(t);var i=Pi(Ti.current);if(n=t.type,null!==e&&null!=t.stateNode)Ga(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Pi(Ci.current),Hi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Kr]=t,r[Qr]=l,n){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(e=0;e<xr.length;e++)Cr(xr[e],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ee(r,l),Cr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Cr("invalid",r);break;case"textarea":se(r,l),Cr("invalid",r)}for(var u in _e(n,l),e=null,l)l.hasOwnProperty(u)&&(i=l[u],"children"===u?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):s.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&Cr("scroll",r));switch(n){case"input":Q(r),re(r,l,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(r.onclick=Mr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Kr]=t,e[Qr]=r,$a(e,t),t.stateNode=e,u=je(n,r),n){case"dialog":Cr("cancel",e),Cr("close",e),i=r;break;case"iframe":case"object":case"embed":Cr("load",e),i=r;break;case"video":case"audio":for(i=0;i<xr.length;i++)Cr(xr[i],e);i=r;break;case"source":Cr("error",e),i=r;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),i=r;break;case"details":Cr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Cr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Cr("invalid",e);break;case"textarea":se(e,r),i=le(e,r),Cr("invalid",e);break;default:i=r}_e(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var d=c[l];"style"===l?Oe(e,d):"dangerouslySetInnerHTML"===l?null!=(d=d?d.__html:void 0)&&ve(e,d):"children"===l?"string"===typeof d?("textarea"!==n||""!==d)&&be(e,d):"number"===typeof d&&be(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=d&&"onScroll"===l&&Cr("scroll",e):null!=d&&w(e,l,d,u))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Mr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Pi(Ti.current),Pi(Ci.current),Hi(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=t,t.stateNode=r)}return null;case 13:return lo(Di),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Hi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Di.current)?0===Dl&&(Dl=3):(0!==Dl&&3!==Dl||(Dl=4),null===Pl||0===(134217727&zl)&&0===(134217727&Ul)||ms(Pl,Il))),(r||n)&&(t.flags|=4),null);case 4:return Ii(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return ti(t),null;case 17:return mo(t.type)&&go(),null;case 19:if(lo(Di),null===(r=t.memoizedState))return null;if(l=0!==(64&t.flags),null===(u=r.rendering))if(l)rl(r,!1);else{if(0!==Dl||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Li(e))){for(t.flags|=64,rl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return so(Di,1&Di.current|2),t.child}e=e.sibling}null!==r.tail&&Bo()>Wl&&(t.flags|=64,l=!0,rl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Li(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ui)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bo()-r.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=64,l=!0,rl(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bo(),n.sibling=null,t=Di.current,so(Di,l?1&t|2:1&t),n):null;case 23:case 24:return ws(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function il(e){switch(e.tag){case 1:mo(e.type)&&go();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ii(),lo(fo),lo(co),qi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ai(e),null;case 13:return lo(Di),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return lo(Di),null;case 4:return Ii(),null;case 10:return ti(e),null;case 23:case 24:return ws(),null;default:return null}}function al(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function ll(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}$a=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ga=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pi(Ci.current);var a,l=null;switch(n){case"input":i=J(e,i),r=J(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Mr)}for(d in _e(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var u=i[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(s.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(d,c)):"children"===d?"string"!==typeof c&&"number"!==typeof c||(l=l||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(s.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Cr("scroll",e),l||u===c||(l=[])):"object"===typeof c&&null!==c&&c.$$typeof===D?c.toString():(l=l||[]).push(d,c))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}},qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var sl="function"===typeof WeakMap?WeakMap:Map;function ul(e,t,n){(n=si(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Yl=r),ll(0,t)},n}function cl(e,t,n){(n=si(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return ll(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this),ll(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var dl="function"===typeof WeakSet?WeakSet:Set;function fl(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Ms(e,n)}else t.current=null}function pl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ko(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function hl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(As(n,e),Rs(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ko(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ot(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ml(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=Se("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gl(e,t){if(Oo&&"function"===typeof Oo.onCommitFiberUnmount)try{Oo.onCommitFiberUnmount(So,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))As(t,n);else{r=t;try{o()}catch(i){Ms(r,i)}}n=n.next}while(n!==e)}break;case 1:if(fl(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Ms(t,i)}break;case 5:fl(t);break;case 4:Ol(e,t)}}function vl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bl(e){return 5===e.tag||3===e.tag||4===e.tag}function yl(e){e:{for(var t=e.return;null!==t;){if(bl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?wl(e,n,t):Sl(e,n,t)}function wl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Mr));else if(4!==r&&null!==(e=e.child))for(wl(e,t,n),e=e.sibling;null!==e;)wl(e,t,n),e=e.sibling}function Sl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Sl(e,t,n),e=e.sibling;null!==e;)Sl(e,t,n),e=e.sibling}function Ol(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,s=o,u=s;;)if(gl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=o.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(gl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function xl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),je(e,o),t=je(e,r),o=0;o<i.length;o+=2){var l=i[o],s=i[o+1];"style"===l?Oe(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?be(n,s):w(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Ot(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Vl=Bo(),ml(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void ml(t,null!==t.memoizedState)}throw Error(a(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new dl),t.forEach((function(t){var r=Us.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function jl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var El=Math.ceil,Cl=S.ReactCurrentDispatcher,kl=S.ReactCurrentOwner,Tl=0,Pl=null,Nl=null,Il=0,Rl=0,Al=ao(0),Dl=0,Ll=null,Ml=0,zl=0,Ul=0,Fl=0,Bl=null,Vl=0,Wl=1/0;function Hl(){Wl=Bo()+500}var $l,Gl=null,ql=!1,Yl=null,Kl=null,Ql=!1,Xl=null,Zl=90,Jl=[],es=[],ts=null,ns=0,rs=null,os=-1,is=0,as=0,ls=null,ss=!1;function us(){return 0!==(48&Tl)?Bo():-1!==os?os:os=Bo()}function cs(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Vo()?1:2;if(0===is&&(is=Ml),0!==Yo.transition){0!==as&&(as=null!==Bl?Bl.pendingLanes:0),e=is;var t=4186112&~as;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vo(),0!==(4&Tl)&&98===e?e=Ft(12,is):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),is),e}function ds(e,t,n){if(50<ns)throw ns=0,rs=null,Error(a(185));if(null===(e=fs(e,t)))return null;Wt(e,t,n),e===Pl&&(Ul|=t,4===Dl&&ms(e,Il));var r=Vo();1===t?0!==(8&Tl)&&0===(48&Tl)?gs(e):(ps(e,n),0===Tl&&(Hl(),Go())):(0===(4&Tl)||98!==r&&99!==r||(null===ts?ts=new Set([e]):ts.add(e)),ps(e,n)),Bl=e}function fs(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ps(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Ht(l),u=1<<s,c=i[s];if(-1===c){if(0===(u&r)||0!==(u&o)){c=t,Mt(u);var d=Lt;i[s]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=zt(e,e===Pl?Il:0),t=Lt,0===r)null!==n&&(n!==Do&&jo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Do&&jo(n)}15===t?(n=gs.bind(null,e),null===Mo?(Mo=[n],zo=_o(Po,qo)):Mo.push(n),n=Do):14===t?n=$o(99,gs.bind(null,e)):n=$o(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),hs.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hs(e){if(os=-1,as=is=0,0!==(48&Tl))throw Error(a(327));var t=e.callbackNode;if(Is()&&e.callbackNode!==t)return null;var n=zt(e,e===Pl?Il:0);if(0===n)return null;var r=n,o=Tl;Tl|=16;var i=xs();for(Pl===e&&Il===r||(Hl(),Ss(e,r));;)try{Es();break}catch(s){Os(e,s)}if(ei(),Cl.current=i,Tl=o,null!==Nl?r=0:(Pl=null,Il=0,r=Dl),0!==(Ml&Ul))Ss(e,0);else if(0!==r){if(2===r&&(Tl|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=Ut(e))&&(r=_s(e,n))),1===r)throw t=Ll,Ss(e,0),ms(e,n),ps(e,Bo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Ts(e);break;case 3:if(ms(e,n),(62914560&n)===n&&10<(r=Vl+500-Bo())){if(0!==zt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){us(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Vr(Ts.bind(null,e),r);break}Ts(e);break;case 4:if(ms(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Ht(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=Bo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){e.timeoutHandle=Vr(Ts.bind(null,e),n);break}Ts(e);break;case 5:Ts(e);break;default:throw Error(a(329))}}return ps(e,Bo()),e.callbackNode===t?hs.bind(null,e):null}function ms(e,t){for(t&=~Fl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function gs(e){if(0!==(48&Tl))throw Error(a(327));if(Is(),e===Pl&&0!==(e.expiredLanes&Il)){var t=Il,n=_s(e,t);0!==(Ml&Ul)&&(n=_s(e,t=zt(e,t)))}else n=_s(e,t=zt(e,0));if(0!==e.tag&&2===n&&(Tl|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=Ut(e))&&(n=_s(e,t))),1===n)throw n=Ll,Ss(e,0),ms(e,t),ps(e,Bo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ts(e),ps(e,Bo()),null}function vs(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Hl(),Go())}}function bs(e,t){var n=Tl;Tl&=-2,Tl|=8;try{return e(t)}finally{0===(Tl=n)&&(Hl(),Go())}}function ys(e,t){so(Al,Rl),Rl|=t,Ml|=t}function ws(){Rl=Al.current,lo(Al)}function Ss(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&go();break;case 3:Ii(),lo(fo),lo(co),qi();break;case 5:Ai(r);break;case 4:Ii();break;case 13:case 19:lo(Di);break;case 10:ti(r);break;case 23:case 24:ws()}n=n.return}Pl=e,Nl=Ws(e.current,null),Il=Rl=Ml=t,Dl=0,Ll=null,Fl=Ul=zl=0}function Os(e,t){for(;;){var n=Nl;try{if(ei(),Yi.current=Ta,ea){for(var r=Xi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ea=!1}if(Qi=0,Ji=Zi=Xi=null,ta=!1,kl.current=null,null===n||null===n.return){Dl=1,Ll=t,Nl=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Il,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var d=0!==(1&Di.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var g=f.updateQueue;if(null===g){var v=new Set;v.add(u),f.updateQueue=v}else g.add(u);if(0===(2&f.mode)){if(f.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var b=si(-1,1);b.tag=2,ui(l,b)}l.lanes|=1;break e}s=void 0,l=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new sl,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(l)){s.add(l);var w=zs.bind(null,i,u,l);u.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);s=Error((q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Dl&&(Dl=2),s=al(s,l),f=a;do{switch(f.tag){case 3:i=s,f.flags|=4096,t&=-t,f.lanes|=t,ci(f,ul(0,i,t));break e;case 1:i=s;var S=f.type,O=f.stateNode;if(0===(64&f.flags)&&("function"===typeof S.getDerivedStateFromError||null!==O&&"function"===typeof O.componentDidCatch&&(null===Kl||!Kl.has(O)))){f.flags|=4096,t&=-t,f.lanes|=t,ci(f,cl(f,i,t));break e}}f=f.return}while(null!==f)}ks(n)}catch(x){t=x,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function xs(){var e=Cl.current;return Cl.current=Ta,null===e?Ta:e}function _s(e,t){var n=Tl;Tl|=16;var r=xs();for(Pl===e&&Il===t||Ss(e,t);;)try{js();break}catch(o){Os(e,o)}if(ei(),Tl=n,Cl.current=r,null!==Nl)throw Error(a(261));return Pl=null,Il=0,Dl}function js(){for(;null!==Nl;)Cs(Nl)}function Es(){for(;null!==Nl&&!Eo();)Cs(Nl)}function Cs(e){var t=$l(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?ks(e):Nl=t,kl.current=null}function ks(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ol(n,t,Rl)))return void(Nl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Rl)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=il(t)))return n.flags&=2047,void(Nl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Dl&&(Dl=5)}function Ts(e){var t=Vo();return Ho(99,Ps.bind(null,e,t)),null}function Ps(e,t){do{Is()}while(null!==Xl);if(0!==(48&Tl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<i;){var u=31-Ht(i),c=1<<u;o[u]=0,l[u]=-1,s[u]=-1,i&=~c}if(null!==ts&&0===(24&r)&&ts.has(e)&&ts.delete(e),e===Pl&&(Nl=Pl=null,Il=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Tl,Tl|=32,kl.current=null,zr=Kt,hr(l=pr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,i=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(E){s=null;break e}var d=0,f=-1,p=-1,h=0,m=0,g=l,v=null;t:for(;;){for(var b;g!==s||0!==i&&3!==g.nodeType||(f=d+i),g!==u||0!==c&&3!==g.nodeType||(p=d+c),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)v=g,g=b;for(;;){if(g===l)break t;if(v===s&&++h===i&&(f=d),v===u&&++m===c&&(p=d),null!==(b=g.nextSibling))break;v=(g=v).parentNode}g=b}s=-1===f||-1===p?null:{start:f,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Ur={focusedElem:l,selectionRange:s},Kt=!1,ls=null,ss=!1,Gl=r;do{try{Ns()}catch(E){if(null===Gl)throw Error(a(330));Ms(Gl,E),Gl=Gl.nextEffect}}while(null!==Gl);ls=null,Gl=r;do{try{for(l=e;null!==Gl;){var y=Gl.flags;if(16&y&&be(Gl.stateNode,""),128&y){var w=Gl.alternate;if(null!==w){var S=w.ref;null!==S&&("function"===typeof S?S(null):S.current=null)}}switch(1038&y){case 2:yl(Gl),Gl.flags&=-3;break;case 6:yl(Gl),Gl.flags&=-3,xl(Gl.alternate,Gl);break;case 1024:Gl.flags&=-1025;break;case 1028:Gl.flags&=-1025,xl(Gl.alternate,Gl);break;case 4:xl(Gl.alternate,Gl);break;case 8:Ol(l,s=Gl);var O=s.alternate;vl(s),null!==O&&vl(O)}Gl=Gl.nextEffect}}catch(E){if(null===Gl)throw Error(a(330));Ms(Gl,E),Gl=Gl.nextEffect}}while(null!==Gl);if(S=Ur,w=pr(),y=S.focusedElem,l=S.selectionRange,w!==y&&y&&y.ownerDocument&&fr(y.ownerDocument.documentElement,y)){null!==l&&hr(y)&&(w=l.start,void 0===(S=l.end)&&(S=w),"selectionStart"in y?(y.selectionStart=w,y.selectionEnd=Math.min(S,y.value.length)):(S=(w=y.ownerDocument||document)&&w.defaultView||window).getSelection&&(S=S.getSelection(),s=y.textContent.length,O=Math.min(l.start,s),l=void 0===l.end?O:Math.min(l.end,s),!S.extend&&O>l&&(s=l,l=O,O=s),s=dr(y,O),i=dr(y,l),s&&i&&(1!==S.rangeCount||S.anchorNode!==s.node||S.anchorOffset!==s.offset||S.focusNode!==i.node||S.focusOffset!==i.offset)&&((w=w.createRange()).setStart(s.node,s.offset),S.removeAllRanges(),O>l?(S.addRange(w),S.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),S.addRange(w))))),w=[];for(S=y;S=S.parentNode;)1===S.nodeType&&w.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"===typeof y.focus&&y.focus(),y=0;y<w.length;y++)(S=w[y]).element.scrollLeft=S.left,S.element.scrollTop=S.top}Kt=!!zr,Ur=zr=null,e.current=n,Gl=r;do{try{for(y=e;null!==Gl;){var x=Gl.flags;if(36&x&&hl(y,Gl.alternate,Gl),128&x){w=void 0;var _=Gl.ref;if(null!==_){var j=Gl.stateNode;switch(Gl.tag){case 5:w=j;break;default:w=j}"function"===typeof _?_(w):_.current=w}}Gl=Gl.nextEffect}}catch(E){if(null===Gl)throw Error(a(330));Ms(Gl,E),Gl=Gl.nextEffect}}while(null!==Gl);Gl=null,Lo(),Tl=o}else e.current=n;if(Ql)Ql=!1,Xl=e,Zl=t;else for(Gl=r;null!==Gl;)t=Gl.nextEffect,Gl.nextEffect=null,8&Gl.flags&&((x=Gl).sibling=null,x.stateNode=null),Gl=t;if(0===(r=e.pendingLanes)&&(Kl=null),1===r?e===rs?ns++:(ns=0,rs=e):ns=0,n=n.stateNode,Oo&&"function"===typeof Oo.onCommitFiberRoot)try{Oo.onCommitFiberRoot(So,n,void 0,64===(64&n.current.flags))}catch(E){}if(ps(e,Bo()),ql)throw ql=!1,e=Yl,Yl=null,e;return 0!==(8&Tl)||Go(),null}function Ns(){for(;null!==Gl;){var e=Gl.alternate;ss||null===ls||(0!==(8&Gl.flags)?et(Gl,ls)&&(ss=!0):13===Gl.tag&&jl(e,Gl)&&et(Gl,ls)&&(ss=!0));var t=Gl.flags;0!==(256&t)&&pl(e,Gl),0===(512&t)||Ql||(Ql=!0,$o(97,(function(){return Is(),null}))),Gl=Gl.nextEffect}}function Is(){if(90!==Zl){var e=97<Zl?97:Zl;return Zl=90,Ho(e,Ds)}return!1}function Rs(e,t){Jl.push(t,e),Ql||(Ql=!0,$o(97,(function(){return Is(),null})))}function As(e,t){es.push(t,e),Ql||(Ql=!0,$o(97,(function(){return Is(),null})))}function Ds(){if(null===Xl)return!1;var e=Xl;if(Xl=null,0!==(48&Tl))throw Error(a(331));var t=Tl;Tl|=32;var n=es;es=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"===typeof l)try{l()}catch(u){if(null===i)throw Error(a(330));Ms(i,u)}}for(n=Jl,Jl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var s=o.create;o.destroy=s()}catch(u){if(null===i)throw Error(a(330));Ms(i,u)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Tl=t,Go(),!0}function Ls(e,t,n){ui(e,t=ul(0,t=al(n,t),1)),t=us(),null!==(e=fs(e,1))&&(Wt(e,1,t),ps(e,t))}function Ms(e,t){if(3===e.tag)Ls(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ls(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){var o=cl(n,e=al(t,e),1);if(ui(n,o),o=us(),null!==(n=fs(n,1)))Wt(n,1,o),ps(n,o);else if("function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function zs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=us(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Il&n)===n&&(4===Dl||3===Dl&&(62914560&Il)===Il&&500>Bo()-Vl?Ss(e,0):Fl|=n),ps(e,t)}function Us(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Vo()?1:2:(0===is&&(is=Ml),0===(t=Bt(62914560&~is))&&(t=4194304))),n=us(),null!==(e=fs(e,t))&&(Wt(e,t,n),ps(e,n))}function Fs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bs(e,t,n,r){return new Fs(e,t,n,r)}function Vs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ws(e,t){var n=e.alternate;return null===n?((n=Bs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hs(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)Vs(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case _:return $s(n.children,o,i,t);case L:l=8,o|=16;break;case j:l=8,o|=1;break;case E:return(e=Bs(12,n,t,8|o)).elementType=E,e.type=E,e.lanes=i,e;case P:return(e=Bs(13,n,t,o)).type=P,e.elementType=P,e.lanes=i,e;case N:return(e=Bs(19,n,t,o)).elementType=N,e.lanes=i,e;case M:return Gs(n,o,i,t);case z:return(e=Bs(24,n,t,o)).elementType=z,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case k:l=9;break e;case T:l=11;break e;case I:l=14;break e;case R:l=16,r=null;break e;case A:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bs(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function $s(e,t,n,r){return(e=Bs(7,e,r,t)).lanes=n,e}function Gs(e,t,n,r){return(e=Bs(23,e,r,t)).elementType=M,e.lanes=n,e}function qs(e,t,n){return(e=Bs(6,e,null,t)).lanes=n,e}function Ys(e,t,n){return(t=Bs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ks(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Qs(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Xs(e,t,n,r){var o=t.current,i=us(),l=cs(o);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(mo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var u=n.type;if(mo(u)){n=bo(n,u,s);break e}}n=s}else n=uo;return null===t.context?t.context=n:t.pendingContext=n,(t=si(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ui(o,t),ds(o,l,i),l}function Zs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Js(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function eu(e,t){Js(e,t),(e=e.alternate)&&Js(e,t)}function tu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ks(e,t,null!=n&&!0===n.hydrate),t=Bs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ai(t),e[Xr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function nu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ru(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var l=o;o=function(){var e=Zs(a);l.call(e)}}Xs(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var s=o;o=function(){var e=Zs(a);s.call(e)}}bs((function(){Xs(t,a,e,o)}))}return Zs(a)}function ou(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nu(t))throw Error(a(200));return Qs(e,t,null,n)}$l=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fo.current)Aa=!0;else{if(0===(n&r)){switch(Aa=!1,t.tag){case 3:Ha(t),$i();break;case 5:Ri(t);break;case 1:mo(t.type)&&yo(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;so(Qo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ka(e,t,n):(so(Di,1&Di.current),null!==(t=nl(e,t,n))?t.sibling:null);so(Di,1&Di.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return tl(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),so(Di,Di.current),r)break;return null;case 23:case 24:return t.lanes=0,Ua(e,t,n)}return nl(e,t,n)}Aa=0!==(16384&e.flags)}else Aa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=ho(t,co.current),ri(t,n),o=oa(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mo(r)){var i=!0;yo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var l=r.getDerivedStateFromProps;"function"===typeof l&&hi(t,r,l,e),o.updater=mi,t.stateNode=o,o._reactInternals=t,yi(t,r,e,n),t=Wa(null,t,r,!0,i,n)}else t.tag=0,Da(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Vs(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===I)return 14}return 2}(o),e=Ko(o,e),i){case 0:t=Ba(null,t,o,e,n);break e;case 1:t=Va(null,t,o,e,n);break e;case 11:t=La(null,t,o,e,n);break e;case 14:t=Ma(null,t,o,Ko(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Ko(r,o),n);case 1:return r=t.type,o=t.pendingProps,Va(e,t,r,o=t.elementType===r?o:Ko(r,o),n);case 3:if(Ha(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,li(e,t),di(t,r,null,n),(r=t.memoizedState.element)===o)$i(),t=nl(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(zi=$r(t.stateNode.containerInfo.firstChild),Mi=t,i=Ui=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Gi.push(i);for(n=ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Da(e,t,r,n),$i();t=t.child}return t;case 5:return Ri(t),null===e&&Vi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Br(r,o)?l=null:null!==i&&Br(r,i)&&(t.flags|=16),Fa(e,t),Da(e,t,l,n),t.child;case 6:return null===e&&Vi(t),null;case 13:return Ka(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):Da(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Ko(r,o),n);case 7:return Da(e,t,t.pendingProps,n),t.child;case 8:case 12:return Da(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var s=t.type._context;if(so(Qo,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0===(i=lr(s,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===o.children&&!fo.current){t=nl(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&i)){1===s.tag&&((c=si(-1,n&-n)).tag=2,ui(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),ni(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Da(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.flags|=1,Da(e,t,r,n),t.child;case 14:return i=Ko(o=t.type,t.pendingProps),Ma(e,t,o,i=Ko(o.type,i),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ko(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mo(r)?(e=!0,yo(t)):e=!1,ri(t,n),vi(t,r,o),yi(t,r,o,n),Wa(null,t,r,!0,e,n);case 19:return tl(e,t,n);case 23:case 24:return Ua(e,t,n)}throw Error(a(156,t.tag))},tu.prototype.render=function(e){Xs(e,this._internalRoot,null,null)},tu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xs(null,e,null,(function(){t[Xr]=null}))},tt=function(e){13===e.tag&&(ds(e,4,us()),eu(e,4))},nt=function(e){13===e.tag&&(ds(e,67108864,us()),eu(e,67108864))},rt=function(e){if(13===e.tag){var t=us(),n=cs(e);ds(e,n,t),eu(e,n)}},ot=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=no(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Re=vs,Ae=function(e,t,n,r,o){var i=Tl;Tl|=4;try{return Ho(98,e.bind(null,t,n,r,o))}finally{0===(Tl=i)&&(Hl(),Go())}},De=function(){0===(49&Tl)&&(function(){if(null!==ts){var e=ts;ts=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ps(e,Bo())}))}Go()}(),Is())},Le=function(e,t){var n=Tl;Tl|=2;try{return e(t)}finally{0===(Tl=n)&&(Hl(),Go())}};var iu={Events:[eo,to,no,Ne,Ie,Is,{current:!1}]},au={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},lu={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{So=su.inject(lu),Oo=su}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iu,t.createPortal=ou,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(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Tl;if(0!==(48&n))return e(t);Tl|=1;try{if(e)return Ho(99,e.bind(null,t))}finally{Tl=n,Go()}},t.hydrate=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!0,n)},t.render=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nu(e))throw Error(a(40));return!!e._reactRootContainer&&(bs((function(){ru(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=vs,t.unstable_createPortal=function(e,t){return ou(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ru(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(19)},function(e,t,n){"use strict";var r,o,i,a;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,d=null,f=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(n){throw setTimeout(f,0),n}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(f,0))},o=function(e,t){d=setTimeout(e,t)},i=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,v=null,b=-1,y=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},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"):y=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,O=S.port2;S.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();w=e+y;try{v(!0,e)?O.postMessage(null):(g=!1,v=null)}catch(n){throw O.postMessage(null),n}}else g=!1},r=function(e){v=e,g||(g=!0,O.postMessage(null))},o=function(e,n){b=p((function(){e(t.unstable_now())}),n)},i=function(){h(b),b=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<E(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function j(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,s=e[l];if(void 0!==a&&0>E(a,n))void 0!==s&&0>E(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>E(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],k=[],T=1,P=null,N=3,I=!1,R=!1,A=!1;function D(e){for(var t=_(k);null!==t;){if(null===t.callback)j(k);else{if(!(t.startTime<=e))break;j(k),t.sortIndex=t.expirationTime,x(C,t)}t=_(k)}}function L(e){if(A=!1,D(e),!R)if(null!==_(C))R=!0,r(M);else{var t=_(k);null!==t&&o(L,t.startTime-e)}}function M(e,n){R=!1,A&&(A=!1,i()),I=!0;var r=N;try{for(D(n),P=_(C);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"===typeof a){P.callback=null,N=P.priorityLevel;var l=a(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?P.callback=l:P===_(C)&&j(C),D(n)}else j(C);P=_(C)}if(null!==P)var s=!0;else{var u=_(k);null!==u&&o(L,u.startTime-n),s=!1}return s}finally{P=null,N=r,I=!1}}var z=a;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(){R||I||(R=!0,r(M))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return _(C)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?l+a:l:a=l,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:T++,callback:n,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,x(k,e),null===_(C)&&e===_(k)&&(A?i():A=!0,o(L,a-l))):(e.sortIndex=s,x(C,e),R||I||(R=!0,r(M))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){e.exports=n(21)()},function(e,t,n){"use strict";var r=n(22);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array: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 n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports=n(24)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,S=r?Symbol.for("react.scope"):60119;function O(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case s:case l:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case g:case u:return e;default:return t}}case i:return t}}}function x(e){return O(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||O(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===c},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===g},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===l},t.isSuspense=function(e){return O(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===s||e===l||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===w||e.$$typeof===S||e.$$typeof===b)},t.typeOf=O},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,S=r?Symbol.for("react.scope"):60119;function O(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case s:case l:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case g:case u:return e;default:return t}}case i:return t}}}function x(e){return O(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||O(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===c},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===g},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===l},t.isSuspense=function(e){return O(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===s||e===l||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===w||e.$$typeof===S||e.$$typeof===b)},t.typeOf=O},function(e,t,n){"use strict";var r=60103,o=60106,i=60107,a=60108,l=60114,s=60109,u=60110,c=60112,d=60113,f=60120,p=60115,h=60116,m=60121,g=60122,v=60117,b=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;r=w("react.element"),o=w("react.portal"),i=w("react.fragment"),a=w("react.strict_mode"),l=w("react.profiler"),s=w("react.provider"),u=w("react.context"),c=w("react.forward_ref"),d=w("react.suspense"),f=w("react.suspense_list"),p=w("react.memo"),h=w("react.lazy"),m=w("react.block"),g=w("react.server.block"),v=w("react.fundamental"),b=w("react.debug_trace_mode"),y=w("react.legacy_hidden")}function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case p:case s:return e;default:return t}}case o:return t}}}var O=s,x=r,_=c,j=i,E=h,C=p,k=o,T=l,P=a,N=d;t.ContextConsumer=u,t.ContextProvider=O,t.Element=x,t.ForwardRef=_,t.Fragment=j,t.Lazy=E,t.Memo=C,t.Portal=k,t.Profiler=T,t.StrictMode=P,t.Suspense=N,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===c},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===h},t.isMemo=function(e){return S(e)===p},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===l},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===l||e===b||e===a||e===d||e===f||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===v||e.$$typeof===m||e[0]===g)},t.typeOf=S},function(e,t,n){"use strict";n(6);var r=n(2),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),l=a,s=0;s<a;s++)if(o[s]!==i[s]){l=s;break}var u=[];for(s=l;s<o.length;s++)u.push("..");return(u=u.concat(i.slice(l))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(o=!1,r=a+1),46===l?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(9))},function(e,t,n){var r=n(30),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(e){var r=n(32),o=n(33),i=n(34);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!s.TYPED_ARRAY_SUPPORT&&!(this instanceof s))return new s(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);s.TYPED_ARRAY_SUPPORT?(e=t).__proto__=s.prototype:e=f(e,t);return e}(e,t,n,r):"string"===typeof t?function(e,t,n){"string"===typeof n&&""!==n||(n="utf8");if(!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=l(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(s.isBuffer(t)){var n=0|p(t.length);return 0===(e=l(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||(r=t.length)!==r?l(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=l(e,t<0?0:0|p(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return j(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"===typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<l;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===s)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+s>l&&(n=l-s),i=n;i>=0;i--){for(var d=!0,f=0;f<s;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function w(e,t,n,r){return W(B(t,e.length-n),e,n,r)}function S(e,t,n,r){return W(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function O(e,t,n,r){return S(e,t,n,r)}function x(e,t,n,r){return W(V(t),e,n,r)}function _(e,t,n,r){return W(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function j(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,l,s,u=e[o],c=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128===(192&(i=e[o+1]))&&(s=(31&u)<<6|63&i)>127&&(c=s);break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(s=(15&u)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&l)&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(c=s)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=d}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.Buffer=s,t.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},t.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,n){return u(null,e,t,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?l(e,t):void 0!==n?"string"===typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}(null,e,t,n)},s.allocUnsafe=function(e){return d(null,e)},s.allocUnsafeSlow=function(e){return d(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):m.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){i=u[d],a=c[d];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=F(e[i]);return o}function N(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function A(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function L(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=s.prototype;else{var o=t-e;n=new s(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},s.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},s.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=s.isBuffer(e)?e:B(new s(e,r).toString()),l=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function W(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(31))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],l=r[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),c=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=255&t;2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[c++]=255&t);1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,l=0,s=n-o;l<s;l+=a)i.push(c(e,l,l+a>s?s:l+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l<s;++l)r[l]=a[l],o[a.charCodeAt(l)]=l;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var o,i,a=[],l=t;l<n;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<<l)-1,u=s>>1,c=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,u=8*i-o-1,c=(1<<u)-1,d=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+d>=1?f/s:f*Math.pow(2,1-d))*s>=2&&(a++,s/=2),a+d>=c?(l=0,a=c):a+d>=1?(l=(t*s-1)*Math.pow(2,o),a+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,u+=o;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";if(n.r(t),"object"!==typeof DjVu)throw new Error("There is no DjVu object! You have to include the DjVu.js library first!");var r=DjVu,o=n(2),i=n.n(o),a=n(4),l=n.n(a),s=(n(20),i.a.createContext(null));var u=function(e){e()};function c(){var e=u,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var d={notify:function(){},get:function(){return[]}};function f(e,t){var n,r=d;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=c())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=d)},getListeners:function(){return r}};return a}var p="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?o.useLayoutEffect:o.useEffect;var h=function(e){var t=e.store,n=e.context,r=e.children,a=Object(o.useMemo)((function(){var e=f(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),l=Object(o.useMemo)((function(){return t.getState()}),[t]);p((function(){var e=a.subscription;return e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,l]);var u=n||s;return i.a.createElement(u.Provider,{value:a},r)};function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var v=n(5),b=n.n(v),y=n(10),w=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],S=["reactReduxForwardedRef"],O=[],x=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function j(e,t,n){p((function(){return e.apply(void 0,t)}),n)}function E(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function C(e,t,n,r,o,i,a,l,s,u){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,o.current)}catch(p){n=p,d=p}n||(d=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function T(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,a=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,l=n.methodName,u=void 0===l?"connectAdvanced":l,c=n.renderCountProp,d=void 0===c?void 0:c,p=n.shouldHandleStateChanges,h=void 0===p||p,v=n.storeKey,T=void 0===v?"store":v,P=(n.withRef,n.forwardRef),N=void 0!==P&&P,I=n.context,R=void 0===I?s:I,A=g(n,w),D=R;return function(t){var n=t.displayName||t.name||"Component",r=a(n),l=m({},A,{getDisplayName:a,methodName:u,renderCountProp:d,shouldHandleStateChanges:h,storeKey:T,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=A.pure;var c=s?o.useMemo:function(e){return e()};function p(n){var r=Object(o.useMemo)((function(){var e=n.reactReduxForwardedRef,t=g(n,S);return[n.context,e,t]}),[n]),a=r[0],s=r[1],u=r[2],d=Object(o.useMemo)((function(){return a&&a.Consumer&&Object(y.isContextConsumer)(i.a.createElement(a.Consumer,null))?a:D}),[a,D]),p=Object(o.useContext)(d),v=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var b=v?n.store:p.store,w=Object(o.useMemo)((function(){return function(t){return e(t.dispatch,l)}(b)}),[b]),T=Object(o.useMemo)((function(){if(!h)return x;var e=f(b,v?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[b,v,p]),P=T[0],N=T[1],I=Object(o.useMemo)((function(){return v?p:m({},p,{subscription:P})}),[v,p,P]),R=Object(o.useReducer)(_,O,k),A=R[0][0],L=R[1];if(A&&A.error)throw A.error;var M=Object(o.useRef)(),z=Object(o.useRef)(u),U=Object(o.useRef)(),F=Object(o.useRef)(!1),B=c((function(){return U.current&&u===z.current?U.current:w(b.getState(),u)}),[b,A,u]);j(E,[z,M,F,u,B,U,N]),j(C,[h,b,P,w,z,M,F,U,N,L],[b,P,w]);var V=Object(o.useMemo)((function(){return i.a.createElement(t,m({},B,{ref:s}))}),[s,t,B]);return Object(o.useMemo)((function(){return h?i.a.createElement(d.Provider,{value:I},V):V}),[d,V,I])}var v=s?i.a.memo(p):p;if(v.WrappedComponent=t,v.displayName=p.displayName=r,N){var w=i.a.forwardRef((function(e,t){return i.a.createElement(v,m({},e,{reactReduxForwardedRef:t}))}));return w.displayName=r,w.WrappedComponent=t,b()(w,t)}return b()(v,t)}}function P(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function N(e,t){if(P(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!P(e[n[o]],t[n[o]]))return!1;return!0}function I(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function R(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=R(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=R(o),o=r(t,n)),o},r}}var D=[function(e){return"function"===typeof e?A(e):void 0},function(e){return e?void 0:I((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?I((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];var L=[function(e){return"function"===typeof e?A(e):void 0},function(e){return e?void 0:I((function(){return{}}))}];function M(e,t,n){return m({},n,e,t)}var z=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return M}}];var U=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function F(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function B(e,t,n,r,o){var i,a,l,s,u,c=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;function h(o,p){var h=!d(p,a),m=!c(o,i);return i=o,a=p,h&&m?(l=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):h?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):m?function(){var t=e(i,a),r=!f(t,l);return l=t,r&&(u=n(l,s,a)),u}():u}return function(o,c){return p?h(o,c):(l=e(i=o,a=c),s=t(r,a),u=n(l,s,a),p=!0,u)}}function V(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=g(t,U),a=n(e,i),l=r(e,i),s=o(e,i);return(i.pure?B:F)(a,l,s,e,i)}var W=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function H(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function G(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?T:n,o=t.mapStateToPropsFactories,i=void 0===o?L:o,a=t.mapDispatchToPropsFactories,l=void 0===a?D:a,s=t.mergePropsFactories,u=void 0===s?z:s,c=t.selectorFactory,d=void 0===c?V:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,c=void 0===s||s,f=a.areStatesEqual,p=void 0===f?$:f,h=a.areOwnPropsEqual,v=void 0===h?N:h,b=a.areStatePropsEqual,y=void 0===b?N:b,w=a.areMergedPropsEqual,S=void 0===w?N:w,O=g(a,W),x=H(e,i,"mapStateToProps"),_=H(t,l,"mapDispatchToProps"),j=H(n,u,"mergeProps");return r(d,m({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:_,initMergeProps:j,pure:c,areStatesEqual:p,areOwnPropsEqual:v,areStatePropsEqual:y,areMergedPropsEqual:S},O))}}var q=G();function Y(){return Object(o.useContext)(s)}function K(e){void 0===e&&(e=s);var t=e===s?Y:function(){return Object(o.useContext)(e)};return function(){return t().store}}var Q=K();function X(e){void 0===e&&(e=s);var t=e===s?Q:K(e);return function(){return t().dispatch}}var Z=X(),J=function(e,t){return e===t};function ee(e){void 0===e&&(e=s);var t=e===s?Y:function(){return Object(o.useContext)(e)};return function(e,n){void 0===n&&(n=J);var r=t(),i=function(e,t,n,r){var i,a=Object(o.useReducer)((function(e){return e+1}),0)[1],l=Object(o.useMemo)((function(){return f(n,r)}),[n,r]),s=Object(o.useRef)(),u=Object(o.useRef)(),c=Object(o.useRef)(),d=Object(o.useRef)(),h=n.getState();try{if(e!==u.current||h!==c.current||s.current){var m=e(h);i=void 0!==d.current&&t(m,d.current)?d.current:m}else i=d.current}catch(g){throw s.current&&(g.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),g}return p((function(){u.current=e,c.current=h,d.current=i,s.current=void 0})),p((function(){function e(){try{var e=n.getState();if(e===c.current)return;var r=u.current(e);if(t(r,d.current))return;d.current=r,c.current=e}catch(g){s.current=g}a()}return l.onStateChange=e,l.trySubscribe(),e(),function(){return l.tryUnsubscribe()}}),[n,l]),i}(e,n,r.store,r.subscription);return Object(o.useDebugValue)(i),i}}var te,ne=ee();te=a.unstable_batchedUpdates,u=te;var re=n(1);function oe(e,t){return e===t}function ie(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function ae(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}var le=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),l=ae(r),s=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),u=e((function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return s.apply(null,e)}));return u.resultFunc=a,u.dependencies=l,u.recomputations=function(){return i},u.resetRecomputations=function(){return i=0},u}}((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,n=null,r=null;return function(){return ie(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}));function se(e){for(const t in e)null===e[t]&&(e[t]=t);return Object.freeze(e)}var ue=se({TRANSLATION_PAGE_URL:"https://github.com/RussCoder/djvujs/blob/master/TRANSLATION.md",DEFAULT_DPI:100,TEXT_CURSOR_MODE:null,GRAB_CURSOR_MODE:null,TEXT_MODE:"text",CONTINUOUS_SCROLL_MODE:"continuous",SINGLE_PAGE_MODE:"single",SET_CURSOR_MODE_ACTION:null,ERROR_ACTION:null,CREATE_DOCUMENT_FROM_ARRAY_BUFFER_ACTION:null,CONTENTS_IS_GOTTEN_ACTION:null,ARRAY_BUFFER_LOADED_ACTION:null,IMAGE_DATA_RECEIVED_ACTION:null,DOCUMENT_CREATED_ACTION:null,SET_NEW_PAGE_NUMBER_ACTION:null,SET_PAGE_BY_URL_ACTION:null,TOGGLE_FULL_PAGE_VIEW_ACTION:null,PAGE_TEXT_FETCHED_ACTION:null,SET_USER_SCALE_ACTION:null,START_FILE_LOADING_ACTION:null,END_FILE_LOADING_ACTION:null,FILE_LOADING_PROGRESS_ACTION:null,SHOW_HELP_WINDOW_ACTION:null,CLOSE_HELP_WINDOW_ACTION:null,CLOSE_DOCUMENT_ACTION:null,SET_PAGE_ROTATION_ACTION:null,PAGE_ERROR_ACTION:null,PAGE_IS_LOADED_ACTION:null,PAGES_SIZES_ARE_GOTTEN:null,DROP_PAGE_ACTION:null,DROP_ALL_PAGES_ACTION:null,SET_API_CALLBACK_ACTION:null});const ce=se({LOAD_DOCUMENT_BY_URL:null,CONFIGURE:null,LOAD_DOCUMENT:null,UPDATE_OPTIONS:null,SET_IMAGE_PAGE_ERROR:null,SET_TEXT_PAGE_ERROR:null,START_TO_BUNDLE:null,FINISH_TO_BUNDLE:null,CLOSE_SAVE_DIALOG:null,OPEN_SAVE_DIALOG:null,UPDATE_FILE_PROCESSING_PROGRESS:null,ERROR:null,SAVE_DOCUMENT:null,SET_UI_OPTIONS:null,TOGGLE_OPTIONS_WINDOW:null,CLOSE_ERROR_WINDOW:null,DESTROY:null,OPEN_PRINT_DIALOG:null,CLOSE_PRINT_DIALOG:null,PREPARE_PAGES_FOR_PRINTING:null,START_PRINTING:null,UPDATE_PRINT_PROGRESS:null,CLOSE_CONTENTS:null,TOGGLE_CONTENTS:null,PIN_TOOLBAR:null,UNPIN_TOOLBAR:null,UPDATE_APP_CONTEXT:null,SET_VIEW_MODE:null}),de=Object.freeze({isFileLoading:!1,loadedBytes:0,totalBytes:0});function fe(e=de,t){switch(t.type){case ue.START_FILE_LOADING_ACTION:return{...e,isFileLoading:!0};case ue.FILE_LOADING_PROGRESS_ACTION:return{...e,loadedBytes:t.loaded,totalBytes:t.total};case ue.END_FILE_LOADING_ACTION:case ce.ERROR:return de;default:return e}}const pe=e=>le((e=>e.fileLoadingState),e),he={isFileLoading:pe((e=>e.isFileLoading)),loadedBytes:pe((e=>e.loadedBytes)),totalBytes:pe((e=>e.totalBytes))},me=Object.freeze({imageData:null,imageDpi:null,pageText:null,textZones:null,imagePageError:null,textPageError:null}),ge=Object.freeze({...me,cursorMode:ue.GRAB_CURSOR_MODE,currentPageNumber:1,shouldScrollToPage:!1,pageList:[],pageSizeList:[]});function ve(e=ge,t){const n=t.payload;switch(t.type){case ue.DROP_PAGE_ACTION:{const n=[...e.pageList],r=t.pageNumber-1;return n[r]&&(n[r]={width:n[r].width,height:n[r].height,dpi:n[r].dpi}),{...e,pageList:n}}case ue.DROP_ALL_PAGES_ACTION:return{...e,pageList:[...e.pageSizeList]};case ue.PAGES_SIZES_ARE_GOTTEN:return{...e,isLoading:!1,pageSizeList:t.sizes,pageList:t.sizes};case ue.PAGE_IS_LOADED_ACTION:const r=e.pageList[t.pageNumber-1];if(r&&r.url)return e;const o=[...e.pageList];return o[t.pageNumber-1]=t.pageData,{...e,pageList:o};case ue.SET_CURSOR_MODE_ACTION:return{...e,cursorMode:t.cursorMode};case ue.IMAGE_DATA_RECEIVED_ACTION:return{...e,imageData:t.imageData,imageDpi:t.imageDpi};case ue.SET_NEW_PAGE_NUMBER_ACTION:return{...e,...e.textPageError||e.imagePageError?me:null,shouldScrollToPage:t.shouldScrollToPage,currentPageNumber:t.pageNumber};case ce.SET_VIEW_MODE:if(n===ue.CONTINUOUS_SCROLL_MODE)return{...e,...me};break;case ue.PAGE_TEXT_FETCHED_ACTION:return{...e,pageText:t.pageText,textZones:t.textZones};case ce.SET_IMAGE_PAGE_ERROR:return{...e,imagePageError:n};case ce.SET_TEXT_PAGE_ERROR:return{...e,textPageError:n}}return e}const be=e=>le((e=>e.pageState),e),ye={cursorMode:be((e=>e.cursorMode)),pageText:be((e=>e.pageText)),imageData:be((e=>e.imageData)),imageDpi:be((e=>e.imageDpi)),textZones:be((e=>e.textZones)),currentPageNumber:be((e=>e.currentPageNumber)),shouldScrollToPage:be((e=>e.shouldScrollToPage)),imagePageError:be((e=>e.imagePageError)),textPageError:be((e=>e.textPageError)),pageList:be((e=>e.pageList)),pageSizeList:be((e=>e.pageSizeList))};var we={en:{englishName:"English",nativeName:"English",Language:"Language","Add more":"Add more","The translation isn't complete.":"The translation isn't complete.","The following phrases are not translated:":"The following phrases are not translated:","You can improve the translation here":"You can improve the translation here","#helpButton - learn more about the app":"#helpButton - learn more about the app","#optionsButton - see the available options":"#optionsButton - see the available options","powered with":"powered with","Drag & Drop a file here or click to choose manually":"Drag & Drop a file here or click to choose manually","Paste a URL to a djvu file here":"Paste a URL to a djvu file here","Open URL":"Open URL",'Enter a valid URL (it should start with "http(s)://")':'Enter a valid URL (it should start with "http(s)://")',Error:"Error","Error on page":"Error on page","Network error":"Network error","Check your network connection":"Check your network connection","Web request error":"Web request error","404 Document not found":"404 Document not found","403 Access forbidden":"403 Access forbidden","500 Internal server error":"500 Internal server error","The request failed with HTTP status #status":"The request failed with HTTP status #status","DjVu file is corrupted":"DjVu file is corrupted","The file doesn't comply with the DjVu format specification or it's not a whole DjVu document":"The file doesn't comply with the DjVu format specification or it's not a whole DjVu document","Incorrect file format":"Incorrect file format","The provided file is not a DjVu document":"The provided file is not a DjVu document","Incorrect page number":"Incorrect page number","There is no page with the number #pageNumber":"There is no page with the number #pageNumber","No base URL for an indirect DjVu document":"No base URL for an indirect DjVu document","You probably opened an indirect (multi-file) DjVu document manually.":"You probably opened an indirect (multi-file) DjVu document manually.","But such multi-file documents can be only loaded by URL.":"But such multi-file documents can be only loaded by URL.","Unexpected error":"Unexpected error","Cannot print the error, look in the console":"Cannot print the error, look in the console",Options:"Options","Show options window":"Show options window","Color theme":"Color theme","Extension options":"Extension options","Open all links with .djvu at the end via the viewer":"Open all links with .djvu at the end via the viewer","All links to .djvu files will be opened by the viewer via a simple click on a link":"All links to .djvu files will be opened by the viewer via a simple click on a link","Detect .djvu files by means of http headers":"Detect .djvu files by means of http headers","Analyze headers of every new tab in order to process even links which do not end with the .djvu extension":"Analyze headers of every new tab in order to process even links which do not end with the .djvu extension",Ready:"Ready",Loading:"Loading","Show help window":"Show help window","Switch full page mode":"Switch full page mode","Choose a file":"Choose a file","Close document":"Close document","Save document":"Save document",Save:"Save","Open another .djvu file":"Open another .djvu file","The application for viewing .djvu files in the browser.":"The application for viewing .djvu files in the browser.","If something doesn't work properly, feel free to write about the problem at #email.":"If something doesn't work properly, feel free to write about the problem at #email.","The official website is #website.":"The official website is #website.","The source code is available on #link.":"The source code is available on #link.",Hotkeys:"Hotkeys","save the document":"save the document","go to the previous page":"go to the previous page","go to the next page":"go to the next page",Controls:"Controls","#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.":"#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.","If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.":"If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.","Continuous scroll view mode":"Continuous scroll view mode","Single page view mode":"Single page view mode","Text view mode":"Text view mode","Click on the number to enter it manually":"Click on the number to enter it manually","Rotate the page":"Rotate the page","You also can scale the page via Ctrl+MouseWheel":"You also can scale the page via Ctrl+MouseWheel","Text cursor mode":"Text cursor mode","Grab cursor mode":"Grab cursor mode","Table of contents":"Table of contents","Toolbar is always shown":"Toolbar is always shown","Toolbar automatically hides":"Toolbar automatically hides",Contents:"Contents","No contents provided":"No contents provided","The link points to another document. Do you want to proceed?":"The link points to another document. Do you want to proceed?","No text on this page":"No text on this page","You are trying to save an indirect (multi-file) document.":"You are trying to save an indirect (multi-file) document.","What exactly do you want to do?":"What exactly do you want to do?","Save only index file":"Save only index file","Download, bundle and save the whole document as one file":"Download, bundle and save the whole document as one file","Downloading and bundling the document":"Downloading and bundling the document","The document has been downloaded and bundled into one file successfully":"The document has been downloaded and bundled into one file successfully","Print document":"Print document","Pages must be rendered before printing.":"Pages must be rendered before printing.","It may take a while.":"It may take a while.","Select the pages you want to print.":"Select the pages you want to print.",From:"From",to:"to","Prepare pages for printing":"Prepare pages for printing","Preparing pages for printing":"Preparing pages for printing",Menu:"Menu",Document:"Document",About:"About",Print:"Print",Close:"Close","View mode":"View mode",Scale:"Scale",Rotation:"Rotation","Cursor mode":"Cursor mode","Full page mode":"Full page mode","Fullscreen mode":"Fullscreen mode"},ru:{englishName:"Russian",nativeName:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",Language:"\u042f\u0437\u044b\u043a","Add more":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0435","The translation isn't complete.":"\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0435\u043f\u043e\u043b\u043d\u044b\u0439.","The following phrases are not translated:":"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0440\u0430\u0437\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u044b:","You can improve the translation here":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0442\u0443\u0442","#helpButton - learn more about the app":"#helpButton - \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435","#optionsButton - see the available options":"#optionsButton - \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a","powered with":"\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043e \u043d\u0430","Drag & Drop a file here or click to choose manually":"\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u043a\u043b\u0438\u043a\u043d\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e","Paste a URL to a djvu file here":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 .djvu \u0444\u0430\u0439\u043b","Open URL":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",'Enter a valid URL (it should start with "http(s)://")':'\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 (\u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 "http(s)://")',Error:"\u041e\u0448\u0438\u0431\u043a\u0430","Error on page":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435","Network error":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0442\u0438","Check your network connection":"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0432\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435","Web request error":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u0435\u0431-\u0437\u0430\u043f\u0440\u043e\u0441\u0430","404 Document not found":"404 \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d","403 Access forbidden":"403 \u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","500 Internal server error":"500 \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430","The request failed with HTTP status #status":"\u0417\u0430\u043f\u0440\u043e\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0441\u044f \u0441 HTTP-\u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c #status","DjVu file is corrupted":"DjVu-\u0444\u0430\u0439\u043b \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d","The file doesn't comply with the DjVu format specification or it's not a whole DjVu document":"\u0424\u0430\u0439\u043b \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 DjVu, \u0438\u043b\u0438 \u0436\u0435 \u044d\u0442\u043e \u043d\u0435 \u0432\u0435\u0441\u044c DjVu-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442","Incorrect file format":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0444\u0430\u0439\u043b\u0430","The provided file is not a DjVu document":"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f DjVu-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043c","Incorrect page number":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","There is no page with the number #pageNumber":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u043d\u043e\u043c\u0435\u0440\u043e\u043c #pageNumber \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442","No base URL for an indirect DjVu document":"\u041d\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430","You probably opened an indirect (multi-file) DjVu document manually.":"\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0432\u044b \u043e\u0442\u043a\u0440\u044b\u043b\u0438 \u043c\u043d\u043e\u0433\u043e\u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 (indirect) DjVu-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e.","But such multi-file documents can be only loaded by URL.":"\u041e\u0434\u043d\u0430\u043a\u043e, \u0442\u0430\u043a\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435.","Unexpected error":"\u041d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","Cannot print the error, look in the console":"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0432\u0438\u0434\u0435, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c",Options:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","Show options window":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043e\u043a\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a","Color theme":"\u0426\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430","Extension options":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f","Open all links with .djvu at the end via the viewer":"\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0441 .djvu \u043d\u0430 \u043a\u043e\u043d\u0446\u0435 \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435","All links to .djvu files will be opened by the viewer via a simple click on a link":"\u0412\u0441\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 .djvu \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u043a\u043b\u0438\u043a\u0443 \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0435","Detect .djvu files by means of http headers":"\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c .djvu \u0444\u0430\u0439\u043b\u044b \u043f\u043e http \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c","Analyze headers of every new tab in order to process even links which do not end with the .djvu extension":'\u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ".djvu" \u0432 \u0441\u0441\u044b\u043b\u043a\u0435',Ready:"\u0413\u043e\u0442\u043e\u0432\u043e",Loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","Show help window":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043a\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043a\u0438","Switch full page mode":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c","Choose a file":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b","Close document":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442","Save document":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442",Save:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","Open another .djvu file":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 .djvu \u0444\u0430\u0439\u043b","The application for viewing .djvu files in the browser.":"\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 .djvu \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.","If something doesn't work properly, feel free to write about the problem at #email.":"\u0415\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430 #email.","The official website is #website.":"\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442 #website.","The source code is available on #link.":"\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 #link.",Hotkeys:"\u0413\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438","save the document":"\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442","go to the previous page":"\u043f\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435","go to the next page":"\u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435",Controls:"\u041a\u043d\u043e\u043f\u043a\u0438","#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.":"#expandIcon \u0438 #collapseIcon \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.","If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.":"\u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0442\u043e \u044d\u0442\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0441\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.","Continuous scroll view mode":"\u0420\u0435\u0436\u0438\u043c \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438","Single page view mode":"\u041e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c","Text view mode":"\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0436\u0438\u043c","Click on the number to enter it manually":"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443, \u0447\u0442\u043e\u0431\u044b \u0432\u0432\u0435\u0441\u0442\u0438 \u0435\u0433\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e","Rotate the page":"\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443","You also can scale the page via Ctrl+MouseWheel":"\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0447\u0435\u0440\u0435\u0437 Ctrl+\u041a\u043e\u043b\u0435\u0441\u043e \u043c\u044b\u0448\u0438","Text cursor mode":"\u041a\u0443\u0440\u0441\u043e\u0440 \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430","Grab cursor mode":"\u0420\u0435\u0436\u0438\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f","Table of contents":"\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435","Toolbar is always shown":"\u041f\u0430\u043d\u0435\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f","Toolbar automatically hides":"\u041f\u0430\u043d\u0435\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f",Contents:"\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435","No contents provided":"\u041d\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f","The link points to another document. Do you want to proceed?":"\u0421\u0441\u044b\u043b\u043a\u0430 \u0432\u0435\u0434\u0435\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442. \u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c?","No text on this page":"\u041d\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435","You are trying to save an indirect (multi-file) document.":"\u0412\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.","What exactly do you want to do?":"\u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c?","Save only index file":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b","Download, bundle and save the whole document as one file":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c, \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043e\u0434\u043d\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c","Downloading and bundling the document":"\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442","The document has been downloaded and bundled into one file successfully":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0431\u044b\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u043d \u0438 \u0441\u043e\u0431\u0440\u0430\u043d \u0432 \u0435\u0434\u0438\u043d\u044b\u0439 \u0444\u0430\u0439\u043b","Print document":"\u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442","Pages must be rendered before printing.":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u044b \u043f\u0435\u0440\u0435\u0434 \u043f\u0435\u0447\u0430\u0442\u044c\u044e.","It may take a while.":"\u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.","Select the pages you want to print.":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c.",From:"\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441",to:"\u043f\u043e","Prepare pages for printing":"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043a \u043f\u0435\u0447\u0430\u0442\u0438","Preparing pages for printing":"\u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043a \u043f\u0435\u0447\u0430\u0442\u0438",Menu:"\u041c\u0435\u043d\u044e",Document:"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442",About:"\u041e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438",Print:"\u041f\u0435\u0447\u0430\u0442\u044c",Close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c","View mode":"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430",Scale:"\u041c\u0430\u0441\u0448\u0442\u0430\u0431",Rotation:"\u041f\u043e\u0432\u043e\u0440\u043e\u0442","Cursor mode":"\u041a\u0443\u0440\u0441\u043e\u0440","Full page mode":"\u041f\u043e\u043b\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c","Fullscreen mode":"\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"},sv:{englishName:"Swedish",nativeName:"Svenska",Language:"Spr\xe5k","Add more":"L\xe4gg till mer","The translation isn't complete.":"\xd6vers\xe4ttningen \xe4r inte klar.","The following phrases are not translated:":"F\xf6ljande meningar \xe4r inte \xf6versatta:","You can improve the translation here":"Du kan f\xf6rtydliga \xf6vers\xe4ttningen h\xe4r","#helpButton - learn more about the app":"#helpButton - l\xe4r dig mer om applikationen","#optionsButton - see the available options":"#optionsButton - Se tillg\xe4ngliga alternativ","powered with":"baserat p\xe5","Drag & Drop a file here or click to choose manually":"Dra och sl\xe4pp en fil h\xe4r eller klicka f\xf6r att v\xe4lja en manuellt","Paste a URL to a djvu file here":"Klistra in en URL till en .djvu-fil h\xe4r","Open URL":"\xd6ppna URL",'Enter a valid URL (it should start with "http(s)://")':'Ange en giltig URL (den ska b\xf6rja med "http (s): //")',Error:"Fel","Error on page":"Felaktigheter p\xe5 sidan","Network error":"N\xe4tverksfel","Check your network connection":"Kontrollera n\xe4tverksanslutningen","Web request error":"Fel vid webbeg\xe4rning","404 Document not found":"404 Dokument hittas inte","403 Access forbidden":"403 \xc5tkomst f\xf6rbjuden","500 Internal server error":"500 Internt serverfel","The request failed with HTTP status #status":"TBeg\xe4ran misslyckades med http-status #status","DjVu file is corrupted":"DjVu-filen \xe4r korrupt:","The file doesn't comply with the DjVu format specification or it's not a whole DjVu document":"Filen \xf6verensst\xe4mmer inte med specificerat DjVu-format eller s\xe5 \xe4r dokumentet inte komplett","Incorrect file format":"Felaktigt filformat","The provided file is not a DjVu document":"Den angivna filen \xe4r inte ett DjVu-dokument","Incorrect page number":"Felaktigt sidnummer","There is no page with the number #pageNumber":"Felaktigt sidnummer #pageNumber","No base URL for an indirect DjVu document":"Ingen bas-URL f\xf6r ett indirekt DjVu-dokument","You probably opened an indirect (multi-file) DjVu document manually.":"Du \xf6ppnade troligen ett indirekt DjVu-dokument (med flera filer) manuellt.","But such multi-file documents can be only loaded by URL.":"Dokument med flera filer kan endast laddas med URL.","Unexpected error":"Ett ov\xe4ntat fel uppstod","Cannot print the error, look in the console":"Kunde inte skriva ut felet, titta i konsolen",Options:"Alternativ","Show options window":"Visa f\xf6nster med alternativ","Color theme":"F\xe4rgtema","Extension options":"F\xf6rl\xe4ngningsalternativ","Open all links with .djvu at the end via the viewer":"\xd6ppna alla l\xe4nkar med .djvu via webbl\xe4saren","All links to .djvu files will be opened by the viewer via a simple click on a link":"Alla l\xe4nkar till .djvu-filer kommer \xf6ppnas i l\xe4saren","Detect .djvu files by means of http headers":"Uppt\xe4ck .djvu-filer med hj\xe4lp av HTTP-rubriker","Analyze headers of every new tab in order to process even links which do not end with the .djvu extension":'Analysera rubriker p\xe5 alla nya flikar f\xf6r att k\xe4nna av om l\xe4nkar \xe4r av .djvu-format (\xe4ven l\xe4nkar som inte slutar med ".djvu"',Ready:"Klar",Loading:"Laddar","Show help window":"Visa hj\xe4lpsida","Switch full page mode":"\xc4ndra visningsl\xe4ge till helsida","Choose a file":"V\xe4lj en fil","Close document":"St\xe4ng dokument","Save document":"Spara dokument",Save:"Spara","Open another .djvu file":"\xd6ppna ytterligare en .djvu-fil","The application for viewing .djvu files in the browser.":"Applikation f\xf6r att se .djvu-filer i browsern.","If something doesn't work properly, feel free to write about the problem at #email.":"Om n\xe5got inte fungerar korrekt, v\xe4nligen kontakta #email.","The official website is #website.":"Den officiella webbsidan \xe4r #website.","The source code is available on #link.":"K\xe4llkoden \xe4r tillg\xe4nglig p\xe5 #link.",Hotkeys:"Tangebords-genv\xe4gar","save the document":"spara dokument","go to the previous page":"g\xe5 till f\xf6reg\xe5ende sida","go to the next page":"g\xe5 till n\xe4sta sida",Controls:"Kontroller","#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.":"Knapparna #expandIcon och #collapseIcon anv\xe4nds f\xf6r att v\xe4cla visningsl\xe4ge till helsida och tillbaka.","If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.":"Om du anv\xe4nder till\xe4gget i browsern kommer dessa knappar inte att fungera d\xe5 visningsprogrammet hanterar hela sidan som standard.","Continuous scroll view mode":"Visningsl\xe4ge med kontinuerlig scrolling","Single page view mode":"Visningsl\xe4ge med en sida","Text view mode":"Visningsl\xe4ge med text","Click on the number to enter it manually":"Du kan klicka p\xe5 sidnumret f\xf6r att ange det manuellt","Rotate the page":"Rotera sidan","You also can scale the page via Ctrl+MouseWheel":"Du kan ocks\xe5 skala sidan genom att anv\xe4nda Ctrl + Skrollknappen p\xe5 musen","Text cursor mode":"Visningsl\xe4ge med textmark\xf6r","Grab cursor mode":"Visningsl\xe4ge med greppbart mark\xf6rl\xe4ge","Table of contents":null,"Toolbar is always shown":null,"Toolbar automatically hides":null,Contents:"Inneh\xe5ll","No contents provided":"Inget inneh\xe5ll har givits","The link points to another document. Do you want to proceed?":"L\xe4nken vidarebefodrar till ett annat dokument. Vill du forts\xe4tta?","No text on this page":"Ingen text finns p\xe5 denna sida","You are trying to save an indirect (multi-file) document.":"Du f\xf6rs\xf6ker spara ett indirekt dokument (flera filer).","What exactly do you want to do?":"Vad vill du g\xf6ra?","Save only index file":"Spara endast index-fil","Download, bundle and save the whole document as one file":"Ladda ner, packa ihop och spara hela dokumentet som en fil","Downloading and bundling the document":"Laddar ner och packer ihop dokumentet","The document has been downloaded and bundled into one file successfully":"Dokumentet har laddats ner och packats ihop till en fil","Print document":"Skriv ut","Pages must be rendered before printing.":"Sidorna m\xe5ste renderas f\xf6re utskrift.","It may take a while.":"Det kan ta en stund.","Select the pages you want to print.":"V\xe4lj de sidor du vill skriva ut.",From:"Fr\xe5n",to:"till","Prepare pages for printing":"F\xf6rbered sidor f\xf6r utskrift","Preparing pages for printing":"F\xf6rbereder sidor f\xf6r utskrift",Menu:null,Document:null,About:null,Print:null,Close:null,"View mode":null,Scale:null,Rotation:null,"Cursor mode":null,"Full page mode":null,"Fullscreen mode":null},fr:{englishName:"French",nativeName:"Fran\xe7ais",Language:"Langue","Add more":"Ajouter une traduction","The translation isn't complete.":"La traduction n'est pas termin\xe9e.","The following phrases are not translated:":"Les assertions suivantes n'ont pas \xe9t\xe9 traduites:","You can improve the translation here":"Vous pouvez am\xe9liorer la traduction ici","#helpButton - learn more about the app":"#helpButton - \xe0 propos","#optionsButton - see the available options":"#optionsButton - options disponibles","powered with":"bas\xe9 sur","Drag & Drop a file here or click to choose manually":"Glisser-D\xe9poser ici un fichier, ou cliquer pour le slectionner manuellement","Paste a URL to a djvu file here":"Copier un lien vers un fichier .djvu","Open URL":"Ouvrir le lien",'Enter a valid URL (it should start with "http(s)://")':'Ins\xe9rer une URL valide (doit commencer par "http(s)://")',Error:"Erreur","Error on page":"Erreur dans la page","Network error":"Erreur de r\xe9seau","Check your network connection":"V\xe9rifier votre connexion internet","Web request error":"Erreur de requ\xeate web","404 Document not found":"404 Document non trouv\xe9","403 Access forbidden":"403 Acc\xe8s interdit","500 Internal server error":"500 Erreur interne du serveur","The request failed with HTTP status #status":"La requ\xeate a \xe9chou\xe9e avec le statut HTTP #status","DjVu file is corrupted":"Le fichier DjVu est corrompu","The file doesn't comply with the DjVu format specification or it's not a whole DjVu document":"Le fichier ne respecte pas la sp\xe9cification du format DjVu ou il s'agit d'un document DjVu incomplet","Incorrect file format":"Format de fichier incorrect","The provided file is not a DjVu document":"Le fichier fourni n'est pas un document DjVu","Incorrect page number":"Num\xe9ro de page incorrect","There is no page with the number #pageNumber":"Il n'existe pas de page avec le num\xe9ro #pageNumber","No base URL for an indirect DjVu document":"URL de base manquante du document DjVu indirect (multi-fichier)","You probably opened an indirect (multi-file) DjVu document manually.":"Vous avez probablement ouvert manuellement un document DjVu indirect (multi-fichier).","But such multi-file documents can be only loaded by URL.":"Mais de tels documents multi-fichier ne peuvent \xeatre ouvert que par URL","Unexpected error":"Erreur inconnue","Cannot print the error, look in the console":"Impossible de rapporter l'erreur, regarder dans la console.",Options:"Options","Show options window":"Afficher la fen\xeatre d'option","Color theme":"Changer de th\xe8me","Extension options":"Options de l'extension","Open all links with .djvu at the end via the viewer":"Ouvrir tous les li\u0435ns .djvu avec l'extension","All links to .djvu files will be opened by the viewer via a simple click on a link":"Tous les liens .djvu seront ouverts avec l'extension en cliquant simplement sur le lien","Detect .djvu files by means of http headers":"Identifier les fichiers .djvu par leur en-t\xeate http","Analyze headers of every new tab in order to process even links which do not end with the .djvu extension":"Analyser les en-t\xeates de chaque nouvel onglet pour identifier les fichiers m\xeame sans l'extension .djvu en fin de lien",Ready:"Pr\xeat",Loading:"Chargement","Show help window":"Afficher la fen\xeatre d'aide","Switch full page mode":"Passer en mode pleine page","Choose a file":"Choisir un fichier","Close document":"Fermer le document","Save document":"Enregistrer le document",Save:"Enregistrer","Open another .djvu file":"Ouvrir un autre fichier .djvu","The application for viewing .djvu files in the browser.":"Une application pour afficher des fichiers .djvu dans le naviguateur.","If something doesn't work properly, feel free to write about the problem at #email.":"Si quelque chose ne fonctionne pas correctement, vous pouvez \xe9crire \xe0 #email.","The official website is #website.":"Le site officiel est #website.","The source code is available on #link.":"Le code source est disponible \xe0 l'adresse: #link.",Hotkeys:"Raccourcis Clavier","save the document":"enregistrer le document","go to the previous page":"page pr\xe9c\xe9dente","go to the next page":"page suivante",Controls:"Boutons","#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.":"#expandIcon & #collapseIcon permettent de passer en mode pleine page et inversement.","If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.":"Si vous utilisez l'extension pour navigateur, ces boutons n'auront aucun effet, car l'application occupe d\xe9j\xe0 toute la page.","Continuous scroll view mode":"Mode d\xe9filement continu","Single page view mode":"Mode page unique","Text view mode":"Mode texte","Click on the number to enter it manually":"Cliquer sur le nombre pour en saisir un manuellement","Rotate the page":"Faire pivoter la page","You also can scale the page via Ctrl+MouseWheel":"Vous pouvez \xe9galement ajuster la page avec Ctrl+Molette","Text cursor mode":"Curseur pour mettre le texte en surbrillance","Grab cursor mode":"D\xe9filement glisser-d\xe9poser","Table of contents":"Table des mati\xe8res","Toolbar is always shown":"Les contr\xf4les sont toujours affich\xe9s","Toolbar automatically hides":"Les contr\xf4les se masquent automatiquement",Contents:"Table des mati\xe8res","No contents provided":"Pas de sommaire","The link points to another document. Do you want to proceed?":"Le lien redirige vers un autre document. Voulez-vous continuer ?","No text on this page":"Pas de texte dans cette page","You are trying to save an indirect (multi-file) document.":"Vous essayez d'enregistrer un document multi-fichier ","What exactly do you want to do?":"Que voulez-vous faire ?","Save only index file":"Enregistrer uniquement le fichier racine","Download, bundle and save the whole document as one file":"T\xe9l\xe9charger, rassembler & sauveguarder l'ensemble du document dans un seul fichier","Downloading and bundling the document":"T\xe9l\xe9chargement & assemblage du document","The document has been downloaded and bundled into one file successfully":"Le document a \xe9t\xe9 t\xe9l\xe9charg\xe9, rassembl\xe9 & sauveguard\xe9 dans un seul fichier avec succ\xe8s","Print document":"Imprimer le document","Pages must be rendered before printing.":"Les pages doivent \xeatre rendues avant impression","It may take a while.":"Cela peut prendre un moment","Select the pages you want to print.":"S\xe9lectionner la page \xe0 imprimer",From:"De",to:"\xe0","Prepare pages for printing":"Pr\xe9parer les pages pour l'impression","Preparing pages for printing":"Pr\xe9paration des pages pour l'impression",Menu:"Menu",Document:"Document",About:"\xc0 propos",Print:"Imprimer",Close:"Fermer","View mode":"Mode de vue",Scale:"Taille",Rotation:"Rotation","Cursor mode":"Mode de curseur","Full page mode":"Page entier","Fullscreen mode":"Plein \xe9cran"},it:{englishName:"Italian",nativeName:"Italiano",Language:"Lingua","Add more":"Aggiungi traduzione","The translation isn't complete.":"La traduzione non \xe8 completa","The following phrases are not translated:":"Le seguenti frasi non sono tradotte:","You can improve the translation here":"Migliora la traduzione qui","#helpButton - learn more about the app":"#helpButton - Istruzioni all'uso dell'app","#optionsButton - see the available options":"#optionsButton - Opzioni disponibili","powered with":"Powered with","Drag & Drop a file here or click to choose manually":"Trascina e rilascia qui il file DjVu o fai clic per selezionarlo manualmente","Paste a URL to a djvu file here":"Incolla qui l'URL al file DjVu","Open URL":"Apri URL",'Enter a valid URL (it should start with "http(s)://")':'Inserire un URL valido (deve iniziare con "http(s)://")',Error:"Errore","Error on page":"Errore nella pagina","Network error":"Errore di rete","Check your network connection":"Controlla la connessione di rete","Web request error":"Errore richiesta web","404 Document not found":"404 Documento non trovato","403 Access forbidden":"403 Accesso negato","500 Internal server error":"500 Errore interno del server","The request failed with HTTP status #status":"La richiesta web \xe8 fallita con stato HTTP #status","DjVu file is corrupted":"Il file DjVu \xe8 corrotto","The file doesn't comply with the DjVu format specification or it's not a whole DjVu document":"Il file non \xe8 conforme alle specifiche del formato DjVu oppure \xe8 incompleto","Incorrect file format":"Formato file non corretto","The provided file is not a DjVu document":"Il file non \xe8 in formato DjVu","Incorrect page number":"Numero pagina non corretto","There is no page with the number #pageNumber":"Non esiste una pagina con il numero #pageNumber","No base URL for an indirect DjVu document":"Manca l'URL di base del documento DjVu multi-file (formato indirect)","You probably opened an indirect (multi-file) DjVu document manually.":"Si \xe8 cercato di aprire manualmente un documento DjVu multi-file (formato indirect).","But such multi-file documents can be only loaded by URL.":"Un documento DjVu multi-file (formato indirect) pu\xf2 essere aperto solo tramite URL.","Unexpected error":"Errore sconosciuto","Cannot print the error, look in the console":"Non \xe8 possibile riportare l'errore, cercare nella console",Options:"Opzioni","Show options window":"Mostra opzioni","Color theme":"Colore tema","Extension options":"Opzioni estensioni","Open all links with .djvu at the end via the viewer":"Aprire tutti i link con estensione .djvu tramite viewer","All links to .djvu files will be opened by the viewer via a simple click on a link":"Tutti i link con estensione .djvu saranno aperti nel viewer con un solo clic","Detect .djvu files by means of http headers":"Identifica un file .djvu tramite gli header http","Analyze headers of every new tab in order to process even links which do not end with the .djvu extension":"\u0410nalizza gli header http di ogni nuovo tab del browser al fine di processare i link che non terminano con estensione .djvu",Ready:"Pronto",Loading:"In caricamento","Show help window":"Mostra guida","Switch full page mode":"Attiva/disattiva modalit\xe0 a piena pagina","Choose a file":"Scegli un file","Close document":"Chiudi documento","Save document":"Salva documento",Save:"Salva","Open another .djvu file":"Apri un altro file .djvu","The application for viewing .djvu files in the browser.":"Applicazione per visualizzare i file .djvu nel browser.","If something doesn't work properly, feel free to write about the problem at #email.":"In caso di malfunzionamento scrivere a #email.","The official website is #website.":"Sito web ufficiale #website.","The source code is available on #link.":"Il codice sorgente \xe8 disponibile all'indirizzo #link.",Hotkeys:"Scorciatoie da tastiera","save the document":"Salva il documento","go to the previous page":"Vai alla pagina precedente","go to the next page":"Vai alla pagina successiva",Controls:"Controlli","#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.":"#expandIcon e #collapseIcon servono per attivare/disattivare la modalit\xe0 a piena pagina.","If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.":"Se si usa l'estensione per il browser questi pulsanti non hanno effetto perch\xe9 la modalit\xe0 di default \xe8 a piena pagina.","Continuous scroll view mode":"Vista a pagina continua","Single page view mode":"Vista a pagina singola","Text view mode":"Vista testo","Click on the number to enter it manually":"Fai clic sul numero per andare alla pagina","Rotate the page":"Ruota pagina","You also can scale the page via Ctrl+MouseWheel":"Puoi ingrandire la pagina tramite ctrl + rotella mouse","Text cursor mode":"Modalit\xe0 selezione testo","Grab cursor mode":"Modalit\xe0 trascinamento pagina","Table of contents":"Indice dei contenuti","Toolbar is always shown":"Toolbar sempre visibile","Toolbar automatically hides":"Toolbar nascosta automaticamente",Contents:"Contenuti","No contents provided":"Nessun contenuto disponibile","The link points to another document. Do you want to proceed?":"Il link punta ad un altro documento. Vuoi procedere?","No text on this page":"Nessun contenuto testuale nel documento","You are trying to save an indirect (multi-file) document.":"Stai per salvare un documento DjVu multi-file (formato indirect).","What exactly do you want to do?":"Cosa vuoi fare?","Save only index file":"Salva solo indice","Download, bundle and save the whole document as one file":"Scarica, impacchetta e salva documento completo in un unico file","Downloading and bundling the document":"Scaricamento e impacchettamento in corso","The document has been downloaded and bundled into one file successfully":"Il documento \xe8 stato scaricato e impacchettato correttamente","Print document":"Stampa documento","Pages must be rendered before printing.":"Le pagine devono essere processate prima della stampa.","It may take a while.":"Potrebbe richiedere tempo","Select the pages you want to print.":"Seleziona le pagine da stampare",From:"Da",to:"a","Prepare pages for printing":"Avvia processo di stampa","Preparing pages for printing":"Sto preparando le pagine per la stampa",Menu:"Menu",Document:"Documento",About:"Info",Print:"Stampa",Close:"Chiudi","View mode":"Modalit\xe0 vista",Scale:"Scala",Rotation:"Ruota","Cursor mode":"Moldalit\xe0 cursore","Full page mode":"Modalit\xe0 a piena pagina","Fullscreen mode":"Modalit\xe0 a pieno schermo"},zh:{englishName:"Simplified Chinese",nativeName:"\u7b80\u4f53\u4e2d\u6587",Language:"\u8bed\u8a00","Add more":"\u6dfb\u52a0\u66f4\u591a","The translation isn't complete.":"\u7ffb\u8bd1\u5c1a\u672a\u5b8c\u6210\u3002","The following phrases are not translated:":"\u4ee5\u4e0b\u77ed\u8bed\u5c1a\u672a\u88ab\u7ffb\u8bd1","You can improve the translation here":"\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u5b8c\u5584\u7ffb\u8bd1","#helpButton - learn more about the app":"#helpButton - \u4e86\u89e3\u66f4\u591a","#optionsButton - see the available options":"#optionsButton - \u67e5\u770b\u6240\u6709\u9009\u9879","powered with":"\u57fa\u4e8e","Drag & Drop a file here or click to choose manually":"\u5c06\u6587\u4ef6\u62d6\u62fd\u81f3\u6b64\u5904\u6216\u8005\u5355\u51fb\u624b\u52a8\u9009\u62e9","Paste a URL to a djvu file here":"\u5728\u6b64\u5904\u7c98\u8d34djvu\u6587\u4ef6\u7684\u5730\u5740","Open URL":"\u6253\u5f00\u5730\u5740",'Enter a valid URL (it should start with "http(s)://")':'\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u5730\u5740 (\u5e94\u5f53\u4ee5 "http(s)://" \u5f00\u5934)',Error:"\u9519\u8bef","Error on page":"\u9875\u9762\u9519\u8bef","Network error":"\u7f51\u7edc\u9519\u8bef","Check your network connection":"\u68c0\u67e5\u4f60\u7684\u7f51\u7edc\u8fde\u63a5","Web request error":"\u7f51\u7edc\u8bf7\u6c42\u9519\u8bef","404 Document not found":"404 \u6587\u4ef6\u672a\u627e\u5230","403 Access forbidden":"403 \u7981\u6b62\u8bbf\u95ee","500 Internal server error":"500 \u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef","The request failed with HTTP status #status":"\u8bf7\u6c42\u5931\u8d25\uff0cHTTP\u72b6\u6001 #status","DjVu file is corrupted":"DjVu\u6587\u4ef6\u635f\u574f","The file doesn't comply with the DjVu format specification or it's not a whole DjVu document":"\u6587\u4ef6\u4e0d\u6ee1\u8db3DjVu\u683c\u5f0f\u8981\u6c42\u6216\u4e0d\u5b8c\u6574","Incorrect file format":"\u6587\u4ef6\u683c\u5f0f\u9519\u8bef","The provided file is not a DjVu document":"\u63d0\u4f9b\u7684\u6587\u4ef6\u4e0d\u662f\u4e00\u4e2aDjVu\u6587\u4ef6","Incorrect page number":"\u9875\u7801\u9519\u8bef","There is no page with the number #pageNumber":"\u6ca1\u6709\u9875\u9762\u4e3a#pageNumber\u7684\u9875\u9762","No base URL for an indirect DjVu document":"\u76f8\u5bf9\u8def\u5f84\u7684DjVu\u6587\u6863\u7f3a\u5c11\u6839\u8def\u5f84","You probably opened an indirect (multi-file) DjVu document manually.":"\u4f60\u5f88\u6709\u53ef\u80fd\u624b\u52a8\u6253\u5f00\u4e86\u4e00\u4e2a\uff08\u591a\u6587\u4ef6\uff09\u76f8\u5bf9\u8def\u5f84DjVu\u6587\u6863\u3002","But such multi-file documents can be only loaded by URL.":"\u4f46\u662f\u8fd9\u79cd\u591a\u6587\u4ef6\u6587\u6863\u53ea\u80fd\u901a\u8fc7\u5b8c\u6574\u8def\u5f84\u6253\u5f00\u3002","Unexpected error":"\u672a\u77e5\u9519\u8bef","Cannot print the error, look in the console":"\u65e0\u6cd5\u6253\u5370\u9519\u8bef\uff0c\u8bf7\u67e5\u770b\u63a7\u5236\u53f0",Options:"\u9009\u9879","Show options window":"\u663e\u793a\u9009\u9879\u7a97\u53e3","Color theme":"\u989c\u8272\u4e3b\u9898","Extension options":"\u6269\u5c55\u9009\u9879","Open all links with .djvu at the end via the viewer":"\u901a\u8fc7\u9605\u8bfb\u5668\u6253\u5f00\u6240\u6709\u4ee5.djvu\u7ed3\u5c3e\u7684\u94fe\u63a5","All links to .djvu files will be opened by the viewer via a simple click on a link":"\u6240\u6709.djvu\u6587\u4ef6\u94fe\u63a5\u5c06\u4f1a\u88ab\u9605\u8bfb\u5668\u6253\u5f00","Detect .djvu files by means of http headers":"\u901a\u8fc7http\u5934\u4fe1\u606f\u68c0\u6d4b.djvu\u6587\u4ef6","Analyze headers of every new tab in order to process even links which do not end with the .djvu extension":"\u5206\u6790\u6bcf\u4e00\u4e2a\u65b0\u9009\u9879\u5361\u4ee5\u5904\u7406\u4e0d\u662f\u4ee5.djvu\u7ed3\u5c3e\u7684\u94fe\u63a5",Ready:"\u5c31\u7eea",Loading:"\u52a0\u8f7d\u4e2d","Show help window":"\u663e\u793a\u5e2e\u52a9\u7a97\u53e3","Switch full page mode":"\u5207\u6362\u5168\u5c4f\u6a21\u5f0f","Choose a file":"\u9009\u62e9\u6587\u4ef6","Close document":"\u5173\u95ed\u6587\u6863","Save document":"\u4fdd\u5b58\u6587\u6863",Save:"\u4fdd\u5b58","Open another .djvu file":"\u6253\u5f00\u53e6\u4e00\u4e2a.djvu\u6587\u4ef6","The application for viewing .djvu files in the browser.":"\u8fd9\u662f\u4e00\u4e2a\u5728\u6d4f\u89c8\u5668\u4e2d\u6d4f\u89c8.djvu\u6587\u4ef6\u7684\u5e94\u7528\u3002","If something doesn't work properly, feel free to write about the problem at #email.":"\u5982\u679c\u8fd0\u884c\u6709\u95ee\u9898\uff0c\u8bf7\u5411#email\u53cd\u9988\u3002","The official website is #website.":"\u5b98\u65b9\u7f51\u7ad9\u662f#website\u3002","The source code is available on #link.":"\u6e90\u4ee3\u7801\u4f4d\u4e8e#link\u3002",Hotkeys:"\u70ed\u952e","save the document":"\u4fdd\u5b58\u6587\u6863","go to the previous page":"\u4e0a\u4e00\u9875","go to the next page":"\u4e0b\u4e00\u9875",Controls:"\u63a7\u4ef6","#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.":"#expandIcon \u548c #collapseIcon \u7528\u4e8e\u5c06\u9605\u8bfb\u5668\u5728\u5168\u5c4f\u6a21\u5f0f\u548c\u6b63\u5e38\u6a21\u5f0f\u95f4\u5207\u6362\u3002","If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.":"\u5982\u679c\u4f60\u662f\u5728\u4f7f\u7528\u6d4f\u89c8\u5668\u63d2\u4ef6\uff0c\u5219\u8fd9\u4e9b\u6309\u94ae\u5c06\u4e0d\u8d77\u4f5c\u7528\uff0c\u56e0\u4e3a\u9605\u8bfb\u5668\u4f1a\u9ed8\u8ba4\u4f7f\u7528\u6574\u4e2a\u9875\u9762\u3002","Continuous scroll view mode":"\u8fde\u7eed\u6eda\u52a8\u6a21\u5f0f","Single page view mode":"\u5355\u9875\u6a21\u5f0f","Text view mode":"\u6587\u672c\u6a21\u5f0f","Click on the number to enter it manually":"\u70b9\u51fb\u6570\u5b57\u4ee5\u624b\u52a8\u8f93\u5165","Rotate the page":"\u65cb\u8f6c\u9875\u9762","You also can scale the page via Ctrl+MouseWheel":"\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7Ctrl+\u9f20\u6807\u6eda\u8f6e\u6765\u7f29\u653e\u9875\u9762","Text cursor mode":"\u6587\u672c\u9009\u62e9\u6a21\u5f0f","Grab cursor mode":"\u62d6\u62fd\u6a21\u5f0f","Table of contents":"\u76ee\u5f55","Toolbar is always shown":"\u5de5\u5177\u680f\u5e38\u663e\u793a","Toolbar automatically hides":"\u5de5\u5177\u680f\u81ea\u52a8\u9690\u85cf",Contents:"\u76ee\u5f55","No contents provided":"\u6ca1\u6709\u76ee\u5f55","The link points to another document. Do you want to proceed?":"\u8fd9\u4e2a\u94fe\u63a5\u6307\u5411\u53e6\u4e00\u4e2a\u6587\u6863\uff0c\u4f60\u786e\u5b9a\u8981\u7ee7\u7eed\u5417\uff1f","No text on this page":"\u8be5\u9875\u6ca1\u6709\u6587\u672c","You are trying to save an indirect (multi-file) document.":"\u4f60\u5728\u8bd5\u56fe\u4fdd\u5b58\u76f8\u5bf9\u8def\u5f84\u7684\u591a\u6587\u4ef6\u6587\u6863\u3002","What exactly do you want to do?":"\u4f60\u5177\u4f53\u662f\u60f3\u505a\u4ec0\u4e48\uff1f","Save only index file":"\u53ea\u4fdd\u5b58\u7d22\u5f15\u6587\u4ef6","Download, bundle and save the whole document as one file":"\u4e0b\u8f7d\u6253\u5305\u5e76\u4fdd\u5b58\u6210\u4e00\u4e2a\u6587\u4ef6","Downloading and bundling the document":"\u6b63\u5728\u4e0b\u8f7d\u5e76\u6253\u5305\u6587\u4ef6","The document has been downloaded and bundled into one file successfully":"\u6587\u4ef6\u5df2\u6210\u529f\u4e0b\u8f7d\u6253\u5305\u5230\u4e00\u4e2a\u6587\u4ef6","Print document":"\u6253\u5370\u6587\u6863","Pages must be rendered before printing.":"\u6253\u5370\u524d\u9700\u6e32\u67d3\u9875\u9762\uff0c","It may take a while.":"\u53ef\u80fd\u9700\u8981\u4e00\u4f1a\u513f\u3002","Select the pages you want to print.":"\u9009\u62e9\u4f60\u60f3\u6253\u5370\u7684\u9875\u9762\u3002",From:"\u4ece",to:"\u5230","Prepare pages for printing":"\u51c6\u5907\u9875\u9762\u4ee5\u6253\u5370","Preparing pages for printing":"\u51c6\u5907\u9875\u9762\u4e2d",Menu:"\u83dc\u5355",Document:"\u6587\u6863",About:"\u5173\u4e8e",Print:"\u6253\u5370",Close:"\u5173\u95ed","View mode":"\u663e\u793a\u6a21\u5f0f",Scale:"\u7f29\u653e",Rotation:"\u65cb\u8f6c","Cursor mode":"\u5149\u6807\u6a21\u5f0f","Full page mode":"\u6574\u9875\u6a21\u5f0f","Fullscreen mode":"\u5168\u5c4f\u6a21\u5f0f"},pt:{englishName:"Portuguese",nativeName:"Portugu\xeas",Language:"Idioma","Add more":"Adicionar mais","The translation isn't complete.":"A tradu\xe7\xe3o n\xe3o est\xe1 completa.","The following phrases are not translated:":"As seguintes frases n\xe3o s\xe3o traduzidas:","You can improve the translation here":"Pode melhorar a tradu\xe7\xe3o aqui","#helpButton - learn more about the app":"#helpButton - saber mais sobre a aplica\xe7\xe3o","#optionsButton - see the available options":"#optionsButton - ver as op\xe7\xf5es dispon\xedveis","powered with":"powered by","Drag & Drop a file here or click to choose manually":"Arrastar e largar um ficheiro aqui ou clicar para escolher manualmente","Paste a URL to a djvu file here":"Colar aqui um URL a um ficheiro djvu","Open URL":"Abrir URL",'Enter a valid URL (it should start with "http(s)://")':'Introduza um URL v\xe1lido (deve come\xe7ar com "http(s)://")',Error:"Erro","Error on page":"Erro na p\xe1gina","Network error":"Erro de rede","Check your network connection":"Verifique a sua liga\xe7\xe3o \xe0 rede","Web request error":"Pedido de erro na Web","404 Document not found":"404 Documento n\xe3o encontrado","403 Access forbidden":"403 Acesso proibido","500 Internal server error":"500 Erro interno do servidor","The request failed with HTTP status #status":"O pedido falhou com o status HTTP #status","DjVu file is corrupted":"O ficheiro DjVu est\xe1 corrompido","The file doesn't comply with the DjVu format specification or it's not a whole DjVu document":"O ficheiro n\xe3o cumpre as especifica\xe7\xf5es do formato DjVu ou n\xe3o \xe9 um documento DjVu completo","Incorrect file format":"Formato de ficheiro incorrecto","The provided file is not a DjVu document":"O ficheiro fornecido n\xe3o \xe9 um documento DjVu","Incorrect page number":"N\xfamero de p\xe1gina incorrecto","There is no page with the number #pageNumber":"N\xe3o h\xe1 p\xe1gina com o n\xfamero #pageNumber","No base URL for an indirect DjVu document":"Sem URL base para um documento indirecto DjVu","You probably opened an indirect (multi-file) DjVu document manually.":"Provavelmente abriu manualmente um documento DjVu indirecto (multi-arquivos).","But such multi-file documents can be only loaded by URL.":"Mas tais documentos multi-arquivos s\xf3 podem ser carregados por URL.","Unexpected error":"Erro inesperado","Cannot print the error, look in the console":"N\xe3o \xe9 poss\xedvel imprimir o erro, procurar na consola",Options:"Op\xe7\xf5es","Show options window":"Mostrar janela de op\xe7\xf5es","Color theme":"Tema de cor","Extension options":"Op\xe7\xf5es de extens\xe3o","Open all links with .djvu at the end via the viewer":"Abrir todas as liga\xe7\xf5es com .djvu no final atrav\xe9s do visualizador","All links to .djvu files will be opened by the viewer via a simple click on a link":"Todos os links para ficheiros .djvu ser\xe3o abertos pelo espectador atrav\xe9s de um simples clique num link","Detect .djvu files by means of http headers":"Detectar ficheiros .djvu por meio de cabe\xe7alhos http","Analyze headers of every new tab in order to process even links which do not end with the .djvu extension":"Analisar os cabe\xe7alhos de cada novo separador a fim de processar at\xe9 liga\xe7\xf5es que n\xe3o terminam com a extens\xe3o .djvu",Ready:"Preparado",Loading:"Carregando","Show help window":"Mostrar janela de ajuda","Switch full page mode":"Mudar o modo de p\xe1gina inteira","Choose a file":"Escolha um ficheiro","Close document":"Fechar documento","Save document":"Guardar documenta\xe7\xe3o",Save:"Guardar","Open another .djvu file":"Abrir outro ficheiro .djvu","The application for viewing .djvu files in the browser.":"A aplica\xe7\xe3o para visualizar ficheiros .djvu no browser.","If something doesn't work properly, feel free to write about the problem at #email.":"Se algo n\xe3o funcionar correctamente, sinta-se \xe0 vontade para escrever sobre o problema em #email.","The official website is #website.":"O site oficial \xe9 #website.","The source code is available on #link.":"O c\xf3digo fonte est\xe1 dispon\xedvel em #link.",Hotkeys:"Teclas de atalho","save the document":"guardar o documento","go to the previous page":"ir para a p\xe1gina anterior","go to the next page":"ir para a p\xe1gina seguinte",Controls:"Controles","#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.":"#expandIcon e #collapseIcon devem mudar o visualizador para o modo p\xe1gina inteira e voltar.","If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.":"Se trabalhar com a extens\xe3o do navegador, estes bot\xf5es n\xe3o causar\xe3o qualquer efeito, uma vez que o visualizador leva a p\xe1gina inteira por defeito.","Continuous scroll view mode":"Modo de visualiza\xe7\xe3o scroll cont\xednuo","Single page view mode":"Modo de visualiza\xe7\xe3o de uma p\xe1gina","Text view mode":"Modo de visualiza\xe7\xe3o de texto","Click on the number to enter it manually":"Clique no n\xfamero para o introduzir manualmente","Rotate the page":"Rodar a p\xe1gina","You also can scale the page via Ctrl+MouseWheel":"Tamb\xe9m pode escalar a p\xe1gina atrav\xe9s de Ctrl+MouseWheel","Text cursor mode":"Modo cursor de texto","Grab cursor mode":"Modo de agarrar o cursor","Table of contents":null,"Toolbar is always shown":null,"Toolbar automatically hides":null,Contents:"Conte\xfados","No contents provided":"Nenhum conte\xfado fornecido","The link points to another document. Do you want to proceed?":"A liga\xe7\xe3o aponta para outro documento. Quer prosseguir?","No text on this page":"Nenhum texto nesta p\xe1gina","You are trying to save an indirect (multi-file) document.":"Est\xe1 a tentar salvar um documento indirecto (multi-arquivo).","What exactly do you want to do?":"Que queres fazer exactamente?","Save only index file":"Guardar s\xf3 ficheiro de \xedndice","Download, bundle and save the whole document as one file":"Descarregar, agrupar e guardar o documento inteiro como um s\xf3 ficheiro","Downloading and bundling the document":"Descarregar e empacotar o documento","The document has been downloaded and bundled into one file successfully":"O documento foi descarregado e agrupado num \xfanico ficheiro com sucesso","Print document":"Imprimir documento","Pages must be rendered before printing.":"As p\xe1ginas devem ser entregues antes da impress\xe3o.","It may take a while.":"Pode demorar algum tempo.","Select the pages you want to print.":"Seleccione as p\xe1ginas que pretende imprimir.",From:"De",to:"a","Prepare pages for printing":"Preparar p\xe1ginas para impress\xe3o","Preparing pages for printing":"Preparar p\xe1ginas para impress\xe3o",Menu:null,Document:null,About:null,Print:null,Close:null,"View mode":null,Scale:null,Rotation:null,"Cursor mode":null,"Full page mode":null,"Fullscreen mode":null},es:{englishName:"Spanish",nativeName:"Castellano",Language:"Idioma","Add more":"A\xf1adir mas","The translation isn't complete.":"La traducci\xf3n est\xe1 incompleta.","The following phrases are not translated:":"Las siguientes frases no estan traduccidas:","You can improve the translation here":"Puedes mejorar la traducci\xf3n aqu\xed","#helpButton - learn more about the app":"#helpButton - saber m\xe1s sobre la aplicaci\xf3n","#optionsButton - see the available options":"#optionsButton - ver las opciones disponibles","powered with":"Powered with","Drag & Drop a file here or click to choose manually":"Arrastrar y soltar un archivo o click para elegirlo manualmente","Paste a URL to a djvu file here":"Pegar una URL al archivo djvu aqu\xed","Open URL":"Abrir URL",'Enter a valid URL (it should start with "http(s)://")':'Introducir una URL v\xe1lida (debe comenzar con "http(s)://")',Error:"Error","Error on page":"Error en la p\xe1gina","Network error":"Error de red","Check your network connection":"Compruebe su conexi\xf3n a la red","Web request error":"Error en la solicitud de la web","404 Document not found":"404 Documento no encontrado","403 Access forbidden":"403 Acceso prohibido","500 Internal server error":"500 Error interno del servidor","The request failed with HTTP status #status":"La solicitud ha fallado con el estado HTTP #status","DjVu file is corrupted":"El archivo DjVu esta corrupto","The file doesn't comply with the DjVu format specification or it's not a whole DjVu document":"El archivo no cumple con la especificaci\xf3n del formato DjVu o no es un documento DjVu completo","Incorrect file format":"Formato de archivo incorrecto","The provided file is not a DjVu document":"El archivo proporcionado no es un documento DjVu","Incorrect page number":"N\xfamero de p\xe1gina incorrecto","There is no page with the number #pageNumber":"No hay ninguna p\xe1gina con el n\xfamero #pageNumber","No base URL for an indirect DjVu document":"No hay URL base para un documento DjVu indirecto","You probably opened an indirect (multi-file) DjVu document manually.":"Probablemente haya abierto manualmente un documento DjVu indirecto (de varios archivos).","But such multi-file documents can be only loaded by URL.":"Pero estos documentos de varios archivos s\xf3lo pueden cargarse por URL.","Unexpected error":"Error inesperado","Cannot print the error, look in the console":"No se puede imprimir el error, mira en la consola",Options:"Opciones","Show options window":"Mostrar ventana de opciones","Color theme":"Tema de color","Extension options":"Opciones de extensi\xf3n","Open all links with .djvu at the end via the viewer":"Abrir todos los enlaces con .djvu al final a trav\xe9s del visor","All links to .djvu files will be opened by the viewer via a simple click on a link":"Todos los enlaces a archivos .djvu ser\xe1n abiertos por el visor mediante un clic simple en un enlace","Detect .djvu files by means of http headers":"Detectar archivos .djvu mediante cabeceras http","Analyze headers of every new tab in order to process even links which do not end with the .djvu extension":"Analizar las cabeceras de cada nueva pesta\xf1a para procesar incluso los enlaces que no terminan con la extensi\xf3n .djvu",Ready:"Listo",Loading:"Cargando","Show help window":"Mostrar ventana de ayuda","Switch full page mode":"Cambiar el modo de p\xe1gina completa","Choose a file":"Seleccionar archivo","Close document":"Cerrar documento","Save document":"Guardar documento",Save:"Guardar","Open another .djvu file":"Abrir otro archivo .djvu","The application for viewing .djvu files in the browser.":"La aplicaci\xf3n para ver archivos .djvu en el navegador.","If something doesn't work properly, feel free to write about the problem at #email.":"Si algo no funciona correctamente, no dudes en escribir sobre el problema en #email.","The official website is #website.":"El sitio web oficial es #website.","The source code is available on #link.":"El c\xf3digo fuente est\xe1 disponible en #link.",Hotkeys:"Atajos de teclado","save the document":"Guardar el documento","go to the previous page":"ir a la p\xe1gina anterior","go to the next page":"ir a la p\xe1gina siguiente",Controls:"Controles","#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.":"#expandIcon y #collapseIcon son para cambiar el visor al modo de p\xe1gina completa y viceversa.","If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.":"Si trabaja con la extensi\xf3n del navegador, estos botones no causar\xe1n ning\xfan efecto, ya que el visor toma toda la p\xe1gina por defecto.","Continuous scroll view mode":"Modo de scroll continuo","Single page view mode":"Modo de vista de una sola p\xe1gina","Text view mode":"Modo de vista de texto","Click on the number to enter it manually":"Haga clic en el n\xfamero para introducirlo manualmente","Rotate the page":"Rotar p\xe1gina","You also can scale the page via Ctrl+MouseWheel":"Tambi\xe9n puede escalar la p\xe1gina mediante Ctrl+Rueda del rat\xf3n","Text cursor mode":"Modo cursor de texto","Grab cursor mode":"Modo cursor de agarre","Table of contents":null,"Toolbar is always shown":null,"Toolbar automatically hides":null,Contents:"Contenido","No contents provided":"No se proporciona ning\xfan contenido","The link points to another document. Do you want to proceed?":"El enlace apunta a otro documento. \xbfDesea continuar?","No text on this page":"No hay texto en esta p\xe1gina","You are trying to save an indirect (multi-file) document.":"Est\xe1 intentando guardar un documento indirecto (de varios archivos)","What exactly do you want to do?":"\xbfQu\xe9 quiere hacer exactamente?","Save only index file":"Guardar s\xf3lo el archivo de \xedndice","Download, bundle and save the whole document as one file":"Descargue, agrupe y guarde todo el documento como un solo archivo","Downloading and bundling the document":"Descargando y agrupando el documento","The document has been downloaded and bundled into one file successfully":"El documento ha sido descargado y agrupado en un archivo con \xe9xito","Print document":"Imprimir documento","Pages must be rendered before printing.":"Las p\xe1ginas deben ser renderizadas antes de la impresi\xf3n.","It may take a while.":"Puede llevar un tiempo.","Select the pages you want to print.":"Seleccione las p\xe1ginas que desea imprimir.",From:"Desde",to:"hasta","Prepare pages for printing":"Preparar las p\xe1ginas para la impresi\xf3n","Preparing pages for printing":"Preparando p\xe1ginas para imprimir",Menu:null,Document:null,About:null,Print:null,Close:null,"View mode":null,Scale:null,Rotation:null,"Cursor mode":null,"Full page mode":null,"Fullscreen mode":null}};const Se=Object.freeze({documentId:0,fileName:null,userScale:1,pageRotation:0,isLoading:!1,viewMode:ue.SINGLE_PAGE_MODE,pagesQuantity:null,isFullPageView:!1,error:null,contents:null,isHelpWindowShown:!1,isOptionsWindowOpened:!1,isIndirect:!1,isContentsOpened:!1,options:{interceptHttpRequests:!0,analyzeHeaders:!1,locale:"en",theme:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",preferContinuousScroll:!1},uiOptions:{hideFullPageSwitch:!1,changePageOnScroll:!0,showContentsAutomatically:!0,hideOpenAndCloseButtons:!1,hidePrintButton:!1,hideSaveButton:!1},appContext:{}});function Oe(e){return{...Se,appContext:e.appContext,isFullPageView:e.isFullPageView,options:e.options,uiOptions:e.uiOptions}}const xe={isContentsOpened:e=>e.isContentsOpened,dictionary:e=>we[xe.options(e).locale]||we.en,isOptionsWindowOpened:e=>e.isOptionsWindowOpened,uiOptions:e=>e.uiOptions,documentId:e=>e.documentId,userScale:e=>e.userScale,pageRotation:e=>e.pageRotation,pagesQuantity:e=>e.pagesQuantity,contents:e=>e.contents,isIndirect:e=>e.isIndirect,isHelpWindowShown:e=>e.isHelpWindowShown,fileName:e=>e.fileName,error:e=>e.error,options:e=>e.options,isFullPageView:e=>e.isFullPageView,isLoading:e=>e.isLoading,isDocumentLoaded:e=>!!e.pagesQuantity,viewMode:e=>e.isIndirect&&e.viewMode===ue.CONTINUOUS_SCROLL_MODE?ue.SINGLE_PAGE_MODE:e.viewMode},_e=Object.freeze({progress:0,buffer:null,isBundling:!1,isSaveDialogShown:!1});function je(e=_e,t){const{type:n,payload:r}=t;switch(n){case ce.OPEN_SAVE_DIALOG:return{...e,isSaveDialogShown:!0};case ce.START_TO_BUNDLE:return{...e,isBundling:!0};case ce.UPDATE_FILE_PROCESSING_PROGRESS:return{...e,progress:r};case ce.FINISH_TO_BUNDLE:return{...e,buffer:r};case ce.ERROR:case ce.CLOSE_SAVE_DIALOG:return _e;default:return e}}const Ee=e=>le((e=>e.fileProcessingState),e),Ce={isSaveDialogShown:Ee((e=>e.isSaveDialogShown)),isBundling:Ee((e=>e.isBundling)),resultBuffer:Ee((e=>e.buffer)),fileProcessingProgress:Ee((e=>e.progress))},ke=Object.freeze({isPrintDialogOpened:!1,isPreparingForPrinting:!1,printProgress:0,pagesForPrinting:null});function Te(e=ke,t){const{type:n,payload:r}=t;switch(n){case ce.OPEN_PRINT_DIALOG:return{...ke,isPrintDialogOpened:!0};case ce.PREPARE_PAGES_FOR_PRINTING:return{...e,isPreparingForPrinting:!0};case ce.UPDATE_PRINT_PROGRESS:return{...e,printProgress:r};case ce.START_PRINTING:return{...e,pagesForPrinting:r};case ce.ERROR:case ce.CLOSE_PRINT_DIALOG:return ke;default:return e}}const Pe=e=>le((e=>e.printState),e),Ne={isPrintDialogOpened:Pe((e=>e.isPrintDialogOpened)),isPreparingForPrinting:Pe((e=>e.isPreparingForPrinting)),printProgress:Pe((e=>e.printProgress)),pagesForPrinting:Pe((e=>e.pagesForPrinting))},Ie={...xe,...ye,...he,...Ce,...Ne};var Re=(e,t)=>(e=((e=Se,t)=>{const n=t.payload;switch(t.type){case ce.SET_UI_OPTIONS:return{...e,uiOptions:{...e.uiOptions,...n}};case ce.UPDATE_OPTIONS:return{...e,options:{...e.options,...n}};case ce.SET_VIEW_MODE:return{...e,viewMode:n,isLoading:n!==ue.TEXT_MODE&&e.isLoading};case ue.SET_PAGE_ROTATION_ACTION:return{...e,pageRotation:t.pageRotation};case ce.TOGGLE_OPTIONS_WINDOW:return{...e,isOptionsWindowOpened:n};case ue.SHOW_HELP_WINDOW_ACTION:return{...e,isHelpWindowShown:!0};case ue.CLOSE_HELP_WINDOW_ACTION:return{...e,isHelpWindowShown:!1};case ue.SET_NEW_PAGE_NUMBER_ACTION:case ue.CREATE_DOCUMENT_FROM_ARRAY_BUFFER_ACTION:return{...e,isLoading:!0};case ue.IMAGE_DATA_RECEIVED_ACTION:case ue.PAGE_TEXT_FETCHED_ACTION:case ue.PAGE_ERROR_ACTION:case ue.PAGES_SIZES_ARE_GOTTEN:case ce.SET_IMAGE_PAGE_ERROR:return{...e,isLoading:!1};case ue.DOCUMENT_CREATED_ACTION:return{...Oe(e),documentId:e.documentId+1,isLoading:!0,viewMode:e.options.preferContinuousScroll?ue.CONTINUOUS_SCROLL_MODE:Se.viewMode,pagesQuantity:t.pagesQuantity,fileName:t.fileName,isIndirect:t.isIndirect};case ue.CLOSE_DOCUMENT_ACTION:return Oe(e);case ue.CONTENTS_IS_GOTTEN_ACTION:return{...e,contents:t.contents,isContentsOpened:e.uiOptions.showContentsAutomatically&&!e.appContext.isMobile&&!!t.contents};case ue.SET_USER_SCALE_ACTION:return{...e,userScale:t.scale};case ue.TOGGLE_FULL_PAGE_VIEW_ACTION:return{...e,isFullPageView:t.isFullPageView};case ce.CLOSE_CONTENTS:return{...e,isContentsOpened:!1};case ce.TOGGLE_CONTENTS:return{...e,isContentsOpened:!e.isContentsOpened};case ce.ERROR:return{...e,isLoading:!1,error:n};case ce.CLOSE_ERROR_WINDOW:return{...e,error:null};case ce.UPDATE_APP_CONTEXT:return{...e,appContext:n};default:return e}})(e,t),{...e,fileLoadingState:fe(e.fileLoadingState,t),pageState:ve(e.pageState,t),fileProcessingState:je(e.fileProcessingState,t),printState:Te(e.printState,t)}),Ae={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},De=i.a.createContext&&i.a.createContext(Ae),Le=function(){return(Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ze(e){return e&&e.map((function(e,t){return i.a.createElement(e.tag,Le({key:t},e.attr),ze(e.child))}))}function Ue(e){return function(t){return i.a.createElement(Fe,Le({attr:Le({},e.attr)},t),ze(e.child))}}function Fe(e){var t=function(t){var n,r=e.attr,o=e.size,a=e.title,l=Me(e,["attr","size","title"]),s=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),i.a.createElement("svg",Le({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:n,style:Le(Le({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&i.a.createElement("title",null,a),e.children)};return void 0!==De?i.a.createElement(De.Consumer,null,(function(e){return t(e)})):t(Ae)}function Be(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}}]})(e)}function Ve(e){return Ue({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"}}]})(e)}function We(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function He(e){return Ue({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function $e(e){return Ue({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"}}]})(e)}function Ge(e){return Ue({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function qe(e){return Ue({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function Ye(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"}}]})(e)}function Ke(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function Qe(e){return Ue({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"}}]})(e)}function Xe(e){return Ue({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"}}]})(e)}function Ze(e){return Ue({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M108 284c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h232c6.6 0 12 5.4 12 12v32c0 6.6-5.4 12-12 12H108zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}]})(e)}function Je(e){return Ue({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}]})(e)}const et={dropPageAction:e=>({type:ue.DROP_PAGE_ACTION,pageNumber:e}),pagesSizesAreGottenAction:e=>({type:ue.PAGES_SIZES_ARE_GOTTEN,sizes:e}),pageIsLoadedAction:(e,t)=>({type:ue.PAGE_IS_LOADED_ACTION,pageNumber:t,pageData:e}),setPageRotationAction:e=>t=>{0!==e&&90!==e&&180!==e&&270!==e||t({type:ue.SET_PAGE_ROTATION_ACTION,pageRotation:e})},closeDocumentAction:()=>({type:ue.CLOSE_DOCUMENT_ACTION}),setCursorModeAction:e=>({type:ue.SET_CURSOR_MODE_ACTION,cursorMode:e}),closeHelpWindowAction:()=>({type:ue.CLOSE_HELP_WINDOW_ACTION}),showHelpWindowAction:()=>({type:ue.SHOW_HELP_WINDOW_ACTION}),tryToSaveDocument:()=>(e,t)=>{Ie.isIndirect(t())?e({type:ce.OPEN_SAVE_DIALOG}):e({type:ce.SAVE_DOCUMENT})},startFileLoadingAction:()=>({type:ue.START_FILE_LOADING_ACTION}),endFileLoadingAction:()=>({type:ue.END_FILE_LOADING_ACTION}),goToNextPageAction:()=>(e,t)=>{const n=t();Ie.currentPageNumber(n)<Ie.pagesQuantity(n)&&e(et.setNewPageNumberAction(Ie.currentPageNumber(n)+1,!0))},goToPreviousPageAction:()=>(e,t)=>{const n=t();Ie.currentPageNumber(n)>1&&e(et.setNewPageNumberAction(Ie.currentPageNumber(n)-1,!0))},fileLoadingProgressAction:(e,t)=>({type:ue.FILE_LOADING_PROGRESS_ACTION,loaded:e,total:t}),errorAction:e=>(console.error(e),{type:ce.ERROR,payload:e}),createDocumentFromArrayBufferAction:(e,t="***",n={})=>({type:ue.CREATE_DOCUMENT_FROM_ARRAY_BUFFER_ACTION,arrayBuffer:e,fileName:t,config:n}),setNewPageNumberAction:(e,t=!1)=>({type:ue.SET_NEW_PAGE_NUMBER_ACTION,pageNumber:e,shouldScrollToPage:t}),setPageByUrlAction:(e,t=!1)=>({type:ue.SET_PAGE_BY_URL_ACTION,url:e,closeContentsOnSuccess:t}),setUserScaleAction:e=>({type:ue.SET_USER_SCALE_ACTION,scale:e<.1?.1:e>6?6:e}),toggleFullPageViewAction:e=>t=>{const n="disable_scroll_djvujs";e?(document.querySelector("html").classList.add(n),document.body.classList.add(n)):(document.querySelector("html").classList.remove(n),document.body.classList.remove(n)),t({type:ue.TOGGLE_FULL_PAGE_VIEW_ACTION,isFullPageView:e})}};var tt=et;const nt=Object(re.d)(["cursor:pointer;flex:0 0 auto;&:hover{transform:scale(1.1);}"]),rt=Object(re.d)(["",";font-size:var(--button-basic-size);margin:0 0.5em;"],nt),ot=Object(re.d)(["background:var(--background-color);border:1px solid var(--border-color);border-radius:2px;color:var(--color);"]);var it=n(0);const at=Object(re.d)(["flex:1 1 auto;min-width:1em;max-width:8em;white-space:nowrap;"]),lt=re.e.input.withConfig({displayName:"PageNumber__Input",componentId:"sc-wjuw6j-0"})(["",";",";max-width:4em;"],at,ot);class st extends i.a.Component{constructor(e){super(e),this.startPageNumberEditing=()=>{this.setState({isEditing:!0})},this.finishPageNumberEditing=e=>{this.setState({isEditing:!1,tempValue:null});var t=+e.target.value;this.setNewPageNumber(t)},this.onKeyPress=e=>{"Enter"===e.key&&this.finishPageNumberEditing(e)},this.onChange=e=>{this.setState({tempValue:e.target.value})},this.inputRef=e=>{this.input=e},this.state={isEditing:!1,tempValue:null}}componentDidUpdate(){this.input&&setTimeout((()=>{try{this.input&&(this.input.focus(),this.input.select(),this.input=null)}catch(e){}}),10)}setNewPageNumber(e){this.props.pagesQuantity&&(e<1?e=1:e>this.props.pagesQuantity&&(e=this.props.pagesQuantity),e!==this.props.pageNumber&&this.props.setNewPageNumber(e,!0))}render(){if(this.state.isEditing)return Object(it.jsx)(lt,{onKeyPress:this.onKeyPress,onBlur:this.finishPageNumberEditing,type:"number",onChange:this.onChange,value:null===this.state.tempValue?this.props.pageNumber:this.state.tempValue,ref:this.inputRef});var e=this.props.pagesQuantity?" / "+this.props.pagesQuantity:"";return Object(it.jsx)(ut,{onClick:this.startPageNumberEditing,children:this.props.pageNumber+e})}}var ut=Object(re.e)("span").withConfig({displayName:"PageNumber___StyledSpan",componentId:"sc-wjuw6j-1"})(["",""],at);const ct=i.a.createContext(((e,t=null)=>e)),dt=({children:e})=>{const t=ne(Ie.dictionary);return Object(it.jsx)(ct.Provider,{value:vt(t),children:e})},ft=()=>i.a.useContext(ct),pt=/[.*+\-?^${}()|[\]\\]/g,ht=e=>e.replace(pt,"\\$&"),mt={};let gt=0;function vt(e){return(t,n=null)=>{const r=e[t]||we.en[t]||t;if(we.en[t]||(mt[t]="",clearTimeout(gt),gt=setTimeout((()=>{console.warn("\nThere are untranslated phrases (missing from the English dictionary):"),console.warn("\n"+JSON.stringify(mt,null,2).replaceAll('""','\n ""'))}),1e3)),!n)return r;const o=Object.keys(n).map(ht).join("|"),a=new RegExp(`(${o})`,"g");return r.split(a).map((e=>e in n?Object(it.jsx)(i.a.Fragment,{children:n[e]},e):e))}}const bt=re.e.div.withConfig({displayName:"PageNumberBlock__Root",componentId:"sc-ct5egc-0"})(["margin:0 0.5em;flex:0 0 auto;display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;"]),yt=Object(re.d)(["",";margin:0 0.1em;border-radius:100%;cursor:pointer;&:hover{transform:scale(1.1);box-shadow:0 0 1px gray;}&:active{background:#555;color:white;}"],rt);class wt extends i.a.Component{constructor(...e){super(...e),this.onInputChange=e=>{this.setNewPageNumber(+e.target.value)},this.goToNextPage=()=>{this.setNewPageNumber(this.props.pageNumber+1,!0)},this.goToPrevPage=()=>{this.setNewPageNumber(this.props.pageNumber-1,!1)}}setNewPageNumber(e,t=!0){e>=1&&e<=this.props.pagesQuantity?this.props.setNewPageNumber(e,!0):this.props.setNewPageNumber(t?1:this.props.pagesQuantity,!0)}render(){const e=this.context;return Object(it.jsxs)(bt,{title:e("Click on the number to enter it manually"),"data-djvujs-id":"page_number_block",children:[Object(it.jsx)(Ot,{onClick:this.goToPrevPage}),Object(it.jsx)(st,{...this.props}),Object(it.jsx)(xt,{onClick:this.goToNextPage})]})}}wt.contextType=ct;var St=q((e=>({pageNumber:Ie.currentPageNumber(e),pagesQuantity:Ie.pagesQuantity(e)})),{setNewPageNumber:tt.setNewPageNumberAction})(wt),Ot=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"}}]})(e)})).withConfig({displayName:"PageNumberBlock___StyledFaRegArrowAltCircleLeft",componentId:"sc-ct5egc-1"})(["",""],yt),xt=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z"}}]})(e)})).withConfig({displayName:"PageNumberBlock___StyledFaRegArrowAltCircleRight",componentId:"sc-ct5egc-2"})(["",""],yt);const _t=re.e.span.withConfig({displayName:"ScaleGizmo__Root",componentId:"sc-i6aj1t-0"})(["display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;svg{",";font-size:calc(var(--button-basic-size) * 0.8);}input{",";display:inline-block;width:3em;margin:0 0.5em;}"],nt,ot);class jt extends i.a.Component{constructor(e){super(e),this.increaseScale=e=>{e.preventDefault();var t=Math.floor((Math.round(100*this.props.scale)+10)/10)/10;this.props.setUserScale(t)},this.decreaseScale=e=>{e.preventDefault();var t=Math.floor((Math.round(100*this.props.scale)-10)/10)/10;this.props.setUserScale(t)},this.startEditing=e=>{e.target.select()},this.finishEditing=e=>{var t=/\d+/.exec(e.target.value),n=t?+t[0]:1,r=Math.round(n)/100;this.props.setUserScale(r),e.target.blur(),this.setState({tempValue:null})},this.onKeyPress=e=>{"Enter"===e.key&&this.finishEditing(e)},this.onChange=e=>{this.setState({tempValue:e.target.value})},this.state={tempValue:null}}render(){const e=Math.round(100*this.props.scale),t=this.context;return Object(it.jsxs)(_t,{title:t("You also can scale the page via Ctrl+MouseWheel"),"data-djvujs-id":"scale_gizmo",children:[Object(it.jsx)(Ge,{onClick:this.decreaseScale}),Object(it.jsx)("input",{onFocus:this.startEditing,onKeyPress:this.onKeyPress,onBlur:this.finishEditing,type:"text",value:null===this.state.tempValue?e+"%":this.state.tempValue,onChange:this.onChange}),Object(it.jsx)(qe,{onClick:this.increaseScale})]})}}jt.contextType=ct;var Et=q((e=>({scale:Ie.userScale(e)})),{setUserScale:tt.setUserScaleAction})(jt);const Ct=re.e.span.withConfig({displayName:"StyledPrimitives__ControlButton",componentId:"sc-100dtlk-0"})(["",";"],rt),kt=re.e.span.withConfig({displayName:"StyledPrimitives__ControlButtonWrapper",componentId:"sc-100dtlk-1"})(["cursor:pointer;:hover{","{transform:scale(1.1);}}"],Ct),Tt=re.e.button.withConfig({displayName:"StyledPrimitives__TextButton",componentId:"sc-100dtlk-2"})(["background:inherit;color:var(--color);border:1px solid var(--color);border-radius:3px;padding:0.2em;cursor:pointer;&:hover{background:var(--alternative-background-color);}&:focus{outline:none;}"]),Pt=Object(re.f)(["0%{transform:rotate(0turn);}100%{transform:rotate(1turn);}"]),Nt=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"}}]})(e)})).withConfig({displayName:"StyledPrimitives__Spinner",componentId:"sc-100dtlk-3"})(["animation:"," 1s infinite steps(9,end);"],Pt),It=re.e.span.withConfig({displayName:"ViewModeButtons__ContinuousScrollButton",componentId:"sc-rdmqfy-0"})(["",";display:inline-flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;overflow:hidden;max-height:100%;svg{flex:0 0 auto;}"],rt),Rt=re.e.span.withConfig({displayName:"ViewModeButtons__Root",componentId:"sc-rdmqfy-1"})(["display:inline-flex;align-items:center;height:calc(var(--button-basic-size) * 1.2);span{opacity:0.5;}"]);class At extends i.a.Component{constructor(...e){super(...e),this.enableContinuousScrollMode=()=>{this.props.dispatch({type:ce.SET_VIEW_MODE,payload:ue.CONTINUOUS_SCROLL_MODE})},this.enableSinglePageMode=()=>{this.props.dispatch({type:ce.SET_VIEW_MODE,payload:ue.SINGLE_PAGE_MODE})},this.enableTextMode=()=>{this.props.dispatch({type:ce.SET_VIEW_MODE,payload:ue.TEXT_MODE})}}render(){const{viewMode:e,isIndirect:t}=this.props,n=this.context;return Object(it.jsxs)(Rt,{"data-djvujs-id":"view_mode_buttons",children:[t?null:Object(it.jsxs)(It,{style:e===ue.CONTINUOUS_SCROLL_MODE?{opacity:1}:null,title:n("Continuous scroll view mode"),onClick:this.enableContinuousScrollMode,children:[Object(it.jsx)(Xe,{}),Object(it.jsx)(Xe,{})]}),Object(it.jsx)("span",{title:n("Single page view mode"),style:e===ue.SINGLE_PAGE_MODE?{opacity:1}:null,children:Object(it.jsx)(Ct,{as:Xe,onClick:this.enableSinglePageMode})}),Object(it.jsx)("span",{title:n("Text view mode"),style:e===ue.TEXT_MODE?{opacity:1}:null,children:Object(it.jsx)(Ct,{as:Qe,onClick:this.enableTextMode})})]})}}At.contextType=ct;var Dt=q((e=>({viewMode:Ie.viewMode(e),isIndirect:Ie.isIndirect(e)})))(At);const Lt=re.e.div.withConfig({displayName:"CursorModeButtonGroup__Root",componentId:"sc-1lsg007-0"})(["white-space:nowrap;padding:0 0.1em;span{opacity:0.5;display:inline-block;&.active{opacity:1;}}"]);var Mt=()=>{const e=ne(Ie.cursorMode),t=Z(),n=ft();return Object(it.jsxs)(Lt,{"data-djvujs-id":"cursor_mode_buttons",children:[Object(it.jsx)("span",{title:n("Text cursor mode"),className:e===ue.TEXT_CURSOR_MODE?"active":null,children:Object(it.jsx)(zt,{onClick:()=>t(tt.setCursorModeAction(ue.TEXT_CURSOR_MODE))})}),Object(it.jsx)("span",{title:n("Grab cursor mode"),className:e===ue.GRAB_CURSOR_MODE?"active":null,children:Object(it.jsx)(Ut,{onClick:()=>t(tt.setCursorModeAction(ue.GRAB_CURSOR_MODE))})})]})},zt=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"}}]})(e)})).withConfig({displayName:"CursorModeButtonGroup___StyledFaICursor",componentId:"sc-1lsg007-1"})(["",""],rt),Ut=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M372.57 112.641v-10.825c0-43.612-40.52-76.691-83.039-65.546-25.629-49.5-94.09-47.45-117.982.747C130.269 26.456 89.144 57.945 89.144 102v126.13c-19.953-7.427-43.308-5.068-62.083 8.871-29.355 21.796-35.794 63.333-14.55 93.153L132.48 498.569a32 32 0 0 0 26.062 13.432h222.897c14.904 0 27.835-10.289 31.182-24.813l30.184-130.958A203.637 203.637 0 0 0 448 310.564V179c0-40.62-35.523-71.992-75.43-66.359zm27.427 197.922c0 11.731-1.334 23.469-3.965 34.886L368.707 464h-201.92L51.591 302.303c-14.439-20.27 15.023-42.776 29.394-22.605l27.128 38.079c8.995 12.626 29.031 6.287 29.031-9.283V102c0-25.645 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V67c0-25.663 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V101.125c0-25.672 36.57-24.81 36.57.691V256c0 8.837 7.163 16 16 16h6.857c8.837 0 16-7.163 16-16v-76.309c0-26.242 36.57-25.64 36.57-.691v131.563z"}}]})(e)})).withConfig({displayName:"CursorModeButtonGroup___StyledFaRegHandPaper",componentId:"sc-1lsg007-2"})(["",""],rt);const Ft=re.e.span.withConfig({displayName:"RotationControl__Root",componentId:"sc-1e5b0xb-0"})(["display:inline-flex;align-items:center;cursor:pointer;margin:0 0.5em;text-align:center;svg{font-size:calc(var(--button-basic-size) * 0.7);}svg:first-child{&:hover{transform:scale(1.1);}}svg:last-child{transform:scale(-1,1);&:hover{transform:scale(-1.1,1.1);}}"]);var Bt=()=>{const e=Z(),t=ne(Ie.pageRotation),n=ft();return Object(it.jsxs)(Ft,{"data-djvujs-id":"rotation_control",title:n("Rotate the page"),children:[Object(it.jsx)(Ye,{onClick:()=>{e(tt.setPageRotationAction(t?t-90:270))}}),Object(it.jsxs)(Vt,{children:[t,"\xb0"]}),Object(it.jsx)(Ye,{onClick:()=>{e(tt.setPageRotationAction(270===t?0:t+90))}})]})},Vt=Object(re.e)("span").withConfig({displayName:"RotationControl___StyledSpan",componentId:"sc-1e5b0xb-1"})(["width:2.5em;"]);function Wt(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 176v160m80-80H176"}}]})(e)}function Ht(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M224 184h128m-128 72h128m-128 71h128"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 258c0-106-86-192-192-192S64 152 64 258s86 192 192 192 192-86 192-192z"}},{tag:"circle",attr:{cx:"168",cy:"184",r:"8",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"168",cy:"257",r:"8",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"168",cy:"328",r:"8",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}}]})(e)}function $t(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm-64 287.5a16 16 0 01-16 16h-16a16 16 0 01-16-16v-16a16 16 0 0116-16h16a16 16 0 0116 16zm0-71a16 16 0 01-16 16h-16a16 16 0 01-16-16v-16a16 16 0 0116-16h16a16 16 0 0116 16zm0-72a16 16 0 01-16 16h-16a16 16 0 01-16-16v-16a16 16 0 0116-16h16a16 16 0 0116 16zm176 151H212.67v-32H368zm0-71H212.67v-32H368zm0-72H212.67v-32H368z"}}]})(e)}const Gt=re.e.svg.withConfig({displayName:"ContentsButton__Root",componentId:"sc-ghsm65-0"})(["",";font-size:2em;flex:0 0 auto;"],nt);var qt=()=>{const e=Z(),t=ne(Ie.isContentsOpened),n=ft();return Object(it.jsx)(Gt,{as:t?$t:Ht,onClick:()=>e({type:ce.TOGGLE_CONTENTS}),"data-djvujs-id":"contents_button",title:n("Table of contents")})};var Yt=()=>{const{hideFullPageSwitch:e}=ne(Ie.uiOptions),t=ne(Ie.isFullPageView),n=Z(),r=ft();return e?null:Object(it.jsx)("div",{title:r("Switch full page mode"),"data-djvujs-class":"full_page_button",children:Object(it.jsx)(Ct,{as:t?Ve:$e,onClick:()=>console.log("toggle Fullscreen clicked")||n(tt.toggleFullPageViewAction(!t))})})};function Kt(e){return Ue({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"7 13 12 18 17 13"}},{tag:"polyline",attr:{points:"7 6 12 11 17 6"}}]})(e)}const Qt=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}}]})(e)})).withConfig({displayName:"MenuButton__Root",componentId:"sc-ip1cpf-0"})(["",";font-size:2em;color:var(--highlight-color);margin-left:",";"],nt,(e=>e.theme.isMobile?0:"1em"));var Xt=({onClick:e})=>Object(it.jsx)(Qt,{onClick:e,"data-djvujs-id":"menu_button"});const Zt=Object(re.e)((function(e){return Ue({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.729 4.271c-.389-.391-1.021-.393-1.414-.004-.104.104-.176.227-.225.355-.832 1.736-1.748 2.715-2.904 3.293-1.297.64-2.786 1.085-5.186 1.085-.13 0-.26.025-.382.076-.245.102-.439.297-.541.541-.101.244-.101.52 0 .764.051.123.124.234.217.326l3.243 3.243-4.537 6.05 6.05-4.537 3.242 3.242c.092.094.203.166.326.217.122.051.252.078.382.078s.26-.027.382-.078c.245-.102.44-.295.541-.541.051-.121.077-.252.077-.381 0-2.4.444-3.889 1.083-5.166.577-1.156 1.556-2.072 3.293-2.904.129-.049.251-.121.354-.225.389-.393.387-1.025-.004-1.414l-3.997-4.02z"}}]})(e)})).withConfig({displayName:"PinButton__Root",componentId:"sc-wfvhy2-0"})(["font-size:calc(var(--button-basic-size) * 1.2);margin-right:1em;cursor:pointer;",";:hover{transform:scale(1.1) ",";}"],(e=>e.$pinned?"":"transform: rotate(45deg)"),(e=>e.$pinned?"":"rotate(45deg)"));var Jt=({isPinned:e,onClick:t})=>{const n=ft();return Object(it.jsx)(Zt,{$pinned:e,onClick:t,"data-djvujs-id":"pin_button",title:n(e?"Toolbar is always shown":"Toolbar automatically hides")})},en=({onClick:e,className:t=null})=>Object(it.jsx)(tn,{className:t,onClick:e,"data-djvujs-class":"close_button"}),tn=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"}}]})(e)})).withConfig({displayName:"CloseButton___StyledFaRegTimesCircle",componentId:"sc-6thp0n-0"})(["",""],nt);const nn=Object(re.e)(Ke).withConfig({displayName:"FileBlock__FileIcon",componentId:"sc-15tzw9c-0"})(["flex:0 0 auto;"]),rn=re.e.span.withConfig({displayName:"FileBlock__FileName",componentId:"sc-15tzw9c-1"})(["overflow:hidden;flex:0 1 auto;max-width:20em;text-align:left;text-overflow:ellipsis;margin:0 0.5em;"]),on=re.e.div.withConfig({displayName:"FileBlock__Root",componentId:"sc-15tzw9c-2"})(["flex:0 1 auto;cursor:pointer;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;white-space:nowrap;overflow:hidden;&:hover{","{transform:scale(1.1)}}"],nn);class an extends i.a.Component{constructor(...e){super(...e),this.onChange=e=>{if(!e.target.files.length)return;const t=e.target.files[0];var n=new FileReader;n.readAsArrayBuffer(t),n.onload=()=>{this.props.createNewDocument(n.result,t.name)}},this.onClick=e=>{this.input&&this.input.click()}}render(){const e=this.context;return Object(it.jsxs)(on,{className:"file_block",onClick:this.onClick,title:e("Open another .djvu file"),children:[Object(it.jsx)(nn,{}),Object(it.jsx)(rn,{children:null==this.props.fileName?e("Choose a file"):this.props.fileName||""}),Object(it.jsx)("input",{style:{display:"none"},type:"file",onChange:this.onChange,accept:".djvu, .djv",ref:e=>this.input=e})]})}}an.contextType=ct;var ln=q(null,{createNewDocument:tt.createDocumentFromArrayBufferAction})(an);var sn=({withLabel:e=!1,onClick:t=(()=>{})})=>{const n=Z(),r=ft();return Object(it.jsxs)(kt,{title:r("Show options window"),"data-djvujs-class":"options_button",onClick:()=>{n({type:ce.TOGGLE_OPTIONS_WINDOW,payload:!0}),t()},children:[Object(it.jsx)(Ct,{as:Be}),e?Object(it.jsx)("span",{children:r("Options")}):null]})};var un=({withLabel:e=null,onClick:t=(()=>{})})=>{const n=Z(),r=ft();return Object(it.jsxs)(kt,{title:r("Show help window"),"data-djvujs-class":"help_button",onClick:()=>{n(tt.showHelpWindowAction()),t()},children:[Object(it.jsx)(cn,{}),e?Object(it.jsx)("span",{children:r("About")}):null]})},cn=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"}}]})(e)})).withConfig({displayName:"HelpButton___StyledFaRegQuestionCircle",componentId:"sc-xkbnif-0"})(["",""],rt);const dn=Object(re.d)(["z-index:4;position:absolute;top:0;left:0;width:100%;height:100%;"]),fn=re.e.div.withConfig({displayName:"ModalWindow__ModalWindowRoot",componentId:"sc-1qa1mzi-0"})(["color:var(--color);box-shadow:0 0 2px var(--color);background:var(--modal-window-background-color);border-radius:0.5em;font-size:1.5em;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);max-width:90%;max-height:90%;width:max-content;height:max-content;z-index:2;padding:0;overflow:hidden;display:flex;flex-direction:column;--closeButtonBlockHeight:28px;",";",";"],(e=>e.$fixedSize?`\n height: ${e.theme.isMobile?90:80}%;\n width: ${e.theme.isMobile?90:80}%;\n `:""),(e=>e.$error?"\n background: rgb(255, 209, 212);\n color: black;\n ":"")),pn=re.e.div.withConfig({displayName:"ModalWindow__ContentWrapper",componentId:"sc-1qa1mzi-1"})(["overflow:auto;padding-bottom:var(--closeButtonBlockHeight);"]),hn=re.e.div.withConfig({displayName:"ModalWindow__DarkLayer",componentId:"sc-1qa1mzi-2"})(["position:absolute;top:0;left:0;width:100%;height:100%;background:var(--alternative-background-color);backdrop-filter:blur(2px);opacity:0.8;z-index:1;"]);class mn extends i.a.Component{render(){const{onClose:e,isError:t,isFixedSize:n,className:r="",usePortal:o=!1}=this.props,i=Object(it.jsxs)(gn,{"data-djvujs-class":"modal_window",children:[Object(it.jsx)(hn,{onClick:e,"data-djvujs-class":"dark_layer"}),Object(it.jsxs)(fn,{className:r,$error:t,$fixedSize:n,children:[Object(it.jsx)(vn,{onClick:e}),Object(it.jsx)(pn,{children:this.props.children})]})]});if(o){const e=document.getElementById("djvujs-modal-windows-container");return e?l.a.createPortal(i,e):i}return i}}var gn=Object(re.e)("div").withConfig({displayName:"ModalWindow___StyledDiv",componentId:"sc-1qa1mzi-3"})(["",""],dn),vn=Object(re.e)(en).withConfig({displayName:"ModalWindow___StyledCloseButton",componentId:"sc-1qa1mzi-4"})(["height:var(--closeButtonBlockHeight);margin-left:auto;margin-right:0.25em;"]);const bn=re.e.div.withConfig({displayName:"SaveNotification",componentId:"sc-4dsxol-0"})(["padding:1em;"]),yn=re.e.div.withConfig({displayName:"SaveNotification__ButtonBlock",componentId:"sc-4dsxol-1"})(["margin-top:1em;display:flex;justify-content:space-around;","{font-size:0.8em;}"],Tt);var wn=({onSave:e=(()=>{}),onClose:t=(()=>{})})=>{const{onSaveNotification:n}=ne(Ie.uiOptions);return Object(it.jsx)(mn,{onClose:()=>{n.yesButton||n.noButton||e(),t()},usePortal:!0,children:Object(it.jsxs)(bn,{children:[Object(it.jsx)("div",{children:n.text}),Object(it.jsxs)(yn,{children:[n.yesButton?Object(it.jsx)(Tt,{onClick:()=>{t(),e()},children:n.yesButton}):null,n.noButton?Object(it.jsx)(Tt,{onClick:t,children:n.noButton}):null]})]})})},Sn=({withLabel:e=!1,onClick:t=(()=>{})})=>{const n=ft(),r=Z(),[o,a]=i.a.useState(!1),{onSaveNotification:l}=ne(Ie.uiOptions),s=()=>r(tt.tryToSaveDocument());return Object(it.jsxs)(it.Fragment,{children:[Object(it.jsxs)(kt,{title:n("Save document"),onClick:()=>{l&&l.text?a(!0):s(),t()},children:[Object(it.jsx)(Ct,{as:We}),e?Object(it.jsx)("span",{children:n("Save")}):null]}),o?Object(it.jsx)(wn,{onSave:s,onClose:()=>a(!1)}):null]})};const On={appWidth:769,appHeight:569,isMobile:!1},xn=re.a,_n=()=>i.a.useContext(xn);var jn=({AppRoot:e})=>{const t=Object(o.useRef)(null),n=function(e){const[t,n]=Object(o.useState)(On);return Object(o.useEffect)((()=>{if(!e.current)return;const t=new ResizeObserver((([e])=>{const t=e.contentBoxSize?e.contentBoxSize[0]||e.contentBoxSize:{inlineSize:e.contentRect.width,blockSize:e.contentRect.height};n({appWidth:t.inlineSize,appHeight:t.blockSize,isMobile:t.blockSize<569||t.inlineSize<769})}));return t.observe(e.current),()=>t.disconnect()}),[e.current,n]),t}(t),r=function(e){const[t,n]=Object(o.useState)(!1);return Object(o.useEffect)((()=>{if(!e.current)return;const t=()=>{n(document.fullscreenElement===e.current||document.webkitFullscreenElement===e.current)};e.current.addEventListener("fullscreenchange",t),e.current.addEventListener("webkitfullscreenchange",t)}),[e.current]),{isFullscreen:t,toggleFullscreen:async()=>{if(!e.current||!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)return;let n=null;t?(document.fullscreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen?n=document.exitFullscreen():document.webkitExitFullscreen&&(n=e.current.webkitExitFullscreen())):e.current.requestFullscreen?n=e.current.requestFullscreen():e.current.webkitRequestFullScreen&&(n=e.current.webkitRequestFullScreen());try{await n}catch(r){console.warn("Cannot change fullscreen mode. Error: \n",r)}}}}(t),i=Z(),a={...n,...r};Object(o.useEffect)((()=>{i({type:ce.UPDATE_APP_CONTEXT,payload:a})}),[i,a]);const l=Object(o.useMemo)((()=>Object(it.jsx)(e,{ref:t})),[t]);return Object(it.jsx)(re.b,{theme:a,children:l})};const En=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"448",height:"320",x:"32",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"32",ry:"32"}},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 448l-8-64h-80l-8 64h96z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 448H144"}},{tag:"path",attr:{d:"M32 304v48a32.09 32.09 0 0032 32h384a32.09 32.09 0 0032-32v-48zm224 64a16 16 0 1116-16 16 16 0 01-16 16z"}}]})(e)})).withConfig({displayName:"FullscreenButton",componentId:"sc-13s7s3c-0"})(["",";font-size:1.1em;color:",";"],nt,(e=>e.$active?"var(--highlight-color)":"inherit"));var Cn=({className:e=null})=>{const{isFullscreen:t,toggleFullscreen:n}=_n(),r=ft();return Object(it.jsx)(En,{className:e,"data-djvujs-class":"fullscreen_button",title:r("Fullscreen mode"),$active:t,onClick:n})};const kn=re.e.div.withConfig({displayName:"Menu__Root",componentId:"sc-rs4ngp-0"})(["font-size:16px;--button-basic-size:1em;position:absolute;bottom:calc(100% + var(--app-padding));right:0;z-index:1;min-height:min(15em,","px);max-height:","px;width:fit-content;max-width:90%;background:var(--background-color);border:1px solid var(--border-color);border-radius:5px 0 5px 0;padding:0.5em;overflow:hidden;display:flex;flex-direction:column;",";transition:transform 0.5s;"],(e=>.7*e.theme.appHeight),(e=>.7*e.theme.appHeight),(e=>e.$opened?"transform: translateX(0);":"transform: translateX(calc(100% + var(--app-padding) * 2));")),Tn=re.e.div.withConfig({displayName:"Menu__MenuWrapper",componentId:"sc-rs4ngp-1"})(["display:flex;flex-direction:column;& > *{margin-bottom:1em;}"]),Pn=re.e.div.withConfig({displayName:"Menu__Header",componentId:"sc-rs4ngp-2"})(["display:flex;align-items:center;border-bottom:1px solid var(--border-color);padding-bottom:0.5em;margin-bottom:0.5em;font-size:1.5em;svg{margin-left:auto;}span{margin-right:1em;}"]),Nn=re.e.div.withConfig({displayName:"Menu__DocumentWrapper",componentId:"sc-rs4ngp-3"})(["border-bottom:1px solid var(--border-color);margin-bottom:1em;padding-bottom:0.5em;padding-left:0.5em;& > div:first-child{margin-bottom:1em;}"]),In=Object(re.d)(["flex-direction:column;padding-left:1em;align-items:flex-start;border-bottom:1px dashed var(--border-color);margin-bottom:1em;& > *{margin-bottom:0.5em;}"]),Rn=re.e.div.withConfig({displayName:"Menu__DocumentControls",componentId:"sc-rs4ngp-4"})(["display:flex;flex-wrap:wrap;align-items:center;margin-top:1em;",";"],(e=>e.theme.isMobile?In:"")),An=Object(re.d)(["cursor:pointer;:hover{& svg{transform:scale(1.1);}}"]),Dn=re.e.div.withConfig({displayName:"Menu__DocumentControl",componentId:"sc-rs4ngp-5"})(["",";margin-right:1.5em;white-space:nowrap;display:flex;align-items:center;","{margin-left:0;}"],An,Ct),Ln=re.e.div.withConfig({displayName:"Menu__MobileControl",componentId:"sc-rs4ngp-6"})(["display:flex;align-items:center;margin-bottom:1em;span:first-child{margin-right:1em;}"]),Mn=re.e.div.withConfig({displayName:"Menu__Content",componentId:"sc-rs4ngp-7"})(["overflow:auto;"]);var zn=({isOpened:e,onClose:t})=>{const n=Z(),r=ft(),o=ne(Ie.fileName),{hideOpenAndCloseButtons:i,hidePrintButton:a,hideSaveButton:l}=ne(Ie.uiOptions),{isMobile:s}=_n(),u=t;return Object(it.jsxs)(kn,{$opened:e,"data-djvujs-id":"menu",children:[Object(it.jsxs)(Pn,{children:[Object(it.jsx)("span",{children:r("Menu")}),Object(it.jsx)(en,{onClick:u})]}),Object(it.jsxs)(Mn,{children:[Object(it.jsxs)(Nn,{children:[Object(it.jsxs)("div",{children:[r("Document"),":"]}),i?o?Object(it.jsx)("span",{children:o}):null:Object(it.jsx)(ln,{fileName:o||""}),Object(it.jsxs)(Rn,{children:[a?null:Object(it.jsxs)(Dn,{onClick:()=>{n({type:ce.OPEN_PRINT_DIALOG}),u()},title:r("Print document"),children:[Object(it.jsx)(Un,{}),Object(it.jsx)("span",{children:r("Print")})]}),l?null:Object(it.jsx)(Dn,{onClick:u,children:Object(it.jsx)(Sn,{onClick:u,withLabel:!0})}),i?null:Object(it.jsxs)(Dn,{onClick:()=>n(tt.closeDocumentAction()),children:[Object(it.jsx)(Fn,{as:en}),Object(it.jsx)("span",{children:r("Close")})]})]}),s?Object(it.jsxs)(it.Fragment,{children:[Object(it.jsxs)(Ln,{children:[Object(it.jsxs)("span",{children:[r("View mode"),":"]}),Object(it.jsx)(Dt,{})]}),Object(it.jsxs)(Ln,{children:[Object(it.jsxs)("span",{children:[r("Scale"),":"]}),Object(it.jsx)(Et,{})]}),Object(it.jsxs)(Ln,{children:[Object(it.jsxs)("span",{children:[r("Rotation"),":"]}),Object(it.jsx)(Bt,{})]}),Object(it.jsxs)(Ln,{children:[Object(it.jsxs)("span",{children:[r("Cursor mode"),":"]}),Object(it.jsx)(Mt,{})]})]}):null]}),Object(it.jsxs)(Tn,{children:[Object(it.jsxs)(Ln,{children:[Object(it.jsxs)("span",{children:[r("Full page mode"),":"]}),Object(it.jsx)(Yt,{})]}),document.fullscreenEnabled||document.webkitFullscreenEnabled?Object(it.jsxs)(Ln,{children:[Object(it.jsxs)("span",{children:[r("Fullscreen mode"),":"]}),Object(it.jsx)(Cn,{})]}):null,Object(it.jsx)(sn,{onClick:u,withLabel:!0}),Object(it.jsx)(un,{onClick:u,withLabel:!0})]})]})]})},Un=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"}}]})(e)})).withConfig({displayName:"Menu___StyledFaPrint",componentId:"sc-rs4ngp-8"})(["",""],rt),Fn=Object(re.e)(Ct).withConfig({displayName:"Menu___StyledControlButton",componentId:"sc-rs4ngp-9"})(["font-size:1em;"]);const Bn=Object(re.d)(["bottom:calc(100% + var(--app-padding));right:0;transform:rotate(180deg);transition:transform 1s,bottom 0.5s,right 0.5s 0.5s;"]),Vn=re.e.div.withConfig({displayName:"HideButton__Root",componentId:"sc-16k0k0x-0"})(["--size:28px;width:var(--size);height:var(--size);font-size:calc(var(--size) * 0.7);position:absolute;z-index:1;background:var(--background-color);border-radius:100px;border:1px solid var(--color);cursor:pointer;display:flex;justify-content:center;align-items:center;transition:transform 1s,bottom 0.5s 0.5s,right 0.5s;right:0;bottom:calc(100% + var(--app-padding));",";",";"],(e=>e.theme.appWidth>400?"\n right: 25%;\n bottom: 50%;\n transform: translateX(50%) translateY(50%);\n ":""),(e=>e.$hidden?Bn:""));var Wn=({isToolbarHidden:e,onClick:t})=>Object(it.jsx)(Vn,{$hidden:e,onClick:t,"data-djvujs-id":"hide_button",children:Object(it.jsx)(Kt,{})});const Hn="42px",$n=Object(re.d)(["font-size:16px;& > *{margin-right:0;margin-left:0;}"]),Gn=re.e.div.withConfig({displayName:"Toolbar__Root",componentId:"sc-xmrcl3-0"})(["position:relative;flex:0 0 auto;border:1px solid var(--border-color);border-radius:0 7px 0 7px;padding:7px 4px;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;height:",";box-sizing:border-box;align-self:stretch;margin-top:var(--app-padding);z-index:2;font-size:14px;--button-basic-size:1.5em;margin-bottom:0;transition:margin-bottom 0.5s;",";",";"],Hn,(e=>e.$hidden?"margin-bottom: calc(-42px - var(--app-padding) - 1px)":""),(e=>e.$mobile?$n:"")),qn=re.e.div.withConfig({displayName:"Toolbar__CentralPanel",componentId:"sc-xmrcl3-1"})(["height:100%;max-width:45em;margin:0 auto;display:flex;align-items:center;justify-content:center;& > *{margin:0 0.8em;}"]),Yn=re.e.div.withConfig({displayName:"Toolbar__RightPanel",componentId:"sc-xmrcl3-2"})(["height:100%;display:flex;align-items:center;"]),Kn=re.e.div.withConfig({displayName:"Toolbar__InvisibleLayer",componentId:"sc-xmrcl3-3"})(["position:absolute;bottom:0;height:calc("," + var(--app-padding) * 2);width:100%;z-index:1;"],Hn);var Qn=()=>{const[e,t]=i.a.useState(!0),[n,r]=i.a.useState(!1),[o,a]=i.a.useState(!1),[l,s]=i.a.useState(!1),u=i.a.useCallback((()=>r(!1)),[r]),c=i.a.useCallback((()=>r(!0)),[r]),d=i.a.useCallback((()=>{t(!e)}),[e,t]),{isMobile:f}=_n(),p=f||e,h=o&&f||n&&!p;return Object(it.jsxs)(it.Fragment,{children:[p?null:Object(it.jsx)(Kn,{onMouseEnter:u,onMouseLeave:c}),Object(it.jsxs)(Gn,{$hidden:h,onMouseEnter:p?null:u,onMouseLeave:p?null:c,"data-djvujs-id":"toolbar",$mobile:f,children:[Object(it.jsx)(qt,{}),Object(it.jsxs)(qn,{children:[f?null:Object(it.jsx)(Dt,{}),f?null:Object(it.jsx)(Mt,{}),Object(it.jsx)(St,{}),f?null:Object(it.jsx)(Et,{}),f?null:Object(it.jsx)(Bt,{})]}),Object(it.jsxs)(Yn,{"data-djvujs-class":"right_panel",children:[f?null:Object(it.jsx)(Jt,{isPinned:e,onClick:d}),f?null:Object(it.jsx)(Yt,{}),f?Object(it.jsx)(Wn,{onClick:()=>a(!o),isToolbarHidden:h}):null,Object(it.jsx)(Xt,{onClick:()=>s(!l)})]}),Object(it.jsx)(zn,{isOpened:l&&!h,onClose:()=>s(!1)})]})]})};const Xn=Object(re.e)(Ke).withConfig({displayName:"FileZone__FileIcon",componentId:"sc-hxwsg2-0"})(["font-size:1.5em;"]),Zn=Object(re.f)(["from{transform:rotateY(0deg)}25%{transform:rotateY(5deg)}75%{transform:rotateY(-5deg)}to{transform:rotateY(0deg)}"]),Jn=Object(re.d)(["animation:"," 1s infinite linear;opacity:0.8;border-color:var(--highlight-color);"],Zn),er=re.e.div.withConfig({displayName:"FileZone__Root",componentId:"sc-hxwsg2-1"})(["border:0.1em dashed var(--border-color);background:var(--alternative-background-color);padding:0.5em;max-width:20em;min-height:5em;margin:auto;border-radius:0.5em;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;&:hover{","{transform:scale(1.1);}}",";"],Xn,(e=>e.$dragOver?Jn:""));class tr extends i.a.Component{constructor(...e){super(...e),this.state={isDragOver:!1},this.onChange=e=>{e.target.files.length&&this.processFile(e.target.files[0])},this.onClick=e=>{this.input&&this.input.click()},this.checkDrag=e=>{1===e.dataTransfer.items.length&&"file"===e.dataTransfer.items[0].kind&&(e.preventDefault(),this.setState({isDragOver:!0}))},this.onDragLeave=e=>{this.setState({isDragOver:!1})},this.onDrop=e=>{this.setState({isDragOver:!1}),"file"===e.dataTransfer.items[0].kind&&(e.preventDefault(),this.processFile(e.dataTransfer.items[0].getAsFile()))}}processFile(e){var t=new FileReader;t.readAsArrayBuffer(e),t.onload=()=>{this.props.createNewDocument(t.result,e.name)}}render(){const e=this.context;return Object(it.jsxs)(er,{$dragOver:this.state.isDragOver,onClick:this.onClick,title:e("Open another .djvu file"),onDragEnter:this.checkDrag,onDragOver:this.checkDrag,onDragLeave:this.onDragLeave,onDrop:this.onDrop,children:[Object(it.jsx)(Xn,{}),Object(it.jsx)("span",{children:e("Drag & Drop a file here or click to choose manually")}),Object(it.jsx)("input",{style:{display:"none"},type:"file",onChange:this.onChange,accept:".djvu, .djv",ref:e=>this.input=e})]})}}tr.contextType=ct;var nr=q(null,{createNewDocument:tt.createDocumentFromArrayBufferAction})(tr);const rr=!!(document.querySelector("input#djvu_js_extension_main_page")&&window.chrome&&window.chrome.runtime&&window.chrome.runtime.id),or=/Firefox/.test(navigator.userAgent),ir=e=>/\.(djv|djvu)$/.test(e)?e:e+".djvu",ar=re.e.form.withConfig({displayName:"LinkBlock__LinkBlockRoot",componentId:"sc-1ry5hlr-0"})(["max-width:20em;display:flex;justify-content:center;margin:1em auto;input{",";flex:1 1 auto;height:2em;font-style:italic;}button{color:var(--color);margin-left:1em;border-radius:0.5em;background:none;border:1px solid var(--border-color);cursor:pointer;&:hover{background:var(--alternative-background-color);}}"],ot);var lr=()=>{const[e,t]=i.a.useState(""),n=Z(),r=ft();return Object(it.jsxs)(ar,{onSubmit:t=>{t.preventDefault(),/^https?:\/\/.+/.test(e.trim())?n({type:ce.LOAD_DOCUMENT_BY_URL,url:e}):alert(r('Enter a valid URL (it should start with "http(s)://")'))},children:[Object(it.jsx)("input",{value:e,placeholder:r("Paste a URL to a djvu file here"),onChange:e=>t(e.target.value)}),Object(it.jsx)("button",{type:"submit",children:r("Open URL")})]})};const sr=re.e.div.withConfig({displayName:"IncompleteTranslationWindow__Root",componentId:"sc-i21ms0-0"})(["font-size:18px;min-width:20em;text-align:left;padding:1em;color:var(--color);"]),ur=re.e.ul.withConfig({displayName:"IncompleteTranslationWindow__NotTranslatedList",componentId:"sc-i21ms0-1"})(["max-height:15em;overflow:auto;padding:1em 2em;font-style:italic;"]);var cr=({onClose:e,missedPhrases:t})=>{const n=ft();return Object(it.jsx)(mn,{onClose:t=>{t.stopPropagation(),e()},usePortal:!0,children:Object(it.jsxs)(sr,{children:[Object(it.jsxs)("div",{children:[Object(it.jsxs)("strong",{children:[n("The translation isn't complete.")," "]}),n("The following phrases are not translated:")]}),Object(it.jsx)(ur,{children:t.map(((e,t)=>Object(it.jsx)("li",{children:e},t)))}),Object(it.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:ue.TRANSLATION_PAGE_URL,children:n("You can improve the translation here")})]})})};const dr=re.e.span.withConfig({displayName:"LanguageWarningSign__Warning",componentId:"sc-xp2qj5-0"})(["color:var(--color);cursor:pointer;margin-right:0.5em;display:inline-flex;align-items:center;:hover{color:var(--highlight-color);}svg{margin-left:0.5em;font-size:0.8em;}"]);var fr=({languageCode:e})=>{const t=we[e],n=Object.keys(we.en).filter((e=>null==t[e]));let[r,o]=i.a.useState(!1);return n.length?Object(it.jsxs)(it.Fragment,{children:[Object(it.jsx)(dr,{onClick:e=>{e.stopPropagation(),o(!0)},children:Object(it.jsx)(He,{})}),r?Object(it.jsx)(cr,{missedPhrases:n,onClose:()=>o(!1)}):null]}):null},pr=({className:e})=>{const t=ft();return Object(it.jsx)(hr,{className:e,href:ue.TRANSLATION_PAGE_URL,target:"_blank",rel:"noopener noreferrer",title:t("Add more"),children:Object(it.jsx)(Wt,{})})},hr=Object(re.e)("a").withConfig({displayName:"AddLanguageButton___StyledA",componentId:"sc-hje2ri-0"})(["color:var(--color) !important;display:inline-block;height:1em;width:1em;:hover{transform:scale(1.2);}"]);const mr=re.e.div.withConfig({displayName:"LanguagePanel__LanguagePanelRoot",componentId:"sc-ldbzd3-0"})(["display:flex;font-size:20px;margin-top:0.5em;align-items:flex-end;justify-content:center;flex-wrap:wrap;padding:0 0.5em;"]),gr=Object(re.d)(["border-bottom:3px solid var(--highlight-color);color:var(--highlight-color);cursor:default;padding-top:0;"]),vr=re.e.div.withConfig({displayName:"LanguagePanel__LanguageItem",componentId:"sc-ldbzd3-1"})(["margin-left:0.5em;margin-bottom:0.2em;cursor:pointer;white-space:nowrap;padding-top:2px;border-bottom:1px solid transparent;vertical-align:top;",";"],(e=>e.$selected?gr:"\n :hover {\n border-color: var(--color);\n }\n ")),br=()=>{const{locale:e}=ne(Ie.options),t=Z();return Object(it.jsxs)(mr,{children:[Object.entries(we).map((([n,r])=>Object(it.jsxs)(vr,{$selected:e===n,"data-djvujs-class":"language_name "+(e===n?"selected":""),onClick:()=>t({type:ce.UPDATE_OPTIONS,payload:{locale:n}}),children:[r.nativeName,Object(it.jsx)(fr,{languageCode:n})]},n))),Object(it.jsx)(yr,{})]})};var yr=Object(re.e)(pr).withConfig({displayName:"LanguagePanel___StyledAddLanguageButton",componentId:"sc-ldbzd3-2"})(["font-size:1.5em;align-self:center;"]);const wr=re.e.span.withConfig({displayName:"ThemeSwitcher__Root",componentId:"sc-b41jlv-0"})(["margin-top:1.5em;svg{margin:0 0.5em;cursor:pointer;}"]),Sr=Object(re.d)(["transform:scale(1.5);color:var(--highlight-color);"]);var Or=()=>{const{theme:e}=ne(Ie.options),t=Z(),n=e=>()=>t({type:ce.UPDATE_OPTIONS,payload:{theme:e}});return Object(it.jsxs)(wr,{children:[Object(it.jsx)(xr,{onClick:n("light"),"data-djvujs-id":"light_theme_button","data-djvujs-class":"light"===e?"active":null,$_css:"light"===e?Sr:null}),Object(it.jsx)(_r,{onClick:n("dark"),"data-djvujs-id":"dark_theme_button","data-djvujs-class":"dark"===e?"active":null,$_css2:"dark"===e?Sr:null})]})},xr=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M494.2 221.9l-59.8-40.5 13.7-71c2.6-13.2-1.6-26.8-11.1-36.4-9.6-9.5-23.2-13.7-36.2-11.1l-70.9 13.7-40.4-59.9c-15.1-22.3-51.9-22.3-67 0l-40.4 59.9-70.8-13.7C98 60.4 84.5 64.5 75 74.1c-9.5 9.6-13.7 23.1-11.1 36.3l13.7 71-59.8 40.5C6.6 229.5 0 242 0 255.5s6.7 26 17.8 33.5l59.8 40.5-13.7 71c-2.6 13.2 1.6 26.8 11.1 36.3 9.5 9.5 22.9 13.7 36.3 11.1l70.8-13.7 40.4 59.9C230 505.3 242.6 512 256 512s26-6.7 33.5-17.8l40.4-59.9 70.9 13.7c13.4 2.7 26.8-1.6 36.3-11.1 9.5-9.5 13.6-23.1 11.1-36.3l-13.7-71 59.8-40.5c11.1-7.5 17.8-20.1 17.8-33.5-.1-13.6-6.7-26.1-17.9-33.7zm-112.9 85.6l17.6 91.2-91-17.6L256 458l-51.9-77-90.9 17.6 17.6-91.2-76.8-52 76.8-52-17.6-91.2 91 17.6L256 53l51.9 76.9 91-17.6-17.6 91.1 76.8 52-76.8 52.1zM256 152c-57.3 0-104 46.7-104 104s46.7 104 104 104 104-46.7 104-104-46.7-104-104-104zm0 160c-30.9 0-56-25.1-56-56s25.1-56 56-56 56 25.1 56 56-25.1 56-56 56z"}}]})(e)})).withConfig({displayName:"ThemeSwitcher___StyledFaRegSun",componentId:"sc-b41jlv-1"})(["",""],(e=>e.$_css)),_r=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M279.135 512c78.756 0 150.982-35.804 198.844-94.775 28.27-34.831-2.558-85.722-46.249-77.401-82.348 15.683-158.272-47.268-158.272-130.792 0-48.424 26.06-92.292 67.434-115.836 38.745-22.05 28.999-80.788-15.022-88.919A257.936 257.936 0 0 0 279.135 0c-141.36 0-256 114.575-256 256 0 141.36 114.576 256 256 256zm0-464c12.985 0 25.689 1.201 38.016 3.478-54.76 31.163-91.693 90.042-91.693 157.554 0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208z"}}]})(e)})).withConfig({displayName:"ThemeSwitcher___StyledFaRegMoon",componentId:"sc-b41jlv-2"})(["",""],(e=>e.$_css2));const jr=re.e.select.withConfig({displayName:"LanguageSelector__Select",componentId:"sc-1vy9jvp-0"})(["font-size:1em;margin-right:0.5em;padding-right:0.5em;",";"],ot),Er=re.e.div.withConfig({displayName:"LanguageSelector__Root",componentId:"sc-1vy9jvp-1"})(["display:flex;flex-wrap:wrap;align-items:center;"]);var Cr=()=>{const{locale:e}=ne(Ie.options),t=Z(),n=ft();return Object(it.jsxs)(Er,{children:[Object(it.jsxs)("span",{style:{marginRight:"0.5em"},children:[n("Language"),":"]}),Object(it.jsx)(jr,{value:e,onChange:e=>t({type:ce.UPDATE_OPTIONS,payload:{locale:e.target.value}}),children:Object.entries(we).map((([e,t])=>Object(it.jsx)("option",{value:e,children:t.nativeName},e)))}),Object(it.jsx)(fr,{languageCode:e}),Object(it.jsx)(kr,{})]})},kr=Object(re.e)(pr).withConfig({displayName:"LanguageSelector___StyledAddLanguageButton",componentId:"sc-1vy9jvp-2"})(["font-size:1.2em"]);const Tr=re.e.div.withConfig({displayName:"InitialScreen__Root",componentId:"sc-1tb5ujx-0"})(["font-size:","em;text-align:center;flex:1 1 auto;width:100%;height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;"],(e=>e.theme.isMobile?1.5:2)),Pr=re.e.div.withConfig({displayName:"InitialScreen__InfoBlock",componentId:"sc-1tb5ujx-1"})(["width:max-content;margin:0 auto 1em auto;text-align:left;font-size:0.8em;svg{font-size:1.5em;}div{display:flex;align-items:center;margin-bottom:0.25em;}"]),Nr=re.e.div.withConfig({displayName:"InitialScreen__Footer",componentId:"sc-1tb5ujx-2"})(["width:100%;display:flex;justify-content:flex-end;contain:layout;& > *{margin-left:0.5em;}"]);var Ir=()=>{const e=ft(),{isMobile:t}=_n();return Object(it.jsxs)(Tr,{children:[t?Object(it.jsx)(Cr,{}):Object(it.jsx)(br,{}),Object(it.jsx)(Or,{}),Object(it.jsxs)(Rr,{children:[Object(it.jsx)(Ar,{children:`DjVu.js Viewer v.${r.Viewer.VERSION}`}),Object(it.jsx)(Dr,{children:`(${e("powered with")} DjVu.js v.${r.VERSION})`}),Object(it.jsxs)(Pr,{children:[Object(it.jsx)("div",{children:e("#optionsButton - see the available options",{"#optionsButton":Object(it.jsx)(sn,{})})}),Object(it.jsx)("div",{children:e("#helpButton - learn more about the app",{"#helpButton":Object(it.jsx)(un,{})})})]}),rr?Object(it.jsx)(lr,{}):null,Object(it.jsx)(nr,{})]}),Object(it.jsxs)(Nr,{children:[document.fullscreenEnabled||document.webkitFullscreenEnabled?Object(it.jsx)(Lr,{}):null,Object(it.jsx)(Yt,{})]})]})},Rr=Object(re.e)("div").withConfig({displayName:"InitialScreen___StyledDiv",componentId:"sc-1tb5ujx-3"})(["margin:auto;"]),Ar=Object(re.e)("div").withConfig({displayName:"InitialScreen___StyledDiv2",componentId:"sc-1tb5ujx-4"})(["text-align:center;font-size:2em"]),Dr=Object(re.e)("div").withConfig({displayName:"InitialScreen___StyledDiv3",componentId:"sc-1tb5ujx-5"})(["font-style:italic;margin-top:0.5em;margin-bottom:1em;font-size:0.8em"]),Lr=Object(re.e)(Cn).withConfig({displayName:"InitialScreen___StyledFullscreenButton",componentId:"sc-1tb5ujx-6"})(["margin-right:0.5em;"]);const Mr=re.e.div.withConfig({displayName:"ProgressBar",componentId:"sc-14hlndr-0"})(["border:1px solid var(--color);width:25em;max-width:90%;height:3px;margin-top:0.5em;div:first-child{background:var(--color);height:100%;}"]);var zr=({percentage:e,className:t})=>Object(it.jsx)(Mr,{className:t,children:Object(it.jsx)("div",{style:{width:e+"%"}})});const Ur=re.e.div.withConfig({displayName:"LoadingPhrase__Root",componentId:"sc-1lnzqyy-0"})(["display:flex;align-items:center;span{margin-left:0.5em;}"]);var Fr=({style:e,className:t})=>{const n=ft();return Object(it.jsxs)(Ur,{style:e,className:t,children:[Object(it.jsx)(Nt,{}),Object(it.jsxs)("span",{children:[n("Loading"),"..."]})]})};const Br=re.e.div.withConfig({displayName:"FileLoadingScreen__Root",componentId:"sc-3k45rn-0"})(["flex-direction:column;width:100%;height:100%;display:flex;align-items:center;justify-content:center;white-space:nowrap;"]);var Vr=()=>{const e=ne(Ie.loadedBytes),t=ne(Ie.totalBytes),n=e&&t?Math.round(e/t*100):0;return Object(it.jsxs)(Br,{children:[Object(it.jsx)(Wr,{}),Object(it.jsxs)(Hr,{style:e||t?null:{visibility:"hidden"},children:[Math.round(e/1024).toLocaleString("ru-RU")," KB ",t?`/ ${Math.round(t/1024).toLocaleString("ru-RU")} KB`:""]}),Object(it.jsx)($r,{percentage:n,$_css:t?null:"visibility: hidden"})]})},Wr=Object(re.e)(Fr).withConfig({displayName:"FileLoadingScreen___StyledLoadingPhrase",componentId:"sc-3k45rn-1"})(["font-size:3em;margin-bottom:0.5em"]),Hr=Object(re.e)("div").withConfig({displayName:"FileLoadingScreen___StyledDiv",componentId:"sc-3k45rn-2"})(["font-size:1.5em"]),$r=Object(re.e)(zr).withConfig({displayName:"FileLoadingScreen___StyledProgressBar",componentId:"sc-3k45rn-3"})(["",""],(e=>e.$_css));const Gr=(e,t=100,n=500)=>{let r=null,o=null;const i=t=>{r=null,o=null,e(t)};return e=>{r&&e.timeStamp-r>n?(o&&clearTimeout(o),i(e)):(r||(r=e.timeStamp),o&&clearTimeout(o),o=setTimeout(i,t,e))}};function qr(e,t){let n,o,i=!1;switch(t.code){case r.ErrorCodes.NETWORK_ERROR:n=e("Network error"),o=e("Check your network connection");break;case r.ErrorCodes.UNSUCCESSFUL_REQUEST:switch(n=e("Web request error"),t.status){case 404:o=e("404 Document not found");break;case 403:o=e("403 Access forbidden");break;case 500:o=e("500 Internal server error");break;default:o=e("The request failed with HTTP status #status",{"#status":t.status})}break;case r.ErrorCodes.FILE_IS_CORRUPTED:n=e("DjVu file is corrupted"),o=e("The file doesn't comply with the DjVu format specification or it's not a whole DjVu document");break;case r.ErrorCodes.INCORRECT_FILE_FORMAT:n=e("Incorrect file format"),o=e("The provided file is not a DjVu document");break;case r.ErrorCodes.NO_SUCH_PAGE:n=e("Incorrect page number"),o=e("There is no page with the number #pageNumber",{"#pageNumber":t.pageNumber});break;case r.ErrorCodes.NO_BASE_URL:n=e("No base URL for an indirect DjVu document"),o=e("You probably opened an indirect (multi-file) DjVu document manually.")+"\n"+e("But such multi-file documents can be only loaded by URL.");break;default:n=e("Unexpected error");try{o=JSON.stringify(t,null,2),i=!0}catch{o=e("Cannot print the error, look in the console")}}return{header:n,message:o,isJSON:i}}const Yr=re.e.div.withConfig({displayName:"ErrorWindow__Header",componentId:"sc-ca2eti-0"})(["border-bottom:1px solid gray;padding:0 0.5em;"]),Kr=re.e.div.withConfig({displayName:"ErrorWindow__Body",componentId:"sc-ca2eti-1"})(["margin-top:1em;padding:0 0.5em;",";"],(e=>e.$json?"\n white-space: pre;\n font-family: Consolas, monospace;\n ":""));var Qr=()=>{const e=ft(),t=Z(),n=ne(Ie.error);if(!n)return null;const{header:r,message:o,isJSON:i}=qr(e,n);return Object(it.jsx)(mn,{isError:!0,onClose:()=>t({type:ce.CLOSE_ERROR_WINDOW}),children:Object(it.jsxs)("div",{children:[Object(it.jsx)(Yr,{children:r}),Object(it.jsx)(Kr,{$json:i,children:o})]})})};const Xr=re.e.div.withConfig({displayName:"HelpWindow__Root",componentId:"sc-tiedzi-0"})(["padding:0.5em;font-size:","px;"],(e=>e.theme.isMobile?12:20)),Zr=re.e.div.withConfig({displayName:"HelpWindow__Header",componentId:"sc-tiedzi-1"})(["font-size:1.2em;width:100%;font-weight:600;border-bottom:1px solid var(--border-color);margin:0.5em 0;"]),Jr=re.e.div.withConfig({displayName:"HelpWindow__HotkeyGrid",componentId:"sc-tiedzi-2"})(["display:grid;grid-template-columns:auto 1fr;column-gap:0.5em;& >:nth-child(2n+1){text-align:center;}"]);var eo=()=>{const e=ne(Ie.isHelpWindowShown),t=Z(),n=ft(),{hideFullPageSwitch:o}=ne(Ie.uiOptions);return e?Object(it.jsx)(mn,{onClose:()=>t(tt.closeHelpWindowAction()),isFixedSize:!0,children:Object(it.jsxs)(Xr,{children:[Object(it.jsx)(Zr,{children:`DjVu.js Viewer v.${r.Viewer.VERSION} (DjVu.js v.${r.VERSION})`}),Object(it.jsxs)("div",{children:[n("The application for viewing .djvu files in the browser."),Object(it.jsx)("br",{}),n("If something doesn't work properly, feel free to write about the problem at #email.",{"#email":Object(it.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"mailto:djvujs@yandex.ru",children:"djvujs@yandex.ru"})}),Object(it.jsx)("br",{}),n("The official website is #website.",{"#website":Object(it.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://djvu.js.org/",children:"djvu.js.org"})}),Object(it.jsx)("br",{}),n("The source code is available on #link.",{"#link":Object(it.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/RussCoder/djvujs",children:"GitHub"})}),Object(it.jsx)("br",{})]}),Object(it.jsx)(Zr,{children:n("Hotkeys")}),Object(it.jsxs)(Jr,{children:[Object(it.jsx)("em",{children:"Ctrl+S"}),Object(it.jsxs)("span",{children:["- ",n("save the document")]}),Object(it.jsx)("em",{children:"\u2190"}),Object(it.jsxs)("span",{children:["- ",n("go to the previous page")]}),Object(it.jsx)("em",{children:"\u2192"}),Object(it.jsxs)("span",{children:["- ",n("go to the next page")]})]}),o?null:Object(it.jsxs)(it.Fragment,{children:[Object(it.jsx)(Zr,{children:n("Controls")}),Object(it.jsxs)("div",{children:[n("#expandIcon and #collapseIcon are to switch the viewer to the full page mode and back.",{"#expandIcon":Object(it.jsx)($e,{}),"#collapseIcon":Object(it.jsx)(Ve,{})})," "+n("If you work with the browser extension, these buttons will cause no effect, since the viewer takes the whole page by default.")]})]})]})}):null};const to=re.e.div.withConfig({displayName:"TreeItem__Name",componentId:"sc-19bjz41-0"})(["cursor:pointer;margin-left:0.5em;line-height:20px;&:hover{text-decoration:underline;}"]),no=re.e.div.withConfig({displayName:"TreeItem__Root",componentId:"sc-19bjz41-1"})(["display:flex;flex-wrap:nowrap;& > svg{flex:0 0 auto;font-size:20px;}"]);class ro extends i.a.Component{constructor(e){super(e),this.onClick=()=>{this.props.callback&&this.props.callback(this.props.callbackData)},this.toggleItem=()=>{this.setState({isCollapsed:!this.state.isCollapsed})},this.state={isCollapsed:!0}}renderChildren(){return this.props.children?Object(it.jsx)(oo,{children:this.props.children.map(((e,t)=>Object(it.jsx)(ro,{...e},t)))}):null}render(){const e=this.state.isCollapsed?Je:Ze;return Object(it.jsxs)(no,{children:[this.props.children?Object(it.jsx)(e,{onClick:this.toggleItem}):Object(it.jsx)(io,{}),Object(it.jsxs)("div",{children:[Object(it.jsx)(to,{className:"name",onClick:this.onClick,children:this.props.name}),this.state.isCollapsed?null:this.renderChildren()]})]})}}var oo=Object(re.e)("div").withConfig({displayName:"TreeItem___StyledDiv",componentId:"sc-19bjz41-2"})(["padding-left:0.5em;"]),io=Object(re.e)((function(e){return Ue({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}}]})(e)})).withConfig({displayName:"TreeItem___StyledFaCircle",componentId:"sc-19bjz41-3"})(["transform:scale(0.5)"]);const ao=re.e.div.withConfig({displayName:"ContentsPanel__Root",componentId:"sc-t6o3i3-0"})(["padding:0.5em;box-sizing:border-box;height:100%;overflow:auto;"]),lo=re.e.div.withConfig({displayName:"ContentsPanel__Header",componentId:"sc-t6o3i3-1"})(["font-size:1.5em;border-bottom:1px solid var(--border-color);margin-bottom:0.5em;padding-bottom:0.2em;display:flex;justify-content:space-between;span:first-child{margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;}"]);class so extends i.a.Component{constructor(...e){super(...e),this.onTreeItemClick=e=>{this.props.dispatch(tt.setPageByUrlAction(e,this.props.appContext.isMobile))}}convertBookmarkArrayToTreeItemDataArray(e){return e&&e.map((e=>this.makeTreeItemDataByBookmark(e)))}makeTreeItemDataByBookmark(e){return{name:e.description,children:this.convertBookmarkArrayToTreeItemDataArray(e.children),callback:this.onTreeItemClick,callbackData:e.url}}render(){const{contents:e,dispatch:t}=this.props,n=this.context;return Object(it.jsxs)(ao,{children:[Object(it.jsxs)(lo,{children:[Object(it.jsx)("span",{children:n("Contents")}),Object(it.jsx)(en,{onClick:()=>t({type:ce.CLOSE_CONTENTS})})]}),e&&e.map(((e,t)=>Object(it.jsx)(ro,{...this.makeTreeItemDataByBookmark(e)},t))),e?null:Object(it.jsx)(fo,{children:n("No contents provided")})]})}}so.contextType=ct;var uo,co=q()((uo=so,e=>Object(it.jsx)(xn.Consumer,{children:t=>Object(it.jsx)(uo,{...e,appContext:t})}))),fo=Object(re.e)("div").withConfig({displayName:"ContentsPanel___StyledDiv",componentId:"sc-t6o3i3-2"})(["font-style:italic;"]);const po=Object(re.d)(["position:absolute;z-index:1;height:100%;background:var(--background-color);max-width:90%;"]),ho=re.e.div.withConfig({displayName:"LeftPanel__Root",componentId:"sc-14cqkwh-0"})(["flex:0 0 auto;border:1px solid var(--border-color);border-radius:1em 0 1em 0;box-sizing:border-box;max-width:80%;transition:margin-left 0.5s,width 0.5s;font-size:14px;",";"],(e=>e.theme.isMobile?po:"")),mo=re.e.div.withConfig({displayName:"LeftPanel__Border",componentId:"sc-14cqkwh-1"})(["box-sizing:border-box;float:right;height:100%;position:relative;width:7px;left:4px;display:flex;flex-direction:column;justify-content:center;align-items:center;--point-size:5px;div{width:var(--point-size);height:var(--point-size);transform:scaleX(0.75) scaleY(1.25) rotateZ(45deg);background:var(--border-color);margin-bottom:var(--point-size);}&:hover{cursor:col-resize;}"]);class go extends i.a.Component{constructor(...e){super(...e),this.prevIsMobile=null,this.lastContents=null,this.contentsWasClosed=null,this.onBeginResizing=e=>{e.preventDefault();const t=this.topNode.getBoundingClientRect().width;this.topNode.style.transition="none",this.initialState={clientX:e.clientX,width:t},window.addEventListener("mousemove",this.onResizing),window.addEventListener("mouseup",this.onEndResizing)},this.onResizing=e=>{if(e.preventDefault(),!this.initialState)return;const t=e.clientX-this.initialState.clientX;this.topNode.style.width=this.initialState.width+t+"px"},this.onEndResizing=e=>{e.preventDefault(),window.removeEventListener("mousemove",this.onResizing),window.removeEventListener("mouseup",this.onEndResizing),this.topNode.style.transition=null,this.initialState=null,this.topNode.getBoundingClientRect().width<40&&this.closeContents()},this.closeContents=()=>this.props.dispatch({type:ce.CLOSE_CONTENTS}),this.ref=e=>this.topNode=e}componentDidUpdate(e,t,n){this.prevIsMobile!==this.context.isMobile&&(this.context.isMobile&&this.props.isContentsOpened?(this.closeContents(),this.contentsWasClosed=!0):!this.context.isMobile&&this.contentsWasClosed&&(this.props.isContentsOpened||this.props.dispatch({type:ce.TOGGLE_CONTENTS}),this.contentsWasClosed=!1)),this.prevIsMobile=this.context.isMobile}render(){const{contents:e,isContentsOpened:t}=this.props,n=this.context.isMobile,r=e&&this.lastContents!==e;this.lastContents=e;const o=this.topNode?this.topNode.getBoundingClientRect().width:0,i=n?"90%":"20%";return Object(it.jsxs)(it.Fragment,{children:[n&&t?Object(it.jsx)(hn,{onClick:this.closeContents}):null,Object(it.jsxs)(ho,{ref:this.ref,style:!t||n&&r?{width:o,marginLeft:(a=o,`calc(-${a}px - var(--app-padding))`)}:{width:i,marginLeft:0,transition:r?"none":null},onTransitionEnd:e=>{"margin-left"!==e.propertyName||t||(this.topNode.style.width=i,this.topNode.style.marginLeft=`calc(-${i} - var(--app-padding))`,this.topNode.style.transition="none")},children:[Object(it.jsxs)(mo,{onMouseDown:this.onBeginResizing,children:[Object(it.jsx)("div",{}),Object(it.jsx)("div",{}),Object(it.jsx)("div",{})]}),Object(it.jsx)("div",{style:{height:"100%",overflow:"hidden"},children:Object(it.jsx)(co,{contents:e})})]})]});var a}}go.contextType=xn;var vo=q((e=>({contents:Ie.contents(e),isContentsOpened:Ie.isContentsOpened(e)})))(go);const bo=re.e.div.withConfig({displayName:"LoadingLayer__DarkLayer",componentId:"sc-1xu0nll-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;background:var(--alternative-background-color);opacity:0.7;"]),yo=re.e.div.withConfig({displayName:"LoadingLayer__MessageWrapper",componentId:"sc-1xu0nll-1"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0.8;font-size:3em;flex:1 1 auto;display:flex;justify-content:center;align-items:center;white-space:nowrap;"]);class wo extends i.a.Component{constructor(e){super(e),this.showTimeout=null,this.rootRef=i.a.createRef()}componentDidMount(){this.showTimeout=setTimeout((()=>{this.rootRef.current&&(this.rootRef.current.style.display=null),this.showTimeout=null}),500)}componentWillUnmount(){this.showTimeout&&clearTimeout(this.showTimeout)}render(){return Object(it.jsxs)("div",{style:{display:"none"},ref:this.rootRef,children:[Object(it.jsx)(bo,{}),Object(it.jsx)(yo,{children:Object(it.jsx)(Fr,{})})]})}}var So=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function Oo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||So(r)&&So(o)))return!1;var r,o;return!0}var xo=function(e,t){var n;void 0===t&&(t=Oo);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};class _o extends i.a.Component{constructor(e){super(e),this.canvasRef=e=>{this.canvas=e,this.canvas&&(this.canvasCtx=this.canvas.getContext("2d"))},this.tmpCanvas=document.createElement("canvas"),this.tmpCanvasCtx=this.tmpCanvas.getContext("2d"),this.lastUserScale=null,this.redrawImageTimeout=-1}componentWillUnmount(){clearTimeout(this.redrawImageTimeout)}componentDidUpdate(){this.updateImageIfRequired()}componentDidMount(){this.updateImageIfRequired()}getScaleFactor(){return(this.props.imageDpi?this.props.imageDpi/ue.DEFAULT_DPI:1)/this.props.userScale}getScaledImageWidth(){return Math.floor(this.props.imageData.width/this.getScaleFactor())}getScaledImageHeight(){return Math.floor(this.props.imageData.height/this.getScaleFactor())}updateImageIfRequired(){this.canvas&&this.lastUserScale!==this.props.userScale&&(null===this.lastUserScale&&this.drawImageOnCanvas(),clearTimeout(this.redrawImageTimeout),this.redrawImageTimeout=setTimeout((()=>{this.drawImageOnCanvas()}),300))}logarithmicScale(){const e=this.props.imageData;var t,n,r,o;let i=this.getScaleFactor();if(i<=1)return e;for(this.tmpCanvas.width=n=o=e.width,this.tmpCanvas.height=t=r=e.height,this.tmpCanvasCtx.putImageData(e,0,0);Math.abs(i-1)>=.001&&n>1&&t>1;){var a=i>2?2:i;i/=a,r/=a,o/=a,this.tmpCanvasCtx.drawImage(this.tmpCanvas,0,0,n,t,0,0,o,r),t=r,n=o}const l=this.tmpCanvasCtx.getImageData(0,0,Math.max(n,1),Math.max(t,1));return this.tmpCanvas.width=this.tmpCanvas.height=0,l}drawImageOnCanvas(){this.putImageData(this.logarithmicScale()),this.lastUserScale=this.props.userScale}putImageData(e){this.canvas&&(this.canvas.width=e.width,this.canvas.height=e.height,this.canvasCtx.putImageData(e,0,0),this.getScaleFactor()>=1&&(this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px"))}render(){return Object(it.jsx)("canvas",{style:{width:this.getScaledImageWidth(),height:this.getScaledImageHeight()},ref:this.canvasRef})}}const jo=re.e.div.withConfig({displayName:"TextLayer__Root",componentId:"sc-1u7ef0b-0"})(["overflow:hidden;position:absolute;top:0;left:0;& > div:first-child{top:0;left:0;position:absolute;}"]),Eo=re.e.div.withConfig({displayName:"TextLayer__TextZone",componentId:"sc-1u7ef0b-1"})(["line-height:initial;color:rgba(0,0,0,0);text-align-last:justify;text-align:justify;position:absolute;box-sizing:border-box;font-family:'Times New Roman',Garamond,Times,serif;span{white-space:pre;}"]);var Co=({textZones:e,imageHeight:t,imageWidth:n,userScale:r,imageDpi:i})=>{const a=Object(o.useRef)(null);if(Object(o.useEffect)((()=>{if(a.current)for(const e of a.current.children){const t=e.firstChild;if(t.offsetWidth<e.offsetWidth){const n=(e.offsetWidth-t.offsetWidth)/t.innerText.length;t.style.letterSpacing=n+"px"}}}),[e,a.current]),!e)return null;const l=ue.DEFAULT_DPI/i*r,s=Math.floor(n*l),u=Math.floor(t*l);return Object(it.jsx)(jo,{style:{width:s+"px",height:u+"px"},children:Object(it.jsx)("div",{style:{left:-(n-s)/2+"px",top:-(t-u)/2+"px",width:n+"px",height:t+"px",transform:`scale(${l})`},ref:a,children:e.map(((e,t)=>Object(it.jsx)(Eo,{style:{left:e.x+"px",bottom:e.y+"px",width:e.width+"px",height:e.height+"px",fontSize:.9*e.height+"px"},children:Object(it.jsx)("span",{children:e.text})},t)))})})};const ko=re.e.div.withConfig({displayName:"ComplexImage__Root",componentId:"sc-1q4fb7y-0"})(["position:relative;border:1px solid darkgray;overflow:hidden;margin:0 auto;& > div:first-child{position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);img{display:block;}& > canvas{display:block;}",";}"],(e=>e.$rotation?`transform: translateX(-50%) translateY(-50%) rotate(${e.$rotation}deg)`:""));class To extends i.a.PureComponent{constructor(...e){super(...e),this.resizeImageIfRequired=xo((e=>{const{width:t,height:n}=e;if(Math.max(t,n)<=1e4)return e;const r=document.createElement("canvas"),o=r.getContext("2d",{alpha:!1}),i=Math.floor(t/2),a=Math.floor(n/2),l=Math.floor(i/2),s=Math.floor((t-i)/2),u=Math.floor(a/2),c=Math.floor((n-a)/2);r.width=l+s,r.height=u+c;const d=(t,n,r,i,a,l,s,u)=>o.drawImage(((e,t,n,r,o)=>{const i=document.createElement("canvas");return i.width=r,i.height=o,i.getContext("2d",{alpha:!1}).putImageData(e,-t,-n,t,n,r,o),i})(e,t,n,r,i),0,0,r,i,a,l,s,u);return d(0,0,i,a,0,0,l,u),d(i,0,t-i,a,l,0,s,u),d(0,a,i,n-a,0,u,l,c),d(i,a,t-i,n-a,l,u,s,c),o.getImageData(0,0,r.width,r.height)}))}render(){const e=this.props.imageData&&this.resizeImageIfRequired(this.props.imageData),t=this.props.imageWidth||e.width,n=this.props.imageHeight||e.height,r=ue.DEFAULT_DPI/this.props.imageDpi*this.props.userScale;let o,i,a=o=Math.floor(t*r),l=i=Math.floor(n*r);return 90!==this.props.rotation&&270!==this.props.rotation||([o,i]=[i,o]),Object(it.jsx)(ko,{style:{width:o+"px",height:i+"px"},$rotation:this.props.rotation,ref:this.props.outerRef,children:Object(it.jsxs)("div",{children:[e?Object(it.jsx)(_o,{imageData:e,imageDpi:this.props.imageDpi,userScale:this.props.userScale},this.props.currentPageNumber):this.props.imageUrl?Object(it.jsx)("img",{src:this.props.imageUrl,style:{width:a+"px",height:l+"px"},alt:"djvu_page"}):Object(it.jsx)(Fr,{style:{fontSize:Math.min(.1*a,.1*l)+"px",whiteSpace:"nowrap"}}),this.props.textZones?Object(it.jsx)(Co,{textZones:this.props.textZones,imageHeight:n,imageWidth:t,imageDpi:this.props.imageDpi,userScale:this.props.userScale}):null]})})}}var Po=To;const No=re.e.div.withConfig({displayName:"VirtualList__Root",componentId:"sc-vinffl-0"})(["overflow:auto;padding-bottom:30px;width:100%;height:100%;box-sizing:border-box;transform:translateZ(0);& > div{min-width:100%;position:relative;}"]);class Io extends i.a.PureComponent{constructor(...e){super(...e),this.state={startIndex:0,stopIndex:-1},this._prepareSpacialDataAndStyles=xo((e=>{const t=new Array(e.length),n=new Array(e.length),r=e.reduce(((e,r,o)=>(t[o]=e,n[o]={position:"absolute",top:e+"px"},e+=r)),0);return{itemTops:t,itemStyles:n,contentHeight:r}})),this.updateRenderedItems=(e=this.viewportHeight)=>{const t=this.topNode.scrollTop,n=this.findItemIndexByScrollTop(t-this.props.renderingRadius*e);let r=n;const o=t+(this.props.renderingRadius+1)*e,i=this.itemTops.length-1;for(;r<i&&!(this.itemTops[r]>=o);r++);this.setState({startIndex:n,stopIndex:r})},this.onScroll=Gr((()=>this.updateRenderedItems()),300,600),this.ref=e=>{this.topNode=e,this.props.outerRef&&this.props.outerRef(e)},this.getHeightStyle=xo((e=>({height:e+"px"})))}get viewportHeight(){return this.topNode.getBoundingClientRect().height}componentDidMount(){this.topNode.addEventListener("scroll",this.onScroll,{passive:!0}),this.updateRenderedItems()}componentWillUnmount(){this.topNode.removeEventListener("scroll",this.onScroll,{passive:!0})}get itemTops(){return this._prepareSpacialDataAndStyles(this.props.itemSizes).itemTops}get contentHeight(){return this._prepareSpacialDataAndStyles(this.props.itemSizes).contentHeight}get itemStyles(){return this._prepareSpacialDataAndStyles(this.props.itemSizes).itemStyles}findItemIndexByScrollTop(e){if(e<=0)return 0;let t=0,n=this.itemTops.length-1,r=0;for(;;){if(++r>100)return console.warn("Error in binary search"),t;if(n===t)return n;const o=(n-t>>1)+t;if(this.itemTops[o]<=e&&this.itemTops[o+1]>e)return o;this.itemTops[o]<e?t=o+1:n=o-1}}renderItems(){const{startIndex:e,stopIndex:t}=this.state,n=new Array(t-e+1),r=this.props.itemRenderer;for(let o=e;o<=t;o++)n[o-e]=Object(it.jsx)(r,{index:o,style:this.itemStyles[o]},o);return n}isItemVisible(e){const t=this.topNode.scrollTop,n=this.itemTops[e]+this.props.itemSizes[e],r=this.viewportHeight;return n-t>=.25*this.props.itemSizes[e]&&t>=this.itemTops[e]||t>=this.itemTops[e]&&n-t>=.5*r||t<this.itemTops[e]&&this.itemTops[e]-t<.5*r}getCurrentVisibleItemIndex(){const e=this.findItemIndexByScrollTop(this.topNode.scrollTop);return!this.isItemVisible(e)&&e+1<this.itemTops.length?e+1:e}scrollToItem(e){this.topNode.scrollTop=this.itemTops[e]}render(){const e=this.props.itemSizes;return Object(it.jsx)(No,{ref:this.ref,className:this.props.className,children:e&&e.length?Object(it.jsx)("div",{style:this.getHeightStyle(this.contentHeight),children:this.renderItems()}):null})}}Io.defaultProps={renderingRadius:3,className:""};const Ro=Object(re.d)(["&.djvujs_grabbing{cursor:grabbing;}"]),Ao=Object(re.d)(["flex:1 1 auto;display:flex;flex-direction:column;width:100%;height:100%;overflow:auto;box-sizing:border-box;touch-action:pan-x pan-y;padding-bottom:30px;",";",";"],(e=>e.$grab?"cursor: grab":""),Ro),Do=re.e.div.withConfig({displayName:"ImageBlock__ContinuousScrollItem",componentId:"sc-18y4vgt-0"})(["box-sizing:border-box;min-width:100%;padding:2px 0;transform:translate3d(0,0,0);"]);function Lo(e,t,n,r){e.removeEventListener(t,n,r),e.addEventListener(t,n,r)}class Mo extends i.a.Component{constructor(...e){super(...e),this.initialGrabbingState=null,this.pointerEventCache={},this.lastPointerDiff=-1,this.enableScaleHandler=e=>{!this.isScaleHandlerEnabled&&"Control"===e.key&&this.wrapper&&(this.wrapper.addEventListener("wheel",this.wheelScaleHandler),this.isScaleHandlerEnabled=!0)},this.disableScaleHandler=e=>{this.isScaleHandlerEnabled&&"Control"===e.key&&(this.wrapper.removeEventListener("wheel",this.wheelScaleHandler),this.isScaleHandlerEnabled=!1)},this.wheelScaleHandler=e=>{if(!e.ctrlKey)return;e.preventDefault();const t=.05*-Math.sign(e.deltaY),n=this.props.userScale+t;this.props.dispatch(tt.setUserScaleAction(n))},this.singlePageWheelHandler=e=>{if(!e.ctrlKey&&this.props.changePageOnScroll){if(this.scrollTimeStamp){if(e.timeStamp-this.scrollTimeStamp<100)return e.preventDefault(),void(this.scrollTimeStamp=e.timeStamp);this.scrollTimeStamp=null}!e.ctrlKey&&e.cancelable&&(this.wrapper.scrollHeight===this.wrapper.scrollTop+this.wrapper.clientHeight&&e.deltaY>0?(e.preventDefault(),this.scrollTimeStamp=e.timeStamp,this.props.dispatch(tt.goToNextPageAction())):0===this.wrapper.scrollTop&&e.deltaY<0&&(e.preventDefault(),this.scrollTimeStamp=e.timeStamp,this.scrollToBottomOnUpdate=!0,this.props.dispatch(tt.goToPreviousPageAction())))}},this.handleMoving=e=>{if(e.preventDefault(),!this.initialGrabbingState)return;const{clientX:t,clientY:n,scrollLeft:r,scrollTop:o}=this.initialGrabbingState,i=t-e.clientX,a=n-e.clientY;this.wrapper.scrollLeft=r+i,this.wrapper.scrollTop=o+a},this.startMoving=e=>{this.isGrabMode()&&(e.preventDefault(),this.initialGrabbingState={clientX:e.clientX,clientY:e.clientY,scrollLeft:this.wrapper.scrollLeft,scrollTop:this.wrapper.scrollTop},this.wrapper.classList.add("djvujs_grabbing"))},this.finishMoving=e=>{this.isGrabMode()&&(e.preventDefault(),this.initialGrabbingState=null,this.wrapper.classList.remove("djvujs_grabbing"))},this.onPointerDown=e=>{"mouse"===e.pointerType?this.isGrabMode()&&(this.wrapper.addEventListener("pointermove",this.onPointerMove),this.startMoving(e)):(this.wrapper.addEventListener("pointermove",this.onPointerMove),this.pointerEventCache[e.pointerId]=e)},this.onPointerMove=e=>{if("mouse"===e.pointerType)return this.handleMoving(e);this.pointerEventCache[e.pointerId]=e;const t=Object.values(this.pointerEventCache);if(2===t.length){e.preventDefault(),e.stopPropagation();const n=Math.hypot(t[0].clientX-t[1].clientX,t[0].clientY-t[1].clientY);if(this.lastPointerDiff>0){const e=Math.hypot(this.wrapper.offsetWidth,this.wrapper.offsetHeight);this.props.dispatch(tt.setUserScaleAction(this.props.userScale+(n-this.lastPointerDiff)/e))}this.lastPointerDiff=n}},this.onPointerUp=e=>{"mouse"===e.pointerType&&this.finishMoving(e),delete this.pointerEventCache[e.pointerId];const t=Object.values(this.pointerEventCache);t.length<2&&(this.lastPointerDiff=-1),0===t.length&&this.wrapper.removeEventListener("pointermove",this.onPointerMove)},this.wrapperRef=e=>{this.wrapper=e,e&&(Lo(e,"pointerdown",this.onPointerDown),Lo(e,"pointerup",this.onPointerUp),Lo(e,"pointerleave",this.onPointerUp),Lo(e,"pointercancel",this.onPointerUp),this.props.viewMode===ue.CONTINUOUS_SCROLL_MODE?Lo(e,"scroll",this.onScroll,{passive:!0}):Lo(e,"wheel",this.singlePageWheelHandler))},this.complexImageRef=e=>this.complexImage=e,this.onScroll=Gr((()=>{this.setNewPageNumber(this.virtualList.getCurrentVisibleItemIndex()+1)})),this.getItemSizes=xo(((e,t,n)=>{const r=90===n||270===n;return e.map((e=>{const n=ue.DEFAULT_DPI/e.dpi*t;return Math.floor((r?e.width:e.height)*n)+6}))})),this.virtualListRef=e=>this.virtualList=e,this.itemRenderer=i.a.memo((({index:e,style:t})=>{const n=ne((t=>Ie.pageList(t)[e]));return Object(it.jsx)(Do,{style:t,children:Object(it.jsx)(Po,{imageUrl:n.url,imageDpi:n.dpi,imageWidth:n.width,imageHeight:n.height,userScale:this.props.userScale,rotation:this.props.rotation,textZones:n.textZones})},e)}))}getSnapshotBeforeUpdate(){if(!this.wrapper)return null;let e=null;this.wrapper.scrollWidth>this.wrapper.clientWidth&&(e=(this.wrapper.scrollLeft+this.wrapper.clientWidth/2)/this.wrapper.scrollWidth);let t=null;return this.wrapper.scrollHeight>this.wrapper.clientHeight&&this.wrapper.scrollTop&&(t=(this.wrapper.scrollTop+this.wrapper.clientHeight/2)/this.wrapper.scrollHeight),{horizontalRatio:e,verticalRatio:t}}scrollCurrentPageIntoViewIfRequired(e){this.props.viewMode!==ue.CONTINUOUS_SCROLL_MODE||!this.props.shouldScrollToPage||e.currentPageNumber===this.props.currentPageNumber&&e.viewMode===ue.CONTINUOUS_SCROLL_MODE||!this.virtualList||this.virtualList.isItemVisible(this.props.currentPageNumber-1)||this.virtualList.scrollToItem(this.props.currentPageNumber-1)}componentDidUpdate(e,t,n){if(this.wrapper){var r=this.wrapper.scrollWidth-this.wrapper.clientWidth;if(r>0&&(this.wrapper.scrollLeft=n.horizontalRatio?n.horizontalRatio*this.wrapper.scrollWidth-this.wrapper.clientWidth/2:r/2),e.imageData!==this.props.imageData)this.scrollToBottomOnUpdate?(this.wrapper.scrollTop=this.wrapper.scrollHeight,this.scrollToBottomOnUpdate=!1):this.wrapper.scrollTop=0;else{var o=this.wrapper.scrollHeight-this.wrapper.clientHeight;o>0&&this.wrapper.scrollTop&&(this.wrapper.scrollTop=n.verticalRatio?n.verticalRatio*this.wrapper.scrollHeight-this.wrapper.clientHeight/2:o/2)}this.scrollCurrentPageIntoViewIfRequired(e),this.complexImage&&(this.complexImage.style.opacity=1)}}componentDidMount(){window.addEventListener("keydown",this.enableScaleHandler),window.addEventListener("keyup",this.disableScaleHandler),this.componentDidUpdate({},{},{})}componentWillUnmount(){window.removeEventListener("keydown",this.enableScaleHandler),window.removeEventListener("keyup",this.disableScaleHandler)}isGrabMode(){return this.props.cursorMode===ue.GRAB_CURSOR_MODE}setNewPageNumber(e){e&&e!==this.props.currentPageNumber&&this.props.dispatch(tt.setNewPageNumberAction(e))}render(){const e=this.props.cursorMode===ue.GRAB_CURSOR_MODE,{documentId:t,pageSizeList:n,userScale:r,rotation:o,viewMode:i,imageData:a}=this.props;return i===ue.CONTINUOUS_SCROLL_MODE&&n.length?Object(it.jsx)(Uo,{ref:this.virtualListRef,outerRef:this.wrapperRef,itemSizes:this.getItemSizes(n,r,o),itemRenderer:this.itemRenderer,$_css:e?"cursor: grab;":""},t):a?Object(it.jsx)(Fo,{$grab:e,ref:this.wrapperRef,children:Object(it.jsx)(Bo,{ref:this.complexImageRef,style:{opacity:0},children:Object(it.jsx)(Po,{...this.props})})}):null}}var zo=q((e=>({documentId:Ie.documentId(e),currentPageNumber:Ie.currentPageNumber(e),shouldScrollToPage:Ie.shouldScrollToPage(e),viewMode:Ie.viewMode(e),pageSizeList:Ie.pageSizeList(e),imageData:Ie.imageData(e),imageDpi:Ie.imageDpi(e),userScale:Ie.userScale(e),textZones:Ie.textZones(e),cursorMode:Ie.cursorMode(e),rotation:Ie.pageRotation(e),changePageOnScroll:Ie.uiOptions(e).changePageOnScroll})))(Mo),Uo=Object(re.e)(Io).withConfig({displayName:"ImageBlock___StyledVirtualList",componentId:"sc-18y4vgt-1"})(["",";",""],Ro,(e=>e.$_css)),Fo=Object(re.e)("div").withConfig({displayName:"ImageBlock___StyledDiv",componentId:"sc-18y4vgt-2"})(["",""],Ao),Bo=Object(re.e)("div").withConfig({displayName:"ImageBlock___StyledDiv2",componentId:"sc-18y4vgt-3"})(["padding:1em;margin:auto"]);const Vo=re.e.div.withConfig({displayName:"TextBlock__Root",componentId:"sc-lei8fk-0"})(["overflow:auto;max-height:100%;padding:0.5em;box-sizing:border-box;pre{width:fit-content;margin:auto;background:inherit;border:1px solid var(--border-color);padding:0.5em;white-space:pre-wrap;}"]);var Wo=({text:e})=>{const t=ft();return Object(it.jsx)(Vo,{children:Object(it.jsx)("pre",{children:null===e?Object(it.jsx)(Fr,{}):e||Object(it.jsx)("em",{children:t("No text on this page")})})})};const Ho=re.e.div.withConfig({displayName:"ErrorPage__Root",componentId:"sc-1i1on4g-0"})(["background:pink;color:black;padding:1em;font-family:monospace;border:1px solid gray;overflow:auto;height:100%;box-sizing:border-box;"]),$o=re.e.div.withConfig({displayName:"ErrorPage__Header",componentId:"sc-1i1on4g-1"})(["font-weight:600;font-size:1.5em;margin-bottom:0.5em;"]);var Go=({pageNumber:e,error:t})=>{const n=ft(),{header:r,message:o}=qr(n,t);return Object(it.jsxs)(Ho,{children:[Object(it.jsx)($o,{children:`${n("Error on page")} \u2116${e}`}),Object(it.jsxs)("div",{children:[Object(it.jsx)(qo,{children:r}),Object(it.jsx)(Yo,{children:o})]})]})},qo=Object(re.e)("div").withConfig({displayName:"ErrorPage___StyledDiv",componentId:"sc-1i1on4g-2"})(["font-size:1.2em;margin-bottom:0.5em;"]),Yo=Object(re.e)("div").withConfig({displayName:"ErrorPage___StyledDiv2",componentId:"sc-1i1on4g-3"})(["white-space:pre;font-size:1.2em;"]);const Ko=re.e.div.withConfig({displayName:"Main__Root",componentId:"sc-6ieunp-0"})(["position:relative;flex:1 1 auto;width:100%;height:100%;display:flex;box-sizing:border-box;overflow:hidden;"]),Qo=re.e.div.withConfig({displayName:"Main__PageZone",componentId:"sc-6ieunp-1"})(["flex:1 1 auto;overflow:hidden;position:relative;padding:0.5em;"]);var Xo=()=>{const e=ne(Ie.viewMode),t=ne(Ie.currentPageNumber),n=ne(Ie.isLoading),r=ne(Ie.pageText),o=ne(Ie.imageData),i=ne(Ie.imagePageError),a=ne(Ie.textPageError);return Object(it.jsxs)(Ko,{children:[Object(it.jsx)(vo,{}),Object(it.jsxs)(Qo,{children:[i&&e===ue.SINGLE_PAGE_MODE?Object(it.jsx)(Go,{pageNumber:t,error:i}):e===ue.TEXT_MODE?a?Object(it.jsx)(Go,{pageNumber:t,error:a}):Object(it.jsx)(Wo,{text:r}):e===ue.CONTINUOUS_SCROLL_MODE||o?Object(it.jsx)(zo,{}):void 0,n&&e===ue.SINGLE_PAGE_MODE?Object(it.jsx)(wo,{}):null]})]})};const Zo=re.e.div.withConfig({displayName:"SaveDialog__Root",componentId:"sc-lclbue-0"})(["padding:1em;"]),Jo=Object(re.e)(Tt).withConfig({displayName:"SaveDialog__OptionButton",componentId:"sc-lclbue-1"})(["width:10em;"]),ei=re.e.div.withConfig({displayName:"SaveDialog__OptionsWrapper",componentId:"sc-lclbue-2"})(["display:flex;justify-content:space-around;margin-top:2em;"]),ti=re.e.div.withConfig({displayName:"SaveDialog__ProcessingBlock",componentId:"sc-lclbue-3"})(["margin-top:2em;display:flex;flex-direction:column;align-items:center;"]),ni=e=>{const t=ir(e);return/(?:[^a-z]|\b)index(?:[^a-z]|\b)/.test(t)?"bundled_"+t:t};var ri=()=>{const e=ft(),t=Z(),n=ne(Ie.isSaveDialogShown),r=ne(Ie.resultBuffer),o=ne(Ie.fileProcessingProgress),a=ne(Ie.isBundling),l=ne(Ie.fileName),[s,u]=i.a.useState(null),c=()=>{t({type:ce.CLOSE_SAVE_DIALOG})};if(i.a.useEffect((()=>{if(r){const e=URL.createObjectURL(new Blob([r],{type:"image/vnd.djvu"}));return u(e),()=>URL.revokeObjectURL(e)}u(null)}),[r]),!n)return null;const d=Math.round(100*o);return Object(it.jsx)(oi,{onClose:c,isFixedSize:!1,children:Object(it.jsxs)(Zo,{children:[a?null:Object(it.jsxs)(it.Fragment,{children:[Object(it.jsxs)(ii,{$_css:"margin-bottom: 2em;",children:[e("You are trying to save an indirect (multi-file) document.")+" ",e("What exactly do you want to do?")]}),Object(it.jsxs)(ei,{children:[Object(it.jsx)(Jo,{onClick:()=>{c(),t({type:ce.SAVE_DOCUMENT})},children:e("Save only index file")}),Object(it.jsx)(Jo,{onClick:()=>t({type:ce.START_TO_BUNDLE}),children:e("Download, bundle and save the whole document as one file")})]})]}),a?Object(it.jsx)(ti,{children:s?Object(it.jsxs)(it.Fragment,{children:[Object(it.jsx)(li,{children:e("The document has been downloaded and bundled into one file successfully")}),Object(it.jsx)(si,{as:"a",href:s,download:ni(l),children:e("Save")})]}):Object(it.jsxs)(it.Fragment,{children:[Object(it.jsxs)(ai,{children:[e("Downloading and bundling the document"),"... ",d,"%"]}),Object(it.jsx)(zr,{percentage:Math.round(100*o)})]})}):null]})})},oi=Object(re.e)(mn).withConfig({displayName:"SaveDialog___StyledModalWindow",componentId:"sc-lclbue-4"})(["width:25em"]),ii=Object(re.e)("div").withConfig({displayName:"SaveDialog___StyledDiv",componentId:"sc-lclbue-5"})(["",""],(e=>e.$_css)),ai=Object(re.e)("div").withConfig({displayName:"SaveDialog___StyledDiv2",componentId:"sc-lclbue-6"})(["text-align:center;margin-bottom:1em;"]),li=Object(re.e)("div").withConfig({displayName:"SaveDialog___StyledDiv3",componentId:"sc-lclbue-7"})(["text-align:center;margin-bottom:1em;"]),si=Object(re.e)(Tt).withConfig({displayName:"SaveDialog___StyledTextButton",componentId:"sc-lclbue-8"})(["text-decoration:none;margin:0.5em"]);const ui=re.e.div.withConfig({displayName:"OptionsWindow__Root",componentId:"sc-z43t3u-0"})(["box-sizing:border-box;padding:0 0.5em;"]),ci=re.e.div.withConfig({displayName:"OptionsWindow__MainHeader",componentId:"sc-z43t3u-1"})(["font-size:1.5em;font-weight:bold;margin-bottom:0.5em;text-align:center;"]),di=re.e.label.withConfig({displayName:"OptionsWindow__ExtensionOption",componentId:"sc-z43t3u-2"})(["display:flex;align-items:center;cursor:pointer;input[type=checkbox]{transform:scale(1.5);flex:0 0 auto;cursor:pointer;display:inline-block;margin-right:1em;outline:none;}"]),fi=re.e.label.withConfig({displayName:"OptionsWindow__Option",componentId:"sc-z43t3u-3"})(["display:block;margin-bottom:1em;"]);var pi=()=>{const e=ne(Ie.options),t=Z(),n=ft();return ne(Ie.isOptionsWindowOpened)?Object(it.jsx)(hi,{onClose:()=>t({type:ce.TOGGLE_OPTIONS_WINDOW,payload:!1}),"data-djvujs-id":"options_window",children:Object(it.jsxs)(ui,{children:[Object(it.jsx)(ci,{children:n("Options")}),Object(it.jsx)(fi,{as:"div",children:Object(it.jsx)(Cr,{})}),Object(it.jsxs)(fi,{children:[Object(it.jsxs)("span",{style:{marginRight:"0.5em"},children:[n("Color theme"),":"]}),Object(it.jsx)(Or,{})]}),rr?Object(it.jsxs)("div",{children:[Object(it.jsxs)(mi,{children:[n("Extension options"),":"]}),Object(it.jsxs)(di,{title:n("All links to .djvu files will be opened by the viewer via a simple click on a link"),children:[Object(it.jsx)("input",{type:"checkbox",checked:e.interceptHttpRequests,onChange:e=>t({type:ce.UPDATE_OPTIONS,payload:{interceptHttpRequests:e.target.checked,analyzeHeaders:!1}})}),n("Open all links with .djvu at the end via the viewer")]}),Object(it.jsxs)(di,{title:n("Analyze headers of every new tab in order to process even links which do not end with the .djvu extension"),style:{marginLeft:"1em"},children:[Object(it.jsx)("input",{type:"checkbox",checked:e.analyzeHeaders,onChange:e=>t({type:ce.UPDATE_OPTIONS,payload:{analyzeHeaders:e.target.checked,interceptHttpRequests:!0}})}),n("Detect .djvu files by means of http headers")]})]}):null]})}):null},hi=Object(re.e)(mn).withConfig({displayName:"OptionsWindow___StyledModalWindow",componentId:"sc-z43t3u-4"})(["min-width:15em;"]),mi=Object(re.e)("div").withConfig({displayName:"OptionsWindow___StyledDiv",componentId:"sc-z43t3u-5"})(["margin-bottom:1em;"]);const gi=re.e.div.withConfig({displayName:"PrintDialog__Root",componentId:"sc-1i416kt-0"})(["padding:0.5em;"]),vi=re.e.select.withConfig({displayName:"PrintDialog__Select",componentId:"sc-1i416kt-1"})(["min-width:4em;",";"],ot);function bi(e){const t=new Array(e);for(let n=1;n<=e;n++)t[n-1]=Object(it.jsx)("option",{value:n,children:n},n);return t}var yi=()=>{const e=ne(Ie.isPreparingForPrinting),t=ne(Ie.printProgress),n=ne(Ie.pagesForPrinting),r=Z(),o=ft(),a=ne(Ie.pagesQuantity),[l,s]=i.a.useState(1);let[u,c]=i.a.useState(null);u=u||a;return Object(it.jsx)(mn,{onClose:()=>r({type:ce.CLOSE_PRINT_DIALOG}),children:Object(it.jsx)(gi,{children:e?Object(it.jsxs)(it.Fragment,{children:[Object(it.jsxs)(wi,{children:[o("Preparing pages for printing"),"...",Object(it.jsxs)(Si,{children:[t,"%"]})]}),Object(it.jsx)(zr,{percentage:t}),n?Object(it.jsx)(Oi,{src:"about:blank",ref:e=>e&&(e=>{const t=e.contentWindow;t.onafterprint=()=>{setTimeout((()=>{r({type:ce.CLOSE_PRINT_DIALOG})}),or?100:0)};const o=document.createElement("style");o.innerHTML=`\n html, body {\n margin: 0;\n padding: 0;\n height: 100%;\n width: 100%;\n }\n\n img {\n display: block;\n margin: 0 auto;\n /*\n Firefox ignores "break-inside: avoid" (while Chrome seems to apply it by default)\n so we have to use break-after.\n */\n break-after: ${or?"page":"auto"};\n break-inside: avoid;\n /* \n When the print scale is bigger than 100%, there can be a situation when height can be increased, but \n width is limited with max-width, so the proportions are distorted. To prevent this we use object-fit. \n */\n object-fit: contain;\n box-sizing: border-box;\n /* \n It seems like 100vw and 100vh can be used as width and height of the paper sheet in Chrome and Firefox.\n But in Safari they seem to correspond to the size of the iframe, which is 0, so empty pages are printed.\n So we use 100% width and height here (and for html and body too) to fit big images to the paper size. \n */\n max-width: 100%;\n max-height: 100%;\n }\n `,t.document.head.appendChild(o);const i=[];for(const r of n){const e=t.document.createElement("img");i.push(new Promise((t=>e.onload=t))),e.src=r.url,e.width=r.width,e.height=r.height,e.style.width=r.width/r.dpi+"in",e.style.height=r.height/r.dpi+"in",t.document.body.appendChild(e)}or?t.print():Promise.all(i).then((()=>t.print()))})(e)}):null]}):Object(it.jsxs)(it.Fragment,{children:[Object(it.jsx)("div",{children:o("Pages must be rendered before printing.")+" "+o("It may take a while.")}),Object(it.jsx)("div",{children:o("Select the pages you want to print.")}),Object(it.jsxs)(xi,{children:[Object(it.jsx)(_i,{children:o("From")}),Object(it.jsx)(vi,{value:l,onChange:e=>s(e.target.value),children:bi([a])}),Object(it.jsx)(ji,{children:o("to")}),Object(it.jsx)(vi,{value:u,onChange:e=>c(e.target.value),children:bi([a])})]}),Object(it.jsx)(Ei,{onClick:()=>r({type:ce.PREPARE_PAGES_FOR_PRINTING,payload:{from:l,to:u}}),children:o("Prepare pages for printing")})]})})})},wi=Object(re.e)("div").withConfig({displayName:"PrintDialog___StyledDiv",componentId:"sc-1i416kt-2"})(["text-align:center;margin-bottom:1em;"]),Si=Object(re.e)("span").withConfig({displayName:"PrintDialog___StyledSpan",componentId:"sc-1i416kt-3"})(["min-width:3em;display:inline-block"]),Oi=Object(re.e)("iframe").withConfig({displayName:"PrintDialog___StyledIframe",componentId:"sc-1i416kt-4"})(["width:0;height:0;position:absolute;left:0;top:0;opacity:0;"]),xi=Object(re.e)("div").withConfig({displayName:"PrintDialog___StyledDiv2",componentId:"sc-1i416kt-5"})(["margin:1em 0;text-align:center"]),_i=Object(re.e)("span").withConfig({displayName:"PrintDialog___StyledSpan2",componentId:"sc-1i416kt-6"})(["margin-right:1em;"]),ji=Object(re.e)("span").withConfig({displayName:"PrintDialog___StyledSpan3",componentId:"sc-1i416kt-7"})(["margin:0 1em"]),Ei=Object(re.e)(Tt).withConfig({displayName:"PrintDialog___StyledTextButton",componentId:"sc-1i416kt-8"})(["font-size:0.8em;margin:0 auto;display:block"]);const Ci=Object(re.c)(["html.disable_scroll_djvujs,body.disable_scroll_djvujs{width:100% !important;height:100% !important;overflow:hidden !important;}"]),ki=Object(re.d)(["--background-color:#fcfcfc;--alternative-background-color:#eee;--modal-window-background-color:var(--background-color);--color:#000;--border-color:#555;--highlight-color:#084475;--scrollbar-track-color:var(--alternative-background-color);--scrollbar-thumb-color:#cccccc;"]),Ti=Object(re.d)(["--background-color:#1e1e1e;--alternative-background-color:#333333;--modal-window-background-color:var(--background-color);--color:#CCCCCC;--border-color:#999999;--highlight-color:#d89416;--scrollbar-track-color:var(--alternative-background-color);--scrollbar-thumb-color:#858585;"]),Pi=Object(re.d)(["font-family:Arial,Helvetica,sans-serif;font-size:","px;overflow:hidden;position:relative;box-sizing:border-box;height:100%;display:flex;flex-direction:column;align-items:center;line-height:initial;writing-mode:horizontal-tb;--app-padding:5px;padding:var(--app-padding);background:var(--background-color);color:var(--color);a{color:var(--highlight-color);}*::-webkit-scrollbar{background-color:var(--scrollbar-track-color);}*::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);}*::-webkit-scrollbar-corner{background-color:var(--background-color);}"],(e=>e.theme.isMobile?10:14)),Ni=Object(re.d)(["top:0;left:0;position:fixed;width:100%;height:100%;z-index:100;"]),Ii=i.a.forwardRef((({shadowRoot:e},t)=>{const n=ne(Ie.isDocumentLoaded),r=ne(Ie.isFileLoading),o=ne(Ie.isFullPageView),a=ne(Ie.options).theme,l=ne(Ie.isPrintDialogOpened);return Object(it.jsxs)(dt,{children:[Object(it.jsx)(Ci,{}),Object(it.jsxs)(Ai,{"data-djvujs-id":"root",ref:t,$_css:"dark"===a?Ti:ki,$_css2:o?Ni:"",children:[r?Object(it.jsx)(Vr,{}):n?Object(it.jsxs)(i.a.Fragment,{children:[Object(it.jsx)(Xo,{}),Object(it.jsx)(Qn,{})]}):Object(it.jsx)(Ir,{}),Object(it.jsx)(Qr,{}),Object(it.jsx)(eo,{}),Object(it.jsx)(ri,{}),Object(it.jsx)(pi,{}),l?Object(it.jsx)(yi,{}):null,Object(it.jsx)("div",{id:"djvujs-modal-windows-container"})]})]})}));var Ri=({shadowRoot:e})=>Object(it.jsx)(jn,{AppRoot:Ii,shadowRoot:e}),Ai=Object(re.e)("div").withConfig({displayName:"App___StyledDiv",componentId:"sc-1puqmy-0"})(["",";",";",";"],(e=>e.$_css),Pi,(e=>e.$_css2));function Di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(n),!0).forEach((function(t){Di(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zi(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 Ui="function"===typeof Symbol&&Symbol.observable||"@@observable",Fi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bi={INIT:"@@redux/INIT"+Fi(),REPLACE:"@@redux/REPLACE"+Fi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fi()}};function Vi(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 Wi(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(zi(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(zi(1));return n(Wi)(e,t)}if("function"!==typeof e)throw new Error(zi(2));var o=e,i=t,a=[],l=a,s=!1;function u(){l===a&&(l=a.slice())}function c(){if(s)throw new Error(zi(3));return i}function d(e){if("function"!==typeof e)throw new Error(zi(4));if(s)throw new Error(zi(5));var t=!0;return u(),l.push(e),function(){if(t){if(s)throw new Error(zi(6));t=!1,u();var n=l.indexOf(e);l.splice(n,1),a=null}}}function f(e){if(!Vi(e))throw new Error(zi(7));if("undefined"===typeof e.type)throw new Error(zi(8));if(s)throw new Error(zi(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!==typeof e)throw new Error(zi(10));o=e,f({type:Bi.REPLACE})}function h(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(zi(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Ui]=function(){return this},e}return f({type:Bi.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:p})[Ui]=h,r}function Hi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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 $i(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var Gi=$i();Gi.withExtraArgument=$i;var qi=Gi,Yi=function(e){return"@@redux-saga/"+e},Ki=Yi("CANCEL_PROMISE"),Qi=Yi("CHANNEL_END"),Xi=Yi("IO"),Zi=Yi("MATCH"),Ji=Yi("MULTICAST"),ea=Yi("SAGA_ACTION"),ta=Yi("SELF_CANCELLATION"),na=Yi("TASK"),ra=Yi("TASK_CANCEL"),oa=Yi("TERMINATE"),ia=Yi("LOCATION"),aa=function(e){return null===e||void 0===e},la=function(e){return null!==e&&void 0!==e},sa=function(e){return"function"===typeof e},ua=function(e){return"string"===typeof e},ca=Array.isArray,da=function(e){return e&&sa(e.then)},fa=function(e){return e&&sa(e.next)&&sa(e.throw)},pa=function e(t){return t&&(ua(t)||ga(t)||sa(t)||ca(t)&&t.every(e))},ha=function(e){return e&&sa(e.take)&&sa(e.close)},ma=function(e){return sa(e)&&e.hasOwnProperty("toString")},ga=function(e){return Boolean(e)&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var va=function(e){return function(){return e}}(!0),ba=function(){};var ya=function(e){return e};"function"===typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var wa=function(e,t){m(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function Sa(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function Oa(e){var t=!1;return function(){t||(t=!0,e())}}var xa=function(e){throw e},_a=function(e){return{value:e,done:!0}};function ja(e,t,n){void 0===t&&(t=xa),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:_a,isSagaIterator:!0};return"undefined"!==typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Ea(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Ca=function(e){return Array.apply(null,new Array(e))},ka=function(e){return function(t){return e(Object.defineProperty(t,ea,{value:!0}))}},Ta=function(e){return e===oa},Pa=function(e){return e===ra},Na=function(e){return Ta(e)||Pa(e)};function Ia(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=ca(e)?Ca(r):{},l={};return n.forEach((function(e){var n=function(n,l){o||(l||Na(n)?(t.cancel(),t(n,l)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=ba,l[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return l[e].cancel()})))},l}function Ra(e){return{name:e.name||"anonymous",location:Aa(e)}}function Aa(e){return e[ia]}function Da(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},l=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},s=function(){for(var e=[];r;)e.push(l());return e};return{isEmpty:function(){return 0==r},put:function(l){var u;if(r<e)a(l);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=l,i=o=(o+1)%e;break;case 4:u=2*e,n=s(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(l)}},take:l,flush:s}}var La=function(e){return Da(e,4)},Ma="TAKE",za="PUT",Ua="FORK",Fa="CANCEL",Ba="SELECT",Va=function(e,t){var n;return(n={})[Xi]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Wa(e,t){return void 0===e&&(e="*"),pa(e)?Va(Ma,{pattern:e}):ha(n=e)&&n[Ji]&&la(t)&&pa(t)?Va(Ma,{channel:e,pattern:t}):ha(e)?Va(Ma,{channel:e}):void 0;var n}function Ha(e,t){return aa(t)&&(t=e,e=void 0),Va(za,{channel:e,action:t})}function $a(e,t){var n,r=null;return sa(e)?n=e:(ca(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&ua(n)&&sa(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Ga(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Va(Ua,$a(e,n))}function qa(e){return void 0===e&&(e=ta),Va(Fa,e)}function Ya(e){void 0===e&&(e=ya);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Va(Ba,{selector:e,args:n})}function Ka(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var Qa=Ka,Xa=[],Za=0;function Ja(e){try{nl(),e()}finally{rl()}}function el(e){Xa.push(e),Za||(nl(),ol())}function tl(e){try{return nl(),e()}finally{ol()}}function nl(){Za++}function rl(){Za--}function ol(){var e;for(rl();!Za&&void 0!==(e=Xa.shift());)Ja(e)}var il=function(e){return function(t){return e.some((function(e){return cl(e)(t)}))}},al=function(e){return function(t){return e(t)}},ll=function(e){return function(t){return t.type===String(e)}},sl=function(e){return function(t){return t.type===e}},ul=function(){return va};function cl(e){var t="*"===e?ul:ua(e)?ll:ca(e)?il:ma(e)?ll:sa(e)?al:ga(e)?sl:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var dl={type:Qi},fl=function(e){return e&&e.type===Qi};function pl(e){void 0===e&&(e=La());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(dl):e.isEmpty()?(n.push(r),r.cancel=function(){Sa(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(dl):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(dl)}}}}}function hl(){var e=function(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(dl)}))};return(e={})[Ji]=!0,e.put=function(e){if(!t)if(fl(e))i();else for(var o=n=r,a=0,l=o.length;a<l;a++){var s=o[a];s[Zi](e)&&(s.cancel(),s(e))}},e.take=function(e,n){void 0===n&&(n=ul),t?e(dl):(e[Zi]=n,o(),r.push(e),e.cancel=Oa((function(){o(),Sa(r,e)})))},e.close=i,e}(),t=e.put;return e.put=function(e){e[ea]?t(e):el((function(){t(e)}))},e}function ml(e,t){var n=e[Ki];sa(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var gl,vl=0,bl=function(){return++vl};function yl(e){e.isRunning()&&e.cancel()}var wl=((gl={}).TAKE=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,i=t.pattern,a=t.maybe,l=function(e){e instanceof Error?n(e,!0):!fl(e)||a?n(e):n(oa)};try{o.take(l,la(i)?cl(i):null)}catch(s){return void n(s,!0)}n.cancel=l.cancel},gl.PUT=function(e,t,n){var r=t.channel,o=t.action,i=t.resolve;el((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(a){return void n(a,!0)}i&&da(t)?ml(t,n):n(t)}))},gl.ALL=function(e,t,n,r){var o=r.digestEffect,i=vl,a=Object.keys(t);if(0!==a.length){var l=Ia(t,n);a.forEach((function(e){o(t[e],i,l[e],e)}))}else n(ca(t)?[]:{})},gl.RACE=function(e,t,n,r){var o=r.digestEffect,i=vl,a=Object.keys(t),l=ca(t)?Ca(a.length):{},s={},u=!1;a.forEach((function(e){var t=function(t,r){u||(r||Na(t)?(n.cancel(),n(t,r)):(n.cancel(),u=!0,l[e]=t,n(l)))};t.cancel=ba,s[e]=t})),n.cancel=function(){u||(u=!0,a.forEach((function(e){return s[e].cancel()})))},a.forEach((function(e){u||o(t[e],i,s[e],e)}))},gl.CALL=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,l=r.task;try{var s=i.apply(o,a);if(da(s))return void ml(s,n);if(fa(s))return void Tl(e,s,l.context,vl,Ra(i),!1,n);n(s)}catch(u){n(u,!0)}},gl.CPS=function(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var a=function(e,t){aa(e)?n(t):n(e,!0)};o.apply(r,i.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(l){n(l,!0)}},gl.FORK=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,l=t.detached,s=r.task,u=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(fa(o))return o;var i=!1;return ja((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!da(o)})}))}catch(a){return ja((function(){throw a}))}}({context:o,fn:i,args:a}),c=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Ra(t)}(u,i);tl((function(){var t=Tl(e,u,s.context,vl,c,l,void 0);l?n(t):t.isRunning()?(s.queue.addTask(t),n(t)):t.isAborted()?s.queue.abort(t.error()):n(t)}))},gl.JOIN=function(e,t,n,r){var o=r.task,i=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&Sa(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(ca(t)){if(0===t.length)return void n([]);var a=Ia(t,n);t.forEach((function(e,t){i(e,a[t])}))}else i(t,n)},gl.CANCEL=function(e,t,n,r){var o=r.task;t===ta?yl(o):ca(t)?t.forEach(yl):yl(t),n()},gl.SELECT=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(i){n(i,!0)}},gl.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,o=pl(t.buffer),i=cl(r),a=function t(n){fl(n)||e.channel.take(t,i),o.put(n)},l=o.close;o.close=function(){a.cancel(),l()},e.channel.take(a,i),n(o)},gl.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},gl.FLUSH=function(e,t,n){t.flush(n)},gl.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},gl.SET_CONTEXT=function(e,t,n,r){var o=r.task;wa(o.context,t),n()},gl);function Sl(e,t){return e+"?"+t}function Ol(e){var t=e.name,n=e.location;return n?t+" "+Sl(n.fileName,n.lineNumber):t}function xl(e){var t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var _l=null,jl=[],El=function(){_l=null,jl.length=0},Cl=function(){var e=jl[0],t=jl.slice(1),n=e.crashedEffect?function(e){var t=Aa(e);return t?t.code+" "+Sl(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+Ol(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+Ol(e.meta)})),[xl(jl)]).join("\n")};function kl(e,t,n,r,o,i,a){var l;void 0===a&&(a=ba);var s,u,c=0,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,o=[],i=!1;function a(e){t(),s(),n(e,!0)}function l(t){o.push(t),t.cont=function(l,s){i||(Sa(o,t),t.cont=ba,s?a(l):(t===e&&(r=l),o.length||(i=!0,n(r))))}}function s(){i||(i=!0,o.forEach((function(e){e.cont=ba,e.cancel()})),o=[])}return l(e),{addTask:l,cancelAll:s,abort:a,getTasks:function(){return o}}}(t,(function(){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(c=2,(i={meta:o,cancelledTasks:f}).crashedEffect=_l,jl.push(i),g.isRoot){var r=Cl();El(),e.onError(t,{sagaStack:r})}u=t,d&&d.reject(t)}else t===ra?c=1:1!==c&&(c=3),s=t,d&&d.resolve(t);var i;g.cont(t,n),g.joiners.forEach((function(e){e.cb(t,n)})),g.joiners=null}var g=((l={})[na]=!0,l.id=r,l.meta=o,l.isRoot=i,l.context=p,l.joiners=[],l.queue=h,l.cancel=function(){0===c&&(c=1,h.cancelAll(),m(ra,!1))},l.cont=a,l.end=m,l.setContext=function(e){wa(p,e)},l.toPromise=function(){return d||(d=Qa(),2===c?d.reject(u):0!==c&&d.resolve(s)),d.promise},l.isRunning=function(){return 0===c},l.isCancelled=function(){return 1===c||0===c&&1===t.status},l.isAborted=function(){return 2===c},l.result=function(){return s},l.error=function(){return u},l);return g}function Tl(e,t,n,r,o,i,a){var l=e.finalizeRunEffect((function(t,n,r){if(da(t))ml(t,r);else if(fa(t))Tl(e,t,u.context,n,o,!1,r);else if(t&&t[Xi]){(0,wl[t.type])(e,t.payload,r,c)}else r(t)}));d.cancel=ba;var s={meta:o,cancel:function(){0===s.status&&(s.status=1,d(ra))},status:0},u=kl(e,s,n,r,o,i,a),c={task:u,digestEffect:f};return a&&(a.cancel=u.cancel),d(),u;function d(e,n){try{var o;n?(o=t.throw(e),El()):Pa(e)?(s.status=1,d.cancel(),o=sa(t.return)?t.return(ra):{done:!0,value:ra}):o=Ta(e)?sa(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==s.status&&(s.status=3),s.cont(o.value)):f(o.value,r,d)}catch(i){if(1===s.status)throw i;s.status=2,s.cont(i,!0)}}function f(t,n,r,o){void 0===o&&(o="");var i,a=bl();function s(n,o){i||(i=!0,r.cancel=ba,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&function(e){_l=e}(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),s.cancel=ba,r.cancel=function(){i||(i=!0,s.cancel(),s.cancel=ba,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},l(t,a,s)}}function Pl(e,t){var n=e.channel,r=void 0===n?hl():n,o=e.dispatch,i=e.getState,a=e.context,l=void 0===a?{}:a,s=e.sagaMonitor,u=e.effectMiddlewares,c=e.onError,d=void 0===c?Ea:c;for(var f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var m=t.apply(void 0,p);var g,v=bl();if(s&&(s.rootSagaStarted=s.rootSagaStarted||ba,s.effectTriggered=s.effectTriggered||ba,s.effectResolved=s.effectResolved||ba,s.effectRejected=s.effectRejected||ba,s.effectCancelled=s.effectCancelled||ba,s.actionDispatched=s.actionDispatched||ba,s.rootSagaStarted({effectId:v,saga:t,args:p})),u){var b=Hi.apply(void 0,u);g=function(e){return function(t,n,r){return b((function(t){return e(t,n,r)}))(t)}}}else g=ya;var y={channel:r,dispatch:ka(o),getState:i,sagaMonitor:s,onError:d,finalizeRunEffect:g};return tl((function(){var e=Tl(y,m,l,v,Ra(t),!0,void 0);return s&&s.effectResolved(v,e),e}))}var Nl=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,i=n.channel,a=void 0===i?hl():i,l=n.sagaMonitor,s=g(n,["context","channel","sagaMonitor"]);function u(e){var n=e.getState,r=e.dispatch;return t=Pl.bind(null,m({},s,{context:o,channel:a,dispatch:r,getState:n,sagaMonitor:l})),function(e){return function(t){l&&l.actionDispatched&&l.actionDispatched(t);var n=e(t);return a.put(t),n}}}return u.run=function(){return t.apply(void 0,arguments)},u.setContext=function(e){wa(o,e)},u},Il=n(14),Rl=n.n(Il),Al=function(e){return{done:!0,value:e}},Dl={};function Ll(e){return ha(e)?"channel":ma(e)?String(e):sa(e)?e.name:String(e)}function Ml(e,t,n){var r,o,i,a=t;function l(t,n){if(a===Dl)return Al(t);if(n&&!o)throw a=Dl,n;r&&r(t);var l=n?e[o](n):e[a]();return a=l.nextState,i=l.effect,r=l.stateUpdater,o=l.errorState,a===Dl?Al(t):i}return ja(l,(function(e){return l(null,e)}),n)}function zl(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,l={done:!1,value:Wa(e)},s=function(e){return{done:!1,value:Ga.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:qa(e)}},c=function(e){return i=e},d=function(e){return a=e};return Ml({q1:function(){return{nextState:"q2",effect:l,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:s(a),stateUpdater:c}},q3:function(){return{nextState:"q1",effect:s(a),stateUpdater:c}}},"q1","takeLatest("+Ll(e)+", "+t.name+")")}function Ul(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ga.apply(void 0,[zl,e,t].concat(r))}class Fl{constructor(e){this.djvuWorker=e,this.pages={},this.imageDataPromise=null,this.imageDataPromisePageNumber=null,this.currentPageNumber=null,this.lastCachingTask=null}cancelCachingTask(){this.lastCachingTask&&this.lastCachingTask.isRunning()&&(console.warn("DjVu.js Viewer: Have to cancel the caching task manually!",this.lastCachingTask),this.lastCachingTask.cancel()),this.lastCachingTask=null}resetPagesCache(){this.cancelCachingTask(),this.pages={},this.imageDataPromise=null,this.imageDataPromisePageNumber=null}*fetchCurrentPageByNumber(e,t){const n={[e]:this.pages[e]};var r=null;if(e>1&&e<t?r=[e+1,e-1]:1===e?r=t>=3?[2,3]:t>=2?[2]:null:e===t&&(r=t>=3?[e-1,e-2]:t>=2?[e-1]:null),r)for(var o of r)n[o]=this.pages[o];return this.pages=n,this.cancelCachingTask(),yield*this.fetchImageDataByPageNumber(e),r&&(this.lastCachingTask=yield Ga([this,this.cachePages],r)),this.pages[e]}*cachePages(e){for(var t of e)yield*this.fetchImageDataByPageNumber(t)}*fetchImageDataByPageNumber(e){if(null!==e&&(!this.pages[e]||this.pages[e].error)){this.imageDataPromisePageNumber!==e&&(this.imageDataPromise&&this.djvuWorker.cancelAllTasks(),this.imageDataPromisePageNumber=e,this.imageDataPromise=this.djvuWorker.run(this.djvuWorker.doc.getPage(e).getImageData(),this.djvuWorker.doc.getPage(e).getDpi()));try{let t=yield this.imageDataPromise;const[n,r]=t;this.pages[e]={imageData:n,dpi:r}}catch(t){this.pages[e]={error:t}}this.imageDataPromise=null,this.imageDataPromisePageNumber=null}}}class Bl{constructor(e,t,n){this._reset(e,t,n)}_reset(e,t,n){this.pagesCount=t,this.pageStorage=n,this.djvuWorker=e,this.obsoletePageNumbers=[],this.lastLoadPagePromise=null,this.lastLoadPageNumber=null}*reset(){yield*this.dropAllPages(),this._reset(this.djvuWorker,this.pagesCount,this.pageStorage)}setPageNumber(e){var t=0;this.pageNumber=e,this.leftNumber=e-15,this.leftNumber<1&&(t+=1-this.leftNumber,this.leftNumber=1),this.rightNumber=e+15,this.rightNumber>this.pagesCount&&(t+=this.rightNumber-this.pagesCount,this.rightNumber=this.pagesCount),t&&(this.leftNumber>1?this.leftNumber=Math.max(1,this.leftNumber-t):this.rightNumber<this.pagesCount&&(this.rightNumber=Math.min(this.pagesCount,this.rightNumber+t)))}updateRegistries(){this.obsoletePageNumbers=[];for(const e of this.pageStorage.getAllPageNumbers())(e<this.leftNumber||e>this.rightNumber)&&this.obsoletePageNumbers.push(e)}*dropAllPages(){yield Ha({type:ue.DROP_ALL_PAGES_ACTION}),this.pageStorage.removeAllPages()}*dropPage(e){yield Ha(tt.dropPageAction(e)),this.pageStorage.removePage(e)}*removeObsoletePagesIfRequired(){const e=this.pageStorage.getAllPageNumbers().length-30-1;if(e>0){for(let t=0;t<e;t++)yield*this.dropPage(this.obsoletePageNumbers[t]);this.obsoletePageNumbers.splice(0,e)}}*loadPageFromLastPromise(){try{const[e,t]=yield this.lastLoadPagePromise;e.textZones=t,this.pageStorage.addPage(this.lastLoadPageNumber,e)}finally{this.lastLoadPagePromise=null,this.lastLoadPageNumber=null}}*loadPage(e){const t=this.pageStorage.getPage(e);t&&t.hasOwnProperty("textZones")||(this.lastLoadPagePromise=t?Promise.all([Promise.resolve(t),this.djvuWorker.doc.getPage(e).getNormalizedTextZones().run()]):this.djvuWorker.run(this.djvuWorker.doc.getPage(e).createPngObjectUrl(),this.djvuWorker.doc.getPage(e).getNormalizedTextZones()),this.lastLoadPageNumber=e,yield*this.loadPageFromLastPromise(),yield*this.removeObsoletePagesIfRequired()),yield Ha(tt.pageIsLoadedAction(this.pageStorage.getPage(e),e))}*startDataFetching(){this.lastLoadPagePromise&&(yield*this.loadPageFromLastPromise());const e=yield Ya(),t=Ie.currentPageNumber(e);this.setPageNumber(t),this.updateRegistries(),this.djvuWorker.emptyTaskQueue();const n=Math.min(this.pageNumber-this.leftNumber,this.rightNumber-this.pageNumber);yield*this.loadPage(this.pageNumber);for(let r=1;r<=n;r++)yield*this.loadPage(this.pageNumber+r),yield*this.loadPage(this.pageNumber-r);if(this.pageNumber-this.leftNumber<this.rightNumber-this.pageNumber)for(let r=this.leftNumber+2*n+1;r<=this.rightNumber;r++)yield*this.loadPage(r);else for(let r=this.rightNumber-2*n-1;r>=this.leftNumber;r--)yield*this.loadPage(r)}}class Vl{constructor(e,t){this.djvuWorker=e,this.pageStorage=t}*preparePagesForPrinting(e,t){this.djvuWorker.cancelAllTasks();let n=0;const r=t-e+1;for(let a=e;a<=t;a++)this.pageStorage.getPage(a)&&n++;function*o(){yield Ha({type:ce.UPDATE_PRINT_PROGRESS,payload:Math.round(n/r*100)})}if(yield*o(),n!==r)for(let a=e;a<=t;a++)if(!this.pageStorage.getPage(a)){const e=yield this.djvuWorker.doc.getPage(a).createPngObjectUrl().run();this.pageStorage.addPage(a,e),n++,yield*o()}const i=[];for(let a=e;a<=t;a++)i.push(this.pageStorage.getPage(a));yield Ha({type:ce.START_PRINTING,payload:i})}}class Wl{constructor(){this.pages={}}reset(){this.removeAllPages()}getAllPageNumbers(){return Object.keys(this.pages)}getPage(e){return this.pages[e]}addPage(e,t){this.pages[e]=t}removePage(e){const t=this.pages[e];t&&(URL.revokeObjectURL(t.url),delete this.pages[e])}removeAllPages(){for(const e of Object.keys(this.pages))URL.revokeObjectURL(this.pages[e].url);this.pages={}}}class Hl{constructor(e){this.dispatch=e,this.callbacks={};const t=rr?document.querySelector("script#djvu_js_lib").src:void 0;this.djvuWorker=new r.Worker(t),this.isBundling=!1,this.documentContructorData=null,this.pageStorage=new Wl,this.pagesCache=new Fl(this.djvuWorker),this.printManager=new Vl(this.djvuWorker,this.pageStorage),this.printTask=null,this.continuousScrollManager=null}*getImageData(){const e=yield Ya(),t=Ie.currentPageNumber(e),n=Ie.pagesQuantity(e),r=yield*this.pagesCache.fetchCurrentPageByNumber(t,n);r.error?yield Ha({type:ce.SET_IMAGE_PAGE_ERROR,payload:r.error}):yield Ha({type:ue.IMAGE_DATA_RECEIVED_ACTION,imageData:r.imageData,imageDpi:r.dpi})}*fetchPageData(){const e=yield Ya(),t=Ie.viewMode(e);if(t===ue.CONTINUOUS_SCROLL_MODE&&this.continuousScrollManager)yield*this.continuousScrollManager.startDataFetching();else{const n=Ie.currentPageNumber(e);t===ue.TEXT_MODE&&(this.pagesCache.cancelCachingTask(),this.djvuWorker.cancelAllTasks(),yield*this.fetchPageText(n)),yield*this.getImageData(),yield*this.fetchPageText(n)}}*fetchPageText(e){try{const[t,n]=yield this.djvuWorker.run(this.djvuWorker.doc.getPage(e).getText(),this.djvuWorker.doc.getPage(e).getNormalizedTextZones());yield Ha({type:ue.PAGE_TEXT_FETCHED_ACTION,pageText:t,textZones:n})}catch(t){yield Ha({type:ce.SET_TEXT_PAGE_ERROR,payload:t})}}*fetchPageTextIfRequired(){const e=yield Ya(),t=Ie.currentPageNumber(e);null===Ie.pageText(e)&&(yield*this.fetchPageText(t))}*prepareForContinuousMode(){const e=yield this.djvuWorker.doc.getPagesSizes().run();this.continuousScrollManager=new Bl(this.djvuWorker,e.length,this.pageStorage),yield Ha(tt.pagesSizesAreGottenAction(e))}*configure({pageNumber:e,pageRotation:t,viewMode:n,pageScale:r,language:o,theme:i,uiOptions:a}){n&&(yield Ha({type:ce.SET_VIEW_MODE,payload:n,notSave:!0})),e&&(yield Ha(tt.setNewPageNumberAction(e,!0))),t&&(yield Ha(tt.setPageRotationAction(t))),r&&(yield Ha(tt.setUserScaleAction(r))),a&&(yield Ha({type:ce.SET_UI_OPTIONS,payload:a}));const l={};o&&(o in we?l.locale=o:console.warn(`DjVu.js Viewer: only ${Object.keys(we)} languages are available! Got ${o}`)),i&&("dark"===i||"light"===i?l.theme=i:console.warn('DjVu.js Viewer: only "dark" or "light" themes are supported! Got '+i)),Object.keys(l).length&&(yield Ha({type:ce.UPDATE_OPTIONS,payload:l,notSave:!0}))}*createDocumentFromArrayBuffer({arrayBuffer:e,fileName:t,config:n}){this.resetWorkerAndStorages(),this.documentContructorData={buffer:e.slice(0),options:n&&n.djvuOptions},yield this.djvuWorker.createDocument(e,n&&n.djvuOptions);const[r,o]=yield this.djvuWorker.run(this.djvuWorker.doc.getPagesQuantity(),this.djvuWorker.doc.isBundled());o&&(this.documentContructorData=null),yield Ha({type:ue.DOCUMENT_CREATED_ACTION,pagesQuantity:r,fileName:t,isIndirect:!o}),yield*this.loadContents();const i=yield Ya();Ie.viewMode(i)===ue.CONTINUOUS_SCROLL_MODE&&(yield*this.prepareForContinuousMode()),n&&(yield*this.configure(n)),yield*this.resetCurrentPageNumber()}*loadContents(){const e=yield this.djvuWorker.doc.getContents().run();yield Ha({type:ue.CONTENTS_IS_GOTTEN_ACTION,contents:e})}*resetCurrentPageNumber(){const e=yield Ya();yield Ha(tt.setNewPageNumberAction(Ie.currentPageNumber(e),!0))}*setPageByUrl(e){const t=e.url;if(t&&"#"!==t[0]){const e=this.documentContructorData,n=e&&e.options&&e.options.baseUrl,r=/^https?:\/\/.+/.test(t)?t:n?new URL(t,n).href:rr?null:new URL(t,location.href);if(r){if(rr)chrome.runtime.sendMessage({command:"open_viewer_tab",url:r});else{const e=vt(yield Ya(Ie.dictionary));confirm(e("The link points to another document. Do you want to proceed?"))&&(yield Ha({type:ce.LOAD_DOCUMENT_BY_URL,url:r}))}return}}const n=yield this.djvuWorker.doc.getPageNumberByUrl(e.url).run();null!==n&&(yield Ha(tt.setNewPageNumberAction(n,!0)),e.closeContentsOnSuccess&&(yield Ha({type:ce.CLOSE_CONTENTS})))}withErrorHandler(e){return e=e.bind(this),function*(t){try{const n=e(t);n&&n.next&&(yield*n)}catch(n){yield Ha(tt.errorAction(n))}}}*saveDocument(){const e=yield Ya(),t=Ie.fileName(e);if(t){const e=yield this.djvuWorker.doc.createObjectURL().run(),n=document.createElement("a");n.href=e,n.download=ir(t),n.dispatchEvent(new MouseEvent("click"))}}resetWorkerAndStorages(){this.pageStorage.reset(),this.pagesCache.resetPagesCache(),this.djvuWorker.reset(),this.continuousScrollManager=null,this.isBundling=!1,this.documentContructorData=null}setCallback(e){this.callbacks[e.callbackName]=e.callback}*switchToContinuousScrollMode(e=!1){this.djvuWorker.cancelAllTasks(),this.continuousScrollManager||(yield*this.prepareForContinuousMode()),this.pagesCache.resetPagesCache(),yield*this.resetCurrentPageNumber(),e||(yield Ha({type:ce.UPDATE_OPTIONS,payload:{preferContinuousScroll:!0}}))}*switchToSinglePageMode(e=!1){this.djvuWorker.cancelAllTasks(),this.continuousScrollManager&&(yield*this.continuousScrollManager.reset()),yield*this.resetCurrentPageNumber(),e||(yield Ha({type:ce.UPDATE_OPTIONS,payload:{preferContinuousScroll:!1}}))}*switchToTextMode(){this.djvuWorker.cancelAllTasks(),this.continuousScrollManager&&(yield*this.continuousScrollManager.reset()),yield*this.fetchPageTextIfRequired()}*handleViewModeSwitch({notSave:e=!1}={}){const t=yield Ya(Ie.isDocumentLoaded),n=yield Ya(Ie.viewMode);if(t)switch(n){case ue.CONTINUOUS_SCROLL_MODE:return yield*this.switchToContinuousScrollMode(e);case ue.SINGLE_PAGE_MODE:return yield*this.switchToSinglePageMode(e);case ue.TEXT_MODE:return yield*this.switchToTextMode();default:throw new Error("Invalid view mode: "+payload)}}*updateOptions(e){if(e.notSave)return;const t=yield Ya(),n=Ie.options(t);rr?yield new Promise((e=>window.chrome.storage.local.set({djvu_js_options:JSON.stringify(n)},e))):localStorage.setItem("djvu_js_options",JSON.stringify(n))}*loadOptions(){try{let t={};rr?(t=yield new Promise((e=>window.chrome.storage.local.get("djvu_js_options",e))),t=t.djvu_js_options):t=localStorage.getItem("djvu_js_options");try{t=t?JSON.parse(t):{}}catch(e){t={}}if(!t.locale)for(const e of navigator.languages){const n=e.slice(0,2);if(n in we){t.locale=n;break}}Object.keys(t).length&&(yield Ha({type:ce.UPDATE_OPTIONS,payload:t,notSave:!0}))}catch(e){}}*loadDocumentByUrl({url:e,config:t}){t=t||{};const n=e=>{try{const t=/[^/#]*(?=#|$)/.exec(e.trim());return t?decodeURIComponent(t[0]):"***"}catch(t){return"***"}};try{const o=document.createElement("a");o.href=e,e=o.href,yield Ha(tt.startFileLoadingAction());const i=yield function(e,t){return new Promise(((n,o)=>{var i=new XMLHttpRequest;i.open("GET",e),i.responseType="arraybuffer",i.onload=e=>{if(i.status&&200!==i.status)return o({code:r.ErrorCodes.UNSUCCESSFUL_REQUEST,status:i.status,header:`Response status code: ${i.status}`,message:`Response status text: ${i.statusText}`});n(i)},i.onerror=e=>{o({code:r.ErrorCodes.NETWORK_ERROR,header:"Network error",message:"You should check your network connection"})},i.onprogress=t,i.send()}))}(e,(e=>{this.dispatch(tt.fileLoadingProgressAction(e.loaded,e.total))})),{response:a,responseURL:l}=i,s=i.getResponseHeader("Content-Disposition");if(s){const e=Rl.a.parse(s);e.parameters.filename&&(t.name=e.parameters.filename)}t.djvuOptions={baseUrl:new URL("./",l).href},yield*this.createDocumentFromArrayBuffer({arrayBuffer:a,fileName:void 0===t.name?n(e):t.name,config:t});const u=new URL(e.toLowerCase()),c=+u.searchParams.get("page")||+new URLSearchParams(u.hash).get("#page");c&&(yield Ha(tt.setNewPageNumberAction(c,!0)))}catch(o){yield Ha(tt.errorAction(o))}finally{yield Ha(tt.endFileLoadingAction())}}*bundleDocument(){try{this.djvuWorker.cancelAllTasks(),this.isBundling=!0;const e=yield this.djvuWorker.doc.bundle((e=>{this.dispatch({type:ce.UPDATE_FILE_PROCESSING_PROGRESS,payload:e})})).run();yield Ha({type:ce.FINISH_TO_BUNDLE,payload:e})}finally{this.isBundling=!1}}*hardReloadIfRequired(){this.isBundling&&this.documentContructorData&&(this.djvuWorker.reset(),this.isBundling=!1,yield this.djvuWorker.createDocument(this.documentContructorData.buffer.slice(0),this.documentContructorData.options),yield*this.resetCurrentPageNumber())}*preparePagesForPrinting(e){const{from:t,to:n}=e.payload;this.printTask=yield Ga(this.printManager.preparePagesForPrinting.bind(this.printManager),t,n)}*cancelPrintTaskIfRequired(){if(this.printTask){this.printTask.cancel(),this.printTask=null;(yield Ya(Ie.viewMode))!==ue.CONTINUOUS_SCROLL_MODE&&this.pageStorage.removeAllPages(),yield*this.resetCurrentPageNumber()}}*main(){yield Ul(ue.CREATE_DOCUMENT_FROM_ARRAY_BUFFER_ACTION,this.withErrorHandler(this.createDocumentFromArrayBuffer)),yield Ul(ue.SET_NEW_PAGE_NUMBER_ACTION,this.withErrorHandler(this.fetchPageData)),yield Ul(ue.SET_PAGE_BY_URL_ACTION,this.withErrorHandler(this.setPageByUrl)),yield Ul(ce.SAVE_DOCUMENT,this.withErrorHandler(this.saveDocument)),yield Ul(ue.CLOSE_DOCUMENT_ACTION,this.withErrorHandler(this.resetWorkerAndStorages)),yield Ul(ue.SET_API_CALLBACK_ACTION,this.withErrorHandler(this.setCallback)),yield Ul(ce.SET_VIEW_MODE,this.withErrorHandler(this.handleViewModeSwitch)),yield Ul(ce.UPDATE_OPTIONS,this.withErrorHandler(this.updateOptions)),yield Ul(ce.CONFIGURE,this.withErrorHandler(this.configure)),yield Ul(ce.LOAD_DOCUMENT_BY_URL,this.loadDocumentByUrl.bind(this)),yield Ul(ce.START_TO_BUNDLE,this.withErrorHandler(this.bundleDocument)),yield Ul([ce.ERROR,ce.CLOSE_SAVE_DIALOG],this.withErrorHandler(this.hardReloadIfRequired)),yield Ul([ce.ERROR,ce.CLOSE_PRINT_DIALOG],this.withErrorHandler(this.cancelPrintTaskIfRequired)),yield Ul(ce.PREPARE_PAGES_FOR_PRINTING,this.withErrorHandler(this.preparePagesForPrinting)),yield*this.withErrorHandler(this.loadOptions)(),yield Wa(ce.DESTROY),this.djvuWorker.terminate(),yield qa()}}var $l=e=>{const t=Nl(),n=Wi(Re,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(zi(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=Hi.apply(void 0,i)(n.dispatch),Mi(Mi({},n),{},{dispatch:r})}}}(qi,t,e));var r;return t.run((r=n.dispatch,Hl.prototype.main.bind(new Hl(r)))),function(e){document.addEventListener("keydown",(t=>{if(("s"===t.key||"KeyS"===t.code)&&t.ctrlKey)return t.preventDefault(),void e.dispatch(tt.tryToSaveDocument());if("ArrowRight"===t.key)return t.preventDefault(),void e.dispatch(tt.goToNextPageAction());if("ArrowLeft"===t.key)return t.preventDefault(),void e.dispatch(tt.goToPreviousPageAction());if("KeyT"===t.code&&t.altKey){t.preventDefault();const{theme:n}=Ie.options(e.getState());e.dispatch({type:ce.UPDATE_OPTIONS,payload:{theme:"light"===n?"dark":"light"}})}}))}(n),n},Gl=n(15),ql=n.n(Gl);const Yl=se({PAGE_NUMBER_CHANGED:null,DOCUMENT_CHANGED:null,DOCUMENT_CLOSED:null});class Kl extends ql.a{static getAvailableLanguages(){return Object.keys(we)}constructor(e=null){super(),this.eventMiddleware=e=>e=>t=>{let n;switch(t.type){case ue.SET_NEW_PAGE_NUMBER_ACTION:const r=this.getPageNumber();n=e(t);r!==this.getPageNumber()&&this.emit(Yl.PAGE_NUMBER_CHANGED);break;case ue.DOCUMENT_CREATED_ACTION:n=e(t),this.emit(Yl.DOCUMENT_CHANGED);break;case ue.CLOSE_DOCUMENT_ACTION:n=e(t),this.emit(Yl.DOCUMENT_CLOSED);break;case ue.END_FILE_LOADING_ACTION:n=e(t),this.emit(ue.END_FILE_LOADING_ACTION);break;default:n=e(t)}return n},this.store=$l(this.eventMiddleware),e&&this.configure(e)}getPageNumber(){return Ie.currentPageNumber(this.store.getState())}getDocumentName(){return Ie.fileName(this.store.getState())}_render(e){l.a.render(Object(it.jsx)(h,{store:this.store,children:Object(it.jsx)(Ri,{shadowRoot:e})}),e)}render(e){this.unmount(),this.htmlElement=e,this._render(this.htmlElement)}unmount(){this.htmlElement&&l.a.unmountComponentAtNode(this.htmlElement),this.htmlElement=null}destroy(){this.unmount(),this.store.dispatch({type:ce.DESTROY})}configure({pageNumber:e,pageRotation:t,viewMode:n,pageScale:r,language:o,theme:i,uiOptions:a}={}){return this.store.dispatch({type:ce.CONFIGURE,pageNumber:e,pageRotation:t,viewMode:n,pageScale:r,language:o,theme:i,uiOptions:a}),this}loadDocument(e,t="***",n={}){return new Promise((r=>{this.once(Yl.DOCUMENT_CHANGED,(()=>r())),this.store.dispatch(tt.createDocumentFromArrayBufferAction(e.slice(0),t,n))}))}loadDocumentByUrl(e,t=null){return new Promise((n=>{this.once(ue.END_FILE_LOADING_ACTION,(()=>n())),this.store.dispatch({type:ce.LOAD_DOCUMENT_BY_URL,url:e,config:t})}))}}Kl.VERSION="0.8.3",Kl.Events=Yl,Kl.Constants=ue,Kl.ActionTypes=ce,Kl.get=Ie,r.Viewer=Kl}]); |