(()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{ALT:()=>g,BACKSPACE:()=>i,COMMAND:()=>A,CTRL:()=>E,DELETE:()=>C,DOWN:()=>w,END:()=>f,ENTER:()=>a,ESCAPE:()=>d,F10:()=>S,HOME:()=>p,LEFT:()=>h,PAGEDOWN:()=>s,PAGEUP:()=>u,RIGHT:()=>m,SHIFT:()=>P,SPACE:()=>c,TAB:()=>l,UP:()=>y,ZERO:()=>O,displayShortcut:()=>T,displayShortcutList:()=>L,isAppleOS:()=>r,isKeyboardEvent:()=>M,modifiers:()=>v,rawShortcut:()=>b,shortcutAriaLabel:()=>_});const o=window.lodash,n=window.wp.i18n;function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t){if("undefined"==typeof window)return!1;t=window}const{platform:e}=t.navigator;return-1!==e.indexOf("Mac")||(0,o.includes)(["iPad","iPhone"],e)}const i=8,l=9,a=13,d=27,c=32,u=33,s=34,f=35,p=36,h=37,y=38,m=39,w=40,C=46,S=121,g="alt",E="ctrl",A="meta",P="shift",O=48,v={primary:t=>t()?[A]:[E],primaryShift:t=>t()?[P,A]:[E,P],primaryAlt:t=>t()?[g,A]:[E,g],secondary:t=>t()?[P,g,A]:[E,P,g],access:t=>t()?[E,g]:[P,g],ctrl:()=>[E],alt:()=>[g],ctrlShift:()=>[E,P],shift:()=>[P],shiftAlt:()=>[P,g],undefined:()=>[]},b=(0,o.mapValues)(v,(t=>function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return[...t(o),e.toLowerCase()].join("+")})),L=(0,o.mapValues)(v,(t=>function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;const i=n(),l={[g]:i?"⌥":"Alt",[E]:i?"⌃":"Ctrl",[A]:"⌘",[P]:i?"⇧":"Shift"},a=t(n).reduce(((t,e)=>{const n=(0,o.get)(l,e,e);return i?[...t,n]:[...t,n,"+"]}),[]),d=(0,o.capitalize)(e);return[...a,d]})),T=(0,o.mapValues)(L,(t=>function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return t(e,o).join("")})),_=(0,o.mapValues)(v,(t=>function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;const l=i(),a={[P]:"Shift",[A]:l?"Command":"Control",[E]:"Control",[g]:l?"Option":"Alt", /* translators: comma as in the character ',' */ ",":(0,n.__)("Comma"), /* translators: period as in the character '.' */ ".":(0,n.__)("Period"), /* translators: backtick as in the character '`' */ "`":(0,n.__)("Backtick")};return[...t(i),e].map((t=>(0,o.capitalize)((0,o.get)(a,t,t)))).join(l?" ":" + ")}));function j(t){return[g,E,A,P].filter((e=>t[`${e}Key`]))}const M=(0,o.mapValues)(v,(t=>function(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;const l=t(i),a=j(e);if((0,o.xor)(l,a).length)return!1;let d=e.key.toLowerCase();return n?(e.altKey&&1===n.length&&(d=String.fromCharCode(e.keyCode).toLowerCase()),"del"===n&&(n="delete"),d===n.toLowerCase()):(0,o.includes)(l,d)}));(window.wp=window.wp||{}).keycodes=e})(); //# sourceMappingURL=index.min.js.map