!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=947)}({23:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return i}));var r=n(43),o={oemChromeExtension:"Yeastar Linkus for Google",oemLinkusName:"Linkus"},u=o.oemChromeExtension,c=o.oemLinkusName,i=function(e,t){var n=chrome.i18n.getMessage(e).replace(/\{OEM.ChromeExtension\}/g,u).replace(/{.AppName}/g,u).replace(/\{OEM.LinkusName\}/g,c);return t&&t.length>0&&t.forEach((function(e){Object.entries(e).forEach((function(e){var t=Object(r.a)(e,2),o=t[0],u=t[1];n=n.replace(new RegExp("{".concat(o,"}"),"g"),u)}))})),n}},43:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(56);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,u=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(a){o=!0,u=a}finally{try{r||null==i.return||i.return()}finally{if(o)throw u}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},48:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(48);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},947:function(e,t,n){"use strict";n.r(t);var r=n(23);document.addEventListener("DOMContentLoaded",(function(){!function(){for(var e=document.getElementsByTagName("html"),t=0;t<e.length;t++){var n=e[t],o=n.innerHTML.toString(),u=o.replace(/__MSG_(\w+)__/g,(function(e,t){return t?Object(r.b)(t):""}));u!=o&&(n.innerHTML=u)}}();var e=!1,t=chrome.runtime.connect({name:"hid-request"});console.log(t),t.onMessage.addListener((function(e){})),t.onDisconnect.addListener((function(){e=!0})),document.getElementById("request").addEventListener("click",(function(){navigator.hid.requestDevice({filters:[{usagePage:11,usage:5},{usagePage:11,usage:1}]}).then((function(n){if(!e)if(n[0]){var r=n[0];t.postMessage({success:!0,opened:r.opened,productId:r.productId,productName:r.productName,vendorId:r.vendorId}),window.close()}else t.postMessage({success:!1})})).catch((function(n){e||(console.error(n),t.postMessage({success:!1}))}))}))}))}});