"use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var n=(r,e)=>i(r,"name",{value:e,configurable:true});var l=(r,e)=>{for(var s in e)i(r,s,{get:e[s],enumerable:true})};var u=(r,e,s,o)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let t of p(e))if(!g.call(r,t)&&t!==s)i(r,t,{get:()=>e[t],enumerable:!(o=c(e,t))||o.enumerable})}return r};var a=r=>u(i({},"__esModule",{value:true}),r);var I={};l(I,{acceleratorString:()=>d,cleanseJSObject:()=>m,convertToJSON:()=>x,ifUndefined:()=>f,isArrowDownKeyPress:()=>S,isArrowUpKeyPress:()=>N,isEnterKeyPress:()=>y,isEscapeKeyPress:()=>b,isShiftKeyPress:()=>w,removeNewLines:()=>P,safeParseInt:()=>A});module.exports=a(I);const f=n((r,e)=>r??e,"ifUndefined");const x=n(r=>r&&typeof r==="string"&&r.length>0?JSON.parse(r):r,"convertToJSON");const m=n(r=>JSON.parse(JSON.stringify(r)),"cleanseJSObject");const N=n(r=>r==="ArrowUp","isArrowUpKeyPress");const S=n(r=>r==="ArrowDown","isArrowDownKeyPress");const y=n(r=>r==="Enter","isEnterKeyPress");const b=n(r=>r==="Escape","isEscapeKeyPress");const w=n(r=>r==="Shift","isShiftKeyPress");const A=n(r=>{if(r===void 0||r===null){return 0}const e=Number.parseInt(r.toString(),10);const s=Number.isNaN(e)?0:e;return Math.max(s,0)},"safeParseInt");const d=n(({index:r,keyCombo:e,prefix:s="(",suffix:o=")",maxIndex:t=9})=>r<=t?`${s}${e}+${r%10}${o}`:"","acceleratorString");const P=n(r=>r.replaceAll(/\r?\n|\r/g,""),"removeNewLines");
