function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}var CommandeSon=(()=>_createClass(function e(t){_classCallCheck(this,e),this.instanceMethodType=t;t=this.templateHtml();$("body").append(t),window.addEventListener("keydown",this.keyHandler)},[{key:"keyHandler",value:function(e){var t;"F10"==e.code?(t=tizen.tvaudiocontrol.getVolume())<100&&(t++,e.view.tizen.tvaudiocontrol.setVolumeUp(),$("#volume").val(t),$("#player").fadeIn(),""!==idIntervalSon&&clearTimeout(idIntervalSon),idIntervalSon=setTimeout(function(){$("#player").fadeOut()},5e3)):"F9"==e.code&&(t=tizen.tvaudiocontrol.getVolume(),0<tizen.tvaudiocontrol.getVolume())&&(t--,e.view.tizen.tvaudiocontrol.setVolumeDown(),$("#volume").val(t),$("#player").fadeIn(),""!==idIntervalSon&&clearTimeout(idIntervalSon),idIntervalSon=setTimeout(function(){$("#player").fadeOut()},5e3))}},{key:"templateHtml",value:function(){var e=document.createElement("div"),t=(e.id="player",e.className="tizen-template-sound",document.createElement("i")),o=(t.className="fa fa-volume-down",document.createElement("progress")),n=(o.id="volume",o.max="100",o.value="",document.createElement("i"));return n.className="fa fa-volume-up",e.appendChild(t),e.appendChild(o),e.appendChild(n),$(e)}}]))(),idIntervalSon="";