/*! For license information please see invoker.js.LICENSE.txt */ !function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/smart-clock/",r(r.s=24)}([function(t,e,r){"use strict";function n(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}r.d(e,"a",function(){return n})},function(t,e,r){"use strict";r.d(e,"a",function(){return o});var n=0;function o(t){return"__private_"+n+++"_"+t}},function(t,e,r){"use strict";t.exports=TypeError},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},function(t,e,r){(function(e){var n="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"===typeof o.get?o.get:null,a=n&&Map.prototype.forEach,c="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&l&&"function"===typeof l.get?l.get:null,s=c&&Set.prototype.forEach,p="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,g=Function.prototype.toString,b=String.prototype.match,v=String.prototype.slice,m=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,j=RegExp.prototype.test,A=Array.prototype.concat,S=Array.prototype.join,E=Array.prototype.slice,x=Math.floor,P="function"===typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,_="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"===typeof Symbol&&"object"===typeof Symbol.iterator,T="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function D(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||j.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var n=t<0?-x(-t):x(t);if(n!==t){var o=String(n),i=v.call(e,o.length+1);return m.call(o,r,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(e,r,"$&_")}var L=r(28),F=L.custom,N=H(F)?F:null,C={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(t,e,r){var n=r.quoteStyle||e,o=C[n];return o+t+o}function W(t){return m.call(String(t),/"/g,""")}function K(t){return!T||!("object"===typeof t&&(T in t||"undefined"!==typeof t[T]))}function G(t){return"[object Array]"===V(t)&&K(t)}function $(t){return"[object RegExp]"===V(t)&&K(t)}function H(t){if(I)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!_)return!1;try{return _.call(t),!0}catch(e){}return!1}t.exports=function t(r,n,o,c){var l=n||{};if(z(l,"quoteStyle")&&!z(C,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!z(l,"customInspect")||l.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof r)return"undefined";if(null===r)return"null";if("boolean"===typeof r)return r?"true":"false";if("string"===typeof r)return J(r,l);if("number"===typeof r){if(0===r)return 1/0/r>0?"0":"-0";var j=String(r);return w?D(r,j):j}if("bigint"===typeof r){var x=String(r)+"n";return w?D(r,x):x}var k="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=k&&k>0&&"object"===typeof r)return G(r)?"[Array]":"[Object]";var F=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;r=S.call(Array(t.indent+1)," ")}return{base:r,prev:S.call(Array(e+1),r)}}(l,o);if("undefined"===typeof c)c=[];else if(Q(c,r)>=0)return"[Circular]";function U(e,r,n){if(r&&(c=E.call(c)).push(r),n){var i={depth:l.depth};return z(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),t(e,i,o+1,c)}return t(e,l,o+1,c)}if("function"===typeof r&&!$(r)){var q=function(t){if(t.name)return t.name;var e=b.call(g.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(r),X=rt(r,U);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(X.length>0?" { "+S.call(X,", ")+" }":"")}if(H(r)){var nt=I?m.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(r);return"object"!==typeof r||I?nt:Y(nt)}if(function(t){if(!t||"object"!==typeof t)return!1;if("undefined"!==typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"===typeof t.nodeName&&"function"===typeof t.getAttribute}(r)){for(var ot="<"+O.call(String(r.nodeName)),it=r.attributes||[],at=0;at"}if(G(r)){if(0===r.length)return"[]";var ct=rt(r,U);return F&&!function(t){for(var e=0;e=0)return!1;return!0}(ct)?"["+et(ct,F)+"]":"[ "+S.call(ct,", ")+" ]"}if(function(t){return"[object Error]"===V(t)&&K(t)}(r)){var lt=rt(r,U);return"cause"in Error.prototype||!("cause"in r)||R.call(r,"cause")?0===lt.length?"["+String(r)+"]":"{ ["+String(r)+"] "+S.call(lt,", ")+" }":"{ ["+String(r)+"] "+S.call(A.call("[cause]: "+U(r.cause),lt),", ")+" }"}if("object"===typeof r&&h){if(N&&"function"===typeof r[N]&&L)return L(r,{depth:k-o});if("symbol"!==h&&"function"===typeof r.inspect)return r.inspect()}if(function(t){if(!i||!t||"object"!==typeof t)return!1;try{i.call(t);try{u.call(t)}catch(ot){return!0}return t instanceof Map}catch(e){}return!1}(r)){var ut=[];return a&&a.call(r,function(t,e){ut.push(U(e,r,!0)+" => "+U(t,r))}),tt("Map",i.call(r),ut,F)}if(function(t){if(!u||!t||"object"!==typeof t)return!1;try{u.call(t);try{i.call(t)}catch(e){return!0}return t instanceof Set}catch(r){}return!1}(r)){var st=[];return s&&s.call(r,function(t){st.push(U(t,r))}),tt("Set",u.call(r),st,F)}if(function(t){if(!p||!t||"object"!==typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(ot){return!0}return t instanceof WeakMap}catch(e){}return!1}(r))return Z("WeakMap");if(function(t){if(!f||!t||"object"!==typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(ot){return!0}return t instanceof WeakSet}catch(e){}return!1}(r))return Z("WeakSet");if(function(t){if(!y||!t||"object"!==typeof t)return!1;try{return y.call(t),!0}catch(e){}return!1}(r))return Z("WeakRef");if(function(t){return"[object Number]"===V(t)&&K(t)}(r))return Y(U(Number(r)));if(function(t){if(!t||"object"!==typeof t||!P)return!1;try{return P.call(t),!0}catch(e){}return!1}(r))return Y(U(P.call(r)));if(function(t){return"[object Boolean]"===V(t)&&K(t)}(r))return Y(d.call(r));if(function(t){return"[object String]"===V(t)&&K(t)}(r))return Y(U(String(r)));if("undefined"!==typeof window&&r===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&r===globalThis||"undefined"!==typeof e&&r===e)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===V(t)&&K(t)}(r)&&!$(r)){var pt=rt(r,U),ft=M?M(r)===Object.prototype:r instanceof Object||r.constructor===Object,yt=r instanceof Object?"":"null prototype",dt=!ft&&T&&Object(r)===r&&T in r?v.call(V(r),8,-1):yt?"Object":"",ht=(ft||"function"!==typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(dt||yt?"["+S.call(A.call([],dt||[],yt||[]),": ")+"] ":"");return 0===pt.length?ht+"{}":F?ht+"{"+et(pt,F)+"}":ht+"{ "+S.call(pt,", ")+" }"}return String(r)};var q=Object.prototype.hasOwnProperty||function(t){return t in this};function z(t,e){return q.call(t,e)}function V(t){return h.call(t)}function Q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(v.call(t,0,e.maxStringLength),e)+n}var o=U[e.quoteStyle||"single"];return o.lastIndex=0,B(m.call(m.call(t,o,"\\$1"),/[\x00-\x1f]/g,X),"single",e)}function X(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Y(t){return"Object("+t+")"}function Z(t){return t+" { ? }"}function tt(t,e,r,n){return t+" ("+e+") {"+(n?et(r,n):S.call(r,", "))+"}"}function et(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+S.call(t,","+r)+"\n"+e.prev}function rt(t,e){var r=G(t),n=[];if(r){n.length=t.length;for(var o=0;o1&&"boolean"!==typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=K(t,0,1),r=K(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return W(t,$,function(t,e,r,o){n[n.length]=r?W(o,H,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",o=q("%"+n+"%",e),i=o.name,a=o.value,c=!1,l=o.alias;l&&(n=l[0],B(r,U([0,1],l)));for(var p=1,f=!0;p=r.length){var g=O(a,y);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[y]}else f=C(a,y),a=a[y];f&&!c&&(M[i]=a)}}return a}},function(t,e,r){"use strict";t.exports=Function.prototype.call},function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){"use strict";var n=r(26),o=r(55),i=r(8);t.exports={formats:i,parse:o,stringify:n}},function(t,e,r){"use strict";var n=r(6),o=r(17),i=r(4),a=r(2),c=n("%Map%",!0),l=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),s=o("Map.prototype.has",!0),p=o("Map.prototype.delete",!0),f=o("Map.prototype.size",!0);t.exports=!!c&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=p(t,e);return 0===f(t)&&(t=void 0),r}return!1},get:function(e){if(t)return l(t,e)},has:function(e){return!!t&&s(t,e)},set:function(e,r){t||(t=new c),u(t,e,r)}};return e}},function(t,e,r){"use strict";t.exports=Object},function(t,e,r){"use strict";var n=r(44);if(n)try{n([],"length")}catch(o){n=null}t.exports=n},function(t,e,r){"use strict";t.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},function(t,e,r){"use strict";var n=r(11);t.exports=n.getPrototypeOf||null},function(t,e,r){"use strict";var n=r(5),o=r(2),i=r(7),a=r(51);t.exports=function(t){if(t.length<1||"function"!==typeof t[0])throw new o("a function is required");return a(n,i,t)}},function(t,e,r){"use strict";t.exports=Function.prototype.apply},function(t,e,r){"use strict";var n=r(6),o=r(15),i=o([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"===typeof r&&i(t,".prototype.")>-1?o([r]):r}},function(t,e,r){"use strict";var n=r(8),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o=l?c.slice(s,s+l):c,f=[],y=0;y=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?f[f.length]=p.charAt(y):d<128?f[f.length]=a[d]:d<2048?f[f.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?f[f.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&p.charCodeAt(y)),f[f.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}u+=f.join("")}return u},isBuffer:function(t){return!(!t||"object"!==typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};super({apikey:n}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:void 0}),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object(o.a)(this,p)[p]=e,Object(o.a)(this,f)[f]=r,Object(o.a)(this,d)[d]=i,Object(o.a)(this,y)[y]=a,Object(o.a)(this,g)[g]=c,Object(o.a)(this,b)[b]=l,Object(o.a)(this,v)[v]=u,Object(o.a)(this,h)[h]=m,this.log=function(){for(var t=arguments.length,e=new Array(t),r=0;rthis.infos())}get CALLBACK(){return"rlxSmrtClck"}get child(){if(!Object(o.a)(this,s)[s]){var t,e,r,i,a,c,l,u,p,f,y,d,h,g,b,v,m,w,O,j,A,S,E,x,P,k,_,I,T,R,M,D,L;if(Object(o.a)(this,s)[s]=null===(t=n)||void 0===t||null===(e=t.document)||void 0===e||null===(r=e.createElement)||void 0===r?void 0:r.call(e,"iframe"),null===(i=Object(o.a)(this,s)[s])||void 0===i||null===(a=i.setAttribute)||void 0===a||a.call(i,"frameborder","0"),null===(c=Object(o.a)(this,s)[s])||void 0===c||null===(l=c.setAttribute)||void 0===l||l.call(c,"scrolling","no"),null===(u=Object(o.a)(this,s)[s])||void 0===u||null===(p=u.setAttribute)||void 0===p||p.call(u,"horizontalscrolling","no"),null===(f=Object(o.a)(this,s)[s])||void 0===f||null===(y=f.setAttribute)||void 0===y||y.call(f,"verticalscrolling","no"),null===(d=Object(o.a)(this,s)[s])||void 0===d||null===(h=d.setAttribute)||void 0===h||h.call(d,"src",this.src),null===(g=Object(o.a)(this,s)[s])||void 0===g||null===(b=g.setAttribute)||void 0===b||b.call(g,"title","POS Banner"),"richleft"===this.variation)null===(v=Object(o.a)(this,s)[s])||void 0===v||null===(m=v.setAttribute)||void 0===m||m.call(v,"width","100%"),null===(w=Object(o.a)(this,s)[s])||void 0===w||null===(O=w.setAttribute)||void 0===O||O.call(w,"height","100%"),null===(j=Object(o.a)(this,s)[s])||void 0===j||null===(A=j.setAttribute)||void 0===A||A.call(j,"style","min-height:460px; background: white; max-height:460px;");if("richright"===this.variation)null===(S=Object(o.a)(this,s)[s])||void 0===S||null===(E=S.setAttribute)||void 0===E||E.call(S,"width","100%"),null===(x=Object(o.a)(this,s)[s])||void 0===x||null===(P=x.setAttribute)||void 0===P||P.call(x,"height","100%"),null===(k=Object(o.a)(this,s)[s])||void 0===k||null===(_=k.setAttribute)||void 0===_||_.call(k,"style","min-height:460px; background: white; max-height:460px;");else null===(I=Object(o.a)(this,s)[s])||void 0===I||null===(T=I.setAttribute)||void 0===T||T.call(I,"width","100%"),null===(R=Object(o.a)(this,s)[s])||void 0===R||null===(M=R.setAttribute)||void 0===M||M.call(R,"height","100%"),null===(D=Object(o.a)(this,s)[s])||void 0===D||null===(L=D.setAttribute)||void 0===L||L.call(D,"style","min-height:460px; background: white; max-height:460px;")}return Object(o.a)(this,s)[s]}get query(){return l.a.stringify({apikey:this.apikey,background:this.background,theme:this.theme,watch:this.watch})}get src(){var e;const r=null!==(e=window[Object(o.a)(m,u)[u]])&&void 0!==e?e:"//clock.rolex.com",n=this.lang===t.env.DEFAULT_LANG?"":"/".concat(this.lang);return"".concat(r,"/smart-clock").concat(n,"/").concat(this.variation,"?").concat(this.query)}get target(){var t,e,r;return null!==(t=Object(o.a)(this,p)[p])&&void 0!==t?t:null===(e=document)||void 0===e||null===(r=e.createElement)||void 0===r?void 0:r.call(e,"div")}get method(){var t;return null!==(t=Object(o.a)(this,f)[f])&&void 0!==t?t:m.APPEND}get background(){var t;return null!==(t=Object(o.a)(this,y)[y])&&void 0!==t?t:{texture:!1}}get lang(){var e;return null!==(e=Object(o.a)(this,d)[d])&&void 0!==e?e:t.env.DEFAULT_LANG}get logolink(){try{const t=new URL(Object(o.a)(this,h)[h]);return Object(o.a)(this,h)[h]+(t.search?"&":"?")+"cmpid=smart_clock"}catch(t){return""}}get theme(){var t;return null!==(t=Object(o.a)(this,g)[g])&&void 0!==t?t:"light"}get variation(){var t;return null!==(t=Object(o.a)(this,b)[b])&&void 0!==t?t:"default"}get watch(){var t;return null!==(t=Object(o.a)(this,v)[v])&&void 0!==t?t:{color:"gold"}}async show(){switch(this.log("show()"),this.method){case m.REPLACE:this.target.parentNode.replaceChild(this.child,this.target);break;case m.APPEND:default:this.target.appendChild(this.child)}return this.handshake()}infos(){var t,e;const{cmpid:r}=null!==(t=l.a.parse((null!==(e=n.location.search)&&void 0!==e?e:"").slice(1)))&&void 0!==t?t:null;this.send({location:n.location,logolink:this.logolink,cmpid:r,type:"infos"})}}m.APPEND=0,m.REPLACE=1,Object.defineProperty(m,u,{writable:!0,value:Symbol.for("e9a23756-9241-4ca6-a04f-a57d382b5f0b")})}).call(this,r(25),r(3))},function(t,e,r){"use strict";r.d(e,"a",function(){return c});var n=r(0),o=r(1),i=r(21),a=Object(o.a)("instance");class c extends i.a{constructor(){if(Object(n.a)(c,a)[a])return Object(n.a)(c,a)[a];super(...arguments),Object(n.a)(c,a)[a]=this}get parent(){return!0}}Object.defineProperty(c,a,{writable:!0,value:void 0})},function(t,e,r){"use strict";(function(t){r.d(e,"a",function(){return y});var n=r(23),o=r(0),i=r(1),a=r(22);const c=["type"];var l=Object(i.a)("apikey"),u=Object(i.a)("debug"),s=Object(i.a)("log"),p=Object(i.a)("port"),f=Object(i.a)("standalone");class y extends a.a{constructor(t){let{apikey:e}=t;super(),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object(o.a)(this,u)[u]=!0,Object(o.a)(this,l)[l]=e,this.handleMessage=this.handleMessage.bind(this)}get apikey(){var t;return null!==(t=Object(o.a)(this,l)[l])&&void 0!==t?t:""}get debug(){return Object(o.a)(this,u)[u]}get log(){var t;return null!==(t=this.debug&&Object(o.a)(this,s)[s])&&void 0!==t?t:Function.prototype}set log(t){"function"===typeof t&&(Object(o.a)(this,s)[s]=t)}get port(){return Object(o.a)(this,p)[p]}get standalone(){var t;return null!==(t=Object(o.a)(this,f)[f])&&void 0!==t&&t}handleMessage(t){let{type:e,data:r}=t;if("message"===e)switch(r){case"ping":this.pong();break;case"pong":this.dispatchEvent(new Event("pong"));break;default:try{const t=JSON.parse(r),{type:e}=t,o=Object(n.a)(t,c);if(e){const t=new Event(e);Object.assign(t,o),this.dispatchEvent(t)}}catch(o){}}}async handshake(){this.log("handshake()"),await Promise.all([new Promise(e=>{if(!this.parent)return e();this.log("parent awaits port");const r=document.createElement("a");r.setAttribute("href",this.child.src);const n=o=>{let{data:i,origin:a,ports:[c]}=o;if(i!==this.CALLBACK||a!==r.origin||!c)return t.addEventListener("message",n,{once:!0});c.start(),c.postMessage(i),e(c)};t.addEventListener("message",n,{once:!0})}),new Promise(e=>{if(this.parent)return e();this.log("child sends port");const r=new MessageChannel;if(r.port1.start(),t.parent===t)return Object(o.a)(this,f)[f]=!0,e(r.port1);r.port1.addEventListener("message",()=>{Object(o.a)(this,f)[f]=!1,e(r.port1)},{once:!0}),t.parent.postMessage(this.CALLBACK,"*",[r.port2])})]).then(t=>{let[e,r]=t;Object(o.a)(this,p)[p]=null!==e&&void 0!==e?e:r,this.port.addEventListener("message",this.handleMessage),this.dispatchEvent(new Event("portestablished")),this.log("port established",this.port)})}keepAlive(){const t=setTimeout(()=>{this.removeEventListener("pong",e,{once:!0}),this.cleanup()},3e3),e=()=>{clearTimeout(t),setTimeout(()=>this.keepAlive(),3e3)};this.addEventListener("pong",e,{once:!0}),this.ping()}ping(){var t,e;null===this||void 0===this||null===(t=this.port)||void 0===t||null===(e=t.postMessage)||void 0===e||e.call(t,"ping")}pong(){var t,e;null===this||void 0===this||null===(t=this.port)||void 0===t||null===(e=t.postMessage)||void 0===e||e.call(t,"pong")}cleanup(){var t;this.log("destroy"),this.dispatchEvent(new Event("cleanup")),null===this||void 0===this||null===(t=this.port)||void 0===t||t.removeEventListener("message",this.handleMessage),Object(o.a)(this,p)[p]=null}async send(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await new Promise(t=>{if(this.port)return t();this.addEventListener("portestablished",t,{once:!0})}),this.port.postMessage(JSON.stringify(t))}}}).call(this,r(3))},function(t,e,r){"use strict";var n={};try{n.EventTarget=(new EventTarget).constructor}catch(EventTarget){!function(t,e){var r=t.create,o=t.defineProperty,i=a.prototype;function a(){e.set(this,r(null))}function c(t,e,r){o(t,e,{configurable:!0,writable:!0,value:r})}function l(t){var e=t.options;return e&&e.once&&t.target.removeEventListener(this.type,t.listener),"function"===typeof t.listener?t.listener.call(t.target,this):t.listener.handleEvent(this),this._stopImmediatePropagationFlag}c(i,"addEventListener",function(t,r,n){for(var o=e.get(this),i=o[t]||(o[t]=[]),a=0,c=i.length;a1)for(var r=1;r0?x.join(",")||null:void 0}];else if(l(g))T=g;else{var M=Object.keys(x);T=b?M.sort(b):M}var D=f?String(r).replace(/\./g,"%2E"):String(r),L=a&&l(x)&&1===x.length?D+"[]":D;if(c&&l(x)&&0===x.length)return L+"[]";for(var F=0;F0?O+w:""}},function(t,e,r){"use strict";var n=r(2),o=r(4),i=r(29),a=r(10),c=r(54)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=c()),t.set(e,r)}};return e}},function(t,e){},function(t,e,r){"use strict";var n=r(4),o=r(2),i=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return i(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=i(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},function(t,e,r){"use strict";t.exports=Error},function(t,e,r){"use strict";t.exports=EvalError},function(t,e,r){"use strict";t.exports=RangeError},function(t,e,r){"use strict";t.exports=ReferenceError},function(t,e,r){"use strict";t.exports=SyntaxError},function(t,e,r){"use strict";t.exports=URIError},function(t,e,r){"use strict";t.exports=Math.abs},function(t,e,r){"use strict";t.exports=Math.floor},function(t,e,r){"use strict";t.exports=Math.max},function(t,e,r){"use strict";t.exports=Math.min},function(t,e,r){"use strict";t.exports=Math.pow},function(t,e,r){"use strict";t.exports=Math.round},function(t,e,r){"use strict";var n=r(43);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},function(t,e,r){"use strict";t.exports=Number.isNaN||function(t){return t!==t}},function(t,e,r){"use strict";t.exports=Object.getOwnPropertyDescriptor},function(t,e,r){"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(o){n=!1}t.exports=n},function(t,e,r){"use strict";var n="undefined"!==typeof Symbol&&Symbol,o=r(47);t.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,e,r){"use strict";var n=r(13),o=r(14),i=r(49);t.exports=n?function(t){return n(t)}:o?function(t){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("getProto: not an object");return o(t)}:i?function(t){return i(t)}:null},function(t,e,r){"use strict";var n,o=r(15),i=r(12);try{n=[].__proto__===Array.prototype}catch(u){if(!u||"object"!==typeof u||!("code"in u)||"ERR_PROTO_ACCESS"!==u.code)throw u}var a=!!n&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;t.exports=a&&"function"===typeof a.get?o([a.get]):"function"===typeof l&&function(t){return l(null==t?t:c(t))}},function(t,e,r){"use strict";var n=Object.prototype.toString,o=Math.max,i=function(t,e){for(var r=[],n=0;n-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},u=function(t,e,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,c=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(a),s=u?a.slice(0,u.index):a,p=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;p.push(s)}for(var f=0;r.depth>0&&null!==(u=c.exec(a))&&f0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var c=o?e:l(e,r,i),u=t.length-1;u>=0;--u){var s,p=t[u];if("[]"===p&&r.parseArrays)s=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:n.combine([],c);else{s=r.plainObjects?{__proto__:null}:{};var f="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(y,10);r.parseArrays||""!==y?!isNaN(d)&&p!==y&&String(d)===y&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(s=[])[d]=c:"__proto__"!==y&&(s[y]=c):s={0:c}}c=s}return c}(p,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if("undefined"!==typeof t.allowEmptyArrays&&"boolean"!==typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof t.decodeDotInKeys&&"boolean"!==typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&"undefined"!==typeof t.decoder&&"function"!==typeof t.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if("undefined"!==typeof t.throwOnLimitExceeded&&"boolean"!==typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e="undefined"===typeof t.charset?a.charset:t.charset,r="undefined"===typeof t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"===typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"===typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"===typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof t.decoder?t.decoder:a.decoder,delimiter:"string"===typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"===typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"===typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"===typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null===t||"undefined"===typeof t)return r.plainObjects?{__proto__:null}:{};for(var s="string"===typeof t?function(t,e){var r={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=e.parameterLimit===1/0?void 0:e.parameterLimit,p=u.split(e.delimiter,e.throwOnLimitExceeded?s+1:s);if(e.throwOnLimitExceeded&&p.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(1===s?"":"s")+" allowed.");var f,y=-1,d=e.charset;if(e.charsetSentinel)for(f=0;f-1&&(g=i(g)?[g]:g);var w=o.call(r,h);w&&"combine"===e.duplicates?r[h]=n.combine(r[h],g):w&&"last"!==e.duplicates||(r[h]=g)}return r}(t,r):t,p=r.plainObjects?{__proto__:null}:{},f=Object.keys(s),y=0;y