1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59920],{59920:function(e,t,n){n.r(t),n.d(t,{default:function(){return L}});var o=n(27573),r=n(7653);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var l=["shift","alt","meta","mod","ctrl"],u={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function a(e){return(e&&u[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function c(e,t){return void 0===t&&(t=","),e.split(t)}function d(e,t,n){void 0===t&&(t="+");var o=e.toLocaleLowerCase().split(t).map(function(e){return a(e)}),r={alt:o.includes("alt"),ctrl:o.includes("ctrl")||o.includes("control"),shift:o.includes("shift"),meta:o.includes("meta"),mod:o.includes("mod")},u=o.filter(function(e){return!l.includes(e)});return i({},r,{keys:u,description:n,hotkey:e})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.ke
1y&&v([a(e.key),a(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&p([a(e.key),a(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){s.clear()});var s=new Set;function f(e){return Array.isArray(e)}function v(e){var t=Array.isArray(e)?e:[e];s.has("meta")&&s.forEach(function(e){return!l.includes(e)&&s.delete(e.toLowerCase())}),t.forEach(function(e){return s.add(e.toLowerCase())})}function p(e){var t=Array.isArray(e)?e:[e];"meta"===e?s.clear():t.forEach(function(e){return s.delete(e.toLowerCase())})}function y(e,t){void 0===t&&(t=!1);var n=e.target,o=e.composed,r=null;return(r=n.tagName&&!n.tagName.startsWith("-")&&n.tagName.includes("-")&&o?e.composedPath()[0]&&e.composedPath()[0].tagName:n&&n.tagName,f(t))?!!(r&&t&&t.some(function(e){var t;return e.toLowerCase()===(null==(t=r)?void 0:t.toLowerCase())})):!!(r&&t&&t)}var h=function(e,t,n){void 0===n&&(n=!1);var o,r=t.alt,i=t.meta,l=t.mod,u=t.shift,c=t.ctrl,d=t.keys,v=e.key,p=e.code,y=e.ctrlKey,h=e.metaKey,m=e.shiftKey,b=e.altKey,g=a(p),k=v.toLowerCase();if(!(null!=d&&d.includes(g))&&!(null!=d&&d.includes(k))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(g))return!1;if(!n){if(!b===r&&"alt"!==k||!m===u&&"shift"!==k)return!1;if(l){if(!h&&!y)return!1}else if(!h===i&&"meta"!==k&&"os"!==k||!y===c&&"ctrl"!==k&&"control"!==k)return!1}return!!(d&&1===d.length&&(d.includes(k)||d.includes(g)))||(d?(void 0===o&&(o=","),(f(d)?d:d.split(o)).every(function(e){return s.has(e.trim().toLowerCase())})):!d)},m=(0,r.createContext)(void 0),b=(0,r.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),g=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},k="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function w(e,t,n,o){var i,l=(0,r.useState)(null),u=l[0],s=l[1],w=(0,r.useRef)(!1),E=n instanceof Array?o instanceof Array?void 0:o:n,L=f(e)?e.join(null==E?void 0:E.splitKey):e,C=n instanceof Array?n:o instanceof Array?o:void 0,S=(0,r.useCallback)(t,null!=C?C:[]),A=(0,r.useRef)(S);C?A.current=S:A.current=t;var O=(!function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce(function(o,r){return o&&e(t[r],n[r])},!0):t===n}((i=(0,r.useRef)(void 0)).current,E)&&(i.current=E),i.current),x=(0,r.useContext)(b).enabledScopes,K=(0,r.useContext)(m);return k(function(){if((null==O?void 0:O.enabled)!==!1&&(e=null==O?void 0:O.scopes,0===x.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!e||x.some(function(t){return e.includes(t)})||x.includes("*")))){var e,t=function(e,t){var n;if(void 0===t&&(t=!1),!y(e,["input","textarea","select"])||y(e,null==O?void 0:O.enableOnFormTags)){if(null!==u){var o=u.getRootNode();if((o instanceof Document||o instanceof ShadowRoot)&&o.activeElement!==u&&!u.contains(o.activeElement)){g(e);return}}(null==(n=e.target)||!n.isContentEditable||null!=O&&O.enableOnContentEditable)&&c(L,null==O?void 0:O.splitKey).forEach(function(n){var o,r,i,l=d(n,null==O?void 0:O.combinationKey);if(h(e,l,null==O?void 0:O.ignoreModifiers)||null!=(i=l.keys)&&i.includes("*")){if(null!=O&&null!=O.ignoreEventWhen&&O.ignoreEventWhen(e)||t&&w.current)return;if(("function"==typeof(o=null==O?void 0:O.preventDefault)&&o(e,l)||!0===o)&&e.preventDefault(),"function"==typeof(r=null==O?void 0:O.enabled)?!r(e,l):!0!==r&&void 0!==r){g(e);return}A.current(e,l),t||(w.current=!0)}})}}
1,n=function(e){void 0!==e.key&&(v(a(e.code)),((null==O?void 0:O.keydown)===void 0&&(null==O?void 0:O.keyup)!==!0||null!=O&&O.keydown)&&t(e))},o=function(e){void 0!==e.key&&(p(a(e.code)),w.current=!1,null!=O&&O.keyup&&t(e,!0))},r=u||(null==E?void 0:E.document)||document;return r.addEventListener("keyup",o,null==E?void 0:E.eventListenerOptions),r.addEventListener("keydown",n,null==E?void 0:E.eventListenerOptions),K&&c(L,null==O?void 0:O.splitKey).forEach(function(e){return K.addHotkey(d(e,null==O?void 0:O.combinationKey,null==O?void 0:O.description))}),function(){r.removeEventListener("keyup",o,null==E?void 0:E.eventListenerOptions),r.removeEventListener("keydown",n,null==E?void 0:E.eventListenerOptions),K&&c(L,null==O?void 0:O.splitKey).forEach(function(e){return K.removeHotkey(d(e,null==O?void 0:O.combinationKey,null==O?void 0:O.description))})}}},[u,L,O,x]),s}var E=n(53286);function L(){let{viewType:e}=(0,E.Zp)(e=>({viewType:e.viewType}));function t(){return 0===window.document.querySelectorAll("#overlay").length}return["ltr","rtl"].includes(e)?(0,o.jsx)(S,{checkEnabled:t}):(0,o.jsx)(C,{checkEnabled:t})}function C(e){let{checkEnabled:t}=e,{requestEpisodeWithConfirm:n}=(0,E.Eu)();return w("left",()=>n("left","ttb"),{enabled:t}),w("right",()=>n("right","ttb"),{enabled:t}),null}function S(e){let{checkEnabled:t}=e,{viewType:n,currIdx:o,pageSide:r,updateIdx:i,updateToolbarVisibility:l}=(0,E.Zp)(e=>({viewType:e.viewType,pageSide:e.pageSide,currIdx:e.currIdx,updateIdx:e.updateIdx,updateToolbarVisibility:e.updateToolbarVisibility})),{getEdge:u,moveCutIndex:a,requestEpisodeWithConfirm:c}=(0,E.Eu)(),d=u(n,o);return w("left",()=>{l(!1);let{type:e}=d;"ltr"===n?"start"===e?c("left","ltr"):a("left","ltr",o):"end"===e?c("left","rtl"):a("left","rtl",o)},{enabled:t}),w("right",()=>{l(!1);let{type:e}=d;"ltr"===n?"end"===e?c("right","ltr"):a("right","ltr",o):"start"===e?c("right","rtl"):a("right","rtl",o)},{enabled:t}),w(["shift+space","pageup"],()=>c("left","ttb"),{enabled:t}),w(["space","pagedown"],()=>c("right","ttb"),{enabled:t}),w("home",()=>i("side-one"===r?1:2),{enabled:t}),w("end",()=>i(d.lastIndex),{enabled:t}),null}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.