/*
 * Copyright (c) 2018, 2026, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
const DOT=".";const COMMON_PROPS={"accessKey":true,"class":true,"className":true,"contentEditable":true,"contextMenu":true,"dir":true,"draggable":true,"dropZone":true,"forHtml":true,"hidden":true,"id":true,"lang":true,"role":true,"spellCheck":true,"style":true,"tabIndex":true,"title":true,"translate":true};var COMMON_EVENT_PROPS={"onAbort":true,"onAuxClick":true,"onBlur":true,"onCanPlay":true,"onCanPlayThrough":true,"onChange":true,"onClick":true,"onContextMenu":true,"onDblClick":true,"onDrag":true,"onDragEnd":true,"onDragEnter":true,"onDragLeave":true,"onDragOver":true,"onDragStart":true,"onDrop":true,"onDurationChange":true,"onEmptied":true,"onEnded":true,"onError":true,"onFocus":true,"onFocusIn":true,"onFocusOut":true,"onFormChange":true,"onFormInput":true,"onInput":true,"onInvalid":true,"onKeyDown":true,"onKeyPress":true,"onKeyUp":true,"onLoad":true,"onLoadedData":true,"onLoadedMetadata":true,"onLoadStart":true,"onMouseDown":true,"onMouseEnter":true,"onMouseLeave":true,"onMouseMove":true,"onMouseOut":true,"onMouseOver":true,"onMouseUp":true,"onMouseWheel":true,"onPause":true,"onPlay":true,"onPlaying":true,"onProgress":true,"onRateChange":true,"onReadyStateChange":true,"onReset":true,"onScroll":true,"onSeeked":true,"onSeeking":true,"onSelect":true,"onShow":true,"onStalled":true,"onSubmit":true,"onSuspend":true,"onTimeUpdate":true,"onVolumeChange":true,"onWaiting":true,"onWheel":true};const COMMON_PREACT_EVENTS={"onBlurCapture":true,"onClickCapture":true,"onContextMenuCapture":true,"onDblClickCapture":true,"onDragCapture":true,"onDragEndCapture":true,"onDragEnterCapture":true,"onDragExit":true,"onDragExitCapture":true,"onDragLeaveCapture":true,"onDragOverCapture":true,"onDragStartCapture":true,"onDropCapture":true,"onFocusCapture":true,"onKeyDownCapture":true,"onKeyPressCapture":true,"onKeyUpCapture":true,"onMouseDownCapture":true,"onMouseEnterCapture":true,"onMouseLeaveCapture":true,"onMouseMoveCapture":true,"onmouseoutcapture":true,"onMouseOverCapture":true,"onMouseUpCapture":true,"onPointerCancel":true,"onPointerCancelCapture":true,"onPointerDown":true,"onPointerDownCapture":true,"onPointerEnter":true,"onPointerEnterCapture":true,"onPointerleave":true,"onPointerLeaveCapture":true,"onPointerMove":true,"onPointerMovecapture":true,"onPointerOut":true,"onPointerOutCapture":true,"onPointerOver":true,"onPointerOverCapture":true,"onPointerUp":true,"onPointerUpCapture":true,"onTouchCancel":true,"onTouchCancelCapture":true,"onTouchEnd":true,"onTouchEndCapture":true,"onTouchMove":true,"onToucMmoveCapture":true,"onTouchStart":true,"onToucStartCapture":true,"onWheelCapture":true};module.exports.isCommonProp=function(propName){return COMMON_PROPS[propName]};module.exports.isCommonEventProp=function(propName){return COMMON_EVENT_PROPS[propName]||COMMON_PREACT_EVENTS[propName]};module.exports.toCamelCase=function(str){var parts,i;function _camelCase(str){return str.replace(/(?:^\w|[A-Z]|\b\w)/g,function(word,index){return index==0?word.toLowerCase():word.toUpperCase()}).replace(/-|\s+/g,"")};parts=str.split(DOT);for(i=0;i<parts.length;i++){parts[i]=_camelCase(parts[i])}return parts.join(DOT)};module.exports.toKebabCase=function(str){return str.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g,"$1-$2").toLowerCase()};