prestashop-module/retailcrm/views/js/worker.umd.min.js

38 lines
28 KiB
JavaScript

/*!
* MIT License
*
* Copyright (c) 2021 DIGITAL RETAIL TECHNOLOGIES SL
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author DIGITAL RETAIL TECHNOLOGIES SL <mail@simlachat.com>
* @copyright 2021 DIGITAL RETAIL TECHNOLOGIES SL
* @license https://opensource.org/licenses/MIT The MIT License
*
* Don\'t forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*
*/
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["retailcrm-prestashop"]=n():t["retailcrm-prestashop"]=n()})("undefined"!==typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fae3")}({"00ee":function(t,n,e){var r=e("b622"),o=r("toStringTag"),c={};c[o]="z",t.exports="[object z]"===String(c)},"0366":function(t,n,e){var r=e("1c0b");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"06cf":function(t,n,e){var r=e("83ab"),o=e("d1e7"),c=e("5c6c"),i=e("fc6a"),u=e("a04b"),f=e("5135"),a=e("0cfb"),s=Object.getOwnPropertyDescriptor;n.f=r?s:function(t,n){if(t=i(t),n=u(n),a)try{return s(t,n)}catch(e){}if(f(t,n))return c(!o.f.call(t,n),t[n])}},"0cfb":function(t,n,e){var r=e("83ab"),o=e("d039"),c=e("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},"19aa":function(t,n){t.exports=function(t,n,e){if(!(t instanceof n))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return t}},"1be4":function(t,n,e){var r=e("d066");t.exports=r("document","documentElement")},"1c0b":function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,n,e){var r=e("b622"),o=r("iterator"),c=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){c=!0}};u[o]=function(){return this},Array.from(u,(function(){throw 2}))}catch(f){}t.exports=function(t,n){if(!n&&!c)return!1;var e=!1;try{var r={};r[o]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(f){}return e}},"1cdc":function(t,n,e){var r=e("342f");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d80":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2266:function(t,n,e){var r=e("825a"),o=e("e95a"),c=e("50c4"),i=e("0366"),u=e("35a1"),f=e("2a62"),a=function(t,n){this.stopped=t,this.result=n};t.exports=function(t,n,e){var s,l,p,d,v,h,b,y=e&&e.that,m=!(!e||!e.AS_ENTRIES),g=!(!e||!e.IS_ITERATOR),x=!(!e||!e.INTERRUPTED),w=i(n,y,1+m+x),j=function(t){return s&&f(s),new a(!0,t)},S=function(t){return m?(r(t),x?w(t[0],t[1],j):w(t[0],t[1])):x?w(t,j):w(t)};if(g)s=t;else{if(l=u(t),"function"!=typeof l)throw TypeError("Target is not iterable");if(o(l)){for(p=0,d=c(t.length);d>p;p++)if(v=S(t[p]),v&&v instanceof a)return v;return new a(!1)}s=l.call(t)}h=s.next;while(!(b=h.call(s)).done){try{v=S(b.value)}catch(O){throw f(s),O}if("object"==typeof v&&v&&v instanceof a)return v}return new a(!1)}},"23cb":function(t,n,e){var r=e("a691"),o=Math.max,c=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):c(e,n)}},"23e7":function(t,n,e){var r=e("da84"),o=e("06cf").f,c=e("9112"),i=e("6eeb"),u=e("ce4e"),f=e("e893"),a=e("94ca");t.exports=function(t,n){var e,s,l,p,d,v,h=t.target,b=t.global,y=t.stat;if(s=b?r:y?r[h]||u(h,{}):(r[h]||{}).prototype,s)for(l in n){if(d=n[l],t.noTargetGet?(v=o(s,l),p=v&&v.value):p=s[l],e=a(b?l:h+(y?".":"#")+l,t.forced),!e&&void 0!==p){if(typeof d===typeof p)continue;f(d,p)}(t.sham||p&&p.sham)&&c(d,"sham",!0),i(s,l,d,t)}}},"241c":function(t,n,e){var r=e("ca84"),o=e("7839"),c=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,c)}},2626:function(t,n,e){"use strict";var r=e("d066"),o=e("9bf2"),c=e("b622"),i=e("83ab"),u=c("species");t.exports=function(t){var n=r(t),e=o.f;i&&n&&!n[u]&&e(n,u,{configurable:!0,get:function(){return this}})}},"2a62":function(t,n,e){var r=e("825a");t.exports=function(t){var n=t["return"];if(void 0!==n)return r(n.call(t)).value}},"2cf4":function(t,n,e){var r,o,c,i,u=e("da84"),f=e("d039"),a=e("0366"),s=e("1be4"),l=e("cc12"),p=e("1cdc"),d=e("605d"),v=u.setImmediate,h=u.clearImmediate,b=u.process,y=u.MessageChannel,m=u.Dispatch,g=0,x={},w="onreadystatechange";try{r=u.location}catch(T){}var j=function(t){if(x.hasOwnProperty(t)){var n=x[t];delete x[t],n()}},S=function(t){return function(){j(t)}},O=function(t){j(t.data)},E=function(t){u.postMessage(String(t),r.protocol+"//"+r.host)};v&&h||(v=function(t){var n=[],e=arguments.length,r=1;while(e>r)n.push(arguments[r++]);return x[++g]=function(){("function"==typeof t?t:Function(t)).apply(void 0,n)},o(g),g},h=function(t){delete x[t]},d?o=function(t){b.nextTick(S(t))}:m&&m.now?o=function(t){m.now(S(t))}:y&&!p?(c=new y,i=c.port2,c.port1.onmessage=O,o=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts&&r&&"file:"!==r.protocol&&!f(E)?(o=E,u.addEventListener("message",O,!1)):o=w in l("script")?function(t){s.appendChild(l("script"))[w]=function(){s.removeChild(this),j(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:v,clear:h}},"2d00":function(t,n,e){var r,o,c=e("da84"),i=e("342f"),u=c.process,f=c.Deno,a=u&&u.versions||f&&f.version,s=a&&a.v8;s?(r=s.split("."),o=r[0]<4?1:r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},"342f":function(t,n,e){var r=e("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,n,e){var r=e("f5df"),o=e("3f8c"),c=e("b622"),i=c("iterator");t.exports=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"3bbe":function(t,n,e){var r=e("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3f8c":function(t,n){t.exports={}},"44ad":function(t,n,e){var r=e("d039"),o=e("c6b6"),c="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?c.call(t,""):Object(t)}:Object},"44de":function(t,n,e){var r=e("da84");t.exports=function(t,n){var e=r.console;e&&e.error&&(1===arguments.length?e.error(t):e.error(t,n))}},"47bc":function(t,n,e){var r=e("970b").default,o=e("9523").default;(function(){var t=function t(){"use strict";var n=this;r(this,t),o(this,"init",(function(){n.executeJobs()})),o(this,"executeJobs",(function(){var t=new XMLHttpRequest;t.open("GET","/index.php?fc=module&module=retailcrm&controller=Jobs",!0),t.timeout=0,t.send(null)}))};(new t).init()})()},4840:function(t,n,e){var r=e("825a"),o=e("1c0b"),c=e("b622"),i=c("species");t.exports=function(t,n){var e,c=r(t).constructor;return void 0===c||void 0==(e=r(c)[i])?n:o(e)}},"485a":function(t,n,e){var r=e("861d");t.exports=function(t,n){var e,o;if("string"===n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if("string"!==n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},4930:function(t,n,e){var r=e("2d00"),o=e("d039");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"4d64":function(t,n,e){var r=e("fc6a"),o=e("50c4"),c=e("23cb"),i=function(t){return function(n,e,i){var u,f=r(n),a=o(f.length),s=c(i,a);if(t&&e!=e){while(a>s)if(u=f[s++],u!=u)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},"50c4":function(t,n,e){var r=e("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,n,e){var r=e("7b0b"),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,n){return o.call(r(t),n)}},5692:function(t,n,e){var r=e("c430"),o=e("c6cd");(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.16.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,n,e){var r=e("d066"),o=e("241c"),c=e("7418"),i=e("825a");t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(i(t)),e=c.f;return e?n.concat(e(t)):n}},"5c6c":function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"605d":function(t,n,e){var r=e("c6b6"),o=e("da84");t.exports="process"==r(o.process)},6069:function(t,n){t.exports="object"==typeof window},"69f3":function(t,n,e){var r,o,c,i=e("7f9a"),u=e("da84"),f=e("861d"),a=e("9112"),s=e("5135"),l=e("c6cd"),p=e("f772"),d=e("d012"),v="Object already initialized",h=u.WeakMap,b=function(t){return c(t)?o(t):r(t,{})},y=function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}};if(i||l.state){var m=l.state||(l.state=new h),g=m.get,x=m.has,w=m.set;r=function(t,n){if(x.call(m,t))throw new TypeError(v);return n.facade=t,w.call(m,t,n),n},o=function(t){return g.call(m,t)||{}},c=function(t){return x.call(m,t)}}else{var j=p("state");d[j]=!0,r=function(t,n){if(s(t,j))throw new TypeError(v);return n.facade=t,a(t,j,n),n},o=function(t){return s(t,j)?t[j]:{}},c=function(t){return s(t,j)}}t.exports={set:r,get:o,has:c,enforce:b,getterFor:y}},"6eeb":function(t,n,e){var r=e("da84"),o=e("9112"),c=e("5135"),i=e("ce4e"),u=e("8925"),f=e("69f3"),a=f.get,s=f.enforce,l=String(String).split("String");(t.exports=function(t,n,e,u){var f,a=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||c(e,"name")||o(e,"name",n),f=s(e),f.source||(f.source=l.join("string"==typeof n?n:""))),t!==r?(a?!d&&t[n]&&(p=!0):delete t[n],p?t[n]=e:o(t,n,e)):p?t[n]=e:i(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||u(this)}))},7418:function(t,n){n.f=Object.getOwnPropertySymbols},7839:function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,n,e){var r=e("1d80");t.exports=function(t){return Object(r(t))}},"7f9a":function(t,n,e){var r=e("da84"),o=e("8925"),c=r.WeakMap;t.exports="function"===typeof c&&/native code/.test(o(c))},"825a":function(t,n,e){var r=e("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,n,e){var r=e("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,n,e){var r,o,c;(function(e,i){o=[],r=i,c="function"===typeof r?r.apply(n,o):r,void 0===c||(t.exports=c)})("undefined"!==typeof self&&self,(function(){function t(){var n=Object.getOwnPropertyDescriptor(document,"currentScript");if(!n&&"currentScript"in document&&document.currentScript)return document.currentScript;if(n&&n.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,r,o,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,u=c.exec(d.stack)||i.exec(d.stack),f=u&&u[1]||!1,a=u&&u[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");f===s&&(e=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=e.replace(r,"$1").trim());for(var p=0;p<l.length;p++){if("interactive"===l[p].readyState)return l[p];if(l[p].src===f)return l[p];if(f===s&&l[p].innerHTML&&l[p].innerHTML.trim()===o)return l[p]}return null}}return t}))},8925:function(t,n,e){var r=e("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"90e3":function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},9112:function(t,n,e){var r=e("83ab"),o=e("9bf2"),c=e("5c6c");t.exports=r?function(t,n,e){return o.f(t,n,c(1,e))}:function(t,n,e){return t[n]=e,t}},"94ca":function(t,n,e){var r=e("d039"),o=/#|\.prototype\./,c=function(t,n){var e=u[i(t)];return e==a||e!=f&&("function"==typeof n?r(n):!!n)},i=c.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=c.data={},f=c.NATIVE="N",a=c.POLYFILL="P";t.exports=c},9523:function(t,n){function e(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}t.exports=e,t.exports["default"]=t.exports,t.exports.__esModule=!0},"970b":function(t,n){function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}t.exports=e,t.exports["default"]=t.exports,t.exports.__esModule=!0},"9bf2":function(t,n,e){var r=e("83ab"),o=e("0cfb"),c=e("825a"),i=e("a04b"),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(c(t),n=i(n),c(e),o)try{return u(t,n,e)}catch(r){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},a04b:function(t,n,e){var r=e("c04e"),o=e("d9b5");t.exports=function(t){var n=r(t,"string");return o(n)?n:String(n)}},a4b4:function(t,n,e){var r=e("342f");t.exports=/web0s(?!.*chrome)/i.test(r)},a691:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},b041:function(t,n,e){"use strict";var r=e("00ee"),o=e("f5df");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b575:function(t,n,e){var r,o,c,i,u,f,a,s,l=e("da84"),p=e("06cf").f,d=e("2cf4").set,v=e("1cdc"),h=e("d4c3"),b=e("a4b4"),y=e("605d"),m=l.MutationObserver||l.WebKitMutationObserver,g=l.document,x=l.process,w=l.Promise,j=p(l,"queueMicrotask"),S=j&&j.value;S||(r=function(){var t,n;y&&(t=x.domain)&&t.exit();while(o){n=o.fn,o=o.next;try{n()}catch(e){throw o?i():c=void 0,e}}c=void 0,t&&t.enter()},v||y||b||!m||!g?!h&&w&&w.resolve?(a=w.resolve(void 0),a.constructor=w,s=a.then,i=function(){s.call(a,r)}):i=y?function(){x.nextTick(r)}:function(){d.call(l,r)}:(u=!0,f=g.createTextNode(""),new m(r).observe(f,{characterData:!0}),i=function(){f.data=u=!u})),t.exports=S||function(t){var n={fn:t,next:void 0};c&&(c.next=n),o||(o=n,i()),c=n}},b622:function(t,n,e){var r=e("da84"),o=e("5692"),c=e("5135"),i=e("90e3"),u=e("4930"),f=e("fdbf"),a=o("wks"),s=r.Symbol,l=f?s:s&&s.withoutSetter||i;t.exports=function(t){return c(a,t)&&(u||"string"==typeof a[t])||(u&&c(s,t)?a[t]=s[t]:a[t]=l("Symbol."+t)),a[t]}},c04e:function(t,n,e){var r=e("861d"),o=e("d9b5"),c=e("485a"),i=e("b622"),u=i("toPrimitive");t.exports=function(t,n){if(!r(t)||o(t))return t;var e,i=t[u];if(void 0!==i){if(void 0===n&&(n="default"),e=i.call(t,n),!r(e)||o(e))return e;throw TypeError("Can't convert object to primitive value")}return void 0===n&&(n="number"),c(t,n)}},c430:function(t,n){t.exports=!1},c6b6:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},c6cd:function(t,n,e){var r=e("da84"),o=e("ce4e"),c="__core-js_shared__",i=r[c]||o(c,{});t.exports=i},c8ba:function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"===typeof window&&(e=window)}t.exports=e},ca84:function(t,n,e){var r=e("5135"),o=e("fc6a"),c=e("4d64").indexOf,i=e("d012");t.exports=function(t,n){var e,u=o(t),f=0,a=[];for(e in u)!r(i,e)&&r(u,e)&&a.push(e);while(n.length>f)r(u,e=n[f++])&&(~c(a,e)||a.push(e));return a}},cc12:function(t,n,e){var r=e("da84"),o=e("861d"),c=r.document,i=o(c)&&o(c.createElement);t.exports=function(t){return i?c.createElement(t):{}}},cdf9:function(t,n,e){var r=e("825a"),o=e("861d"),c=e("f069");t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=c.f(t),i=e.resolve;return i(n),e.promise}},ce4e:function(t,n,e){var r=e("da84");t.exports=function(t,n){try{Object.defineProperty(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},d012:function(t,n){t.exports={}},d039:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},d066:function(t,n,e){var r=e("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?o(r[t]):r[t]&&r[t][n]}},d1e7:function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);n.f=c?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},d2bb:function(t,n,e){var r=e("825a"),o=e("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(e,[]),n=e instanceof Array}catch(c){}return function(e,c){return r(e),o(c),n?t.call(e,c):e.__proto__=c,e}}():void 0)},d3b7:function(t,n,e){var r=e("00ee"),o=e("6eeb"),c=e("b041");r||o(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(t,n,e){var r=e("9bf2").f,o=e("5135"),c=e("b622"),i=c("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},d4c3:function(t,n,e){var r=e("342f"),o=e("da84");t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},d9af:function(t,n,e){var r=e("970b").default,o=e("9523").default;e("d3b7"),e("e6cf"),function(){var t=function t(){"use strict";var e=this;r(this,t),o(this,"init",(function(){e.getCollectorConfig().then((function(t){e.initCollector(),e.has(t,"customerId")?e.executeCollector(t.siteKey,{customerId:t.customerId}):e.executeCollector(t.siteKey,{})})).catch((function(t){return e.isNil(t)?null:console.error(t)}))})),o(this,"getCollectorConfig",(function(){return new Promise((function(t,n){fetch("/index.php?fc=module&module=retailcrm&controller=DaemonCollector").then((function(t){return t.json()})).then((function(r){e.has(r,"siteKey")&&r.siteKey.length>0?t(r):n(new Error("Failed to init collector: siteKey not found"))})).catch((function(t){n(new Error("Failed to init collector: ".concat(t)))}))}))})),o(this,"initCollector",(function(){(function(t,n,e,r,o,c,i){t.retailCRMObject=o,t[o]=t[o]||function(){(t[o].q=t[o].q||[]).push(arguments)},t[o].l=1*new Date,i=n.getElementsByTagName(e)[0],c=n.createElement(e),c.async=!0,c.src=r,i.parentNode.insertBefore(c,i)})(window,document,"script","https://collector.retailcrm.pro/w.js","_rc")})),o(this,"executeCollector",(function(t,e){n("create",t,e),n("send","pageView")})),o(this,"isNil",(function(t){return null===t})),o(this,"has",(function(t,n){return null!==t&&hasOwnProperty.call(t,n)}))};function n(){return null}(new t).init()}()},d9b5:function(t,n,e){var r=e("d066"),o=e("fdbf");t.exports=o?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return"function"==typeof n&&Object(t)instanceof n}},da84:function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e("c8ba"))},dfc1:function(t,n,e){var r=e("970b").default,o=e("9523").default;e("d3b7"),e("e6cf"),function(){var t=function t(){"use strict";var e=this;r(this,t),o(this,"init",(function(){e.getRcct().then((function(t){window._rcct=t,e.initConsultant()})).catch((function(t){return e.isNil(t)?null:console.error(t)}))})),o(this,"getRcct",(function(){return new Promise((function(t,n){fetch("/index.php?fc=module&module=retailcrm&controller=Consultant").then((function(t){return t.json()})).then((function(r){e.has(r,"rcct")&&r.rcct.length>0?t(r.rcct):n(new Error("Failed to init consultant: rcct not found"))})).catch((function(t){n(new Error("Failed to init consultant: ".concat(t)))}))}))})),o(this,"initConsultant",(function(){(function(t){var n=document.getElementsByTagName("head")[0],e=document.createElement("script");e.type="text/javascript",e.src="//c.retailcrm.tech/widget/loader.js",n.appendChild(e)})(document)})),o(this,"executeCollector",(function(t,e){n("create",t,e),n("send","pageView")})),o(this,"isNil",(function(t){return null===t})),o(this,"has",(function(t,n){return null!==t&&hasOwnProperty.call(t,n)}))};function n(){return null}(new t).init()}()},e27b:function(t,n,e){e("d3b7"),e("e6cf"),function(){(function(t,n){var e=function(n){var e=t.getElementsByTagName("head")[0],r=t.createElement("script");r.type="text/javascript",r.src=n,e.appendChild(r)};"undefined"===typeof Promise&&e("//cdn.jsdelivr.net/npm/es6-promise@4.2.8/dist/es6-promise.auto.min.js"),"undefined"===typeof fetch&&e("//cdn.jsdelivr.net/npm/whatwg-fetch@3.0.0/dist/fetch.umd.js")})(document)}()},e2cc:function(t,n,e){var r=e("6eeb");t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},e667:function(t,n){t.exports=function(t){try{return{error:!1,value:t()}}catch(n){return{error:!0,value:n}}}},e6cf:function(t,n,e){"use strict";var r,o,c,i,u=e("23e7"),f=e("c430"),a=e("da84"),s=e("d066"),l=e("fea9"),p=e("6eeb"),d=e("e2cc"),v=e("d2bb"),h=e("d44e"),b=e("2626"),y=e("861d"),m=e("1c0b"),g=e("19aa"),x=e("8925"),w=e("2266"),j=e("1c7e"),S=e("4840"),O=e("2cf4").set,E=e("b575"),T=e("cdf9"),P=e("44de"),_=e("f069"),M=e("e667"),C=e("69f3"),N=e("94ca"),I=e("b622"),k=e("6069"),D=e("605d"),R=e("2d00"),F=I("species"),A="Promise",L=C.get,K=C.set,z=C.getterFor(A),B=l&&l.prototype,q=l,H=B,$=a.TypeError,G=a.document,J=a.process,U=_.f,V=U,W=!!(G&&G.createEvent&&a.dispatchEvent),X="function"==typeof PromiseRejectionEvent,Y="unhandledrejection",Q="rejectionhandled",Z=0,tt=1,nt=2,et=1,rt=2,ot=!1,ct=N(A,(function(){var t=x(q),n=t!==String(q);if(!n&&66===R)return!0;if(f&&!H["finally"])return!0;if(R>=51&&/native code/.test(t))return!1;var e=new q((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))},o=e.constructor={};return o[F]=r,ot=e.then((function(){}))instanceof r,!ot||!n&&k&&!X})),it=ct||!j((function(t){q.all(t)["catch"]((function(){}))})),ut=function(t){var n;return!(!y(t)||"function"!=typeof(n=t.then))&&n},ft=function(t,n){if(!t.notified){t.notified=!0;var e=t.reactions;E((function(){var r=t.value,o=t.state==tt,c=0;while(e.length>c){var i,u,f,a=e[c++],s=o?a.ok:a.fail,l=a.resolve,p=a.reject,d=a.domain;try{s?(o||(t.rejection===rt&&pt(t),t.rejection=et),!0===s?i=r:(d&&d.enter(),i=s(r),d&&(d.exit(),f=!0)),i===a.promise?p($("Promise-chain cycle")):(u=ut(i))?u.call(i,l,p):l(i)):p(r)}catch(v){d&&!f&&d.exit(),p(v)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&st(t)}))}},at=function(t,n,e){var r,o;W?(r=G.createEvent("Event"),r.promise=n,r.reason=e,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:n,reason:e},!X&&(o=a["on"+t])?o(r):t===Y&&P("Unhandled promise rejection",e)},st=function(t){O.call(a,(function(){var n,e=t.facade,r=t.value,o=lt(t);if(o&&(n=M((function(){D?J.emit("unhandledRejection",r,e):at(Y,e,r)})),t.rejection=D||lt(t)?rt:et,n.error))throw n.value}))},lt=function(t){return t.rejection!==et&&!t.parent},pt=function(t){O.call(a,(function(){var n=t.facade;D?J.emit("rejectionHandled",n):at(Q,n,t.value)}))},dt=function(t,n,e){return function(r){t(n,r,e)}},vt=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=nt,ft(t,!0))},ht=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw $("Promise can't be resolved itself");var r=ut(n);r?E((function(){var e={done:!1};try{r.call(n,dt(ht,e,t),dt(vt,e,t))}catch(o){vt(e,o,t)}})):(t.value=n,t.state=tt,ft(t,!1))}catch(o){vt({done:!1},o,t)}}};if(ct&&(q=function(t){g(this,q,A),m(t),r.call(this);var n=L(this);try{t(dt(ht,n),dt(vt,n))}catch(e){vt(n,e)}},H=q.prototype,r=function(t){K(this,{type:A,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=d(H,{then:function(t,n){var e=z(this),r=U(S(this,q));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=D?J.domain:void 0,e.parent=!0,e.reactions.push(r),e.state!=Z&&ft(e,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,n=L(t);this.promise=t,this.resolve=dt(ht,n),this.reject=dt(vt,n)},_.f=U=function(t){return t===q||t===c?new o(t):V(t)},!f&&"function"==typeof l&&B!==Object.prototype)){i=B.then,ot||(p(B,"then",(function(t,n){var e=this;return new q((function(t,n){i.call(e,t,n)})).then(t,n)}),{unsafe:!0}),p(B,"catch",H["catch"],{unsafe:!0}));try{delete B.constructor}catch(bt){}v&&v(B,H)}u({global:!0,wrap:!0,forced:ct},{Promise:q}),h(q,A,!1,!0),b(A),c=s(A),u({target:A,stat:!0,forced:ct},{reject:function(t){var n=U(this);return n.reject.call(void 0,t),n.promise}}),u({target:A,stat:!0,forced:f||ct},{resolve:function(t){return T(f&&this===c?q:this,t)}}),u({target:A,stat:!0,forced:it},{all:function(t){var n=this,e=U(n),r=e.resolve,o=e.reject,c=M((function(){var e=m(n.resolve),c=[],i=0,u=1;w(t,(function(t){var f=i++,a=!1;c.push(void 0),u++,e.call(n,t).then((function(t){a||(a=!0,c[f]=t,--u||r(c))}),o)})),--u||r(c)}));return c.error&&o(c.value),e.promise},race:function(t){var n=this,e=U(n),r=e.reject,o=M((function(){var o=m(n.resolve);w(t,(function(t){o.call(n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}})},e893:function(t,n,e){var r=e("5135"),o=e("56ef"),c=e("06cf"),i=e("9bf2");t.exports=function(t,n){for(var e=o(n),u=i.f,f=c.f,a=0;a<e.length;a++){var s=e[a];r(t,s)||u(t,s,f(n,s))}}},e95a:function(t,n,e){var r=e("b622"),o=e("3f8c"),c=r("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||i[c]===t)}},f069:function(t,n,e){"use strict";var r=e("1c0b"),o=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r})),this.resolve=r(n),this.reject=r(e)};t.exports.f=function(t){return new o(t)}},f5df:function(t,n,e){var r=e("00ee"),o=e("c6b6"),c=e("b622"),i=c("toStringTag"),u="Arguments"==o(function(){return arguments}()),f=function(t,n){try{return t[n]}catch(e){}};t.exports=r?o:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=f(n=Object(t),i))?e:u?o(n):"Object"==(r=o(n))&&"function"==typeof n.callee?"Arguments":r}},f772:function(t,n,e){var r=e("5692"),o=e("90e3"),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},fae3:function(t,n,e){"use strict";if(e.r(n),"undefined"!==typeof window){var r=window.document.currentScript,o=e("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(e.p=c[1])}e("e27b"),e("d9af"),e("dfc1"),e("47bc")},fc6a:function(t,n,e){var r=e("44ad"),o=e("1d80");t.exports=function(t){return r(o(t))}},fdbf:function(t,n,e){var r=e("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,n,e){var r=e("da84");t.exports=r.Promise}})}));