Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/ui/vue/dist/ |
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/ui/vue/dist/vue.bitrix.bundle.js.map |
{"version":3,"file":"vue.bitrix.bundle.js","sources":["../src/vue.bitrix.js"],"sourcesContent":["/**\n * Bitrix Vue wrapper\n *\n * @package bitrix\n * @subpackage ui\n * @copyright 2001-2019 Bitrix\n */\n\nimport \"main.polyfill.core\";\nimport {VueVendorV2} from \"ui.vue.vendor.v2\";\n\nclass BitrixVue\n{\n\tconstructor()\n\t{\n\t\tthis._components = {};\n\t\tthis._mutations = {};\n\t\tthis._clones = {};\n\n\t\tthis.event = new VueVendorV2({});\n\t}\n\n\t/**\n\t * Create new Vue instance\n\t *\n\t * @param {Object} params - definition\n\t *\n\t * @see https://vuejs.org/v2/guide/\n\t */\n\tcreate(params)\n\t{\n\t\treturn new VueVendorV2(params);\n\t}\n\n\t/**\n\t * Register Vue component\n\t *\n\t * @param {String} id\n\t * @param {Object} params\n\t *\n\t * @see https://vuejs.org/v2/guide/components.html\n\t */\n\tcomponent(id, params)\n\t{\n\t\tthis._components[id] = Object.assign({}, params);\n\n\t\tif (typeof this._clones[id] !== 'undefined')\n\t\t{\n\t\t\tthis._registerCloneComponent(id);\n\t\t}\n\n\t\treturn VueVendorV2.component(id, this._getComponentParamsWithMutation(id, this._mutations[id]));\n\t}\n\n\t/**\n\t * Modify Vue component\n\t *\n\t * @param {String} id\n\t * @param {Object} mutations\n\t *\n\t * @returns {Function} - function for remove this modification\n\t */\n\tmutateComponent(id, mutations)\n\t{\n\t\tif (typeof this._mutations[id] === 'undefined')\n\t\t{\n\t\t\tthis._mutations[id] = [];\n\t\t}\n\n\t\tthis._mutations[id].push(mutations);\n\n\t\tif (typeof this._components[id] !== 'undefined')\n\t\t{\n\t\t\tthis.component(id, this._components[id]);\n\t\t}\n\n\t\treturn () => {\n\t\t\tthis._mutations[id] = this._mutations[id].filter((element) => element !== mutations);\n\t\t};\n\t}\n\n\t/**\n\t * Clone Vue component\n\t *\n\t * @param {string} id\n\t * @param {string} sourceId\n\t * @param {object} mutations\n\t * @returns {boolean}\n\t */\n\tcloneComponent(id, sourceId, mutations)\n\t{\n\t\tif (typeof this._clones[sourceId] === 'undefined')\n\t\t{\n\t\t\tthis._clones[sourceId] = {};\n\t\t}\n\n\t\tthis._clones[sourceId][id] = {id, sourceId, mutations};\n\n\t\tif (typeof this._components[sourceId] !== 'undefined')\n\t\t{\n\t\t\tthis._registerCloneComponent(sourceId, id);\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tisComponent(id)\n\t{\n\t\treturn typeof this._components[id] !== 'undefined'\n\t}\n\n\t/**\n\t * Create a \"subclass\" of the base Vue constructor.\n\t *\n\t * @param options\n\t * @returns {*}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-extend\n\t */\n\textend(options)\n\t{\n\t\treturn VueVendorV2.extend(options)\n\t}\n\n\t/**\n\t *\tDefer the callback to be executed after the next DOM update cycle. Use it immediately after you have changed some data to wait for the DOM update.\n\t *\n\t * @param {Function} callback\n\t * @param {Object} context\n\t * @returns {Promise|void}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-nextTick\n\t */\n\tnextTick(callback, context)\n\t{\n\t\treturn VueVendorV2.nextTick(callback, context);\n\t}\n\n\t/**\n\t * Adds a property to a reactive object, ensuring the new property is also reactive, so triggers view updates.\n\t *\n\t * @param {Object|Array} target\n\t * @param {String|Number} key\n\t * @param {*} value\n\t * @returns {*}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-set\n\t */\n\tset(target, key, value)\n\t{\n\t\treturn VueVendorV2.set(target, key, value);\n\t}\n\n\t/**\n\t * Delete a property on an object. If the object is reactive, ensure the deletion triggers view updates.\n\t *\n\t * @param {Object|Array} target\n\t * @param {String|Number} key\n\t * @returns {*}\n\t */\n\tdelete(target, key)\n\t{\n\t\treturn VueVendorV2.delete(target, key);\n\t}\n\n\t/**\n\t * Register or retrieve a global directive.\n\t *\n\t * @param {String} id\n\t * @param {Object|Function} definition\n\t * @returns {*}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-directive\n\t */\n\tdirective(id, definition)\n\t{\n\t\treturn VueVendorV2.directive(id, definition);\n\t}\n\n\t/**\n\t * Register or retrieve a global filter.\n\t *\n\t * @param id\n\t * @param definition\n\t * @returns {*}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-filter\n\t */\n\tfilter(id, definition)\n\t{\n\t\treturn VueVendorV2.filter(id, definition);\n\t}\n\n\t/**\n\t * Install a Vue.js plugin.\n\t *\n\t * @param {Object|Function} plugin\n\t * @returns {*}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-use\n\t */\n\tuse(plugin)\n\t{\n\t\treturn VueVendorV2.use(plugin);\n\t}\n\n\t/**\n\t * Apply a mixin globally, which affects every Vue instance created afterwards.\n\t *\n\t * @param {Object} mixin\n\t * @returns {*|Function|Object}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-mixin\n\t */\n\tmixin(mixin)\n\t{\n\t\treturn VueVendorV2.mixin(mixin);\n\t}\n\n\t/**\n\t * Make an object reactive. Internally, Vue uses this on the object returned by the data function.\n\t *\n\t * @param object\n\t * @returns {*}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-observable\n\t */\n\tobservable(object)\n\t{\n\t\treturn VueVendorV2.observable(object);\n\t}\n\n\t/**\n\t * Compiles a template string into a render function.\n\t *\n\t * @param template\n\t * @returns {*}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-compile\n\t */\n\tcompile(template)\n\t{\n\t\treturn VueVendorV2.compile(template);\n\t}\n\n\t/**\n\t * Provides the installed version of Vue as a string.\n\t *\n\t * @returns {String}\n\t *\n\t * @see https://vuejs.org/v2/api/#Vue-version\n\t */\n\tversion()\n\t{\n\t\treturn VueVendorV2.version;\n\t}\n\n\t/**\n\t *\n\t * @param {String} phrasePrefix\n\t * @param {Object|null} phrases\n\t * @returns {ReadonlyArray<any>}\n\t */\n\tgetFilteredPhrases(phrasePrefix, phrases = null)\n\t{\n\t\tlet result = {};\n\n\t\tif (!phrases && typeof BX.message !== 'undefined')\n\t\t{\n\t\t\tphrases = BX.message;\n\t\t}\n\n\t\tif (Array.isArray(phrasePrefix))\n\t\t{\n\t\t\tfor (let message in phrases)\n\t\t\t{\n\t\t\t\tif (!phrases.hasOwnProperty(message))\n\t\t\t\t{\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tif (!phrasePrefix.find((element) => message.toString().startsWith(element)))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tresult[message] = phrases[message];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor (let message in phrases)\n\t\t\t{\n\t\t\t\tif (!phrases.hasOwnProperty(message))\n\t\t\t\t{\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tif (!message.startsWith(phrasePrefix))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tresult[message] = phrases[message];\n\t\t\t}\n\t\t}\n\n\t\treturn Object.freeze(result);\n\t}\n\n\t/**\n\t * Return component params with mutation\n\t *\n\t * @param {String} componentId\n\t * @param {Object} mutations\n\t * @returns {null|Object}\n\t *\n\t * @private\n\t */\n\t_getComponentParamsWithMutation(componentId, mutations)\n\t{\n\t\tif (typeof this._components[componentId] === 'undefined')\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tlet componentParams = Object.assign({}, this._components[componentId]);\n\n\t\tif (typeof mutations === 'undefined')\n\t\t{\n\t\t\treturn componentParams;\n\t\t}\n\n\t\tmutations.forEach(mutation =>\n\t\t{\n\t\t\tcomponentParams = this._applyMutation(\n\t\t\t\tthis._cloneObjectWithoutDuplicateFunction(componentParams, mutation),\n\t\t\tmutation);\n\t\t});\n\n\t\treturn componentParams;\n\t}\n\n\t/**\n\t * Register clone of components\n\t *\n\t * @param {String} sourceId\n\t * @param {String|null} [id]\n\t *\n\t * @private\n\t */\n\t_registerCloneComponent(sourceId, id = null)\n\t{\n\t\tlet components = [];\n\t\tif (id)\n\t\t{\n\t\t\tif (typeof this._clones[sourceId][id] !== 'undefined')\n\t\t\t{\n\t\t\t\tcomponents.push(this._clones[sourceId][id]);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor (let cloneId in this._clones[sourceId])\n\t\t\t{\n\t\t\t\tif (!this._clones[sourceId].hasOwnProperty(cloneId))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tcomponents.push(this._clones[sourceId][cloneId]);\n\t\t\t}\n\t\t}\n\n\t\tcomponents.forEach(element =>\n\t\t{\n\t\t\tlet mutations = [];\n\n\t\t\tif (typeof this._mutations[element.sourceId] !== 'undefined')\n\t\t\t{\n\t\t\t\tmutations = mutations.concat(this._mutations[element.sourceId]);\n\t\t\t}\n\n\t\t\tmutations.push(element.mutations);\n\n\t\t\tlet componentParams = this._getComponentParamsWithMutation(element.sourceId, mutations);\n\t\t\tif (!componentParams)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthis.component(element.id, componentParams);\n\t\t});\n\t}\n\n\t/**\n\t * Clone object without duplicate function for apply mutation\n\t *\n\t * @param objectParams\n\t * @param mutation\n\t * @param level\n\t * @private\n\t */\n\t_cloneObjectWithoutDuplicateFunction(objectParams = {}, mutation = {}, level = 1)\n\t{\n\t\tlet object = {};\n\n\t\tfor (let param in objectParams)\n\t\t{\n\t\t\tif (!objectParams.hasOwnProperty(param))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (typeof objectParams[param] === 'string')\n\t\t\t{\n\t\t\t\tobject[param] = objectParams[param];\n\t\t\t}\n\t\t\telse if (Object.prototype.toString.call(objectParams[param]) === '[object Array]')\n\t\t\t{\n\t\t\t\tobject[param] = [].concat(objectParams[param]);\n\t\t\t}\n\t\t\telse if (typeof objectParams[param] === 'object')\n\t\t\t{\n\t\t\t\tif (objectParams[param] === null)\n\t\t\t\t{\n\t\t\t\t\tobject[param] = null;\n\t\t\t\t}\n\t\t\t\telse if (typeof mutation[param] === 'object')\n\t\t\t\t{\n\t\t\t\t\tobject[param] = this._cloneObjectWithoutDuplicateFunction(objectParams[param], mutation[param], (level+1))\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tobject[param] = Object.assign({}, objectParams[param])\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (typeof objectParams[param] === 'function')\n\t\t\t{\n\t\t\t\tif (typeof mutation[param] !== 'function')\n\t\t\t\t{\n\t\t\t\t\tobject[param] = objectParams[param];\n\t\t\t\t}\n\t\t\t\telse if (level > 1)\n\t\t\t\t{\n\t\t\t\t\tobject['parent'+param[0].toUpperCase()+param.substr(1)] = objectParams[param];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (typeof object['methods'] === 'undefined')\n\t\t\t\t\t{\n\t\t\t\t\t\tobject['methods'] = {};\n\t\t\t\t\t}\n\t\t\t\t\tobject['methods']['parent'+param[0].toUpperCase()+param.substr(1)] = objectParams[param];\n\n\t\t\t\t\tif (typeof objectParams['methods'] === 'undefined')\n\t\t\t\t\t{\n\t\t\t\t\t\tobjectParams['methods'] = {};\n\t\t\t\t\t}\n\t\t\t\t\tobjectParams['methods']['parent'+param[0].toUpperCase()+param.substr(1)] = objectParams[param];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (typeof objectParams[param] !== 'undefined')\n\t\t\t{\n\t\t\t\tobject[param] = objectParams[param];\n\t\t\t}\n\t\t}\n\n\t\treturn object;\n\t}\n\n\t/**\n\t * Apply mutation\n\t *\n\t * @param clonedObject\n\t * @param mutation\n\t * @private\n\t */\n\t_applyMutation(clonedObject = {}, mutation = {})\n\t{\n\t\tlet object = Object.assign({}, clonedObject);\n\n\t\tfor (let param in mutation)\n\t\t{\n\t\t\tif (!mutation.hasOwnProperty(param))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (typeof mutation[param] === 'string')\n\t\t\t{\n\t\t\t\tif (typeof object[param] === 'string')\n\t\t\t\t{\n\t\t\t\t\tobject[param] = mutation[param].replace(`#PARENT_${param.toUpperCase()}#`, object[param]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tobject[param] = mutation[param].replace(`#PARENT_${param.toUpperCase()}#`, '');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (Object.prototype.toString.call(mutation[param]) === '[object Array]')\n\t\t\t{\n\t\t\t\tobject[param] = [].concat(mutation[param]);\n\t\t\t}\n\t\t\telse if (typeof mutation[param] === 'object')\n\t\t\t{\n\t\t\t\tif (typeof object[param] === 'object')\n\t\t\t\t{\n\t\t\t\t\tobject[param] = this._applyMutation(object[param], mutation[param])\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tobject[param] = mutation[param];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tobject[param] = mutation[param];\n\t\t\t}\n\t\t}\n\n\t\treturn object;\n\t}\n\n\t/**\n\t * Test node for compliance with parameters\n\t *\n\t * @param obj\n\t * @param params\n\t * @returns {boolean}\n\t */\n\ttestNode(obj, params)\n\t{\n\t\tif (!params || typeof params !== 'object')\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i,j,len;\n\n\t\tfor (i in params)\n\t\t{\n\t\t\tif(!params.hasOwnProperty(i))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tswitch(i)\n\t\t\t{\n\t\t\t\tcase 'tag':\n\t\t\t\tcase 'tagName':\n\t\t\t\t\tif (typeof params[i] === \"string\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif (obj.tagName.toUpperCase() !== params[i].toUpperCase())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (params[i] instanceof RegExp)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!params[i].test(obj.tagName))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t\tcase 'class':\n\t\t\t\tcase 'className':\n\t\t\t\t\tif (typeof params[i] === \"string\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!obj.classList.contains(params[i].trim()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (params[i] instanceof RegExp)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\ttypeof obj.className !== \"string\"\n\t\t\t\t\t\t\t|| !params[i].test(obj.className)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t\tcase 'attr':\n\t\t\t\tcase 'attrs':\n\t\t\t\tcase 'attribute':\n\t\t\t\t\tif (typeof params[i] === \"string\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!obj.getAttribute(params[i]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (params[i] && Object.prototype.toString.call(params[i]) === \"[object Array]\")\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (j = 0, len = params[i].length; j < len; j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (params[i][j] && !obj.getAttribute(params[i][j]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (j in params[i])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(!params[i].hasOwnProperty(j))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tlet value = obj.getAttribute(j);\n\t\t\t\t\t\t\tif (typeof value !== \"string\")\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (params[i][j] instanceof RegExp)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (!params[i][j].test(value))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (value !== '' + params[i][j])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t\tcase 'property':\n\t\t\t\tcase 'props':\n\t\t\t\t\tif (typeof params[i] === \"string\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!obj[params[i]])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (params[i] && Object.prototype.toString.call(params[i]) == \"[object Array]\")\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (j = 0, len = params[i].length; j < len; j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (params[i][j] && !obj[params[i][j]])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (j in params[i])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(!params[i].hasOwnProperty(j))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (typeof params[i][j] === \"string\")\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (obj[j] != params[i][j])\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (params[i][j] instanceof RegExp)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\ttypeof obj[j] !== \"string\"\n\t\t\t\t\t\t\t\t\t|| !params[i][j].test(obj[j])\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n}\n\nlet Vue;\nlet VueVendor;\n\nif (typeof exports !== 'undefined' && typeof exports.Vue !== 'undefined')\n{\n\tVue = exports.Vue;\n\tVueVendor = exports.VueVendor;\n}\nelse\n{\n\tVue = new BitrixVue;\n\tVueVendor = VueVendorV2;\n}\n\nexport {Vue, VueVendor};"],"names":["BitrixVue","_components","_mutations","_clones","event","VueVendorV2","params","id","Object","assign","_registerCloneComponent","component","_getComponentParamsWithMutation","mutations","push","filter","element","sourceId","options","extend","callback","context","nextTick","target","key","value","set","delete","definition","directive","plugin","use","mixin","object","observable","template","compile","version","phrasePrefix","phrases","result","BX","message","Array","isArray","hasOwnProperty","find","toString","startsWith","freeze","componentId","componentParams","forEach","mutation","_applyMutation","_cloneObjectWithoutDuplicateFunction","components","cloneId","concat","objectParams","level","param","prototype","call","toUpperCase","substr","clonedObject","replace","obj","i","j","len","tagName","RegExp","test","classList","contains","trim","className","getAttribute","length","exports","Vue","VueVendor"],"mappings":";;;CAAA;;;;;;;AAQA;KAGMA;CAE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