diff --git a/data/a.htm b/data/a.htm deleted file mode 100644 index 9a84cda..0000000 --- a/data/a.htm +++ /dev/null @@ -1,192 +0,0 @@ - - \ No newline at end of file diff --git a/data/client.js b/data/client.js deleted file mode 100644 index fdf9350..0000000 --- a/data/client.js +++ /dev/null @@ -1,23 +0,0 @@ -/*! Form Renderer v1.2.18 | TrustArc */ -!function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(p);var h=p.exports(),m=h;try{regeneratorRuntime=h}catch(e){"object"===("undefined"==typeof globalThis?"undefined":s(globalThis))?globalThis.regeneratorRuntime=h:Function("r","regeneratorRuntime = r")(h)}var y={exports:{}},v={},b=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;function _(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var x=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=_(e),i=1;iQ.length&&Q.push(e)}function J(e,t,n,r){var o=s(e);"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case S:case E:i=!0}}if(i)return n(r,e,""===t?"."+te(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;ad)&&(U=(z=z.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var st=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&<(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(it))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(it,"active"),r.setAttribute("data-styled-version","5.3.0");var a="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},xt=function(){function e(e){var t=this.element=_t(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")})),r+=""+u+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),Ct=/(a)(d)/gi,Pt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Dt(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Pt(t%52)+n;return(Pt(t%52)+n).replace(Ct,"$1-$2")}var jt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Rt=function(e){return jt(5381,e)};function It(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var u=n(i,"."+a,void 0,r);t.insertRules(r,a,u)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=jt(this.baseHash,n.hash),s="",f=0;f>>0);if(!t.hasNameForId(r,m)){var y=n(s,"."+m,void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),Nt=/^\s*\/\/.*$/gm,Lt=[":","[",".","#"];function Ft(e){var t,n,r,o,i=void 0===e?tt:e,a=i.options,u=void 0===a?tt:a,c=i.plugins,l=void 0===c?et:c,s=new Re(u),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,u,c,l,s,f){switch(n){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),d=function(e,r,i){return 0===r&&-1!==Lt.indexOf(i[n.length])||i.match(o)?e:"."+t};function h(e,i,a,u){void 0===u&&(u="&");var c=e.replace(Nt,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=u,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),s(a||!i?"":i,l)}return s.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,d))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||lt(15),jt(e,t.name)}),5381).toString():"",h}var Ut=ce.createContext();Ut.Consumer;var Bt=ce.createContext(),Vt=(Bt.Consumer,new Tt),zt=Ft();function Ht(){return y.exports.useContext(Ut)||Vt}function Yt(){return y.exports.useContext(Bt)||zt}function Wt(e){var t=y.exports.useState(e.stylisPlugins),n=t[0],r=t[1],o=Ht(),i=y.exports.useMemo((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=y.exports.useMemo((function(){return Ft({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return y.exports.useEffect((function(){(function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==s(e)||!e||"object"!==s(t)||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),c=0;c1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,rn=/(^-|-$)/g;function on(e){return e.replace(nn,"-").replace(rn,"")}var an=function(e){return Dt(Rt(e)>>>0)};function un(e){return"string"==typeof e&&!0}var cn=function(e){return"function"==typeof e||"object"==s(e)&&null!==e&&!Array.isArray(e)},ln=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function sn(e,t,n){var r=e[n];cn(t)&&cn(r)?fn(r,t):e[n]=t}function fn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(un(e)?e:on(rt(e)));return hn(e,Xe({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?fn({},e.defaultProps,t):t}}),h.toString=function(){return"."+h.styledComponentId},o&&Qe(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var mn=function(e){return function e(t,n,r){if(void 0===r&&(r=tt),!le.exports.isValidElementType(n))return lt(1,String(n));var o=function(){return t(n,r,en.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Xe({},r,{},o))},o.attrs=function(o){return e(t,n,Xe({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(hn,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){mn[e]=mn(e)}));var yn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=It(e),Tt.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(Jt(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Tt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function vn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rw},C=function(e){return function(e){var t=y[e].b;return m+t+g}(e)>_},P=function(e){return function(e){return S(e)<0}(e)||T(e)||function(e){return E(e)<0}(e)||C(e)},D=function(e){return!P(e)},j=["top","bottom","left","right"],R=[],I=0;I<4;I++){var A=j[I];D(A)&&R.push(A)}var M,N=!1,L=o!==r;return D(o)&&L?(N=!0,M=o):R.length>0&&P(o)&&P(r)&&(N=!0,M=R[0]),N?{isNewState:!0,newState:{place:M}}:{isNewState:!1,position:{left:parseInt(S(r)-O,10),top:parseInt(E(r)-k,10)}}}var Yn=function(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width;return{height:parseInt(n,10),width:parseInt(r,10)}},Wn=function(e,t,n){var r=t.getBoundingClientRect(),o=r.top,i=r.left,a=Yn(t),u=a.width,c=a.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+u/2,mouseY:o+c/2}},qn=function(e,t,n,r,o){var i,a,u,c;return"float"===e?(i={l:-r/2,r:r/2,t:-(o+3+2),b:-3},u={l:-r/2,r:r/2,t:15,b:o+3+2+12},c={l:-(r+3+2),r:-3,t:-o/2,b:o/2},a={l:3,r:r+3+2,t:-o/2,b:o/2}):"solid"===e&&(i={l:-r/2,r:r/2,t:-(n/2+o+2),b:-n/2},u={l:-r/2,r:r/2,t:n/2,b:n/2+o+2},c={l:-(r+t/2+2),r:-t/2,t:-o/2,b:o/2},a={l:t/2,r:r+t/2+2,t:-o/2,b:o/2}),{top:i,bottom:u,left:c,right:a}},$n=function(e){var t=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===r?n-=parseInt(e[r],10):"bottom"===r?n+=parseInt(e[r],10):"left"===r?t-=parseInt(e[r],10):"right"===r&&(t+=parseInt(e[r],10));return{extraOffsetX:t,extraOffsetY:n}},Gn=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function Kn(e,t,n,r){if(t)return t;if(null!=n)return n;if(null===n)return null;var o=//;return r&&"false"!==r&&o.test(e)?e.split(o).map((function(e,t){return ce.createElement("span",{key:t,className:"multi-line"},e)})):e}function Qn(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function Xn(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var Zn,Jn,er,tr={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function nr(e,t,n,r){return function(e,t){var n=t.text,r=t.background,o=t.border,i=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(n,";\n\t background: ").concat(r,";\n\t border: 1px solid ").concat(o,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(o,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(i,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(o,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(i,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(o,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(i,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(o,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(i,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,n){var r=e.text,o=e.background,i=e.border,a=e.arrow?e.arrow:e.background,u=function(e){return tr[e]?jn({},tr[e]):void 0}(t);r&&(u.text=r);o&&(u.background=o);n&&(u.border=i||("light"===t?"black":"white"));a&&(u.arrow=a);return u}(t,n,r))}var rr,or=function(e){e.hide=function(e){Nn(Mn.HIDE,{target:e})},e.rebuild=function(){Nn(Mn.REBUILD)},e.show=function(e){Nn(Mn.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(Zn=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(Mn.HIDE,this.globalHide),window.addEventListener(Mn.HIDE,this.globalHide,!1),window.removeEventListener(Mn.REBUILD,this.globalRebuild),window.addEventListener(Mn.REBUILD,this.globalRebuild,!1),window.removeEventListener(Mn.SHOW,this.globalShow),window.addEventListener(Mn.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(Mn.HIDE,this.globalHide),window.removeEventListener(Mn.REBUILD,this.globalRebuild),window.removeEventListener(Mn.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(Zn=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,i=e.getAttribute("data-event")||r,a=e.getAttribute("data-event-off")||o;i.split(" ").forEach((function(n){e.removeEventListener(n,Un.get(e,n));var r=Ln.bind(t,a);Un.set(e,n,r),e.addEventListener(n,r,!1)})),a&&a.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,r=t.eventOff,o=n||e.getAttribute("data-event"),i=r||e.getAttribute("data-event-off");e.removeEventListener(o,Un.get(e,n)),i&&e.removeEventListener(i,this.hideTooltip)}}(Zn=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(Zn=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(Zn=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,i=n.possibleCustomEvents,a=n.possibleCustomEventsOff,u=zn(),c=Vn(e,"data-event"),l=Vn(e,"data-event-off");null!=r&&(c[r]=!0),null!=o&&(l[o]=!0),i.split(" ").forEach((function(e){return c[e]=!0})),a.split(" ").forEach((function(e){return l[e]=!0})),this.unbindBodyListener(u);var s=this.bodyModeListeners={};for(var f in null==r&&(s.mouseover=Bn.bind(this,this.showTooltip,{}),s.mousemove=Bn.bind(this,this.updateTooltip,{respectEffect:!0}),s.mouseout=Bn.bind(this,this.hideTooltip,{})),c)s[f]=Bn.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||o;Ln.call(t,n,e)}),{customEvent:!0});for(var p in l)s[p]=Bn.bind(this,this.hideTooltip,{customEvent:!0});for(var d in s)u.addEventListener(d,s[d])},e.prototype.unbindBodyListener=function(e){e=e||zn();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((er=Jn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=An(this,Rn(t).call(this,e))).state={uuid:e.uuid||"t"+Sn(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:Qn(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&In(e,t)}(t,e),Tn(t,null,[{key:"propTypes",get:function(){return{uuid:_n.string,children:_n.any,place:_n.string,type:_n.string,effect:_n.string,offset:_n.object,multiline:_n.bool,border:_n.bool,textColor:_n.string,backgroundColor:_n.string,borderColor:_n.string,arrowColor:_n.string,insecure:_n.bool,class:_n.string,className:_n.string,id:_n.string,html:_n.bool,delayHide:_n.number,delayUpdate:_n.number,delayShow:_n.number,event:_n.string,eventOff:_n.string,isCapture:_n.bool,globalEventOff:_n.string,getContent:_n.any,afterShow:_n.func,afterHide:_n.func,overridePosition:_n.func,disable:_n.bool,scrollHide:_n.bool,resizeHide:_n.bool,wrapper:_n.string,bodyMode:_n.bool,possibleCustomEvents:_n.string,possibleCustomEventsOff:_n.string,clickable:_n.bool}}}]),Tn(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props;e.insecure;var t=e.resizeHide;this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.props.id,t=this.getTargetArray(e),n=[];if(t.forEach((function(e){for(var t=e.parentNode;t.parentNode&&!t.host;)t=t.parentNode;var r=t.querySelector("head");n.push(r||t)})),n.length){var r=document.createElement("style");r.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',r.setAttribute("data-react-tooltip","true"),n.filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(e){e.querySelector("style[data-react-tooltip]")||e.appendChild(r)}))}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var r=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(r,'"]')}else t="[data-tip]:not([data-for])";return Xn(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(Xn(e.shadowRoot.querySelectorAll(t)))})),n.concat(Xn(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff,o=t.isCapture,i=this.getTargetArray(n);i.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(i):i.forEach((function(t){var n=e.isCapture(t),r=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),"float"===r&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n))})),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),r&&window.removeEventListener(r,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,r=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),Kn(this.state.originTooltip,r,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,r=n.multiline,o=n.getContent,i=e.currentTarget.getAttribute("data-tip"),a=e.currentTarget.getAttribute("data-multiline")||r||!1,u=e instanceof window.FocusEvent||t,c=!0;e.currentTarget.getAttribute("data-scroll-hide")?c="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(c=this.props.scrollHide);var l=e.currentTarget.getAttribute("data-place")||this.props.place||"top",s=u?"solid":this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},p=Hn(e,e.currentTarget,this.tooltipRef,l,l,s,f);p.position&&this.props.overridePosition&&(p.position=this.props.overridePosition(p.position,e,e.currentTarget,this.tooltipRef,l,l,s,f));var d=p.isNewState?p.newState.place:l;this.clearTimer();var h=e.currentTarget,m=this.state.show?h.getAttribute("data-delay-update")||this.props.delayUpdate:0,y=this,v=function(){y.setState({originTooltip:i,isMultiline:a,desiredPlace:l,place:d,type:h.getAttribute("data-type")||y.props.type||"dark",customColors:{text:h.getAttribute("data-text-color")||y.props.textColor||null,background:h.getAttribute("data-background-color")||y.props.backgroundColor||null,border:h.getAttribute("data-border-color")||y.props.borderColor||null,arrow:h.getAttribute("data-arrow-color")||y.props.arrowColor||null},effect:s,offset:f,html:(h.getAttribute("data-html")?"true"===h.getAttribute("data-html"):y.props.html)||!1,delayShow:h.getAttribute("data-delay-show")||y.props.delayShow||0,delayHide:h.getAttribute("data-delay-hide")||y.props.delayHide||0,delayUpdate:h.getAttribute("data-delay-update")||y.props.delayUpdate||0,border:(h.getAttribute("data-border")?"true"===h.getAttribute("data-border"):y.props.border)||!1,extraClass:h.getAttribute("data-class")||y.props.class||y.props.className||"",disable:(h.getAttribute("data-tip-disable")?"true"===h.getAttribute("data-tip-disable"):y.props.disable)||!1,currentTarget:h},(function(){c&&y.addScrollListener(y.state.currentTarget),y.updateTooltip(e),o&&Array.isArray(o)&&(y.intervalUpdateContent=setInterval((function(){if(y.mount){var e=y.props.getContent,t=Kn(i,"",e[0](),a),n=y.isEmptyTip(t);y.setState({isEmptyTip:n}),y.updatePosition()}}),o[1]))}))};m?this.delayReshow=setTimeout(v,m):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,r=n.delayShow,o=n.disable,i=this.props.afterShow,a=this.getTooltipContent(),u=parseInt(r,10),c=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(a)&&!o){var l=function(){if(Array.isArray(a)&&a.length>0||a){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:c,show:!0},(function(){t.updatePosition(),n&&i&&i(e)}))}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(l,u):l()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,i=r.isScroll,a=i?0:this.state.delayHide,u=this.props.afterHide,c=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(c)&&!o){if(t){var l=this.getTargetArray(this.props.id),s=l.some((function(t){return t===e.currentTarget}));if(!s||!this.state.show)return}var f=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&u&&u(e)})))};this.clearTimer(),a?this.delayHideLoop=setTimeout(f,parseInt(a,10)):f()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,r=t.currentTarget,o=t.place,i=t.desiredPlace,a=t.effect,u=t.offset,c=this.tooltipRef,l=Hn(n,r,c,o,i,a,u);if(l.position&&this.props.overridePosition&&(l.position=this.props.overridePosition(l.position,n,r,c,o,i,a,u)),l.isNewState)return this.setState(l.newState,(function(){e.updatePosition()}));c.style.left=l.position.left+"px",c.style.top=l.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,o=n.html,i=n.ariaProps,a=n.disable,u=this.getTooltipContent(),c=this.isEmptyTip(u),l=nr(this.state.uuid,this.state.customColors,this.state.type,this.state.border),s="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||c?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),f=this.props.wrapper;t.supportedWrappers.indexOf(f)<0&&(f=t.defaultProps.wrapper);var p=[s,r].filter(Boolean).join(" ");if(o){var d="".concat(u,"\n");return ce.createElement(f,Pn({className:"".concat(p),id:this.props.id,ref:function(t){return e.tooltipRef=t}},i,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:d}}))}return ce.createElement(f,Pn({className:"".concat(p),id:this.props.id},i,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),ce.createElement("style",{dangerouslySetInnerHTML:{__html:l}}),u)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,r=Qn(e);return Object.keys(r).some((function(e){return r[e]!==n[e]}))?jn({},t,{ariaProps:r}):null}}]),t}(ce.Component),Cn(Jn,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),Cn(Jn,"supportedWrappers",["div","span"]),Cn(Jn,"displayName","ReactTooltip"),(rr=Zn=er).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n=_},i=function(){},e.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0T(a,n))void 0!==c&&0>T(c,a)?(e[r]=c,e[u]=n,r=u):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>T(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],P=[],D=1,j=null,R=3,I=!1,A=!1,M=!1;function N(e){for(var t=S(P);null!==t;){if(null===t.callback)E(P);else{if(!(t.startTime<=e))break;E(P),t.sortIndex=t.expirationTime,O(C,t)}t=S(P)}}function L(e){if(M=!1,N(e),!A)if(null!==S(C))A=!0,t(F);else{var r=S(P);null!==r&&n(L,r.startTime-e)}}function F(t,i){A=!1,M&&(M=!1,r()),I=!0;var a=R;try{for(N(i),j=S(C);null!==j&&(!(j.expirationTime>i)||t&&!o());){var u=j.callback;if(null!==u){j.callback=null,R=j.priorityLevel;var c=u(j.expirationTime<=i);i=e.unstable_now(),"function"==typeof c?j.callback=c:j===S(C)&&E(C),N(i)}else E(C);j=S(C)}if(null!==j)var l=!0;else{var s=S(P);null!==s&&n(L,s.startTime-i),l=!1}return l}finally{j=null,R=a,I=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){A||I||(A=!0,t(F))},e.unstable_getCurrentPriorityLevel=function(){return R},e.unstable_getFirstCallbackNode=function(){return S(C)},e.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=B,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},e.unstable_scheduleCallback=function(o,i,a){var u=e.unstable_now();if("object"===s(a)&&null!==a){var c=a.delay;c="number"==typeof c&&0u?(o.sortIndex=c,O(P,o),null===S(C)&&o===S(P)&&(M?r():M=!0,n(L,c-u))):(o.sortIndex=a,O(C,o),A||I||(A=!0,t(F))),o},e.unstable_shouldYield=function(){var t=e.unstable_now();N(t);var n=S(C);return n!==j&&null!==j&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTimet}return!1}function Jr(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var eo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){eo[e]=new Jr(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];eo[t]=new Jr(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){eo[e]=new Jr(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){eo[e]=new Jr(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){eo[e]=new Jr(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){eo[e]=new Jr(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){eo[e]=new Jr(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){eo[e]=new Jr(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){eo[e]=new Jr(e,5,!1,e.toLowerCase(),null,!1)}));var to=/[\-:]([a-z])/g;function no(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(to,no);eo[t]=new Jr(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(to,no);eo[t]=new Jr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(to,no);eo[t]=new Jr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){eo[e]=new Jr(e,1,!1,e.toLowerCase(),null,!1)})),eo.xlinkHref=new Jr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){eo[e]=new Jr(e,1,!1,e.toLowerCase(),null,!0)}));var ro=lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function oo(e,t,n,r){var o=eo.hasOwnProperty(t)?eo[t]:null;(null!==o?0===o.type:!r&&(2=n.length))throw Error(pr(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Eo(n)}}function Bo(e,t){var n=Eo(t.value),r=Eo(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Vo(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var zo="http://www.w3.org/1999/xhtml",Ho="http://www.w3.org/2000/svg";function Yo(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Wo(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Yo(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var qo,$o,Go=($o=function(e,t){if(e.namespaceURI!==Ho||"innerHTML"in e)e.innerHTML=t;else{for((qo=qo||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=qo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return $o(e,t)}))}:$o);function Ko(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Qo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xo={animationend:Qo("Animation","AnimationEnd"),animationiteration:Qo("Animation","AnimationIteration"),animationstart:Qo("Animation","AnimationStart"),transitionend:Qo("Transition","TransitionEnd")},Zo={},Jo={};function ei(e){if(Zo[e])return Zo[e];if(!Xo[e])return e;var t,n=Xo[e];for(t in n)if(n.hasOwnProperty(t)&&t in Jo)return Zo[e]=n[t];return e}Ir&&(Jo=document.createElement("div").style,"AnimationEvent"in window||(delete Xo.animationend.animation,delete Xo.animationiteration.animation,delete Xo.animationstart.animation),"TransitionEvent"in window||delete Xo.transitionend.transition);var ti=ei("animationend"),ni=ei("animationiteration"),ri=ei("animationstart"),oi=ei("transitionend"),ii="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ai=new("function"==typeof WeakMap?WeakMap:Map);function ui(e){var t=ai.get(e);return void 0===t&&(t=new Map,ai.set(e,t)),t}function ci(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function li(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function si(e){if(ci(e)!==e)throw Error(pr(188))}function fi(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=ci(e)))throw Error(pr(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return si(o),e;if(i===r)return si(o),t;i=i.sibling}throw Error(pr(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}if(!a){for(u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a)throw Error(pr(189))}}if(n.alternate!==r)throw Error(pr(190))}if(3!==n.tag)throw Error(pr(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function pi(e,t){if(null==t)throw Error(pr(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function di(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var hi=null;function mi(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rgi.length&&gi.push(e)}function _i(e,t,n,r){if(gi.length){var o=gi.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function xi(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Fa(r)}while(n);for(n=0;n=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ga(r)}}function _a(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?_a(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function xa(){for(var e=window,t=ba();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ba((e=t.contentWindow).document)}return t}function ka(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Oa="$?",Sa="$!",Ea=null,Ta=null;function Ca(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Pa(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===s(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Da="function"==typeof setTimeout?setTimeout:void 0,ja="function"==typeof clearTimeout?clearTimeout:void 0;function Ra(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ia(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===Sa||n===Oa){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Aa=Math.random().toString(36).slice(2),Ma="__reactInternalInstance$"+Aa,Na="__reactEventHandlers$"+Aa,La="__reactContainere$"+Aa;function Fa(e){var t=e[Ma];if(t)return t;for(var n=e.parentNode;n;){if(t=n[La]||n[Ma]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ia(e);null!==e;){if(n=e[Ma])return n;e=Ia(e)}return t}n=(e=n).parentNode}return null}function Ua(e){return!(e=e[Ma]||e[La])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ba(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(pr(33))}function Va(e){return e[Na]||null}function za(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ha(e,t){var n=e.stateNode;if(!n)return null;var r=wr(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(pr(231,t,s(n)));return n}function Ya(e,t,n){(t=Ha(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=pi(n._dispatchListeners,t),n._dispatchInstances=pi(n._dispatchInstances,e))}function Wa(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=za(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function ou(e){e.eventPool=[],e.getPooled=nu,e.release=ru}sr(tu.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ja)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ja)},persist:function(){this.isPersistent=Ja},isPersistent:eu,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=eu,this._dispatchInstances=this._dispatchListeners=null}}),tu.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},tu.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return sr(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=sr({},r.Interface,e),n.extend=r.extend,ou(n),n},ou(tu);var iu=tu.extend({data:null}),au=tu.extend({data:null}),uu=[9,13,27,32],cu=Ir&&"CompositionEvent"in window,lu=null;Ir&&"documentMode"in document&&(lu=document.documentMode);var su=Ir&&"TextEvent"in window&&!lu,fu=Ir&&(!cu||lu&&8=lu),pu=String.fromCharCode(32),du={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},hu=!1;function mu(e,t){switch(e){case"keyup":return-1!==uu.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function yu(e){return"object"===s(e=e.detail)&&"data"in e?e.data:null}var vu=!1;var bu={eventTypes:du,extractEvents:function(e,t,n,r){var o;if(cu)e:{switch(e){case"compositionstart":var i=du.compositionStart;break e;case"compositionend":i=du.compositionEnd;break e;case"compositionupdate":i=du.compositionUpdate;break e}i=void 0}else vu?mu(e,n)&&(i=du.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=du.compositionStart);return i?(fu&&"ko"!==n.locale&&(vu||i!==du.compositionStart?i===du.compositionEnd&&vu&&(o=Za()):(Qa="value"in(Ka=r)?Ka.value:Ka.textContent,vu=!0)),i=iu.getPooled(i,t,n,r),o?i.data=o:null!==(o=yu(n))&&(i.data=o),Ga(i),o=i):o=null,(e=su?function(e,t){switch(e){case"compositionend":return yu(t);case"keypress":return 32!==t.which?null:(hu=!0,pu);case"textInput":return(e=t.data)===pu&&hu?null:e;default:return null}}(e,n):function(e,t){if(vu)return"compositionend"===e||!cu&&mu(e,t)?(e=Za(),Xa=Qa=Ka=null,vu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,Zu={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ju=null,ec=null,tc=null,nc=!1;function rc(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return nc||null==Ju||Ju!==ba(n)?null:("selectionStart"in(n=Ju)&&ka(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},tc&&Qu(tc,n)?null:(tc=n,(e=tu.getPooled(Zu.select,ec,e,t)).type="select",e.target=Ju,Ga(e),e))}var oc={eventTypes:Zu,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=ui(o),i=jr.onSelect;for(var a=0;abc||(e.current=vc[bc],vc[bc]=null,bc--)}function wc(e,t){bc++,vc[bc]=e.current,e.current=t}var _c={},xc={current:_c},kc={current:!1},Oc=_c;function Sc(e,t){var n=e.type.contextTypes;if(!n)return _c;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ec(e){return null!=(e=e.childContextTypes)}function Tc(){gc(kc),gc(xc)}function Cc(e,t,n){if(xc.current!==_c)throw Error(pr(168));wc(xc,t),wc(kc,n)}function Pc(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(pr(108,Oo(t)||"Unknown",o));return sr({},n,{},r)}function Dc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_c,Oc=xc.current,wc(xc,e),wc(kc,kc.current),!0}function jc(e,t,n){var r=e.stateNode;if(!r)throw Error(pr(169));n?(e=Pc(e,t,Oc),r.__reactInternalMemoizedMergedChildContext=e,gc(kc),gc(xc),wc(xc,e)):gc(kc),wc(kc,n)}var Rc=fr.unstable_runWithPriority,Ic=fr.unstable_scheduleCallback,Ac=fr.unstable_cancelCallback,Mc=fr.unstable_requestPaint,Nc=fr.unstable_now,Lc=fr.unstable_getCurrentPriorityLevel,Fc=fr.unstable_ImmediatePriority,Uc=fr.unstable_UserBlockingPriority,Bc=fr.unstable_NormalPriority,Vc=fr.unstable_LowPriority,zc=fr.unstable_IdlePriority,Hc={},Yc=fr.unstable_shouldYield,Wc=void 0!==Mc?Mc:function(){},qc=null,$c=null,Gc=!1,Kc=Nc(),Qc=1e4>Kc?Nc:function(){return Nc()-Kc};function Xc(){switch(Lc()){case Fc:return 99;case Uc:return 98;case Bc:return 97;case Vc:return 96;case zc:return 95;default:throw Error(pr(332))}}function Zc(e){switch(e){case 99:return Fc;case 98:return Uc;case 97:return Bc;case 96:return Vc;case 95:return zc;default:throw Error(pr(332))}}function Jc(e,t){return e=Zc(e),Rc(e,t)}function el(e,t,n){return e=Zc(e),Ic(e,t,n)}function tl(e){return null===qc?(qc=[e],$c=Ic(Fc,rl)):qc.push(e),Hc}function nl(){if(null!==$c){var e=$c;$c=null,Ac(e)}rl()}function rl(){if(!Gc&&null!==qc){Gc=!0;var e=0;try{var t=qc;Jc(99,(function(){for(;e=t&&(Bs=!0),e.firstContext=null)}function hl(e,t){if(ll!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ll=e,t=1073741823),t={context:e,observedBits:t,next:null},null===cl){if(null===ul)throw Error(pr(308));cl=t,ul.dependencies={expirationTime:0,firstContext:t,responders:null}}else cl=cl.next=t;return e._currentValue}var ml=!1;function yl(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function vl(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function bl(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function gl(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function wl(e,t){var n=e.alternate;null!==n&&vl(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function _l(e,t,n,r){var o=e.updateQueue;ml=!1;var i=o.baseQueue,a=o.shared.pending;if(null!==a){if(null!==i){var u=i.next;i.next=a.next,a.next=u}i=a,o.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=a))}if(null!==i){u=i.next;var c=o.baseState,l=0,s=null,f=null,p=null;if(null!==u)for(var d=u;;){if((a=d.expirationTime)l&&(l=a)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null}),wp(a,d.suspenseConfig);e:{var m=e,y=d;switch(a=t,h=n,y.tag){case 1:if("function"==typeof(m=y.payload)){c=m.call(h,c,a);break e}c=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(a="function"==typeof(m=y.payload)?m.call(h,c,a):m))break e;c=sr({},c,a);break e;case 2:ml=!0}}null!==d.callback&&(e.effectTag|=32,null===(a=o.effects)?o.effects=[d]:a.push(d))}if(null===(d=d.next)||d===u){if(null===(a=o.shared.pending))break;d=i.next=a.next,a.next=u,o.baseQueue=i=a,o.shared.pending=null}}null===p?s=c:p.next=f,o.baseState=s,o.baseQueue=p,_p(l),e.expirationTime=l,e.memoizedState=c}}function xl(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tm?(y=f,f=null):y=f.sibling;var v=d(o,f,u[m],c);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,m),null===s?l=v:s.sibling=v,s=v,f=y}if(m===u.length)return n(o,f),l;if(null===f){for(;mm?(y=f,f=null):y=f.sibling;var b=d(o,f,v.value,c);if(null===b){null===f&&(f=y);break}e&&f&&null===b.alternate&&t(o,f),a=i(b,a,m),null===s?l=b:s.sibling=b,s=b,f=y}if(v.done)return n(o,f),l;if(null===f){for(;!v.done;m++,v=u.next())null!==(v=p(o,v.value,c))&&(a=i(v,a,m),null===s?l=v:s.sibling=v,s=v);return l}for(f=r(o,f);!v.done;m++,v=u.next())null!==(v=h(f,o,m,v.value,c))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=i(v,a,m),null===s?l=v:s.sibling=v,s=v);return e&&f.forEach((function(e){return t(o,e)})),l}return function(e,r,i,u){var c="object"===s(i)&&null!==i&&i.type===lo&&null===i.key;c&&(i=i.props.children);var l="object"===s(i)&&null!==i;if(l)switch(i.$$typeof){case uo:e:{for(l=i.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(i.type===lo){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=Rl(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===lo?((r=Hp(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=zp(i.type,i.key,i.props,null,e.mode,u)).ref=Rl(e,r,i),u.return=e,e=u)}return a(e);case co:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Wp(i,e.mode,u)).return=e,e=r}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Yp(i,e.mode,u)).return=e,e=r),a(e);if(jl(i))return m(e,r,i,u);if(ko(i))return y(e,r,i,u);if(l&&Il(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(pr(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ml=Al(!0),Nl=Al(!1),Ll={},Fl={current:Ll},Ul={current:Ll},Bl={current:Ll};function Vl(e){if(e===Ll)throw Error(pr(174));return e}function zl(e,t){switch(wc(Bl,t),wc(Ul,e),wc(Fl,Ll),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wo(null,"");break;default:t=Wo(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}gc(Fl),wc(Fl,t)}function Hl(){gc(Fl),gc(Ul),gc(Bl)}function Yl(e){Vl(Bl.current);var t=Vl(Fl.current),n=Wo(t,e.type);t!==n&&(wc(Ul,e),wc(Fl,n))}function Wl(e){Ul.current===e&&(gc(Fl),gc(Ul))}var ql={current:0};function $l(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Oa||n.data===Sa))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Gl(e,t){return{responder:e,props:t}}var Kl=ro.ReactCurrentDispatcher,Ql=ro.ReactCurrentBatchConfig,Xl=0,Zl=null,Jl=null,es=null,ts=!1;function ns(){throw Error(pr(321))}function rs(e,t){if(null===t)return!1;for(var n=0;ni))throw Error(pr(301));i+=1,es=Jl=null,t.updateQueue=null,Kl.current=Ps,e=n(r,o)}while(t.expirationTime===Xl)}if(Kl.current=Es,t=null!==Jl&&null!==Jl.next,Xl=0,es=Jl=Zl=null,ts=!1,t)throw Error(pr(300));return e}function is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===es?Zl.memoizedState=es=e:es=es.next=e,es}function as(){if(null===Jl){var e=Zl.alternate;e=null!==e?e.memoizedState:null}else e=Jl.next;var t=null===es?Zl.memoizedState:es.next;if(null!==t)es=t,Jl=e;else{if(null===e)throw Error(pr(310));e={memoizedState:(Jl=e).memoizedState,baseState:Jl.baseState,baseQueue:Jl.baseQueue,queue:Jl.queue,next:null},null===es?Zl.memoizedState=es=e:es=es.next=e}return es}function us(e,t){return"function"==typeof t?t(e):t}function cs(e){var t=as(),n=t.queue;if(null===n)throw Error(pr(311));n.lastRenderedReducer=e;var r=Jl,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=a=i=null,c=o;do{var l=c.expirationTime;if(lZl.expirationTime&&(Zl.expirationTime=l,_p(l))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),wp(l,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===u?i=r:u.next=a,Gu(r,t.memoizedState)||(Bs=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ls(e){var t=as(),n=t.queue;if(null===n)throw Error(pr(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Gu(i,t.memoizedState)||(Bs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ss(e){var t=is();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:us,lastRenderedState:e}).dispatch=Ss.bind(null,Zl,e),[t.memoizedState,e]}function fs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zl.updateQueue)?(t={lastEffect:null},Zl.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ps(){return as().memoizedState}function ds(e,t,n,r){var o=is();Zl.effectTag|=e,o.memoizedState=fs(1|t,n,void 0,void 0===r?null:r)}function hs(e,t,n,r){var o=as();r=void 0===r?null:r;var i=void 0;if(null!==Jl){var a=Jl.memoizedState;if(i=a.destroy,null!==r&&rs(r,a.deps))return void fs(t,n,i,r)}Zl.effectTag|=e,o.memoizedState=fs(1|t,n,i,r)}function ms(e,t){return ds(516,4,e,t)}function ys(e,t){return hs(516,4,e,t)}function vs(e,t){return hs(4,2,e,t)}function bs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function gs(e,t,n){return n=null!=n?n.concat([e]):null,hs(4,2,bs.bind(null,t,e),n)}function ws(){}function _s(e,t){return is().memoizedState=[e,void 0===t?null:t],e}function xs(e,t){var n=as();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&rs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ks(e,t){var n=as();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&rs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Os(e,t,n){var r=Xc();Jc(98>r?98:r,(function(){e(!0)})),Jc(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(o,{is:r.is}):(e=a.createElement(o),"select"===o&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,o),e[Ma]=t,e[Na]=r,Qs(e,t),t.stateNode=e,a=ha(o,r),o){case"iframe":case"object":case"embed":na("load",e),u=r;break;case"video":case"audio":for(u=0;ur.tailExpiration&&1t)&&rp.set(e,t))}}function sp(e,t){e.expirationTime=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function pp(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=tl(hp.bind(null,e));else{var t=fp(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=up();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Hc&&Ac(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?tl(hp.bind(null,e)):el(r,dp.bind(null,e),{timeout:10*(1073741821-t)-Qc()}),e.callbackNode=t}}}function dp(e,t){if(ap=0,t)return Qp(e,t=up()),pp(e),null;var n=fp(e);if(0!==n){if(t=e.callbackNode,0!=(48&Ff))throw Error(pr(327));if(Dp(),e===Uf&&n===Vf||vp(e,n),null!==Bf){var r=Ff;Ff|=If;for(var o=gp();;)try{kp();break}catch(t){bp(e,t)}if(sl(),Ff=r,jf.current=o,1===zf)throw t=Hf,vp(e,n),Gp(e,n),pp(e),t;if(null===Bf)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=zf,Uf=null,r){case Mf:case 1:throw Error(pr(345));case 2:Qp(e,2=n){e.lastPingedTime=n,vp(e,n);break}}if(0!==(i=fp(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Da(Tp.bind(null,e),o);break}Tp(e);break;case Lf:if(Gp(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ep(o)),Gf&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,vp(e,n);break}if(0!==(o=fp(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Wf?r=10*(1073741821-Wf)-Qc():1073741823===Yf?r=0:(r=10*(1073741821-Yf)-5e3,0>(r=(o=Qc())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Df(r/1960))-r)&&(r=n)),10=(r=0|a.busyMinDurationMs)?r=0:(o=0|a.busyDelayMs,r=(i=Qc()-(10*(1073741821-i)-(0|a.timeoutMs||5e3)))<=o?0:o+r-i),10 component higher in the tree to provide a loading indicator or placeholder to display."+So(a))}5!==zf&&(zf=2),u=lf(u,a),p=i;do{switch(p.tag){case 3:c=u,p.effectTag|=4096,p.expirationTime=t,wl(p,Tf(p,c,t));break e;case 1:c=u;var _=p.type,x=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Jf||!Jf.has(x)))){p.effectTag|=4096,p.expirationTime=t,wl(p,Cf(p,c,t));break e}}p=p.return}while(null!==p)}Bf=Sp(Bf)}catch(e){t=e;continue}break}}function gp(){var e=jf.current;return jf.current=Es,null===e?Es:e}function wp(e,t){e$f&&($f=e)}function xp(){for(;null!==Bf;)Bf=Op(Bf)}function kp(){for(;null!==Bf&&!Yc();)Bf=Op(Bf)}function Op(e){var t=Pf(e.alternate,e,Vf);return e.memoizedProps=e.pendingProps,null===t&&(t=Sp(e)),Rf.current=null,t}function Sp(e){Bf=e;do{var t=Bf.alternate;if(e=Bf.return,0==(2048&Bf.effectTag)){if(t=uf(t,Bf,Vf),1===Vf||1!==Bf.childExpirationTime){for(var n=0,r=Bf.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Bf.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Bf.firstEffect),null!==Bf.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Bf.firstEffect),e.lastEffect=Bf.lastEffect),1(e=e.childExpirationTime)?t:e}function Tp(e){var t=Xc();return Jc(99,Cp.bind(null,e,t)),null}function Cp(e,t){do{Dp()}while(null!==tp);if(0!=(48&Ff))throw Error(pr(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(pr(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Ep(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Uf&&(Bf=Uf=null,Vf=0),1u&&(l=u,u=a,a=l),l=wa(g,a),s=wa(g,u),l&&s&&(1!==_.rangeCount||_.anchorNode!==l.node||_.anchorOffset!==l.offset||_.focusNode!==s.node||_.focusOffset!==s.offset)&&((w=w.createRange()).setStart(l.node,l.offset),_.removeAllRanges(),a>u?(_.addRange(w),_.extend(s.node,s.offset)):(w.setEnd(s.node,s.offset),_.addRange(w))))),w=[];for(_=g;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof g.focus&&g.focus(),g=0;g=n?ef(e,t,n):(wc(ql,1&ql.current),null!==(t=of(e,t,n))?t.sibling:null);wc(ql,1&ql.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return rf(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),wc(ql,ql.current),!r)return null}return of(e,t,n)}Bs=!1}}else Bs=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=Sc(t,xc.current),dl(t,n),o=os(null,t,r,e,o,n),t.effectTag|=1,"object"===s(o)&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ec(r)){var i=!0;Dc(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,yl(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&Sl(t,r,a,e),o.updater=El,t.stateNode=o,o._reactInternalFiber=t,Dl(t,r,e,n),t=Gs(null,t,r,!0,i,n)}else t.tag=0,Vs(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Bp(e)?1:0;if(null!=e){if((e=e.$$typeof)===yo)return 11;if(e===go)return 14}return 2}(o),e=il(o,e),i){case 0:t=qs(null,t,o,e,n);break e;case 1:t=$s(null,t,o,e,n);break e;case 11:t=zs(null,t,o,e,n);break e;case 14:t=Hs(null,t,o,il(o.type,e),r,n);break e}throw Error(pr(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,qs(e,t,r,o=t.elementType===r?o:il(r,o),n);case 1:return r=t.type,o=t.pendingProps,$s(e,t,r,o=t.elementType===r?o:il(r,o),n);case 3:if(Ks(t),r=t.updateQueue,null===e||null===r)throw Error(pr(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,vl(e,t),_l(t,r,null,n),(r=t.memoizedState.element)===o)Fs(),t=of(e,t,n);else{if((o=t.stateNode.hydrate)&&(js=Ra(t.stateNode.containerInfo.firstChild),Ds=t,o=Rs=!0),o)for(n=Nl(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Vs(e,t,r,n),Fs();t=t.child}return t;case 5:return Yl(t),null===e&&Ms(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Pa(r,o)?a=null:null!==i&&Pa(r,i)&&(t.effectTag|=16),Ws(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Vs(e,t,a,n),t=t.child),t;case 6:return null===e&&Ms(t),null;case 13:return ef(e,t,n);case 4:return zl(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ml(t,null,r,n):Vs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,zs(e,t,r,o=t.elementType===r?o:il(r,o),n);case 7:return Vs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Vs(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var u=t.type._context;if(wc(al,u._currentValue),u._currentValue=i,null!==a)if(u=a.value,0===(i=Gu(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(a.children===o.children&&!kc.current){t=of(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){a=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&i)){1===u.tag&&((l=bl(n,null)).tag=2,gl(u,l)),u.expirationTime=t&&e<=t}function Gp(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Kp(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Qp(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Xp(e,t,n,r){var o=t.current,i=up(),a=kl.suspense;i=cp(i,o,a);e:if(n){t:{if(ci(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(pr(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Ec(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(pr(171))}if(1===n.tag){var c=n.type;if(Ec(c)){n=Pc(n,c,u);break e}}n=u}else n=_c;return null===t.context?t.context=n:t.pendingContext=n,(t=bl(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),gl(o,t),lp(o,i),i}function Zp(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Jp(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime0?_d(jd,--Pd):0,Td--,10===Dd&&(Td=1,Ed--),Dd}function Md(){return Dd=Pd2||Ud(Dd)>3?"":" "}function Yd(e,t){for(;--t&&Md()&&!(Dd<48||Dd>102||Dd>57&&Dd<65||Dd>70&&Dd<97););return Fd(e,Ld()+(t<6&&32==Nd()&&32==Md()))}function Wd(e){for(;Md();)switch(Dd){case e:return Pd;case 34:case 39:return Wd(34===e||39===e?e:Dd);case 40:41===e&&Wd(e);break;case 92:Md()}return Pd}function qd(e,t){for(;Md()&&e+Dd!==57&&(e+Dd!==84||47!==Nd()););return"/*"+Fd(t,Pd-1)+"*"+vd(47===e?e:Md())}function $d(e){for(;!Ud(Nd());)Md();return Fd(e,Pd)}function Gd(e){return Vd(Kd("",null,null,null,[""],e=Bd(e),0,[0],e))}function Kd(e,t,n,r,o,i,a,u,c){for(var l=0,s=0,f=a,p=0,d=0,h=0,m=1,y=1,v=1,b=0,g="",w=o,_=i,x=r,k=g;y;)switch(h=b,b=Md()){case 34:case 39:case 91:case 40:k+=zd(b);break;case 9:case 10:case 13:case 32:k+=Hd(h);break;case 92:k+=Yd(Ld()-1,7);continue;case 47:switch(Nd()){case 42:case 47:Sd(Xd(qd(Md(),Ld()),t,n),c);break;default:k+="/"}break;case 123*m:u[l++]=kd(k)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+s:d>0&&kd(k)-f&&Sd(d>32?Zd(k+";",r,n,f-1):Zd(gd(k," ","")+";",r,n,f-2),c);break;case 59:k+=";";default:if(Sd(x=Qd(k,t,n,l,s,o,u,g,w=[],_=[],f),i),123===b)if(0===s)Kd(k,t,x,x,w,i,f,u,_);else switch(p){case 100:case 109:case 115:Kd(e,x,x,r&&Sd(Qd(e,x,x,0,0,o,u,g,o,w=[],f),_),o,_,f,u,r?w:_);break;default:Kd(k,x,x,x,[""],_,f,u,_)}}l=s=d=0,m=v=1,g=k="",f=a;break;case 58:f=1+kd(k),d=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Ad())continue;switch(k+=vd(b),b*m){case 38:v=s>0?1:(k+="\f",-1);break;case 44:u[l++]=(kd(k)-1)*v,v=1;break;case 64:45===Nd()&&(k+=zd(Md())),p=Nd(),s=kd(g=k+=$d(Ld())),b++;break;case 45:45===h&&2==kd(k)&&(m=0)}}return i}function Qd(e,t,n,r,o,i,a,u,c,l,s){for(var f=o-1,p=0===o?i:[""],d=Od(p),h=0,m=0,y=0;h0?p[v]+" "+b:gd(b,/&\f/g,p[v])))&&(c[y++]=g);return Rd(e,t,n,0===o?hd:u,c,l,s)}function Xd(e,t,n){return Rd(e,t,n,dd,vd(Dd),xd(e,2,-2),0)}function Zd(e,t,n,r){return Rd(e,t,n,md,xd(e,0,r),xd(e,r+1,-1),r)}function Jd(e,t){switch(function(e,t){return(((t<<2^_d(e,0))<<2^_d(e,1))<<2^_d(e,2))<<2^_d(e,3)}(e,t)){case 5103:return pd+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pd+e+fd+e+sd+e+e;case 6828:case 4268:return pd+e+sd+e+e;case 6165:return pd+e+sd+"flex-"+e+e;case 5187:return pd+e+gd(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return pd+e+sd+"flex-item-"+gd(e,/flex-|-self/,"")+e;case 4675:return pd+e+sd+"flex-line-pack"+gd(e,/align-content|flex-|-self/,"")+e;case 5548:return pd+e+sd+gd(e,"shrink","negative")+e;case 5292:return pd+e+sd+gd(e,"basis","preferred-size")+e;case 6060:return pd+"box-"+gd(e,"-grow","")+pd+e+sd+gd(e,"grow","positive")+e;case 4554:return pd+gd(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return gd(gd(gd(e,/(zoom-|grab)/,pd+"$1"),/(image-set)/,pd+"$1"),e,"")+e;case 5495:case 3959:return gd(e,/(image-set\([^]*)/,pd+"$1$`$1");case 4968:return gd(gd(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+pd+e+e;case 4095:case 3583:case 4068:case 2532:return gd(e,/(.+)-inline(.+)/,pd+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kd(e)-1-t>6)switch(_d(e,t+1)){case 109:if(45!==_d(e,t+4))break;case 102:return gd(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+fd+(108==_d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~wd(e,"stretch")?Jd(gd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_d(e,t+1))break;case 6444:switch(_d(e,kd(e)-3-(~wd(e,"!important")&&10))){case 107:return gd(e,":",":"+pd)+e;case 101:return gd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pd+(45===_d(e,14)?"inline-":"")+"box$3$1"+pd+"$2$3$1"+sd+"$2box$3")+e}break;case 5936:switch(_d(e,t+11)){case 114:return pd+e+sd+gd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pd+e+sd+gd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pd+e+sd+gd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pd+e+sd+e+e}return e}function eh(e,t){for(var n="",r=Od(e),o=0;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c,styles:o,next:xh}},Sh="undefined"!=typeof document,Eh=Object.prototype.hasOwnProperty,Th=y.exports.createContext("undefined"!=typeof HTMLElement?fh({key:"css"}):null);Th.Provider;var Ch=function(e){return y.exports.forwardRef((function(t,n){var r=y.exports.useContext(Th);return e(t,r,n)}))};Sh||(Ch=function(e){return function(t){var n=y.exports.useContext(Th);return null===n?(n=fh({key:"css"}),y.exports.createElement(Th.Provider,{value:n},e(t,n))):e(t,n)}});var Ph=y.exports.createContext({}),Dh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",jh=function(e,t){var n={};for(var r in t)Eh.call(t,r)&&(n[r]=t[r]);return n[Dh]=e,n},Rh=Ch((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Dh],i=[r],a="";"string"==typeof e.className?a=dh(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var u=Oh(i,void 0,"function"==typeof r||Array.isArray(r)?y.exports.useContext(Ph):void 0),c=hh(t,u,"string"==typeof o);a+=t.key+"-"+u.name;var l={};for(var s in e)Eh.call(e,s)&&"css"!==s&&s!==Dh&&(l[s]=e[s]);l.ref=n,l.className=a;var f=y.exports.createElement(o,l);if(!Sh&&void 0!==c){for(var p,d=u.name,h=u.next;void 0!==h;)d+=" "+h.name,h=h.next;return y.exports.createElement(y.exports.Fragment,null,y.exports.createElement("style",((p={})["data-emotion"]=t.key+" "+d,p.dangerouslySetInnerHTML={__html:c},p.nonce=t.sheet.nonce,p)),f)}return f})),Ih=function(e,t){var n=arguments;if(null==t||!Eh.call(t,"css"))return y.exports.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Rh,o[1]=jh(e,t);for(var i=2;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Uh={};Object.defineProperty(Uh,"__esModule",{value:!0});var Bh=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){$h.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,Hh.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),Hh.default.createElement("input",Bh({},r,{ref:this.inputRef})),Hh.default.createElement("div",{ref:this.sizerRef,style:qh},e),this.props.placeholder?Hh.default.createElement("div",{ref:this.placeHolderSizerRef,style:qh},this.props.placeholder):null)}}]),t}(zh.Component);Xh.propTypes={className:Yh.default.string,defaultValue:Yh.default.any,extraWidth:Yh.default.oneOfType([Yh.default.number,Yh.default.string]),id:Yh.default.string,injectStyles:Yh.default.bool,inputClassName:Yh.default.string,inputRef:Yh.default.func,inputStyle:Yh.default.object,minWidth:Yh.default.oneOfType([Yh.default.number,Yh.default.string]),onAutosize:Yh.default.func,onChange:Yh.default.func,placeholder:Yh.default.string,placeholderIsMinWidth:Yh.default.bool,style:Yh.default.object,value:Yh.default.any},Xh.defaultProps={minWidth:1,injectStyles:!0};var Zh=Uh.default=Xh;function Jh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(e,t){for(var n=0;n-1}function ym(e){return mm(e)?window.pageYOffset:e.scrollTop}function vm(e,t){mm(e)?window.scrollTo(0,t):e.scrollTop=t}function bm(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function gm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sm,o=ym(e),i=t-o,a=10,u=0;function c(){var t=bm(u+=a,o,i,n);vm(e,t),u=d)return{placement:"bottom",maxHeight:t};if(k>=d&&!a)return i&&gm(c,O,E),{placement:"bottom",maxHeight:t};if(!a&&k>=r||a&&_>=r)return i&&gm(c,O,E),{placement:"bottom",maxHeight:a?_-b:k-b};if("auto"===o||a){var T=t,C=a?w:x;return C>=r&&(T=Math.min(C-b-u.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return i&&vm(c,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(x>=d&&!a)return i&&gm(c,S,E),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var P=t;return(!a&&x>=r||a&&w>=r)&&(P=a?w-g:x-g),i&&gm(c,S,E),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}var Em=function(e){return"auto"===e?"bottom":e},Tm=y.exports.createContext({getPortalPlacement:null}),Cm=function(e){rm(n,e);var t=lm(n);function n(){var e;Jh(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0,m=f-p-s,y=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>m?(n&&!a.current&&n(e),d.scrollTop=f,y=!0,a.current=!0):!h&&-t>s&&(o&&!u.current&&o(e),d.scrollTop=0,y=!0,u.current=!0),y&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),f=y.exports.useCallback((function(e){s(e,e.deltaY)}),[s]),p=y.exports.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),d=y.exports.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;s(e,t)}),[s]),h=y.exports.useCallback((function(e){if(e){var t=!!Om&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",f,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=y.exports.useCallback((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",f,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return y.exports.useEffect((function(){if(t){var e=l.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=y.exports.useRef({}),i=y.exports.useRef(null),a=y.exports.useCallback((function(e){if(Oy){var t=document.body,n=t&&t.style;if(r&&by.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Sy<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+i||0;Object.keys(gy).forEach((function(e){var t=gy[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&ky()&&(t.addEventListener("touchmove",wy,Ey),e&&(e.addEventListener("touchstart",xy,Ey),e.addEventListener("touchmove",_y,Ey))),Sy+=1}}),[]),u=y.exports.useCallback((function(e){if(Oy){var t=document.body,n=t&&t.style;Sy=Math.max(Sy-1,0),r&&Sy<1&&by.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&ky()&&(t.removeEventListener("touchmove",wy,Ey),e&&(e.removeEventListener("touchstart",xy,Ey),e.removeEventListener("touchmove",_y,Ey)))}}),[]);return y.exports.useEffect((function(){if(t){var e=i.current;return a(e),function(){u(e)}}}),[t,a,u]),function(e){i.current=e}}({isEnabled:n});return Ih(ce.Fragment,null,n&&Ih("div",{onClick:Ty,css:Cy}),t((function(e){o(e),i(e)})))}var Dy={clearIndicator:Ym,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Hm,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:jm,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return u(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),u(t,"backgroundColor",a.neutral0),u(t,"borderRadius",o),u(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),u(t,"marginBottom",i.menuGutter),u(t,"marginTop",i.menuGutter),u(t,"position","absolute"),u(t,"width","100%"),u(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Dm,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},jy={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ry={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wm(),captureMenuScroll:!wm(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){var r=am({ignoreCase:!0,ignoreAccents:!0,stringify:yy,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,u=r.trim,c=r.matchFrom,l=u?my(n):n,s=u?my(a(t)):a(t);return o&&(l=l.toLowerCase(),s=s.toLowerCase()),i&&(l=hy(l),s=dy(s)),"start"===c?s.substr(0,l.length)===l:s.indexOf(l)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function Iy(e,t,n,r){return{type:"option",data:t,isDisabled:Uy(e,t,n),isSelected:By(e,t,n),label:Ly(e,t),value:Fy(e,t),index:r}}function Ay(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return Iy(e,n,t,r)})).filter((function(t){return Ny(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Iy(e,n,t,r);return Ny(e,i)?i:void 0})).filter((function(e){return!!e}))}function My(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ey(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ny(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!zy(e)||!i)&&Vy(e,{label:a,value:u,data:o},r)}var Ly=function(e,t){return e.getOptionLabel(t)},Fy=function(e,t){return e.getOptionValue(t)};function Uy(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function By(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Fy(e,t);return n.some((function(t){return Fy(e,t)===r}))}function Vy(e,t,n){return!e.filterOption||e.filterOption(t,n)}var zy=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Hy=1,Yy=function(e){rm(n,e);var t=lm(n);function n(e){var r;return Jh(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,u=o&&r.isOptionSelected(e,a),c=r.isOptionDisabled(e,a);if(u){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(c)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat(ey(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return zy(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,c=t.isDisabled,l=t.menuIsOpen,s=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,y=d.selectValue;if(!(c||"function"==typeof s&&(s(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():u&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!f||!h||p&&r.isOptionSelected(h,y))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):u&&i&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Hy),r.state.selectValue=dm(e.value),r}return tm(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,u=a.isDisabled,c=a.menuIsOpen,l=this.state.isFocused;(l&&!u&&e.isDisabled||l&&c&&!e.menuIsOpen)&&this.focusInput(),l&&u&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?vm(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(jy):am(am({},jy),this.props.theme):jy}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,u=a.isMulti,c=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:c,options:l,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Uy(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return By(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Vy(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,u=this.getComponents().Input,c=this.state.inputIsHidden,l=this.commonProps,s=r||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?ce.createElement(u,cd({},l,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:s,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},f)):ce.createElement(vy,cd({id:s,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:sm,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:a,value:""},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,c=this.commonProps,l=this.props,s=l.controlShouldRenderValue,f=l.isDisabled,p=l.isMulti,d=l.inputValue,h=l.placeholder,m=this.state,y=m.selectValue,v=m.focusedValue,b=m.isFocused;if(!this.hasValue()||!s)return d?null:ce.createElement(u,cd({},c,{key:"placeholder",isDisabled:f,isFocused:b}),h);if(p)return y.map((function(t,a){var u=t===v;return ce.createElement(n,cd({},c,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:f,key:"".concat(e.getOptionValue(t)).concat(a),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var g=y[0];return ce.createElement(a,cd({},c,{data:g,isDisabled:f}),this.formatOptionLabel(g,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ce.createElement(e,cd({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return ce.createElement(e,cd({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return ce.createElement(n,cd({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ce.createElement(e,cd({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,l=t.Option,s=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,b=p.maxMenuHeight,g=p.menuIsOpen,w=p.menuPlacement,_=p.menuPosition,x=p.menuPortalTarget,k=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,S=p.noOptionsMessage,E=p.onMenuScrollToTop,T=p.onMenuScrollToBottom;if(!g)return null;var C,P=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,u=t.label,c=t.value,p=f===o,d=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),y={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return ce.createElement(l,cd({},s,{innerProps:y,data:o,isDisabled:i,isSelected:a,key:m,label:u,type:r,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,u="".concat(e.getElementId("group"),"-").concat(a),c="".concat(u,"-heading");return ce.createElement(n,cd({},s,{key:u,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(m){var D=y({inputValue:h});if(null===D)return null;C=ce.createElement(u,s,D)}else{var j=S({inputValue:h});if(null===j)return null;C=ce.createElement(c,s,j)}var R={minMenuHeight:v,maxMenuHeight:b,menuPlacement:w,menuPosition:_,menuShouldScrollIntoView:O},I=ce.createElement(Cm,cd({},s,R),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,u=r.maxHeight;return ce.createElement(o,cd({},s,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),ce.createElement(Py,{captureEnabled:d,onTopArrive:E,onBottomArrive:T,lockEnabled:k},(function(t){return ce.createElement(i,cd({},s,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:u,focusedOption:f}),C)})))}));return x||"fixed"===_?ce.createElement(a,cd({},s,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:_}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var u=a.map((function(t){return e.getOptionValue(t)})).join(n);return ce.createElement("input",{name:i,type:"hidden",value:u})}var c=a.length>0?a.map((function(t,n){return ce.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):ce.createElement("input",{name:i,type:"hidden"});return ce.createElement("div",null,c)}var l=a[0]?this.getOptionValue(a[0]):"";return ce.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return ce.createElement(ay,cd({},e,{ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,u=i.id,c=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused,f=this.commonProps=this.getCommonProps();return ce.createElement(r,cd({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:s}),this.renderLiveRegion(),ce.createElement(t,cd({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:s,menuIsOpen:l}),ce.createElement(o,cd({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),ce.createElement(n,cd({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,u=e.menuIsOpen,c=e.inputValue,l={};if(n&&(a!==n.value||i!==n.options||u!==n.menuIsOpen||c!==n.inputValue)){var s=dm(a),f=u?function(e,t){return My(Ay(e,t))}(e,s):[],p=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,f),focusedValue:p,clearFocusValueOnUpdate:!1}}var d=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return am(am(am({},l),d),{},{prevProps:e})}}]),n}(y.exports.Component);Yy.defaultProps=Ry;var Wy={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},qy=function(e){var t,n;return n=t=function(t){rm(r,t);var n=lm(r);function r(){var e;Jh(this,r);for(var t=arguments.length,o=new Array(t),i=0;i1?n-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Gy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3])||arguments[3];function o(o){return function(){if(o in e)return t[o]!==fv&&(t[o]=!r||fv),n&&(n[o]=!0),e[o]}}var i={};for(var a in e)Object.defineProperty(i,a,{get:o(a)});return i},Ov=function(e){return Jy(e)&&!Object.keys(e).length},Sv=function(e,t,n){var r=gv(e,"name");return Ov(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((function(e){return t[e]===(!n||fv)}))},Ev=function(e){return Array.isArray(e)?e:[e]};function Tv(e){var t=_v(),n=e.name,r=e.control,o=void 0===r?t.control:r,i=e.shouldUnregister,u=a(y.exports.useState(ov(o._formValues,n,ov(o._defaultValues,n,e.defaultValue))),2),c=u[0],l=u[1],s=function(e){var t=_v(),n=e||{},r=n.control,o=void 0===r?t.control:r,i=n.disabled,u=n.name,c=y.exports.useRef(u),l=a(y.exports.useState(o._formState),2),s=l[0],f=l[1],p=y.exports.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1});return c.current=u,y.exports.useEffect((function(){var e=o._subjects.state.subscribe({next:function(e){return(!c.current||!e.name||Ev(c.current).includes(e.name))&&Sv(e,p.current)&&f(Object.assign(Object.assign({},o._formState),e))}});return i&&e.unsubscribe(),function(){return e.unsubscribe()}}),[i,o]),kv(s,o._proxyFormState,p.current,!1)}({control:o||t.control,name:n}),f=o.register(n,Object.assign(Object.assign({},e.rules),{value:c})),p=y.exports.useCallback((function(e,t){var n=ov(o._fields,e);n&&(n._f.mount=t)}),[o]);return y.exports.useEffect((function(){var e=o._subjects.control.subscribe({next:function(e){return(!e.name||n===e.name)&&l(ov(e.values,n))}});return p(n,!0),function(){e.unsubscribe();var t=o._shouldUnregister||i;(tv(o._names.array,n)?t&&!o._stateFlags.action:t)?o.unregister(n):p(n,!1)}}),[n,o,i,p]),{field:{onChange:function(e){var t=function(e){return Jy(e)&&e.target?Ky(e.target)?e.target.checked:e.target.value:e}(e);l(t),f.onChange({target:{value:t,name:n},type:av})},onBlur:function(){f.onBlur({target:{value:c,name:n},type:iv})},name:n,value:c,ref:function(e){var t=ov(o._fields,n);e&&t&&e.focus&&(t._f.ref={focus:function(){return e.focus()},setCustomValidity:function(t){return e.setCustomValidity(t)},reportValidity:function(){return e.reportValidity()}})}},formState:s,fieldState:{invalid:!!ov(s.errors,n),isDirty:!!ov(s.dirtyFields,n),isTouched:!!ov(s.touchedFields,n),error:ov(s.errors,n)}}}var Cv=function(e){return e.render(Tv(e))},Pv=function(e,t,n,r,o){return t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),u({},r,o||!0))}):{}},Dv=function(e){return/^\w*$/.test(e)},jv=function(e){return nv(e.replace(/["|']|\]/g,"").split(/\.|\[/))};function Rv(e,t,n){for(var r=-1,o=Dv(t)?[t]:jv(t),i=o.length,a=i-1;++r0&&void 0!==arguments[0]?arguments[0]:{};return gv(e,t)}))};function Mv(e){var t,n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(!n&&!Jy(e))return e;for(var r in t=n?[]:{},e)t[r]=Mv(e[r])}return t}var Nv=function(e){return Xy(e)||!Zy(e)};function Lv(e,t){if(Nv(e)||Nv(t)||Qy(e)||Qy(t))return e===t;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0,i=n;o0&&(n=e);++u1){var t=e.filter((function(e){return e&&e.checked&&!e.disabled})).map((function(e){return e.value}));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!rv(e[0].attributes.value)?rv(e[0].value)||""===e[0].value?eb:{value:e[0].value,isValid:!0}:eb:Jv}return Jv},nb=function(e,t){var n=t.valueAsNumber,r=t.valueAsDate,o=t.setValueAs;return rv(e)?e:n?""===e?NaN:+e:r?new Date(e):o?o(e):e},rb={isValid:!1,value:null},ob=function(e){return Array.isArray(e)?e.reduce((function(e,t){return t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e}),rb):rb};function ib(e){var t=e.ref;if(!(e.refs?e.refs.every((function(e){return e.disabled})):t.disabled))return Bv(t)?t.files:Yv(t)?ob(e.refs).value:Hv(t)?function(e){return ey(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(t.options):Ky(t)?tb(e.refs).value:nb(rv(t.value)?e.ref.value:t.value,e)}var ab=function(e,t,n,r){var o,i={},a=$y(e);try{for(a.s();!(o=a.n()).done;){var u=o.value,c=ov(t,u);c&&Rv(i,u,c._f)}}catch(e){a.e(e)}finally{a.f()}return{criteriaMode:n,names:ey(e),fields:i,shouldUseNativeValidation:r}},ub=function(e){return e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate)};function cb(e,t){if(Nv(e)||Nv(t))return t;for(var n in t){var r=e[n],o=t[n];try{e[n]=Jy(r)&&Jy(o)||Array.isArray(r)&&Array.isArray(o)?cb(r,o):o}catch(e){}}return e}function lb(e,t,n,r,o){for(var i=-1;++i2&&void 0!==arguments[2]?arguments[2]:"validate";if(db(e)||Array.isArray(e)&&e.every(db)||Uv(e)&&!e)return{type:n,message:db(e)?e:"",ref:t}}var yb,vb,bb,gb,wb,_b,xb=function(e){return Jy(e)&&!hb(e)?e:{value:e,message:""}},kb=function(){var e=l(m.mark((function e(t,n,r,o){var i,a,u,c,l,s,f,p,d,h,y,v,b,g,w,_,x,k,O,S,E,T,C,P,D,j,R,I,A,M,N,L,F,U,B,V,z,H,Y,W,q,$,G,K;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t._f,a=i.ref,u=i.refs,c=i.required,l=i.maxLength,s=i.minLength,f=i.min,p=i.max,d=i.pattern,h=i.validate,y=i.name,v=i.valueAsNumber,b=i.mount,g=i.disabled,b&&!g){e.next=3;break}return e.abrupt("return",{});case 3:if(w=u?u[0]:a,_=function(e){o&&w.reportValidity&&(w.setCustomValidity(Uv(e)?"":e||" "),w.reportValidity())},x={},k=Yv(a),O=Ky(a),S=k||O,E=(v||Bv(a))&&!a.value||""===n||Array.isArray(n)&&!n.length,T=Pv.bind(null,y,r,x),C=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:hv,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:mv,i=e?t:n;x[y]=Object.assign({type:e?r:o,message:i,ref:a},T(e?r:o,i))},!c||!(!S&&(E||Xy(n))||Uv(n)&&!n||O&&!tb(u).isValid||k&&!ob(u).isValid)){e.next=19;break}if(P=db(c)?{value:!!c,message:c}:xb(c),D=P.value,j=P.message,!D){e.next=19;break}if(x[y]=Object.assign({type:vv,message:j,ref:w},T(vv,j)),r){e.next=19;break}return _(j),e.abrupt("return",x);case 19:if(E||Xy(f)&&Xy(p)){e.next=28;break}if(A=xb(p),M=xb(f),isNaN(n)?(L=a.valueAsDate||new Date(n),qv(A.value)&&(R=L>new Date(A.value)),qv(M.value)&&(I=LA.value),Xy(M.value)||(I=NF.value,V=!Xy(U.value)&&n.length0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},Ob),t),r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},o={},i=n.defaultValues||{},c=n.shouldUnregister?{}:Mv(i),s={action:!1,mount:!1,watch:!1},f=0,p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},d={},h={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},y={watch:new Xv,control:new Xv,array:new Xv,state:new Xv},v=Fv(n.mode),b=Fv(n.reValidateMode),g=n.criteriaMode===fv,w=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=ov(o,e),a=t;if(i){var u=i._f;u&&(Rv(c,e,nb(t,u)),a=$v&&zv(u.ref)&&Xy(t)?"":t,Bv(u.ref)&&!qv(a)?u.ref.files=a:Hv(u.ref)?ey(u.ref.options).forEach((function(e){return e.selected=a.includes(e.value)})):u.refs?Ky(u.ref)?u.refs.length>1?u.refs.forEach((function(e){return e.checked=Array.isArray(a)?!!a.find((function(t){return t===e.value})):a===e.value})):u.refs[0].checked=!!a:u.refs.forEach((function(e){return e.checked=e.value===a})):u.ref.value=a,r&&y.control.next({values:c,name:e}))}(n.shouldDirty||n.shouldTouch)&&S(e,a,n.shouldTouch),n.shouldValidate&&F(e)},S=function(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a={name:e},u=!1;if(h.isDirty){var c=r.isDirty;r.isDirty=j(),a.isDirty=r.isDirty,u=c!==a.isDirty}if(h.dirtyFields&&!n){var l=ov(r.dirtyFields,e),s=!Lv(ov(i,e),t);s?Rv(r.dirtyFields,e,!0):Zv(r.dirtyFields,e),a.dirtyFields=r.dirtyFields,u=u||l!==ov(r.dirtyFields,e)}var f=ov(r.touchedFields,e);return n&&!f&&(Rv(r.touchedFields,e,n),a.touchedFields=r.touchedFields,u=u||h.touchedFields&&f!==n),u&&o&&y.state.next(a),u?a:{}},E=function(){var e=l(m.mark((function e(t){return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.resolver){e.next=6;break}return e.next=3,n.resolver(Object.assign({},c),n.context,ab(t||p.mount,o,n.criteriaMode,n.shouldUseNativeValidation));case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0={};case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=l(m.mark((function e(t){var n,o,i,a,u,c;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E();case 2:if(n=e.sent,o=n.errors,t){i=$y(t);try{for(i.s();!(a=i.n()).done;)u=a.value,(c=ov(o,u))?Rv(r.errors,u,c):Zv(r.errors,u)}catch(e){i.e(e)}finally{i.f()}}else r.errors=o;return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=l(m.mark((function e(t,o){var i,a,u,l,s,f,p=arguments;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=p.length>2&&void 0!==p[2]?p[2]:{valid:!0},e.t0=m.keys(t);case 2:if((e.t1=e.t0()).done){e.next=23;break}if(a=e.t1.value,!(u=t[a])){e.next=21;break}if(l=u._f,s=gv(u,"_f"),!l){e.next=17;break}return e.next=11,kb(u,ov(c,l.name),g,n.shouldUseNativeValidation);case 11:if(!(f=e.sent)[l.name]){e.next=16;break}if(i.valid=!1,!o){e.next=16;break}return e.abrupt("break",23);case 16:o||(f[l.name]?Rv(r.errors,l.name,f[l.name]):Zv(r.errors,l.name));case 17:if(e.t2=s,!e.t2){e.next=21;break}return e.next=21,C(s,o,i);case 21:e.next=2;break;case 23:return e.abrupt("return",i.valid);case 24:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),P=function(){var e=l(m.mark((function e(t){var i,a,u,l,s,f,p,w,x,O,T,C,P,D,j,I,A,M,N,L;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.type,a=t.target,u=t.target,l=u.value,s=u.name,f=u.type,!(p=ov(o,s))){e.next=35;break}if(O=f?ib(p._f):l,T=i===iv,C=!ub(p._f)&&!n.resolver&&!ov(r.errors,s)&&!p._f.deps||fb(T,ov(r.touchedFields,s),r.isSubmitted,b,v),P=!T&&_(s),Rv(c,s,O),D=S(s,O,T,!1),j=!Ov(D)||P,!T&&y.watch.next({name:s,type:i}),!C){e.next=13;break}return e.abrupt("return",j&&y.state.next(Object.assign({name:s},P?{}:D)));case 13:if(!T&&P&&y.state.next({}),d[s]=(d[s],1),h.isValidating&&y.state.next({isValidating:!0}),!n.resolver){e.next=26;break}return e.next=19,E([s]);case 19:I=e.sent,A=I.errors,w=ov(A,s),Ky(a)&&!w&&(M=ev(s),N=ov(o,M),Array.isArray(N)&&N.every((function(e){return e._f&&Ky(e._f.ref)}))&&((L=ov(A,M,{})).type&&(w=L),s=M)),x=Ov(A),e.next=33;break;case 26:return e.next=28,kb(p,ov(c,s),g,n.shouldUseNativeValidation);case 28:return e.t0=s,w=e.sent[e.t0],e.next=32,R(!0);case 32:x=e.sent;case 33:p._f.deps&&F(p._f.deps),k(!1,s,x,w,D);case 35:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(e,t,n){var r=ov(o,e);if(r){var a=ov(c,e),u=rv(a)?ov(i,e):a;rv(u)||n&&n.defaultChecked||t?Rv(c,e,t?u:ib(r._f)):O(e,u)}s.mount&&R()},j=function(e,t){return e&&t&&Rv(c,e,t),!Lv(Object.assign({},U()),i)},R=function(){var e=l(m.mark((function e(t){var i;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!1,!h.isValid){e.next=15;break}if(!n.resolver){e.next=10;break}return e.t1=Ov,e.next=6,E();case 6:e.t2=e.sent.errors,e.t0=(0,e.t1)(e.t2),e.next=13;break;case 10:return e.next=12,C(o,!0);case 12:e.t0=e.sent;case 13:i=e.t0,t||i===r.isValid||(r.isValid=i,y.state.next({isValid:i}));case 15:return e.abrupt("return",i);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function e(t,n,r){return Object.entries(n).forEach((function(n){var i=a(n,2),u=i[0],c=i[1],l="".concat(t,".").concat(u),s=ov(o,l);!p.array.has(t)&&Nv(c)&&(!s||s._f)||Qy(c)?O(l,c,r,!0):e(l,c,r)}))},A=function(e,t,n,r){var o=Object.assign({},n||s.mount?c:rv(t)?i:qv(e)?u({},e,t):t);if(!e)return r&&(p.watchAll=!0),o;var a,l=[],f=$y(Ev(e));try{for(f.s();!(a=f.n()).done;){var d=a.value;r&&p.watch.add(d),l.push(ov(o,d))}}catch(e){f.e(e)}finally{f.f()}return Array.isArray(e)?l:l[0]},M=function(e,t,n,a){var u,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],l=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],f=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];if(s.action=!0,f&&ov(o,t)&&(u=n(ov(o,t),a.argA,a.argB),l&&Rv(o,t,u)),Array.isArray(ov(r.errors,t))){var p=n(ov(r.errors,t),a.argA,a.argB);l&&Rv(r.errors,t,p),pb(r.errors,t)}if(h.touchedFields&&ov(r.touchedFields,t)){var d=n(ov(r.touchedFields,t),a.argA,a.argB);l&&Rv(r.touchedFields,t,d),pb(r.touchedFields,t)}(h.dirtyFields||h.isDirty)&&(Rv(r.dirtyFields,t,sb(Av(c,e),ov(i,t,[]),ov(r.dirtyFields,t,[]))),c&&Rv(r.dirtyFields,t,sb(Av(c,e),ov(i,t,[]),ov(r.dirtyFields,t,[]))),pb(r.dirtyFields,t)),y.state.next({isDirty:j(t,Av(c,e)),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})},N=function(e){return ov(s.mount?c:i,e,[])},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ov(o,e),u=p.array.has(e);Rv(c,e,t),u?(y.array.next({name:e,values:c}),(h.isDirty||h.dirtyFields)&&n.shouldDirty&&(Rv(r.dirtyFields,e,sb(t,ov(i,e,[]),ov(r.dirtyFields,e,[]))),y.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:j(e,t)}))):!a||a._f||Xy(t)?O(e,t,n,!0):I(e,t,n),_(e)&&y.state.next({}),y.watch.next({name:e})},F=function(){var e=l(m.mark((function e(t){var i,a,c,s,f=arguments;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=f.length>1&&void 0!==f[1]?f[1]:{},a=Ev(t),y.state.next({isValidating:!0}),!n.resolver){e.next=10;break}return e.next=6,T(rv(t)?t:a);case 6:s=e.sent,c=t?a.every((function(e){return!ov(s,e)})):Ov(s),e.next=20;break;case 10:if(!t){e.next=17;break}return e.next=13,Promise.all(a.map(function(){var e=l(m.mark((function e(t){var n;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=ov(o,t),e.next=3,C(n._f?u({},t,n):n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 13:c=e.sent.every(Boolean),R(),e.next=20;break;case 17:return e.next=19,C(o);case 19:c=e.sent;case 20:return y.state.next(Object.assign(Object.assign({},qv(t)?{name:t}:{}),{errors:r.errors,isValid:c,isValidating:!1})),i.shouldFocus&&!c&&Iv(o,(function(e){return ov(r.errors,e)}),t?a:p.mount),e.abrupt("return",c);case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(e){var t=Object.assign(Object.assign({},i),s.mount?c:{});return rv(e)?t:qv(e)?ov(t,e):e.map((function(e){return ov(t,e)}))},B=function(e){e?Ev(e).forEach((function(e){return Zv(r.errors,e)})):r.errors={},y.state.next({errors:r.errors})},V=function(e,t,n){var i=(ov(o,e,{_f:{}})._f||{}).ref;Rv(r.errors,e,Object.assign(Object.assign({},t),{ref:i})),y.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},z=function(e,t){return Vv(e)?y.watch.subscribe({next:function(n){return e(A(void 0,t),n)}}):A(e,t,!1,!0)},H=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=$y(e?Ev(e):p.mount);try{for(u.s();!(t=u.n()).done;){var l=t.value;p.mount.delete(l),p.array.delete(l),ov(o,l)&&(a.keepValue||(Zv(o,l),Zv(c,l)),!a.keepError&&Zv(r.errors,l),!a.keepDirty&&Zv(r.dirtyFields,l),!a.keepTouched&&Zv(r.touchedFields,l),!n.shouldUnregister&&!a.keepDefaultValue&&Zv(i,l))}}catch(e){u.e(e)}finally{u.f()}y.watch.next({}),y.state.next(Object.assign(Object.assign({},r),a.keepDirty?{isDirty:j()}:{})),!a.keepIsValid&&R()},Y=function(e,t,n){W(e,n);var r=ov(o,e),i=rv(t.value)&&t.querySelectorAll&&t.querySelectorAll("input,select,textarea")[0]||t,a=Wv(i);i===r._f.ref||a&&nv(r._f.refs||[]).find((function(e){return e===i}))||(r={_f:a?Object.assign(Object.assign({},r._f),{refs:[].concat(ey(nv(r._f.refs||[]).filter((function(e){return zv(e)&&document.contains(e)}))),[i]),ref:{type:i.type,name:e}}):Object.assign(Object.assign({},r._f),{ref:i})},Rv(o,e,r),(!n||!n.disabled)&&D(e,!1,i))},W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ov(o,e);return Rv(o,e,{_f:Object.assign(Object.assign(Object.assign({},r&&r._f?r._f:{ref:{name:e}}),{name:e,mount:!0}),t)}),p.mount.add(e),rv(t.value)||Rv(c,e,t.value),r&&Uv(t.disabled)&&Rv(c,e,t.disabled?void 0:ov(c,e,ib(r._f))),!r&&D(e,!0),Sb?{name:e}:Object.assign(Object.assign({name:e},Uv(t.disabled)?{disabled:t.disabled}:{}),{onChange:P,onBlur:P,ref:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(r){if(r)Y(e,r,t);else{var i=ov(o,e,{}),a=n.shouldUnregister||t.shouldUnregister;i._f&&(i._f.mount=!1),a&&(!tv(p.array,e)||!s.action)&&p.unMount.add(e)}}))})},q=function(e,t){return function(){var i=l(m.mark((function i(a){var u,l,s,f,d;return m.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist()),u=!0,l=Object.assign({},c),y.state.next({isSubmitting:!0}),i.prev=4,!n.resolver){i.next=15;break}return i.next=8,E();case 8:s=i.sent,f=s.errors,d=s.values,r.errors=f,l=d,i.next=17;break;case 15:return i.next=17,C(o);case 17:if(!Ov(r.errors)||!Object.keys(r.errors).every((function(e){return ov(l,e)}))){i.next=23;break}return y.state.next({errors:{},isSubmitting:!0}),i.next=21,e(l,a);case 21:i.next=28;break;case 23:if(i.t0=t,!i.t0){i.next=27;break}return i.next=27,t(r.errors,a);case 27:n.shouldFocusError&&Iv(o,(function(e){return ov(r.errors,e)}),p.mount);case 28:i.next=34;break;case 30:throw i.prev=30,i.t1=i.catch(4),u=!1,i.t1;case 34:return i.prev=34,r.isSubmitted=!0,y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ov(r.errors)&&u,submitCount:r.submitCount+1,errors:r.errors}),i.finish(34);case 38:case"end":return i.stop()}}),i,null,[[4,30,34,38]])})));return function(e){return i.apply(this,arguments)}}()},$=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e||i,u=Mv(a);if(n.keepValues||(c=t.shouldUnregister?{}:u),$v&&!n.keepValues){var l,f=$y(p.mount);try{for(f.s();!(l=f.n()).done;){var d=l.value,m=ov(o,d);if(m&&m._f){var v=Array.isArray(m._f.refs)?m._f.refs[0]:m._f.ref;try{zv(v)&&v.closest("form").reset();break}catch(e){}}}}catch(e){f.e(e)}finally{f.f()}}n.keepDefaultValues||(i=Object.assign({},a)),n.keepValues||(o={},y.control.next({values:n.keepDefaultValues?i:Object.assign({},a)}),y.watch.next({}),y.array.next({values:u})),p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},y.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty?r.isDirty:!!n.keepDefaultValues&&Lv(e,i),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1}),s.mount=!h.isValid||!!n.keepIsValid,s.watch=!!t.shouldUnregister},G=function(e){return ov(o,e)._f.ref.focus()},K=function(){var e,t=$y(p.unMount);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=ov(o,n);r&&(r._f.refs?r._f.refs.every(Gv):Gv(r._f.ref))&&H(n)}}catch(e){t.e(e)}finally{t.f()}p.unMount=new Set};return{control:{register:W,unregister:H,_getWatch:A,_getIsDirty:j,_updateValid:R,_removeFields:K,_updateFieldArray:M,_getFieldArrayValue:N,_subjects:y,_shouldUnregister:n.shouldUnregister,_proxyFormState:h,get _fields(){return o},set _fields(e){o=e},get _formValues(){return c},set _formValues(e){c=e},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return i},set _defaultValues(e){i=e},get _names(){return p},set _names(e){p=e},get _formState(){return r},set _formState(e){r=e},_updateProps:function(e){n=Object.assign(Object.assign({},Ob),e)}},trigger:F,register:W,handleSubmit:q,watch:z,setValue:L,getValues:U,reset:$,clearErrors:B,unregister:H,setError:V,setFocus:G}}function Tb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=y.exports.useRef(),n=y.exports.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}}),r=a(n,2),o=r[0],i=r[1];t.current?t.current.control._updateProps(e):t.current=Object.assign(Object.assign({},Eb(e)),{formState:o});var u=t.current.control;return y.exports.useEffect((function(){var e=u._subjects.state.subscribe({next:function(e){Sv(e,u._proxyFormState,!0)&&(u._formState=Object.assign(Object.assign({},u._formState),e),i(Object.assign({},u._formState)))}});return function(){e.unsubscribe()}}),[u]),y.exports.useEffect((function(){u._stateFlags.mount||(u._proxyFormState.isValid&&u._updateValid(),u._stateFlags.mount=!0),u._stateFlags.watch&&(u._stateFlags.watch=!1,u._subjects.state.next({})),u._removeFields()})),t.current.formState=kv(o,u._proxyFormState),t.current}!function(e){e.Checkbox="Checkbox",e.Email="Email",e.ParagraphText="ParagraphText",e.PhoneNumber="PhoneNumber",e.Select="Select",e.SingleLine="SingleLine",e.StaticText="StaticText",e.Country="Country",e.GroupCheckboxes="GroupCheckboxes",e.Date="Date",e.ToggleSwitch="ToggleSwitch",e.NameField="name-type-field",e.EndSubmission="EndSubmission",e.FileAttachment="FileAttachment",e.GroupToggleSwitch="GroupToggleSwitch",e.OptionRule="OptionRule"}(yb||(yb={})),function(e){e.SUCCESS_SUBMISSION="SUCCESS_SUBMISSION",e.ERROR_SUBMISSION="ERROR_SUBMISSION",e.DOUBLE_OPT_IN="DOUBLE_OPT_IN",e.ERROR_COOKIE="ERROR_COOKIE"}(vb||(vb={})),function(e){e.SELECT_ALL_AND_UNSELECT_ALL="SELECT_ALL_AND_UNSELECT_ALL",e.ACTIVE_ALL_AND_INACTIVE_ALL="ACTIVE_ALL_AND_INACTIVE_ALL",e.UNSUBSCRIBE_ALL="UNSUBSCRIBE_ALL"}(bb||(bb={})),function(e){e.OPT_IN="OPT_IN",e.OPT_OUT="OPT_OUT"}(gb||(gb={})),function(e){e.HYPERLINK="HYPERLINK",e.TEXT="TEXT_ONLY",e.NUMBER="NUMBER_ONLY"}(wb||(wb={})),function(e){e.DASHED_FORMAT="DASHED_FORMAT",e.INTERNATIONAL_FORMAT="INTERNATIONAL_FORMAT"}(_b||(_b={}));var Cb,Pb,Db=function(e){if(!e)return null;if(e.selectedCountry&&e.phoneNumber){if("+1"===(null==e?void 0:e.selectedCountry.value)&&e.format===_b.DASHED_FORMAT)return function(e){var t=0;return"(XXX) XXX-XXXX".replace(/X/g,(function(){var n;return null!==(n=e[t++])&&void 0!==n?n:""}))}(e.phoneNumber);var t=e.showCallingCodes?e.selectedCountry.value:"";return"".concat(t).concat(e.phoneNumber)}return e.phoneNumber};function jb(e){return(jb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ib(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o/gm),$g=hg(/^data-[\-\w.\u00B7-\uFFFF]/),Gg=hg(/^aria-[\-\w]+$/),Kg=hg(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qg=hg(/^(?:\w+script|data):/i),Xg=hg(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Zg="function"==typeof Symbol&&"symbol"===ug(Symbol.iterator)?function(e){return ug(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ug(e)};function Jg(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:ew(),n=function(t){return e(t)};if(n.version="2.3.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,u=t.Node,c=t.Element,l=t.NodeFilter,s=t.NamedNodeMap,f=void 0===s?t.NamedNodeMap||t.MozNamedAttrMap:s,p=t.Text,d=t.Comment,h=t.DOMParser,m=t.trustedTypes,y=c.prototype,v=Ig(y,"cloneNode"),b=Ig(y,"nextSibling"),g=Ig(y,"childNodes"),w=Ig(y,"parentNode");if("function"==typeof a){var _=o.createElement("template");_.content&&_.content.ownerDocument&&(o=_.content.ownerDocument)}var x=tw(m,r),k=x&&te?x.createHTML(""):"",O=o,S=O.implementation,E=O.createNodeIterator,T=O.createDocumentFragment,C=O.getElementsByTagName,P=r.importNode,D={};try{D=Rg(o).documentMode?o.documentMode:{}}catch(e){}var j={};n.isSupported="function"==typeof w&&S&&void 0!==S.createHTMLDocument&&9!==D;var R=Wg,I=qg,A=$g,M=Gg,N=Qg,L=Xg,F=Kg,U=null,B=jg({},[].concat(Jg(Ag),Jg(Mg),Jg(Ng),Jg(Fg),Jg(Bg))),V=null,z=jg({},[].concat(Jg(Vg),Jg(zg),Jg(Hg),Jg(Yg))),H=null,Y=null,W=!0,q=!0,$=!1,G=!1,K=!1,Q=!1,X=!1,Z=!1,J=!1,ee=!0,te=!1,ne=!0,re=!0,oe=!1,ie={},ae=jg({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ue=null,ce=jg({},["audio","video","img","source","image","track"]),le=null,se=jg({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml",he=de,me=!1,ye=null,ve=o.createElement("form"),be=function(e){ye&&ye===e||(e&&"object"===(void 0===e?"undefined":Zg(e))||(e={}),e=Rg(e),U="ALLOWED_TAGS"in e?jg({},e.ALLOWED_TAGS):B,V="ALLOWED_ATTR"in e?jg({},e.ALLOWED_ATTR):z,le="ADD_URI_SAFE_ATTR"in e?jg(Rg(se),e.ADD_URI_SAFE_ATTR):se,ue="ADD_DATA_URI_TAGS"in e?jg(Rg(ce),e.ADD_DATA_URI_TAGS):ce,H="FORBID_TAGS"in e?jg({},e.FORBID_TAGS):{},Y="FORBID_ATTR"in e?jg({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,J=e.RETURN_DOM_FRAGMENT||!1,ee=!1!==e.RETURN_DOM_IMPORT,te=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,F=e.ALLOWED_URI_REGEXP||F,he=e.NAMESPACE||de,G&&(q=!1),J&&(Z=!0),ie&&(U=jg({},[].concat(Jg(Bg))),V=[],!0===ie.html&&(jg(U,Ag),jg(V,Vg)),!0===ie.svg&&(jg(U,Mg),jg(V,zg),jg(V,Yg)),!0===ie.svgFilters&&(jg(U,Ng),jg(V,zg),jg(V,Yg)),!0===ie.mathMl&&(jg(U,Fg),jg(V,Hg),jg(V,Yg))),e.ADD_TAGS&&(U===B&&(U=Rg(U)),jg(U,e.ADD_TAGS)),e.ADD_ATTR&&(V===z&&(V=Rg(V)),jg(V,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&jg(le,e.ADD_URI_SAFE_ATTR),re&&(U["#text"]=!0),K&&jg(U,["html","head","body"]),U.table&&(jg(U,["tbody"]),delete H.tbody),dg&&dg(e),ye=e)},ge=jg({},["mi","mo","mn","ms","mtext"]),we=jg({},["foreignobject","desc","title","annotation-xml"]),_e=jg({},Mg);jg(_e,Ng),jg(_e,Lg);var xe=jg({},Fg);jg(xe,Ug);var ke=function(e){var t=w(e);t&&t.tagName||(t={namespaceURI:de,tagName:"template"});var n=kg(e.tagName),r=kg(t.tagName);if(e.namespaceURI===pe)return t.namespaceURI===de?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||ge[r]):Boolean(_e[n]);if(e.namespaceURI===fe)return t.namespaceURI===de?"math"===n:t.namespaceURI===pe?"math"===n&&we[r]:Boolean(xe[n]);if(e.namespaceURI===de){if(t.namespaceURI===pe&&!we[r])return!1;if(t.namespaceURI===fe&&!ge[r])return!1;var o=jg({},["title","style","font","a","script"]);return!xe[n]&&(o[n]||!_e[n])}return!1},Oe=function(e){xg(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=k}catch(t){e.remove()}}},Se=function(e,t){try{xg(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){xg(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!V[e])if(Z||J)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ee=function(e){var t=void 0,n=void 0;if(X)e=""+e;else{var r=Og(e,/^[\r\n\t ]+/);n=r&&r[0]}var i=x?x.createHTML(e):e;if(he===de)try{t=(new h).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){t=S.createDocument(he,"template",null);try{t.documentElement.innerHTML=me?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),he===de?C.call(t,K?"html":"body")[0]:K?t.documentElement:a},Te=function(e){return E.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Ce=function(e){return!(e instanceof p||e instanceof d)&&!("string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof f&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},Pe=function(e){return"object"===(void 0===u?"undefined":Zg(u))?e instanceof u:e&&"object"===(void 0===e?"undefined":Zg(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,r){j[e]&&wg(j[e],(function(e){e.call(n,t,r,ye)}))},je=function(e){var t=void 0;if(De("beforeSanitizeElements",e,null),Ce(e))return Oe(e),!0;if(Og(e.nodeName,/[\u0080-\uFFFF]/))return Oe(e),!0;var r=kg(e.nodeName);if(De("uponSanitizeElement",e,{tagName:r,allowedTags:U}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&Cg(/<[/\w]/g,e.innerHTML)&&Cg(/<[/\w]/g,e.textContent))return Oe(e),!0;if(!U[r]||H[r]){if(re&&!ae[r]){var o=w(e)||e.parentNode,i=g(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(v(i[a],!0),b(e))}return Oe(e),!0}return e instanceof c&&!ke(e)?(Oe(e),!0):"noscript"!==r&&"noembed"!==r||!Cg(/<\/no(script|embed)/i,e.innerHTML)?(G&&3===e.nodeType&&(t=e.textContent,t=Sg(t,R," "),t=Sg(t,I," "),e.textContent!==t&&(xg(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Re=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in o||n in ve))return!1;if(q&&!Y[t]&&Cg(A,t));else if(W&&Cg(M,t));else{if(!V[t]||Y[t])return!1;if(le[t]);else if(Cg(F,Sg(n,L,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Eg(n,"data:")||!ue[e]){if($&&!Cg(N,Sg(n,L,"")));else if(n)return!1}else;}return!0},Ie=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;De("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V};for(i=a.length;i--;){var c=t=a[i],l=c.name,s=c.namespaceURI;if(r=Tg(t.value),o=kg(l),u.attrName=o,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,u),r=u.attrValue,!u.forceKeepAttr&&(Se(l,e),u.keepAttr))if(Cg(/\/>/i,r))Se(l,e);else{G&&(r=Sg(r,R," "),r=Sg(r,I," "));var f=e.nodeName.toLowerCase();if(Re(f,o,r))try{s?e.setAttributeNS(s,l,r):e.setAttribute(l,r),_g(n.removed)}catch(e){}}}De("afterSanitizeAttributes",e,null)}},Ae=function e(t){var n=void 0,r=Te(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),je(n)||(n.content instanceof i&&e(n.content),Ie(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var a=void 0,c=void 0,l=void 0,s=void 0,f=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Pe(e)){if("function"!=typeof e.toString)throw Pg("toString is not a function");if("string"!=typeof(e=e.toString()))throw Pg("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Zg(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Pe(e))return t.toStaticHTML(e.outerHTML)}return e}if(Q||be(o),n.removed=[],"string"==typeof e&&(oe=!1),oe);else if(e instanceof u)1===(c=(a=Ee("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Z&&!G&&!K&&-1===e.indexOf("<"))return x&&te?x.createHTML(e):e;if(!(a=Ee(e)))return Z?null:k}a&&X&&Oe(a.firstChild);for(var p=Te(oe?e:a);l=p.nextNode();)3===l.nodeType&&l===s||je(l)||(l.content instanceof i&&Ae(l.content),Ie(l),s=l);if(s=null,oe)return e;if(Z){if(J)for(f=T.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return ee&&(f=P.call(r,f,!0)),f}var d=K?a.outerHTML:a.innerHTML;return G&&(d=Sg(d,R," "),d=Sg(d,I," ")),x&&te?x.createHTML(d):d},n.setConfig=function(e){be(e),Q=!0},n.clearConfig=function(){ye=null,Q=!1},n.isValidAttribute=function(e,t,n){ye||be({});var r=kg(e),o=kg(t);return Re(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(j[e]=j[e]||[],xg(j[e],t))},n.removeHook=function(e){j[e]&&_g(j[e])},n.removeHooks=function(e){j[e]&&(j[e]=[])},n.removeAllHooks=function(){j={}},n}(),Sw=function(e){var t=e.id,n=e.showLabel,r=e.label,o=e.content,i=e.hidden;return ce.createElement(ce.Fragment,null,n&&r&&ce.createElement(Zb,{htmlFor:t},r),ce.createElement("div",{className:i?"ta-upm-field-hidden":"",dangerouslySetInnerHTML:{__html:Ow.sanitize(o,{ADD_ATTR:["target"]})}}))},Ew=function(e){var t="ta-upm ta-upm-button";switch(e.taType){case"primary":t+=" ta-upm-button__primary";break;case"secondary":t+=" ta-upm-button__secondary";break;case"link":t+=" ta-upm-button__link";break;case"icon":t+=" ta-upm-button__icon"}switch(e.size){case"xs":t+=" ta-upm-button__xs";break;case"sm":t+=" ta-upm-button__sm";break;case"md":t+=" ta-upm-button__md";break;case"lg":t+=" ta-upm-button__lg"}return t},Tw=mn.button.attrs((function(e){return{className:Ew(e)}}))(sw||(sw=Nb(["\n /* basic */\n background-clip: padding-box;\n border: 1px solid transparent;\n border-radius: 4px;\n display: inline-block;\n font-weight: 400;\n min-width: 100px;\n position: relative;\n text-align: center;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,\n border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,\n -webkit-box-shadow 0.15s ease-in-out;\n user-select: none;\n vertical-align: middle;\n cursor: pointer;\n\n &:hover {\n text-decoration: none;\n }\n\n ","\n ","\n\n &&& {\n ","\n }\n"])),(function(e){return function(e){switch(e){case"primary":return en(nw||(nw=Nb(["\n background-color: #064676;\n border-color: #064676;\n color: #fff;\n\n &:hover,\n &:active,\n &:focus {\n background-color: #1e5883;\n border-color: #042945;\n }\n "])));case"secondary":return en(rw||(rw=Nb(["\n background-color: #fff;\n border-color: #c2c2c2;\n color: #404040;\n\n &:hover {\n background-color: #fff;\n border-color: #1e5883;\n }\n\n &:active,\n &:focus {\n background-color: #f1f1f1;\n border-color: #1e5883;\n }\n "])));case"link":return en(ow||(ow=Nb(["\n background: none;\n border: none;\n color: #224f77;\n\n &:hover {\n color: #23527c;\n text-decoration: underline;\n }\n\n &:active,\n &:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n color: #23527c;\n text-decoration: underline;\n }\n "])));case"icon":return en(iw||(iw=Nb(["\n background: none;\n border: none;\n min-width: 0px !important;\n &:active,\n &:focus {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n color: #23527c;\n text-decoration: underline;\n }\n "])))}}(e.taType)}),(function(e){return function(e){switch(e){case"xs":return en(aw||(aw=Nb(["\n font-size: 11px;\n line-height: 1.3;\n padding: 2px 4px;\n "])));case"sm":return en(uw||(uw=Nb(["\n font-size: 11px;\n line-height: 1.3;\n padding: 4px 8px;\n "])));case"md":return en(cw||(cw=Nb(["\n font-size: 12px;\n line-height: 1.5;\n padding: 6px 12px;\n "])));case"lg":return en(lw||(lw=Nb(["\n font-size: 14px;\n line-height: 1.6;\n padding: 8px 16px;\n "])))}}(e.size)}),(function(e){return en(fw||(fw=Nb(["\n ","\n ","\n ","\n "])),e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n border-color: ").concat(e.backgroundColor,";\n &:hover, &:active, &:focus {\n background-color: ").concat(e.backgroundColor,";\n border-color: ").concat(e.backgroundColor,";\n }\n "),e.textColor&&"\n color: ".concat(e.textColor,";\n "),!!e.disabled&&"\n opacity: .65;\n cursor: not-allowed;\n ")})),Cw=mn.div(pw||(pw=Nb(["\n display: flex;\n width: 100%;\n justify-content: center;\n align-items: center;\n"]))),Pw=function(){return ce.createElement("svg",{width:"212",height:"184",viewBox:"0 0 212 184",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.584 155.872C84.584 155.872 38.8203 145.593 38.8203 104.944C38.8203 64.2944 73.6244 30.9138 96.5616 27.0375C119.499 23.1612 125.411 33.7953 132.784 53.0088C140.158 72.2224 174.025 67.1183 180.319 99.9678C183.273 115.377 172.385 141.753 132.784 155.872C122.111 159.677 84.584 155.872 84.584 155.872Z",fill:"#FEF5F5"}),ce.createElement("g",{filter:"url(#filter0_d)"},ce.createElement("circle",{cx:"114.968",cy:"99.957",r:"53.1953",fill:"white"}),ce.createElement("circle",{cx:"114.968",cy:"99.957",r:"53.6953",stroke:"#F1ABA6"})),ce.createElement("path",{d:"M111.432 148.598C140.742 148.598 164.503 124.942 164.503 95.7606C164.503 84.3316 160.858 73.7501 154.663 65.1055C163.059 74.4516 168.163 86.7901 168.163 100.316C168.163 129.497 144.402 153.153 115.092 153.153C97.2614 153.153 81.4844 144.398 71.8613 130.971C81.5794 141.789 95.707 148.598 111.432 148.598Z",fill:"#FBEAE8"}),ce.createElement("path",{d:"M115.153 99.7344L128.467 113.048L130.134 111.381L116.82 98.0671L130.134 84.7532L128.467 83.0859L115.153 96.3998L101.839 83.0859L100.172 84.7532L113.486 98.0671L100.172 111.381L101.839 113.048L115.153 99.7344Z",fill:"#DE2E21"}),ce.createElement("path",{d:"M29.3838 169H137.665",stroke:"#F5C0BC",strokeWidth:"2",strokeLinecap:"round"}),ce.createElement("path",{d:"M144.657 169H167.409",stroke:"#F5C0BC",strokeWidth:"2",strokeLinecap:"round"}),ce.createElement("path",{d:"M173.476 169H181.06",stroke:"#F5C0BC",strokeWidth:"2",strokeLinecap:"round"}),ce.createElement("path",{d:"M19.9183 71.5625H14.3345C13.7822 71.5625 13.3345 72.0102 13.3345 72.5625V78.1275C13.3345 78.6798 13.7822 79.1275 14.3345 79.1275H19.9183C20.4705 79.1275 20.9183 78.6798 20.9183 78.1275V72.5625C20.9183 72.0102 20.4705 71.5625 19.9183 71.5625Z",stroke:"#FFAB00"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.9901 14.7178C68.3804 14.3284 69.0122 14.3284 69.4025 14.7178L73.3491 18.6546C73.7408 19.0453 73.7408 19.6798 73.3491 20.0705L69.4025 24.0073C69.0122 24.3967 68.3804 24.3967 67.9901 24.0073L64.0435 20.0705C63.6518 19.6798 63.6518 19.0453 64.0435 18.6546L67.9901 14.7178Z",stroke:"#DE2E21"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M132.4 35.2485C134.494 35.2485 136.192 33.5551 136.192 31.4661C136.192 29.377 134.494 27.6836 132.4 27.6836C130.306 27.6836 128.608 29.377 128.608 31.4661C128.608 33.5551 130.306 35.2485 132.4 35.2485Z",stroke:"#6A90AD"}),ce.createElement("path",{d:"M189.774 69.5L197.883 73.6214",stroke:"#7FA8E5",strokeLinecap:"round"}),ce.createElement("path",{d:"M195.894 67.5156L191.763 75.6041",stroke:"#7FA8E5",strokeLinecap:"round"}),ce.createElement("defs",null,ce.createElement("filter",{id:"filter0_d",x:"57.7725",y:"43.7617",width:"114.391",height:"114.391",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},ce.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),ce.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),ce.createElement("feOffset",{dy:"1"}),ce.createElement("feGaussianBlur",{stdDeviation:"1.5"}),ce.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.795 0 0 0 0 0.855297 0 0 0 0 0.9 0 0 0 1 0"}),ce.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),ce.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},Dw=function(){return ce.createElement("svg",{width:"212",height:"184",viewBox:"0 0 212 184",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.6696 161.686C82.6696 161.686 32.7725 150.479 32.7725 106.157C32.7725 61.8365 70.7201 25.4408 95.7291 21.2144C120.738 16.988 127.184 28.5826 135.224 49.5316C143.264 70.4805 180.189 64.9155 187.052 100.732C190.272 117.533 178.402 146.292 135.224 161.686C123.587 165.835 82.6696 161.686 82.6696 161.686Z",fill:"#F8FCF5"}),ce.createElement("g",{filter:"url(#filter0_d)"},ce.createElement("ellipse",{cx:"103.781",cy:"96.6655",rx:"53.5918",ry:"53.4194",fill:"white"}),ce.createElement("path",{d:"M103.781 150.585C133.654 150.585 157.873 126.446 157.873 96.6655C157.873 66.8851 133.654 42.7461 103.781 42.7461C73.9087 42.7461 49.6895 66.8851 49.6895 96.6655C49.6895 126.446 73.9087 150.585 103.781 150.585Z",stroke:"#BFE7A7"})),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.3661 104.629L88.2771 94.0332L86.2593 96.1524L96.3483 106.748L98.3661 108.867L118.832 87.3731L116.815 85.2539L98.3661 104.629Z",fill:"#5FC323"}),ce.createElement("path",{d:"M100.245 145.521C129.76 145.521 153.687 121.828 153.687 92.6013C153.687 81.1545 150.017 70.5566 143.778 61.8984C152.232 71.2591 157.373 83.6168 157.373 97.1633C157.373 126.39 133.446 150.083 103.93 150.083C85.9747 150.083 70.0874 141.314 60.397 127.866C70.183 138.701 84.4095 145.521 100.245 145.521Z",fill:"#EFF9E9"}),ce.createElement("path",{d:"M35.3018 163.652H135.732",stroke:"#CFEDBD",strokeWidth:"2",strokeLinecap:"round"}),ce.createElement("path",{d:"M142.218 163.652H163.32",stroke:"#CFEDBD",strokeWidth:"2",strokeLinecap:"round"}),ce.createElement("path",{d:"M168.946 163.652H175.981",stroke:"#CFEDBD",strokeWidth:"2",strokeLinecap:"round"}),ce.createElement("path",{d:"M26.45 73.5664H21.416C20.8637 73.5664 20.416 74.0141 20.416 74.5664V79.5603C20.416 80.1126 20.8637 80.5603 21.416 80.5603H26.45C27.0022 80.5603 27.45 80.1126 27.45 79.5603V74.5664C27.45 74.0141 27.0022 73.5664 26.45 73.5664Z",stroke:"#FFAB00"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.0563 21.0672C71.4473 20.6785 72.0801 20.6785 72.471 21.0672L76.0265 24.6025C76.4189 24.9926 76.4189 25.6261 76.0265 26.0162L72.471 29.5514C72.0801 29.9401 71.4473 29.9401 71.0563 29.5514L67.5008 26.0162C67.1085 25.6261 67.1085 24.9926 67.5008 24.6025L71.0563 21.0672Z",stroke:"#DE2E21"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.849 39.9978C132.791 39.9978 134.366 38.4322 134.366 36.5008C134.366 34.5695 132.791 33.0039 130.849 33.0039C128.907 33.0039 127.333 34.5695 127.333 36.5008C127.333 38.4322 128.907 39.9978 130.849 39.9978Z",stroke:"#6A90AD"}),ce.createElement("path",{d:"M184.063 71.6641L191.584 75.4743",stroke:"#7FA8E5",strokeLinecap:"round"}),ce.createElement("path",{d:"M189.74 69.8281L185.908 77.3061",stroke:"#7FA8E5",strokeLinecap:"round"}),ce.createElement("defs",null,ce.createElement("filter",{id:"filter0_d",x:"46.1895",y:"40.2461",width:"115.184",height:"114.839",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},ce.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),ce.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),ce.createElement("feOffset",{dy:"1"}),ce.createElement("feGaussianBlur",{stdDeviation:"1.5"}),ce.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.795 0 0 0 0 0.855297 0 0 0 0 0.9 0 0 0 1 0"}),ce.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),ce.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},jw=mn.div.attrs({className:"ta-upm ta-upm-message-container"})(dw||(dw=Nb(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-bottom: 32px;\n"]))),Rw=mn.div(hw||(hw=Nb(["\n margin-bottom: 32px;\n text-align: center;\n"]))),Iw=mn.div(mw||(mw=Nb(["\n\n button {\n margin-top: 24px;\n text-align: center;\n }\n"]))),Aw=function(e){var t=e.bodyLogo,n=e.message,r=e.respondButton,o=e.isSuccess,i=e.isEmpty,a=e.tryAgainId,u=e.tryAgainClick,c=e.doneClick,l=e.hideButton,s=e.headerMessage,f=ce.createElement("div",{style:{textAlign:"center",fontSize:"14px",marginBottom:0}},ce.createElement("p",null,"We have successfully saved your preferences."),ce.createElement("p",null,"Thank you for completing this form.")),p=ce.createElement("div",{style:{textAlign:"center",fontSize:"14px",marginBottom:0}},ce.createElement("p",null,"We were unable to save your preferences."),ce.createElement("p",null,"Please try again later."));return ce.createElement(jw,{id:o?"ta-upm-success-message":"ta-upm-error-message"},ce.createElement(Rw,null,i?o?ce.createElement(Dw,null):ce.createElement(Pw,null):ce.createElement("img",{src:t})),s&&ce.createElement(rg,{style:{textAlign:"center",fontSize:"24px"}},s),ce.createElement(Iw,null,i&&!n?o?f:p:ce.createElement(Sw,{id:"landing_message",content:n}),!l&&ce.createElement(Cw,null,null!=r&&r.buttonName&&!i?ce.createElement(Tw,{id:a,taType:"secondary",size:"lg",onClick:function(){o?c():u()}},r.buttonName):i?o?ce.createElement(Tw,{id:"done_btn",taType:"secondary",size:"lg",onClick:c},"Done"):ce.createElement(Tw,{id:a,taType:"secondary",size:"lg",onClick:u},"Try again"):null)))},Mw=function(e){var t=e.onResendClick,n=e.isResendDisabled,r=e.isResendDone;return ce.createElement(jw,{id:"ta-upm-expired-link-message"},ce.createElement(Rw,null,ce.createElement(Pw,null)),ce.createElement(Iw,null,ce.createElement("div",{style:{textAlign:"center",fontSize:"14px",marginBottom:0}},ce.createElement("p",null,"Subscription link has expired"),ce.createElement("p",null,'Click "Resend" to request for another subscription link')),r?ce.createElement("div",{style:{textAlign:"center",fontSize:"14px",marginBottom:0}},"We have sent a new subscription link to your email."):ce.createElement(Cw,null,ce.createElement(Tw,{disabled:n,id:"resendLinkBtn",taType:"secondary",size:"lg",onClick:t},"Resend"))))},Nw=mn.div.attrs({className:"ta-upm ta-upm-backdrop"})(yw||(yw=Nb(["\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: #000;\n opacity: .6;\n z-index: 1050;\n"]))),Lw=function(e){var t=e.containerId;return ud.createPortal(ce.createElement(Nw,null),document.getElementById(t))},Fw=mn.div.attrs({className:"ta-upm ta-upm-modal-body"})(vw||(vw=Nb(["\n /* basic */\n flex: 1 1 auto;\n padding: 15px 30px;\n position: relative;\n ","\n"])),(function(e){return e.textAlign?"text-align: ".concat(e.textAlign):""})),Uw=mn.div.attrs({className:"ta-upm ta-upm-modal-content"})(bw||(bw=Nb(["\n /* basic */\n background-clip: padding-box;\n background-color: #fff;\n border: ",";\n border-radius: ",";\n display: flex;\n flex-direction: column;\n outline: 0;\n pointer-events: auto;\n position: relative;\n width: 100%;\n"])),(function(e){return e.noBorder?"none":"1px solid #eee"}),(function(e){return e.noBorder?"0":"8px"})),Bw=mn.div.attrs({className:"ta-upm ta-upm-modal-dialog",role:"document"})(gw||(gw=Nb(["\n /* basic */\n position: relative;\n width: auto;\n pointer-events: none;\n transform: none;\n transition: transform .3s ease-out,-webkit-transform .3s ease-out;\n margin: .5rem;\n @media (min-width: 576px) {\n margin: 1.75rem auto;\n }\n\n /* centered */\n display: flex;\n align-items: flex-start;\n min-height: calc(100% - 1rem);\n @media (min-width: 576px) {\n height: min-content;\n min-height: calc(100% - 3.5rem);\n }\n &::before {\n content: '';\n display: block;\n height: min-content;\n }\n\n /* large */\n max-width: ",";\n"])),(function(e){return e.maxWidth||"560px"})),Vw=mn.div.attrs({className:"ta-upm ta-upm-modal-footer"})(ww||(ww=Nb(["\n /* basic */\n align-items: flex-start;\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n padding: 0 30px 30px;\n\n & > button {\n margin-right: 8px;\n &:last-child {\n margin-right: 0;\n }\n }\n"]))),zw=mn.div.attrs({className:"ta-upm ta-upm-modal-header"})(_w||(_w=Nb(["\n /* basic */\n align-items: center;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 30px 30px 0;\n position: relative;\n\n .ta-form-logo {\n max-width: 100%;\n height: auto;\n }\n\n h1 {\n margin: 15px 0 25px;\n }\n"]))),Hw=mn.div.attrs({"aria-labelledby":"ta-upm-modal-title",className:"ta-upm ta-upm-modal",role:"dialog",tabindex:"-1"})(xw||(xw=Nb(["\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n outline: 0;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 1050;\n"]))),Yw=mn.button.attrs({"aria-label":"Close",className:"ta-upm ta-upm-close-button"})(kw||(kw=Nb(["\n background-color: transparent;\n border: 0;\n color: #000;\n float: right;\n font-size: 18px;\n font-weight: 500;\n line-height: 1;\n opacity: 1;\n padding: 16px;\n position: absolute;\n top: 0;\n right: 10px;\n text-shadow: 0 1px 0 #fff;\n\n &:hover {\n opacity: 0.5;\n text-decoration: none;\n }\n"]))),Ww=function(e){var t=e.id,n=e.isStatic,r=void 0!==n&&n,o=e.children,i=e.containerId,a=e.maxWidth,u=e.onClickBackDrop,c=y.exports.useRef(null);if(r)return ce.createElement(Uw,{id:t,noBorder:!0},o);var l=u||null;return ce.createElement(ce.Fragment,null,ce.createElement(Lw,{containerId:i}),ce.createElement(Hw,{id:t,onClick:function(e){l&&c.current&&!c.current.contains(e.target)&&l()}},ce.createElement(Bw,{maxWidth:a},ce.createElement(Uw,{ref:c},o))))};Ww.Header=function(e){var t=e.children,n=e.close,r=e.showClose;return ce.createElement(zw,null,t,r&&ce.createElement(Yw,{onClick:n},ce.createElement(og,{viewBox:"0 0 8 8",height:"8",width:"8"},ce.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M8 .7L7.3 0 4 3.3.7 0 0 .7 3.3 4 0 7.3l.7.7L4 4.7 7.3 8l.7-.7L4.7 4z"}))))},Ww.Body=function(e){var t=e.textAlign,n=e.children;return ce.createElement(Fw,{textAlign:t},n)},Ww.Footer=function(e){var t=e.children;return ce.createElement(Vw,null,t)};var qw,$w,Gw,Kw,Qw,Xw,Zw,Jw=function(e){var t=e.children,n=e.id,r=e.onClick,o=void 0===r?function(){}:r,i=e.size,a=void 0===i?"md":i,u=e.taType,c=void 0===u?"primary":u,l=e.type,s=void 0===l?"button":l,f=e.backgroundColor,p=e.textColor,d=e.disabled,h=void 0!==d&&d;return ce.createElement(Tw,{id:n,type:s,onClick:o,taType:c,size:a,backgroundColor:f,textColor:p,disabled:h},t)},e_=mn.div.attrs((function(e){return{className:"ta-upm "+(e.checked?" ta-upm-checkbox__checked":" ta-upm-checkbox ")+(e.disabled?" ta-upm-checkbox__disabled":"")}}))(qw||(qw=Nb(["\n /* basic */\n -webkit-font-smoothing: antialiased;\n border: ",";\n background-color: ",";\n border-radius: 2px;\n display: inline-block;\n height: 14px;\n margin: 2px 7px 0px 0px;\n position: relative;\n text-rendering: optimizeSpeed;\n vertical-align: middle;\n width: 14px;\n min-width: 14px;\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n text-align: center;\n }\n\n &:focus {\n }\n"])),(function(e){return e.checked&&e.disabled?"rgb(146 208 255)":e.checked?"1px solid #064676":e.disabled?"1px solid #c2c2c2":"1px solid #b2b2b2"}),(function(e){return e.checked&&e.disabled?"rgb(226 243 255)":e.disabled?"#e9e9e9":e.checked?"#064676":"#fff"})),t_=function(e){return ce.createElement(e_,e,ce.createElement(og,{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none"},ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.55263 8L0 4.14286L1.18421 3L3.55263 5.57143L8.81579 0L10 1.14286L3.55263 8Z",fill:e.checked&&e.disabled?"rgb(146 208 255)":e.disabled?"#e9e9e9":"#fff"})))},n_=mn.p.attrs((function(e){return{className:"ta-upm ta-upm-error"+(e.hidden?" ta-upm-field-hidden":"")}}))($w||($w=Nb(["\n color: #dc3545;\n"]))),r_=mn.input.attrs((function(e){return{className:"ta-upm ta-upm-input"+(e.hidden?" ta-upm-field-hidden":"")}}))(Gw||(Gw=Nb(["\n /* basic */\n background-clip: padding-box;\n background-color: ",";\n border: ",";\n border-radius: 4px;\n color: #000;\n display: block;\n font-size: 12px;\n font-weight: 400;\n line-height: 1.6;\n padding: 6px 12px;\n transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;\n width: 100%;\n\n &:focus {\n background-color: ",";\n border-color: #064676;\n box-shadow: 0 0 0 0 rgb(6 70 118 / 25%);\n color: #000;\n }\n"])),(function(e){return e.disabled?"#F2F2F2":"#fff"}),(function(e){return e.hasError?"1px solid #de2e21;":"1px solid #c2c2c2;"}),(function(e){return e.disabled?"#F2F2F2":"#fff"})),o_=mn.span.attrs((function(e){return{className:"ta-upm ta-upm-required"+(e.hidden?" ta-upm-field-hidden":"")}}))(Kw||(Kw=Nb(["\n margin-left: 4px;\n color: #dc3545;\n"]))),i_=mn.div.attrs((function(e){return{className:"ta-upm-checkbox-container"+(e.hidden?" ta-upm-field-hidden":"")}}))(Qw||(Qw=Nb(["\n display: flex;\n\n && p {\n margin: 0px;\n }\n"]))),a_=function(e){var t=e.id,n=e.name,r=e.checked,o=void 0!==r&&r,i=e.disabled,a=void 0!==i&&i,u=e.message,c=void 0===u?"":u,l=e.required,s=e.error,f=e.errorMessage,p=e.readOnly,d=e.showLabel,h=e.label,m=e.helpfulInfoText,y=e.onChange,v=void 0===y?function(){}:y;return ce.createElement(ce.Fragment,null,d&&h&&ce.createElement(Zb,{htmlFor:t},h,ce.createElement(u_,{formFieldId:t,required:l,helpfulInfoText:m})),ce.createElement(Jb,{htmlFor:t},ce.createElement(r_,{id:t,name:n,type:"checkbox",autoComplete:"off",hasError:!!s,checked:o,disabled:a||p,onChange:function(e){v(e.target.checked)}}),ce.createElement(i_,null,ce.createElement(t_,{checked:o,disabled:a||p}),ce.createElement(Sw,{id:t+"_message",content:c}),!d&&ce.createElement(u_,{formFieldId:t,required:l,helpfulInfoText:m}))),s&&ce.createElement(n_,null,""!==f?f:"Field is invalid"))},u_=function(e){var t=e.formFieldId,n=e.required,r=e.helpfulInfoText;return ce.createElement(ce.Fragment,null,n&&ce.createElement(o_,null,"*"),r&&ce.createElement(ag,{formFieldId:t,text:r}))},c_=function(e){var t=e.error,n=e.id,r=e.label,o=e.name,i=e.placeholder,a=void 0===i?"":i,u=e.value,c=void 0===u?"":u,l=e.helpfulInfoText,s=void 0===l?"":l,f=e.showLabel,p=e.required,d=e.errorMessage,h=e.readOnly,m=e.onChange,y=void 0===m?function(){}:m;return ce.createElement(ce.Fragment,null,f&&r&&ce.createElement(Zb,{htmlFor:n},r,p&&ce.createElement(o_,null,"*"),s&&ce.createElement(ag,{formFieldId:n,text:s})),ce.createElement(r_,{id:n,name:o,type:"email",placeholder:a,disabled:h,hasError:!!t,value:c,onChange:y}),t&&ce.createElement(n_,null,""!==d?d:"Field is invalid"))},l_=mn.textarea.attrs((function(e){return{className:"ta-upm ta-upm-textarea"+(e.hidden?" ta-upm-field-hidden":""),rows:3}}))(Xw||(Xw=Nb(["\n /* basic */\n background-clip: padding-box;\n background-color: ",";\n border: ",";\n border-radius: 4px;\n color: #000;\n display: block;\n font-size: 12px;\n font-weight: 400;\n line-height: 1.6;\n padding: 6px 12px;\n transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;\n width: 100%;\n\n &:focus {\n background-color: #fff;\n border-color: #064676;\n box-shadow: 0 0 0 0 rgb(6 70 118 / 25%);\n color: #000;\n }\n"])),(function(e){return e.disabled?"#F2F2F2":"#fff"}),(function(e){return e.hasError?"1px solid #de2e21;":"1px solid #c2c2c2;"})),s_=function(e){var t=e.error,n=e.id,r=e.label,o=e.name,i=e.placeholder,a=void 0===i?"":i,u=e.required,c=e.value,l=void 0===c?"":c,s=e.helpfulInfoText,f=void 0===s?"":s,p=e.showLabel,d=e.errorMessage,h=e.readOnly,m=e.onChange,y=void 0===m?function(){}:m;return ce.createElement(ce.Fragment,null,p&&r&&ce.createElement(Zb,{htmlFor:n},r,u&&ce.createElement(o_,null,"*"),f&&ce.createElement(ag,{formFieldId:n,text:f})),ce.createElement(l_,{id:n,name:o,disabled:h,placeholder:a,hasError:!!t,value:l,onChange:y}),t&&ce.createElement(n_,null,""!==d?d:"Field is invalid"))};function f_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d_(e){for(var t=1;t=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(q_);var G_=q_.exports(),K_=G_;try{regeneratorRuntime=G_}catch(e){"object"===("undefined"==typeof globalThis?"undefined":ug(globalThis))?globalThis.regeneratorRuntime=G_:Function("r","regeneratorRuntime = r")(G_)}var Q_={exports:{}},X_={},Z_="function"==typeof Symbol&&Symbol.for,J_=Z_?Symbol.for("react.element"):60103,ex=Z_?Symbol.for("react.portal"):60106,tx=Z_?Symbol.for("react.fragment"):60107,nx=Z_?Symbol.for("react.strict_mode"):60108,rx=Z_?Symbol.for("react.profiler"):60114,ox=Z_?Symbol.for("react.provider"):60109,ix=Z_?Symbol.for("react.context"):60110,ax=Z_?Symbol.for("react.async_mode"):60111,ux=Z_?Symbol.for("react.concurrent_mode"):60111,cx=Z_?Symbol.for("react.forward_ref"):60112,lx=Z_?Symbol.for("react.suspense"):60113,sx=Z_?Symbol.for("react.suspense_list"):60120,fx=Z_?Symbol.for("react.memo"):60115,px=Z_?Symbol.for("react.lazy"):60116,dx=Z_?Symbol.for("react.block"):60121,hx=Z_?Symbol.for("react.fundamental"):60117,mx=Z_?Symbol.for("react.responder"):60118,yx=Z_?Symbol.for("react.scope"):60119;function vx(e){if("object"===ug(e)&&null!==e){var t=e.$$typeof;switch(t){case J_:switch(e=e.type){case ax:case ux:case tx:case rx:case nx:case lx:return e;default:switch(e=e&&e.$$typeof){case ix:case cx:case px:case fx:case ox:return e;default:return t}}case ex:return t}}}function bx(e){return vx(e)===ux}X_.AsyncMode=ax,X_.ConcurrentMode=ux,X_.ContextConsumer=ix,X_.ContextProvider=ox,X_.Element=J_,X_.ForwardRef=cx,X_.Fragment=tx,X_.Lazy=px,X_.Memo=fx,X_.Portal=ex,X_.Profiler=rx,X_.StrictMode=nx,X_.Suspense=lx,X_.isAsyncMode=function(e){return bx(e)||vx(e)===ax},X_.isConcurrentMode=bx,X_.isContextConsumer=function(e){return vx(e)===ix},X_.isContextProvider=function(e){return vx(e)===ox},X_.isElement=function(e){return"object"===ug(e)&&null!==e&&e.$$typeof===J_},X_.isForwardRef=function(e){return vx(e)===cx},X_.isFragment=function(e){return vx(e)===tx},X_.isLazy=function(e){return vx(e)===px},X_.isMemo=function(e){return vx(e)===fx},X_.isPortal=function(e){return vx(e)===ex},X_.isProfiler=function(e){return vx(e)===rx},X_.isStrictMode=function(e){return vx(e)===nx},X_.isSuspense=function(e){return vx(e)===lx},X_.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===tx||e===ux||e===rx||e===nx||e===lx||e===sx||"object"===ug(e)&&null!==e&&(e.$$typeof===px||e.$$typeof===fx||e.$$typeof===ox||e.$$typeof===ix||e.$$typeof===cx||e.$$typeof===hx||e.$$typeof===mx||e.$$typeof===yx||e.$$typeof===dx)},X_.typeOf=vx; -/* - object-assign - (c) Sindre Sorhus - @license MIT - */Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()||Object.assign;Function.call.bind(Object.prototype.hasOwnProperty);function gx(){}function wx(){}wx.resetWarningCache=gx;Q_.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wx,resetWarningCache:gx};return n.PropTypes=n,n}();var _x=Q_.exports;function xx(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))}function kx(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Sx(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Cx=[".DS_Store","Thumbs.db"];function Px(e){return"object"===ug(e)&&null!==e}function Dx(e){return Ax(e.target.files).map((function(e){return Tx(e)}))}function jx(e){return xx(this,void 0,void 0,(function(){return kx(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Tx(e)}))]}}))}))}function Rx(e,t){return xx(this,void 0,void 0,(function(){var n;return kx(this,(function(r){switch(r.label){case 0:return e.items?(n=Ax(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Mx))]):[3,2];case 1:return[2,Ix(Nx(r.sent()))];case 2:return[2,Ix(Ax(e.files).map((function(e){return Tx(e)})))]}}))}))}function Ix(e){return e.filter((function(e){return-1===Cx.indexOf(e.name)}))}function Ax(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Kx(n)];if(e.sizen)return[!1,Kx(n)]}return[!0,null]}function ek(e){return null!=e}function tk(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,u=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=Wx(Zx(e,n),1)[0],i=Wx(Jx(e,r,o),1)[0],a=u?u(e):null;return t&&i&&!a}))}function nk(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function rk(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function ok(e){e.preventDefault()}function ik(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function ak(e){return-1!==e.indexOf("Edge/")}function uk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return ik(e)||ak(e)}function ck(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ck=y.exports.forwardRef((function(e,t){var n=e.children,r=Ik(Tk(e,yk)),o=r.open,i=Tk(r,vk);return y.exports.useImperativeHandle(t,(function(){return{open:o}}),[o]),ce.createElement(y.exports.Fragment,null,n(Sk(Sk({},i),{},{open:o})))}));Ck.displayName="Dropzone";var Pk={disabled:!1,getFilesFromEvent:function(e){return xx(this,void 0,void 0,(function(){return kx(this,(function(t){return Px(e)&&Px(e.dataTransfer)?[2,Rx(e.dataTransfer,e.type)]:function(e){return Px(e)&&Px(e.target)}(e)?[2,Dx(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,jx(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ck.defaultProps=Pk,Ck.propTypes={children:_x.func,accept:_x.objectOf(_x.arrayOf(_x.string)),multiple:_x.bool,preventDropOnDocument:_x.bool,noClick:_x.bool,noKeyboard:_x.bool,noDrag:_x.bool,noDragEventsBubbling:_x.bool,minSize:_x.number,maxSize:_x.number,maxFiles:_x.number,disabled:_x.bool,getFilesFromEvent:_x.func,onFileDialogCancel:_x.func,onFileDialogOpen:_x.func,useFsAccessApi:_x.bool,autoFocus:_x.bool,onDragEnter:_x.func,onDragLeave:_x.func,onDragOver:_x.func,onDrop:_x.func,onDropAccepted:_x.func,onDropRejected:_x.func,onError:_x.func,validator:_x.func};var Dk,jk,Rk={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ik(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Sk(Sk({},Pk),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,u=t.multiple,c=t.maxFiles,l=t.onDragEnter,s=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,g=t.autoFocus,w=t.preventDropOnDocument,_=t.noClick,x=t.noKeyboard,k=t.noDrag,O=t.noDragEventsBubbling,S=t.onError,E=t.validator,T=y.exports.useMemo((function(){return fk(n)}),[n]),C=y.exports.useMemo((function(){return sk(n)}),[n]),P=y.exports.useMemo((function(){return"function"==typeof v?v:Mk}),[v]),D=y.exports.useMemo((function(){return"function"==typeof m?m:Mk}),[m]),j=y.exports.useRef(null),R=y.exports.useRef(null),I=y.exports.useReducer(Ak,Rk),A=_k(I,2),M=A[0],N=A[1],L=M.isFocused,F=M.isFileDialogActive,U=y.exports.useRef("undefined"!=typeof window&&window.isSecureContext&&b&&lk()),B=function(){!U.current&&F&&setTimeout((function(){R.current&&(R.current.files.length||(N({type:"closeDialog"}),D()))}),300)};y.exports.useEffect((function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}}),[R,F,D,U]);var V=y.exports.useRef([]),z=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),V.current=[])};y.exports.useEffect((function(){return w&&(document.addEventListener("dragover",ok,!1),document.addEventListener("drop",z,!1)),function(){w&&(document.removeEventListener("dragover",ok),document.removeEventListener("drop",z))}}),[j,w]),y.exports.useEffect((function(){return!r&&g&&j.current&&j.current.focus(),function(){}}),[j,g,r]);var H=y.exports.useCallback((function(e){S?S(e):console.error(e)}),[S]),Y=y.exports.useCallback((function(e){e.preventDefault(),e.persist(),re(e),V.current=[].concat(wk(V.current),[e.target]),rk(e)&&Promise.resolve(o(e)).then((function(t){if(!nk(e)||O){var n=t.length,r=n>0&&tk({files:t,accept:T,minSize:a,maxSize:i,multiple:u,maxFiles:c,validator:E});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),l&&l(e)}})).catch((function(e){return H(e)}))}),[o,l,H,O,T,a,i,u,c,E]),W=y.exports.useCallback((function(e){e.preventDefault(),e.persist(),re(e);var t=rk(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,O]),q=y.exports.useCallback((function(e){e.preventDefault(),e.persist(),re(e);var t=V.current.filter((function(e){return j.current&&j.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),V.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),rk(e)&&s&&s(e))}),[j,s,O]),$=y.exports.useCallback((function(e,t){var n=[],r=[];e.forEach((function(e){var t=_k(Zx(e,T),2),o=t[0],u=t[1],c=_k(Jx(e,a,i),2),l=c[0],s=c[1],f=E?E(e):null;if(o&&l&&!f)n.push(e);else{var p=[u,s];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!u&&n.length>1||u&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[Xx]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[N,u,T,a,i,c,p,d,h,E]),G=y.exports.useCallback((function(e){e.preventDefault(),e.persist(),re(e),V.current=[],rk(e)&&Promise.resolve(o(e)).then((function(t){nk(e)&&!O||$(t,e)})).catch((function(e){return H(e)})),N({type:"reset"})}),[o,$,H,O]),K=y.exports.useCallback((function(){if(U.current){N({type:"openDialog"}),P();var e={multiple:u,types:C};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){$(e,null),N({type:"closeDialog"})})).catch((function(e){pk(e)?(D(e),N({type:"closeDialog"})):dk(e)?(U.current=!1,R.current?(R.current.value=null,R.current.click()):H(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):H(e)}))}else R.current&&(N({type:"openDialog"}),P(),R.current.value=null,R.current.click())}),[N,P,D,b,$,H,C,u]),Q=y.exports.useCallback((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[j,K]),X=y.exports.useCallback((function(){N({type:"focus"})}),[]),Z=y.exports.useCallback((function(){N({type:"blur"})}),[]),J=y.exports.useCallback((function(){_||(uk()?setTimeout(K,0):K())}),[_,K]),ee=function(e){return r?null:e},te=function(e){return x?null:ee(e)},ne=function(e){return k?null:ee(e)},re=function(e){O&&e.stopPropagation()},oe=y.exports.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,u=e.onBlur,c=e.onClick,l=e.onDragEnter,s=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=Tk(e,bk);return Sk(Sk(Ek({onKeyDown:te(ck(i,Q)),onFocus:te(ck(a,X)),onBlur:te(ck(u,Z)),onClick:ee(ck(c,J)),onDragEnter:ne(ck(l,Y)),onDragOver:ne(ck(s,W)),onDragLeave:ne(ck(f,q)),onDrop:ne(ck(p,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,j),r||x?{}:{tabIndex:0}),d)}}),[j,Q,X,Z,J,Y,W,q,G,x,k,r]),ie=y.exports.useCallback((function(e){e.stopPropagation()}),[]),ae=y.exports.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=Tk(e,gk),a=Ek({accept:T,multiple:u,type:"file",style:{display:"none"},onChange:ee(ck(r,G)),onClick:ee(ck(o,ie)),tabIndex:-1},n,R);return Sk(Sk({},a),i)}}),[R,n,u,G,r]);return Sk(Sk({},M),{},{isFocused:L&&!r,getRootProps:oe,getInputProps:ae,rootRef:j,inputRef:R,open:ee(K)})}function Ak(e,t){switch(t.type){case"focus":return Sk(Sk({},e),{},{isFocused:!0});case"blur":return Sk(Sk({},e),{},{isFocused:!1});case"openDialog":return Sk(Sk({},Rk),{},{isFileDialogActive:!0});case"closeDialog":return Sk(Sk({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Sk(Sk({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Sk(Sk({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Sk({},Rk);default:return e}}function Mk(){}var Nk,Lk,Fk=mn.button(Dk||(Dk=Nb(["\n width: 30px;\n background-color: white;\n margin-left: 5px;\n border-width: 2px;\n border-radius: 2px;\n border-color: lightgray;\n"]))),Uk=mn.div(jk||(jk=Nb(["\n flex: 1;\n display: flex;\n height: 50px;\n flex-direction: column;\n align-items: center;\n padding: 20px;\n border-width: 2px;\n border-radius: 2px;\n border-color: lightgray;\n border-style: dashed;\n background-color: white;\n color: black;\n outline: none;\n transition: border 0.24s ease-in-out;\n margin-top: 5px;\n cursor: pointer;\n"]))),Bk=function(e){var t=e.error,n=e.id,r=e.label,o=e.readOnly,i=e.required,a=e.showLabel,u=e.onChange,c=void 0===u?function(){}:u,l=e.errorMessage,s=e.uploadFileRequest,f=Fb(y.exports.useState(""),2),p=f[0],d=f[1],h=Fb(y.exports.useState(!1),2),m=h[0],v=h[1],b=_v(),g=Ik({onDrop:y.exports.useCallback((function(e){if(e.length){var t=e[0],n=e[0].name;d(n),v(!0),n.match("^[A-Za-z0-9 _.()!'*/-]*$")?t.size>25e6?c("111ea845-a413-4f4e-908f-18afd57be843"):s?s(e[0]).then(function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){W_(i,r,o,a,u,"next",e)}function u(e){W_(i,r,o,a,u,"throw",e)}a(void 0)}))}}(K_.mark((function e(t){var n;return K_.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:n=e.sent,c(n.id);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):c(n):c("88f694e2-6bb1-4171-a533-4095d45bf9ac: ".concat(n))}}),[]),accept:{"image/jpg":[],"image/jpeg":[],"image/png":[],"text/plain":[],"text/csv":[],"application/msword":[],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[],"application/pdf":[],"application/msoutlook":[".msg"]},maxFiles:1,noClick:m,disabled:o}),w=g.getRootProps,_=g.getInputProps;function x(){d(""),c(null),v(!1)}return y.exports.useEffect((function(){var e=b.watch((function(e){e.hasOwnProperty(n)||x()}));return function(){e.unsubscribe()}}),[b.watch]),ce.createElement(ce.Fragment,null,a&&r&&ce.createElement(Zb,{htmlFor:n},r,i&&ce.createElement(o_,null,"*")),ce.createElement("div",{className:"container"},ce.createElement("label",null,"Only .txt, .csv, .doc, .docx, .pdf, .png, .jpg, .jpeg, .msg are supported file formats and must not exceed to 25 MB (Multiple files are not supported)."),ce.createElement(Uk,w({className:"dropzone"}),ce.createElement("label",{htmlFor:"input-"+n,className:"ta-upm-field-hidden"},n),ce.createElement("input",Y_({id:"input-"+n},_())),ce.createElement("p",null,ce.createElement("label",{style:{cursor:"pointer"}},""===p?"Drop attachment here or browse from your computer.":p),""!==p&&ce.createElement(Fk,{id:"fileRemoveBtn",onClick:x},"X")))),t&&ce.createElement(n_,null,""!==l?l:"Field is invalid"))},Vk=mn.div.attrs((function(e){return{className:"ta-upm-group-toggle-switches-container"+(e.hidden?"ta-upm-field-hidden":"")}}))(Nk||(Nk=Nb(["\n display: inline-block;\n width: 100%;\n\n && p {\n margin: 0px;\n }\n"]))),zk=function(e){var t=e.id,n=e.name,r=e.checked,o=void 0!==r&&r,i=e.disabled,a=void 0!==i&&i,u=e.message,c=void 0===u?"":u,l=e.required,s=e.error,f=e.errorMessage,p=e.readOnly,d=e.showLabel,h=e.label,m=e.helpfulInfoText;e.childrenFormFields;var y=e.onChange,v=void 0===y?function(){}:y,b=e.displayStateText;return ce.createElement(Vk,null,ce.createElement(z_,{id:t,name:n,checked:o,disabled:a,message:c,error:s,errorMessage:f,readOnly:p,showLabel:d,required:l,label:h,helpfulInfoText:m,onChange:v,displayStateText:b}),ce.createElement(I_,null),s&&ce.createElement(n_,null,""!==f?f:"Field is invalid."))},Hk={exports:{}};Lk=Hk,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r1?"s":"")+" required, but only "+t.length+" present")}function qk(e){return(qk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $k(e){return Wk(1,arguments),e instanceof Date||"object"===qk(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Gk(e){return(Gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kk(e){Wk(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Gk(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Qk(e){if(Wk(1,arguments),!$k(e)&&"number"!=typeof e)return!1;var t=Kk(e);return!isNaN(Number(t))}function Xk(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Zk(e,t){Wk(2,arguments);var n=Kk(e).getTime(),r=Xk(t);return new Date(n+r)}function Jk(e,t){Wk(2,arguments);var n=Xk(t);return Zk(e,-n)}var eO=864e5;function tO(e){Wk(1,arguments);var t=1,n=Kk(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function rO(e){Wk(1,arguments);var t=nO(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=tO(n);return r}var oO=6048e5;function iO(e){Wk(1,arguments);var t=Kk(e),n=tO(t).getTime()-rO(t).getTime();return Math.round(n/oO)+1}var aO={};function uO(){return aO}function cO(e,t){var n,r,o,i,a,u,c,l;Wk(1,arguments);var s=uO(),f=Xk(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(u=a.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==o?o:s.weekStartsOn)&&void 0!==r?r:null===(c=s.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Kk(e),d=p.getUTCDay(),h=(d=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var m=cO(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=cO(y,t);return s.getTime()>=m.getTime()?f+1:s.getTime()>=v.getTime()?f:f-1}function sO(e,t){var n,r,o,i,a,u,c,l;Wk(1,arguments);var s=uO(),f=Xk(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(u=a.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:s.firstWeekContainsDate)&&void 0!==r?r:null===(c=s.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),p=lO(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=cO(d,t);return h}var fO=6048e5;function pO(e,t){Wk(1,arguments);var n=Kk(e),r=cO(n,t).getTime()-sO(n,t).getTime();return Math.round(r/fO)+1}function dO(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return dO("yy"===t?r%100:r,t.length)},mO=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):dO(n+1,2)},yO=function(e,t){return dO(e.getUTCDate(),t.length)},vO=function(e,t){return dO(e.getUTCHours()%12||12,t.length)},bO=function(e,t){return dO(e.getUTCHours(),t.length)},gO=function(e,t){return dO(e.getUTCMinutes(),t.length)},wO=function(e,t){return dO(e.getUTCSeconds(),t.length)},_O=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return dO(Math.floor(r*Math.pow(10,n-3)),t.length)},xO="midnight",kO="noon",OO="morning",SO="afternoon",EO="evening",TO="night",CO={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return hO(e,t)},Y:function(e,t,n,r){var o=lO(e,r),i=o>0?o:1-o;return"YY"===t?dO(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):dO(i,t.length)},R:function(e,t){return dO(nO(e),t.length)},u:function(e,t){return dO(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return dO(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return dO(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return mO(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return dO(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=pO(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):dO(o,t.length)},I:function(e,t,n){var r=iO(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):dO(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):yO(e,t)},D:function(e,t,n){var r=function(e){Wk(1,arguments);var t=Kk(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/eO)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):dO(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return dO(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return dO(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return dO(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?kO:0===o?xO:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?EO:o>=12?SO:o>=4?OO:TO,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vO(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bO(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):dO(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):dO(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):gO(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):wO(e,t)},S:function(e,t){return _O(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return DO(o);case"XXXX":case"XX":return jO(o);case"XXXXX":case"XXX":default:return jO(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return DO(o);case"xxxx":case"xx":return jO(o);case"xxxxx":case"xxx":default:return jO(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+PO(o,":");case"OOOO":default:return"GMT"+jO(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+PO(o,":");case"zzzz":default:return"GMT"+jO(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return dO(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return dO((r._originalDate||e).getTime(),t.length)}};function PO(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+dO(i,2)}function DO(e,t){return e%60==0?(e>0?"-":"+")+dO(Math.abs(e)/60,2):jO(e,t)}function jO(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+dO(Math.floor(o/60),2)+n+dO(o%60,2)}var RO=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},IO=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},AO={p:IO,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return RO(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",RO(o,t)).replace("{{time}}",IO(i,t))}};function MO(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var NO=["D","DD"],LO=["YY","YYYY"];function FO(e){return-1!==NO.indexOf(e)}function UO(e){return-1!==LO.indexOf(e)}function BO(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var VO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function zO(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var HO={date:zO({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:zO({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:zO({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},YO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function WO(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,u=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[u]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function qO(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,u=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?GO(c,(function(e){return e.test(u)})):$O(c,(function(e){return e.test(u)}));a=e.valueCallback?e.valueCallback(l):l,a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(u.length);return{value:a,rest:s}}}function $O(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function GO(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:HO,formatRelative:function(e,t,n,r){return YO[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:WO({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:WO({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:WO({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:WO({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:WO({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(o.length);return{value:a,rest:u}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:qO({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:qO({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:qO({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:qO({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:qO({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},QO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZO=/^'([^]*?)'?$/,JO=/''/g,eS=/[a-zA-Z]/;function tS(e,t,n){var r,o,i,a,u,c,l,s,f,p,d,h,m,y,v,b,g,w;Wk(2,arguments);var _=String(t),x=uO(),k=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:x.locale)&&void 0!==r?r:KO,O=Xk(null!==(i=null!==(a=null!==(u=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(l=n.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==u?u:x.firstWeekContainsDate)&&void 0!==a?a:null===(f=x.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Xk(null!==(d=null!==(h=null!==(m=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==h?h:null===(g=x.locale)||void 0===g||null===(w=g.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var E=Kk(e);if(!Qk(E))throw new RangeError("Invalid time value");var T=MO(E),C=Jk(E,T),P={firstWeekContainsDate:O,weekStartsOn:S,locale:k,_originalDate:E},D=_.match(XO).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,AO[t])(e,k.formatLong):e})).join("").match(QO).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return nS(r);var i=CO[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!UO(r)||BO(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!FO(r)||BO(r,t,String(e)),i(C,r,k.localize,P);if(o.match(eS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return D}function nS(e){var t=e.match(ZO);return t?t[1].replace(JO,"'"):e}function rS(e,t){Wk(2,arguments);var n=Xk(t);return Zk(e,6e4*n)}var oS=36e5;function iS(e,t){Wk(2,arguments);var n=Xk(t);return Zk(e,n*oS)}function aS(e,t){Wk(2,arguments);var n=Kk(e),r=Xk(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function uS(e,t){Wk(2,arguments);var n=Xk(t),r=7*n;return aS(e,r)}function cS(e,t){Wk(2,arguments);var n=Kk(e),r=Xk(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function lS(e,t){Wk(2,arguments);var n=Xk(t),r=3*n;return cS(e,r)}function sS(e,t){Wk(2,arguments);var n=Xk(t);return cS(e,12*n)}function fS(e,t){Wk(2,arguments);var n=Xk(t);return aS(e,-n)}function pS(e,t){Wk(2,arguments);var n=Xk(t);return cS(e,-n)}function dS(e,t){Wk(2,arguments);var n=Xk(t);return lS(e,-n)}function hS(e,t){Wk(2,arguments);var n=Xk(t);return sS(e,-n)}function mS(e){Wk(1,arguments);var t=Kk(e),n=t.getSeconds();return n}function yS(e){Wk(1,arguments);var t=Kk(e),n=t.getMinutes();return n}function vS(e){Wk(1,arguments);var t=Kk(e),n=t.getHours();return n}function bS(e){Wk(1,arguments);var t=Kk(e),n=t.getDay();return n}function gS(e){Wk(1,arguments);var t=Kk(e),n=t.getDate();return n}function wS(e,t){var n,r,o,i,a,u,c,l;Wk(1,arguments);var s=uO(),f=Xk(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(u=a.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==o?o:s.weekStartsOn)&&void 0!==r?r:null===(c=s.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Kk(e),d=p.getDay(),h=(d=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function kS(e){Wk(1,arguments);var t=xS(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=_S(n);return r}var OS=6048e5;function SS(e){Wk(1,arguments);var t=Kk(e),n=t.getMonth();return n}function ES(e){Wk(1,arguments);var t=Kk(e),n=Math.floor(t.getMonth()/3)+1;return n}function TS(e){return Wk(1,arguments),Kk(e).getFullYear()}function CS(e){Wk(1,arguments);var t=Kk(e),n=t.getTime();return n}function PS(e,t){Wk(2,arguments);var n=Kk(e),r=Xk(t);return n.setMinutes(r),n}function DS(e,t){Wk(2,arguments);var n=Kk(e),r=Xk(t);return n.setHours(r),n}function jS(e){Wk(1,arguments);var t=Kk(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function RS(e,t){Wk(2,arguments);var n=Kk(e),r=Xk(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var u=jS(a);return n.setMonth(r,Math.min(i,u)),n}function IS(e,t){Wk(2,arguments);var n=Kk(e),r=Xk(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return RS(n,n.getMonth()+3*i)}function AS(e,t){Wk(2,arguments);var n=Kk(e),r=Xk(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function MS(e){return(MS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NS(e){var t,n;if(Wk(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==MS(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Kk(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}function LS(e){return(LS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function FS(e){var t,n;if(Wk(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==LS(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Kk(e);(void 0===n||nr.getTime()}function ZS(e,t){Wk(2,arguments);var n=Kk(e),r=Kk(t);return n.getTime()=r&&n<=o}function eE(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function tE(e){return(tE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rE(e,t)}function rE(e,t){return(rE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uE(e);if(t){var o=uE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iE(this,n)}}function iE(e,t){return!t||"object"!==tE(t)&&"function"!=typeof t?aE(e):t}function aE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uE(e){return(uE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lE(e,t){for(var n=0;n0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function uT(e){return e%400==0||e%4==0&&e%100!=0}function cT(e){return(cT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sT(e,t){for(var n=0;n0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=aT(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}])&&sT(t.prototype,n),r&&sT(t,r),i}(yE);function bT(e){return(bT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wT(e,t){for(var n=0;n0}},{key:"set",value:function(e,t,n,r){var o=lO(e,r);if(n.isTwoDigitYear){var i=aT(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),cO(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),cO(e,r)}}])&&wT(t.prototype,n),r&&wT(t,r),i}(yE);function CT(e){return(CT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function PT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DT(e,t){for(var n=0;n=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&QT(t.prototype,n),r&&QT(t,r),i}(yE);function oC(e){return(oC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function iC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(e,t){for(var n=0;n=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&aC(t.prototype,n),r&&aC(t,r),i}(yE);function hC(e){return(hC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yC(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&yC(t.prototype,n),r&&yC(t,r),i}(yE);function OC(e){return(OC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EC(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&EC(t.prototype,n),r&&EC(t,r),i}(yE);function AC(e){return(AC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function MC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NC(e,t){for(var n=0;n=1&&t<=53}},{key:"set",value:function(e,t,n,r){return cO(function(e,t,n){Wk(2,arguments);var r=Kk(e),o=Xk(t),i=pO(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}])&&NC(t.prototype,n),r&&NC(t,r),i}(yE);function YC(e){return(YC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qC(e,t){for(var n=0;n=1&&t<=53}},{key:"set",value:function(e,t,n){return tO(function(e,t){Wk(2,arguments);var n=Kk(e),r=Xk(t),o=iO(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}])&&qC(t.prototype,n),r&&qC(t,r),i}(yE);function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nP(e,t){for(var n=0;n=1&&t<=sP[r]:t>=1&&t<=lP[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}])&&nP(t.prototype,n),r&&nP(t,r),i}(yE);function pP(e){return(pP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hP(e,t){for(var n=0;n=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}])&&hP(t.prototype,n),r&&hP(t,r),i}(yE);function xP(e,t,n){var r,o,i,a,u,c,l,s;Wk(2,arguments);var f=uO(),p=Xk(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(l=f.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Kk(e),h=Xk(t),m=d.getUTCDay(),y=h%7,v=(y+7)%7,b=(v=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=xP(e,n,r)).setUTCHours(0,0,0,0),e}}])&&SP(t.prototype,n),r&&SP(t,r),i}(yE);function IP(e){return(IP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function AP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MP(e,t){for(var n=0;n=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=xP(e,n,r)).setUTCHours(0,0,0,0),e}}])&&MP(t.prototype,n),r&&MP(t,r),i}(yE);function HP(e){return(HP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function YP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WP(e,t){for(var n=0;n=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=xP(e,n,r)).setUTCHours(0,0,0,0),e}}])&&WP(t.prototype,n),r&&WP(t,r),i}(yE);function JP(e){return(JP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tD(e,t){for(var n=0;n=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){Wk(2,arguments);var n=Xk(t);n%7==0&&(n-=7);var r=1,o=Kk(e),i=o.getUTCDay(),a=((n%7+7)%7=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}])&&VD(t.prototype,n),r&&VD(t,r),i}(yE);function KD(e){return(KD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function QD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XD(e,t){for(var n=0;n=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}])&&XD(t.prototype,n),r&&XD(t,r),i}(yE);function ij(e){return(ij="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uj(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}])&&uj(t.prototype,n),r&&uj(t,r),i}(yE);function mj(e){return(mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vj(e,t){for(var n=0;n=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}])&&vj(t.prototype,n),r&&vj(t,r),i}(yE);function Sj(e){return(Sj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ej(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tj(e,t){for(var n=0;n=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}])&&Tj(t.prototype,n),r&&Tj(t,r),i}(yE);function Mj(e){return(Mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lj(e,t){for(var n=0;n=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}])&&Lj(t.prototype,n),r&&Lj(t,r),i}(yE);function Wj(e){return(Wj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $j(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function YR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=Xk(null!==(h=null!==(m=null!==(y=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(b=r.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==y?y:O.weekStartsOn)&&void 0!==m?m:null===(w=O.locale)||void 0===w||null===(_=w.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==h?h:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?Kk(n):new Date(NaN);var C,P={firstWeekContainsDate:E,weekStartsOn:T,locale:S},D=[new hE],j=k.match(qR).map((function(e){var t=e[0];return t in AO?(0,AO[t])(e,S.formatLong):e})).join("").match(WR),R=[],I=HR(j);try{var A=function(){var t=C.value;null!=r&&r.useAdditionalWeekYearTokens||!UO(t)||BO(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!FO(t)||BO(t,k,e);var n=t[0],o=VR[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=R.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));R.push({token:n,fullToken:t});var u=o.run(x,t,S.match,P);if(!u)return{v:new Date(NaN)};D.push(u.setter),x=u.rest}else{if(n.match(QR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=ZR(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(I.s();!(C=I.n()).done;){var M=A();if("object"===zR(M))return M.v}}catch(e){I.e(e)}finally{I.f()}if(x.length>0&&KR.test(x))return new Date(NaN);var N=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=Kk(n);if(isNaN(L.getTime()))return new Date(NaN);var F,U=Jk(L,MO(L)),B={},V=HR(N);try{for(V.s();!(F=V.n()).done;){var z=F.value;if(!z.validate(U,P))return new Date(NaN);var H=z.set(U,B,P);Array.isArray(H)?(U=H[0],eE(B,H[1])):U=H}}catch(e){V.e(e)}finally{V.f()}return U}function ZR(e){return e.match($R)[1].replace(GR,"'")}var JR={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},eI=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tI=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nI=/^([+-])(\d{2})(?::?(\d{2}))?$/;function rI(e){var t,n={},r=e.split(JR.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],JR.timeZoneDelimiter.test(n.date)&&(n.date=e.split(JR.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=JR.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function oI(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}function iI(e,t){if(null===t)return new Date(NaN);var n=e.match(eI);if(!n)return new Date(NaN);var r=!!n[4],o=aI(n[1]),i=aI(n[2])-1,a=aI(n[3]),u=aI(n[4]),c=aI(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,u,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,u,c):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(sI[t]||(fI(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(fI(e)?366:365)}(t,o)?(l.setUTCFullYear(t,i,Math.max(o,a)),l):new Date(NaN)}function aI(e){return e?parseInt(e):1}function uI(e){var t=e.match(tI);if(!t)return NaN;var n=cI(t[1]),r=cI(t[2]),o=cI(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*CE+r*TE+1e3*o:NaN}function cI(e){return e&&parseFloat(e.replace(",","."))||0}function lI(e){if("Z"===e)return 0;var t=e.match(nI);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*CE+o*TE):NaN}var sI=[31,null,31,30,31,30,31,31,30,31,30,31];function fI(e){return e%400==0||e%4==0&&e%100!=0}function pI(e,t){return(pI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hI(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var mI,yI,vI=(void 0===mI&&(mI=0),function(){return++mI}),bI={},gI={},wI=["touchstart","touchmove"];function _I(e,t){var n=null;return-1!==wI.indexOf(t)&&yI&&(n={passive:!e.props.preventDefault}),n}function xI(e,t){var n,r,o=e.displayName||e.name||"Component";return r=n=function(n){var r,i;function a(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+o+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():ir.exports.findDOMNode(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!gI[r._uid]){void 0===yI&&(yI=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),gI[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),bI[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&hI(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,bI[r._uid],_I(dI(r),e))}))}},r.disableOnClickOutside=function(){delete gI[r._uid];var e=bI[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,_I(dI(r),t))})),delete bI[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=vI(),r}i=n,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,pI(r,i);var u=a.prototype;return u.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},u.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+o+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},u.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},u.componentWillUnmount=function(){this.disableOnClickOutside()},u.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,y.exports.createElement(e,n)},a}(y.exports.Component),n.displayName="OnClickOutside("+o+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var kI=y.exports.createContext(),OI=y.exports.createContext();function SI(e){var t=e.children,n=y.exports.useState(null),r=n[0],o=n[1],i=y.exports.useRef(!1);y.exports.useEffect((function(){return function(){i.current=!0}}),[]);var a=y.exports.useCallback((function(e){i.current||o(e)}),[]);return y.exports.createElement(kI.Provider,{value:r},y.exports.createElement(OI.Provider,{value:a},t))}var EI=function(e){return Array.isArray(e)?e[0]:e},TI=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&JI(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&JI(r.height)/e.offsetHeight||1);var a=(qI(e)?WI(e):window).visualViewport,u=!tA()&&n,c=(r.left+(u&&a?a.offsetLeft:0))/o,l=(r.top+(u&&a?a.offsetTop:0))/i,s=r.width/o,f=r.height/i;return{width:s,height:f,top:l,right:c+s,bottom:l+f,left:c,x:c,y:l}}function rA(e){var t=nA(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oA(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&GI(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function iA(e){return WI(e).getComputedStyle(e)}function aA(e){return["table","td","th"].indexOf(YI(e))>=0}function uA(e){return((qI(e)?e.ownerDocument:e.document)||window.document).documentElement}function cA(e){return"html"===YI(e)?e:e.assignedSlot||e.parentNode||(GI(e)?e.host:null)||uA(e)}function lA(e){return $I(e)&&"fixed"!==iA(e).position?e.offsetParent:null}function sA(e){for(var t=WI(e),n=lA(e);n&&aA(n)&&"static"===iA(n).position;)n=lA(n);return n&&("html"===YI(n)||"body"===YI(n)&&"static"===iA(n).position)?t:n||function(e){var t=/firefox/i.test(eA());if(/Trident/i.test(eA())&&$I(e)&&"fixed"===iA(e).position)return null;var n=cA(e);for(GI(n)&&(n=n.host);$I(n)&&["html","body"].indexOf(YI(n))<0;){var r=iA(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function fA(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pA(e,t,n){return XI(e,ZI(t,n))}function dA(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function hA(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function mA(e){return e.split("-")[1]}var yA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vA(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,u=e.position,c=e.gpuAcceleration,l=e.adaptive,s=e.roundOffsets,f=e.isFixed,p=a.x,d=void 0===p?0:p,h=a.y,m=void 0===h?0:h,y="function"==typeof s?s({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=AI,w=jI,_=window;if(l){var x=sA(n),k="clientHeight",O="clientWidth";if(x===WI(n)&&"static"!==iA(x=uA(n)).position&&"absolute"===u&&(k="scrollHeight",O="scrollWidth"),x=x,o===jI||(o===AI||o===II)&&i===FI)w=RI,m-=(f&&x===_&&_.visualViewport?_.visualViewport.height:x[k])-r.height,m*=c?1:-1;if(o===AI||(o===jI||o===RI)&&i===FI)g=II,d-=(f&&x===_&&_.visualViewport?_.visualViewport.width:x[O])-r.width,d*=c?1:-1}var S,E=Object.assign({position:u},l&&yA),T=!0===s?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:JI(t*r)/r||0,y:JI(n*r)/r||0}}({x:d,y:m}):{x:d,y:m};return d=T.x,m=T.y,c?Object.assign({},E,((S={})[w]=b?"0":"",S[g]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",S)):Object.assign({},E,((t={})[w]=b?m+"px":"",t[g]=v?d+"px":"",t.transform="",t))}var bA={passive:!0};var gA={left:"right",right:"left",bottom:"top",top:"bottom"};function wA(e){return e.replace(/left|right|bottom|top/g,(function(e){return gA[e]}))}var _A={start:"end",end:"start"};function xA(e){return e.replace(/start|end/g,(function(e){return _A[e]}))}function kA(e){var t=WI(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function OA(e){return nA(uA(e)).left+kA(e).scrollLeft}function SA(e){var t=iA(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function EA(e){return["html","body","#document"].indexOf(YI(e))>=0?e.ownerDocument.body:$I(e)&&SA(e)?e:EA(cA(e))}function TA(e,t){var n;void 0===t&&(t=[]);var r=EA(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=WI(r),a=o?[i].concat(i.visualViewport||[],SA(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(TA(cA(a)))}function CA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PA(e,t,n){return t===UI?CA(function(e,t){var n=WI(e),r=uA(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,c=0;if(o){i=o.width,a=o.height;var l=tA();(l||!l&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+OA(e),y:c}}(e,n)):qI(t)?function(e,t){var n=nA(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):CA(function(e){var t,n=uA(e),r=kA(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=XI(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=XI(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+OA(e),c=-r.scrollTop;return"rtl"===iA(o||n).direction&&(u+=XI(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}(uA(e)))}function DA(e,t,n,r){var o="clippingParents"===t?function(e){var t=TA(cA(e)),n=["absolute","fixed"].indexOf(iA(e).position)>=0&&$I(e)?sA(e):e;return qI(n)?t.filter((function(e){return qI(e)&&oA(e,n)&&"body"!==YI(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce((function(t,n){var o=PA(e,n,r);return t.top=XI(o.top,t.top),t.right=ZI(o.right,t.right),t.bottom=ZI(o.bottom,t.bottom),t.left=XI(o.left,t.left),t}),PA(e,a,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function jA(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?QI(o):null,a=o?mA(o):null,u=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case jI:t={x:u,y:n.y-r.height};break;case RI:t={x:u,y:n.y+n.height};break;case II:t={x:n.x+n.width,y:c};break;case AI:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=i?fA(i):null;if(null!=l){var s="y"===l?"height":"width";switch(a){case LI:t[l]=t[l]-(n[s]/2-r[s]/2);break;case FI:t[l]=t[l]+(n[s]/2-r[s]/2)}}return t}function RA(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,u=n.boundary,c=void 0===u?"clippingParents":u,l=n.rootBoundary,s=void 0===l?UI:l,f=n.elementContext,p=void 0===f?BI:f,d=n.altBoundary,h=void 0!==d&&d,m=n.padding,y=void 0===m?0:m,v=dA("number"!=typeof y?y:hA(y,NI)),b=p===BI?"reference":BI,g=e.rects.popper,w=e.elements[h?b:p],_=DA(qI(w)?w:w.contextElement||uA(e.elements.popper),c,s,a),x=nA(e.elements.reference),k=jA({reference:x,element:g,strategy:"absolute",placement:o}),O=CA(Object.assign({},g,k)),S=p===BI?O:x,E={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=e.modifiersData.offset;if(p===BI&&T){var C=T[o];Object.keys(E).forEach((function(e){var t=[II,RI].indexOf(e)>=0?1:-1,n=[jI,RI].indexOf(e)>=0?"y":"x";E[e]+=C[n]*t}))}return E}function IA(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?zI:c,s=mA(r),f=s?u?VI:VI.filter((function(e){return mA(e)===s})):NI,p=f.filter((function(e){return l.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=RA(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[QI(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}function AA(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function MA(e){return[jI,II,RI,AI].some((function(t){return e[t]>=0}))}function NA(e,t,n){void 0===n&&(n=!1);var r=$I(t),o=$I(t)&&function(e){var t=e.getBoundingClientRect(),n=JI(t.width)/e.offsetWidth||1,r=JI(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=uA(t),a=nA(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==YI(t)||SA(i))&&(u=function(e){return e!==WI(e)&&$I(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:kA(e);var t}(t)),$I(t)?((c=nA(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=OA(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function LA(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function FA(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var UA={placement:"bottom",modifiers:[],strategy:"absolute"};function BA(){for(var e=arguments.length,t=new Array(e),n=0;n=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[AI,II].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}(n,t.rects,i),e}),{}),u=a[t.placement],c=u.x,l=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0===a||a,c=n.fallbackPlacements,l=n.padding,s=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,y=t.options.placement,v=QI(y),b=c||(v===y||!h?[wA(y)]:function(e){if(QI(e)===MI)return[];var t=wA(e);return[xA(e),t,xA(t)]}(y)),g=[y].concat(b).reduce((function(e,n){return e.concat(QI(n)===MI?IA(t,{placement:n,boundary:s,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,k=!0,O=g[0],S=0;S=0,D=P?"width":"height",j=RA(t,{placement:E,boundary:s,rootBoundary:f,altBoundary:p,padding:l}),R=P?C?II:AI:C?RI:jI;w[D]>_[D]&&(R=wA(R));var I=wA(R),A=[];if(i&&A.push(j[T]<=0),u&&A.push(j[R]<=0,j[I]<=0),A.every((function(e){return e}))){O=E,k=!1;break}x.set(E,A)}if(k)for(var M=function(e){var t=g.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},N=h?3:1;N>0;N--){if("break"===M(N))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0!==a&&a,c=n.boundary,l=n.rootBoundary,s=n.altBoundary,f=n.padding,p=n.tether,d=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,y=RA(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:s}),v=QI(t.placement),b=mA(t.placement),g=!b,w=fA(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(x){if(i){var P,D="y"===w?jI:AI,j="y"===w?RI:II,R="y"===w?"height":"width",I=x[w],A=I+y[D],M=I-y[j],N=d?-O[R]/2:0,L=b===LI?k[R]:O[R],F=b===LI?-O[R]:-k[R],U=t.elements.arrow,B=d&&U?rA(U):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[D],H=V[j],Y=pA(0,k[R],B[R]),W=g?k[R]/2-N-Y-z-E.mainAxis:L-Y-z-E.mainAxis,q=g?-k[R]/2+N+Y+H+E.mainAxis:F+Y+H+E.mainAxis,$=t.elements.arrow&&sA(t.elements.arrow),G=$?"y"===w?$.clientTop||0:$.clientLeft||0:0,K=null!=(P=null==T?void 0:T[w])?P:0,Q=I+q-K,X=pA(d?ZI(A,I+W-K-G):A,I,d?XI(M,Q):M);x[w]=X,C[w]=X-I}if(u){var Z,J="x"===w?jI:AI,ee="x"===w?RI:II,te=x[_],ne="y"===_?"height":"width",re=te+y[J],oe=te-y[ee],ie=-1!==[jI,AI].indexOf(v),ae=null!=(Z=null==T?void 0:T[_])?Z:0,ue=ie?re:te-k[ne]-O[ne]-ae+E.altAxis,ce=ie?te+k[ne]+O[ne]-ae-E.altAxis:oe,le=d&&ie?function(e,t,n){var r=pA(e,t,n);return r>n?n:r}(ue,te,ce):pA(d?ue:re,te,d?ce:oe);x[_]=le,C[_]=le-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,u=QI(n.placement),c=fA(u),l=[AI,II].indexOf(u)>=0?"height":"width";if(i&&a){var s=function(e,t){return dA("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:hA(e,NI))}(o.padding,n),f=rA(i),p="y"===c?jI:AI,d="y"===c?RI:II,h=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],m=a[c]-n.rects.reference[c],y=sA(i),v=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,b=h/2-m/2,g=s[p],w=v-f[l]-s[d],_=v/2-f[l]/2+b,x=pA(g,_,w),k=c;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&oA(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=RA(t,{elementContext:"reference"}),u=RA(t,{altBoundary:!0}),c=AA(a,r),l=AA(u,o,i),s=MA(c),f=MA(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:s,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":f})}}]}),HA="undefined"!=typeof Element,YA="function"==typeof Map,WA="function"==typeof Set,qA="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function $A(e,t){if(e===t)return!0;if(e&&t&&"object"==ug(e)&&"object"==ug(t)){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!$A(e[r],t[r]))return!1;return!0}if(YA&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!$A(r.value[1],t.get(r.value[0])))return!1;return!0}if(WA&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(qA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(HA&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!$A(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var GA=function(e,t){try{return $A(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},KA=[],QA=function(){},XA=function(){return Promise.resolve(null)},ZA=[];function JA(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.strategy,o=void 0===r?"absolute":r,i=e.modifiers,a=void 0===i?ZA:i,u=e.referenceElement,c=e.onFirstUpdate,l=e.innerRef,s=e.children,f=y.exports.useContext(kI),p=y.exports.useState(null),d=p[0],h=p[1],m=y.exports.useState(null),v=m[0],b=m[1];y.exports.useEffect((function(){CI(l,d)}),[l,d]);var g=y.exports.useMemo((function(){return{placement:n,strategy:o,onFirstUpdate:c,modifiers:[].concat(a,[{name:"arrow",enabled:null!=v,options:{element:v}}])}}),[n,o,c,a,v]),w=function(e,t,n){void 0===n&&(n={});var r=y.exports.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||KA},i=y.exports.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=i[0],u=i[1],c=y.exports.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);ir.exports.flushSync((function(){u({styles:PI(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:PI(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),l=y.exports.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return GA(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),s=y.exports.useRef();return DI((function(){s.current&&s.current.setOptions(l)}),[l]),DI((function(){if(null!=e&&null!=t){var r=(n.createPopper||zA)(e,t,l);return s.current=r,function(){r.destroy(),s.current=null}}}),[e,t,n.createPopper]),{state:s.current?s.current.state:null,styles:a.styles,attributes:a.attributes,update:s.current?s.current.update:null,forceUpdate:s.current?s.current.forceUpdate:null}}(u||f,d,g),_=w.state,x=w.styles,k=w.forceUpdate,O=w.update,S=y.exports.useMemo((function(){return{ref:h,style:x.popper,placement:_?_.placement:n,hasPopperEscaped:_&&_.modifiersData.hide?_.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:_&&_.modifiersData.hide?_.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:x.arrow,ref:b},forceUpdate:k||QA,update:O||XA}}),[h,b,n,_,x,O,k]);return EI(s)(S)}function eM(e){var t=e.children,n=e.innerRef,r=y.exports.useContext(OI),o=y.exports.useCallback((function(e){CI(n,e),TI(r,e)}),[n,r]);return y.exports.useEffect((function(){return function(){return CI(n,null)}}),[]),y.exports.useEffect((function(){}),[r]),EI(t)({ref:o})}function tM(e){return(tM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nM(e,t){if(Wk(2,arguments),"object"!==tM(t)||null===t)throw new RangeError("values parameter must be an object");var n=Kk(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=RS(n,t.month)),null!=t.date&&n.setDate(Xk(t.date)),null!=t.hours&&n.setHours(Xk(t.hours)),null!=t.minutes&&n.setMinutes(Xk(t.minutes)),null!=t.seconds&&n.setSeconds(Xk(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(Xk(t.milliseconds)),n)}function rM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oM(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.excludeDateIntervals,a=t.includeDates,u=t.includeDateIntervals,c=t.filterDate;return ZM(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return LM(e,t)}))||i&&i.some((function(t){var n=t.start,r=t.end;return JS(e,{start:n,end:r})}))||a&&!a.some((function(t){return LM(e,t)}))||u&&!u.some((function(t){var n=t.start,r=t.end;return JS(e,{start:n,end:r})}))||c&&!c(wM(e))||!1}function qM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return JS(e,{start:n,end:r})})):n&&n.some((function(t){return LM(e,t)}))||!1}function $M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return ZM(e,{minDate:YS(n),maxDate:GS(r)})||o&&o.some((function(t){return MM(e,t)}))||i&&!i.some((function(t){return MM(e,t)}))||a&&!a(wM(e))||!1}function GM(e,t,n,r){var o=TS(e),i=SS(e),a=TS(t),u=SS(t),c=TS(r);return o===a&&o===c?i<=n&&n<=u:o=n||co:void 0}function KM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return ZM(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return NM(e,t)}))||i&&!i.some((function(t){return NM(e,t)}))||a&&!a(wM(e))||!1}function QM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate,u=new Date(e,0,1);return ZM(u,{minDate:qS(n),maxDate:KS(r)})||o&&o.some((function(e){return AM(u,e)}))||i&&!i.some((function(e){return AM(u,e)}))||a&&!a(wM(u))||!1}function XM(e,t,n,r){var o=TS(e),i=ES(e),a=TS(t),u=ES(t),c=TS(r);return o===a&&o===c?i<=n&&n<=u:o=n||co:void 0}function ZM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&VS(e,n)<0||r&&VS(e,r)>0}function JM(e,t){return t.some((function(t){return vS(t)===vS(e)&&yS(t)===yS(e)}))}function eN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&JM(e,n)||r&&!JM(e,r)||o&&!o(e)||!1}function tN(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o,i=wM(),a=DS(PS(i,yS(e)),vS(e)),u=DS(PS(i,yS(n)),vS(n)),c=DS(PS(i,yS(r)),vS(r));try{o=!JS(a,{start:u,end:c})}catch(e){o=!1}return o}function nN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=pS(e,1);return n&&zS(n,o)>0||r&&r.every((function(e){return zS(e,o)>0}))||!1}function rN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=cS(e,1);return n&&zS(o,n)>0||r&&r.every((function(e){return zS(o,e)>0}))||!1}function oN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=hS(e,1);return n&&HS(n,o)>0||r&&r.every((function(e){return HS(e,o)>0}))||!1}function iN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=sS(e,1);return n&&HS(o,n)>0||r&&r.every((function(e){return HS(o,e)>0}))||!1}function aN(e){var t=e.minDate,n=e.includeDates;return n&&t?NS(n.filter((function(e){return VS(e,t)>=0}))):n?NS(n):t}function uN(e){var t=e.maxDate,n=e.includeDates;return n&&t?FS(n.filter((function(e){return VS(e,t)<=0}))):n?FS(n):t}function cN(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil(TS(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function pN(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,u=!0;n&&(u=TS(n)<=a),r&&u&&(u=TS(r)>=a),u&&o.push(a)}return o}var dN=xI(function(e){fM(n,ce.Component);var t=yM(n);function n(e){var r;aM(this,n),lM(hM(r=t.call(this,e)),"renderOptions",(function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return ce.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(hM(r),t),"aria-selected":e===t?"true":void 0},e===t?ce.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=r.props.minDate?TS(r.props.minDate):null,o=r.props.maxDate?TS(r.props.maxDate):null;return o&&r.state.yearsList.find((function(e){return e===o}))||t.unshift(ce.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},ce.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(ce.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},ce.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),lM(hM(r),"onChange",(function(e){r.props.onChange(e)})),lM(hM(r),"handleClickOutside",(function(){r.props.onCancel()})),lM(hM(r),"shiftYears",(function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})})),lM(hM(r),"incrementYears",(function(){return r.shiftYears(1)})),lM(hM(r),"decrementYears",(function(){return r.shiftYears(-1)}));var o=e.yearDropdownItemNumber,i=e.scrollableYearDropdown,a=o||(i?10:5);return r.state={yearsList:pN(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=y.exports.createRef(),r}return cM(n,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=Yk({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ce.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),n}()),hN=function(e){fM(n,ce.Component);var t=yM(n);function n(){var e;aM(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus({preventScroll:!0})})),lM(hM(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(gS(e.props.day),e.props.day):gS(e.props.day)})),lM(hM(e),"render",(function(){return ce.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())})),e}return cM(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(),_N=function(e){fM(n,ce.Component);var t=yM(n);function n(){var e;aM(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=6,u=!n&&!e.isWeekInMonth(i);if(a||u){if(!e.props.peekNextMonth)break;o=!0}}return t})),lM(hM(e),"onMonthClick",(function(t,n){e.handleDayClick(DM(RS(e.props.day,n)),t)})),lM(hM(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),lM(hM(e),"onMonthKeyDown",(function(t,n){t.preventDefault();var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,cS(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,pS(e.props.preSelection,1));break;case"ArrowUp":e.handleMonthNavigation(n>=0&&n<=2?n+9:n-3,pS(e.props.preSelection,3));break;case"ArrowDown":e.handleMonthNavigation(n>=9&&n<=11?n-9:n+3,cS(e.props.preSelection,3))}})),lM(hM(e),"onQuarterClick",(function(t,n){e.handleDayClick(RM(IS(e.props.day,n)),t)})),lM(hM(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),lM(hM(e),"onQuarterKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,lS(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,dS(e.props.preSelection,1))}})),lM(hM(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,u=n.minDate,c=n.maxDate,l=n.preSelection,s=n.monthClassName,f=n.excludeDates,p=n.includeDates,d=s?s(RS(r,t)):void 0,h=RS(r,t);return Yk("react-datepicker__month-text","react-datepicker__month-".concat(t),d,{"react-datepicker__month--disabled":(u||c||f||p)&&$M(h,e.props),"react-datepicker__month--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&SS(l)===t,"react-datepicker__month--in-range":GM(o,i,t,r),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),lM(hM(e),"getTabIndex",(function(t){var n=SS(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),lM(hM(e),"getQuarterTabIndex",(function(t){var n=ES(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),lM(hM(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,o=void 0===r?"Choose":r,i=n.disabledDayAriaLabelPrefix,a=void 0===i?"Not available":i,u=RS(n.day,t),c=e.isDisabled(u)||e.isExcluded(u)?a:o;return"".concat(c," ").concat(kM(u,"MMMM yyyy"))})),lM(hM(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,u=n.minDate,c=n.maxDate,l=n.preSelection;return Yk("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(u||c)&&KM(IS(r,t),e.props),"react-datepicker__quarter--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter-text--keyboard-selected":ES(l)===t,"react-datepicker__quarter--in-range":XM(o,i,t,r),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})})),lM(hM(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,o=t.showFourColumnMonthYearPicker,i=t.locale,a=t.day,u=t.selected;return(o?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map((function(t,r){return ce.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map((function(t,r){return ce.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":e.isSelectedMonth(a,t,u)},n?zM(t,i):HM(t,i))})))}))})),lM(hM(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return ce.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,o){return ce.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},YM(t,e.props.locale))})))})),lM(hM(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,o=t.selectsEnd,i=t.showMonthYearPicker,a=t.showQuarterYearPicker;return Yk("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||o)},{"react-datepicker__monthPicker":i},{"react-datepicker__quarterPicker":a})})),e}return cM(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,i=void 0===o?"month ":o;return ce.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(i," ").concat(kM(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(),ON=function(e){fM(n,ce.Component);var t=yM(n);function n(){var e;aM(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return DN.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),lM(hM(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,o=e.openToDate,i=aN(r.props),a=uN(r.props),u=wM();return o||n||t||(i&&ZS(u,i)?i:a&&XS(u,a)?a:u)})),lM(hM(r),"increaseMonth",(function(){r.setState((function(e){return{date:cS(e.date,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),lM(hM(r),"decreaseMonth",(function(){r.setState((function(e){return{date:pS(e.date,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),lM(hM(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),lM(hM(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),lM(hM(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),lM(hM(r),"handleYearChange",(function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),lM(hM(r),"handleMonthChange",(function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),lM(hM(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),lM(hM(r),"changeYear",(function(e){r.setState((function(t){return{date:AS(t.date,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),lM(hM(r),"changeMonth",(function(e){r.setState((function(t){return{date:RS(t.date,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),lM(hM(r),"changeMonthYear",(function(e){r.setState((function(t){return{date:AS(RS(t.date,SS(e)),TS(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),lM(hM(r),"header",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=PM(e,r.props.locale,r.props.calendarStartDay),n=[];return r.props.showWeekNumbers&&n.push(ce.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),n.concat([0,1,2,3,4,5,6].map((function(e){var n=aS(t,e),o=r.formatWeekday(n,r.props.locale),i=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return ce.createElement("div",{key:e,className:Yk("react-datepicker__day-name",i)},o)})))})),lM(hM(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return"function"==typeof t?t(e,n):kM(e,"EEEE",n)}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return kM(e,"EEE",t)}(e,t):function(e,t){return kM(e,"EEEEEE",t)}(e,t)})),lM(hM(r),"decreaseYear",(function(){r.setState((function(e){return{date:hS(e.date,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),lM(hM(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=oN(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,o=void 0===r?12:r,i=fN(jM(hS(e,o)),o).endPeriod,a=n&&TS(n);return a&&a>i||!1}(r.state.date,r.props);break;default:e=nN(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,a=i.previousMonthButtonLabel,u=i.previousYearButtonLabel,c=r.props,l=c.previousMonthAriaLabel,s=void 0===l?"string"==typeof a?a:"Previous Month":l,f=c.previousYearAriaLabel,p=void 0===f?"string"==typeof u?u:"Previous Year":f;return ce.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":o?p:s},ce.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),lM(hM(r),"increaseYear",(function(){r.setState((function(e){return{date:sS(e.date,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),lM(hM(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=iN(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,o=void 0===r?12:r,i=fN(sS(e,o),o).startPeriod,a=n&&TS(n);return a&&a0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ce.createElement("div",{className:t.join(" ")},kM(e,r.props.dateFormat,r.props.locale))})),lM(hM(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return ce.createElement(hN,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:TS(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),lM(hM(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return ce.createElement(yN,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:SS(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),lM(hM(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return ce.createElement(gN,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),lM(hM(r),"handleTodayButtonClick",(function(e){r.props.onSelect(IM(),e),r.props.setPreSelection&&r.props.setPreSelection(IM())})),lM(hM(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return ce.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)})),lM(hM(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return ce.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),ce.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),ce.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),lM(hM(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var o=nN(r.state.date,r.props),i=rN(r.state.date,r.props),a=oN(r.state.date,r.props),u=iN(r.state.date,r.props),c=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return ce.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(oM(oM({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:i,prevYearButtonDisabled:a,nextYearButtonDisabled:u})),c&&ce.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),lM(hM(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,o=fN(e,t.yearItemNumber),i=o.startPeriod,a=o.endPeriod;return ce.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(i," - ").concat(a):TS(e))})),lM(hM(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),lM(hM(r),"renderMonths",(function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=pS(r.state.date,t),o=0;o0;e.push(ce.createElement("div",{key:a,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:i,i:o}),ce.createElement(kN,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:i,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:o,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:u,monthShowsDuplicateDaysStart:c})))}return e}})),lM(hM(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?ce.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),ce.createElement(SN,sM({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0})),lM(hM(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return ce.createElement(ON,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),lM(hM(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=xM(e)&&Boolean(r.props.selected)?"".concat(sN(e.getHours()),":").concat(sN(e.getMinutes())):"";if(r.props.showTimeInput)return ce.createElement(EN,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),lM(hM(r),"renderAriaLiveRegion",(function(){var e,t=fN(r.state.date,r.props.yearItemNumber),n=t.startPeriod,o=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?TS(r.state.date):"".concat(zM(SS(r.state.date),r.props.locale)," ").concat(TS(r.state.date)),ce.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)})),lM(hM(r),"renderChildren",(function(){if(r.props.children)return ce.createElement("div",{className:"react-datepicker__children-container"},r.props.children)})),r.containerRef=ce.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return cM(n,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){!this.props.preSelection||LM(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn?this.props.openToDate&&!LM(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate}):this.setState({date:this.props.preSelection})}},{key:"render",value:function(){var e=this.props.container||TN;return ce.createElement("div",{ref:this.containerRef},ce.createElement(e,{className:Yk("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),RN=function(e){fM(n,ce.Component);var t=yM(n);function n(e){var r;return aM(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return cM(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ud.createPortal(this.props.children,this.el)}}]),n}(),IN=function(e){return!e.disabled&&-1!==e.tabIndex},AN=function(e){fM(n,ce.Component);var t=yM(n);function n(e){var r;return aM(this,n),lM(hM(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(IN)})),lM(hM(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),lM(hM(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=ce.createRef(),r}return cM(n,[{key:"render",value:function(){return this.props.enableTabLoop?ce.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ce.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ce.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),MN=function(e){fM(n,ce.Component);var t=yM(n);function n(){return aM(this,n),t.apply(this,arguments)}return cM(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,o=t.hidePopper,i=t.popperComponent,a=t.popperModifiers,u=t.popperPlacement,c=t.popperProps,l=t.targetComponent,s=t.enableTabLoop,f=t.popperOnKeyDown,p=t.portalId,d=t.portalHost;if(!o){var h=Yk("react-datepicker-popper",n);e=ce.createElement(JA,sM({modifiers:a,placement:u},c),(function(e){var t=e.ref,n=e.style,r=e.placement,o=e.arrowProps;return ce.createElement(AN,{enableTabLoop:s},ce.createElement("div",{ref:t,style:n,className:h,"data-placement":r,onKeyDown:f},ce.cloneElement(i,{arrowProps:o})))}))}this.props.popperContainer&&(e=ce.createElement(this.props.popperContainer,{},e)),p&&!o&&(e=ce.createElement(RN,{portalId:p,portalHost:d},e));var m=Yk("react-datepicker-wrapper",r);return ce.createElement(SI,{className:"react-datepicker-manager"},ce.createElement(eM,null,(function(e){var t=e.ref;return ce.createElement("div",{ref:t,className:m},l)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),NN=xI(jN),LN=function(e){fM(n,ce.Component);var t=yM(n);function n(e){var r;return aM(this,n),lM(hM(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:wM()})),lM(hM(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=aN(r.props),o=uN(r.props),i=n&&ZS(t,US(n))?n:o&&XS(t,$S(o))?o:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:i,highlightDates:cN(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),lM(hM(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),lM(hM(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),lM(hM(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),lM(hM(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:UN},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),lM(hM(r),"inputOk",(function(){return $k(r.state.preSelection)})),lM(hM(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),lM(hM(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),lM(hM(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),lM(hM(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),lM(hM(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),lM(hM(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),lM(hM(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),lM(hM(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]&&arguments[0],t="w-100";return o&&(t="".concat(t="w-50",e?" mr-10":" ml-10")),(u||""!==E)&&(t="".concat(t," red-border")),t}return y.exports.useEffect((function(){o&&b&&_&&function(e){var t=new Date;T("");var n=!0;s&&s.length>0&&s.forEach((function(r){var o,i,a=r.split("_"),u=[];"DATEA"===a[0]?(o=e[0],u[0]="'From Date'"):"DATEB"===a[0]&&(o=e[1],u[0]="'To Date'"),"DATEA"===a[2]?(i=e[0],u[1]="'From Date'"):"DATEB"===a[2]?(u[1]="'To Date'",i=e[1]):"SYS"===a[2]&&(u[1]="today's date",i=t),(""===E||n)&&(n=j(o,i,r,u))}));var r=[b,_].map((function(e){return tS(e,C())}));a(r)}([b,_])}),[b,_]),y.exports.useEffect((function(){var e=k.watch((function(e){e.hasOwnProperty(t)||(o&&(g(null),x(null),T("")),o||(g(null),T("")))}));return function(){e.unsubscribe()}}),[k.watch]),ce.createElement(ce.Fragment,null,m&&r&&ce.createElement(Zb,{htmlFor:t},r,n&&ce.createElement(o_,null,"*"),h&&ce.createElement(ag,{formFieldId:t,text:h})),!o&&ce.createElement(zN,null,ce.createElement("div",{className:"ta-single-date-picker"},ce.createElement(HN,null,ce.createElement(LN,{id:t+"-date-picker",required:n,disabled:d,showMonthYearPicker:P(),dateFormat:C(),selected:b,onChange:function(e){return D(e)},placeholderText:O,className:R(!0),showYearDropdown:!0,showMonthDropdown:!0,scrollableYearDropdown:!0})))),o&&ce.createElement(zN,null,ce.createElement("div",{className:"ta-range-date-picker"},ce.createElement(HN,null,ce.createElement(LN,{id:t+"-datea",disabled:d,required:n,showMonthYearPicker:P(),dateFormat:C(),selected:b,onChange:D,placeholderText:f,className:R(!0),showYearDropdown:!0,showMonthDropdown:!0,scrollableYearDropdown:!0,showFourColumnMonthYearPicker:!0}))),ce.createElement("div",{className:"ta-range-date-picker"},ce.createElement(HN,null,ce.createElement(LN,{id:t+"-dateb",required:n,disabled:d,showMonthYearPicker:P(),dateFormat:C(),selected:_,onChange:function(e){x(e)},placeholderText:p,className:R(!0),showYearDropdown:!0,showMonthDropdown:!0,scrollableYearDropdown:!0})))),""!==E&&ce.createElement(n_,null,E),u&&ce.createElement(n_,null,""!==c?c:"Field is invalid"))};function WN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qN(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.type.id,o={};if(e.settings){if(e.settings.required&&e.settings.required.value){var i=ZN.translate(XN.required,"");o.validate=function(t){if("string"==typeof t){if(0===t.trim().length)return""!=i?i:ZN.translate(QN.fieldRequired,"This field is required.")}else if(e.type.id===yb.NameField)if(e.extras.isFullname){var n=t.firstName,r=t.lastName;if(!n||!r||n&&0===n.trim().length||r&&0===r.trim().length)return""!=i?i:ZN.translate(QN.fieldRequired,"This field is required.")}else{var o=t.fullName;if(o&&0===o.trim().length)return""!=i?i:ZN.translate(QN.fieldRequired,"This field is required.")}return!0},o.required={value:!0,message:""!=i?i:ZN.translate(QN.fieldRequired,"This field is required.")}}e.settings.matchField&&e.settings.matchField.enabled&&!n&&(o.validate=function(){var t=document.getElementById(e.settings.matchField.fieldId),n=document.getElementById(e.id),r=ZN.translate(e.label,"-"),o=t.value===n.value,i=ZN.translate(XN.doesNotMatchField,"");return i=""!=i?i.replace("{0}",r):ZN.translate(QN.matchField,"This needs to match with field ".concat(r,".")).replace("{}","".concat(r)),o||i})}if(t[e.id]&&t[e.id].hasOwnProperty("required"))if(t[e.id].required){if(!o.hasOwnProperty("required")){var a=ZN.translate(XN.required,"");o.required={value:!0,message:""!=a?a:ZN.translate(QN.fieldRequired,"This field is required.")}}}else o.hasOwnProperty("required")&&delete o.required;switch(r){case yb.SingleLine:if(e.extras){var u=e.extras;if(u.validationRule){if(u.validationRule.characterLimit){var c=u.validationRule.characterLimit.max,l=u.validationRule.characterLimit.min,s=ZN.translate(XN.stringValueTooLarge,"");s=""!=s?s.replace("{0}",""+c):ZN.translate(QN.maxLimit,"Text exceeds the limit of ".concat(c," characters.")).replace("{}","".concat(c));var f=ZN.translate(XN.stringValueTooSmall,"");f=""!=f?f.replace("{0}",""+l):ZN.translate(QN.minLimit,"Text should have a minimum of ".concat(u.validationRule.characterLimit.min," characters.")).replace("{}","".concat(u.validationRule.characterLimit.min)),o.maxLength={value:u.validationRule.characterLimit.max,message:s},o.minLength={value:u.validationRule.characterLimit.min,message:f}}if(u.validationRule.format===wb.HYPERLINK){var p=ZN.translate(XN.stringBeLink,"");""===p&&(p=ZN.translate(QN.invalidUrl,"The input is not a valid URL.")),o.pattern={value:/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/,message:p}}else if(u.validationRule.format===wb.NUMBER){var d=ZN.translate(XN.stringBeNumbers,"");""===d&&(d=ZN.translate(QN.invalidUrl,"The input should only contain numbers.")),o.pattern={value:/^\d+$/,message:d}}else if(u.validationRule.format===wb.TEXT){var h=ZN.translate(XN.stringBeTexts,"");""===h&&(h=ZN.translate(QN.invalidUrl,"The input should only contain texts.")),o.pattern={value:/^[a-zA-Z]+$/i,message:h}}}}break;case yb.Email:var m=ZN.translate(XN.invalidEmail,"");""===m&&(m=ZN.translate(QN.invalidEmail,"The email is invalid.")),o.pattern={value:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:m};break;case yb.PhoneNumber:o.validate=function(t){if(o.required){if(!t)return ZN.translate(QN.fieldRequired,"This field is required.");if(e.extras&&e.extras.showCountryCode&&!t.selectedCountry)return ZN.translate(QN.countryCodeRequired,"Country code is required.");if(!t.phoneNumber)return ZN.translate(QN.phoneNoRequired,"Phone number is required.")}var n=Db(t);return!(t&&t.phoneNumber&&(!/^[(]{0,1}[0-9]{6,20}[)]{0,1}[-\s\./0-9]{0,20}$/.test(t.phoneNumber)||!/^((\+\d{1,2}\s?)?1?\-?\.?\s?\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4,20}$/.test(n)))||ZN.translate(QN.invalidPhoneNo,"Not a valid phone number.")};break;case yb.FileAttachment:o.validate=function(e){if(e&&e.includes("88f694e2-6bb1-4171-a533-4095d45bf9ac")){var t=ZN.translate(XN.invalidFilename,"");return""===t?(e.replace("88f694e2-6bb1-4171-a533-4095d45bf9ac","File name invalid"),t=e):t=t.replace("{0}",e.split("88f694e2-6bb1-4171-a533-4095d45bf9ac:")[1]),t}if(e&&"111ea845-a413-4f4e-908f-18afd57be843"===e){var n=ZN.translate(XN.invalidBigFiles,"");return""===n?(e.replace("111ea845-a413-4f4e-908f-18afd57be843","File size should be less then 25 mb"),n=e):n=n.replace("{0}","25"),n}return!0}}return o},eL=function(e,t){var n,r,o,i,a,u,c="";return c=ZN.hasTranslation(e.label)?ZN.translate(e.label,""):ZN.translate(e.id,e.label),{id:e.id,name:t.name,label:c,required:null===(n=e.settings)||void 0===n||null===(r=n.required)||void 0===r?void 0:r.value,hidden:!(null===(o=e.settings)||void 0===o||null===(i=o.hidden)||void 0===i||!i.value),readOnly:!(null===(a=e.settings)||void 0===a||null===(u=a.readOnly)||void 0===u||!u.value),showLabel:!(!1===e.showLabel)}};function tL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nL(e){for(var t=1;t0&&(n.options=t.options.map(e)),n},aL=function(e){return{label:"".concat(e.callingCode," ").concat(e.code),value:e.callingCode}};function uL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cL(e){for(var t=1;t0&&(a.value=a.options.filter((function(e){return l.findIndex((function(t){return t.id===e.value}))>-1}))),a.placeholder=ZN.translate(e.id+GN.placeholder,c.defaultPlaceholderText),a.helpfulInfoText=ZN.translate(e.id+GN.helpfulInfoTip,c.helpfulInfoText),a.multiple=!!c.allowMultipleSelect}return a};function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var fL=function(e,t){var n=function(e){for(var t=1;t0){var n=e.children.filter((function(e){return!!e.selected})).map(mL);n.length>0&&((t=t||mL(e)).options=n)}t&&o.optionList.push(t)})),lL(vL(vL({},e),{},{extras:o}),t,n,r)};function gL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wL(e){for(var t=1;t"']/g,G=RegExp(q.source),K=RegExp($.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),oe=/^\s+/,ie=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="['’]",Pe="[\\ud800-\\udfff]",De="["+Te+"]",je="["+xe+"]",Re="\\d+",Ie="[\\u2700-\\u27bf]",Ae="["+Oe+"]",Me="[^\\ud800-\\udfff"+Te+Re+ke+Oe+Se+"]",Ne="\\ud83c[\\udffb-\\udfff]",Le="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Se+"]",Ve="(?:"+Ae+"|"+Me+")",ze="(?:"+Be+"|"+Me+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+je+"|"+Ne+")"+"?",qe="[\\ufe0e\\ufe0f]?",$e=qe+We+("(?:\\u200d(?:"+[Le,Fe,Ue].join("|")+")"+qe+We+")*"),Ge="(?:"+[Ie,Fe,Ue].join("|")+")"+$e,Ke="(?:"+[Le+je+"?",je,Fe,Ue,Pe].join("|")+")",Qe=RegExp(Ce,"g"),Xe=RegExp(je,"g"),Ze=RegExp(Ne+"(?="+Ne+")|"+Ke+$e,"g"),Je=RegExp([Be+"?"+Ae+"+"+He+"(?="+[De,Be,"$"].join("|")+")",ze+"+"+Ye+"(?="+[De,Be+Ve,"$"].join("|")+")",Be+"?"+Ve+"+"+He,Be+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ge].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+xe+Ee+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[A]=ot[M]=ot[N]=ot[L]=ot[F]=ot[U]=ot[B]=ot[V]=ot[z]=!0,ot[y]=ot[v]=ot[R]=ot[b]=ot[I]=ot[g]=ot[w]=ot[_]=ot[k]=ot[O]=ot[S]=ot[T]=ot[C]=ot[P]=ot[j]=!1;var it={};it[y]=it[v]=it[R]=it[I]=it[b]=it[g]=it[A]=it[M]=it[N]=it[L]=it[F]=it[k]=it[O]=it[S]=it[T]=it[C]=it[P]=it[D]=it[U]=it[B]=it[V]=it[z]=!0,it[w]=it[_]=it[j]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ct=parseInt,lt="object"==jb(IL)&&IL&&IL.Object===Object&&IL,st="object"==("undefined"==typeof self?"undefined":jb(self))&&self&&self.Object===Object&&self,ft=lt||st||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,mt=ht&<.process,yt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=yt&&yt.isArrayBuffer,bt=yt&&yt.isDate,gt=yt&&yt.isMap,wt=yt&&yt.isRegExp,_t=yt&&yt.isSet,xt=yt&&yt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Dt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Jt(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var tn=Yt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+at[e]}function on(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n",""":'"',"'":"'"});var mn=function e(t){var ie=(t=null==t?ft:mn.defaults(ft.Object(),t,mn.pick(ft,nt))).Array,xe=t.Date,ke=t.Error,Oe=t.Function,Se=t.Math,Ee=t.Object,Te=t.RegExp,Ce=t.String,Pe=t.TypeError,De=ie.prototype,je=Oe.prototype,Re=Ee.prototype,Ie=t["__core-js_shared__"],Ae=je.toString,Me=Re.hasOwnProperty,Ne=0,Le=function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Re.toString,Ue=Ae.call(Ee),Be=ft._,Ve=Te("^"+Ae.call(Me).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ht?t.Buffer:n,He=t.Symbol,Ye=t.Uint8Array,We=ze?ze.allocUnsafe:n,qe=un(Ee.getPrototypeOf,Ee),$e=Ee.create,Ge=Re.propertyIsEnumerable,Ke=De.splice,Ze=He?He.isConcatSpreadable:n,et=He?He.iterator:n,at=He?He.toStringTag:n,lt=function(){try{var e=di(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=xe&&xe.now!==ft.Date.now&&xe.now,dt=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=Se.ceil,yt=Se.floor,Nt=Ee.getOwnPropertySymbols,Yt=ze?ze.isBuffer:n,yn=t.isFinite,vn=De.join,bn=un(Ee.keys,Ee),gn=Se.max,wn=Se.min,_n=xe.now,xn=t.parseInt,kn=Se.random,On=De.reverse,Sn=di(t,"DataView"),En=di(t,"Map"),Tn=di(t,"Promise"),Cn=di(t,"Set"),Pn=di(t,"WeakMap"),Dn=di(Ee,"create"),jn=Pn&&new Pn,Rn={},In=Bi(Sn),An=Bi(En),Mn=Bi(Tn),Nn=Bi(Cn),Ln=Bi(Pn),Fn=He?He.prototype:n,Un=Fn?Fn.valueOf:n,Bn=Fn?Fn.toString:n;function Vn(e){if(ru(e)&&!qa(e)&&!(e instanceof Wn)){if(e instanceof Yn)return e;if(Me.call(e,"__wrapped__"))return Vi(e)}return new Yn(e)}var zn=function(){function e(){}return function(t){if(!nu(t))return{};if($e)return $e(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Hn(){}function Yn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,r,o,i,a){var u,c=1&t,l=2&t,s=4&t;if(r&&(u=i?r(e,o,i,a):r(e)),u!==n)return u;if(!nu(e))return e;var f=qa(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return jo(e,u)}else{var p=yi(e),d=p==_||p==x;if(Qa(e))return So(e,c);if(p==S||p==y||d&&!i){if(u=l||d?{}:bi(e),!c)return l?function(e,t){return Ro(e,mi(e),t)}(e,function(e,t){return e&&Ro(t,Au(t),e)}(u,e)):function(e,t){return Ro(e,hi(e),t)}(e,ir(u,e))}else{if(!it[p])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case R:return Eo(e);case b:case g:return new r(+e);case I:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case M:case N:case L:case F:case U:case B:case V:case z:return To(e,n);case k:return new r;case O:case P:return new r(e);case T:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case D:return o=e,Un?Ee(Un.call(o)):{}}var o}(e,p,c)}}a||(a=new Qn);var h=a.get(e);if(h)return h;a.set(e,u),cu(e)?e.forEach((function(n){u.add(lr(n,t,r,n,e,a))})):ou(e)&&e.forEach((function(n,o){u.set(o,lr(n,t,r,o,e,a))}));var m=f?n:(s?l?ai:ii:l?Au:Iu)(e);return St(m||e,(function(n,o){m&&(n=e[o=n]),nr(u,o,lr(n,t,r,o,e,a))})),u}function sr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ee(e);o--;){var i=r[o],a=t[i],u=e[i];if(u===n&&!(i in e)||!a(u))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Pe(r);return Ii((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Pt,a=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=jt(t,Kt(n))),r?(i=Dt,a=!1):t.length>=200&&(i=Xt,a=!1,t=new Kn(t));e:for(;++o-1},$n.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(En||$n),string:new qn}},Gn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return fi(this,e).get(e)},Gn.prototype.has=function(e){return fi(this,e).has(e)},Gn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,o),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new $n,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var dr=Mo(_r),hr=Mo(xr,!0);function mr(e,t){var n=!0;return dr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function yr(e,t,r){for(var o=-1,i=e.length;++o0&&n(u)?t>1?br(u,t-1,n,r,o):Rt(o,u):r||(o[o.length]=u)}return o}var gr=No(),wr=No(!0);function _r(e,t){return e&&gr(e,t,Iu)}function xr(e,t){return e&&wr(e,t,Iu)}function kr(e,t){return Ct(t,(function(t){return Ja(e[t])}))}function Or(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&rt}function Cr(e,t){return null!=e&&Me.call(e,t)}function Pr(e,t){return null!=e&&t in Ee(e)}function Dr(e,t,r){for(var o=r?Dt:Pt,i=e[0].length,a=e.length,u=a,c=ie(a),l=1/0,s=[];u--;){var f=e[u];u&&t&&(f=jt(f,Kt(t))),l=wn(f.length,l),c[u]=!r&&(t||i>=120&&f.length>=120)?new Kn(u&&f):n}f=e[0];var p=-1,d=c[0];e:for(;++p=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&Ke.call(u,c,1),Ke.call(e,c,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Ke.call(e,o,1):po(e,o)}}return e}function Kr(e,t){return e+yt(kn()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=yt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ai(Ci(e,t,ic),e+"")}function Zr(e){return Zn(zu(e))}function Jr(e,t){var n=zu(e);return Li(n,cr(t,0,n.length))}function eo(e,t,r,o){if(!nu(e))return e;for(var i=-1,a=(t=_o(t,e)).length,u=a-1,c=e;null!=c&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=ie(o);++r>>1,a=e[i];null!==a&&!su(a)&&(n?a<=t:a=200){var l=t?null:Xo(e);if(l)return ln(l);a=!1,o=Xt,c=new Kn}else c=t?[]:u;e:for(;++r=o?e:oo(e,t,r)}var Oo=st||function(e){return ft.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Ye(t).set(new Ye(e)),t}function To(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=su(e),u=t!==n,c=null===t,l=t==t,s=su(t);if(!c&&!s&&!a&&e>t||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&e1?r[i-1]:n,u=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,u&&_i(r[0],r[1],u)&&(a=i<3?n:a,i=1),t=Ee(t);++o-1?i[a?t[u]:u]:n}}function Vo(e){return oi((function(t){var o=t.length,i=o,a=Yn.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new Pe(r);if(a&&!c&&"wrapper"==ci(u))var c=new Yn([],!0)}for(i=c?i:o;++i1&&b.reverse(),p&&sc))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var p=-1,d=!0,h=2&r?new Kn:n;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(m,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(r),n)))}function Ni(e){var t=0,r=0;return function(){var o=_n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Li(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ua(e,r)}));function ha(e){var t=Vn(e);return t.__chain__=!0,t}function ma(e,t){return t(e)}var ya=oi((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Wn&&wi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ma,args:[i],thisArg:n}),new Yn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var va=Io((function(e,t,n){Me.call(e,n)?++e[n]:ar(e,n,1)}));var ba=Bo(Wi),ga=Bo(qi);function wa(e,t){return(qa(e)?St:dr)(e,si(t,3))}function _a(e,t){return(qa(e)?Et:hr)(e,si(t,3))}var xa=Io((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var ka=Xr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ga(e)?ie(e.length):[];return dr(e,(function(e){i[++r]=o?kt(t,e,n):jr(e,t,n)})),i})),Oa=Io((function(e,t,n){ar(e,n,t)}));function Sa(e,t){return(qa(e)?jt:Br)(e,si(t,3))}var Ea=Io((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ta=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),Ca=pt||function(){return ft.Date.now()};function Pa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Jo(e,l,n,n,n,n,t)}function Da(e,t){var o;if("function"!=typeof t)throw new Pe(r);return e=yu(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var ja=Xr((function(e,t,n){var r=1;if(n.length){var o=cn(n,li(ja));r|=u}return Jo(e,r,t,n,o)})),Ra=Xr((function(e,t,n){var r=3;if(n.length){var o=cn(n,li(Ra));r|=u}return Jo(t,r,e,n,o)}));function Ia(e,t,o){var i,a,u,c,l,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Pe(r);function m(t){var r=i,o=a;return i=a=n,f=t,c=e.apply(o,r)}function y(e){return f=e,l=Ii(b,t),p?m(e):c}function v(e){var r=e-s;return s===n||r>=t||r<0||d&&e-f>=u}function b(){var e=Ca();if(v(e))return g(e);l=Ii(b,function(e){var n=t-(e-s);return d?wn(n,u-(e-f)):n}(e))}function g(e){return l=n,h&&i?m(e):(i=a=n,c)}function w(){var e=Ca(),r=v(e);if(i=arguments,a=this,s=e,r){if(l===n)return y(s);if(d)return Oo(l),l=Ii(b,t),m(s)}return l===n&&(l=Ii(b,t)),c}return t=bu(t)||0,nu(o)&&(p=!!o.leading,u=(d="maxWait"in o)?gn(bu(o.maxWait)||0,t):u,h="trailing"in o?!!o.trailing:h),w.cancel=function(){l!==n&&Oo(l),f=0,i=s=a=l=n},w.flush=function(){return l===n?c:g(Ca())},w}var Aa=Xr((function(e,t){return fr(e,1,t)})),Ma=Xr((function(e,t,n){return fr(e,bu(t)||0,n)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Na.Cache||Gn),n}function La(e){if("function"!=typeof e)throw new Pe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Gn;var Fa=xo((function(e,t){var n=(t=1==t.length&&qa(t[0])?jt(t[0],Kt(si())):jt(br(t,1),Kt(si()))).length;return Xr((function(r){for(var o=-1,i=wn(r.length,n);++o=t})),Wa=Rr(function(){return arguments}())?Rr:function(e){return ru(e)&&Me.call(e,"callee")&&!Ge.call(e,"callee")},qa=ie.isArray,$a=vt?Kt(vt):function(e){return ru(e)&&Er(e)==R};function Ga(e){return null!=e&&tu(e.length)&&!Ja(e)}function Ka(e){return ru(e)&&Ga(e)}var Qa=Yt||bc,Xa=bt?Kt(bt):function(e){return ru(e)&&Er(e)==g};function Za(e){if(!ru(e))return!1;var t=Er(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!au(e)}function Ja(e){if(!nu(e))return!1;var t=Er(e);return t==_||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eu(e){return"number"==typeof e&&e==yu(e)}function tu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function nu(e){var t=jb(e);return null!=e&&("object"==t||"function"==t)}function ru(e){return null!=e&&"object"==jb(e)}var ou=gt?Kt(gt):function(e){return ru(e)&&yi(e)==k};function iu(e){return"number"==typeof e||ru(e)&&Er(e)==O}function au(e){if(!ru(e)||Er(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Ue}var uu=wt?Kt(wt):function(e){return ru(e)&&Er(e)==T};var cu=_t?Kt(_t):function(e){return ru(e)&&yi(e)==C};function lu(e){return"string"==typeof e||!qa(e)&&ru(e)&&Er(e)==P}function su(e){return"symbol"==jb(e)||ru(e)&&Er(e)==D}var fu=xt?Kt(xt):function(e){return ru(e)&&tu(e.length)&&!!ot[Er(e)]};var pu=Go(Ur),du=Go((function(e,t){return e<=t}));function hu(e){if(!e)return[];if(Ga(e))return lu(e)?pn(e):jo(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=yi(e);return(t==k?an:t==C?ln:zu)(e)}function mu(e){return e?(e=bu(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function yu(e){var t=mu(e),n=t%1;return t==t?n?t-n:t:0}function vu(e){return e?cr(yu(e),0,h):0}function bu(e){if("number"==typeof e)return e;if(su(e))return d;if(nu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=me.test(e);return n||ve.test(e)?ct(e.slice(2),n?2:8):he.test(e)?d:+e}function gu(e){return Ro(e,Au(e))}function wu(e){return null==e?"":so(e)}var _u=Ao((function(e,t){if(Si(t)||Ga(t))Ro(t,Iu(t),e);else for(var n in t)Me.call(t,n)&&nr(e,n,t[n])})),xu=Ao((function(e,t){Ro(t,Au(t),e)})),ku=Ao((function(e,t,n,r){Ro(t,Au(t),e,r)})),Ou=Ao((function(e,t,n,r){Ro(t,Iu(t),e,r)})),Su=oi(ur);var Eu=Xr((function(e,t){e=Ee(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r1),t})),Ro(e,ai(e),n),r&&(n=lr(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n}));var Fu=oi((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Pu(e,n)}))}(e,t)}));function Uu(e,t){if(null==e)return{};var n=jt(ai(e),(function(e){return[e]}));return t=si(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var Bu=Zo(Iu),Vu=Zo(Au);function zu(e){return null==e?[]:Qt(e,Iu(e))}var Hu=Fo((function(e,t,n){return t=t.toLowerCase(),e+(n?Yu(t):t)}));function Yu(e){return Zu(wu(e).toLowerCase())}function Wu(e){return(e=wu(e))&&e.replace(ge,tn).replace(Xe,"")}var qu=Fo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$u=Fo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gu=Lo("toLowerCase");var Ku=Fo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Qu=Fo((function(e,t,n){return e+(n?" ":"")+Zu(t)}));var Xu=Fo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zu=Lo("toUpperCase");function Ju(e,t,r){return e=wu(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var ec=Xr((function(e,t){try{return kt(e,n,t)}catch(e){return Za(e)?e:new ke(e)}})),tc=oi((function(e,t){return St(t,(function(t){t=Ui(t),ar(e,t,ja(e[t],e))})),e}));function nc(e){return function(){return e}}var rc=Vo(),oc=Vo(!0);function ic(e){return e}function ac(e){return Nr("function"==typeof e?e:lr(e,1))}var uc=Xr((function(e,t){return function(n){return jr(n,e,t)}})),cc=Xr((function(e,t){return function(n){return jr(e,n,t)}}));function lc(e,t,n){var r=Iu(t),o=kr(t,r);null!=n||nu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,Iu(t)));var i=!(nu(n)&&"chain"in n&&!n.chain),a=Ja(e);return St(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=jo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function sc(){}var fc=Wo(jt),pc=Wo(Tt),dc=Wo(Mt);function hc(e){return xi(e)?Ht(Ui(e)):function(e){return function(t){return Or(t,e)}}(e)}var mc=$o(),yc=$o(!0);function vc(){return[]}function bc(){return!1}var gc=Yo((function(e,t){return e+t}),0),wc=Qo("ceil"),_c=Yo((function(e,t){return e/t}),1),xc=Qo("floor");var kc,Oc=Yo((function(e,t){return e*t}),1),Sc=Qo("round"),Ec=Yo((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=yu(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Pa,Vn.assign=_u,Vn.assignIn=xu,Vn.assignInWith=ku,Vn.assignWith=Ou,Vn.at=Su,Vn.before=Da,Vn.bind=ja,Vn.bindAll=tc,Vn.bindKey=Ra,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Vn.chain=ha,Vn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:gn(yu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,u=ie(mt(o/t));ii?0:i+r),(o=o===n||o>i?i:yu(o))<0&&(o+=i),o=r>o?0:vu(o);r>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!uu(t))&&!(t=so(t))&&on(e)?ko(pn(e),0,r):e.split(t,r):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:gn(yu(t),0),Xr((function(n){var r=n[t],o=ko(n,0,t);return r&&Rt(o,r),kt(e,this,o)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Vn.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:yu(t))<0?0:t):[]},Vn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:yu(t)))<0?0:t,o):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?mo(e,si(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?mo(e,si(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Pe(r);return nu(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Ia(e,t,{leading:o,maxWait:t,trailing:i})},Vn.thru=ma,Vn.toArray=hu,Vn.toPairs=Bu,Vn.toPairsIn=Vu,Vn.toPath=function(e){return qa(e)?jt(e,Ui):su(e)?[e]:jo(Fi(wu(e)))},Vn.toPlainObject=gu,Vn.transform=function(e,t,n){var r=qa(e),o=r||Qa(e)||fu(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:nu(e)&&Ja(i)?zn(qe(e)):{}}return(o?St:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},Vn.unary=function(e){return Pa(e,1)},Vn.union=ra,Vn.unionBy=oa,Vn.unionWith=ia,Vn.uniq=function(e){return e&&e.length?fo(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?fo(e,si(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},Vn.unset=function(e,t){return null==e||po(e,t)},Vn.unzip=aa,Vn.unzipWith=ua,Vn.update=function(e,t,n){return null==e?e:ho(e,t,wo(n))},Vn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,wo(r),o)},Vn.values=zu,Vn.valuesIn=function(e){return null==e?[]:Qt(e,Au(e))},Vn.without=ca,Vn.words=Ju,Vn.wrap=function(e,t){return Ua(wo(t),e)},Vn.xor=la,Vn.xorBy=sa,Vn.xorWith=fa,Vn.zip=pa,Vn.zipObject=function(e,t){return bo(e||[],t||[],nr)},Vn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Vn.zipWith=da,Vn.entries=Bu,Vn.entriesIn=Vu,Vn.extend=xu,Vn.extendWith=ku,lc(Vn,Vn),Vn.add=gc,Vn.attempt=ec,Vn.camelCase=Hu,Vn.capitalize=Yu,Vn.ceil=wc,Vn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=bu(r))==r?r:0),t!==n&&(t=(t=bu(t))==t?t:0),cr(bu(e),t,r)},Vn.clone=function(e){return lr(e,4)},Vn.cloneDeep=function(e){return lr(e,5)},Vn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:n)},Vn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:n)},Vn.conformsTo=function(e,t){return null==t||sr(e,t,Iu(t))},Vn.deburr=Wu,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=_c,Vn.endsWith=function(e,t,r){e=wu(e),t=so(t);var o=e.length,i=r=r===n?o:cr(yu(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Vn.eq=za,Vn.escape=function(e){return(e=wu(e))&&K.test(e)?e.replace($,nn):e},Vn.escapeRegExp=function(e){return(e=wu(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Vn.every=function(e,t,r){var o=qa(e)?Tt:mr;return r&&_i(e,t,r)&&(t=n),o(e,si(t,3))},Vn.find=ba,Vn.findIndex=Wi,Vn.findKey=function(e,t){return Lt(e,si(t,3),_r)},Vn.findLast=ga,Vn.findLastIndex=qi,Vn.findLastKey=function(e,t){return Lt(e,si(t,3),xr)},Vn.floor=xc,Vn.forEach=wa,Vn.forEachRight=_a,Vn.forIn=function(e,t){return null==e?e:gr(e,si(t,3),Au)},Vn.forInRight=function(e,t){return null==e?e:wr(e,si(t,3),Au)},Vn.forOwn=function(e,t){return e&&_r(e,si(t,3))},Vn.forOwnRight=function(e,t){return e&&xr(e,si(t,3))},Vn.get=Cu,Vn.gt=Ha,Vn.gte=Ya,Vn.has=function(e,t){return null!=e&&vi(e,t,Cr)},Vn.hasIn=Pu,Vn.head=Gi,Vn.identity=ic,Vn.includes=function(e,t,n,r){e=Ga(e)?e:zu(e),n=n&&!r?yu(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),lu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ut(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:yu(n);return o<0&&(o=gn(r+o,0)),Ut(e,t,o)},Vn.inRange=function(e,t,r){return t=mu(t),r===n?(r=t,t=0):r=mu(r),function(e,t,n){return e>=wn(t,n)&&e=-9007199254740991&&e<=p},Vn.isSet=cu,Vn.isString=lu,Vn.isSymbol=su,Vn.isTypedArray=fu,Vn.isUndefined=function(e){return e===n},Vn.isWeakMap=function(e){return ru(e)&&yi(e)==j},Vn.isWeakSet=function(e){return ru(e)&&"[object WeakSet]"==Er(e)},Vn.join=function(e,t){return null==e?"":vn.call(e,t)},Vn.kebabCase=qu,Vn.last=Zi,Vn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=yu(r))<0?gn(o+i,0):wn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Vt,i,!0)},Vn.lowerCase=$u,Vn.lowerFirst=Gu,Vn.lt=pu,Vn.lte=du,Vn.max=function(e){return e&&e.length?yr(e,ic,Tr):n},Vn.maxBy=function(e,t){return e&&e.length?yr(e,si(t,2),Tr):n},Vn.mean=function(e){return zt(e,ic)},Vn.meanBy=function(e,t){return zt(e,si(t,2))},Vn.min=function(e){return e&&e.length?yr(e,ic,Ur):n},Vn.minBy=function(e,t){return e&&e.length?yr(e,si(t,2),Ur):n},Vn.stubArray=vc,Vn.stubFalse=bc,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=Oc,Vn.nth=function(e,t){return e&&e.length?Yr(e,yu(t)):n},Vn.noConflict=function(){return ft._===this&&(ft._=Be),this},Vn.noop=sc,Vn.now=Ca,Vn.pad=function(e,t,n){e=wu(e);var r=(t=yu(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(yt(o),n)+e+qo(mt(o),n)},Vn.padEnd=function(e,t,n){e=wu(e);var r=(t=yu(t))?fn(e):0;return t&&rt){var o=e;e=t,t=o}if(r||e%1||t%1){var i=kn();return wn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Vn.reduce=function(e,t,n){var r=qa(e)?It:Wt,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},Vn.reduceRight=function(e,t,n){var r=qa(e)?At:Wt,o=arguments.length<3;return r(e,si(t,4),n,o,hr)},Vn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:yu(t),Qr(wu(e),t)},Vn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++op)return[];var n=h,r=wn(e,h);t=si(t),e-=h;for(var o=$t(r,t);++n=a)return e;var c=r-fn(o);if(c<1)return o;var l=u?ko(u,0,c).join(""):e.slice(0,c);if(i===n)return l+o;if(u&&(c+=l.length-c),uu(i)){if(e.slice(c).search(i)){var s,f=l;for(i.global||(i=Te(i.source,wu(de.exec(i))+"g")),i.lastIndex=0;s=i.exec(f);)var p=s.index;l=l.slice(0,p===n?c:p)}}else if(e.indexOf(so(i),c)!=c){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+o},Vn.unescape=function(e){return(e=wu(e))&&G.test(e)?e.replace(q,hn):e},Vn.uniqueId=function(e){var t=++Ne;return wu(e)+t},Vn.upperCase=Xu,Vn.upperFirst=Zu,Vn.each=wa,Vn.eachRight=_a,Vn.first=Gi,lc(Vn,(kc={},_r(Vn,(function(e,t){Me.call(Vn.prototype,t)||(kc[t]=e)})),kc),{chain:!1}),Vn.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),St(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:gn(yu(r),0);var o=this.__filtered__&&!t?new Wn(this):this.clone();return o.__filtered__?o.__takeCount__=wn(r,o.__takeCount__):o.__views__.push({size:wn(r,h),type:e+(o.__dir__<0?"Right":"")}),o},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),St(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),St(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ic)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return jr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(La(si(e)))},Wn.prototype.slice=function(e,t){e=yu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=yu(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(h)},_r(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Vn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Vn.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,c=t instanceof Wn,l=u[0],s=c||qa(t),f=function(e){var t=i.apply(Vn,Rt([e],u));return o&&p?t[0]:t};s&&r&&"function"==typeof l&&1!=l.length&&(c=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=c&&!d;if(!a&&s){t=m?t:new Wn(this);var y=e.apply(t,u);return y.__actions__.push({func:ma,args:[f],thisArg:n}),new Yn(y,p)}return h&&m?e.apply(this,u):(y=this.thru(f),h?o?y.value()[0]:y.value():y)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),_r(Wn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Me.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[zo(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=jo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=jo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=jo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,r=this;r instanceof Hn;){var o=Vi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ma,args:[na],thisArg:n}),new Yn(t,this.__chain__)}return this.thru(na)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return yo(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,et&&(Vn.prototype[et]=function(){return this}),Vn}();dt?((dt.exports=mn)._=mn,pt._=mn):ft._=mn}).call(IL)}(AL,AL.exports);var ML=AL.exports;function NL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var LL=function(e){var t,n=e.selectProps,r=e.conditionRules,o=e.currentField,i=e.formFields,a=_v(),u=Mb(y.exports.useState(AL.exports.cloneDeep(n.options)),2),c=u[0],l=u[1],s=new Map,f=new Map,p=null!==(t=o.ruleIds)&&void 0!==t&&t.length?o.ruleIds.map((function(e){return r.find((function(t){return t.id===e}))})).filter((function(e){var t=e.hasOwnProperty("optionFormFieldId");return t&&(e.condition.forEach((function(t){if(s.has(t)){var n=s.get(t);n.unshift(e.id),s.set(t,n)}else s.set(t,[e.id])})),f.set(e.id,e)),t})).sort((function(e,t){return i.findIndex((function(t){return t.id===e.conditionFormFieldId}))-i.findIndex((function(e){return e.id===t.conditionFormFieldId}))})):[];function d(e){var t=c.map((function(e){return e.value})).includes(e);if(!t){var n=c.filter((function(e){return!!e.options&&e.options.length}));t=!!AL.exports.find(n,(function(t){return t.options.map((function(e){return e.value})).includes(e)}))}return t}return y.exports.useEffect((function(){var e=a.watch((function(e){p.length&&function(e){var t=RL(c),r=[];f.size>0&&AL.exports.values(e).forEach((function(e){var t=[];null!=e&&("object"===jb(e)?t=Array.isArray(e)?e.map((function(e){return e.value})):[e.value]:"boolean"==typeof e&&(t=[""+e])),t.forEach((function(e){var t=function(e){var t=null,r=[];if(s.has(e)){t=f.get(s.get(e)[0]);var o=[];r=AL.exports.cloneDeep(n.options).map((function(e,n){return e.options&&e.options.length&&(e.options=e.options.filter((function(e){var r=t.options.includes(e.value);return r&&o.push(n),r}))),e})).filter((function(e,n){return o.includes(n)||t.options.includes(e.value)}))}return r}(e);t.length&&(r=t)}))}));!AL.exports.isEqual(t,r)&&r.length>0?l(r):l(n.options)}(e)}));return function(){e.unsubscribe()}}),[a.watch]),y.exports.useEffect((function(){var e=a.getValues();if(p.length&&e[n.id]){var t=e[n.id],r=[],o=!1;null!=t&&("object"===jb(t)?Array.isArray(t)?(o=!0,r=t.map((function(e){return e.value}))):r=[t.value]:"boolean"==typeof t&&(r=[""+t]));var i=r.filter((function(e){return!d(e)})),u=r.filter((function(e){return d(e)}));i.length&&(e[n.id]=o?u:null,a.reset(function(e){for(var t=1;t0&&c.map((function(e){return ce.createElement(Cv,{control:v,name:e.id,key:e.id,rules:JN(e),render:function(t){var n,r,o,i,a,u,s=t.field,d=t.fieldState,h=t.formState,m=e.extras,y=e.settings,v=[];if(m.isFullname){var g=ML.cloneDeep(e);g.label=m.lastName;var w=rL(e,s,d,h),_=rL(g,s,d,h);w.readOnly=!1,_.readOnly=!1,v=[w,_]}else{var x=rL(e,s,d,h);x.readOnly=!1,v=[x]}var k={textInputProps:v,multiValue:y.hasOwnProperty("multiValue")&&y.multiValue.enabled?y.multiValue.count:0,currentFormField:e,optionalCheckbox:null},O=1==Object.keys(k.textInputProps).length;return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:"ta-upm-name-container",style:{display:"flex",width:"100%"}},(null==k?void 0:k.textInputProps)&&O&&ce.createElement("div",{style:{width:"100%",marginBottom:"10px"}},ce.createElement(D_,jL({},k.textInputProps[0],{onChange:function(e){e.target.value&&""!==e.target.value?k.textInputProps[0].onChange(WL(WL({},k.textInputProps[0].value),{},{fullName:e.target.value})):k.textInputProps[0].onChange(void 0)},value:null!==(n=null===(r=k.textInputProps[0].value)||void 0===r?void 0:r.fullName)&&void 0!==n?n:""}))),(null==k?void 0:k.textInputProps)&&!O&&ce.createElement("div",{style:{display:"grid",gridTemplateColumns:"calc(50% + 4px) calc(50% - 20px)",gridGap:"14px",width:"100%"}},ce.createElement("div",{style:{marginBottom:"10px"}},ce.createElement(D_,jL({},k.textInputProps[0],{onChange:function(e){e.target.value&&""!==e.target.value?k.textInputProps[0].onChange(WL(WL({},k.textInputProps[0].value),{},{firstName:e.target.value})):k.textInputProps[0].value.firstName?k.textInputProps[0].onChange(WL(WL({},k.textInputProps[0].value),{},{firstName:void 0})):k.textInputProps[0].onChange(void 0)},value:null!==(o=null===(i=k.textInputProps[0].value)||void 0===i?void 0:i.firstName)&&void 0!==o?o:""}))),ce.createElement("div",{style:{marginBottom:"10px"}},ce.createElement(D_,jL({},k.textInputProps[1],{onChange:function(e){e.target.value&&""!==e.target.value?k.textInputProps[0].onChange(WL(WL({},k.textInputProps[0].value),{},{lastName:e.target.value})):k.textInputProps[0].value.firstName?k.textInputProps[0].onChange(WL(WL({},k.textInputProps[0].value),{},{lastName:void 0})):k.textInputProps[0].onChange(void 0)},value:null!==(a=null===(u=k.textInputProps[0].value)||void 0===u?void 0:u.lastName)&&void 0!==a?a:""})))),ce.createElement("div",{style:{height:"100%",marginTop:"10px"}},ce.createElement(Jw,{id:"delete-".concat(e.id),taType:"icon",size:"xs",onClick:function(){!function(e){b(e,{keepIsValid:!1,keepDirty:!1});var t=c.findIndex((function(t){return t.id===e}));c.splice(t,1),p(f-1),l(c)}(e.id)}},ce.createElement("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ce.createElement("path",{d:"M0 2H14V3.25H0V2Z",fill:"#0052CC"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.75 3.25H3.25V14.75H10.75V3.25ZM2 2V14.75C2 15.4404 2.55964 16 3.25 16H10.75C11.4404 16 12 15.4404 12 14.75V2H2Z",fill:"#0052CC"}),ce.createElement("path",{d:"M5 5H6.25V13H5V5Z",fill:"#0052CC"}),ce.createElement("path",{d:"M7.75 5H9V13H7.75V5Z",fill:"#0052CC"}),ce.createElement("path",{d:"M4 0H10V1.25H4V0Z",fill:"#0052CC"}))))))}})})),!!e.optionalCheckbox&&"OPTIONAL"===e.optionalCheckbox.type&&ce.createElement(Cv,{control:v,name:e.optionalCheckbox.id,key:e.optionalCheckbox.id,render:function(t){var n,r,o=t.field,i=t.fieldState,a=t.formState,u={id:e.optionalCheckbox.id,name:o.name,required:!1,label:"",hidden:!1,readOnly:!1,showLabel:!1,checked:o.value,disabled:!1,message:e.optionalCheckbox.text,onChange:o.onChange,error:i.invalid,errorMessage:null!==(n=null===(r=a.errors[e.optionalCheckbox.id])||void 0===r?void 0:r.message)&&void 0!==n?n:""};return ce.createElement(a_,u)}}),e.multiValue>0&&f0&&r.map((function(e){return ce.createElement(Cv,{control:c.control,name:e.id,key:e.id,rules:JN(e),render:function(t){var n,i=t.field,l=t.fieldState,s=t.formState,f=rL(e,i,l,s);return f.readOnly=!1,ce.createElement("div",{className:"ta-upm-email-container",style:{display:"flex",width:"100%"}},ce.createElement("div",{style:{width:"100%",marginBottom:"10px"}},ce.createElement(D_,jL({},f,{value:null!==(n=f.value)&&void 0!==n?n:""}))),ce.createElement("div",{style:{height:"100%",marginTop:"10px"}},ce.createElement(Jw,{id:"delete-".concat(e.id),taType:"icon",size:"xs",onClick:function(){!function(e){c.unregister(e,{keepIsValid:!1,keepDirty:!1});var t=r.findIndex((function(t){return t.id===e}));r.splice(t,1),u(a-1),o(r)}(e.id)}},ce.createElement("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ce.createElement("path",{d:"M0 2H14V3.25H0V2Z",fill:"#0052CC"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.75 3.25H3.25V14.75H10.75V3.25ZM2 2V14.75C2 15.4404 2.55964 16 3.25 16H10.75C11.4404 16 12 15.4404 12 14.75V2H2Z",fill:"#0052CC"}),ce.createElement("path",{d:"M5 5H6.25V13H5V5Z",fill:"#0052CC"}),ce.createElement("path",{d:"M7.75 5H9V13H7.75V5Z",fill:"#0052CC"}),ce.createElement("path",{d:"M4 0H10V1.25H4V0Z",fill:"#0052CC"})))))}})})),e.multiValue>0&&a0&&o.map((function(e){return ce.createElement(Cv,{control:n.control,name:e.id,key:e.id,rules:JN(e,{},!0),render:function(t){var r,a=t.field,l=t.fieldState,s=t.formState,f=rL(e,a,l,s);return f.readOnly=!1,ce.createElement("div",{className:"ta-upm-email-container",style:{display:"flex",width:"100%"}},ce.createElement("div",{style:{width:"100%",marginBottom:"10px"}},ce.createElement(c_,jL({},f,{value:null!==(r=f.value)&&void 0!==r?r:""}))),ce.createElement("div",{style:{height:"100%",marginTop:"10px"}},ce.createElement(Jw,{id:"delete-".concat(e.id),taType:"icon",size:"xs",onClick:function(){!function(e){n.unregister(e,{keepIsValid:!1,keepDirty:!1});var t=o.findIndex((function(t){return t.id===e}));o.splice(t,1),c(u-1),i(o)}(e.id)}},ce.createElement("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ce.createElement("path",{d:"M0 2H14V3.25H0V2Z",fill:"#0052CC"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.75 3.25H3.25V14.75H10.75V3.25ZM2 2V14.75C2 15.4404 2.55964 16 3.25 16H10.75C11.4404 16 12 15.4404 12 14.75V2H2Z",fill:"#0052CC"}),ce.createElement("path",{d:"M5 5H6.25V13H5V5Z",fill:"#0052CC"}),ce.createElement("path",{d:"M7.75 5H9V13H7.75V5Z",fill:"#0052CC"}),ce.createElement("path",{d:"M4 0H10V1.25H4V0Z",fill:"#0052CC"})))))}})})),!!e.optionalCheckbox&&"OPTIONAL"===e.optionalCheckbox.type&&"00000000-0000-0000-0000-000000001003"===e.currentFormField.id&&ce.createElement(Cv,{control:n.control,name:e.optionalCheckbox.id,key:e.optionalCheckbox.id,render:function(t){var n,r,o=t.field,i=t.fieldState,a=t.formState,u={id:e.optionalCheckbox.id,name:o.name,required:!1,label:"",hidden:!1,readOnly:!1,showLabel:!1,checked:o.value,disabled:!1,message:e.optionalCheckbox.text,onChange:o.onChange,error:i.invalid,errorMessage:null!==(n=null===(r=a.errors[e.optionalCheckbox.id])||void 0===r?void 0:r.message)&&void 0!==n?n:""};return ce.createElement(a_,u)}}),e.multiValue>0&&u3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=e.type.id;return function(u){var c=u.field,l=u.fieldState,s=u.formState;switch(a){case yb.SingleLine:var f=rL(e,c,l,s);f.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(f.required=r[e.id].required);var p={textInputProps:[f],multiValue:e.settings.hasOwnProperty("multiValue")&&e.settings.multiValue.enabled?e.settings.multiValue.count:0,currentFormField:e};return ce.createElement($L,p);case yb.NameField:var d=e.extras,h=e.settings,m=[];if(d.isFullname){var y=ML.cloneDeep(e);y.label=d.lastName;var v=rL(e,c,l,s),b=rL(y,c,l,s);v.readOnly=n,b.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(v.required=r[e.id].required,b.required=r[e.id].required),d.hasOwnProperty("lastNamePlaceHolderText")&&d.lastNamePlaceHolderText||(d.lastNamePlaceHolderText=""),b.placeholder=d.lastNamePlaceHolderText,m=[v,b]}else{var g=rL(e,c,l,s);g.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(g.required=r[e.id].required),m=[g]}var w=h.hasOwnProperty("multiValue")&&h.multiValue.enabled?h.multiValue.count:0,_=null;null!=i&&i.verifyIdentity&&((_=ZL({},i.verifyIdentity)).text=ZN.translate(_.text,""));var x={textInputProps:m,multiValue:w,currentFormField:e,optionalCheckbox:_};return ce.createElement(qL,x);case yb.Email:var k=rL(e,c,l,s);k.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(k.required=r[e.id].required);var O=e.settings.hasOwnProperty("multiValue")&&e.settings.multiValue.enabled?e.settings.multiValue.count:0,S=null;null!=i&&i.verifyEmail&&((S=ZL({},i.verifyEmail)).text=ZN.translate(S.text,""));var E={textInputProps:[k],multiValue:O,currentFormField:e,optionalCheckbox:S};return ce.createElement(QL,E);case yb.PhoneNumber:var T=_L(e,c,l,s);return T.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(T.required=r[e.id].required),ce.createElement(P_,T);case yb.ParagraphText:var C=oL(e,c,l,s);return C.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(C.required=r[e.id].required),ce.createElement(s_,C);case yb.Select:var P=lL(e,c,l,s);P.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(P.required=r[e.id].required);var D={selectProps:P,conditionRules:o,currentField:e,formFields:t,isReadOnly:n,settingsValues:r};return ce.createElement(LL,D);case yb.Checkbox:var j=hL(e,c,l,s);return j.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(j.required=r[e.id].required),ce.createElement(a_,j);case yb.StaticText:var R=fL(e,c);return R.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(R.required=r[e.id].required),ce.createElement(Sw,R);case yb.EndSubmission:var I=KL(e,c);return I.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(I.required=r[e.id].required),ce.createElement(R_,I);case yb.Country:var A=bL(e,c,l,s);A.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(A.required=r[e.id].required);var M={selectProps:A,conditionRules:o,currentField:e,formFields:t,isReadOnly:n,settingsValues:r};return ce.createElement(LL,M);case yb.GroupCheckboxes:var N=OL(e,c,l,s);return N.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(N.required=r[e.id].required),ce.createElement(N_,N);case yb.ToggleSwitch:var L=TL(e,c,l,s);return L.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(L.required=r[e.id].required),ce.createElement(z_,L);case yb.FileAttachment:var F=DL(e,c,l,s,i);return F.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(F.required=r[e.id].required),ce.createElement(Bk,F);case yb.GroupToggleSwitch:var U=BL(e,c,l,s);return U.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(U.required=r[e.id].required),ce.createElement(zk,U);case yb.Date:var B=HL(e,c,l,s);return B.readOnly=n,r[e.id]&&r[e.id].hasOwnProperty("required")&&(B.required=r[e.id].required),ce.createElement(YN,B)}}};function eF(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function tF(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function nF(e){return(nF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rF(e){tF(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===nF(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function oF(e,t){tF(2,arguments);var n=rF(e),r=eF(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function iF(e,t){tF(2,arguments);var n=rF(e),r=eF(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function aF(e,t){tF(2,arguments);var n=rF(e).getTime(),r=eF(t);return new Date(n+r)}var uF={};function cF(){return uF}function lF(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function sF(e,t){tF(2,arguments);var n=eF(t);return aF(e,-n)}function fF(e){tF(1,arguments);var t=1,n=rF(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function dF(e){tF(1,arguments);var t=pF(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=fF(n);return r}var hF=6048e5;function mF(e){tF(1,arguments);var t=rF(e),n=fF(t).getTime()-dF(t).getTime();return Math.round(n/hF)+1}function yF(e,t){var n,r,o,i,a,u,c,l;tF(1,arguments);var s=cF(),f=eF(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(u=a.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==o?o:s.weekStartsOn)&&void 0!==r?r:null===(c=s.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=rF(e),d=p.getUTCDay(),h=(d=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var m=yF(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=yF(y,t);return s.getTime()>=m.getTime()?f+1:s.getTime()>=v.getTime()?f:f-1}function bF(e,t){var n,r,o,i,a,u,c,l;tF(1,arguments);var s=cF(),f=eF(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(u=a.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:s.firstWeekContainsDate)&&void 0!==r?r:null===(c=s.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),p=vF(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=yF(d,t);return h}var gF=6048e5;function wF(e,t){tF(1,arguments);var n=rF(e),r=yF(n,t).getTime()-bF(n,t).getTime();return Math.round(r/gF)+1}var _F=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},xF=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},kF={p:xF,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return _F(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",_F(o,t)).replace("{{time}}",xF(i,t))}},OF=["D","DD"],SF=["YY","YYYY"];function EF(e){return-1!==OF.indexOf(e)}function TF(e){return-1!==SF.indexOf(e)}function CF(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var PF={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function DF(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var jF={date:DF({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:DF({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:DF({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},RF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function IF(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,u=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[u]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function AF(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,u=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?NF(c,(function(e){return e.test(u)})):MF(c,(function(e){return e.test(u)}));a=e.valueCallback?e.valueCallback(l):l,a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(u.length);return{value:a,rest:s}}}function MF(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function NF(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:jF,formatRelative:function(e,t,n,r){return RF[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:IF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:IF({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:IF({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:IF({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:IF({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(o.length);return{value:a,rest:u}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:AF({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:AF({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:AF({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:AF({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:AF({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function FF(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function UF(e){return(UF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function BF(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&VF(e,t)}function VF(e,t){return(VF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WF(e);if(t){var o=WF(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HF(this,n)}}function HF(e,t){return!t||"object"!==UF(t)&&"function"!=typeof t?YF(e):t}function YF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WF(e){return(WF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $F(e,t){for(var n=0;n0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function HU(e){return e%400==0||e%4==0&&e%100!=0}function YU(e){return(YU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qU(e,t){for(var n=0;n0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=zU(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}])&&qU(t.prototype,n),r&&qU(t,r),i}(eU);function eB(e){return(eB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nB(e,t){for(var n=0;n0}},{key:"set",value:function(e,t,n,r){var o=vF(e,r);if(n.isTwoDigitYear){var i=zU(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),yF(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),yF(e,r)}}])&&nB(t.prototype,n),r&&nB(t,r),i}(eU);function sB(e){return(sB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pB(e,t){for(var n=0;n=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&RB(t.prototype,n),r&&RB(t,r),i}(eU);function BB(e){return(BB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function VB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zB(e,t){for(var n=0;n=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&zB(t.prototype,n),r&&zB(t,r),i}(eU);function QB(e){return(QB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZB(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&ZB(t.prototype,n),r&&ZB(t,r),i}(eU);function aV(e){return(aV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cV(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&cV(t.prototype,n),r&&cV(t,r),i}(eU);function yV(e){return(yV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bV(e,t){for(var n=0;n=1&&t<=53}},{key:"set",value:function(e,t,n,r){return yF(function(e,t,n){tF(2,arguments);var r=rF(e),o=eF(t),i=wF(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}])&&bV(t.prototype,n),r&&bV(t,r),i}(eU);function EV(e){return(EV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CV(e,t){for(var n=0;n=1&&t<=53}},{key:"set",value:function(e,t,n){return fF(function(e,t){tF(2,arguments);var n=rF(e),r=eF(t),o=mF(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}])&&CV(t.prototype,n),r&&CV(t,r),i}(eU);function NV(e){return(NV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function LV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FV(e,t){for(var n=0;n=1&&t<=qV[r]:t>=1&&t<=WV[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}])&&FV(t.prototype,n),r&&FV(t,r),i}(eU);function GV(e){return(GV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function KV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QV(e,t){for(var n=0;n=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}])&&QV(t.prototype,n),r&&QV(t,r),i}(eU);function oz(e,t,n){var r,o,i,a,u,c,l,s;tF(2,arguments);var f=cF(),p=eF(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(l=f.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=rF(e),h=eF(t),m=d.getUTCDay(),y=h%7,v=(y+7)%7,b=(v=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=oz(e,n,r)).setUTCHours(0,0,0,0),e}}])&&uz(t.prototype,n),r&&uz(t,r),i}(eU);function mz(e){return(mz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vz(e,t){for(var n=0;n=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=oz(e,n,r)).setUTCHours(0,0,0,0),e}}])&&vz(t.prototype,n),r&&vz(t,r),i}(eU);function Sz(e){return(Sz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ez(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tz(e,t){for(var n=0;n=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=oz(e,n,r)).setUTCHours(0,0,0,0),e}}])&&Tz(t.prototype,n),r&&Tz(t,r),i}(eU);function Mz(e){return(Mz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lz(e,t){for(var n=0;n=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){tF(2,arguments);var n=eF(t);n%7==0&&(n-=7);var r=1,o=rF(e),i=o.getUTCDay(),a=((n%7+7)%7=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}])&&kH(t.prototype,n),r&&kH(t,r),i}(eU);function jH(e){return(jH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function RH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IH(e,t){for(var n=0;n=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}])&&IH(t.prototype,n),r&&IH(t,r),i}(eU);function VH(e){return(VH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HH(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}])&&HH(t.prototype,n),r&&HH(t,r),i}(eU);function XH(e){return(XH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ZH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JH(e,t){for(var n=0;n=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}])&&JH(t.prototype,n),r&&JH(t,r),i}(eU);function uY(e){return(uY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lY(e,t){for(var n=0;n=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}])&&lY(t.prototype,n),r&&lY(t,r),i}(eU);function vY(e){return(vY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gY(e,t){for(var n=0;n=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}])&&gY(t.prototype,n),r&&gY(t,r),i}(eU);function TY(e){return(TY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function CY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PY(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function EW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(aq),cq=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),lq=function(e){function t(n,r){void 0===r&&(r=cq.now);var o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return MW(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(cq),sq=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MW(t,e),t}(lq))(uq),fq=new ZW((function(e){return e.complete()}));function pq(e){return e?function(e){return new ZW((function(t){return e.schedule((function(){return t.complete()}))}))}(e):fq}function dq(e){return e&&"function"==typeof e.schedule}function hq(e,t){return new ZW((function(n){var r=new YW,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function mq(e,t){return t?hq(e,t):new ZW((n=e,function(e){for(var t=0,r=n.length;tthis._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new _q(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new eq;if(this.isStopped||this.hasError?t=YW.EMPTY:(this.observers.push(e),t=new tq(this,e)),o&&e.add(e=new bq(e,o)),n)for(var a=0;at&&(i=Math.max(i,o-t)),i>0&&r.splice(0,i),r},t}(rq),_q=function(){return function(e,t){this.time=e,this.value=t}}(),xq=new lq(aq),kq=new iq({placementId:"",fieldId:""}),Oq=new iq({});function Sq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eq(e){for(var t=1;t-1&&(v=v+"_"+m+"#"+d);var k=i&&i.hasOwnProperty("children")&&(null===(r=i.children)||void 0===r?void 0:r.length)>0,O=(null==s?void 0:s.length)>0&&(null===(o=i.ruleIds)||void 0===o?void 0:o.length)>0;y.exports.useEffect((function(){var e=kq.subscribe(S);return i.type.id===yb.EndSubmission&&(console.log("submission found: ",v),kq.next({placementId:v,fieldId:i.id})),function(){i.type.id===yb.EndSubmission&&(kq.value.fieldId===i.id&&kq.next({placementId:"",fieldId:""}));e.unsubscribe()}}),[]);var S=function(e){var t=e.placementId.split("_"),n=v.split("_"),r=t[h],o=n[h];if(""!==e.placementId)if(0===h){var i=parseInt(r);parseInt(o)<=i?x(!0):T()}else h>=t.length?E(t.length,t,n):E(n.length,t,n);else x(!0)};function E(e,t,n){for(var r=0;ri)T();else{if(c===i&&a===l)continue;c===i&&l>a?T():x(!0)}}else if(parseInt(t[r])!==parseInt(n[r])){x(!0);break}}function T(){var e=b.watch();b.unregister(i.id);for(var t=i.settings.hasOwnProperty("multiValue")&&i.settings.multiValue.enabled?i.settings.multiValue.count:0,n=0;n=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=eF(null!==(h=null!==(m=null!==(y=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(b=r.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==y?y:O.weekStartsOn)&&void 0!==m?m:null===(w=O.locale)||void 0===w||null===(_=w.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==h?h:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?rF(n):new Date(NaN);var C,P={firstWeekContainsDate:E,weekStartsOn:T,locale:S},D=[new ZF],j=k.match(CW).map((function(e){var t=e[0];return t in kF?(0,kF[t])(e,S.formatLong):e})).join("").match(TW),R=[],I=SW(j);try{var A=function(){var t=C.value;null!=r&&r.useAdditionalWeekYearTokens||!TF(t)||CF(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!EF(t)||CF(t,k,e);var n=t[0],o=kW[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=R.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));R.push({token:n,fullToken:t});var u=o.run(x,t,S.match,P);if(!u)return{v:new Date(NaN)};D.push(u.setter),x=u.rest}else{if(n.match(RW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=IW(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(I.s();!(C=I.n()).done;){var M=A();if("object"===OW(M))return M.v}}catch(e){I.e(e)}finally{I.f()}if(x.length>0&&jW.test(x))return new Date(NaN);var N=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=rF(n);if(isNaN(L.getTime()))return new Date(NaN);var F,U=sF(L,lF(L)),B={},V=SW(N);try{for(V.s();!(F=V.n()).done;){var z=F.value;if(!z.validate(U,P))return new Date(NaN);var H=z.set(U,B,P);Array.isArray(H)?(U=H[0],FF(B,H[1])):U=H}}catch(e){V.e(e)}finally{V.f()}return U}(n,l,new Date),f=new Date;f.setHours(0),f.setMinutes(0),f.setSeconds(0),f.setMilliseconds(0),s.setHours(0),s.setMinutes(0);var p=r.condition[0],d=parseInt(r.unitValue);switch(r.unitValueType){case"DAYS":s=oF(s,d);break;case"WEEKS":s=function(e,t){tF(2,arguments);var n=eF(t);return oF(e,7*n)}(s,d);break;case"MONTHS":s=iF(s,d);break;case"YEARS":s=function(e,t){tF(2,arguments);var n=eF(t);return iF(e,12*n)}(s,d)}c=function(e,t,n){var r=!1;switch(n){case"GREATER_THAN":r=e>t;break;case"GREATER_THAN_OR_EQUAL":r=e>=t;break;case"LESS_THAN":r=e=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(jq);var Iq=jq.exports(),Aq=Iq;try{regeneratorRuntime=Iq}catch(e){"object"===("undefined"==typeof globalThis?"undefined":jb(globalThis))?globalThis.regeneratorRuntime=Iq:Function("r","regeneratorRuntime = r")(Iq)}function Mq(e){var t=e.fetchCaptchaDto,n=e.postAnswer,r=e.onInputCorrect,o=e.toggleRefresh,i="trustarc-captcha-single-line",a=y.exports.useRef(),u=y.exports.useRef(),c=Mb(y.exports.useState(!!o),2),l=c[0],s=c[1],f=Mb(y.exports.useState(""),2),p=f[0],d=f[1],h=Mb(y.exports.useState(!1),2),m=h[0],v=h[1],b=Mb(y.exports.useState(),2),g=b[0],w=b[1],_=ZN.translate(XN.captchaLabel,"Please enter the captcha value below"),x=function(){var e=Dq(Aq.mark((function e(t){var o,i;return Aq.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.target.value,d(o),5!==o.length){e.next=8;break}return i={answer:g.answer,input:o},e.next=6,n(i);case 6:e.sent.correct?(v(!0),r(i)):k();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=Dq(Aq.mark((function e(){var n;return Aq.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:n=e.sent,d(""),w(n),a.current&&(a.current.pause(),a.current.load()),u.current.focus();case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return m||l===o||(s(o),k()),y.exports.useEffect((function(){k()}),[]),ce.createElement(ce.Fragment,null,ce.createElement(Zb,{htmlFor:i,style:{display:"inline"}},_),g&&ce.createElement(ce.Fragment,null,m?ce.createElement("span",{id:"trustarc-captcha-success",style:{marginLeft:"5px"}},"✅"):ce.createElement("button",{id:"trustarc-captcha-refresh",type:"button",style:{border:"none",background:"none"},onClick:k},"🔄"),ce.createElement("div",{id:"trustarc-captcha-refresh-section",style:{display:"flex",alignItems:"center"}},ce.createElement("img",{id:"captcha-image",title:"captcha-image",alt:"Captcha",src:g.image}),ce.createElement("audio",{id:"trustarc-captcha-audio",controls:!0,ref:a,style:{flexGrow:1,verticalAlign:"middle",marginTop:"5px",marginBottom:"5px"}},ce.createElement("source",{id:"trustarc-captcha-audio-source",title:"trustarc-captcha-audio-source",src:g.audio}),"Your browser does not support the audio element."))),ce.createElement(D_,{inputRef:u,id:i,readOnly:5===p.length,value:p,onChange:x}))}var Nq=function(e,t){if(e){var n=document.getElementById("ta-upm-form-".concat(e,"-").concat(null!=t?t:""));if(n)ud.unmountComponentAtNode(n.parentElement)&&console.log("[upm] The modal is unmounteds.s")}},Lq=function(e){var t=e.resend,n=Mb(y.exports.useState(!1),2),r=n[0],o=n[1],i=Mb(y.exports.useState(!1),2),a=i[0],u=i[1];return ce.createElement(ce.Fragment,null,ce.createElement(Mw,{onResendClick:function(){o(!0),t().then((function(){o(!1),u(!0)})).catch((function(e){console.error(e),o(!1)}))},isResendDisabled:r,isResendDone:a}))},Fq=Object.getOwnPropertySymbols,Uq=Object.prototype.hasOwnProperty,Bq=Object.prototype.propertyIsEnumerable;function Vq(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var zq=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=Vq(e),i=1;i1,i=0;i0&&e.children.forEach((function(e){-1!==r.indexOf(e.key.toLowerCase())&&e.selected&&o.push(e)}))})),o.map(mL).map(iL);case yb.Select:var i=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),a=[];return t.optionList.forEach((function(e){-1!==i.indexOf(e.id.toLowerCase())?a.push(e):e.options&&e.options.length>0&&e.options.forEach((function(e){-1!==i.indexOf(e.id.toLowerCase())&&a.push(e)}))})),a.map(iL);case yb.PhoneNumber:var u,c;return Hq(n,null!==(u=null==t||null===(c=t.phoneNumberValidation)||void 0===c?void 0:c.countryOptions)&&void 0!==u?u:[]);default:return n}},fromExtras:function(){switch(e){case yb.Country:var n=t;return Array.isArray(n.defaultValue)?n.defaultValue.filter((function(e){return!!e.selected})).map(mL).map(iL):n.defaultValue.selected?iL(mL(n.defaultValue)):null;case yb.Select:var r,o,i,a,u=t;return Array.isArray(null===(r=u.defaultValue)||void 0===r?void 0:r.options)?(null===(i=u.defaultValue)||void 0===i?void 0:i.options).map(iL):null!==(o=u.defaultValue)&&void 0!==o&&o.options?iL(null===(a=u.defaultValue)||void 0===a?void 0:a.options):null;case yb.PhoneNumber:var c,l,s,f,p=t;return Hq(null!==(c=null==p||null===(l=p.defaultValue)||void 0===l?void 0:l.key)&&void 0!==c?c:"",null!==(s=null==p||null===(f=p.phoneNumberValidation)||void 0===f?void 0:f.countryOptions)&&void 0!==s?s:[]);case yb.Checkbox:var d=t;return d.hasOwnProperty("defaultValue")&&"object"===jb(d.defaultValue)?d.defaultValue.key:!!d.defaultValue;default:return t.defaultValue.key}}}},Wq=function(e,t,n,r,o){var i={},a={};return Array.isArray(o)&&o.length>0&&o.forEach((function(e){zq(a,e)})),e.forEach((function(e){var n=e.id,r=e.type,o=e.extras,u=n in t&&void 0!==t[n]&&null!==t[n],c=Yq(r.id,o),l=c.fromValue,s=c.fromExtras;if(u)i[n]=l(t[n]);else if(a[n])i[n]=l(a[n]);else if(o&&o.defaultValue){var f=s();null!==f&&""!==f&&(i[n]=f)}})),i};function qq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $q(e){for(var t=1;t0&&Gq.includes(e.type.id)})).forEach((function(e){var t=e.children.every((function(e){return!0===o[e]})),n=e.children.some((function(e){return!0===o[e]})),r=e.children.every((function(e){return!1===o[e]})),a=Qq(e),l=i.getValues(e.id),s=u[e.id],f=e.children.some((function(e){return o[e]!==u[e]})),p=function(e,t){var n={};e.forEach((function(e){return n[e]=t})),c=$q($q({},c),n)};Kq.includes(a)?void 0===l||s===l||f?f&&l!==t&&(c[e.id]=t):p(e.children,!!l):a===bb.UNSUBSCRIBE_ALL&&(void 0===l||s===l||f?f&&s===l&&(n?c[e.id]=!1:r&&(c[e.id]=!0)):p(e.children,!l))})),i.reset($q($q({},o),c),{keepDirty:!0,keepTouched:!0}),lG.set(n,$q($q({},o),c))}},Zq=function(e){var t=e.formConfig,n=e.methods,r=e.defaultValues;if(t&&n){var o=t.content.formFields.filter((function(e){return!!e.children&&e.children.length>0&&Gq.includes(e.type.id)&&Qq(e)===bb.UNSUBSCRIBE_ALL})),i={};o.forEach((function(e){var t=e.children.every((function(e){return!1===r[e]})),n=void 0===r[e.id]||!1===r[e.id];t&&n?i[e.id]=!0:t||n||(i[e.id]=void 0)})),t.content.formFields.filter((function(e){return!!e.children&&e.children.length>0&&Gq.includes(e.type.id)&&Kq.includes(Qq(e))})).forEach((function(e){var t=e.children.every((function(e){return!0===r[e]})),n=void 0===r[e.id]||!1===r[e.id];t&&n?i[e.id]=!0:t||n||(i[e.id]=!1)})),n.reset($q($q({},r),i))}};function Jq(e,t){return function(n){return n.lift(new e$(e,t))}}var e$=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new t$(e,this.compare,this.keySelector))},e}(),t$=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return MW(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}($W);function n$(e,t,n){var r;return r=e&&"object"===jb(e)?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,i=e.windowTime,a=void 0===i?Number.POSITIVE_INFINITY:i,u=e.refCount,c=e.scheduler,l=0,s=!1,f=!1;return function(e){var r;l++,!t||s?(s=!1,t=new wq(o,a,c),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){s=!0,t.error(e)},complete:function(){f=!0,n=void 0,t.complete()}}),f&&(n=void 0)):r=t.subscribe(this),this.add((function(){l--,r.unsubscribe(),r=void 0,n&&!f&&u&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}var r$={leading:!0,trailing:!1};function o$(e,t,n){return void 0===t&&(t=xq),void 0===n&&(n=r$),function(r){return r.lift(new a$(e,t,n.leading,n.trailing))}}var i$,a$=function(){function e(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new u$(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),u$=function(e){function t(t,n,r,o,i){var a=e.call(this,t)||this;return a.duration=n,a.scheduler=r,a.leading=o,a.trailing=i,a._hasTrailingValue=!1,a._trailingValue=null,a}return MW(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(c$,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}($W);function c$(e){e.subscriber.clearThrottle()}!function(e){e.ACTIVE="ACTIVE",e.PENDING="PENDING",e.EXPIRED="EXPIRED"}(i$||(i$={}));var l$=Object.hasOwnProperty,s$=Object.setPrototypeOf,f$=Object.isFrozen,p$=Object.getPrototypeOf,d$=Object.getOwnPropertyDescriptor,h$=Object.freeze,m$=Object.seal,y$=Object.create,v$="undefined"!=typeof Reflect&&Reflect,b$=v$.apply,g$=v$.construct;b$||(b$=function(e,t,n){return e.apply(t,n)}),h$||(h$=function(e){return e}),m$||(m$=function(e){return e}),g$||(g$=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(/*! @license DOMPurify 2.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.0/LICENSE */function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),o=1;o/gm),$$=m$(/^data-[\-\w.\u00B7-\uFFFF]/),G$=m$(/^aria-[\-\w]+$/),K$=m$(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q$=m$(/^(?:\w+script|data):/i),X$=m$(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z$="function"==typeof Symbol&&"symbol"===jb(Symbol.iterator)?function(e){return jb(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":jb(e)};function J$(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:eG(),n=function(t){return e(t)};if(n.version="2.3.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,u=t.Node,c=t.Element,l=t.NodeFilter,s=t.NamedNodeMap,f=void 0===s?t.NamedNodeMap||t.MozNamedAttrMap:s,p=t.Text,d=t.Comment,h=t.DOMParser,m=t.trustedTypes,y=c.prototype,v=I$(y,"cloneNode"),b=I$(y,"nextSibling"),g=I$(y,"childNodes"),w=I$(y,"parentNode");if("function"==typeof a){var _=o.createElement("template");_.content&&_.content.ownerDocument&&(o=_.content.ownerDocument)}var x=tG(m,r),k=x&&te?x.createHTML(""):"",O=o,S=O.implementation,E=O.createNodeIterator,T=O.createDocumentFragment,C=O.getElementsByTagName,P=r.importNode,D={};try{D=R$(o).documentMode?o.documentMode:{}}catch(e){}var j={};n.isSupported="function"==typeof w&&S&&void 0!==S.createHTMLDocument&&9!==D;var R=W$,I=q$,A=$$,M=G$,N=Q$,L=X$,F=K$,U=null,B=j$({},[].concat(J$(A$),J$(M$),J$(N$),J$(F$),J$(B$))),V=null,z=j$({},[].concat(J$(V$),J$(z$),J$(H$),J$(Y$))),H=null,Y=null,W=!0,q=!0,$=!1,G=!1,K=!1,Q=!1,X=!1,Z=!1,J=!1,ee=!0,te=!1,ne=!0,re=!0,oe=!1,ie={},ae=j$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ue=null,ce=j$({},["audio","video","img","source","image","track"]),le=null,se=j$({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml",he=de,me=!1,ye=null,ve=o.createElement("form"),be=function(e){ye&&ye===e||(e&&"object"===(void 0===e?"undefined":Z$(e))||(e={}),e=R$(e),U="ALLOWED_TAGS"in e?j$({},e.ALLOWED_TAGS):B,V="ALLOWED_ATTR"in e?j$({},e.ALLOWED_ATTR):z,le="ADD_URI_SAFE_ATTR"in e?j$(R$(se),e.ADD_URI_SAFE_ATTR):se,ue="ADD_DATA_URI_TAGS"in e?j$(R$(ce),e.ADD_DATA_URI_TAGS):ce,H="FORBID_TAGS"in e?j$({},e.FORBID_TAGS):{},Y="FORBID_ATTR"in e?j$({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,J=e.RETURN_DOM_FRAGMENT||!1,ee=!1!==e.RETURN_DOM_IMPORT,te=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,F=e.ALLOWED_URI_REGEXP||F,he=e.NAMESPACE||de,G&&(q=!1),J&&(Z=!0),ie&&(U=j$({},[].concat(J$(B$))),V=[],!0===ie.html&&(j$(U,A$),j$(V,V$)),!0===ie.svg&&(j$(U,M$),j$(V,z$),j$(V,Y$)),!0===ie.svgFilters&&(j$(U,N$),j$(V,z$),j$(V,Y$)),!0===ie.mathMl&&(j$(U,F$),j$(V,H$),j$(V,Y$))),e.ADD_TAGS&&(U===B&&(U=R$(U)),j$(U,e.ADD_TAGS)),e.ADD_ATTR&&(V===z&&(V=R$(V)),j$(V,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&j$(le,e.ADD_URI_SAFE_ATTR),re&&(U["#text"]=!0),K&&j$(U,["html","head","body"]),U.table&&(j$(U,["tbody"]),delete H.tbody),h$&&h$(e),ye=e)},ge=j$({},["mi","mo","mn","ms","mtext"]),we=j$({},["foreignobject","desc","title","annotation-xml"]),_e=j$({},M$);j$(_e,N$),j$(_e,L$);var xe=j$({},F$);j$(xe,U$);var ke=function(e){var t=w(e);t&&t.tagName||(t={namespaceURI:de,tagName:"template"});var n=k$(e.tagName),r=k$(t.tagName);if(e.namespaceURI===pe)return t.namespaceURI===de?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||ge[r]):Boolean(_e[n]);if(e.namespaceURI===fe)return t.namespaceURI===de?"math"===n:t.namespaceURI===pe?"math"===n&&we[r]:Boolean(xe[n]);if(e.namespaceURI===de){if(t.namespaceURI===pe&&!we[r])return!1;if(t.namespaceURI===fe&&!ge[r])return!1;var o=j$({},["title","style","font","a","script"]);return!xe[n]&&(o[n]||!_e[n])}return!1},Oe=function(e){x$(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=k}catch(t){e.remove()}}},Se=function(e,t){try{x$(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){x$(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!V[e])if(Z||J)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ee=function(e){var t=void 0,n=void 0;if(X)e=""+e;else{var r=O$(e,/^[\r\n\t ]+/);n=r&&r[0]}var i=x?x.createHTML(e):e;if(he===de)try{t=(new h).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){t=S.createDocument(he,"template",null);try{t.documentElement.innerHTML=me?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),he===de?C.call(t,K?"html":"body")[0]:K?t.documentElement:a},Te=function(e){return E.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Ce=function(e){return!(e instanceof p||e instanceof d)&&!("string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof f&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},Pe=function(e){return"object"===(void 0===u?"undefined":Z$(u))?e instanceof u:e&&"object"===(void 0===e?"undefined":Z$(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,r){j[e]&&w$(j[e],(function(e){e.call(n,t,r,ye)}))},je=function(e){var t=void 0;if(De("beforeSanitizeElements",e,null),Ce(e))return Oe(e),!0;if(O$(e.nodeName,/[\u0080-\uFFFF]/))return Oe(e),!0;var r=k$(e.nodeName);if(De("uponSanitizeElement",e,{tagName:r,allowedTags:U}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&C$(/<[/\w]/g,e.innerHTML)&&C$(/<[/\w]/g,e.textContent))return Oe(e),!0;if(!U[r]||H[r]){if(re&&!ae[r]){var o=w(e)||e.parentNode,i=g(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(v(i[a],!0),b(e))}return Oe(e),!0}return e instanceof c&&!ke(e)?(Oe(e),!0):"noscript"!==r&&"noembed"!==r||!C$(/<\/no(script|embed)/i,e.innerHTML)?(G&&3===e.nodeType&&(t=e.textContent,t=S$(t,R," "),t=S$(t,I," "),e.textContent!==t&&(x$(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Re=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in o||n in ve))return!1;if(q&&!Y[t]&&C$(A,t));else if(W&&C$(M,t));else{if(!V[t]||Y[t])return!1;if(le[t]);else if(C$(F,S$(n,L,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E$(n,"data:")||!ue[e]){if($&&!C$(N,S$(n,L,"")));else if(n)return!1}else;}return!0},Ie=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;De("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V};for(i=a.length;i--;){var c=t=a[i],l=c.name,s=c.namespaceURI;if(r=T$(t.value),o=k$(l),u.attrName=o,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,u),r=u.attrValue,!u.forceKeepAttr&&(Se(l,e),u.keepAttr))if(C$(/\/>/i,r))Se(l,e);else{G&&(r=S$(r,R," "),r=S$(r,I," "));var f=e.nodeName.toLowerCase();if(Re(f,o,r))try{s?e.setAttributeNS(s,l,r):e.setAttribute(l,r),_$(n.removed)}catch(e){}}}De("afterSanitizeAttributes",e,null)}},Ae=function e(t){var n=void 0,r=Te(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),je(n)||(n.content instanceof i&&e(n.content),Ie(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var a=void 0,c=void 0,l=void 0,s=void 0,f=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Pe(e)){if("function"!=typeof e.toString)throw P$("toString is not a function");if("string"!=typeof(e=e.toString()))throw P$("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Z$(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Pe(e))return t.toStaticHTML(e.outerHTML)}return e}if(Q||be(o),n.removed=[],"string"==typeof e&&(oe=!1),oe);else if(e instanceof u)1===(c=(a=Ee("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Z&&!G&&!K&&-1===e.indexOf("<"))return x&&te?x.createHTML(e):e;if(!(a=Ee(e)))return Z?null:k}a&&X&&Oe(a.firstChild);for(var p=Te(oe?e:a);l=p.nextNode();)3===l.nodeType&&l===s||je(l)||(l.content instanceof i&&Ae(l.content),Ie(l),s=l);if(s=null,oe)return e;if(Z){if(J)for(f=T.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return ee&&(f=P.call(r,f,!0)),f}var d=K?a.outerHTML:a.innerHTML;return G&&(d=S$(d,R," "),d=S$(d,I," ")),x&&te?x.createHTML(d):d},n.setConfig=function(e){be(e),Q=!0},n.clearConfig=function(){ye=null,Q=!1},n.isValidAttribute=function(e,t,n){ye||be({});var r=k$(e),o=k$(t);return Re(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(j[e]=j[e]||[],x$(j[e],t))},n.removeHook=function(e){j[e]&&_$(j[e])},n.removeHooks=function(e){j[e]&&(j[e]=[])},n.removeAllHooks=function(){j={}},n}();function oG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iG(e){for(var t=1;t0&&(h.content.formFields=h.content.formFields.filter((function(e){return!pe(e)})),(B=h.content.formFields).unshift.apply(B,RL(de)));var he=function(){K(!1)},me=function(){var e=fe.getValues(),t=AL.exports.values(e).filter((function(e){return"object"===jb(e)})),n=null;if(A&&AL.exports.values(A).length)for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof e?e:"number"==typeof e?String(e):"boolean"==typeof e?e?"true":"false":Array.isArray(e)?e.filter((function(e){return"string"==typeof e})).join():t},NG=function(){return Array.isArray(navigator.languages)&&navigator.languages[0]?navigator.languages[0]:navigator.language?navigator.language:navigator.userLanguage?navigator.userLanguage:navigator.browserLanguage?navigator.browserLanguage:"en-US"},LG=function(e,t){if(e.__test__)return n=e.__test__,"http://localhost:1234/jsons/".concat(n,".json");var n,r=e.consentFormVersion?"/versions/".concat(e.consentFormVersion):"",o="?brandId=".concat(e.brandId);return e.token?"".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/token/").concat(e.token):e.confirm?"".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/double-opt-in/").concat(e.confirm,"?cacheBust=").concat((new Date).getTime()):(e.previewToken&&(o+="&previewToken=".concat(e.previewToken)),e.latestPreference&&(o+="&latestPreference=true"),e.locale?o+="&locale=".concat(e.locale):o+="&locale=".concat(NG()),e.preview&&e.landingPageId&&(o+="&landingPageId=".concat(e.landingPageId)),e.expiredConsentPreference&&(o+="&expiredConsentPreference=".concat(e.expiredConsentPreference)),(e.expiredConsentPreference||e.brandPreference)&&e.brandPreference&&(o+="&brandPreference=true"),(e.expiredConsentPreference||e.latestPreference)&&(Object.keys(t).forEach((function(e){o+="&".concat(e,"=").concat(MG(t[e]))})),o+="&cacheBust=".concat((new Date).getTime())),"".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/").concat(e.consentFormId).concat(r).concat(o))},FG={exports:{}};!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,u=32,c=64,l=128,p=256,d=1/0,h=9007199254740991,m=NaN,y=4294967295,v=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",u],["partialRight",c],["rearg",p]],b="[object Arguments]",g="[object Array]",w="[object Boolean]",_="[object Date]",x="[object Error]",k="[object Function]",O="[object GeneratorFunction]",S="[object Map]",E="[object Number]",T="[object Object]",C="[object Promise]",P="[object RegExp]",D="[object Set]",j="[object String]",R="[object Symbol]",I="[object WeakMap]",A="[object ArrayBuffer]",M="[object DataView]",N="[object Float32Array]",L="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",z="[object Uint8ClampedArray]",H="[object Uint16Array]",Y="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Q=RegExp(G.source),X=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,ue=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="['’]",je="[\\ud800-\\udfff]",Re="["+Pe+"]",Ie="["+Oe+"]",Ae="\\d+",Me="[\\u2700-\\u27bf]",Ne="["+Ee+"]",Le="[^\\ud800-\\udfff"+Pe+Ae+Se+Ee+Te+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ue="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Te+"]",He="(?:"+Ne+"|"+Le+")",Ye="(?:"+ze+"|"+Le+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Ie+"|"+Fe+")"+"?",Ge="[\\ufe0e\\ufe0f]?",Ke=Ge+$e+("(?:\\u200d(?:"+[Ue,Be,Ve].join("|")+")"+Ge+$e+")*"),Qe="(?:"+[Me,Be,Ve].join("|")+")"+Ke,Xe="(?:"+[Ue+Ie+"?",Ie,Be,Ve,je].join("|")+")",Ze=RegExp(De,"g"),Je=RegExp(Ie,"g"),et=RegExp(Fe+"(?="+Fe+")|"+Xe+Ke,"g"),tt=RegExp([ze+"?"+Ne+"+"+We+"(?="+[Re,ze,"$"].join("|")+")",Ye+"+"+qe+"(?="+[Re,ze+He,"$"].join("|")+")",ze+"?"+He+"+"+We,ze+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Qe].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Oe+Ce+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,at={};at[N]=at[L]=at[F]=at[U]=at[B]=at[V]=at[z]=at[H]=at[Y]=!0,at[b]=at[g]=at[A]=at[w]=at[M]=at[_]=at[x]=at[k]=at[S]=at[E]=at[T]=at[P]=at[D]=at[j]=at[I]=!1;var ut={};ut[b]=ut[g]=ut[A]=ut[M]=ut[w]=ut[_]=ut[N]=ut[L]=ut[F]=ut[U]=ut[B]=ut[S]=ut[E]=ut[T]=ut[P]=ut[D]=ut[j]=ut[R]=ut[V]=ut[z]=ut[H]=ut[Y]=!0,ut[x]=ut[k]=ut[I]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ft="object"==s(f)&&f&&f.Object===Object&&f,pt="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,dt=ft||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,yt=mt&&mt.exports===ht,vt=yt&&ft.process,bt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),gt=bt&&bt.isArrayBuffer,wt=bt&&bt.isDate,_t=bt&&bt.isMap,xt=bt&&bt.isRegExp,kt=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+ct[e]}function un(e){return nt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n",""":'"',"'":"'"});var vn=function e(t){var f=(t=null==t?dt:vn.defaults(dt.Object(),t,vn.pick(dt,ot))).Array,ue=t.Date,Oe=t.Error,Se=t.Function,Ee=t.Math,Te=t.Object,Ce=t.RegExp,Pe=t.String,De=t.TypeError,je=f.prototype,Re=Se.prototype,Ie=Te.prototype,Ae=t["__core-js_shared__"],Me=Re.toString,Ne=Ie.hasOwnProperty,Le=0,Fe=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ue=Ie.toString,Be=Me.call(Te),Ve=dt._,ze=Ce("^"+Me.call(Ne).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=yt?t.Buffer:n,Ye=t.Symbol,We=t.Uint8Array,qe=He?He.allocUnsafe:n,$e=ln(Te.getPrototypeOf,Te),Ge=Te.create,Ke=Ie.propertyIsEnumerable,Qe=je.splice,Xe=Ye?Ye.isConcatSpreadable:n,et=Ye?Ye.iterator:n,nt=Ye?Ye.toStringTag:n,ct=function(){try{var e=hi(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,pt=ue&&ue.now!==dt.Date.now&&ue.now,ht=t.setTimeout!==dt.setTimeout&&t.setTimeout,mt=Ee.ceil,vt=Ee.floor,bt=Te.getOwnPropertySymbols,Ft=He?He.isBuffer:n,qt=t.isFinite,bn=je.join,gn=ln(Te.keys,Te),wn=Ee.max,_n=Ee.min,xn=ue.now,kn=t.parseInt,On=Ee.random,Sn=je.reverse,En=hi(t,"DataView"),Tn=hi(t,"Map"),Cn=hi(t,"Promise"),Pn=hi(t,"Set"),Dn=hi(t,"WeakMap"),jn=hi(Te,"create"),Rn=Dn&&new Dn,In={},An=Vi(En),Mn=Vi(Tn),Nn=Vi(Cn),Ln=Vi(Pn),Fn=Vi(Dn),Un=Ye?Ye.prototype:n,Bn=Un?Un.valueOf:n,Vn=Un?Un.toString:n;function zn(e){if(ou(e)&&!$a(e)&&!(e instanceof qn)){if(e instanceof Wn)return e;if(Ne.call(e,"__wrapped__"))return zi(e)}return new Wn(e)}var Hn=function(){function e(){}return function(t){if(!ru(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Yn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function sr(e,t,r,o,i,a){var u,c=1&t,l=2&t,s=4&t;if(r&&(u=i?r(e,o,i,a):r(e)),u!==n)return u;if(!ru(e))return e;var f=$a(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Ro(e,u)}else{var p=vi(e),d=p==k||p==O;if(Xa(e))return Eo(e,c);if(p==T||p==b||d&&!i){if(u=l||d?{}:gi(e),!c)return l?function(e,t){return Io(e,yi(e),t)}(e,function(e,t){return e&&Io(t,Mu(t),e)}(u,e)):function(e,t){return Io(e,mi(e),t)}(e,ar(u,e))}else{if(!ut[p])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case A:return To(e);case w:case _:return new r(+e);case M:return function(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case L:case F:case U:case B:case V:case z:case H:case Y:return Co(e,n);case S:return new r;case E:case j:return new r(e);case P:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case R:return o=e,Bn?Te(Bn.call(o)):{}}var o}(e,p,c)}}a||(a=new Xn);var h=a.get(e);if(h)return h;a.set(e,u),lu(e)?e.forEach((function(n){u.add(sr(n,t,r,n,e,a))})):iu(e)&&e.forEach((function(n,o){u.set(o,sr(n,t,r,o,e,a))}));var m=f?n:(s?l?ui:ai:l?Mu:Au)(e);return Tt(m||e,(function(n,o){m&&(n=e[o=n]),rr(u,o,sr(n,t,r,o,e,a))})),u}function fr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Te(e);o--;){var i=r[o],a=t[i],u=e[i];if(u===n&&!(i in e)||!a(u))return!1}return!0}function pr(e,t,o){if("function"!=typeof e)throw new De(r);return Ai((function(){e.apply(n,o)}),t)}function dr(e,t,n,r){var o=-1,i=jt,a=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=It(t,Xt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=Jt,a=!1,t=new Qn(t));e:for(;++o-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(Tn||Gn),string:new $n}},Kn.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return pi(this,e).get(e)},Kn.prototype.has=function(e){return pi(this,e).has(e)},Kn.prototype.set=function(e,t){var n=pi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Qn.prototype.add=Qn.prototype.push=function(e){return this.__data__.set(e,o),this},Qn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var hr=No(xr),mr=No(kr,!0);function yr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,r){for(var o=-1,i=e.length;++o0&&n(u)?t>1?gr(u,t-1,n,r,o):At(o,u):r||(o[o.length]=u)}return o}var wr=Lo(),_r=Lo(!0);function xr(e,t){return e&&wr(e,t,Au)}function kr(e,t){return e&&_r(e,t,Au)}function Or(e,t){return Dt(t,(function(t){return eu(e[t])}))}function Sr(e,t){for(var r=0,o=(t=xo(t,e)).length;null!=e&&rt}function Pr(e,t){return null!=e&&Ne.call(e,t)}function Dr(e,t){return null!=e&&t in Te(e)}function jr(e,t,r){for(var o=r?Rt:jt,i=e[0].length,a=e.length,u=a,c=f(a),l=1/0,s=[];u--;){var p=e[u];u&&t&&(p=It(p,Xt(t))),l=_n(p.length,l),c[u]=!r&&(t||i>=120&&p.length>=120)?new Qn(u&&p):n}p=e[0];var d=-1,h=c[0];e:for(;++d=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function $r(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&Qe.call(u,c,1),Qe.call(e,c,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;_i(o)?Qe.call(e,o,1):ho(e,o)}}return e}function Qr(e,t){return e+vt(On()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Mi(Pi(e,t,ac),e+"")}function Jr(e){return Jn(Hu(e))}function eo(e,t){var n=Hu(e);return Fi(n,lr(t,0,n.length))}function to(e,t,r,o){if(!ru(e))return e;for(var i=-1,a=(t=xo(t,e)).length,u=a-1,c=e;null!=c&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=f(o);++r>>1,a=e[i];null!==a&&!fu(a)&&(n?a<=t:a=200){var l=t?null:Zo(e);if(l)return fn(l);a=!1,o=Jt,c=new Qn}else c=t?[]:u;e:for(;++r=o?e:io(e,t,r)}var So=ft||function(e){return dt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function To(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Co(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=fu(e),u=t!==n,c=null===t,l=t==t,s=fu(t);if(!c&&!s&&!a&&e>t||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&e1?r[i-1]:n,u=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,u&&xi(r[0],r[1],u)&&(a=i<3?n:a,i=1),t=Te(t);++o-1?i[a?t[u]:u]:n}}function zo(e){return ii((function(t){var o=t.length,i=o,a=Wn.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new De(r);if(a&&!c&&"wrapper"==li(u))var c=new Wn([],!0)}for(i=c?i:o;++i1&&g.reverse(),d&&sc))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var p=-1,d=!0,h=2&r?new Qn:n;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(v,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(se):[]}(r),n)))}function Li(e){var t=0,r=0;return function(){var o=xn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Fi(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ca(e,r)}));function ma(e){var t=zn(e);return t.__chain__=!0,t}function ya(e,t){return t(e)}var va=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return cr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof qn&&_i(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ya,args:[i],thisArg:n}),new Wn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ba=Ao((function(e,t,n){Ne.call(e,n)?++e[n]:ur(e,n,1)}));var ga=Vo(qi),wa=Vo($i);function _a(e,t){return($a(e)?Tt:hr)(e,fi(t,3))}function xa(e,t){return($a(e)?Ct:mr)(e,fi(t,3))}var ka=Ao((function(e,t,n){Ne.call(e,n)?e[n].push(t):ur(e,n,[t])}));var Oa=Zr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ka(e)?f(e.length):[];return hr(e,(function(e){i[++r]=o?St(t,e,n):Rr(e,t,n)})),i})),Sa=Ao((function(e,t,n){ur(e,n,t)}));function Ea(e,t){return($a(e)?It:Vr)(e,fi(t,3))}var Ta=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ca=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,gr(t,1),[])})),Pa=pt||function(){return dt.Date.now()};function Da(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,l,n,n,n,n,t)}function ja(e,t){var o;if("function"!=typeof t)throw new De(r);return e=vu(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ra=Zr((function(e,t,n){var r=1;if(n.length){var o=sn(n,si(Ra));r|=u}return ei(e,r,t,n,o)})),Ia=Zr((function(e,t,n){var r=3;if(n.length){var o=sn(n,si(Ia));r|=u}return ei(t,r,e,n,o)}));function Aa(e,t,o){var i,a,u,c,l,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new De(r);function m(t){var r=i,o=a;return i=a=n,f=t,c=e.apply(o,r)}function y(e){return f=e,l=Ai(b,t),p?m(e):c}function v(e){var r=e-s;return s===n||r>=t||r<0||d&&e-f>=u}function b(){var e=Pa();if(v(e))return g(e);l=Ai(b,function(e){var n=t-(e-s);return d?_n(n,u-(e-f)):n}(e))}function g(e){return l=n,h&&i?m(e):(i=a=n,c)}function w(){var e=Pa(),r=v(e);if(i=arguments,a=this,s=e,r){if(l===n)return y(s);if(d)return So(l),l=Ai(b,t),m(s)}return l===n&&(l=Ai(b,t)),c}return t=gu(t)||0,ru(o)&&(p=!!o.leading,u=(d="maxWait"in o)?wn(gu(o.maxWait)||0,t):u,h="trailing"in o?!!o.trailing:h),w.cancel=function(){l!==n&&So(l),f=0,i=s=a=l=n},w.flush=function(){return l===n?c:g(Pa())},w}var Ma=Zr((function(e,t){return pr(e,1,t)})),Na=Zr((function(e,t,n){return pr(e,gu(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(r);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(La.Cache||Kn),n}function Fa(e){if("function"!=typeof e)throw new De(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=Kn;var Ua=ko((function(e,t){var n=(t=1==t.length&&$a(t[0])?It(t[0],Xt(fi())):It(gr(t,1),Xt(fi()))).length;return Zr((function(r){for(var o=-1,i=_n(r.length,n);++o=t})),qa=Ir(function(){return arguments}())?Ir:function(e){return ou(e)&&Ne.call(e,"callee")&&!Ke.call(e,"callee")},$a=f.isArray,Ga=gt?Xt(gt):function(e){return ou(e)&&Tr(e)==A};function Ka(e){return null!=e&&nu(e.length)&&!eu(e)}function Qa(e){return ou(e)&&Ka(e)}var Xa=Ft||gc,Za=wt?Xt(wt):function(e){return ou(e)&&Tr(e)==_};function Ja(e){if(!ou(e))return!1;var t=Tr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!uu(e)}function eu(e){if(!ru(e))return!1;var t=Tr(e);return t==k||t==O||"[object AsyncFunction]"==t||"[object Proxy]"==t}function tu(e){return"number"==typeof e&&e==vu(e)}function nu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ru(e){var t=s(e);return null!=e&&("object"==t||"function"==t)}function ou(e){return null!=e&&"object"==s(e)}var iu=_t?Xt(_t):function(e){return ou(e)&&vi(e)==S};function au(e){return"number"==typeof e||ou(e)&&Tr(e)==E}function uu(e){if(!ou(e)||Tr(e)!=T)return!1;var t=$e(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Be}var cu=xt?Xt(xt):function(e){return ou(e)&&Tr(e)==P};var lu=kt?Xt(kt):function(e){return ou(e)&&vi(e)==D};function su(e){return"string"==typeof e||!$a(e)&&ou(e)&&Tr(e)==j}function fu(e){return"symbol"==s(e)||ou(e)&&Tr(e)==R}var pu=Ot?Xt(Ot):function(e){return ou(e)&&nu(e.length)&&!!at[Tr(e)]};var du=Ko(Br),hu=Ko((function(e,t){return e<=t}));function mu(e){if(!e)return[];if(Ka(e))return su(e)?hn(e):Ro(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=vi(e);return(t==S?cn:t==D?fn:Hu)(e)}function yu(e){return e?(e=gu(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vu(e){var t=yu(e),n=t%1;return t==t?n?t-n:t:0}function bu(e){return e?lr(vu(e),0,y):0}function gu(e){if("number"==typeof e)return e;if(fu(e))return m;if(ru(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ru(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ve.test(e);return n||ge.test(e)?st(e.slice(2),n?2:8):ye.test(e)?m:+e}function wu(e){return Io(e,Mu(e))}function _u(e){return null==e?"":fo(e)}var xu=Mo((function(e,t){if(Ei(t)||Ka(t))Io(t,Au(t),e);else for(var n in t)Ne.call(t,n)&&rr(e,n,t[n])})),ku=Mo((function(e,t){Io(t,Mu(t),e)})),Ou=Mo((function(e,t,n,r){Io(t,Mu(t),e,r)})),Su=Mo((function(e,t,n,r){Io(t,Au(t),e,r)})),Eu=ii(cr);var Tu=Zr((function(e,t){e=Te(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&xi(t[0],t[1],i)&&(o=1);++r1),t})),Io(e,ui(e),n),r&&(n=sr(n,7,ri));for(var o=t.length;o--;)ho(n,t[o]);return n}));var Uu=ii((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return Du(e,n)}))}(e,t)}));function Bu(e,t){if(null==e)return{};var n=It(ui(e),(function(e){return[e]}));return t=fi(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Vu=Jo(Au),zu=Jo(Mu);function Hu(e){return null==e?[]:Zt(e,Au(e))}var Yu=Uo((function(e,t,n){return t=t.toLowerCase(),e+(n?Wu(t):t)}));function Wu(e){return Ju(_u(e).toLowerCase())}function qu(e){return(e=_u(e))&&e.replace(_e,rn).replace(Je,"")}var $u=Uo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gu=Uo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ku=Fo("toLowerCase");var Qu=Uo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xu=Uo((function(e,t,n){return e+(n?" ":"")+Ju(t)}));var Zu=Uo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ju=Fo("toUpperCase");function ec(e,t,r){return e=_u(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var tc=Zr((function(e,t){try{return St(e,n,t)}catch(e){return Ja(e)?e:new Oe(e)}})),nc=ii((function(e,t){return Tt(t,(function(t){t=Bi(t),ur(e,t,Ra(e[t],e))})),e}));function rc(e){return function(){return e}}var oc=zo(),ic=zo(!0);function ac(e){return e}function uc(e){return Lr("function"==typeof e?e:sr(e,1))}var cc=Zr((function(e,t){return function(n){return Rr(n,e,t)}})),lc=Zr((function(e,t){return function(n){return Rr(e,n,t)}}));function sc(e,t,n){var r=Au(t),o=Or(t,r);null!=n||ru(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Or(t,Au(t)));var i=!(ru(n)&&"chain"in n&&!n.chain),a=eu(e);return Tt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Ro(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function fc(){}var pc=qo(It),dc=qo(Pt),hc=qo(Lt);function mc(e){return ki(e)?Wt(Bi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var yc=Go(),vc=Go(!0);function bc(){return[]}function gc(){return!1}var wc=Wo((function(e,t){return e+t}),0),_c=Xo("ceil"),xc=Wo((function(e,t){return e/t}),1),kc=Xo("floor");var Oc,Sc=Wo((function(e,t){return e*t}),1),Ec=Xo("round"),Tc=Wo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new De(r);return e=vu(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Da,zn.assign=xu,zn.assignIn=ku,zn.assignInWith=Ou,zn.assignWith=Su,zn.at=Eu,zn.before=ja,zn.bind=Ra,zn.bindAll=nc,zn.bindKey=Ia,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},zn.chain=ma,zn.chunk=function(e,t,r){t=(r?xi(e,t,r):t===n)?1:wn(vu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,u=f(mt(o/t));ii?0:i+r),(o=o===n||o>i?i:vu(o))<0&&(o+=i),o=r>o?0:bu(o);r>>0)?(e=_u(e))&&("string"==typeof t||null!=t&&!cu(t))&&!(t=fo(t))&&un(e)?Oo(hn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new De(r);return t=null==t?0:wn(vu(t),0),Zr((function(n){var r=n[t],o=Oo(n,0,t);return r&&At(o,r),St(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:vu(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:vu(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?yo(e,fi(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?yo(e,fi(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new De(r);return ru(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:o,maxWait:t,trailing:i})},zn.thru=ya,zn.toArray=mu,zn.toPairs=Vu,zn.toPairsIn=zu,zn.toPath=function(e){return $a(e)?It(e,Bi):fu(e)?[e]:Ro(Ui(_u(e)))},zn.toPlainObject=wu,zn.transform=function(e,t,n){var r=$a(e),o=r||Xa(e)||pu(e);if(t=fi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ru(e)&&eu(i)?Hn($e(e)):{}}return(o?Tt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Da(e,1)},zn.union=oa,zn.unionBy=ia,zn.unionWith=aa,zn.uniq=function(e){return e&&e.length?po(e):[]},zn.uniqBy=function(e,t){return e&&e.length?po(e,fi(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},zn.unset=function(e,t){return null==e||ho(e,t)},zn.unzip=ua,zn.unzipWith=ca,zn.update=function(e,t,n){return null==e?e:mo(e,t,_o(n))},zn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:mo(e,t,_o(r),o)},zn.values=Hu,zn.valuesIn=function(e){return null==e?[]:Zt(e,Mu(e))},zn.without=la,zn.words=ec,zn.wrap=function(e,t){return Ba(_o(t),e)},zn.xor=sa,zn.xorBy=fa,zn.xorWith=pa,zn.zip=da,zn.zipObject=function(e,t){return go(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return go(e||[],t||[],to)},zn.zipWith=ha,zn.entries=Vu,zn.entriesIn=zu,zn.extend=ku,zn.extendWith=Ou,sc(zn,zn),zn.add=wc,zn.attempt=tc,zn.camelCase=Yu,zn.capitalize=Wu,zn.ceil=_c,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gu(r))==r?r:0),t!==n&&(t=(t=gu(t))==t?t:0),lr(gu(e),t,r)},zn.clone=function(e){return sr(e,4)},zn.cloneDeep=function(e){return sr(e,5)},zn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||fr(e,t,Au(t))},zn.deburr=qu,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=xc,zn.endsWith=function(e,t,r){e=_u(e),t=fo(t);var o=e.length,i=r=r===n?o:lr(vu(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},zn.eq=Ha,zn.escape=function(e){return(e=_u(e))&&X.test(e)?e.replace(K,on):e},zn.escapeRegExp=function(e){return(e=_u(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,r){var o=$a(e)?Pt:yr;return r&&xi(e,t,r)&&(t=n),o(e,fi(t,3))},zn.find=ga,zn.findIndex=qi,zn.findKey=function(e,t){return Ut(e,fi(t,3),xr)},zn.findLast=wa,zn.findLastIndex=$i,zn.findLastKey=function(e,t){return Ut(e,fi(t,3),kr)},zn.floor=kc,zn.forEach=_a,zn.forEachRight=xa,zn.forIn=function(e,t){return null==e?e:wr(e,fi(t,3),Mu)},zn.forInRight=function(e,t){return null==e?e:_r(e,fi(t,3),Mu)},zn.forOwn=function(e,t){return e&&xr(e,fi(t,3))},zn.forOwnRight=function(e,t){return e&&kr(e,fi(t,3))},zn.get=Pu,zn.gt=Ya,zn.gte=Wa,zn.has=function(e,t){return null!=e&&bi(e,t,Pr)},zn.hasIn=Du,zn.head=Ki,zn.identity=ac,zn.includes=function(e,t,n,r){e=Ka(e)?e:Hu(e),n=n&&!r?vu(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),su(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),Vt(e,t,o)},zn.inRange=function(e,t,r){return t=yu(t),r===n?(r=t,t=0):r=yu(r),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=h},zn.isSet=lu,zn.isString=su,zn.isSymbol=fu,zn.isTypedArray=pu,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return ou(e)&&vi(e)==I},zn.isWeakSet=function(e){return ou(e)&&"[object WeakSet]"==Tr(e)},zn.join=function(e,t){return null==e?"":bn.call(e,t)},zn.kebabCase=$u,zn.last=Ji,zn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=vu(r))<0?wn(o+i,0):_n(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,Ht,i,!0)},zn.lowerCase=Gu,zn.lowerFirst=Ku,zn.lt=du,zn.lte=hu,zn.max=function(e){return e&&e.length?vr(e,ac,Cr):n},zn.maxBy=function(e,t){return e&&e.length?vr(e,fi(t,2),Cr):n},zn.mean=function(e){return Yt(e,ac)},zn.meanBy=function(e,t){return Yt(e,fi(t,2))},zn.min=function(e){return e&&e.length?vr(e,ac,Br):n},zn.minBy=function(e,t){return e&&e.length?vr(e,fi(t,2),Br):n},zn.stubArray=bc,zn.stubFalse=gc,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Sc,zn.nth=function(e,t){return e&&e.length?Wr(e,vu(t)):n},zn.noConflict=function(){return dt._===this&&(dt._=Ve),this},zn.noop=fc,zn.now=Pa,zn.pad=function(e,t,n){e=_u(e);var r=(t=vu(t))?dn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $o(vt(o),n)+e+$o(mt(o),n)},zn.padEnd=function(e,t,n){e=_u(e);var r=(t=vu(t))?dn(e):0;return t&&rt){var o=e;e=t,t=o}if(r||e%1||t%1){var i=On();return _n(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return Qr(e,t)},zn.reduce=function(e,t,n){var r=$a(e)?Mt:$t,o=arguments.length<3;return r(e,fi(t,4),n,o,hr)},zn.reduceRight=function(e,t,n){var r=$a(e)?Nt:$t,o=arguments.length<3;return r(e,fi(t,4),n,o,mr)},zn.repeat=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:vu(t),Xr(_u(e),t)},zn.replace=function(){var e=arguments,t=_u(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var o=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=n);++oh)return[];var n=y,r=_n(e,y);t=fi(t),e-=y;for(var o=Kt(r,t);++n=a)return e;var c=r-dn(o);if(c<1)return o;var l=u?Oo(u,0,c).join(""):e.slice(0,c);if(i===n)return l+o;if(u&&(c+=l.length-c),cu(i)){if(e.slice(c).search(i)){var s,f=l;for(i.global||(i=Ce(i.source,_u(me.exec(i))+"g")),i.lastIndex=0;s=i.exec(f);)var p=s.index;l=l.slice(0,p===n?c:p)}}else if(e.indexOf(fo(i),c)!=c){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+o},zn.unescape=function(e){return(e=_u(e))&&Q.test(e)?e.replace(G,yn):e},zn.uniqueId=function(e){var t=++Le;return _u(e)+t},zn.upperCase=Zu,zn.upperFirst=Ju,zn.each=_a,zn.eachRight=xa,zn.first=Ki,sc(zn,(Oc={},xr(zn,(function(e,t){Ne.call(zn.prototype,t)||(Oc[t]=e)})),Oc),{chain:!1}),zn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Tt(["drop","take"],(function(e,t){qn.prototype[e]=function(r){r=r===n?1:wn(vu(r),0);var o=this.__filtered__&&!t?new qn(this):this.clone();return o.__filtered__?o.__takeCount__=_n(r,o.__takeCount__):o.__views__.push({size:_n(r,y),type:e+(o.__dir__<0?"Right":"")}),o},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:fi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(ac)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Rr(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Fa(fi(e)))},qn.prototype.slice=function(e,t){e=vu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vu(t))<0?r.dropRight(-t):r.take(t-e)),r)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(y)},xr(qn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,c=t instanceof qn,l=u[0],s=c||$a(t),f=function(e){var t=i.apply(zn,At([e],u));return o&&p?t[0]:t};s&&r&&"function"==typeof l&&1!=l.length&&(c=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=c&&!d;if(!a&&s){t=m?t:new qn(this);var y=e.apply(t,u);return y.__actions__.push({func:ya,args:[f],thisArg:n}),new Wn(y,p)}return h&&m?e.apply(this,u):(y=this.thru(f),h?o?y.value()[0]:y.value():y)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($a(o)?o:[],e)}return this[n]((function(n){return t.apply($a(n)?n:[],e)}))}})),xr(qn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Ne.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[Ho(n,2).name]=[{name:"wrapper",func:n}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ro(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$a(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Yn;){var o=zi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:ya,args:[ra],thisArg:n}),new Wn(t,this.__chain__)}return this.thru(ra)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,et&&(zn.prototype[et]=function(){return this}),zn}();mt?((mt.exports=vn)._=vn,ht._=vn):dt._=vn}).call(f)}(FG,FG.exports);var UG,BG=function(e,t,n,r){if(n){var o=[];return Object.keys(t).forEach((function(e){var n=t[e];o.push(u({},e,Array.isArray(n)?n:[n]))})),o}var i=[],a=[];return e.forEach((function(e){var n=e.id,o=e.type,c=e.ruleIds,l=t[n];if(!a.includes(n))switch(o.id){case yb.SingleLine:case yb.Email:case yb.ParagraphText:var s=MG(l);i.push(u({},n,[s]));break;case yb.PhoneNumber:if(l){var f=l;i.push(u({},n,[Db(f)]))}else i.push(u({},n,[""]));break;case yb.Checkbox:case yb.ToggleSwitch:var p=Boolean(l).toString();FG.exports.isEmpty(c)||c.forEach((function(e){var t=r.find((function(t){return t.id===e}));t.hasOwnProperty("formFieldIds")&&!FG.exports.isEqual(t.condition,[p])&&a.push.apply(a,ey(t.formFieldIds))})),i.push(u({},n,[p]));break;case yb.Select:case yb.Country:var d=[];Array.isArray(l)&&l.length>0?l.filter((function(e){return!(null==e||!e.value)})).forEach((function(e){var t=e.value;d.push(t)})):l&&l.value&&d.push(l.value),FG.exports.isEmpty(c)||c.forEach((function(e){var t=r.find((function(t){return t.id===e}));t.hasOwnProperty("formFieldIds")&&!FG.exports.isEqual(t.condition,d)&&a.push.apply(a,ey(t.formFieldIds))})),i.push(u({},n,d));break;case yb.GroupCheckboxes:case yb.GroupToggleSwitch:var h=Boolean(l).toString();i.push(u({},n,[h]));break;case yb.FileAttachment:var m=l;i.push(u({},n,[m.name]))}})),i},VG=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r=0&&(t=Object.values(e)),e&&Array.isArray(e)&&(t=e),t},KG=function(e){var t=VG(e);return{autoSubmit:t.autoSubmit,brandId:t.brandId,brandPreference:t.brandPreference,channelEmail:t.channelEmail,consentFormId:t.consentFormId,expiryMinutes:t.expiryMinutes,formFieldIdValues:t.formFieldIdValues,latestPreference:t.latestPreference,locale:t.locale,hideFooterButtons:t.hideFooterButtons,hideSubmitButton:t.hideSubmitButton,expiredConsentPreference:t.expiredConsentPreference}},QG=function(e){var t,n,r=VG(e),o={brandLogoBase64ImageUrl:null!==(t=r.brandLogoBase64ImageUrl)&&void 0!==t?t:"",content:$G(r.content),localeTranslations:zG(r.localeTranslations),landingPages:VG(r.landingPages),tokenValue:KG(r.tokenValue),urlCondition:r.urlCondition,emailRecipientFieldId:r.emailRecipientFieldId,doubleOptInJurisdiction:r.doubleOptInJurisdiction,doubleOptInTokenValue:r.doubleOptInTokenValue,showConsentForm:r.showConsentForm,consentRule:r.consentRule,browserCookieNeeded:null!==(n=r.browserCookieNeeded)&&void 0!==n&&n};return Array.isArray(r.latestPreferences)&&r.latestPreferences.length>0&&(o.latestPreferences=function(e){var t=[];return e.forEach((function(e){var n=VG(e);if(1===Object.keys(n).length){var r=Object.keys(n)[0],o=n[r];if(Array.isArray(o)&&o.length>0){var i=o.filter((function(e){return"string"==typeof e}));i.length>0&&t.push(u({},r,i))}}})),t}(r.latestPreferences)),o},XG=function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="json",r.onerror=function(){n(new Error("The request could not be made."))},r.onload=function(){r.status>=400?n(new Error("The request has a ".concat(r.status," error. \n ").concat(r.response.message))):r.status>=200&&t(QG(r.response))},r.send()}))},ZG=function(e){var t=VG(e),n={};return Object.keys(t).forEach((function(e){var r=t[e];if("string"==typeof r&&r||"number"==typeof r||"boolean"==typeof r)n[e]=r;else if(Array.isArray(r)){var o=r.filter((function(e){return"string"==typeof e&&e}));o.length>0&&(n[e]=o)}})),n},JG=function(e,t,n,r){return n?e:"BRAND_CONSENT_FORM_IDS_ONLY"===t?{}:("NON_DS_IDENTIFIERS_ONLY"===t&&Object.keys(e).forEach((function(t){var n=r.find((function(e){return e.id==t}));null!=n&&n.group&&delete e[t]})),e)},eK=function(e){var t=VG(e);if(t.token||t.confirm||!t.consentFormId&&!t.brandId){if(!t.confirm){if(!t.token)throw new Error("Invalid UPM config: JWT token is missing.");if("string"!=typeof t.token)throw new Error("Invalid UPM config: token is invalid.")}}else{if(!t.brandId)throw new Error("Invalid UPM config: brandId is missing.");if("string"!=typeof t.brandId)throw new Error("Invalid UPM config: brandId is invalid.");if(!t.consentFormId)throw new Error("Invalid UPM config: consentFormId is missing.");if("string"!=typeof t.consentFormId)throw new Error("Invalid UPM config: consentFormId is invalid.")}return t},tK=function(e){var t={};return Object.keys(e).forEach((function(n){var r={},o=new Set;ey(e[n]).forEach((function(e){switch(e=e.toLowerCase(),o.add(e),e){case"e":o.has("r")?delete r.readOnly:r.readOnly=!1;break;case"r":o.has("e")?delete r.readOnly:r.readOnly=!0;break;case"h":o.has("d")?delete r.hidden:r.hidden=!0;break;case"d":o.has("h")?delete r.hidden:r.hidden=!1;break;case"q":o.has("n")?delete r.required:r.required=!0;break;case"n":o.has("q")?delete r.required:r.required=!1;break;default:o.delete(e)}})),t[n]=r})),t},nK=function(e,t){t.content.formFields.forEach((function(t){var n,r,o=t.type.id;e[t.id]&&(o==yb.GroupCheckboxes||o==yb.Checkbox&&null!==(n=t.extras)&&void 0!==n&&n.isChild)&&(null===(r=e[t.id])||void 0===r||delete r.required,Object.keys(e[t.id]).length||delete e[t.id])}))};!function(e){e.Email="Email",e.Website="Website",e.Manual="Manual",e.API="API",e.PhoneCall="PhoneCall",e.SMS="SMS",e.Support="Support",e.Others="Others",e.DataSubjectRequest="DataSubjectRequest"}(UG||(UG={}));var rK,oK=function(e){var t=VG(e);t.token&&(t.defaultValues=[]);var n={},r={};return t.defaultValues&&Object.keys(t.defaultValues).forEach((function(e){var o=a(e.split("_"),2),i=o[0],u=o[1];u&&(n[i]=u),r[i]=t.defaultValues[e]})),t.settingsValues=n,t.defaultValues=r,t.channel=function(e){switch(MG(e).toLowerCase()){case UG.Email.toLowerCase():return UG.Email;case UG.API.toLowerCase():return UG.API;case UG.Manual.toLowerCase():return UG.Manual;case UG.PhoneCall.toLowerCase():return UG.PhoneCall;case UG.SMS.toLowerCase():return UG.SMS;case UG.Support.toLowerCase():return UG.Support;case UG.Others.toLowerCase():return UG.Others;case UG.DataSubjectRequest.toLowerCase():return UG.DataSubjectRequest;default:return UG.Website}}(t.channel),t},iK=function(e){var t={};return e.forEach((function(e){var n;e.formValues.length>1?t[e.field.id]=e.formValues.map((function(e){return e.value})):t[e.field.id]=null===(n=e.formValues[0])||void 0===n?void 0:n.value})),t},aK=function(e){return new Promise((function(t,n){var r="".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/double-opt-in/resend/").concat(e),o=new XMLHttpRequest;o.open("POST",r),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.responseType="json",o.onerror=function(){n(new Error("The resend request could not be made."))},o.onload=function(){o.status>=400?n(new Error("The resend request has a ".concat(o.status," error."))):o.status>=200&&t(o.response)},o.send()}))};!function(e){e.ACTIVE="ACTIVE",e.PENDING="PENDING",e.EXPIRED="EXPIRED"}(rK||(rK={}));var uK="00000000-0000-0000-0000-100000000000",cK=function(e){var t=function(e){return e.split("_").filter((function(e){return!!e})).join("_").substring(0,function(e,t,n){return e.split(t,n).join(t).length}(e,"_",2))}(e);return["NA_US","NA_CA"].includes(t)?e:t},lK=function(){var e=l(m.mark((function e(){var t,n,r;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=new Uint8Array(16),n=window.crypto||window.msCrypto){e.next=4;break}throw new Error("Web Crypto API not available in this browser.");case 4:return n.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128,r=Array.from(t).map((function(e){return e.toString(16).padStart(2,"0")})),e.abrupt("return","".concat(r.slice(0,4).join(""),"-").concat(r.slice(4,6).join(""),"-").concat(r.slice(6,8).join(""),"-").concat(r.slice(8,10).join(""),"-").concat(r.slice(10).join("")));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sK=function(){var e=l(m.mark((function e(t){var n,r,o;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lK();case 2:return n=e.sent,e.next=5,fetch("".concat(t,"?cacheBust=").concat(n),{method:"HEAD"});case 5:return r=e.sent,o=r.headers,e.abrupt("return",{continent:o.get("continent"),country:o.get("country"),state:o.get("state")});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fK=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0?cK(e.filter((function(e){return!FG.exports.isEmpty(e)})).join("_")):null},pK=function(){try{return window.self!==window.top}catch(e){return!0}},dK=function(){var e=navigator.cookieEnabled;return pK()&&(e=function(){try{var e="irmTestCookie",t="trustarcTestCookie="+e;t+="; samesite=None; secure",document.cookie=t;var n=-1!==document.cookie.indexOf(e);return document.cookie=e+"; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",n}catch(e){return!1}}()),e};function hK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mK(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:6,r=new Date;r.setTime(r.getTime()+30*(null!=n?n:6)*24*60*60*1e3);var o="expires="+r.toUTCString(),i=e+"="+t+";"+o+";path=/";document.cookie=i,console.log("[gpc] dropped cookie",i)},EK=function(){var e=l(m.mark((function e(t,n){var r,o,i,a,u,c;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=navigator.globalPrivacyControl,console.log("[gpc] globalPrivacyControl",r),r){e.next=4;break}return e.abrupt("return",!1);case 4:return e.next=6,sK(t);case 6:if(o=e.sent,console.log("[gpc] geoLocationCode",o),null!=n&&n.length){e.next=10;break}return e.abrupt("return",!0);case 10:return i=o.continent,a=o.country,u=o.state,c=[i,a,u],e.abrupt("return",TK(c,new Set(n)));case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),TK=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;e.length>0;){var n=fK(e),r=t.has(n);if(r)return console.log("[gpc] geoCode matches",n),!0;e.pop()}return console.log("[gpc] geoCode does not match"),!1},CK=function(e,t){return"form-opened_submitted"===OK(xK)&&(console.log("[gpc] cookie (form-opened_submitted) already dropped"),t&&function(e){try{ud.render(ce.createElement(wG,null),e)}catch(e){throw console.error("[upm] Error: ".concat(e.message)),new Error("An error occured while rendering the GPC Applied Banner.")}}(e),!0)},PK=function(){var e=document.getElementById(kK);e&&e.remove()},DK=function(){var e=l(m.mark((function e(t){var n,r,o,i,a,u,c,l,s,f,p,d;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.currentScriptUrl,o=t.gpcConfig,i=void 0===o?{}:o,a=t.onRenderForm,u=t.onRenderGPCForm,a||null!=i&&null!==(n=i.iframeConfig)&&void 0!==n&&n.formLink){e.next=3;break}throw Error("Invalid GPC configuration.");case 3:return c=OK(xK),l="ignored"===c&&!i.showFormForUnsubmittedDSR,e.next=7,EK(r,i.geoLocationCodes);case 7:if(s=e.sent,!c||s){e.next=14;break}if(!i.showFormOnDisabledSecondVisit){e.next=13;break}i.showPreviouslyDetectedContent=!0,e.next=14;break;case 13:return e.abrupt("return");case 14:if((f=document.createElement("div")).id=kK,document.body.insertBefore(f,document.body.firstChild),p=function(e){},p=a&&u?function(e){e?u():a()}:function(){AG(mK({},i.iframeConfig))},!s||!l||i.showPreviouslyDetectedContent){e.next=21;break}return e.abrupt("return");case 21:(s||i.showPreviouslyDetectedContent)&&(!i.showPreviouslyDetectedContent&&CK(f,i.showRecognizedGPCImage)||(d=null,dK()||("Your browser is blocking essential cookie","We see that cookies are blocked. You must enable cookies in your browser and refresh the page to submit the form data.",d={message:"We see that cookies are blocked. You must enable cookies in your browser and refresh the page to submit the form data.",headerLogo:null,showRespondButton:null,showAsModal:!1,headerMessage:"Your browser is blocking essential cookie",bodyLogo:null},i.cookieErrorLandingPage=d),jG({onIgnore:function(){var e,t;e="ignored",t=i.cookieExpiryInMonths,SK(xK,e,t),PK()},onOptOut:function(){return p(!0)},gpcConfig:i},f)));case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),jK={shouldShowGPCBanner:EK,setGPCSubmitted:function(e){SK(xK,"form-opened_submitted",e)},init:DK,destroy:PK};!function(e){e.Checkbox="Checkbox",e.Email="Email",e.ParagraphText="ParagraphText",e.PhoneNumber="PhoneNumber",e.Select="Select",e.SingleLine="SingleLine",e.StaticText="StaticText",e.Country="Country",e.GroupCheckboxes="GroupCheckboxes",e.Date="Date",e.ToggleSwitch="ToggleSwitch",e.NameField="name-type-field",e.EndSubmission="EndSubmission",e.FileAttachment="FileAttachment",e.GroupToggleSwitch="GroupToggleSwitch",e.OptionRule="OptionRule"}(yK||(yK={})),function(e){e.SUCCESS_SUBMISSION="SUCCESS_SUBMISSION",e.ERROR_SUBMISSION="ERROR_SUBMISSION",e.DOUBLE_OPT_IN="DOUBLE_OPT_IN",e.ERROR_COOKIE="ERROR_COOKIE"}(vK||(vK={})),function(e){e.SELECT_ALL_AND_UNSELECT_ALL="SELECT_ALL_AND_UNSELECT_ALL",e.ACTIVE_ALL_AND_INACTIVE_ALL="ACTIVE_ALL_AND_INACTIVE_ALL",e.UNSUBSCRIBE_ALL="UNSUBSCRIBE_ALL"}(bK||(bK={})),function(e){e.OPT_IN="OPT_IN",e.OPT_OUT="OPT_OUT"}(gK||(gK={})),function(e){e.HYPERLINK="HYPERLINK",e.TEXT="TEXT_ONLY",e.NUMBER="NUMBER_ONLY"}(wK||(wK={})),function(e){e.DASHED_FORMAT="DASHED_FORMAT",e.INTERNATIONAL_FORMAT="INTERNATIONAL_FORMAT"}(_K||(_K={}));var RK=function(e,t){var n=(Array.isArray(e)?e:[e]).map((function(e){return e.toLowerCase()})),r=[];return t.forEach((function(e){var t;-1!==n.indexOf(e.key.toLowerCase())&&e.selected?r.push(e):(null===(t=e.children)||void 0===t?void 0:t.length)>0&&e.children.forEach((function(e){-1!==n.indexOf(e.key.toLowerCase())&&e.selected&&r.push(e)}))})),{externalKeys:n,selected:r}},IK=function(){var e=l(m.mark((function e(t){return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:fetch("".concat("https://js-api-log.trustarc.com/form-renderer/error"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function AK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MK(e){for(var t=1;t1&&void 0!==Q[1]?Q[1]:function(){},o=Q.length>2?Q[2]:void 0,!LK){e.next=4;break}return e.abrupt("return");case 4:if(i=null===(n=document)||void 0===n?void 0:n.currentScript,console.log("[upm] currentScript",i),u=i.getAttribute("src")||"".concat(window.location.origin,"/browser/client.js"),e.prev=7,t=oK(t),d=eK(t),console.log("[upm] init config",d),h=ZG(d.defaultValues),y={},v=tK(d.settingsValues),b=LG(d,h),g=null,d.containerId){e.next=22;break}(g=document.createElement("div")).id="ta-upm-form-renderer",document.body.insertBefore(g,document.body.firstChild),e.next=26;break;case 22:if(g=document.getElementById(d.containerId)){e.next=26;break}throw console.log("[upm] The container with id ".concat(d.containerId," can't be found.")),new Error("The container with id ".concat(d.containerId," can't be found."));case 26:return e.next=28,XG(b);case 28:if((w=e.sent).content.formFields=w.content.formFields.filter((function(e){return e.type.id!==yK.OptionRule})),d.preview){e.next=41;break}return e.next=33,sK(u);case 33:x=e.sent,k=x.continent,O=x.country,S=x.state,E=fK([k,O,S]),T=w.consentRule,FK=null==T||null===(_=T.find((function(e){return e.jurisdiction===E})))||void 0===_?void 0:_.conditionalValue,d.manual||(C=w.content.formFields.find((function(e){return e.id===uK})),P=C.extras.countriesOption,h[uK]&&(D=RK(h[uK],P),D.selected.length<1&&delete h[uK]),!h[uK]&&C.extras.autoFillGeolocation&&(j=RK(E,C.extras.countriesOption),R=j.externalKeys,j.selected.length>0&&(h[uK]=R)));case 41:if(!d.expiredConsentPreference||w.showConsentForm){e.next=43;break}return e.abrupt("return");case 43:if(!d.confirm||(null===(c=w.doubleOptInTokenValue)||void 0===c?void 0:c.consentStatus)!==rK.PENDING||null===(l=w.doubleOptInTokenValue)||void 0===l||!l.expiryDate){e.next=51;break}if(I=1e3*w.doubleOptInTokenValue.expiryDate,A=new Date,M=new Date(I),!(A>M)){e.next=51;break}return console.error("[upm] link has expired"),dG({resend:function(){return aK(d.confirm)}},g),e.abrupt("return");case 51:(N=!(!d.confirm||!w.doubleOptInTokenValue))&&(h=iK(w.doubleOptInTokenValue.formFieldValues),Object.keys(h).forEach((function(e){v[e]?v[e].readOnly=!0:v[e]={readOnly:!0}}))),d.token&&(h={},y={},w.tokenValue.formFieldIdValues.forEach((function(e){var t=a(Object.entries(e)[0],2),n=t[0],r=t[1],o=a(n.split("_"),2),i=o[0],u=o[1];u&&(y[i]=u),h[i]=r})),h=ZG(h),v=tK(y)),nK(v,w),N||(h=JG(h,w.urlCondition,!!d.token,w.content.formFields)),FK&&w.content.formFields.filter((function(e){return[yK.Checkbox,yK.ToggleSwitch].includes(e.type.id)&&e.extras.applyJurisdictionConsentRule})).forEach((function(e){h[e.id]||(h[e.id]=e.extras.valueConversionConfig===FK)})),(null!==(s=w.tokenValue)&&void 0!==s&&s.autoSubmit&&null===d.autoSubmit||d.autoSubmit)&&(d.token?(L=w.tokenValue,F=L.brandId,U=L.consentFormId,B=L.locale,o(F,U,BG(w.content.formFields,h,!0,w.content.rules),B,d.token,v)):o(d.brandId,d.consentFormId,null!==(V=w.latestPreferences)&&void 0!==V?V:BG(w.content.formFields,h,!0,w.content.rules),null!==(z=d.locale)&&void 0!==z?z:NG(),"",v)),H=function(e){var t={brandId:d.brandId?d.brandId:w.tokenValue.brandId,consentFormId:d.consentFormId?d.consentFormId:w.tokenValue.consentFormId,channel:d.channel,formFieldIdValues:BG(w.content.formFields,e,!1,w.content.rules),websiteSource:document.referrer||window.location.href,locale:NG(),formFieldIdFlags:v};return d.manual&&d.createdDate&&(t=MK(MK({},t),{},{manual:d.manual,createdDate:new Date(d.createdDate).toISOString(),token:d.accessToken})),d.token&&(t=MK(MK({},t),{},{token:d.token})),BK(t)},Y=function(){return VK(d.confirm)},W={formId:d.consentFormId,formVersion:d.consentFormVersion,formConfig:w,preview:!!d.preview,modal:!d.containerId,showLandingPage:d.showLandingPage,submitDataCallback:H,submitDoubleOptInCallback:Y,defaultValues:h,settingsValues:v,isDoubleOptInForm:N,containerId:null===(f=g)||void 0===f?void 0:f.id,consentStatus:null===(p=w.doubleOptInTokenValue)||void 0===p?void 0:p.consentStatus,hideFooterButtons:d.hideFooterButtons,hideSubmitButton:d.hideSubmitButton},q=!(null==d||!d.gpcDetection),$=null==d?void 0:d.gpcConfig,W.submitSuccessCallback=function(){q&&jK.shouldShowGPCBanner(u,null==$?void 0:$.geoLocationCodes)&&(jK.setGPCSubmitted(null==$?void 0:$.cookieExpiryInMonths),jK.destroy())},q?jK.init({currentScriptUrl:u,onRenderForm:function(){return pG(W,g)},onRenderGPCForm:function(){return pG(MK(MK({},W),{},{modal:!0}),g)},gpcConfig:$}):(G=pG(MK({},W),g),K=G.externalSubmitFunction,NK=K),LK=!0,e.next=73;break;case 68:e.prev=68,e.t0=e.catch(7),console.error("[cpm error]",e.t0),IK({info:{source:"CPM",config:t},error:String(e.t0),caller:{hostUrl:window.location.href}}),r(e.t0);case 73:case"end":return e.stop()}}),e,null,[[7,68]])})));return function(t){return e.apply(this,arguments)}}(),BK=function(e){return function(e,t){return new Promise((function(n,r){var o=e,i=new XMLHttpRequest;t.token&&(o="".concat(o,"?token=").concat(t.token)),i.open("POST",o),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.responseType="json",i.onerror=function(){r(new Error("The submit request could not be made."))},i.onload=function(){i.status>=400?r(new Error("The submit request has a ".concat(i.status," error."))):i.status>=200&&n(i.response)},i.send(JSON.stringify(t))}))}("".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/submit").concat(e.manual?"/manual":""),e)},VK=function(e){var t,n="".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/double-opt-in/confirm/").concat(e);return t=n,new Promise((function(e,n){var r=t,o=new XMLHttpRequest;o.open("POST",r),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.responseType="json",o.onerror=function(){n(new Error("The submit request could not be made."))},o.onload=function(){o.status>=400?n(new Error("The submit request has a ".concat(o.status," error."))):o.status>=200&&e(o.response)},o.send()}))},zK={init:UK,externalSubmit:function(){return NK},submit:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};BK(e).then(n,t)},destroy:function(e){Nq(e),LK=!1},renderComponent:function(e){return new mG(e)}},HK=function(e,t){var n=[],r=[],o=e.map((function(e){return e.id}));for(var i in t)n.push(i);return o.forEach((function(e){var t=n.filter((function(t){return t.includes(e)}));n=FG.exports.difference(n,t),t.length>1?t.forEach((function(e){r.push(e)})):r.push(e)})),n.length&&r.push.apply(r,ey(n)),r};function YK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WK(e){for(var t=1;t1&&void 0!==se[1]?se[1]:function(){},!qK){e.next=3;break}return e.abrupt("return");case 3:if(o=null===(n=document)||void 0===n?void 0:n.currentScript,console.log("[irm] currentScript",o),i=o.getAttribute("src")||"".concat(window.location.origin,"/browser/client.js"),e.prev=6,u=null,c=null!==(a=t.preview)&&void 0!==a&&a,t.containerId){e.next=15;break}(u=document.createElement("div")).id="ta-irm-form-renderer",document.body.insertBefore(u,document.body.firstChild),e.next=18;break;case 15:if(u=document.getElementById(t.containerId)){e.next=18;break}throw new Error("[irm] The container with id ".concat(t.containerId," can't be found."));case 18:if(f=t.isSupplemental?t.supplementalFormRequestId:t.formId){e.next=21;break}throw new Error("[irm] No form id provided.");case 21:if(!(p=!(null==t||!t.gpcDetection))){e.next=33;break}h="".concat("https://submit-irm.trustarc.com/services","/validation/").concat(f),console.log("[irm] configFormLink",h),(y=new URL(h)).searchParams.set("gpc","1"),v=y.href,b={formLink:v,container:u,onMessageEvent:function(e){var n,r,o;try{n=JSON.parse(e.data)}catch(e){return}(console.log("[irm] received data",n),n&&n.source&&n.message)&&("trustarc_irm"==n.source&&"complete"==n.message&&p&&jK.shouldShowGPCBanner(i,null===(r=t.gpcConfig)||void 0===r?void 0:r.geoLocationCodes)&&(jK.setGPCSubmitted(null===(o=t.gpcConfig)||void 0===o?void 0:o.cookieExpiryInMonths),jK.destroy()))}},g=null!==(d=t.gpcConfig)&&void 0!==d?d:{},jK.init({currentScriptUrl:i,gpcConfig:WK(WK({},g),{},{iframeConfig:b})}),e.next=79;break;case 33:return console.log("[irm] container",u),O=t.isSupplemental?"".concat("https://submit-irm.trustarc.com/services","/suppvalidation/api/v1/formsupps"):"".concat("https://submit-irm.trustarc.com/services","/validation/api/v1/forms"),S=function(e,t,n){var r=document.getElementById(e);if(!r){var o=document.createElement("script");o.type="text/javascript",o.src=t,o.id=e,o.onload=function(){n&&n()},document.body.appendChild(o)}r&&n&&n()},E="6LdSn6gUAAAAAKZ5SiEQ8PdCUOgV9sf1ei4utXrB",e.next=39,fetch("".concat(O,"/").concat(f,"?locale=").concat(t.locale));case 39:return T=e.sent,e.next=42,T.json();case 42:if(C=e.sent,null!==(w=C.captchaTypes)&&void 0!==w||(C.captchaTypes=[]),null!==(_=C.brandName)&&void 0!==_||(C.brandName=null),P=C.captchaTypes,D=null!==(x=t.authType)&&void 0!==x?x:"CAPTCHA",j=new Set,console.log("[irm][authType]",t.authType),"TRUSTARC"===D&&(console.log("[renderer][listener added]"),window.addEventListener("message",(function(e){var t=e.data;t&&"trustarc_irm_portal"===t.source&&"submit"===t.message&&(N=t.data,M())}),!1)),L=function(e,t,n){var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)},F=function(e,n){var r,o,i,a,u,c,l,p,d,h,m,y,v=document.createElement("form"),b=null===(r=N)||void 0===r||null===(o=r.overrideParams)||void 0===o?void 0:o.dateCreated,g=null===(i=N)||void 0===i||null===(a=i.overrideParams)||void 0===a?void 0:a.dateCompleted,w=XK(e),_=j.has(w);v.setAttribute("method","post"),v.setAttribute("action",t.isSupplemental?"".concat("https://submit-irm.trustarc.com/services","/suppvalidation/submit"):"".concat("https://submit-irm.trustarc.com/services","/validation/submit")),HK(C.content.formFields,e).forEach((function(t){var n,r;e.hasOwnProperty(t)&&("object"===s(e[t])&&(e[t]=JSON.stringify(e[t])),L(v,t,null!==(n=null===(r=e[t])||void 0===r?void 0:r.value)&&void 0!==n?n:e[t]))})),L(v,"locale",null!==(u=t.locale)&&void 0!==u?u:"en"),L(v,"formId",t.formId),L(v,"entityId",f),t.isSupplemental&&L(v,"suppValidationId",t.supplementalFormRequestId),L(v,"authType",D),L(v,"captchaInput",null!==(c=I)&&void 0!==c?c:""),L(v,"captchaAnswer",null!==(l=A)&&void 0!==l?l:""),L(v,"ipAddress",null!==(p=t.ipAddress)&&void 0!==p?p:""),L(v,"gpcEnabled",t.isFormGpc?"true":"false"),L(v,"authResponse","TRUSTARC"===D?null===(d=N)||void 0===d||null===(h=d.auth)||void 0===h?void 0:h.token:n);var x=new URLSearchParams(window.location.search);if(L(v,"sourceWebsite",x.has("sourceWebsite")?""===x.get("sourceWebsite")?null!==(m=t.sourceWebsite)&&void 0!==m?m:window.location.href:x.get("sourceWebsite"):null!==(y=t.sourceWebsite)&&void 0!==y?y:window.location.href),b&&L(v,"dateCreated",b),g&&L(v,"dateCompleted",g),document.body.appendChild(v),console.log("[irm][ccmEnabled]",_),console.log("[irm][isFormGpc]",t.isFormGpc),_||t.isFormGpc){window.parent.postMessage(JSON.stringify({source:"trustarc_irm",message:"submit",data:""}),"*")}v.submit()},U=null,B=null,C.browserCookieNeeded&&!dK()?(V=window.location.href,z="Your browser is blocking essential cookie",H="We see that cookies are blocked. You must enable cookies in your browser and refresh the page to submit the form data.",pK()&&(H="We have detected that essential third-party cookies are blocked. Click here to fill out and submit the form or enable third-party cookies in your browser and refresh the page."),U=vb.ERROR_COOKIE,B={message:H,headerLogo:null,showRespondButton:null,showAsModal:!1,headerMessage:z}):"CAPTCHA"===D&&(P.includes("GOOGLE_RECAPTCHA_V3")&&(t.preview||S("recaptcha-key","https://www.google.com/recaptcha/api.js?render=".concat(E),(function(){console.log("recaptcha script is Loaded.."),setTimeout((function(){document.querySelector(".grecaptcha-badge textarea").setAttribute("aria-label","ta-upm-form-".concat(f,'- ?? ""}'));var e=document.querySelector(".grecaptcha-badge iframe");e.setAttribute("aria-hidden","true"),e.setAttribute("title","grecaptcha iframe"),ZK(),window.addEventListener("resize",(function(){ZK()}))}),2e3)}))),P.includes("TRUSTARC")&&(R={toggleRefresh:!1,fetchCaptchaDto:function(){var e=l(m.mark((function e(){var t;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat("https://submit-irm.trustarc.com/services","/validation/api/v1/captcha"));case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),postAnswer:function(){var e=l(m.mark((function e(t){var n;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat("https://submit-irm.trustarc.com/services","/validation/api/v1/captcha/verify"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onInputCorrect:function(e){I=e.input,A=e.answer}})),Y=function(e){var n=new FormData;return n.append("file",e),fetch("".concat("https://submit-irm.trustarc.com/services","/storage/upload?formId=").concat(t.formId),{method:"POST",body:n})},W=null,!((q=C.content.formFields.findIndex((function(e){return"Country"===e.type.id})))>-1)){e.next=73;break}if($=C.content.formFields[q].extras,!C.content.formFields[q].extras.autoFillGeolocation){e.next=73;break}return console.log("[irm] autoFillGeolocation enabled"),e.next=66,sK(i);case 66:G=e.sent,K=G.continent,Q=G.country,X=G.state,Z=fK([K,Q,X]),J=RK(Z,$.countriesOption),(ee=J.selected).length>0&&"TRUSTARC"!==D&&($.defaultValue=ee[0]);case 73:t.isSupplemental||(oe=C.content.formFields.findIndex((function(e){return"data-subject-select"===e.type.id})),ie=KK(C.content.formFields[oe]),C.content.formFields[oe]=ie,ae=C.content.formFields.findIndex((function(e){return"request-type-select"===e.type.id})),null===(te=C.content.formFields[ae])||void 0===te||null===(ne=te.extras)||void 0===ne||null===(re=ne.optionLabels)||void 0===re||re.filter((function(e){return e.ccmEnabled})).forEach((function(e){return j.add(e.id)})),ue=QK(C.content.formFields[ae]),W=C.content.formFields[ae].extras.optionLabels.filter((function(e){return e.hasToConfirm})).reduce((function(e,t){return e[t.id]=t.confirmMessage.key,e}),{}),C.content.formFields[ae]=ue),C.content.formFields=C.content.formFields.filter((function(e){return e.type.id!==yK.OptionRule})),B&&(C.landingPages||(C.landingPages={}),C.landingPages.ERROR_COOKIE=B),ce=pG({formConfig:C,formId:f,defaultValues:{},settingsValues:{},hideSubmitButton:"TRUSTARC"===D,hideFooterButtons:"TRUSTARC"===D,submitDataCallback:function(e){return new Promise((function(t,n){"TRUSTARC"===D?F(e,"no-token"):"CAPTCHA"===D&&P.includes("GOOGLE_RECAPTCHA_V3")?window.grecaptcha.ready((function(){window.grecaptcha.execute(E,{action:"submit"}).then((function(t){F(e,t)}))})):F(e,"no-token")}))},uploadFileCallback:Y,trustArcCaptchaProps:R,preview:c,showLandingPage:U,fieldErrorMessage:null!==(k=t.fieldErrorMessage)&&void 0!==k?k:{},doubleConfirmation:W,containerId:t.containerId},u),le=ce.submitFormFunction,M=le;case 79:qK=!0,e.next=87;break;case 82:e.prev=82,e.t0=e.catch(6),console.error("[irm error]",e.t0),IK({info:{source:"IRM",config:t},error:String(e.t0),caller:{hostUrl:window.location.href}}),r(e.t0);case 87:case"end":return e.stop()}}),e,null,[[6,82]])})));return function(t){return e.apply(this,arguments)}}(),KK=function(e){var t,n,r,o=null!==(t=e.extras.defaultValue)&&void 0!==t?t:null,i=null!==(n=e.extras.defaultPlaceholderText)&&void 0!==n?n:null,a=null!==(r=e.extras.helpfulInfoText)&&void 0!==r?r:null;return WK(WK({},e),{},{type:{id:yK.Select,name:"Dropdown",icon:""},extras:{defaultValue:o?{options:[{id:o.key,text:o.context.dataSubjectLabelKey,isSelected:!1,warningMessage:null}]}:null,helpfulInfoText:a,optionList:e.extras.optionList.map((function(e){return{id:e.key,text:e.context.dataSubjectLabelKey,isSelected:!1,warningMessage:null}})),defaultPlaceholderText:i,allowMultipleSelect:null}})},QK=function(e){var t,n,r,o=null!==(t=e.extras.defaultValue)&&void 0!==t?t:null,i=null!==(n=e.extras.defaultPlaceholderText)&&void 0!==n?n:null,a=null!==(r=e.extras.helpfulInfoText)&&void 0!==r?r:null;return WK(WK({},e),{},{type:{id:yK.Select,name:"Dropdown",icon:""},extras:{defaultValue:o?{options:[{id:o.id,text:o.label.key,isSelected:!1,warningMessage:null}]}:null,helpfulInfoText:a,optionList:e.extras.optionLabels.map((function(e){return{id:e.id,text:e.label.key,isSelected:!1,warningMessage:null}})),defaultPlaceholderText:i,allowMultipleSelect:null}})};function XK(e){var t,n;return Array.isArray(e[$K])?null===(n=e[$K])||void 0===n?void 0:n[0].value:null===(t=e[$K])||void 0===t?void 0:t.value}function ZK(){var e=document.getElementsByClassName("grecaptcha-badge");if(e&&0!==e.length){var t=e[0];window.innerWidth<=785?t.classList.add("captchaBox-mobile"):t.classList.remove("captchaBox-mobile")}else console.log("[irm form] cannot find element with class: grecaptcha-badge")}for(var JK={init:GK,destroy:function(e){Nq(e),qK=!1},convertRequestTypeDropdownToSelect:QK,convertDSDropdownToSelect:KK},eQ=window.trustarc||{},tQ=Array.isArray(eQ.upm)?eQ.upm.slice(0):[],nQ=0;nQ { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ 3737: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(55050); -var callBind = __webpack_require__(68375); -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; - -/***/ }), - -/***/ 68375: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var bind = __webpack_require__(36046); -var GetIntrinsic = __webpack_require__(55050); -var setFunctionLength = __webpack_require__(23954); -var $TypeError = GetIntrinsic('%TypeError%'); -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var $max = GetIntrinsic('%Math.max%'); -if ($defineProperty) { - try { - $defineProperty({}, 'a', { - value: 1 - }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} -module.exports = function callBind(originalFunction) { - if (typeof originalFunction !== 'function') { - throw new $TypeError('a function is required'); - } - var func = $reflectApply(bind, $call, arguments); - return setFunctionLength(func, 1 + $max(0, originalFunction.length - (arguments.length - 1)), true); -}; -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); -}; -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { - value: applyBind - }); -} else { - module.exports.apply = applyBind; -} - -/***/ }), - -/***/ 91037: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var hasPropertyDescriptors = __webpack_require__(96757)(); -var GetIntrinsic = __webpack_require__(55050); -var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true); -if ($defineProperty) { - try { - $defineProperty({}, 'a', { - value: 1 - }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = false; - } -} -var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var $TypeError = GetIntrinsic('%TypeError%'); -var gopd = __webpack_require__(12319); - -/** @type {(obj: Record, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */ -module.exports = function defineDataProperty(obj, property, value) { - if (!obj || typeof obj !== 'object' && typeof obj !== 'function') { - throw new $TypeError('`obj` must be an object or a function`'); - } - if (typeof property !== 'string' && typeof property !== 'symbol') { - throw new $TypeError('`property` must be a string or a symbol`'); - } - if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) { - throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null'); - } - if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) { - throw new $TypeError('`nonWritable`, if provided, must be a boolean or null'); - } - if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) { - throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null'); - } - if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { - throw new $TypeError('`loose`, if provided, must be a boolean'); - } - var nonEnumerable = arguments.length > 3 ? arguments[3] : null; - var nonWritable = arguments.length > 4 ? arguments[4] : null; - var nonConfigurable = arguments.length > 5 ? arguments[5] : null; - var loose = arguments.length > 6 ? arguments[6] : false; - - /* @type {false | TypedPropertyDescriptor} */ - var desc = !!gopd && gopd(obj, property); - if ($defineProperty) { - $defineProperty(obj, property, { - configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable, - enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable, - value: value, - writable: nonWritable === null && desc ? desc.writable : !nonWritable - }); - } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) { - // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable - obj[property] = value; // eslint-disable-line no-param-reassign - } else { - throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.'); - } -}; - -/***/ }), - -/***/ 51820: -/***/ ((module) => { - -"use strict"; - - -/* eslint no-invalid-this: 1 */ -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var toStr = Object.prototype.toString; -var max = Math.max; -var funcType = '[object Function]'; -var concatty = function concatty(a, b) { - var arr = []; - for (var i = 0; i < a.length; i += 1) { - arr[i] = a[i]; - } - for (var j = 0; j < b.length; j += 1) { - arr[j + a.length] = b[j]; - } - return arr; -}; -var slicy = function slicy(arrLike, offset) { - var arr = []; - for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { - arr[j] = arrLike[i]; - } - return arr; -}; -var joiny = function (arr, joiner) { - var str = ''; - for (var i = 0; i < arr.length; i += 1) { - str += arr[i]; - if (i + 1 < arr.length) { - str += joiner; - } - } - return str; -}; -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.apply(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slicy(arguments, 1); - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply(this, concatty(args, arguments)); - if (Object(result) === result) { - return result; - } - return this; - } - return target.apply(that, concatty(args, arguments)); - }; - var boundLength = max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs[i] = '$' + i; - } - bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - return bound; -}; - -/***/ }), - -/***/ 36046: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var implementation = __webpack_require__(51820); -module.exports = Function.prototype.bind || implementation; - -/***/ }), - -/***/ 55050: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var undefined; -var $SyntaxError = SyntaxError; -var $Function = Function; -var $TypeError = TypeError; - -// eslint-disable-next-line consistent-return -var getEvalledConstructor = function (expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); - } catch (e) {} -}; -var $gOPD = Object.getOwnPropertyDescriptor; -if ($gOPD) { - try { - $gOPD({}, ''); - } catch (e) { - $gOPD = null; // this is IE 8, which has a broken gOPD - } -} -var throwTypeError = function () { - throw new $TypeError(); -}; -var ThrowTypeError = $gOPD ? function () { - try { - // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties - arguments.callee; // IE 8 does not throw here - return throwTypeError; - } catch (calleeThrows) { - try { - // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') - return $gOPD(arguments, 'callee').get; - } catch (gOPDthrows) { - return throwTypeError; - } - } -}() : throwTypeError; -var hasSymbols = __webpack_require__(8269)(); -var hasProto = __webpack_require__(1886)(); -var getProto = Object.getPrototypeOf || (hasProto ? function (x) { - return x.__proto__; -} // eslint-disable-line no-proto -: null); -var needsEval = {}; -var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); -var INTRINSICS = { - '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, - '%AsyncFromSyncIteratorPrototype%': undefined, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, - '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, - '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%eval%': eval, - // eslint-disable-line no-eval - '%EvalError%': EvalError, - '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, - '%JSON%': typeof JSON === 'object' ? JSON : undefined, - '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '%RangeError%': RangeError, - '%ReferenceError%': ReferenceError, - '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, - '%Symbol%': hasSymbols ? Symbol : undefined, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '%URIError%': URIError, - '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, - '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet -}; -if (getProto) { - try { - null.error; // eslint-disable-line no-unused-expressions - } catch (e) { - // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 - var errorProto = getProto(getProto(e)); - INTRINSICS['%Error.prototype%'] = errorProto; - } -} -var doEval = function doEval(name) { - var value; - if (name === '%AsyncFunction%') { - value = getEvalledConstructor('async function () {}'); - } else if (name === '%GeneratorFunction%') { - value = getEvalledConstructor('function* () {}'); - } else if (name === '%AsyncGeneratorFunction%') { - value = getEvalledConstructor('async function* () {}'); - } else if (name === '%AsyncGenerator%') { - var fn = doEval('%AsyncGeneratorFunction%'); - if (fn) { - value = fn.prototype; - } - } else if (name === '%AsyncIteratorPrototype%') { - var gen = doEval('%AsyncGenerator%'); - if (gen && getProto) { - value = getProto(gen.prototype); - } - } - INTRINSICS[name] = value; - return value; -}; -var LEGACY_ALIASES = { - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'] -}; -var bind = __webpack_require__(36046); -var hasOwn = __webpack_require__(1261); -var $concat = bind.call(Function.call, Array.prototype.concat); -var $spliceApply = bind.call(Function.apply, Array.prototype.splice); -var $replace = bind.call(Function.call, String.prototype.replace); -var $strSlice = bind.call(Function.call, String.prototype.slice); -var $exec = bind.call(Function.call, RegExp.prototype.exec); - -/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ -var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; -var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ -var stringToPath = function stringToPath(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === '%' && last !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); - } else if (last === '%' && first !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); - } - var result = []; - $replace(string, rePropName, function (match, number, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; - }); - return result; -}; -/* end adaptation */ - -var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = '%' + alias[0] + '%'; - } - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === 'undefined' && !allowMissing) { - throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } - return { - alias: alias, - name: intrinsicName, - value: value - }; - } - throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); -}; -module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== 'string' || name.length === 0) { - throw new $TypeError('intrinsic name must be a non-empty string'); - } - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } - if ($exec(/^%?[^%]*%?$/, name) === null) { - throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); - } - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; - var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ((first === '"' || first === "'" || first === '`' || last === '"' || last === "'" || last === '`') && first !== last) { - throw new $SyntaxError('property names with quotes must have matching quotes'); - } - if (part === 'constructor' || !isOwn) { - skipFurtherCaching = true; - } - intrinsicBaseName += '.' + part; - intrinsicRealName = '%' + intrinsicBaseName + '%'; - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); - } - return void undefined; - } - if ($gOPD && i + 1 >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; - - // By convention, when a data property is converted to an accessor - // property to emulate a data property that does not suffer from - // the override mistake, that accessor's getter is marked with - // an `originalValue` property. Here, when we detect this, we - // uphold the illusion by pretending to see that original data - // property, i.e., returning the value rather than the getter - // itself. - if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; -}; - -/***/ }), - -/***/ 12319: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(55050); -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); -if ($gOPD) { - try { - $gOPD([], 'length'); - } catch (e) { - // IE 8 has a broken gOPD - $gOPD = null; - } -} -module.exports = $gOPD; - -/***/ }), - -/***/ 96757: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(55050); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var hasPropertyDescriptors = function hasPropertyDescriptors() { - if ($defineProperty) { - try { - $defineProperty({}, 'a', { - value: 1 - }); - return true; - } catch (e) { - // IE 8 has a broken defineProperty - return false; - } - } - return false; -}; -hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { - // node v0.6 has a bug where array lengths can be Set but not Defined - if (!hasPropertyDescriptors()) { - return null; - } - try { - return $defineProperty([], 'length', { - value: 1 - }).length !== 1; - } catch (e) { - // In Firefox 4-22, defining length on an array throws an exception. - return true; - } -}; -module.exports = hasPropertyDescriptors; - -/***/ }), - -/***/ 1886: -/***/ ((module) => { - -"use strict"; - - -var test = { - foo: {} -}; -var $Object = Object; -module.exports = function hasProto() { - return { - __proto__: test - }.foo === test.foo && !({ - __proto__: null - } instanceof $Object); -}; - -/***/ }), - -/***/ 8269: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var origSymbol = typeof Symbol !== 'undefined' && Symbol; -var hasSymbolSham = __webpack_require__(88928); -module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== 'function') { - return false; - } - if (typeof Symbol !== 'function') { - return false; - } - if (typeof origSymbol('foo') !== 'symbol') { - return false; - } - if (typeof Symbol('bar') !== 'symbol') { - return false; - } - return hasSymbolSham(); -}; - -/***/ }), - -/***/ 88928: -/***/ ((module) => { - -"use strict"; - - -/* eslint complexity: [2, 18], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { - return false; - } - if (typeof Symbol.iterator === 'symbol') { - return true; - } - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { - return false; - } - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { - return false; - } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { - return false; - } - - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } - - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } - - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { - return false; - } // eslint-disable-line no-restricted-syntax, no-unreachable-loop - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { - return false; - } - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { - return false; - } - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { - return false; - } - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { - return false; - } - if (typeof Object.getOwnPropertyDescriptor === 'function') { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { - return false; - } - } - return true; -}; - -/***/ }), - -/***/ 1261: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var call = Function.prototype.call; -var $hasOwn = Object.prototype.hasOwnProperty; -var bind = __webpack_require__(36046); - -/** @type {(o: {}, p: PropertyKey) => p is keyof o} */ -module.exports = bind.call(call, $hasOwn); - -/***/ }), - -/***/ 87676: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var hasMap = typeof Map === 'function' && Map.prototype; -var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; -var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; -var mapForEach = hasMap && Map.prototype.forEach; -var hasSet = typeof Set === 'function' && Set.prototype; -var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; -var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; -var setForEach = hasSet && Set.prototype.forEach; -var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; -var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; -var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; -var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; -var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; -var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; -var booleanValueOf = Boolean.prototype.valueOf; -var objectToString = Object.prototype.toString; -var functionToString = Function.prototype.toString; -var $match = String.prototype.match; -var $slice = String.prototype.slice; -var $replace = String.prototype.replace; -var $toUpperCase = String.prototype.toUpperCase; -var $toLowerCase = String.prototype.toLowerCase; -var $test = RegExp.prototype.test; -var $concat = Array.prototype.concat; -var $join = Array.prototype.join; -var $arrSlice = Array.prototype.slice; -var $floor = Math.floor; -var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var gOPS = Object.getOwnPropertySymbols; -var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; -var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; -// ie, `has-tostringtag/shams -var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') ? Symbol.toStringTag : null; -var isEnumerable = Object.prototype.propertyIsEnumerable; -var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype // eslint-disable-line no-proto -? function (O) { - return O.__proto__; // eslint-disable-line no-proto -} : null); -function addNumericSeparator(num, str) { - if (num === Infinity || num === -Infinity || num !== num || num && num > -1000 && num < 1000 || $test.call(/e/, str)) { - return str; - } - var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; - if (typeof num === 'number') { - var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) - if (int !== num) { - var intStr = String(int); - var dec = $slice.call(str, intStr.length + 1); - return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); - } - } - return $replace.call(str, sepRegex, '$&_'); -} -var utilInspect = __webpack_require__(53260); -var inspectCustom = utilInspect.custom; -var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; -module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; - if (has(opts, 'quoteStyle') && opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double') { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - if (has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) { - throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); - } - var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; - if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { - throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); - } - if (has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) { - throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); - } - if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { - throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); - } - var numericSeparator = opts.numericSeparator; - if (typeof obj === 'undefined') { - return 'undefined'; - } - if (obj === null) { - return 'null'; - } - if (typeof obj === 'boolean') { - return obj ? 'true' : 'false'; - } - if (typeof obj === 'string') { - return inspectString(obj, opts); - } - if (typeof obj === 'number') { - if (obj === 0) { - return Infinity / obj > 0 ? '0' : '-0'; - } - var str = String(obj); - return numericSeparator ? addNumericSeparator(obj, str) : str; - } - if (typeof obj === 'bigint') { - var bigIntStr = String(obj) + 'n'; - return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; - } - var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; - if (typeof depth === 'undefined') { - depth = 0; - } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return isArray(obj) ? '[Array]' : '[Object]'; - } - var indent = getIndent(opts, depth); - if (typeof seen === 'undefined') { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return '[Circular]'; - } - function inspect(value, from, noIndent) { - if (from) { - seen = $arrSlice.call(seen); - seen.push(from); - } - if (noIndent) { - var newOpts = { - depth: opts.depth - }; - if (has(opts, 'quoteStyle')) { - newOpts.quoteStyle = opts.quoteStyle; - } - return inspect_(value, newOpts, depth + 1, seen); - } - return inspect_(value, opts, depth + 1, seen); - } - if (typeof obj === 'function' && !isRegExp(obj)) { - // in older engines, regexes are callable - var name = nameOf(obj); - var keys = arrObjKeys(obj, inspect); - return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); - } - if (isSymbol(obj)) { - var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); - return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = '<' + $toLowerCase.call(String(obj.nodeName)); - var attrs = obj.attributes || []; - for (var i = 0; i < attrs.length; i++) { - s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); - } - s += '>'; - if (obj.childNodes && obj.childNodes.length) { - s += '...'; - } - s += ''; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { - return '[]'; - } - var xs = arrObjKeys(obj, inspect); - if (indent && !singleLineValues(xs)) { - return '[' + indentedJoin(xs, indent) + ']'; - } - return '[ ' + $join.call(xs, ', ') + ' ]'; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { - return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; - } - if (parts.length === 0) { - return '[' + String(obj) + ']'; - } - return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; - } - if (typeof obj === 'object' && customInspect) { - if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { - return utilInspect(obj, { - depth: maxDepth - depth - }); - } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - if (mapForEach) { - mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); - }); - } - return collectionOf('Map', mapSize.call(obj), mapParts, indent); - } - if (isSet(obj)) { - var setParts = []; - if (setForEach) { - setForEach.call(obj, function (value) { - setParts.push(inspect(value, obj)); - }); - } - return collectionOf('Set', setSize.call(obj), setParts, indent); - } - if (isWeakMap(obj)) { - return weakCollectionOf('WeakMap'); - } - if (isWeakSet(obj)) { - return weakCollectionOf('WeakSet'); - } - if (isWeakRef(obj)) { - return weakCollectionOf('WeakRef'); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other - /* eslint-env browser */ - if (typeof window !== 'undefined' && obj === window) { - return '{ [object Window] }'; - } - if (obj === __webpack_require__.g) { - return '{ [object globalThis] }'; - } - if (!isDate(obj) && !isRegExp(obj)) { - var ys = arrObjKeys(obj, inspect); - var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; - var protoTag = obj instanceof Object ? '' : 'null prototype'; - var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; - var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; - var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); - if (ys.length === 0) { - return tag + '{}'; - } - if (indent) { - return tag + '{' + indentedJoin(ys, indent) + '}'; - } - return tag + '{ ' + $join.call(ys, ', ') + ' }'; - } - return String(obj); -}; -function wrapQuotes(s, defaultStyle, opts) { - var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; - return quoteChar + s + quoteChar; -} -function quote(s) { - return $replace.call(String(s), /"/g, '"'); -} -function isArray(obj) { - return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); -} -function isDate(obj) { - return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); -} -function isRegExp(obj) { - return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); -} -function isError(obj) { - return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); -} -function isString(obj) { - return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); -} -function isNumber(obj) { - return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); -} -function isBoolean(obj) { - return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); -} - -// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives -function isSymbol(obj) { - if (hasShammedSymbols) { - return obj && typeof obj === 'object' && obj instanceof Symbol; - } - if (typeof obj === 'symbol') { - return true; - } - if (!obj || typeof obj !== 'object' || !symToString) { - return false; - } - try { - symToString.call(obj); - return true; - } catch (e) {} - return false; -} -function isBigInt(obj) { - if (!obj || typeof obj !== 'object' || !bigIntValueOf) { - return false; - } - try { - bigIntValueOf.call(obj); - return true; - } catch (e) {} - return false; -} -var hasOwn = Object.prototype.hasOwnProperty || function (key) { - return key in this; -}; -function has(obj, key) { - return hasOwn.call(obj, key); -} -function toStr(obj) { - return objectToString.call(obj); -} -function nameOf(f) { - if (f.name) { - return f.name; - } - var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); - if (m) { - return m[1]; - } - return null; -} -function indexOf(xs, x) { - if (xs.indexOf) { - return xs.indexOf(x); - } - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) { - return i; - } - } - return -1; -} -function isMap(x) { - if (!mapSize || !x || typeof x !== 'object') { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} -function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== 'object') { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} -function isWeakRef(x) { - if (!weakRefDeref || !x || typeof x !== 'object') { - return false; - } - try { - weakRefDeref.call(x); - return true; - } catch (e) {} - return false; -} -function isSet(x) { - if (!setSize || !x || typeof x !== 'object') { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} -function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== 'object') { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} -function isElement(x) { - if (!x || typeof x !== 'object') { - return false; - } - if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { - return true; - } - return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; -} -function inspectString(str, opts) { - if (str.length > opts.maxStringLength) { - var remaining = str.length - opts.maxStringLength; - var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); - return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; - } - // eslint-disable-next-line no-control-regex - var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, 'single', opts); -} -function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: 'b', - 9: 't', - 10: 'n', - 12: 'f', - 13: 'r' - }[n]; - if (x) { - return '\\' + x; - } - return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); -} -function markBoxed(str) { - return 'Object(' + str + ')'; -} -function weakCollectionOf(type) { - return type + ' { ? }'; -} -function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); - return type + ' (' + size + ') {' + joinedEntries + '}'; -} -function singleLineValues(xs) { - for (var i = 0; i < xs.length; i++) { - if (indexOf(xs[i], '\n') >= 0) { - return false; - } - } - return true; -} -function getIndent(opts, depth) { - var baseIndent; - if (opts.indent === '\t') { - baseIndent = '\t'; - } else if (typeof opts.indent === 'number' && opts.indent > 0) { - baseIndent = $join.call(Array(opts.indent + 1), ' '); - } else { - return null; - } - return { - base: baseIndent, - prev: $join.call(Array(depth + 1), baseIndent) - }; -} -function indentedJoin(xs, indent) { - if (xs.length === 0) { - return ''; - } - var lineJoiner = '\n' + indent.prev + indent.base; - return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; -} -function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0; i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; - } - } - var syms = typeof gOPS === 'function' ? gOPS(obj) : []; - var symMap; - if (hasShammedSymbols) { - symMap = {}; - for (var k = 0; k < syms.length; k++) { - symMap['$' + syms[k]] = syms[k]; - } - } - for (var key in obj) { - // eslint-disable-line no-restricted-syntax - if (!has(obj, key)) { - continue; - } // eslint-disable-line no-restricted-syntax, no-continue - if (isArr && String(Number(key)) === key && key < obj.length) { - continue; - } // eslint-disable-line no-restricted-syntax, no-continue - if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { - // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section - continue; // eslint-disable-line no-restricted-syntax, no-continue - } else if ($test.call(/[^\w$]/, key)) { - xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); - } else { - xs.push(key + ': ' + inspect(obj[key], obj)); - } - } - if (typeof gOPS === 'function') { - for (var j = 0; j < syms.length; j++) { - if (isEnumerable.call(obj, syms[j])) { - xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); - } - } - } - return xs; -} - -/***/ }), - -/***/ 14375: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -/* provided dependency */ var process = __webpack_require__(71624); -// 'path' module extracted from Node.js v8.11.1 (only the posix part) -// transplited with Babel - -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - - - -function assertPath(path) { - if (typeof path !== 'string') { - throw new TypeError('Path must be a string. Received ' + JSON.stringify(path)); - } -} - -// Resolves . and .. elements in a path with directory names -function normalizeStringPosix(path, allowAboveRoot) { - var res = ''; - var lastSegmentLength = 0; - var lastSlash = -1; - var dots = 0; - var code; - for (var i = 0; i <= path.length; ++i) { - if (i < path.length) code = path.charCodeAt(i);else if (code === 47 /*/*/) break;else code = 47 /*/*/; - if (code === 47 /*/*/) { - if (lastSlash === i - 1 || dots === 1) { - // NOOP - } else if (lastSlash !== i - 1 && dots === 2) { - if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) { - if (res.length > 2) { - var lastSlashIndex = res.lastIndexOf('/'); - if (lastSlashIndex !== res.length - 1) { - if (lastSlashIndex === -1) { - res = ''; - lastSegmentLength = 0; - } else { - res = res.slice(0, lastSlashIndex); - lastSegmentLength = res.length - 1 - res.lastIndexOf('/'); - } - lastSlash = i; - dots = 0; - continue; - } - } else if (res.length === 2 || res.length === 1) { - res = ''; - lastSegmentLength = 0; - lastSlash = i; - dots = 0; - continue; - } - } - if (allowAboveRoot) { - if (res.length > 0) res += '/..';else res = '..'; - lastSegmentLength = 2; - } - } else { - if (res.length > 0) res += '/' + path.slice(lastSlash + 1, i);else res = path.slice(lastSlash + 1, i); - lastSegmentLength = i - lastSlash - 1; - } - lastSlash = i; - dots = 0; - } else if (code === 46 /*.*/ && dots !== -1) { - ++dots; - } else { - dots = -1; - } - } - return res; -} -function _format(sep, pathObject) { - var dir = pathObject.dir || pathObject.root; - var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || ''); - if (!dir) { - return base; - } - if (dir === pathObject.root) { - return dir + base; - } - return dir + sep + base; -} -var posix = { - // path.resolve([from ...], to) - resolve: function resolve() { - var resolvedPath = ''; - var resolvedAbsolute = false; - var cwd; - for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { - var path; - if (i >= 0) path = arguments[i];else { - if (cwd === undefined) cwd = process.cwd(); - path = cwd; - } - assertPath(path); - - // Skip empty entries - if (path.length === 0) { - continue; - } - resolvedPath = path + '/' + resolvedPath; - resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/; - } - - // At this point the path should be resolved to a full absolute path, but - // handle relative paths to be safe (might happen when process.cwd() fails) - - // Normalize the path - resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute); - if (resolvedAbsolute) { - if (resolvedPath.length > 0) return '/' + resolvedPath;else return '/'; - } else if (resolvedPath.length > 0) { - return resolvedPath; - } else { - return '.'; - } - }, - normalize: function normalize(path) { - assertPath(path); - if (path.length === 0) return '.'; - var isAbsolute = path.charCodeAt(0) === 47 /*/*/; - var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/; - - // Normalize the path - path = normalizeStringPosix(path, !isAbsolute); - if (path.length === 0 && !isAbsolute) path = '.'; - if (path.length > 0 && trailingSeparator) path += '/'; - if (isAbsolute) return '/' + path; - return path; - }, - isAbsolute: function isAbsolute(path) { - assertPath(path); - return path.length > 0 && path.charCodeAt(0) === 47 /*/*/; - }, - join: function join() { - if (arguments.length === 0) return '.'; - var joined; - for (var i = 0; i < arguments.length; ++i) { - var arg = arguments[i]; - assertPath(arg); - if (arg.length > 0) { - if (joined === undefined) joined = arg;else joined += '/' + arg; - } - } - if (joined === undefined) return '.'; - return posix.normalize(joined); - }, - relative: function relative(from, to) { - assertPath(from); - assertPath(to); - if (from === to) return ''; - from = posix.resolve(from); - to = posix.resolve(to); - if (from === to) return ''; - - // Trim any leading backslashes - var fromStart = 1; - for (; fromStart < from.length; ++fromStart) { - if (from.charCodeAt(fromStart) !== 47 /*/*/) break; - } - var fromEnd = from.length; - var fromLen = fromEnd - fromStart; - - // Trim any leading backslashes - var toStart = 1; - for (; toStart < to.length; ++toStart) { - if (to.charCodeAt(toStart) !== 47 /*/*/) break; - } - var toEnd = to.length; - var toLen = toEnd - toStart; - - // Compare paths to find the longest common path from root - var length = fromLen < toLen ? fromLen : toLen; - var lastCommonSep = -1; - var i = 0; - for (; i <= length; ++i) { - if (i === length) { - if (toLen > length) { - if (to.charCodeAt(toStart + i) === 47 /*/*/) { - // We get here if `from` is the exact base path for `to`. - // For example: from='/foo/bar'; to='/foo/bar/baz' - return to.slice(toStart + i + 1); - } else if (i === 0) { - // We get here if `from` is the root - // For example: from='/'; to='/foo' - return to.slice(toStart + i); - } - } else if (fromLen > length) { - if (from.charCodeAt(fromStart + i) === 47 /*/*/) { - // We get here if `to` is the exact base path for `from`. - // For example: from='/foo/bar/baz'; to='/foo/bar' - lastCommonSep = i; - } else if (i === 0) { - // We get here if `to` is the root. - // For example: from='/foo'; to='/' - lastCommonSep = 0; - } - } - break; - } - var fromCode = from.charCodeAt(fromStart + i); - var toCode = to.charCodeAt(toStart + i); - if (fromCode !== toCode) break;else if (fromCode === 47 /*/*/) lastCommonSep = i; - } - var out = ''; - // Generate the relative path based on the path difference between `to` - // and `from` - for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { - if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) { - if (out.length === 0) out += '..';else out += '/..'; - } - } - - // Lastly, append the rest of the destination (`to`) path that comes after - // the common path parts - if (out.length > 0) return out + to.slice(toStart + lastCommonSep);else { - toStart += lastCommonSep; - if (to.charCodeAt(toStart) === 47 /*/*/) ++toStart; - return to.slice(toStart); - } - }, - _makeLong: function _makeLong(path) { - return path; - }, - dirname: function dirname(path) { - assertPath(path); - if (path.length === 0) return '.'; - var code = path.charCodeAt(0); - var hasRoot = code === 47 /*/*/; - var end = -1; - var matchedSlash = true; - for (var i = path.length - 1; i >= 1; --i) { - code = path.charCodeAt(i); - if (code === 47 /*/*/) { - if (!matchedSlash) { - end = i; - break; - } - } else { - // We saw the first non-path separator - matchedSlash = false; - } - } - if (end === -1) return hasRoot ? '/' : '.'; - if (hasRoot && end === 1) return '//'; - return path.slice(0, end); - }, - basename: function basename(path, ext) { - if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string'); - assertPath(path); - var start = 0; - var end = -1; - var matchedSlash = true; - var i; - if (ext !== undefined && ext.length > 0 && ext.length <= path.length) { - if (ext.length === path.length && ext === path) return ''; - var extIdx = ext.length - 1; - var firstNonSlashEnd = -1; - for (i = path.length - 1; i >= 0; --i) { - var code = path.charCodeAt(i); - if (code === 47 /*/*/) { - // If we reached a path separator that was not part of a set of path - // separators at the end of the string, stop now - if (!matchedSlash) { - start = i + 1; - break; - } - } else { - if (firstNonSlashEnd === -1) { - // We saw the first non-path separator, remember this index in case - // we need it if the extension ends up not matching - matchedSlash = false; - firstNonSlashEnd = i + 1; - } - if (extIdx >= 0) { - // Try to match the explicit extension - if (code === ext.charCodeAt(extIdx)) { - if (--extIdx === -1) { - // We matched the extension, so mark this as the end of our path - // component - end = i; - } - } else { - // Extension does not match, so our result is the entire path - // component - extIdx = -1; - end = firstNonSlashEnd; - } - } - } - } - if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length; - return path.slice(start, end); - } else { - for (i = path.length - 1; i >= 0; --i) { - if (path.charCodeAt(i) === 47 /*/*/) { - // If we reached a path separator that was not part of a set of path - // separators at the end of the string, stop now - if (!matchedSlash) { - start = i + 1; - break; - } - } else if (end === -1) { - // We saw the first non-path separator, mark this as the end of our - // path component - matchedSlash = false; - end = i + 1; - } - } - if (end === -1) return ''; - return path.slice(start, end); - } - }, - extname: function extname(path) { - assertPath(path); - var startDot = -1; - var startPart = 0; - var end = -1; - var matchedSlash = true; - // Track the state of characters (if any) we see before our first dot and - // after any path separator we find - var preDotState = 0; - for (var i = path.length - 1; i >= 0; --i) { - var code = path.charCodeAt(i); - if (code === 47 /*/*/) { - // If we reached a path separator that was not part of a set of path - // separators at the end of the string, stop now - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - // We saw the first non-path separator, mark this as the end of our - // extension - matchedSlash = false; - end = i + 1; - } - if (code === 46 /*.*/) { - // If this is our first dot, mark it as the start of our extension - if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1; - } else if (startDot !== -1) { - // We saw a non-dot and non-path separator before our dot, so we should - // have a good chance at having a non-empty extension - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || - // We saw a non-dot character immediately before the dot - preDotState === 0 || - // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - return ''; - } - return path.slice(startDot, end); - }, - format: function format(pathObject) { - if (pathObject === null || typeof pathObject !== 'object') { - throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject); - } - return _format('/', pathObject); - }, - parse: function parse(path) { - assertPath(path); - var ret = { - root: '', - dir: '', - base: '', - ext: '', - name: '' - }; - if (path.length === 0) return ret; - var code = path.charCodeAt(0); - var isAbsolute = code === 47 /*/*/; - var start; - if (isAbsolute) { - ret.root = '/'; - start = 1; - } else { - start = 0; - } - var startDot = -1; - var startPart = 0; - var end = -1; - var matchedSlash = true; - var i = path.length - 1; - - // Track the state of characters (if any) we see before our first dot and - // after any path separator we find - var preDotState = 0; - - // Get non-dir info - for (; i >= start; --i) { - code = path.charCodeAt(i); - if (code === 47 /*/*/) { - // If we reached a path separator that was not part of a set of path - // separators at the end of the string, stop now - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - // We saw the first non-path separator, mark this as the end of our - // extension - matchedSlash = false; - end = i + 1; - } - if (code === 46 /*.*/) { - // If this is our first dot, mark it as the start of our extension - if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1; - } else if (startDot !== -1) { - // We saw a non-dot and non-path separator before our dot, so we should - // have a good chance at having a non-empty extension - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || - // We saw a non-dot character immediately before the dot - preDotState === 0 || - // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - if (end !== -1) { - if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end); - } - } else { - if (startPart === 0 && isAbsolute) { - ret.name = path.slice(1, startDot); - ret.base = path.slice(1, end); - } else { - ret.name = path.slice(startPart, startDot); - ret.base = path.slice(startPart, end); - } - ret.ext = path.slice(startDot, end); - } - if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/'; - return ret; - }, - sep: '/', - delimiter: ':', - win32: null, - posix: null -}; -posix.posix = posix; -module.exports = posix; - -/***/ }), - -/***/ 71624: -/***/ ((module) => { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout() { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -})(); -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch (e) { - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch (e) { - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e) { - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e) { - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - var len = queue.length; - while (len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; -function noop() {} -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; -process.listeners = function (name) { - return []; -}; -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; -process.cwd = function () { - return '/'; -}; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function () { - return 0; -}; - -/***/ }), - -/***/ 43277: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ decode: () => (/* binding */ decode), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ encode: () => (/* binding */ encode), -/* harmony export */ toASCII: () => (/* binding */ toASCII), -/* harmony export */ toUnicode: () => (/* binding */ toUnicode), -/* harmony export */ ucs2decode: () => (/* binding */ ucs2decode), -/* harmony export */ ucs2encode: () => (/* binding */ ucs2encode) -/* harmony export */ }); - - -/** Highest positive signed 32-bit float value */ -const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 - -/** Bootstring parameters */ -const base = 36; -const tMin = 1; -const tMax = 26; -const skew = 38; -const damp = 700; -const initialBias = 72; -const initialN = 128; // 0x80 -const delimiter = '-'; // '\x2D' - -/** Regular expressions */ -const regexPunycode = /^xn--/; -const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too. -const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators - -/** Error messages */ -const errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' -}; - -/** Convenience shortcuts */ -const baseMinusTMin = base - tMin; -const floor = Math.floor; -const stringFromCharCode = String.fromCharCode; - -/*--------------------------------------------------------------------------*/ - -/** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ -function error(type) { - throw new RangeError(errors[type]); -} - -/** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ -function map(array, callback) { - const result = []; - let length = array.length; - while (length--) { - result[length] = callback(array[length]); - } - return result; -} - -/** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {String} A new string of characters returned by the callback - * function. - */ -function mapDomain(domain, callback) { - const parts = domain.split('@'); - let result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - domain = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - domain = domain.replace(regexSeparators, '\x2E'); - const labels = domain.split('.'); - const encoded = map(labels, callback).join('.'); - return result + encoded; -} - -/** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ -function ucs2decode(string) { - const output = []; - let counter = 0; - const length = string.length; - while (counter < length) { - const value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // It's a high surrogate, and there is a next character. - const extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { - // Low surrogate. - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // It's an unmatched surrogate; only append this code unit, in case the - // next code unit is the high surrogate of a surrogate pair. - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; -} - -/** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ -const ucs2encode = codePoints => String.fromCodePoint(...codePoints); - -/** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ -const basicToDigit = function (codePoint) { - if (codePoint >= 0x30 && codePoint < 0x3A) { - return 26 + (codePoint - 0x30); - } - if (codePoint >= 0x41 && codePoint < 0x5B) { - return codePoint - 0x41; - } - if (codePoint >= 0x61 && codePoint < 0x7B) { - return codePoint - 0x61; - } - return base; -}; - -/** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ -const digitToBasic = function (digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); -}; - -/** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ -const adapt = function (delta, numPoints, firstTime) { - let k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for /* no initialization */ - (; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); -}; - -/** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ -const decode = function (input) { - // Don't use UCS-2. - const output = []; - const inputLength = input.length; - let i = 0; - let n = initialN; - let bias = initialBias; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - let basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - for (let j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for /* no final expression */ - (let index = basic > 0 ? basic + 1 : 0; index < inputLength;) { - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - const oldi = i; - for /* no condition */ - (let w = 1, k = base;; k += base) { - if (index >= inputLength) { - error('invalid-input'); - } - const digit = basicToDigit(input.charCodeAt(index++)); - if (digit >= base) { - error('invalid-input'); - } - if (digit > floor((maxInt - i) / w)) { - error('overflow'); - } - i += digit * w; - const t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; - if (digit < t) { - break; - } - const baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error('overflow'); - } - w *= baseMinusT; - } - const out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error('overflow'); - } - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output. - output.splice(i++, 0, n); - } - return String.fromCodePoint(...output); -}; - -/** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ -const encode = function (input) { - const output = []; - - // Convert the input in UCS-2 to an array of Unicode code points. - input = ucs2decode(input); - - // Cache the length. - const inputLength = input.length; - - // Initialize the state. - let n = initialN; - let delta = 0; - let bias = initialBias; - - // Handle the basic code points. - for (const currentValue of input) { - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - const basicLength = output.length; - let handledCPCount = basicLength; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string with a delimiter unless it's empty. - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - // All non-basic code points < n have been handled already. Find the next - // larger one: - let m = maxInt; - for (const currentValue of input) { - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow. - const handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error('overflow'); - } - delta += (m - n) * handledCPCountPlusOne; - n = m; - for (const currentValue of input) { - if (currentValue < n && ++delta > maxInt) { - error('overflow'); - } - if (currentValue === n) { - // Represent delta as a generalized variable-length integer. - let q = delta; - for /* no condition */ - (let k = base;; k += base) { - const t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; - if (q < t) { - break; - } - const qMinusT = q - t; - const baseMinusT = base - t; - output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))); - q = floor(qMinusT / baseMinusT); - } - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); - delta = 0; - ++handledCPCount; - } - } - ++delta; - ++n; - } - return output.join(''); -}; - -/** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ -const toUnicode = function (input) { - return mapDomain(input, function (string) { - return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; - }); -}; - -/** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ -const toASCII = function (input) { - return mapDomain(input, function (string) { - return regexNonASCII.test(string) ? 'xn--' + encode(string) : string; - }); -}; - -/*--------------------------------------------------------------------------*/ - -/** Define the public API */ -const punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '2.3.1', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode -}; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (punycode); - -/***/ }), - -/***/ 43512: -/***/ ((module) => { - -"use strict"; - - -var replace = String.prototype.replace; -var percentTwenties = /%20/g; -var Format = { - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' -}; -module.exports = { - 'default': Format.RFC3986, - formatters: { - RFC1738: function (value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function (value) { - return String(value); - } - }, - RFC1738: Format.RFC1738, - RFC3986: Format.RFC3986 -}; - -/***/ }), - -/***/ 349: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var stringify = __webpack_require__(74082); -var parse = __webpack_require__(48169); -var formats = __webpack_require__(43512); -module.exports = { - formats: formats, - parse: parse, - stringify: stringify -}; - -/***/ }), - -/***/ 48169: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(40775); -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; -var defaults = { - allowDots: false, - allowPrototypes: false, - allowSparse: false, - arrayLimit: 20, - charset: 'utf-8', - charsetSentinel: false, - comma: false, - decoder: utils.decode, - delimiter: '&', - depth: 5, - ignoreQueryPrefix: false, - interpretNumericEntities: false, - parameterLimit: 1000, - parseArrays: true, - plainObjects: false, - strictNullHandling: false -}; -var interpretNumericEntities = function (str) { - return str.replace(/&#(\d+);/g, function ($0, numberStr) { - return String.fromCharCode(parseInt(numberStr, 10)); - }); -}; -var parseArrayValue = function (val, options) { - if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { - return val.split(','); - } - return val; -}; - -// This is what browsers will submit when the ✓ character occurs in an -// application/x-www-form-urlencoded body and the encoding of the page containing -// the form is iso-8859-1, or when the submitted form has an accept-charset -// attribute of iso-8859-1. Presumably also with other charsets that do not contain -// the ✓ character, such as us-ascii. -var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') - -// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. -var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') - -var parseValues = function parseQueryStringValues(str, options) { - var obj = { - __proto__: null - }; - var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; - var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; - var parts = cleanStr.split(options.delimiter, limit); - var skipIndex = -1; // Keep track of where the utf8 sentinel was found - var i; - var charset = options.charset; - if (options.charsetSentinel) { - for (i = 0; i < parts.length; ++i) { - if (parts[i].indexOf('utf8=') === 0) { - if (parts[i] === charsetSentinel) { - charset = 'utf-8'; - } else if (parts[i] === isoSentinel) { - charset = 'iso-8859-1'; - } - skipIndex = i; - i = parts.length; // The eslint settings do not allow break; - } - } - } - for (i = 0; i < parts.length; ++i) { - if (i === skipIndex) { - continue; - } - var part = parts[i]; - var bracketEqualsPos = part.indexOf(']='); - var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; - var key, val; - if (pos === -1) { - key = options.decoder(part, defaults.decoder, charset, 'key'); - val = options.strictNullHandling ? null : ''; - } else { - key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function (encodedVal) { - return options.decoder(encodedVal, defaults.decoder, charset, 'value'); - }); - } - if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { - val = interpretNumericEntities(val); - } - if (part.indexOf('[]=') > -1) { - val = isArray(val) ? [val] : val; - } - if (has.call(obj, key)) { - obj[key] = utils.combine(obj[key], val); - } else { - obj[key] = val; - } - } - return obj; -}; -var parseObject = function (chain, val, options, valuesParsed) { - var leaf = valuesParsed ? val : parseArrayValue(val, options); - for (var i = chain.length - 1; i >= 0; --i) { - var obj; - var root = chain[i]; - if (root === '[]' && options.parseArrays) { - obj = [].concat(leaf); - } else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; - var index = parseInt(cleanRoot, 10); - if (!options.parseArrays && cleanRoot === '') { - obj = { - 0: leaf - }; - } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) { - obj = []; - obj[index] = leaf; - } else if (cleanRoot !== '__proto__') { - obj[cleanRoot] = leaf; - } - } - leaf = obj; - } - return leaf; -}; -var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { - if (!givenKey) { - return; - } - - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - - // The regex chunks - - var brackets = /(\[[^[\]]*])/; - var child = /(\[[^[\]]*])/g; - - // Get the parent - - var segment = options.depth > 0 && brackets.exec(key); - var parent = segment ? key.slice(0, segment.index) : key; - - // Stash the parent if it exists - - var keys = []; - if (parent) { - // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, parent)) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(parent); - } - - // Loop through children appending to the array until we hit depth - - var i = 0; - while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(segment[1]); - } - - // If there's a remainder, just add whatever is left - - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } - return parseObject(keys, val, options, valuesParsed); -}; -var normalizeParseOptions = function normalizeParseOptions(opts) { - if (!opts) { - return defaults; - } - if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; - return { - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, - allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, - arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, - decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, - delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, - // eslint-disable-next-line no-implicit-coercion, no-extra-parens - depth: typeof opts.depth === 'number' || opts.depth === false ? +opts.depth : defaults.depth, - ignoreQueryPrefix: opts.ignoreQueryPrefix === true, - interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, - parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, - parseArrays: opts.parseArrays !== false, - plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; -module.exports = function (str, opts) { - var options = normalizeParseOptions(opts); - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; - - // Iterate over the keys and setup the new object - - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); - obj = utils.merge(obj, newObj, options); - } - if (options.allowSparse === true) { - return obj; - } - return utils.compact(obj); -}; - -/***/ }), - -/***/ 74082: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var getSideChannel = __webpack_require__(67546); -var utils = __webpack_require__(40775); -var formats = __webpack_require__(43512); -var has = Object.prototype.hasOwnProperty; -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - comma: 'comma', - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } -}; -var isArray = Array.isArray; -var push = Array.prototype.push; -var pushToArray = function (arr, valueOrArray) { - push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); -}; -var toISO = Date.prototype.toISOString; -var defaultFormat = formats['default']; -var defaults = { - addQueryPrefix: false, - allowDots: false, - charset: 'utf-8', - charsetSentinel: false, - delimiter: '&', - encode: true, - encoder: utils.encode, - encodeValuesOnly: false, - format: defaultFormat, - formatter: formats.formatters[defaultFormat], - // deprecated - indices: false, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; -var isNonNullishPrimitive = function isNonNullishPrimitive(v) { - return typeof v === 'string' || typeof v === 'number' || typeof v === 'boolean' || typeof v === 'symbol' || typeof v === 'bigint'; -}; -var sentinel = {}; -var stringify = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) { - var obj = object; - var tmpSc = sideChannel; - var step = 0; - var findFlag = false; - while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { - // Where object last appeared in the ref tree - var pos = tmpSc.get(object); - step += 1; - if (typeof pos !== 'undefined') { - if (pos === step) { - throw new RangeError('Cyclic object value'); - } else { - findFlag = true; // Break while - } - } - if (typeof tmpSc.get(sentinel) === 'undefined') { - step = 0; - } - } - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (generateArrayPrefix === 'comma' && isArray(obj)) { - obj = utils.maybeMap(obj, function (value) { - if (value instanceof Date) { - return serializeDate(value); - } - return value; - }); - } - if (obj === null) { - if (strictNullHandling) { - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; - } - obj = ''; - } - if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { - if (encoder) { - var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); - return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; - } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - var values = []; - if (typeof obj === 'undefined') { - return values; - } - var objKeys; - if (generateArrayPrefix === 'comma' && isArray(obj)) { - // we need to join elements in - if (encodeValuesOnly && encoder) { - obj = utils.maybeMap(obj, encoder); - } - objKeys = [{ - value: obj.length > 0 ? obj.join(',') || null : void undefined - }]; - } else if (isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix; - for (var j = 0; j < objKeys.length; ++j) { - var key = objKeys[j]; - var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; - if (skipNulls && value === null) { - continue; - } - var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']'); - sideChannel.set(object, step); - var valueSideChannel = getSideChannel(); - valueSideChannel.set(sentinel, sideChannel); - pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel)); - } - return values; -}; -var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { - if (!opts) { - return defaults; - } - if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } - var charset = opts.charset || defaults.charset; - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - var format = formats['default']; - if (typeof opts.format !== 'undefined') { - if (!has.call(formats.formatters, opts.format)) { - throw new TypeError('Unknown format option provided.'); - } - format = opts.format; - } - var formatter = formats.formatters[format]; - var filter = defaults.filter; - if (typeof opts.filter === 'function' || isArray(opts.filter)) { - filter = opts.filter; - } - return { - addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, - encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter: filter, - format: format, - formatter: formatter, - serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === 'function' ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; -module.exports = function (object, opts) { - var obj = object; - var options = normalizeStringifyOptions(opts); - var objKeys; - var filter; - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - var keys = []; - if (typeof obj !== 'object' || obj === null) { - return ''; - } - var arrayFormat; - if (opts && opts.arrayFormat in arrayPrefixGenerators) { - arrayFormat = opts.arrayFormat; - } else if (opts && 'indices' in opts) { - arrayFormat = opts.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = 'indices'; - } - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { - throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); - } - var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip; - if (!objKeys) { - objKeys = Object.keys(obj); - } - if (options.sort) { - objKeys.sort(options.sort); - } - var sideChannel = getSideChannel(); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - if (options.skipNulls && obj[key] === null) { - continue; - } - pushToArray(keys, stringify(obj[key], key, generateArrayPrefix, commaRoundTrip, options.strictNullHandling, options.skipNulls, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel)); - } - var joined = keys.join(options.delimiter); - var prefix = options.addQueryPrefix === true ? '?' : ''; - if (options.charsetSentinel) { - if (options.charset === 'iso-8859-1') { - // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark - prefix += 'utf8=%26%2310003%3B&'; - } else { - // encodeURIComponent('✓') - prefix += 'utf8=%E2%9C%93&'; - } - } - return joined.length > 0 ? prefix + joined : ''; -}; - -/***/ }), - -/***/ 40775: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var formats = __webpack_require__(43512); -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; -var hexTable = function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - return array; -}(); -var compactQueue = function compactQueue(queue) { - while (queue.length > 1) { - var item = queue.pop(); - var obj = item.obj[item.prop]; - if (isArray(obj)) { - var compacted = []; - for (var j = 0; j < obj.length; ++j) { - if (typeof obj[j] !== 'undefined') { - compacted.push(obj[j]); - } - } - item.obj[item.prop] = compacted; - } - } -}; -var arrayToObject = function arrayToObject(source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } - return obj; -}; -var merge = function merge(target, source, options) { - /* eslint no-param-reassign: 0 */ - if (!source) { - return target; - } - if (typeof source !== 'object') { - if (isArray(target)) { - target.push(source); - } else if (target && typeof target === 'object') { - if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) { - target[source] = true; - } - } else { - return [target, source]; - } - return target; - } - if (!target || typeof target !== 'object') { - return [target].concat(source); - } - var mergeTarget = target; - if (isArray(target) && !isArray(source)) { - mergeTarget = arrayToObject(target, options); - } - if (isArray(target) && isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - var targetItem = target[i]; - if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { - target[i] = merge(targetItem, item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; - } - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; - if (has.call(acc, key)) { - acc[key] = merge(acc[key], value, options); - } else { - acc[key] = value; - } - return acc; - }, mergeTarget); -}; -var assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function (acc, key) { - acc[key] = source[key]; - return acc; - }, target); -}; -var decode = function (str, decoder, charset) { - var strWithoutPlus = str.replace(/\+/g, ' '); - if (charset === 'iso-8859-1') { - // unescape never throws, no try...catch needed: - return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); - } - // utf-8 - try { - return decodeURIComponent(strWithoutPlus); - } catch (e) { - return strWithoutPlus; - } -}; -var encode = function encode(str, defaultEncoder, charset, kind, format) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - var string = str; - if (typeof str === 'symbol') { - string = Symbol.prototype.toString.call(str); - } else if (typeof str !== 'string') { - string = String(str); - } - if (charset === 'iso-8859-1') { - return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { - return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; - }); - } - var out = ''; - for (var i = 0; i < string.length; ++i) { - var c = string.charCodeAt(i); - if (c === 0x2D // - - || c === 0x2E // . - || c === 0x5F // _ - || c === 0x7E // ~ - || c >= 0x30 && c <= 0x39 // 0-9 - || c >= 0x41 && c <= 0x5A // a-z - || c >= 0x61 && c <= 0x7A // A-Z - || format === formats.RFC1738 && (c === 0x28 || c === 0x29) // ( ) - ) { - out += string.charAt(i); - continue; - } - if (c < 0x80) { - out = out + hexTable[c]; - continue; - } - if (c < 0x800) { - out = out + (hexTable[0xC0 | c >> 6] + hexTable[0x80 | c & 0x3F]); - continue; - } - if (c < 0xD800 || c >= 0xE000) { - out = out + (hexTable[0xE0 | c >> 12] + hexTable[0x80 | c >> 6 & 0x3F] + hexTable[0x80 | c & 0x3F]); - continue; - } - i += 1; - c = 0x10000 + ((c & 0x3FF) << 10 | string.charCodeAt(i) & 0x3FF); - /* eslint operator-linebreak: [2, "before"] */ - out += hexTable[0xF0 | c >> 18] + hexTable[0x80 | c >> 12 & 0x3F] + hexTable[0x80 | c >> 6 & 0x3F] + hexTable[0x80 | c & 0x3F]; - } - return out; -}; -var compact = function compact(value) { - var queue = [{ - obj: { - o: value - }, - prop: 'o' - }]; - var refs = []; - for (var i = 0; i < queue.length; ++i) { - var item = queue[i]; - var obj = item.obj[item.prop]; - var keys = Object.keys(obj); - for (var j = 0; j < keys.length; ++j) { - var key = keys[j]; - var val = obj[key]; - if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { - queue.push({ - obj: obj, - prop: key - }); - refs.push(val); - } - } - } - compactQueue(queue); - return value; -}; -var isRegExp = function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; -var isBuffer = function isBuffer(obj) { - if (!obj || typeof obj !== 'object') { - return false; - } - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; -var combine = function combine(a, b) { - return [].concat(a, b); -}; -var maybeMap = function maybeMap(val, fn) { - if (isArray(val)) { - var mapped = []; - for (var i = 0; i < val.length; i += 1) { - mapped.push(fn(val[i])); - } - return mapped; - } - return fn(val); -}; -module.exports = { - arrayToObject: arrayToObject, - assign: assign, - combine: combine, - compact: compact, - decode: decode, - encode: encode, - isBuffer: isBuffer, - isRegExp: isRegExp, - maybeMap: maybeMap, - merge: merge -}; - -/***/ }), - -/***/ 23954: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(55050); -var define = __webpack_require__(91037); -var hasDescriptors = __webpack_require__(96757)(); -var gOPD = __webpack_require__(12319); -var $TypeError = GetIntrinsic('%TypeError%'); -var $floor = GetIntrinsic('%Math.floor%'); -module.exports = function setFunctionLength(fn, length) { - if (typeof fn !== 'function') { - throw new $TypeError('`fn` is not a function'); - } - if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) { - throw new $TypeError('`length` must be a positive 32-bit integer'); - } - var loose = arguments.length > 2 && !!arguments[2]; - var functionLengthIsConfigurable = true; - var functionLengthIsWritable = true; - if ('length' in fn && gOPD) { - var desc = gOPD(fn, 'length'); - if (desc && !desc.configurable) { - functionLengthIsConfigurable = false; - } - if (desc && !desc.writable) { - functionLengthIsWritable = false; - } - } - if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) { - if (hasDescriptors) { - define(fn, 'length', length, true, true); - } else { - define(fn, 'length', length); - } - } - return fn; -}; - -/***/ }), - -/***/ 67546: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(55050); -var callBound = __webpack_require__(3737); -var inspect = __webpack_require__(87676); -var $TypeError = GetIntrinsic('%TypeError%'); -var $WeakMap = GetIntrinsic('%WeakMap%', true); -var $Map = GetIntrinsic('%Map%', true); -var $weakMapGet = callBound('WeakMap.prototype.get', true); -var $weakMapSet = callBound('WeakMap.prototype.set', true); -var $weakMapHas = callBound('WeakMap.prototype.has', true); -var $mapGet = callBound('Map.prototype.get', true); -var $mapSet = callBound('Map.prototype.set', true); -var $mapHas = callBound('Map.prototype.has', true); - -/* - * This function traverses the list returning the node corresponding to the - * given key. - * - * That node is also moved to the head of the list, so that if it's accessed - * again we don't need to traverse the whole list. By doing so, all the recently - * used nodes can be accessed relatively quickly. - */ -var listGetNode = function (list, key) { - // eslint-disable-line consistent-return - for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { - if (curr.key === key) { - prev.next = curr.next; - curr.next = list.next; - list.next = curr; // eslint-disable-line no-param-reassign - return curr; - } - } -}; -var listGet = function (objects, key) { - var node = listGetNode(objects, key); - return node && node.value; -}; -var listSet = function (objects, key, value) { - var node = listGetNode(objects, key); - if (node) { - node.value = value; - } else { - // Prepend the new node to the beginning of the list - objects.next = { - // eslint-disable-line no-param-reassign - key: key, - next: objects.next, - value: value - }; - } -}; -var listHas = function (objects, key) { - return !!listGetNode(objects, key); -}; -module.exports = function getSideChannel() { - var $wm; - var $m; - var $o; - var channel = { - assert: function (key) { - if (!channel.has(key)) { - throw new $TypeError('Side channel does not contain ' + inspect(key)); - } - }, - get: function (key) { - // eslint-disable-line consistent-return - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapGet($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapGet($m, key); - } - } else { - if ($o) { - // eslint-disable-line no-lonely-if - return listGet($o, key); - } - } - }, - has: function (key) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapHas($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapHas($m, key); - } - } else { - if ($o) { - // eslint-disable-line no-lonely-if - return listHas($o, key); - } - } - return false; - }, - set: function (key, value) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if (!$wm) { - $wm = new $WeakMap(); - } - $weakMapSet($wm, key, value); - } else if ($Map) { - if (!$m) { - $m = new $Map(); - } - $mapSet($m, key, value); - } else { - if (!$o) { - /* - * Initialize the linked list as an empty node, so that we don't have - * to special-case handling of the first node: we can always refer to - * it as (previous node).next, instead of something like (list).head - */ - $o = { - key: {}, - next: null - }; - } - listSet($o, key, value); - } - } - }; - return channel; -}; - -/***/ }), - -/***/ 69573: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/* - * Copyright Joyent, Inc. and other Node contributors. - * - * 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. - */ - - - -var punycode = __webpack_require__(43277); -function Url() { - this.protocol = null; - this.slashes = null; - this.auth = null; - this.host = null; - this.port = null; - this.hostname = null; - this.hash = null; - this.search = null; - this.query = null; - this.pathname = null; - this.path = null; - this.href = null; -} - -// Reference: RFC 3986, RFC 1808, RFC 2396 - -/* - * define these here so at least they only have to be - * compiled once on the first module load. - */ -var protocolPattern = /^([a-z0-9.+-]+:)/i, - portPattern = /:[0-9]*$/, - // Special case for a simple path URL - simplePathPattern = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, - /* - * RFC 2396: characters reserved for delimiting URLs. - * We actually just auto-escape these. - */ - delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], - // RFC 2396: characters not allowed for various reasons. - unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), - // Allowed by RFCs, but cause of XSS attacks. Always escape these. - autoEscape = ['\''].concat(unwise), - /* - * Characters that are never ever allowed in a hostname. - * Note that any invalid chars are also handled, but these - * are the ones that are *expected* to be seen, so we fast-path - * them. - */ - nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), - hostEndingChars = ['/', '?', '#'], - hostnameMaxLen = 255, - hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, - hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, - // protocols that can allow "unsafe" and "unwise" chars. - unsafeProtocol = { - javascript: true, - 'javascript:': true - }, - // protocols that never have a hostname. - hostlessProtocol = { - javascript: true, - 'javascript:': true - }, - // protocols that always contain a // bit. - slashedProtocol = { - http: true, - https: true, - ftp: true, - gopher: true, - file: true, - 'http:': true, - 'https:': true, - 'ftp:': true, - 'gopher:': true, - 'file:': true - }, - querystring = __webpack_require__(349); -function urlParse(url, parseQueryString, slashesDenoteHost) { - if (url && typeof url === 'object' && url instanceof Url) { - return url; - } - var u = new Url(); - u.parse(url, parseQueryString, slashesDenoteHost); - return u; -} -Url.prototype.parse = function (url, parseQueryString, slashesDenoteHost) { - if (typeof url !== 'string') { - throw new TypeError("Parameter 'url' must be a string, not " + typeof url); - } - - /* - * Copy chrome, IE, opera backslash-handling behavior. - * Back slashes before the query string get converted to forward slashes - * See: https://code.google.com/p/chromium/issues/detail?id=25916 - */ - var queryIndex = url.indexOf('?'), - splitter = queryIndex !== -1 && queryIndex < url.indexOf('#') ? '?' : '#', - uSplit = url.split(splitter), - slashRegex = /\\/g; - uSplit[0] = uSplit[0].replace(slashRegex, '/'); - url = uSplit.join(splitter); - var rest = url; - - /* - * trim before proceeding. - * This is to support parse stuff like " http://foo.com \n" - */ - rest = rest.trim(); - if (!slashesDenoteHost && url.split('#').length === 1) { - // Try fast path regexp - var simplePath = simplePathPattern.exec(rest); - if (simplePath) { - this.path = rest; - this.href = rest; - this.pathname = simplePath[1]; - if (simplePath[2]) { - this.search = simplePath[2]; - if (parseQueryString) { - this.query = querystring.parse(this.search.substr(1)); - } else { - this.query = this.search.substr(1); - } - } else if (parseQueryString) { - this.search = ''; - this.query = {}; - } - return this; - } - } - var proto = protocolPattern.exec(rest); - if (proto) { - proto = proto[0]; - var lowerProto = proto.toLowerCase(); - this.protocol = lowerProto; - rest = rest.substr(proto.length); - } - - /* - * figure out if it's got a host - * user@server is *always* interpreted as a hostname, and url - * resolution will treat //foo/bar as host=foo,path=bar because that's - * how the browser resolves relative URLs. - */ - if (slashesDenoteHost || proto || rest.match(/^\/\/[^@/]+@[^@/]+/)) { - var slashes = rest.substr(0, 2) === '//'; - if (slashes && !(proto && hostlessProtocol[proto])) { - rest = rest.substr(2); - this.slashes = true; - } - } - if (!hostlessProtocol[proto] && (slashes || proto && !slashedProtocol[proto])) { - /* - * there's a hostname. - * the first instance of /, ?, ;, or # ends the host. - * - * If there is an @ in the hostname, then non-host chars *are* allowed - * to the left of the last @ sign, unless some host-ending character - * comes *before* the @-sign. - * URLs are obnoxious. - * - * ex: - * http://a@b@c/ => user:a@b host:c - * http://a@b?@c => user:a host:c path:/?@c - */ - - /* - * v0.12 TODO(isaacs): This is not quite how Chrome does things. - * Review our test case against browsers more comprehensively. - */ - - // find the first instance of any hostEndingChars - var hostEnd = -1; - for (var i = 0; i < hostEndingChars.length; i++) { - var hec = rest.indexOf(hostEndingChars[i]); - if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { - hostEnd = hec; - } - } - - /* - * at this point, either we have an explicit point where the - * auth portion cannot go past, or the last @ char is the decider. - */ - var auth, atSign; - if (hostEnd === -1) { - // atSign can be anywhere. - atSign = rest.lastIndexOf('@'); - } else { - /* - * atSign must be in auth portion. - * http://a@b/c@d => host:b auth:a path:/c@d - */ - atSign = rest.lastIndexOf('@', hostEnd); - } - - /* - * Now we have a portion which is definitely the auth. - * Pull that off. - */ - if (atSign !== -1) { - auth = rest.slice(0, atSign); - rest = rest.slice(atSign + 1); - this.auth = decodeURIComponent(auth); - } - - // the host is the remaining to the left of the first non-host char - hostEnd = -1; - for (var i = 0; i < nonHostChars.length; i++) { - var hec = rest.indexOf(nonHostChars[i]); - if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { - hostEnd = hec; - } - } - // if we still have not hit it, then the entire thing is a host. - if (hostEnd === -1) { - hostEnd = rest.length; - } - this.host = rest.slice(0, hostEnd); - rest = rest.slice(hostEnd); - - // pull out port. - this.parseHost(); - - /* - * we've indicated that there is a hostname, - * so even if it's empty, it has to be present. - */ - this.hostname = this.hostname || ''; - - /* - * if hostname begins with [ and ends with ] - * assume that it's an IPv6 address. - */ - var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']'; - - // validate a little. - if (!ipv6Hostname) { - var hostparts = this.hostname.split(/\./); - for (var i = 0, l = hostparts.length; i < l; i++) { - var part = hostparts[i]; - if (!part) { - continue; - } - if (!part.match(hostnamePartPattern)) { - var newpart = ''; - for (var j = 0, k = part.length; j < k; j++) { - if (part.charCodeAt(j) > 127) { - /* - * we replace non-ASCII char with a temporary placeholder - * we need this to make sure size of hostname is not - * broken by replacing non-ASCII by nothing - */ - newpart += 'x'; - } else { - newpart += part[j]; - } - } - // we test again with ASCII char only - if (!newpart.match(hostnamePartPattern)) { - var validParts = hostparts.slice(0, i); - var notHost = hostparts.slice(i + 1); - var bit = part.match(hostnamePartStart); - if (bit) { - validParts.push(bit[1]); - notHost.unshift(bit[2]); - } - if (notHost.length) { - rest = '/' + notHost.join('.') + rest; - } - this.hostname = validParts.join('.'); - break; - } - } - } - } - if (this.hostname.length > hostnameMaxLen) { - this.hostname = ''; - } else { - // hostnames are always lower case. - this.hostname = this.hostname.toLowerCase(); - } - if (!ipv6Hostname) { - /* - * IDNA Support: Returns a punycoded representation of "domain". - * It only converts parts of the domain name that - * have non-ASCII characters, i.e. it doesn't matter if - * you call it with a domain that already is ASCII-only. - */ - this.hostname = punycode.toASCII(this.hostname); - } - var p = this.port ? ':' + this.port : ''; - var h = this.hostname || ''; - this.host = h + p; - this.href += this.host; - - /* - * strip [ and ] from the hostname - * the host field still retains them, though - */ - if (ipv6Hostname) { - this.hostname = this.hostname.substr(1, this.hostname.length - 2); - if (rest[0] !== '/') { - rest = '/' + rest; - } - } - } - - /* - * now rest is set to the post-host stuff. - * chop off any delim chars. - */ - if (!unsafeProtocol[lowerProto]) { - /* - * First, make 100% sure that any "autoEscape" chars get - * escaped, even if encodeURIComponent doesn't think they - * need to be. - */ - for (var i = 0, l = autoEscape.length; i < l; i++) { - var ae = autoEscape[i]; - if (rest.indexOf(ae) === -1) { - continue; - } - var esc = encodeURIComponent(ae); - if (esc === ae) { - esc = escape(ae); - } - rest = rest.split(ae).join(esc); - } - } - - // chop off from the tail first. - var hash = rest.indexOf('#'); - if (hash !== -1) { - // got a fragment string. - this.hash = rest.substr(hash); - rest = rest.slice(0, hash); - } - var qm = rest.indexOf('?'); - if (qm !== -1) { - this.search = rest.substr(qm); - this.query = rest.substr(qm + 1); - if (parseQueryString) { - this.query = querystring.parse(this.query); - } - rest = rest.slice(0, qm); - } else if (parseQueryString) { - // no query string, but parseQueryString still requested - this.search = ''; - this.query = {}; - } - if (rest) { - this.pathname = rest; - } - if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) { - this.pathname = '/'; - } - - // to support http.request - if (this.pathname || this.search) { - var p = this.pathname || ''; - var s = this.search || ''; - this.path = p + s; - } - - // finally, reconstruct the href based on what has been validated. - this.href = this.format(); - return this; -}; - -// format a parsed object into a url string -function urlFormat(obj) { - /* - * ensure it's an object, and not a string url. - * If it's an obj, this is a no-op. - * this way, you can call url_format() on strings - * to clean up potentially wonky urls. - */ - if (typeof obj === 'string') { - obj = urlParse(obj); - } - if (!(obj instanceof Url)) { - return Url.prototype.format.call(obj); - } - return obj.format(); -} -Url.prototype.format = function () { - var auth = this.auth || ''; - if (auth) { - auth = encodeURIComponent(auth); - auth = auth.replace(/%3A/i, ':'); - auth += '@'; - } - var protocol = this.protocol || '', - pathname = this.pathname || '', - hash = this.hash || '', - host = false, - query = ''; - if (this.host) { - host = auth + this.host; - } else if (this.hostname) { - host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']'); - if (this.port) { - host += ':' + this.port; - } - } - if (this.query && typeof this.query === 'object' && Object.keys(this.query).length) { - query = querystring.stringify(this.query, { - arrayFormat: 'repeat', - addQueryPrefix: false - }); - } - var search = this.search || query && '?' + query || ''; - if (protocol && protocol.substr(-1) !== ':') { - protocol += ':'; - } - - /* - * only the slashedProtocols get the //. Not mailto:, xmpp:, etc. - * unless they had them to begin with. - */ - if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) { - host = '//' + (host || ''); - if (pathname && pathname.charAt(0) !== '/') { - pathname = '/' + pathname; - } - } else if (!host) { - host = ''; - } - if (hash && hash.charAt(0) !== '#') { - hash = '#' + hash; - } - if (search && search.charAt(0) !== '?') { - search = '?' + search; - } - pathname = pathname.replace(/[?#]/g, function (match) { - return encodeURIComponent(match); - }); - search = search.replace('#', '%23'); - return protocol + host + pathname + search + hash; -}; -function urlResolve(source, relative) { - return urlParse(source, false, true).resolve(relative); -} -Url.prototype.resolve = function (relative) { - return this.resolveObject(urlParse(relative, false, true)).format(); -}; -function urlResolveObject(source, relative) { - if (!source) { - return relative; - } - return urlParse(source, false, true).resolveObject(relative); -} -Url.prototype.resolveObject = function (relative) { - if (typeof relative === 'string') { - var rel = new Url(); - rel.parse(relative, false, true); - relative = rel; - } - var result = new Url(); - var tkeys = Object.keys(this); - for (var tk = 0; tk < tkeys.length; tk++) { - var tkey = tkeys[tk]; - result[tkey] = this[tkey]; - } - - /* - * hash is always overridden, no matter what. - * even href="" will remove it. - */ - result.hash = relative.hash; - - // if the relative url is empty, then there's nothing left to do here. - if (relative.href === '') { - result.href = result.format(); - return result; - } - - // hrefs like //foo/bar always cut to the protocol. - if (relative.slashes && !relative.protocol) { - // take everything except the protocol from relative - var rkeys = Object.keys(relative); - for (var rk = 0; rk < rkeys.length; rk++) { - var rkey = rkeys[rk]; - if (rkey !== 'protocol') { - result[rkey] = relative[rkey]; - } - } - - // urlParse appends trailing / to urls like http://www.example.com - if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) { - result.pathname = '/'; - result.path = result.pathname; - } - result.href = result.format(); - return result; - } - if (relative.protocol && relative.protocol !== result.protocol) { - /* - * if it's a known url protocol, then changing - * the protocol does weird things - * first, if it's not file:, then we MUST have a host, - * and if there was a path - * to begin with, then we MUST have a path. - * if it is file:, then the host is dropped, - * because that's known to be hostless. - * anything else is assumed to be absolute. - */ - if (!slashedProtocol[relative.protocol]) { - var keys = Object.keys(relative); - for (var v = 0; v < keys.length; v++) { - var k = keys[v]; - result[k] = relative[k]; - } - result.href = result.format(); - return result; - } - result.protocol = relative.protocol; - if (!relative.host && !hostlessProtocol[relative.protocol]) { - var relPath = (relative.pathname || '').split('/'); - while (relPath.length && !(relative.host = relPath.shift())) {} - if (!relative.host) { - relative.host = ''; - } - if (!relative.hostname) { - relative.hostname = ''; - } - if (relPath[0] !== '') { - relPath.unshift(''); - } - if (relPath.length < 2) { - relPath.unshift(''); - } - result.pathname = relPath.join('/'); - } else { - result.pathname = relative.pathname; - } - result.search = relative.search; - result.query = relative.query; - result.host = relative.host || ''; - result.auth = relative.auth; - result.hostname = relative.hostname || relative.host; - result.port = relative.port; - // to support http.request - if (result.pathname || result.search) { - var p = result.pathname || ''; - var s = result.search || ''; - result.path = p + s; - } - result.slashes = result.slashes || relative.slashes; - result.href = result.format(); - return result; - } - var isSourceAbs = result.pathname && result.pathname.charAt(0) === '/', - isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === '/', - mustEndAbs = isRelAbs || isSourceAbs || result.host && relative.pathname, - removeAllDots = mustEndAbs, - srcPath = result.pathname && result.pathname.split('/') || [], - relPath = relative.pathname && relative.pathname.split('/') || [], - psychotic = result.protocol && !slashedProtocol[result.protocol]; - - /* - * if the url is a non-slashed url, then relative - * links like ../.. should be able - * to crawl up to the hostname, as well. This is strange. - * result.protocol has already been set by now. - * Later on, put the first path part into the host field. - */ - if (psychotic) { - result.hostname = ''; - result.port = null; - if (result.host) { - if (srcPath[0] === '') { - srcPath[0] = result.host; - } else { - srcPath.unshift(result.host); - } - } - result.host = ''; - if (relative.protocol) { - relative.hostname = null; - relative.port = null; - if (relative.host) { - if (relPath[0] === '') { - relPath[0] = relative.host; - } else { - relPath.unshift(relative.host); - } - } - relative.host = null; - } - mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); - } - if (isRelAbs) { - // it's absolute. - result.host = relative.host || relative.host === '' ? relative.host : result.host; - result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname; - result.search = relative.search; - result.query = relative.query; - srcPath = relPath; - // fall through to the dot-handling below. - } else if (relPath.length) { - /* - * it's relative - * throw away the existing file, and take the new path instead. - */ - if (!srcPath) { - srcPath = []; - } - srcPath.pop(); - srcPath = srcPath.concat(relPath); - result.search = relative.search; - result.query = relative.query; - } else if (relative.search != null) { - /* - * just pull out the search. - * like href='?foo'. - * Put this after the other two cases because it simplifies the booleans - */ - if (psychotic) { - result.host = srcPath.shift(); - result.hostname = result.host; - /* - * occationaly the auth can get stuck only in host - * this especially happens in cases like - * url.resolveObject('mailto:local1@domain1', 'local2@domain2') - */ - var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; - if (authInHost) { - result.auth = authInHost.shift(); - result.hostname = authInHost.shift(); - result.host = result.hostname; - } - } - result.search = relative.search; - result.query = relative.query; - // to support http.request - if (result.pathname !== null || result.search !== null) { - result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); - } - result.href = result.format(); - return result; - } - if (!srcPath.length) { - /* - * no path at all. easy. - * we've already handled the other stuff above. - */ - result.pathname = null; - // to support http.request - if (result.search) { - result.path = '/' + result.search; - } else { - result.path = null; - } - result.href = result.format(); - return result; - } - - /* - * if a url ENDs in . or .., then it must get a trailing slash. - * however, if it ends in anything else non-slashy, - * then it must NOT get a trailing slash. - */ - var last = srcPath.slice(-1)[0]; - var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === ''; - - /* - * strip single dots, resolve double dots to parent dir - * if the path tries to go above the root, `up` ends up > 0 - */ - var up = 0; - for (var i = srcPath.length; i >= 0; i--) { - last = srcPath[i]; - if (last === '.') { - srcPath.splice(i, 1); - } else if (last === '..') { - srcPath.splice(i, 1); - up++; - } else if (up) { - srcPath.splice(i, 1); - up--; - } - } - - // if the path is allowed to go above the root, restore leading ..s - if (!mustEndAbs && !removeAllDots) { - for (; up--; up) { - srcPath.unshift('..'); - } - } - if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { - srcPath.unshift(''); - } - if (hasTrailingSlash && srcPath.join('/').substr(-1) !== '/') { - srcPath.push(''); - } - var isAbsolute = srcPath[0] === '' || srcPath[0] && srcPath[0].charAt(0) === '/'; - - // put the host back - if (psychotic) { - result.hostname = isAbsolute ? '' : srcPath.length ? srcPath.shift() : ''; - result.host = result.hostname; - /* - * occationaly the auth can get stuck only in host - * this especially happens in cases like - * url.resolveObject('mailto:local1@domain1', 'local2@domain2') - */ - var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; - if (authInHost) { - result.auth = authInHost.shift(); - result.hostname = authInHost.shift(); - result.host = result.hostname; - } - } - mustEndAbs = mustEndAbs || result.host && srcPath.length; - if (mustEndAbs && !isAbsolute) { - srcPath.unshift(''); - } - if (srcPath.length > 0) { - result.pathname = srcPath.join('/'); - } else { - result.pathname = null; - result.path = null; - } - - // to support request.http - if (result.pathname !== null || result.search !== null) { - result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); - } - result.auth = relative.auth || result.auth; - result.slashes = result.slashes || relative.slashes; - result.href = result.format(); - return result; -}; -Url.prototype.parseHost = function () { - var host = this.host; - var port = portPattern.exec(host); - if (port) { - port = port[0]; - if (port !== ':') { - this.port = port.substr(1); - } - host = host.substr(0, host.length - port.length); - } - if (host) { - this.hostname = host; - } -}; -exports.parse = urlParse; -exports.resolve = urlResolve; -exports.resolveObject = urlResolveObject; -exports.format = urlFormat; -exports.Url = Url; - -/***/ }), - -/***/ 53260: -/***/ (() => { - -/* (ignored) */ - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // 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/global */ -/******/ (() => { -/******/ __webpack_require__.g = (function() { -/******/ if (typeof globalThis === 'object') return globalThis; -/******/ try { -/******/ return this || new Function('return this')(); -/******/ } catch (e) { -/******/ if (typeof window === 'object') return window; -/******/ } -/******/ })(); -/******/ })(); -/******/ -/******/ /* 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 }); -/******/ }; -/******/ })(); -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. -(() => { -"use strict"; - -;// CONCATENATED MODULE: ../../libs/common/src/vault/abstractions/fido2/fido2-client.service.abstraction.ts -const UserRequestedFallbackAbortReason = "UserRequestedFallback"; -/** - * This class represents an abstraction of the WebAuthn Client as described by W3C: - * https://www.w3.org/TR/webauthn-3/#webauthn-client - * - * The WebAuthn Client is an intermediary entity typically implemented in the user agent - * (in whole, or in part). Conceptually, it underlies the Web Authentication API and embodies - * the implementation of the Web Authentication API's operations. - * - * It is responsible for both marshalling the inputs for the underlying authenticator operations, - * and for returning the results of the latter operations to the Web Authentication API's callers. - */ -class Fido2ClientService { -} -/** - * Error thrown when the user requests a fallback to the browser's built-in WebAuthn implementation. - */ -class FallbackRequestedError extends Error { - constructor() { - super("FallbackRequested"); - this.fallbackRequested = true; - } -} - -// EXTERNAL MODULE: ../../node_modules/path-browserify/index.js -var path_browserify = __webpack_require__(14375); -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/isFunction.js -function isFunction_isFunction(value) { - return typeof value === 'function'; -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/isScheduler.js - -function isScheduler(value) { - return value && isFunction_isFunction(value.schedule); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/args.js - - -function last(arr) { - return arr[arr.length - 1]; -} -function popResultSelector(args) { - return isFunction(last(args)) ? args.pop() : undefined; -} -function popScheduler(args) { - return isScheduler(last(args)) ? args.pop() : undefined; -} -function popNumber(args, defaultValue) { - return typeof last(args) === 'number' ? args.pop() : defaultValue; -} -;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.js -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || { - __proto__: [] - } instanceof Array && function (d, b) { - d.__proto__ = b; - } || function (d, b) { - for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; - }; - return extendStatics(d, b); -}; -function __extends(d, b) { - if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} -var __assign = function () { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -} -function __decorate(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} -function __param(paramIndex, decorator) { - return function (target, key) { - decorator(target, key, paramIndex); - }; -} -function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { - if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); - return f; - } - var kind = contextIn.kind, - key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, - done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { - if (done) throw new TypeError("Cannot add initializers after decoration has completed"); - extraInitializers.push(accept(f || null)); - }; - var result = (0, decorators[i])(kind === "accessor" ? { - get: descriptor.get, - set: descriptor.set - } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.push(_); - } else if (_ = accept(result)) { - if (kind === "field") initializers.push(_);else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; -} -; -function __runInitializers(thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; -} -; -function __propKey(x) { - return typeof x === "symbol" ? x : "".concat(x); -} -; -function __setFunctionName(f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { - configurable: true, - value: prefix ? "".concat(prefix, " ", name) : name - }); -} -; -function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} -function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function (resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} -function __generator(thisArg, body) { - var _ = { - label: 0, - sent: function () { - if (t[0] & 1) throw t[1]; - return t[1]; - }, - trys: [], - ops: [] - }, - f, - y, - t, - g; - return g = { - next: verb(0), - "throw": verb(1), - "return": verb(2) - }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { - return this; - }), g; - function verb(n) { - return function (v) { - return step([n, v]); - }; - } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - _.label++; - return { - value: op[1], - done: false - }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { - _.label = op[1]; - break; - } - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - if (t && _.label < t[2]) { - _.label = t[2]; - _.ops.push(op); - break; - } - if (t[2]) _.ops.pop(); - _.trys.pop(); - continue; - } - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; - } - if (op[0] & 5) throw op[1]; - return { - value: op[0] ? op[1] : void 0, - done: true - }; - } -} -var __createBinding = Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { - enumerable: true, - get: function () { - return m[k]; - } - }; - } - Object.defineProperty(o, k2, desc); -} : function (o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -}; -function __exportStar(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); -} -function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, - m = s && o[s], - i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { - value: o && o[i++], - done: !o - }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} -function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), - r, - ar = [], - e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } catch (error) { - e = { - error: error - }; - } finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } finally { - if (e) throw e.error; - } - } - return ar; -} - -/** @deprecated */ -function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -} - -/** @deprecated */ -function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; - return r; -} -function __spreadArray(to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -} -function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} -function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), - i, - q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { - return this; - }, i; - function verb(n) { - if (g[n]) i[n] = function (v) { - return new Promise(function (a, b) { - q.push([n, v, a, b]) > 1 || resume(n, v); - }); - }; - } - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); - } - } - function step(r) { - r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); - } - function fulfill(value) { - resume("next", value); - } - function reject(value) { - resume("throw", value); - } - function settle(f, v) { - if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); - } -} -function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { - throw e; - }), verb("return"), i[Symbol.iterator] = function () { - return this; - }, i; - function verb(n, f) { - i[n] = o[n] ? function (v) { - return (p = !p) ? { - value: __await(o[n](v)), - done: false - } : f ? f(v) : v; - } : f; - } -} -function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], - i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { - return this; - }, i); - function verb(n) { - i[n] = o[n] && function (v) { - return new Promise(function (resolve, reject) { - v = o[n](v), settle(resolve, reject, v.done, v.value); - }); - }; - } - function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function (v) { - resolve({ - value: v, - done: d - }); - }, reject); - } -} -function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { - Object.defineProperty(cooked, "raw", { - value: raw - }); - } else { - cooked.raw = raw; - } - return cooked; -} -; -var __setModuleDefault = Object.create ? function (o, v) { - Object.defineProperty(o, "default", { - enumerable: true, - value: v - }); -} : function (o, v) { - o["default"] = v; -}; -function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -} -function __importDefault(mod) { - return mod && mod.__esModule ? mod : { - default: mod - }; -} -function __classPrivateFieldGet(receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -} -function __classPrivateFieldSet(receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -} -function __classPrivateFieldIn(state, receiver) { - if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js -var isArrayLike = function (x) { - return x && typeof x.length === 'number' && typeof x !== 'function'; -}; -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/isPromise.js - -function isPromise(value) { - return isFunction_isFunction(value === null || value === void 0 ? void 0 : value.then); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js -function createErrorClass(createImpl) { - var _super = function (instance) { - Error.call(instance); - instance.stack = new Error().stack; - }; - var ctorFunc = createImpl(_super); - ctorFunc.prototype = Object.create(Error.prototype); - ctorFunc.prototype.constructor = ctorFunc; - return ctorFunc; -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js - -var UnsubscriptionError = createErrorClass(function (_super) { - return function UnsubscriptionErrorImpl(errors) { - _super(this); - this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { - return i + 1 + ") " + err.toString(); - }).join('\n ') : ''; - this.name = 'UnsubscriptionError'; - this.errors = errors; - }; -}); -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/arrRemove.js -function arrRemove(arr, item) { - if (arr) { - var index = arr.indexOf(item); - 0 <= index && arr.splice(index, 1); - } -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/Subscription.js - - - - -var Subscription = function () { - function Subscription(initialTeardown) { - this.initialTeardown = initialTeardown; - this.closed = false; - this._parentage = null; - this._finalizers = null; - } - Subscription.prototype.unsubscribe = function () { - var e_1, _a, e_2, _b; - var errors; - if (!this.closed) { - this.closed = true; - var _parentage = this._parentage; - if (_parentage) { - this._parentage = null; - if (Array.isArray(_parentage)) { - try { - for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) { - var parent_1 = _parentage_1_1.value; - parent_1.remove(this); - } - } catch (e_1_1) { - e_1 = { - error: e_1_1 - }; - } finally { - try { - if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1); - } finally { - if (e_1) throw e_1.error; - } - } - } else { - _parentage.remove(this); - } - } - var initialFinalizer = this.initialTeardown; - if (isFunction_isFunction(initialFinalizer)) { - try { - initialFinalizer(); - } catch (e) { - errors = e instanceof UnsubscriptionError ? e.errors : [e]; - } - } - var _finalizers = this._finalizers; - if (_finalizers) { - this._finalizers = null; - try { - for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) { - var finalizer = _finalizers_1_1.value; - try { - execFinalizer(finalizer); - } catch (err) { - errors = errors !== null && errors !== void 0 ? errors : []; - if (err instanceof UnsubscriptionError) { - errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors)); - } else { - errors.push(err); - } - } - } - } catch (e_2_1) { - e_2 = { - error: e_2_1 - }; - } finally { - try { - if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1); - } finally { - if (e_2) throw e_2.error; - } - } - } - if (errors) { - throw new UnsubscriptionError(errors); - } - } - }; - Subscription.prototype.add = function (teardown) { - var _a; - if (teardown && teardown !== this) { - if (this.closed) { - execFinalizer(teardown); - } else { - if (teardown instanceof Subscription) { - if (teardown.closed || teardown._hasParent(this)) { - return; - } - teardown._addParent(this); - } - (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown); - } - } - }; - Subscription.prototype._hasParent = function (parent) { - var _parentage = this._parentage; - return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent); - }; - Subscription.prototype._addParent = function (parent) { - var _parentage = this._parentage; - this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; - }; - Subscription.prototype._removeParent = function (parent) { - var _parentage = this._parentage; - if (_parentage === parent) { - this._parentage = null; - } else if (Array.isArray(_parentage)) { - arrRemove(_parentage, parent); - } - }; - Subscription.prototype.remove = function (teardown) { - var _finalizers = this._finalizers; - _finalizers && arrRemove(_finalizers, teardown); - if (teardown instanceof Subscription) { - teardown._removeParent(this); - } - }; - Subscription.EMPTY = function () { - var empty = new Subscription(); - empty.closed = true; - return empty; - }(); - return Subscription; -}(); - -var EMPTY_SUBSCRIPTION = Subscription.EMPTY; -function isSubscription(value) { - return value instanceof Subscription || value && 'closed' in value && isFunction_isFunction(value.remove) && isFunction_isFunction(value.add) && isFunction_isFunction(value.unsubscribe); -} -function execFinalizer(finalizer) { - if (isFunction_isFunction(finalizer)) { - finalizer(); - } else { - finalizer.unsubscribe(); - } -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/config.js -var config = { - onUnhandledError: null, - onStoppedNotification: null, - Promise: undefined, - useDeprecatedSynchronousErrorHandling: false, - useDeprecatedNextContext: false -}; -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js - -var timeoutProvider = { - setTimeout: function (handler, timeout) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - var delegate = timeoutProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { - return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args))); - } - return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args))); - }, - clearTimeout: function (handle) { - var delegate = timeoutProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle); - }, - delegate: undefined -}; -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js - - -function reportUnhandledError(err) { - timeoutProvider.setTimeout(function () { - var onUnhandledError = config.onUnhandledError; - if (onUnhandledError) { - onUnhandledError(err); - } else { - throw err; - } - }); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/noop.js -function noop() {} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/NotificationFactories.js -var COMPLETE_NOTIFICATION = function () { - return createNotification('C', undefined, undefined); -}(); -function errorNotification(error) { - return createNotification('E', undefined, error); -} -function nextNotification(value) { - return createNotification('N', value, undefined); -} -function createNotification(kind, value, error) { - return { - kind: kind, - value: value, - error: error - }; -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/errorContext.js - -var context = null; -function errorContext(cb) { - if (config.useDeprecatedSynchronousErrorHandling) { - var isRoot = !context; - if (isRoot) { - context = { - errorThrown: false, - error: null - }; - } - cb(); - if (isRoot) { - var _a = context, - errorThrown = _a.errorThrown, - error = _a.error; - context = null; - if (errorThrown) { - throw error; - } - } - } else { - cb(); - } -} -function captureError(err) { - if (config.useDeprecatedSynchronousErrorHandling && context) { - context.errorThrown = true; - context.error = err; - } -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/Subscriber.js - - - - - - - - - -var Subscriber = function (_super) { - __extends(Subscriber, _super); - function Subscriber(destination) { - var _this = _super.call(this) || this; - _this.isStopped = false; - if (destination) { - _this.destination = destination; - if (isSubscription(destination)) { - destination.add(_this); - } - } else { - _this.destination = EMPTY_OBSERVER; - } - return _this; - } - Subscriber.create = function (next, error, complete) { - return new SafeSubscriber(next, error, complete); - }; - Subscriber.prototype.next = function (value) { - if (this.isStopped) { - handleStoppedNotification(nextNotification(value), this); - } else { - this._next(value); - } - }; - Subscriber.prototype.error = function (err) { - if (this.isStopped) { - handleStoppedNotification(errorNotification(err), this); - } else { - this.isStopped = true; - this._error(err); - } - }; - Subscriber.prototype.complete = function () { - if (this.isStopped) { - handleStoppedNotification(COMPLETE_NOTIFICATION, this); - } else { - this.isStopped = true; - this._complete(); - } - }; - Subscriber.prototype.unsubscribe = function () { - if (!this.closed) { - this.isStopped = true; - _super.prototype.unsubscribe.call(this); - this.destination = null; - } - }; - Subscriber.prototype._next = function (value) { - this.destination.next(value); - }; - Subscriber.prototype._error = function (err) { - try { - this.destination.error(err); - } finally { - this.unsubscribe(); - } - }; - Subscriber.prototype._complete = function () { - try { - this.destination.complete(); - } finally { - this.unsubscribe(); - } - }; - return Subscriber; -}(Subscription); - -var _bind = Function.prototype.bind; -function bind(fn, thisArg) { - return _bind.call(fn, thisArg); -} -var ConsumerObserver = function () { - function ConsumerObserver(partialObserver) { - this.partialObserver = partialObserver; - } - ConsumerObserver.prototype.next = function (value) { - var partialObserver = this.partialObserver; - if (partialObserver.next) { - try { - partialObserver.next(value); - } catch (error) { - handleUnhandledError(error); - } - } - }; - ConsumerObserver.prototype.error = function (err) { - var partialObserver = this.partialObserver; - if (partialObserver.error) { - try { - partialObserver.error(err); - } catch (error) { - handleUnhandledError(error); - } - } else { - handleUnhandledError(err); - } - }; - ConsumerObserver.prototype.complete = function () { - var partialObserver = this.partialObserver; - if (partialObserver.complete) { - try { - partialObserver.complete(); - } catch (error) { - handleUnhandledError(error); - } - } - }; - return ConsumerObserver; -}(); -var SafeSubscriber = function (_super) { - __extends(SafeSubscriber, _super); - function SafeSubscriber(observerOrNext, error, complete) { - var _this = _super.call(this) || this; - var partialObserver; - if (isFunction_isFunction(observerOrNext) || !observerOrNext) { - partialObserver = { - next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined, - error: error !== null && error !== void 0 ? error : undefined, - complete: complete !== null && complete !== void 0 ? complete : undefined - }; - } else { - var context_1; - if (_this && config.useDeprecatedNextContext) { - context_1 = Object.create(observerOrNext); - context_1.unsubscribe = function () { - return _this.unsubscribe(); - }; - partialObserver = { - next: observerOrNext.next && bind(observerOrNext.next, context_1), - error: observerOrNext.error && bind(observerOrNext.error, context_1), - complete: observerOrNext.complete && bind(observerOrNext.complete, context_1) - }; - } else { - partialObserver = observerOrNext; - } - } - _this.destination = new ConsumerObserver(partialObserver); - return _this; - } - return SafeSubscriber; -}(Subscriber); - -function handleUnhandledError(error) { - if (config.useDeprecatedSynchronousErrorHandling) { - captureError(error); - } else { - reportUnhandledError(error); - } -} -function defaultErrorHandler(err) { - throw err; -} -function handleStoppedNotification(notification, subscriber) { - var onStoppedNotification = config.onStoppedNotification; - onStoppedNotification && timeoutProvider.setTimeout(function () { - return onStoppedNotification(notification, subscriber); - }); -} -var EMPTY_OBSERVER = { - closed: true, - next: noop, - error: defaultErrorHandler, - complete: noop -}; -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/symbol/observable.js -var observable = function () { - return typeof Symbol === 'function' && Symbol.observable || '@@observable'; -}(); -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/identity.js -function identity(x) { - return x; -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/pipe.js - -function pipe() { - var fns = []; - for (var _i = 0; _i < arguments.length; _i++) { - fns[_i] = arguments[_i]; - } - return pipeFromArray(fns); -} -function pipeFromArray(fns) { - if (fns.length === 0) { - return identity; - } - if (fns.length === 1) { - return fns[0]; - } - return function piped(input) { - return fns.reduce(function (prev, fn) { - return fn(prev); - }, input); - }; -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/Observable.js - - - - - - - -var Observable = function () { - function Observable(subscribe) { - if (subscribe) { - this._subscribe = subscribe; - } - } - Observable.prototype.lift = function (operator) { - var observable = new Observable(); - observable.source = this; - observable.operator = operator; - return observable; - }; - Observable.prototype.subscribe = function (observerOrNext, error, complete) { - var _this = this; - var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete); - errorContext(function () { - var _a = _this, - operator = _a.operator, - source = _a.source; - subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber)); - }); - return subscriber; - }; - Observable.prototype._trySubscribe = function (sink) { - try { - return this._subscribe(sink); - } catch (err) { - sink.error(err); - } - }; - Observable.prototype.forEach = function (next, promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var subscriber = new SafeSubscriber({ - next: function (value) { - try { - next(value); - } catch (err) { - reject(err); - subscriber.unsubscribe(); - } - }, - error: reject, - complete: resolve - }); - _this.subscribe(subscriber); - }); - }; - Observable.prototype._subscribe = function (subscriber) { - var _a; - return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber); - }; - Observable.prototype[observable] = function () { - return this; - }; - Observable.prototype.pipe = function () { - var operations = []; - for (var _i = 0; _i < arguments.length; _i++) { - operations[_i] = arguments[_i]; - } - return pipeFromArray(operations)(this); - }; - Observable.prototype.toPromise = function (promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var value; - _this.subscribe(function (x) { - return value = x; - }, function (err) { - return reject(err); - }, function () { - return resolve(value); - }); - }); - }; - Observable.create = function (subscribe) { - return new Observable(subscribe); - }; - return Observable; -}(); - -function getPromiseCtor(promiseCtor) { - var _a; - return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise; -} -function isObserver(value) { - return value && isFunction_isFunction(value.next) && isFunction_isFunction(value.error) && isFunction_isFunction(value.complete); -} -function isSubscriber(value) { - return value && value instanceof Subscriber || isObserver(value) && isSubscription(value); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js - - -function isInteropObservable(input) { - return isFunction_isFunction(input[observable]); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js - -function isAsyncIterable(obj) { - return Symbol.asyncIterator && isFunction_isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js -function createInvalidObservableTypeError(input) { - return new TypeError("You provided " + (input !== null && typeof input === 'object' ? 'an invalid object' : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/symbol/iterator.js -function getSymbolIterator() { - if (typeof Symbol !== 'function' || !Symbol.iterator) { - return '@@iterator'; - } - return Symbol.iterator; -} -var iterator_iterator = getSymbolIterator(); -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/isIterable.js - - -function isIterable(input) { - return isFunction_isFunction(input === null || input === void 0 ? void 0 : input[iterator_iterator]); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js - - -function readableStreamLikeToAsyncGenerator(readableStream) { - return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() { - var reader, _a, value, done; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - reader = readableStream.getReader(); - _b.label = 1; - case 1: - _b.trys.push([1,, 9, 10]); - _b.label = 2; - case 2: - if (false) {} - return [4, __await(reader.read())]; - case 3: - _a = _b.sent(), value = _a.value, done = _a.done; - if (!done) return [3, 5]; - return [4, __await(void 0)]; - case 4: - return [2, _b.sent()]; - case 5: - return [4, __await(value)]; - case 6: - return [4, _b.sent()]; - case 7: - _b.sent(); - return [3, 2]; - case 8: - return [3, 10]; - case 9: - reader.releaseLock(); - return [7]; - case 10: - return [2]; - } - }); - }); -} -function isReadableStreamLike(obj) { - return isFunction_isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js - - - - - - - - - - - - -function innerFrom(input) { - if (input instanceof Observable) { - return input; - } - if (input != null) { - if (isInteropObservable(input)) { - return fromInteropObservable(input); - } - if (isArrayLike(input)) { - return fromArrayLike(input); - } - if (isPromise(input)) { - return fromPromise(input); - } - if (isAsyncIterable(input)) { - return fromAsyncIterable(input); - } - if (isIterable(input)) { - return fromIterable(input); - } - if (isReadableStreamLike(input)) { - return fromReadableStreamLike(input); - } - } - throw createInvalidObservableTypeError(input); -} -function fromInteropObservable(obj) { - return new Observable(function (subscriber) { - var obs = obj[observable](); - if (isFunction_isFunction(obs.subscribe)) { - return obs.subscribe(subscriber); - } - throw new TypeError('Provided object does not correctly implement Symbol.observable'); - }); -} -function fromArrayLike(array) { - return new Observable(function (subscriber) { - for (var i = 0; i < array.length && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); - }); -} -function fromPromise(promise) { - return new Observable(function (subscriber) { - promise.then(function (value) { - if (!subscriber.closed) { - subscriber.next(value); - subscriber.complete(); - } - }, function (err) { - return subscriber.error(err); - }).then(null, reportUnhandledError); - }); -} -function fromIterable(iterable) { - return new Observable(function (subscriber) { - var e_1, _a; - try { - for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) { - var value = iterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return; - } - } - } catch (e_1_1) { - e_1 = { - error: e_1_1 - }; - } finally { - try { - if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1); - } finally { - if (e_1) throw e_1.error; - } - } - subscriber.complete(); - }); -} -function fromAsyncIterable(asyncIterable) { - return new Observable(function (subscriber) { - process(asyncIterable, subscriber).catch(function (err) { - return subscriber.error(err); - }); - }); -} -function fromReadableStreamLike(readableStream) { - return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream)); -} -function process(asyncIterable, subscriber) { - var asyncIterable_1, asyncIterable_1_1; - var e_2, _a; - return __awaiter(this, void 0, void 0, function () { - var value, e_2_1; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _b.trys.push([0, 5, 6, 11]); - asyncIterable_1 = __asyncValues(asyncIterable); - _b.label = 1; - case 1: - return [4, asyncIterable_1.next()]; - case 2: - if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4]; - value = asyncIterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return [2]; - } - _b.label = 3; - case 3: - return [3, 1]; - case 4: - return [3, 11]; - case 5: - e_2_1 = _b.sent(); - e_2 = { - error: e_2_1 - }; - return [3, 11]; - case 6: - _b.trys.push([6,, 9, 10]); - if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8]; - return [4, _a.call(asyncIterable_1)]; - case 7: - _b.sent(); - _b.label = 8; - case 8: - return [3, 10]; - case 9: - if (e_2) throw e_2.error; - return [7]; - case 10: - return [7]; - case 11: - subscriber.complete(); - return [2]; - } - }); - }); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js -function executeSchedule(parentSubscription, scheduler, work, delay, repeat) { - if (delay === void 0) { - delay = 0; - } - if (repeat === void 0) { - repeat = false; - } - var scheduleSubscription = scheduler.schedule(function () { - work(); - if (repeat) { - parentSubscription.add(this.schedule(null, delay)); - } else { - this.unsubscribe(); - } - }, delay); - parentSubscription.add(scheduleSubscription); - if (!repeat) { - return scheduleSubscription; - } -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/util/lift.js - -function hasLift(source) { - return isFunction_isFunction(source === null || source === void 0 ? void 0 : source.lift); -} -function operate(init) { - return function (source) { - if (hasLift(source)) { - return source.lift(function (liftedSource) { - try { - return init(liftedSource, this); - } catch (err) { - this.error(err); - } - }); - } - throw new TypeError('Unable to lift unknown Observable type'); - }; -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js - - -function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) { - return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize); -} -var OperatorSubscriber = function (_super) { - __extends(OperatorSubscriber, _super); - function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { - var _this = _super.call(this, destination) || this; - _this.onFinalize = onFinalize; - _this.shouldUnsubscribe = shouldUnsubscribe; - _this._next = onNext ? function (value) { - try { - onNext(value); - } catch (err) { - destination.error(err); - } - } : _super.prototype._next; - _this._error = onError ? function (err) { - try { - onError(err); - } catch (err) { - destination.error(err); - } finally { - this.unsubscribe(); - } - } : _super.prototype._error; - _this._complete = onComplete ? function () { - try { - onComplete(); - } catch (err) { - destination.error(err); - } finally { - this.unsubscribe(); - } - } : _super.prototype._complete; - return _this; - } - OperatorSubscriber.prototype.unsubscribe = function () { - var _a; - if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { - var closed_1 = this.closed; - _super.prototype.unsubscribe.call(this); - !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this)); - } - }; - return OperatorSubscriber; -}(Subscriber); - -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/operators/observeOn.js - - - -function observeOn(scheduler, delay) { - if (delay === void 0) { - delay = 0; - } - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - return executeSchedule(subscriber, scheduler, function () { - return subscriber.next(value); - }, delay); - }, function () { - return executeSchedule(subscriber, scheduler, function () { - return subscriber.complete(); - }, delay); - }, function (err) { - return executeSchedule(subscriber, scheduler, function () { - return subscriber.error(err); - }, delay); - })); - }); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js - -function subscribeOn(scheduler, delay) { - if (delay === void 0) { - delay = 0; - } - return operate(function (source, subscriber) { - subscriber.add(scheduler.schedule(function () { - return source.subscribe(subscriber); - }, delay)); - }); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js - - - -function scheduleObservable(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js - - - -function schedulePromise(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js - -function scheduleArray(input, scheduler) { - return new Observable(function (subscriber) { - var i = 0; - return scheduler.schedule(function () { - if (i === input.length) { - subscriber.complete(); - } else { - subscriber.next(input[i++]); - if (!subscriber.closed) { - this.schedule(); - } - } - }); - }); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js - - - - -function scheduleIterable(input, scheduler) { - return new Observable(function (subscriber) { - var iterator; - executeSchedule(subscriber, scheduler, function () { - iterator = input[iterator_iterator](); - executeSchedule(subscriber, scheduler, function () { - var _a; - var value; - var done; - try { - _a = iterator.next(), value = _a.value, done = _a.done; - } catch (err) { - subscriber.error(err); - return; - } - if (done) { - subscriber.complete(); - } else { - subscriber.next(value); - } - }, 0, true); - }); - return function () { - return isFunction_isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return(); - }; - }); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js - - -function scheduleAsyncIterable(input, scheduler) { - if (!input) { - throw new Error('Iterable cannot be null'); - } - return new Observable(function (subscriber) { - executeSchedule(subscriber, scheduler, function () { - var iterator = input[Symbol.asyncIterator](); - executeSchedule(subscriber, scheduler, function () { - iterator.next().then(function (result) { - if (result.done) { - subscriber.complete(); - } else { - subscriber.next(result.value); - } - }); - }, 0, true); - }); - }); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js - - -function scheduleReadableStreamLike(input, scheduler) { - return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js - - - - - - - - - - - - - -function scheduled(input, scheduler) { - if (input != null) { - if (isInteropObservable(input)) { - return scheduleObservable(input, scheduler); - } - if (isArrayLike(input)) { - return scheduleArray(input, scheduler); - } - if (isPromise(input)) { - return schedulePromise(input, scheduler); - } - if (isAsyncIterable(input)) { - return scheduleAsyncIterable(input, scheduler); - } - if (isIterable(input)) { - return scheduleIterable(input, scheduler); - } - if (isReadableStreamLike(input)) { - return scheduleReadableStreamLike(input, scheduler); - } - } - throw createInvalidObservableTypeError(input); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/observable/from.js - - -function from(input, scheduler) { - return scheduler ? scheduled(input, scheduler) : innerFrom(input); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/observable/of.js - - -function of() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - return from(args, scheduler); -} -;// CONCATENATED MODULE: ../../node_modules/rxjs/dist/esm5/internal/operators/switchMap.js - - - -function switchMap(project, resultSelector) { - return operate(function (source, subscriber) { - var innerSubscriber = null; - var index = 0; - var isComplete = false; - var checkComplete = function () { - return isComplete && !innerSubscriber && subscriber.complete(); - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe(); - var innerIndex = 0; - var outerIndex = index++; - innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = createOperatorSubscriber(subscriber, function (innerValue) { - return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); - }, function () { - innerSubscriber = null; - checkComplete(); - })); - }, function () { - isComplete = true; - checkComplete(); - })); - }); -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/domain.js -/** - * Check if `vhost` is a valid suffix of `hostname` (top-domain) - * - * It means that `vhost` needs to be a suffix of `hostname` and we then need to - * make sure that: either they are equal, or the character preceding `vhost` in - * `hostname` is a '.' (it should not be a partial label). - * - * * hostname = 'not.evil.com' and vhost = 'vil.com' => not ok - * * hostname = 'not.evil.com' and vhost = 'evil.com' => ok - * * hostname = 'not.evil.com' and vhost = 'not.evil.com' => ok - */ -function shareSameDomainSuffix(hostname, vhost) { - if (hostname.endsWith(vhost)) { - return hostname.length === vhost.length || hostname[hostname.length - vhost.length - 1] === '.'; - } - return false; -} -/** - * Given a hostname and its public suffix, extract the general domain. - */ -function extractDomainWithSuffix(hostname, publicSuffix) { - // Locate the index of the last '.' in the part of the `hostname` preceding - // the public suffix. - // - // examples: - // 1. not.evil.co.uk => evil.co.uk - // ^ ^ - // | | start of public suffix - // | index of the last dot - // - // 2. example.co.uk => example.co.uk - // ^ ^ - // | | start of public suffix - // | - // | (-1) no dot found before the public suffix - const publicSuffixIndex = hostname.length - publicSuffix.length - 2; - const lastDotBeforeSuffixIndex = hostname.lastIndexOf('.', publicSuffixIndex); - // No '.' found, then `hostname` is the general domain (no sub-domain) - if (lastDotBeforeSuffixIndex === -1) { - return hostname; - } - // Extract the part between the last '.' - return hostname.slice(lastDotBeforeSuffixIndex + 1); -} -/** - * Detects the domain based on rules and upon and a host string - */ -function getDomain(suffix, hostname, options) { - // Check if `hostname` ends with a member of `validHosts`. - if (options.validHosts !== null) { - const validHosts = options.validHosts; - for (const vhost of validHosts) { - if ( /*@__INLINE__*/shareSameDomainSuffix(hostname, vhost)) { - return vhost; - } - } - } - let numberOfLeadingDots = 0; - if (hostname.startsWith('.')) { - while (numberOfLeadingDots < hostname.length && hostname[numberOfLeadingDots] === '.') { - numberOfLeadingDots += 1; - } - } - // If `hostname` is a valid public suffix, then there is no domain to return. - // Since we already know that `getPublicSuffix` returns a suffix of `hostname` - // there is no need to perform a string comparison and we only compare the - // size. - if (suffix.length === hostname.length - numberOfLeadingDots) { - return null; - } - // To extract the general domain, we start by identifying the public suffix - // (if any), then consider the domain to be the public suffix with one added - // level of depth. (e.g.: if hostname is `not.evil.co.uk` and public suffix: - // `co.uk`, then we take one more level: `evil`, giving the final result: - // `evil.co.uk`). - return /*@__INLINE__*/extractDomainWithSuffix(hostname, suffix); -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/domain-without-suffix.js -/** - * Return the part of domain without suffix. - * - * Example: for domain 'foo.com', the result would be 'foo'. - */ -function getDomainWithoutSuffix(domain, suffix) { - // Note: here `domain` and `suffix` cannot have the same length because in - // this case we set `domain` to `null` instead. It is thus safe to assume - // that `suffix` is shorter than `domain`. - return domain.slice(0, -suffix.length - 1); -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/extract-hostname.js -/** - * @param url - URL we want to extract a hostname from. - * @param urlIsValidHostname - hint from caller; true if `url` is already a valid hostname. - */ -function extractHostname(url, urlIsValidHostname) { - let start = 0; - let end = url.length; - let hasUpper = false; - // If url is not already a valid hostname, then try to extract hostname. - if (!urlIsValidHostname) { - // Special handling of data URLs - if (url.startsWith('data:')) { - return null; - } - // Trim leading spaces - while (start < url.length && url.charCodeAt(start) <= 32) { - start += 1; - } - // Trim trailing spaces - while (end > start + 1 && url.charCodeAt(end - 1) <= 32) { - end -= 1; - } - // Skip scheme. - if (url.charCodeAt(start) === 47 /* '/' */ && url.charCodeAt(start + 1) === 47 /* '/' */) { - start += 2; - } else { - const indexOfProtocol = url.indexOf(':/', start); - if (indexOfProtocol !== -1) { - // Implement fast-path for common protocols. We expect most protocols - // should be one of these 4 and thus we will not need to perform the - // more expansive validity check most of the time. - const protocolSize = indexOfProtocol - start; - const c0 = url.charCodeAt(start); - const c1 = url.charCodeAt(start + 1); - const c2 = url.charCodeAt(start + 2); - const c3 = url.charCodeAt(start + 3); - const c4 = url.charCodeAt(start + 4); - if (protocolSize === 5 && c0 === 104 /* 'h' */ && c1 === 116 /* 't' */ && c2 === 116 /* 't' */ && c3 === 112 /* 'p' */ && c4 === 115 /* 's' */) { - // https - } else if (protocolSize === 4 && c0 === 104 /* 'h' */ && c1 === 116 /* 't' */ && c2 === 116 /* 't' */ && c3 === 112 /* 'p' */) { - // http - } else if (protocolSize === 3 && c0 === 119 /* 'w' */ && c1 === 115 /* 's' */ && c2 === 115 /* 's' */) { - // wss - } else if (protocolSize === 2 && c0 === 119 /* 'w' */ && c1 === 115 /* 's' */) { - // ws - } else { - // Check that scheme is valid - for (let i = start; i < indexOfProtocol; i += 1) { - const lowerCaseCode = url.charCodeAt(i) | 32; - if (!(lowerCaseCode >= 97 && lowerCaseCode <= 122 || - // [a, z] - lowerCaseCode >= 48 && lowerCaseCode <= 57 || - // [0, 9] - lowerCaseCode === 46 || - // '.' - lowerCaseCode === 45 || - // '-' - lowerCaseCode === 43 // '+' - )) { - return null; - } - } - } - // Skip 0, 1 or more '/' after ':/' - start = indexOfProtocol + 2; - while (url.charCodeAt(start) === 47 /* '/' */) { - start += 1; - } - } - } - // Detect first occurrence of '/', '?' or '#'. We also keep track of the - // last occurrence of '@', ']' or ':' to speed-up subsequent parsing of - // (respectively), identifier, ipv6 or port. - let indexOfIdentifier = -1; - let indexOfClosingBracket = -1; - let indexOfPort = -1; - for (let i = start; i < end; i += 1) { - const code = url.charCodeAt(i); - if (code === 35 || - // '#' - code === 47 || - // '/' - code === 63 // '?' - ) { - end = i; - break; - } else if (code === 64) { - // '@' - indexOfIdentifier = i; - } else if (code === 93) { - // ']' - indexOfClosingBracket = i; - } else if (code === 58) { - // ':' - indexOfPort = i; - } else if (code >= 65 && code <= 90) { - hasUpper = true; - } - } - // Detect identifier: '@' - if (indexOfIdentifier !== -1 && indexOfIdentifier > start && indexOfIdentifier < end) { - start = indexOfIdentifier + 1; - } - // Handle ipv6 addresses - if (url.charCodeAt(start) === 91 /* '[' */) { - if (indexOfClosingBracket !== -1) { - return url.slice(start + 1, indexOfClosingBracket).toLowerCase(); - } - return null; - } else if (indexOfPort !== -1 && indexOfPort > start && indexOfPort < end) { - // Detect port: ':' - end = indexOfPort; - } - } - // Trim trailing dots - while (end > start + 1 && url.charCodeAt(end - 1) === 46 /* '.' */) { - end -= 1; - } - const hostname = start !== 0 || end !== url.length ? url.slice(start, end) : url; - if (hasUpper) { - return hostname.toLowerCase(); - } - return hostname; -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/is-ip.js -/** - * Check if a hostname is an IP. You should be aware that this only works - * because `hostname` is already garanteed to be a valid hostname! - */ -function isProbablyIpv4(hostname) { - // Cannot be shorted than 1.1.1.1 - if (hostname.length < 7) { - return false; - } - // Cannot be longer than: 255.255.255.255 - if (hostname.length > 15) { - return false; - } - let numberOfDots = 0; - for (let i = 0; i < hostname.length; i += 1) { - const code = hostname.charCodeAt(i); - if (code === 46 /* '.' */) { - numberOfDots += 1; - } else if (code < 48 /* '0' */ || code > 57 /* '9' */) { - return false; - } - } - return numberOfDots === 3 && hostname.charCodeAt(0) !== 46 /* '.' */ && hostname.charCodeAt(hostname.length - 1) !== 46 /* '.' */; -} -/** - * Similar to isProbablyIpv4. - */ -function isProbablyIpv6(hostname) { - if (hostname.length < 3) { - return false; - } - let start = hostname.startsWith('[') ? 1 : 0; - let end = hostname.length; - if (hostname[end - 1] === ']') { - end -= 1; - } - // We only consider the maximum size of a normal IPV6. Note that this will - // fail on so-called "IPv4 mapped IPv6 addresses" but this is a corner-case - // and a proper validation library should be used for these. - if (end - start > 39) { - return false; - } - let hasColon = false; - for (; start < end; start += 1) { - const code = hostname.charCodeAt(start); - if (code === 58 /* ':' */) { - hasColon = true; - } else if (!(code >= 48 && code <= 57 || - // 0-9 - code >= 97 && code <= 102 || - // a-f - code >= 65 && code <= 90 // A-F - )) { - return false; - } - } - return hasColon; -} -/** - * Check if `hostname` is *probably* a valid ip addr (either ipv6 or ipv4). - * This *will not* work on any string. We need `hostname` to be a valid - * hostname. - */ -function isIp(hostname) { - return isProbablyIpv6(hostname) || isProbablyIpv4(hostname); -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/is-valid.js -/** - * Implements fast shallow verification of hostnames. This does not perform a - * struct check on the content of labels (classes of Unicode characters, etc.) - * but instead check that the structure is valid (number of labels, length of - * labels, etc.). - * - * If you need stricter validation, consider using an external library. - */ -function isValidAscii(code) { - return code >= 97 && code <= 122 || code >= 48 && code <= 57 || code > 127; -} -/** - * Check if a hostname string is valid. It's usually a preliminary check before - * trying to use getDomain or anything else. - * - * Beware: it does not check if the TLD exists. - */ -/* harmony default export */ function is_valid(hostname) { - if (hostname.length > 255) { - return false; - } - if (hostname.length === 0) { - return false; - } - if ( /*@__INLINE__*/!isValidAscii(hostname.charCodeAt(0)) && hostname.charCodeAt(0) !== 46 && - // '.' (dot) - hostname.charCodeAt(0) !== 95 // '_' (underscore) - ) { - return false; - } - // Validate hostname according to RFC - let lastDotIndex = -1; - let lastCharCode = -1; - const len = hostname.length; - for (let i = 0; i < len; i += 1) { - const code = hostname.charCodeAt(i); - if (code === 46 /* '.' */) { - if ( - // Check that previous label is < 63 bytes long (64 = 63 + '.') - i - lastDotIndex > 64 || - // Check that previous character was not already a '.' - lastCharCode === 46 || - // Check that the previous label does not end with a '-' (dash) - lastCharCode === 45 || - // Check that the previous label does not end with a '_' (underscore) - lastCharCode === 95) { - return false; - } - lastDotIndex = i; - } else if (!( /*@__INLINE__*/isValidAscii(code) || code === 45 || code === 95)) { - // Check if there is a forbidden character in the label - return false; - } - lastCharCode = code; - } - return ( - // Check that last label is shorter than 63 chars - len - lastDotIndex - 1 <= 63 && - // Check that the last character is an allowed trailing label character. - // Since we already checked that the char is a valid hostname character, - // we only need to check that it's different from '-'. - lastCharCode !== 45 - ); -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/options.js -function setDefaultsImpl({ - allowIcannDomains = true, - allowPrivateDomains = false, - detectIp = true, - extractHostname = true, - mixedInputs = true, - validHosts = null, - validateHostname = true -}) { - return { - allowIcannDomains, - allowPrivateDomains, - detectIp, - extractHostname, - mixedInputs, - validHosts, - validateHostname - }; -} -const DEFAULT_OPTIONS = /*@__INLINE__*/setDefaultsImpl({}); -function setDefaults(options) { - if (options === undefined) { - return DEFAULT_OPTIONS; - } - return /*@__INLINE__*/setDefaultsImpl(options); -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/subdomain.js -/** - * Returns the subdomain of a hostname string - */ -function getSubdomain(hostname, domain) { - // If `hostname` and `domain` are the same, then there is no sub-domain - if (domain.length === hostname.length) { - return ''; - } - return hostname.slice(0, -domain.length - 1); -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/factory.js -/** - * Implement a factory allowing to plug different implementations of suffix - * lookup (e.g.: using a trie or the packed hashes datastructures). This is used - * and exposed in `tldts.ts` and `tldts-experimental.ts` bundle entrypoints. - */ - - - - - - - -function getEmptyResult() { - return { - domain: null, - domainWithoutSuffix: null, - hostname: null, - isIcann: null, - isIp: null, - isPrivate: null, - publicSuffix: null, - subdomain: null - }; -} -function factory_resetResult(result) { - result.domain = null; - result.domainWithoutSuffix = null; - result.hostname = null; - result.isIcann = null; - result.isIp = null; - result.isPrivate = null; - result.publicSuffix = null; - result.subdomain = null; -} -function factory_parseImpl(url, step, suffixLookup, partialOptions, result) { - const options = /*@__INLINE__*/setDefaults(partialOptions); - // Very fast approximate check to make sure `url` is a string. This is needed - // because the library will not necessarily be used in a typed setup and - // values of arbitrary types might be given as argument. - if (typeof url !== 'string') { - return result; - } - // Extract hostname from `url` only if needed. This can be made optional - // using `options.extractHostname`. This option will typically be used - // whenever we are sure the inputs to `parse` are already hostnames and not - // arbitrary URLs. - // - // `mixedInput` allows to specify if we expect a mix of URLs and hostnames - // as input. If only hostnames are expected then `extractHostname` can be - // set to `false` to speed-up parsing. If only URLs are expected then - // `mixedInputs` can be set to `false`. The `mixedInputs` is only a hint - // and will not change the behavior of the library. - if (!options.extractHostname) { - result.hostname = url; - } else if (options.mixedInputs) { - result.hostname = extractHostname(url, is_valid(url)); - } else { - result.hostname = extractHostname(url, false); - } - if (step === 0 /* FLAG.HOSTNAME */ || result.hostname === null) { - return result; - } - // Check if `hostname` is a valid ip address - if (options.detectIp) { - result.isIp = isIp(result.hostname); - if (result.isIp) { - return result; - } - } - // Perform optional hostname validation. If hostname is not valid, no need to - // go further as there will be no valid domain or sub-domain. - if (options.validateHostname && options.extractHostname && !is_valid(result.hostname)) { - result.hostname = null; - return result; - } - // Extract public suffix - suffixLookup(result.hostname, options, result); - if (step === 2 /* FLAG.PUBLIC_SUFFIX */ || result.publicSuffix === null) { - return result; - } - // Extract domain - result.domain = getDomain(result.publicSuffix, result.hostname, options); - if (step === 3 /* FLAG.DOMAIN */ || result.domain === null) { - return result; - } - // Extract subdomain - result.subdomain = getSubdomain(result.hostname, result.domain); - if (step === 4 /* FLAG.SUB_DOMAIN */) { - return result; - } - // Extract domain without suffix - result.domainWithoutSuffix = getDomainWithoutSuffix(result.domain, result.publicSuffix); - return result; -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/src/lookup/fast-path.js -/* harmony default export */ function fast_path(hostname, options, out) { - // Fast path for very popular suffixes; this allows to by-pass lookup - // completely as well as any extra allocation or string manipulation. - if (!options.allowPrivateDomains && hostname.length > 3) { - const last = hostname.length - 1; - const c3 = hostname.charCodeAt(last); - const c2 = hostname.charCodeAt(last - 1); - const c1 = hostname.charCodeAt(last - 2); - const c0 = hostname.charCodeAt(last - 3); - if (c3 === 109 /* 'm' */ && c2 === 111 /* 'o' */ && c1 === 99 /* 'c' */ && c0 === 46 /* '.' */) { - out.isIcann = true; - out.isPrivate = false; - out.publicSuffix = 'com'; - return true; - } else if (c3 === 103 /* 'g' */ && c2 === 114 /* 'r' */ && c1 === 111 /* 'o' */ && c0 === 46 /* '.' */) { - out.isIcann = true; - out.isPrivate = false; - out.publicSuffix = 'org'; - return true; - } else if (c3 === 117 /* 'u' */ && c2 === 100 /* 'd' */ && c1 === 101 /* 'e' */ && c0 === 46 /* '.' */) { - out.isIcann = true; - out.isPrivate = false; - out.publicSuffix = 'edu'; - return true; - } else if (c3 === 118 /* 'v' */ && c2 === 111 /* 'o' */ && c1 === 103 /* 'g' */ && c0 === 46 /* '.' */) { - out.isIcann = true; - out.isPrivate = false; - out.publicSuffix = 'gov'; - return true; - } else if (c3 === 116 /* 't' */ && c2 === 101 /* 'e' */ && c1 === 110 /* 'n' */ && c0 === 46 /* '.' */) { - out.isIcann = true; - out.isPrivate = false; - out.publicSuffix = 'net'; - return true; - } else if (c3 === 101 /* 'e' */ && c2 === 100 /* 'd' */ && c1 === 46 /* '.' */) { - out.isIcann = true; - out.isPrivate = false; - out.publicSuffix = 'de'; - return true; - } - } - return false; -} -;// CONCATENATED MODULE: ../../node_modules/tldts-core/dist/es6/index.js - - - -;// CONCATENATED MODULE: ../../node_modules/tldts/dist/es6/src/data/trie.js -const exceptions = function () { - const _0 = [1, {}], - _1 = [0, { - "city": _0 - }]; - const exceptions = [0, { - "ck": [0, { - "www": _0 - }], - "jp": [0, { - "kawasaki": _1, - "kitakyushu": _1, - "kobe": _1, - "nagoya": _1, - "sapporo": _1, - "sendai": _1, - "yokohama": _1 - }] - }]; - return exceptions; -}(); -const rules = function () { - const _2 = [1, {}], - _3 = [2, {}], - _4 = [1, { - "gov": _2, - "com": _2, - "org": _2, - "net": _2, - "edu": _2 - }], - _5 = [0, { - "*": _3 - }], - _6 = [1, { - "blogspot": _3 - }], - _7 = [1, { - "gov": _2 - }], - _8 = [0, { - "notebook": _3, - "studio": _3 - }], - _9 = [0, { - "notebook": _3 - }], - _10 = [0, { - "notebook": _3, - "notebook-fips": _3, - "studio": _3 - }], - _11 = [0, { - "notebook": _3, - "notebook-fips": _3, - "studio": _3, - "studio-fips": _3 - }], - _12 = [0, { - "*": _2 - }], - _13 = [0, { - "cloud": _3 - }], - _14 = [1, { - "co": _3 - }], - _15 = [2, { - "nodes": _3 - }], - _16 = [0, { - "s3": _3, - "s3-accesspoint": _3, - "s3-website": _3 - }], - _17 = [0, { - "s3": _3, - "s3-accesspoint": _3 - }], - _18 = [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _17, - "s3": _3, - "s3-accesspoint": _3, - "s3-object-lambda": _3, - "s3-website": _3 - }], - _19 = [0, { - "direct": _3 - }], - _20 = [2, { - "id": _3 - }], - _21 = [0, { - "webview-assets": _3 - }], - _22 = [0, { - "vfs": _3, - "webview-assets": _3 - }], - _23 = [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _16, - "s3": _3, - "s3-accesspoint": _3, - "s3-object-lambda": _3, - "s3-website": _3, - "aws-cloud9": _21, - "cloud9": _22 - }], - _24 = [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _17, - "s3": _3, - "s3-accesspoint": _3, - "s3-object-lambda": _3, - "s3-website": _3, - "aws-cloud9": _21, - "cloud9": _22 - }], - _25 = [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _16, - "s3": _3, - "s3-accesspoint": _3, - "s3-object-lambda": _3, - "s3-website": _3, - "analytics-gateway": _3, - "aws-cloud9": _21, - "cloud9": _22 - }], - _26 = [0, { - "execute-api": _3, - "dualstack": _17, - "s3": _3, - "s3-accesspoint": _3, - "s3-object-lambda": _3, - "s3-website": _3 - }], - _27 = [0, { - "s3": _3, - "s3-accesspoint": _3, - "s3-accesspoint-fips": _3, - "s3-fips": _3, - "s3-website": _3 - }], - _28 = [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _27, - "s3": _3, - "s3-accesspoint": _3, - "s3-accesspoint-fips": _3, - "s3-fips": _3, - "s3-object-lambda": _3, - "s3-website": _3, - "aws-cloud9": _21, - "cloud9": _22 - }], - _29 = [0, { - "s3": _3, - "s3-accesspoint": _3, - "s3-accesspoint-fips": _3, - "s3-fips": _3 - }], - _30 = [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _29, - "s3": _3, - "s3-accesspoint": _3, - "s3-accesspoint-fips": _3, - "s3-fips": _3, - "s3-object-lambda": _3, - "s3-website": _3 - }], - _31 = [0, { - "auth": _3 - }], - _32 = [0, { - "auth": _3, - "auth-fips": _3 - }], - _33 = [0, { - "apps": _3 - }], - _34 = [0, { - "paas": _3 - }], - _35 = [0, { - "app": _3 - }], - _36 = [2, { - "eu": _3 - }], - _37 = [0, { - "site": _3 - }], - _38 = [0, { - "pages": _3 - }], - _39 = [1, { - "com": _2, - "edu": _2, - "net": _2, - "org": _2 - }], - _40 = [0, { - "j": _3 - }], - _41 = [0, { - "jelastic": _3 - }], - _42 = [0, { - "user": _3 - }], - _43 = [1, { - "ybo": _3 - }], - _44 = [0, { - "cust": _3, - "reservd": _3 - }], - _45 = [0, { - "cust": _3 - }], - _46 = [1, { - "gov": _2, - "edu": _2, - "mil": _2, - "com": _2, - "org": _2, - "net": _2 - }], - _47 = [0, { - "s3": _3 - }], - _48 = [1, { - "edu": _2, - "biz": _2, - "net": _2, - "org": _2, - "gov": _2, - "info": _2, - "com": _2 - }], - _49 = [1, { - "gov": _2, - "blogspot": _3 - }], - _50 = [1, { - "framer": _3 - }], - _51 = [1, { - "barsy": _3 - }], - _52 = [0, { - "forgot": _3 - }], - _53 = [1, { - "gs": _2 - }], - _54 = [0, { - "nes": _2 - }], - _55 = [1, { - "k12": _2, - "cc": _2, - "lib": _2 - }], - _56 = [1, { - "cc": _2, - "lib": _2 - }]; - const rules = [0, { - "ac": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "net": _2, - "mil": _2, - "org": _2, - "drr": _3 - }], - "ad": [1, { - "nom": _2 - }], - "ae": [1, { - "co": _2, - "net": _2, - "org": _2, - "sch": _2, - "ac": _2, - "gov": _2, - "mil": _2, - "blogspot": _3 - }], - "aero": [1, { - "accident-investigation": _2, - "accident-prevention": _2, - "aerobatic": _2, - "aeroclub": _2, - "aerodrome": _2, - "agents": _2, - "aircraft": _2, - "airline": _2, - "airport": _2, - "air-surveillance": _2, - "airtraffic": _2, - "air-traffic-control": _2, - "ambulance": _2, - "amusement": _2, - "association": _2, - "author": _2, - "ballooning": _2, - "broker": _2, - "caa": _2, - "cargo": _2, - "catering": _2, - "certification": _2, - "championship": _2, - "charter": _2, - "civilaviation": _2, - "club": _2, - "conference": _2, - "consultant": _2, - "consulting": _2, - "control": _2, - "council": _2, - "crew": _2, - "design": _2, - "dgca": _2, - "educator": _2, - "emergency": _2, - "engine": _2, - "engineer": _2, - "entertainment": _2, - "equipment": _2, - "exchange": _2, - "express": _2, - "federation": _2, - "flight": _2, - "fuel": _2, - "gliding": _2, - "government": _2, - "groundhandling": _2, - "group": _2, - "hanggliding": _2, - "homebuilt": _2, - "insurance": _2, - "journal": _2, - "journalist": _2, - "leasing": _2, - "logistics": _2, - "magazine": _2, - "maintenance": _2, - "media": _2, - "microlight": _2, - "modelling": _2, - "navigation": _2, - "parachuting": _2, - "paragliding": _2, - "passenger-association": _2, - "pilot": _2, - "press": _2, - "production": _2, - "recreation": _2, - "repbody": _2, - "res": _2, - "research": _2, - "rotorcraft": _2, - "safety": _2, - "scientist": _2, - "services": _2, - "show": _2, - "skydiving": _2, - "software": _2, - "student": _2, - "trader": _2, - "trading": _2, - "trainer": _2, - "union": _2, - "workinggroup": _2, - "works": _2 - }], - "af": _4, - "ag": [1, { - "com": _2, - "org": _2, - "net": _2, - "co": _2, - "nom": _2 - }], - "ai": [1, { - "off": _2, - "com": _2, - "net": _2, - "org": _2, - "uwu": _3 - }], - "al": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "mil": _2, - "net": _2, - "org": _2, - "blogspot": _3 - }], - "am": [1, { - "co": _2, - "com": _2, - "commune": _2, - "net": _2, - "org": _2, - "radio": _3, - "blogspot": _3, - "neko": _3, - "nyaa": _3 - }], - "ao": [1, { - "ed": _2, - "gv": _2, - "og": _2, - "co": _2, - "pb": _2, - "it": _2 - }], - "aq": _2, - "ar": [1, { - "bet": _2, - "com": _6, - "coop": _2, - "edu": _2, - "gob": _2, - "gov": _2, - "int": _2, - "mil": _2, - "musica": _2, - "mutual": _2, - "net": _2, - "org": _2, - "senasa": _2, - "tur": _2 - }], - "arpa": [1, { - "e164": _2, - "in-addr": _2, - "ip6": _2, - "iris": _2, - "uri": _2, - "urn": _2 - }], - "as": _7, - "asia": [1, { - "cloudns": _3 - }], - "at": [1, { - "ac": [1, { - "sth": _2 - }], - "co": _6, - "gv": _2, - "or": _2, - "funkfeuer": [0, { - "wien": _3 - }], - "futurecms": [0, { - "*": _3, - "ex": _5, - "in": _5 - }], - "futurehosting": _3, - "futuremailing": _3, - "ortsinfo": [0, { - "ex": _5, - "kunden": _5 - }], - "biz": _3, - "info": _3, - "123webseite": _3, - "priv": _3, - "myspreadshop": _3, - "12hp": _3, - "2ix": _3, - "4lima": _3, - "lima-city": _3 - }], - "au": [1, { - "com": [1, { - "blogspot": _3, - "cloudlets": [0, { - "mel": _3 - }], - "myspreadshop": _3 - }], - "net": _2, - "org": _2, - "edu": [1, { - "act": _2, - "catholic": _2, - "nsw": [1, { - "schools": _2 - }], - "nt": _2, - "qld": _2, - "sa": _2, - "tas": _2, - "vic": _2, - "wa": _2 - }], - "gov": [1, { - "qld": _2, - "sa": _2, - "tas": _2, - "vic": _2, - "wa": _2 - }], - "asn": _2, - "id": _2, - "info": _2, - "conf": _2, - "oz": _2, - "act": _2, - "nsw": _2, - "nt": _2, - "qld": _2, - "sa": _2, - "tas": _2, - "vic": _2, - "wa": _2 - }], - "aw": [1, { - "com": _2 - }], - "ax": [1, { - "be": _3, - "cat": _3, - "es": _3, - "eu": _3, - "gg": _3, - "mc": _3, - "us": _3, - "xy": _3 - }], - "az": [1, { - "com": _2, - "net": _2, - "int": _2, - "gov": _2, - "org": _2, - "edu": _2, - "info": _2, - "pp": _2, - "mil": _2, - "name": _2, - "pro": _2, - "biz": _2 - }], - "ba": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "mil": _2, - "net": _2, - "org": _2, - "rs": _3, - "blogspot": _3 - }], - "bb": [1, { - "biz": _2, - "co": _2, - "com": _2, - "edu": _2, - "gov": _2, - "info": _2, - "net": _2, - "org": _2, - "store": _2, - "tv": _2 - }], - "bd": _12, - "be": [1, { - "ac": _2, - "webhosting": _3, - "blogspot": _3, - "interhostsolutions": _13, - "kuleuven": [0, { - "ezproxy": _3 - }], - "123website": _3, - "myspreadshop": _3, - "transurl": _5 - }], - "bf": _7, - "bg": [1, { - "0": _2, - "1": _2, - "2": _2, - "3": _2, - "4": _2, - "5": _2, - "6": _2, - "7": _2, - "8": _2, - "9": _2, - "a": _2, - "b": _2, - "c": _2, - "d": _2, - "e": _2, - "f": _2, - "g": _2, - "h": _2, - "i": _2, - "j": _2, - "k": _2, - "l": _2, - "m": _2, - "n": _2, - "o": _2, - "p": _2, - "q": _2, - "r": _2, - "s": _2, - "t": _2, - "u": _2, - "v": _2, - "w": _2, - "x": _2, - "y": _2, - "z": _2, - "blogspot": _3, - "barsy": _3 - }], - "bh": _4, - "bi": [1, { - "co": _2, - "com": _2, - "edu": _2, - "or": _2, - "org": _2 - }], - "biz": [1, { - "activetrail": _3, - "cloudns": _3, - "jozi": _3, - "dyndns": _3, - "for-better": _3, - "for-more": _3, - "for-some": _3, - "for-the": _3, - "selfip": _3, - "webhop": _3, - "orx": _3, - "mmafan": _3, - "myftp": _3, - "no-ip": _3, - "dscloud": _3 - }], - "bj": [1, { - "africa": _2, - "agro": _2, - "architectes": _2, - "assur": _2, - "avocats": _2, - "co": _2, - "com": _2, - "eco": _2, - "econo": _2, - "edu": _2, - "info": _2, - "loisirs": _2, - "money": _2, - "net": _2, - "org": _2, - "ote": _2, - "resto": _2, - "restaurant": _2, - "tourism": _2, - "univ": _2, - "blogspot": _3 - }], - "bm": _4, - "bn": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "net": _2, - "org": _2, - "co": _3 - }], - "bo": [1, { - "com": _2, - "edu": _2, - "gob": _2, - "int": _2, - "org": _2, - "net": _2, - "mil": _2, - "tv": _2, - "web": _2, - "academia": _2, - "agro": _2, - "arte": _2, - "blog": _2, - "bolivia": _2, - "ciencia": _2, - "cooperativa": _2, - "democracia": _2, - "deporte": _2, - "ecologia": _2, - "economia": _2, - "empresa": _2, - "indigena": _2, - "industria": _2, - "info": _2, - "medicina": _2, - "movimiento": _2, - "musica": _2, - "natural": _2, - "nombre": _2, - "noticias": _2, - "patria": _2, - "politica": _2, - "profesional": _2, - "plurinacional": _2, - "pueblo": _2, - "revista": _2, - "salud": _2, - "tecnologia": _2, - "tksat": _2, - "transporte": _2, - "wiki": _2 - }], - "br": [1, { - "9guacu": _2, - "abc": _2, - "adm": _2, - "adv": _2, - "agr": _2, - "aju": _2, - "am": _2, - "anani": _2, - "aparecida": _2, - "app": _2, - "arq": _2, - "art": _2, - "ato": _2, - "b": _2, - "barueri": _2, - "belem": _2, - "bhz": _2, - "bib": _2, - "bio": _2, - "blog": _2, - "bmd": _2, - "boavista": _2, - "bsb": _2, - "campinagrande": _2, - "campinas": _2, - "caxias": _2, - "cim": _2, - "cng": _2, - "cnt": _2, - "com": [1, { - "blogspot": _3, - "simplesite": _3 - }], - "contagem": _2, - "coop": _2, - "coz": _2, - "cri": _2, - "cuiaba": _2, - "curitiba": _2, - "def": _2, - "des": _2, - "det": _2, - "dev": _2, - "ecn": _2, - "eco": _2, - "edu": _2, - "emp": _2, - "enf": _2, - "eng": _2, - "esp": _2, - "etc": _2, - "eti": _2, - "far": _2, - "feira": _2, - "flog": _2, - "floripa": _2, - "fm": _2, - "fnd": _2, - "fortal": _2, - "fot": _2, - "foz": _2, - "fst": _2, - "g12": _2, - "geo": _2, - "ggf": _2, - "goiania": _2, - "gov": [1, { - "ac": _2, - "al": _2, - "am": _2, - "ap": _2, - "ba": _2, - "ce": _2, - "df": _2, - "es": _2, - "go": _2, - "ma": _2, - "mg": _2, - "ms": _2, - "mt": _2, - "pa": _2, - "pb": _2, - "pe": _2, - "pi": _2, - "pr": _2, - "rj": _2, - "rn": _2, - "ro": _2, - "rr": _2, - "rs": _2, - "sc": _2, - "se": _2, - "sp": _2, - "to": _2 - }], - "gru": _2, - "imb": _2, - "ind": _2, - "inf": _2, - "jab": _2, - "jampa": _2, - "jdf": _2, - "joinville": _2, - "jor": _2, - "jus": _2, - "leg": [1, { - "ac": _3, - "al": _3, - "am": _3, - "ap": _3, - "ba": _3, - "ce": _3, - "df": _3, - "es": _3, - "go": _3, - "ma": _3, - "mg": _3, - "ms": _3, - "mt": _3, - "pa": _3, - "pb": _3, - "pe": _3, - "pi": _3, - "pr": _3, - "rj": _3, - "rn": _3, - "ro": _3, - "rr": _3, - "rs": _3, - "sc": _3, - "se": _3, - "sp": _3, - "to": _3 - }], - "lel": _2, - "log": _2, - "londrina": _2, - "macapa": _2, - "maceio": _2, - "manaus": _2, - "maringa": _2, - "mat": _2, - "med": _2, - "mil": _2, - "morena": _2, - "mp": _2, - "mus": _2, - "natal": _2, - "net": _2, - "niteroi": _2, - "nom": _12, - "not": _2, - "ntr": _2, - "odo": _2, - "ong": _2, - "org": _2, - "osasco": _2, - "palmas": _2, - "poa": _2, - "ppg": _2, - "pro": _2, - "psc": _2, - "psi": _2, - "pvh": _2, - "qsl": _2, - "radio": _2, - "rec": _2, - "recife": _2, - "rep": _2, - "ribeirao": _2, - "rio": _2, - "riobranco": _2, - "riopreto": _2, - "salvador": _2, - "sampa": _2, - "santamaria": _2, - "santoandre": _2, - "saobernardo": _2, - "saogonca": _2, - "seg": _2, - "sjc": _2, - "slg": _2, - "slz": _2, - "sorocaba": _2, - "srv": _2, - "taxi": _2, - "tc": _2, - "tec": _2, - "teo": _2, - "the": _2, - "tmp": _2, - "trd": _2, - "tur": _2, - "tv": _2, - "udi": _2, - "vet": _2, - "vix": _2, - "vlog": _2, - "wiki": _2, - "zlg": _2 - }], - "bs": [1, { - "com": _2, - "net": _2, - "org": _2, - "edu": _2, - "gov": _2, - "we": _3 - }], - "bt": _4, - "bv": _2, - "bw": [1, { - "co": _2, - "org": _2 - }], - "by": [1, { - "gov": _2, - "mil": _2, - "com": _6, - "of": _2, - "mycloud": _3, - "mediatech": _3 - }], - "bz": [1, { - "com": _2, - "net": _2, - "org": _2, - "edu": _2, - "gov": _2, - "za": _3, - "gsj": _3 - }], - "ca": [1, { - "ab": _2, - "bc": _2, - "mb": _2, - "nb": _2, - "nf": _2, - "nl": _2, - "ns": _2, - "nt": _2, - "nu": _2, - "on": _2, - "pe": _2, - "qc": _2, - "sk": _2, - "yk": _2, - "gc": _2, - "barsy": _3, - "awdev": _5, - "co": _3, - "blogspot": _3, - "no-ip": _3, - "myspreadshop": _3 - }], - "cat": _2, - "cc": [1, { - "cloudns": _3, - "ftpaccess": _3, - "game-server": _3, - "myphotos": _3, - "scrapping": _3, - "twmail": _3, - "csx": _3, - "fantasyleague": _3, - "spawn": [0, { - "instances": _3 - }] - }], - "cd": _7, - "cf": _6, - "cg": _2, - "ch": [1, { - "square7": _3, - "blogspot": _3, - "flow": [0, { - "ae": [0, { - "alp1": _3 - }], - "appengine": _3 - }], - "linkyard-cloud": _3, - "dnsking": _3, - "gotdns": _3, - "123website": _3, - "myspreadshop": _3, - "firenet": [0, { - "*": _3, - "svc": _5 - }], - "12hp": _3, - "2ix": _3, - "4lima": _3, - "lima-city": _3 - }], - "ci": [1, { - "org": _2, - "or": _2, - "com": _2, - "co": _2, - "edu": _2, - "ed": _2, - "ac": _2, - "net": _2, - "go": _2, - "asso": _2, - "xn--aroport-bya": _2, - "aéroport": _2, - "int": _2, - "presse": _2, - "md": _2, - "gouv": _2, - "fin": _3, - "nl": _3 - }], - "ck": _12, - "cl": [1, { - "co": _2, - "gob": _2, - "gov": _2, - "mil": _2, - "blogspot": _3 - }], - "cm": [1, { - "co": _2, - "com": _2, - "gov": _2, - "net": _2 - }], - "cn": [1, { - "ac": _2, - "com": [1, { - "amazonaws": [0, { - "cn-north-1": [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _16, - "s3": _3, - "s3-accesspoint": _3, - "s3-deprecated": _3, - "s3-object-lambda": _3, - "s3-website": _3 - }], - "cn-northwest-1": _18, - "compute": _5, - "airflow": [0, { - "cn-north-1": _5, - "cn-northwest-1": _5 - }], - "eb": [0, { - "cn-north-1": _3, - "cn-northwest-1": _3 - }], - "elb": _5 - }], - "sagemaker": [0, { - "cn-north-1": _8, - "cn-northwest-1": _8 - }] - }], - "edu": _2, - "gov": _2, - "net": _2, - "org": _2, - "mil": _2, - "xn--55qx5d": _2, - "公司": _2, - "xn--io0a7i": _2, - "网络": _2, - "xn--od0alg": _2, - "網絡": _2, - "ah": _2, - "bj": _2, - "cq": _2, - "fj": _2, - "gd": _2, - "gs": _2, - "gz": _2, - "gx": _2, - "ha": _2, - "hb": _2, - "he": _2, - "hi": _2, - "hl": _2, - "hn": _2, - "jl": _2, - "js": _2, - "jx": _2, - "ln": _2, - "nm": _2, - "nx": _2, - "qh": _2, - "sc": _2, - "sd": _2, - "sh": _2, - "sn": _2, - "sx": _2, - "tj": _2, - "xj": _2, - "xz": _2, - "yn": _2, - "zj": _2, - "hk": _2, - "mo": _2, - "tw": _2, - "canva-apps": _3, - "instantcloud": _3, - "quickconnect": _19 - }], - "co": [1, { - "arts": _2, - "com": _6, - "edu": _2, - "firm": _2, - "gov": _2, - "info": _2, - "int": _2, - "mil": _2, - "net": _2, - "nom": _2, - "org": _2, - "rec": _2, - "web": _2, - "carrd": _3, - "crd": _3, - "otap": _5, - "leadpages": _3, - "lpages": _3, - "mypi": _3, - "n4t": _3, - "firewalledreplit": _20, - "repl": _20, - "supabase": _3 - }], - "com": [1, { - "devcdnaccesso": _5, - "adobeaemcloud": [2, { - "dev": _5 - }], - "airkitapps": _3, - "airkitapps-au": _3, - "aivencloud": _3, - "kasserver": _3, - "amazonaws": [0, { - "af-south-1": _23, - "ap-east-1": _24, - "ap-northeast-1": _25, - "ap-northeast-2": _25, - "ap-northeast-3": _23, - "ap-south-1": _25, - "ap-south-2": _26, - "ap-southeast-1": _25, - "ap-southeast-2": _25, - "ap-southeast-3": _18, - "ap-southeast-4": _26, - "ca-central-1": _28, - "eu-central-1": _25, - "eu-central-2": _26, - "eu-north-1": _24, - "eu-south-1": _23, - "eu-south-2": _26, - "eu-west-1": [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _16, - "s3": _3, - "s3-accesspoint": _3, - "s3-deprecated": _3, - "s3-object-lambda": _3, - "s3-website": _3, - "analytics-gateway": _3, - "aws-cloud9": _21, - "cloud9": _22 - }], - "eu-west-2": _24, - "eu-west-3": _23, - "il-central-1": _26, - "me-central-1": _18, - "me-south-1": _24, - "sa-east-1": _23, - "us-east-1": [2, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _27, - "s3": _3, - "s3-accesspoint": _3, - "s3-accesspoint-fips": _3, - "s3-deprecated": _3, - "s3-fips": _3, - "s3-object-lambda": _3, - "s3-website": _3, - "analytics-gateway": _3, - "aws-cloud9": _21, - "cloud9": _22 - }], - "us-east-2": [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _29, - "s3": _3, - "s3-accesspoint": _3, - "s3-accesspoint-fips": _3, - "s3-deprecated": _3, - "s3-fips": _3, - "s3-object-lambda": _3, - "s3-website": _3, - "analytics-gateway": _3, - "aws-cloud9": _21, - "cloud9": _22 - }], - "us-gov-east-1": _30, - "us-gov-west-1": _30, - "us-west-1": _28, - "us-west-2": [0, { - "execute-api": _3, - "emrappui-prod": _3, - "emrnotebooks-prod": _3, - "emrstudio-prod": _3, - "dualstack": _27, - "s3": _3, - "s3-accesspoint": _3, - "s3-accesspoint-fips": _3, - "s3-deprecated": _3, - "s3-fips": _3, - "s3-object-lambda": _3, - "s3-website": _3, - "analytics-gateway": _3, - "aws-cloud9": _21, - "cloud9": _22 - }], - "compute": _5, - "compute-1": _5, - "airflow": [0, { - "ap-northeast-1": _5, - "ap-northeast-2": _5, - "ap-south-1": _5, - "ap-southeast-1": _5, - "ap-southeast-2": _5, - "ca-central-1": _5, - "eu-central-1": _5, - "eu-north-1": _5, - "eu-west-1": _5, - "eu-west-2": _5, - "eu-west-3": _5, - "sa-east-1": _5, - "us-east-1": _5, - "us-east-2": _5, - "us-west-2": _5 - }], - "s3": _3, - "s3-1": _3, - "s3-ap-east-1": _3, - "s3-ap-northeast-1": _3, - "s3-ap-northeast-2": _3, - "s3-ap-northeast-3": _3, - "s3-ap-south-1": _3, - "s3-ap-southeast-1": _3, - "s3-ap-southeast-2": _3, - "s3-ca-central-1": _3, - "s3-eu-central-1": _3, - "s3-eu-north-1": _3, - "s3-eu-west-1": _3, - "s3-eu-west-2": _3, - "s3-eu-west-3": _3, - "s3-external-1": _3, - "s3-fips-us-gov-east-1": _3, - "s3-fips-us-gov-west-1": _3, - "s3-global": [0, { - "accesspoint": [0, { - "mrap": _3 - }] - }], - "s3-me-south-1": _3, - "s3-sa-east-1": _3, - "s3-us-east-2": _3, - "s3-us-gov-east-1": _3, - "s3-us-gov-west-1": _3, - "s3-us-west-1": _3, - "s3-us-west-2": _3, - "s3-website-ap-northeast-1": _3, - "s3-website-ap-southeast-1": _3, - "s3-website-ap-southeast-2": _3, - "s3-website-eu-west-1": _3, - "s3-website-sa-east-1": _3, - "s3-website-us-east-1": _3, - "s3-website-us-gov-west-1": _3, - "s3-website-us-west-1": _3, - "s3-website-us-west-2": _3, - "elb": _5 - }], - "amazoncognito": [0, { - "af-south-1": _31, - "ap-northeast-1": _31, - "ap-northeast-2": _31, - "ap-northeast-3": _31, - "ap-south-1": _31, - "ap-southeast-1": _31, - "ap-southeast-2": _31, - "ap-southeast-3": _31, - "ca-central-1": _31, - "eu-central-1": _31, - "eu-north-1": _31, - "eu-south-1": _31, - "eu-west-1": _31, - "eu-west-2": _31, - "eu-west-3": _31, - "il-central-1": _31, - "me-south-1": _31, - "sa-east-1": _31, - "us-east-1": _32, - "us-east-2": _32, - "us-gov-west-1": [0, { - "auth-fips": _3 - }], - "us-west-1": _32, - "us-west-2": _32 - }], - "amplifyapp": _5, - "awsapprunner": _5, - "elasticbeanstalk": [2, { - "af-south-1": _3, - "ap-east-1": _3, - "ap-northeast-1": _3, - "ap-northeast-2": _3, - "ap-northeast-3": _3, - "ap-south-1": _3, - "ap-southeast-1": _3, - "ap-southeast-2": _3, - "ap-southeast-3": _3, - "ca-central-1": _3, - "eu-central-1": _3, - "eu-north-1": _3, - "eu-south-1": _3, - "eu-west-1": _3, - "eu-west-2": _3, - "eu-west-3": _3, - "il-central-1": _3, - "me-south-1": _3, - "sa-east-1": _3, - "us-east-1": _3, - "us-east-2": _3, - "us-gov-east-1": _3, - "us-gov-west-1": _3, - "us-west-1": _3, - "us-west-2": _3 - }], - "awsglobalaccelerator": _3, - "siiites": _3, - "appspacehosted": _3, - "appspaceusercontent": _3, - "on-aptible": _3, - "myasustor": _3, - "balena-devices": _3, - "betainabox": _3, - "boutir": _3, - "bplaced": _3, - "cafjs": _3, - "canva-apps": _3, - "br": _3, - "cn": _3, - "de": _3, - "eu": _3, - "jpn": _3, - "mex": _3, - "ru": _3, - "sa": _3, - "uk": _3, - "us": _3, - "za": _3, - "ar": _3, - "hu": _3, - "kr": _3, - "no": _3, - "qc": _3, - "uy": _3, - "africa": _3, - "gr": _3, - "co": _3, - "jdevcloud": _3, - "wpdevcloud": _3, - "cloudcontrolled": _3, - "cloudcontrolapp": _3, - "cf-ipfs": _3, - "cloudflare-ipfs": _3, - "trycloudflare": _3, - "customer-oci": [0, { - "*": _3, - "oci": _5, - "ocp": _5, - "ocs": _5 - }], - "dattolocal": _3, - "dattorelay": _3, - "dattoweb": _3, - "mydatto": _3, - "builtwithdark": _3, - "datadetect": [0, { - "demo": _3, - "instance": _3 - }], - "ddns5": _3, - "discordsays": _3, - "discordsez": _3, - "drayddns": _3, - "dreamhosters": _3, - "mydrobo": _3, - "dyndns-at-home": _3, - "dyndns-at-work": _3, - "dyndns-blog": _3, - "dyndns-free": _3, - "dyndns-home": _3, - "dyndns-ip": _3, - "dyndns-mail": _3, - "dyndns-office": _3, - "dyndns-pics": _3, - "dyndns-remote": _3, - "dyndns-server": _3, - "dyndns-web": _3, - "dyndns-wiki": _3, - "dyndns-work": _3, - "blogdns": _3, - "cechire": _3, - "dnsalias": _3, - "dnsdojo": _3, - "doesntexist": _3, - "dontexist": _3, - "doomdns": _3, - "dyn-o-saur": _3, - "dynalias": _3, - "est-a-la-maison": _3, - "est-a-la-masion": _3, - "est-le-patron": _3, - "est-mon-blogueur": _3, - "from-ak": _3, - "from-al": _3, - "from-ar": _3, - "from-ca": _3, - "from-ct": _3, - "from-dc": _3, - "from-de": _3, - "from-fl": _3, - "from-ga": _3, - "from-hi": _3, - "from-ia": _3, - "from-id": _3, - "from-il": _3, - "from-in": _3, - "from-ks": _3, - "from-ky": _3, - "from-ma": _3, - "from-md": _3, - "from-mi": _3, - "from-mn": _3, - "from-mo": _3, - "from-ms": _3, - "from-mt": _3, - "from-nc": _3, - "from-nd": _3, - "from-ne": _3, - "from-nh": _3, - "from-nj": _3, - "from-nm": _3, - "from-nv": _3, - "from-oh": _3, - "from-ok": _3, - "from-or": _3, - "from-pa": _3, - "from-pr": _3, - "from-ri": _3, - "from-sc": _3, - "from-sd": _3, - "from-tn": _3, - "from-tx": _3, - "from-ut": _3, - "from-va": _3, - "from-vt": _3, - "from-wa": _3, - "from-wi": _3, - "from-wv": _3, - "from-wy": _3, - "getmyip": _3, - "gotdns": _3, - "hobby-site": _3, - "homelinux": _3, - "homeunix": _3, - "iamallama": _3, - "is-a-anarchist": _3, - "is-a-blogger": _3, - "is-a-bookkeeper": _3, - "is-a-bulls-fan": _3, - "is-a-caterer": _3, - "is-a-chef": _3, - "is-a-conservative": _3, - "is-a-cpa": _3, - "is-a-cubicle-slave": _3, - "is-a-democrat": _3, - "is-a-designer": _3, - "is-a-doctor": _3, - "is-a-financialadvisor": _3, - "is-a-geek": _3, - "is-a-green": _3, - "is-a-guru": _3, - "is-a-hard-worker": _3, - "is-a-hunter": _3, - "is-a-landscaper": _3, - "is-a-lawyer": _3, - "is-a-liberal": _3, - "is-a-libertarian": _3, - "is-a-llama": _3, - "is-a-musician": _3, - "is-a-nascarfan": _3, - "is-a-nurse": _3, - "is-a-painter": _3, - "is-a-personaltrainer": _3, - "is-a-photographer": _3, - "is-a-player": _3, - "is-a-republican": _3, - "is-a-rockstar": _3, - "is-a-socialist": _3, - "is-a-student": _3, - "is-a-teacher": _3, - "is-a-techie": _3, - "is-a-therapist": _3, - "is-an-accountant": _3, - "is-an-actor": _3, - "is-an-actress": _3, - "is-an-anarchist": _3, - "is-an-artist": _3, - "is-an-engineer": _3, - "is-an-entertainer": _3, - "is-certified": _3, - "is-gone": _3, - "is-into-anime": _3, - "is-into-cars": _3, - "is-into-cartoons": _3, - "is-into-games": _3, - "is-leet": _3, - "is-not-certified": _3, - "is-slick": _3, - "is-uberleet": _3, - "is-with-theband": _3, - "isa-geek": _3, - "isa-hockeynut": _3, - "issmarterthanyou": _3, - "likes-pie": _3, - "likescandy": _3, - "neat-url": _3, - "saves-the-whales": _3, - "selfip": _3, - "sells-for-less": _3, - "sells-for-u": _3, - "servebbs": _3, - "simple-url": _3, - "space-to-rent": _3, - "teaches-yoga": _3, - "writesthisblog": _3, - "digitaloceanspaces": _5, - "ddnsfree": _3, - "ddnsgeek": _3, - "giize": _3, - "gleeze": _3, - "kozow": _3, - "loseyourip": _3, - "ooguy": _3, - "theworkpc": _3, - "mytuleap": _3, - "tuleap-partners": _3, - "encoreapi": _3, - "evennode": [0, { - "eu-1": _3, - "eu-2": _3, - "eu-3": _3, - "eu-4": _3, - "us-1": _3, - "us-2": _3, - "us-3": _3, - "us-4": _3 - }], - "onfabrica": _3, - "fbsbx": _33, - "fastly-edge": _3, - "fastly-terrarium": _3, - "fastvps-server": _3, - "mydobiss": _3, - "firebaseapp": _3, - "fldrv": _3, - "forgeblocks": _3, - "framercanvas": _3, - "freebox-os": _3, - "freeboxos": _3, - "freemyip": _3, - "gentapps": _3, - "gentlentapis": _3, - "githubusercontent": _3, - "0emm": _5, - "appspot": [2, { - "r": _5 - }], - "codespot": _3, - "googleapis": _3, - "googlecode": _3, - "pagespeedmobilizer": _3, - "publishproxy": _3, - "withgoogle": _3, - "withyoutube": _3, - "blogspot": _3, - "awsmppl": _3, - "herokuapp": _3, - "herokussl": _3, - "impertrixcdn": _3, - "impertrix": _3, - "smushcdn": _3, - "wphostedmail": _3, - "wpmucdn": _3, - "pixolino": _3, - "amscompute": _3, - "dopaas": _3, - "hosted-by-previder": _34, - "hosteur": [0, { - "rag-cloud": _3, - "rag-cloud-ch": _3 - }], - "ik-server": [0, { - "jcloud": _3, - "jcloud-ver-jpc": _3 - }], - "jelastic": [0, { - "demo": _3 - }], - "kilatiron": _3, - "massivegrid": _34, - "wafaicloud": [0, { - "jed": _3, - "lon": _3, - "ryd": _3 - }], - "joyent": [0, { - "cns": _5 - }], - "ktistory": _3, - "lpusercontent": _3, - "lmpm": _35, - "linode": [0, { - "members": _3, - "nodebalancer": _5 - }], - "linodeobjects": _5, - "linodeusercontent": [0, { - "ip": _3 - }], - "barsycenter": _3, - "barsyonline": _3, - "mazeplay": _3, - "miniserver": _3, - "meteorapp": _36, - "hostedpi": _3, - "mythic-beasts": [0, { - "customer": _3, - "caracal": _3, - "fentiger": _3, - "lynx": _3, - "ocelot": _3, - "oncilla": _3, - "onza": _3, - "sphinx": _3, - "vs": _3, - "x": _3, - "yali": _3 - }], - "nospamproxy": _13, - "4u": _3, - "nfshost": _3, - "001www": _3, - "ddnslive": _3, - "myiphost": _3, - "blogsyte": _3, - "ciscofreak": _3, - "damnserver": _3, - "ditchyourip": _3, - "dnsiskinky": _3, - "dynns": _3, - "geekgalaxy": _3, - "health-carereform": _3, - "homesecuritymac": _3, - "homesecuritypc": _3, - "myactivedirectory": _3, - "mysecuritycamera": _3, - "net-freaks": _3, - "onthewifi": _3, - "point2this": _3, - "quicksytes": _3, - "securitytactics": _3, - "serveexchange": _3, - "servehumour": _3, - "servep2p": _3, - "servesarcasm": _3, - "stufftoread": _3, - "unusualperson": _3, - "workisboring": _3, - "3utilities": _3, - "ddnsking": _3, - "myvnc": _3, - "servebeer": _3, - "servecounterstrike": _3, - "serveftp": _3, - "servegame": _3, - "servehalflife": _3, - "servehttp": _3, - "serveirc": _3, - "servemp3": _3, - "servepics": _3, - "servequake": _3, - "observableusercontent": [0, { - "static": _3 - }], - "simplesite": _3, - "orsites": _3, - "operaunite": _3, - "authgear-staging": _3, - "authgearapps": _3, - "skygearapp": _3, - "outsystemscloud": _3, - "ownprovider": _3, - "pgfog": _3, - "pagefrontapp": _3, - "pagexl": _3, - "paywhirl": _5, - "gotpantheon": _3, - "platter-app": _3, - "pleskns": _3, - "postman-echo": _3, - "prgmr": [0, { - "xen": _3 - }], - "pythonanywhere": _36, - "qualifioapp": _3, - "ladesk": _3, - "qbuser": _3, - "qa2": _3, - "dev-myqnapcloud": _3, - "alpha-myqnapcloud": _3, - "myqnapcloud": _3, - "quipelements": _5, - "rackmaze": _3, - "rhcloud": _3, - "render": _35, - "onrender": _3, - "180r": _3, - "dojin": _3, - "sakuratan": _3, - "sakuraweb": _3, - "x0": _3, - "code": [0, { - "builder": _5, - "dev-builder": _5, - "stg-builder": _5 - }], - "logoip": _3, - "scrysec": _3, - "firewall-gateway": _3, - "myshopblocks": _3, - "myshopify": _3, - "shopitsite": _3, - "1kapp": _3, - "appchizi": _3, - "applinzi": _3, - "sinaapp": _3, - "vipsinaapp": _3, - "bounty-full": [2, { - "alpha": _3, - "beta": _3 - }], - "streamlitapp": _3, - "try-snowplow": _3, - "stackhero-network": _3, - "playstation-cloud": _3, - "myspreadshop": _3, - "stdlib": [0, { - "api": _3 - }], - "temp-dns": _3, - "dsmynas": _3, - "familyds": _3, - "mytabit": _3, - "tb-hosting": _37, - "reservd": _3, - "thingdustdata": _3, - "bloxcms": _3, - "townnews-staging": _3, - "typeform": [0, { - "pro": _3 - }], - "hk": _3, - "it": _3, - "vultrobjects": _5, - "wafflecell": _3, - "reserve-online": _3, - "hotelwithflight": _3, - "remotewd": _3, - "wiardweb": _38, - "messwithdns": _3, - "woltlab-demo": _3, - "wpenginepowered": [2, { - "js": _3 - }], - "wixsite": _3, - "xnbay": [2, { - "u2": _3, - "u2-local": _3 - }], - "yolasite": _3 - }], - "coop": _2, - "cr": [1, { - "ac": _2, - "co": _2, - "ed": _2, - "fi": _2, - "go": _2, - "or": _2, - "sa": _2 - }], - "cu": [1, { - "com": _2, - "edu": _2, - "org": _2, - "net": _2, - "gov": _2, - "inf": _2 - }], - "cv": [1, { - "com": _2, - "edu": _2, - "int": _2, - "nome": _2, - "org": _2, - "blogspot": _3 - }], - "cw": _39, - "cx": [1, { - "gov": _2, - "ath": _3, - "info": _3 - }], - "cy": [1, { - "ac": _2, - "biz": _2, - "com": [1, { - "blogspot": _3, - "scaleforce": _40 - }], - "ekloges": _2, - "gov": _2, - "ltd": _2, - "mil": _2, - "net": _2, - "org": _2, - "press": _2, - "pro": _2, - "tm": _2 - }], - "cz": [1, { - "co": _3, - "realm": _3, - "e4": _3, - "blogspot": _3, - "metacentrum": [0, { - "cloud": _5, - "custom": _3 - }], - "muni": [0, { - "cloud": [0, { - "flt": _3, - "usr": _3 - }] - }] - }], - "de": [1, { - "bplaced": _3, - "square7": _3, - "com": _3, - "cosidns": [0, { - "dyn": _3 - }], - "dynamisches-dns": _3, - "dnsupdater": _3, - "internet-dns": _3, - "l-o-g-i-n": _3, - "dnshome": _3, - "fuettertdasnetz": _3, - "isteingeek": _3, - "istmein": _3, - "lebtimnetz": _3, - "leitungsen": _3, - "traeumtgerade": _3, - "ddnss": [2, { - "dyn": _3, - "dyndns": _3 - }], - "dyndns1": _3, - "dyn-ip24": _3, - "home-webserver": [2, { - "dyn": _3 - }], - "myhome-server": _3, - "frusky": _5, - "goip": _3, - "blogspot": _3, - "xn--gnstigbestellen-zvb": _3, - "günstigbestellen": _3, - "xn--gnstigliefern-wob": _3, - "günstigliefern": _3, - "hs-heilbronn": [0, { - "it": _38 - }], - "dyn-berlin": _3, - "in-berlin": _3, - "in-brb": _3, - "in-butter": _3, - "in-dsl": _3, - "in-vpn": _3, - "iservschule": _3, - "mein-iserv": _3, - "schulplattform": _3, - "schulserver": _3, - "test-iserv": _3, - "keymachine": _3, - "git-repos": _3, - "lcube-server": _3, - "svn-repos": _3, - "barsy": _3, - "123webseite": _3, - "logoip": _3, - "firewall-gateway": _3, - "my-gateway": _3, - "my-router": _3, - "spdns": _3, - "speedpartner": [0, { - "customer": _3 - }], - "myspreadshop": _3, - "taifun-dns": _3, - "12hp": _3, - "2ix": _3, - "4lima": _3, - "lima-city": _3, - "dd-dns": _3, - "dray-dns": _3, - "draydns": _3, - "dyn-vpn": _3, - "dynvpn": _3, - "mein-vigor": _3, - "my-vigor": _3, - "my-wan": _3, - "syno-ds": _3, - "synology-diskstation": _3, - "synology-ds": _3, - "uberspace": _5, - "virtualuser": _3, - "virtual-user": _3, - "community-pro": _3, - "diskussionsbereich": _3 - }], - "dj": _2, - "dk": [1, { - "biz": _3, - "co": _3, - "firm": _3, - "reg": _3, - "store": _3, - "blogspot": _3, - "123hjemmeside": _3, - "myspreadshop": _3 - }], - "dm": _4, - "do": [1, { - "art": _2, - "com": _2, - "edu": _2, - "gob": _2, - "gov": _2, - "mil": _2, - "net": _2, - "org": _2, - "sld": _2, - "web": _2 - }], - "dz": [1, { - "art": _2, - "asso": _2, - "com": _2, - "edu": _2, - "gov": _2, - "org": _2, - "net": _2, - "pol": _2, - "soc": _2, - "tm": _2 - }], - "ec": [1, { - "com": _2, - "info": _2, - "net": _2, - "fin": _2, - "k12": _2, - "med": _2, - "pro": _2, - "org": _2, - "edu": _2, - "gov": _2, - "gob": _2, - "mil": _2, - "base": _3, - "official": _3 - }], - "edu": [1, { - "rit": [0, { - "git-pages": _3 - }] - }], - "ee": [1, { - "edu": _2, - "gov": _2, - "riik": _2, - "lib": _2, - "med": _2, - "com": _6, - "pri": _2, - "aip": _2, - "org": _2, - "fie": _2 - }], - "eg": [1, { - "com": _6, - "edu": _2, - "eun": _2, - "gov": _2, - "mil": _2, - "name": _2, - "net": _2, - "org": _2, - "sci": _2 - }], - "er": _12, - "es": [1, { - "com": _6, - "nom": _2, - "org": _2, - "gob": _2, - "edu": _2, - "123miweb": _3, - "myspreadshop": _3 - }], - "et": [1, { - "com": _2, - "gov": _2, - "org": _2, - "edu": _2, - "biz": _2, - "name": _2, - "info": _2, - "net": _2 - }], - "eu": [1, { - "airkitapps": _3, - "mycd": _3, - "cloudns": _3, - "dogado": _41, - "barsy": _3, - "wellbeingzone": _3, - "spdns": _3, - "transurl": _5, - "diskstation": _3 - }], - "fi": [1, { - "aland": _2, - "dy": _3, - "blogspot": _3, - "xn--hkkinen-5wa": _3, - "häkkinen": _3, - "iki": _3, - "cloudplatform": [0, { - "fi": _3 - }], - "datacenter": [0, { - "demo": _3, - "paas": _3 - }], - "kapsi": _3, - "123kotisivu": _3, - "myspreadshop": _3 - }], - "fj": [1, { - "ac": _2, - "biz": _2, - "com": _2, - "gov": _2, - "info": _2, - "mil": _2, - "name": _2, - "net": _2, - "org": _2, - "pro": _2 - }], - "fk": _12, - "fm": [1, { - "com": _2, - "edu": _2, - "net": _2, - "org": _2, - "radio": _3, - "user": _5 - }], - "fo": _2, - "fr": [1, { - "asso": _2, - "com": _2, - "gouv": _2, - "nom": _2, - "prd": _2, - "tm": _2, - "avoues": _2, - "cci": _2, - "greta": _2, - "huissier-justice": _2, - "en-root": _3, - "fbx-os": _3, - "fbxos": _3, - "freebox-os": _3, - "freeboxos": _3, - "blogspot": _3, - "goupile": _3, - "123siteweb": _3, - "on-web": _3, - "chirurgiens-dentistes-en-france": _3, - "dedibox": _3, - "aeroport": _3, - "avocat": _3, - "chambagri": _3, - "chirurgiens-dentistes": _3, - "experts-comptables": _3, - "medecin": _3, - "notaires": _3, - "pharmacien": _3, - "port": _3, - "veterinaire": _3, - "myspreadshop": _3, - "ynh": _3 - }], - "ga": _2, - "gb": _2, - "gd": [1, { - "edu": _2, - "gov": _2 - }], - "ge": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "org": _2, - "mil": _2, - "net": _2, - "pvt": _2 - }], - "gf": _2, - "gg": [1, { - "co": _2, - "net": _2, - "org": _2, - "kaas": _3, - "cya": _3, - "panel": [2, { - "daemon": _3 - }] - }], - "gh": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "org": _2, - "mil": _2 - }], - "gi": [1, { - "com": _2, - "ltd": _2, - "gov": _2, - "mod": _2, - "edu": _2, - "org": _2 - }], - "gl": [1, { - "co": _2, - "com": _2, - "edu": _2, - "net": _2, - "org": _2, - "biz": _3, - "xx": _3 - }], - "gm": _2, - "gn": [1, { - "ac": _2, - "com": _2, - "edu": _2, - "gov": _2, - "org": _2, - "net": _2 - }], - "gov": _2, - "gp": [1, { - "com": _2, - "net": _2, - "mobi": _2, - "edu": _2, - "org": _2, - "asso": _2, - "app": _3 - }], - "gq": _2, - "gr": [1, { - "com": _2, - "edu": _2, - "net": _2, - "org": _2, - "gov": _2, - "blogspot": _3, - "simplesite": _3 - }], - "gs": _2, - "gt": [1, { - "com": _2, - "edu": _2, - "gob": _2, - "ind": _2, - "mil": _2, - "net": _2, - "org": _2, - "blog": _3, - "de": _3, - "to": _3 - }], - "gu": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "guam": _2, - "info": _2, - "net": _2, - "org": _2, - "web": _2 - }], - "gw": _2, - "gy": [1, { - "co": _2, - "com": _2, - "edu": _2, - "gov": _2, - "net": _2, - "org": _2, - "be": _3 - }], - "hk": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "idv": _2, - "net": _2, - "org": _2, - "xn--55qx5d": _2, - "公司": _2, - "xn--wcvs22d": _2, - "教育": _2, - "xn--lcvr32d": _2, - "敎育": _2, - "xn--mxtq1m": _2, - "政府": _2, - "xn--gmqw5a": _2, - "個人": _2, - "xn--ciqpn": _2, - "个人": _2, - "xn--gmq050i": _2, - "箇人": _2, - "xn--zf0avx": _2, - "網络": _2, - "xn--io0a7i": _2, - "网络": _2, - "xn--mk0axi": _2, - "组織": _2, - "xn--od0alg": _2, - "網絡": _2, - "xn--od0aq3b": _2, - "网絡": _2, - "xn--tn0ag": _2, - "组织": _2, - "xn--uc0atv": _2, - "組織": _2, - "xn--uc0ay4a": _2, - "組织": _2, - "blogspot": _3, - "secaas": _3, - "ltd": _3, - "inc": _3 - }], - "hm": _2, - "hn": [1, { - "com": _2, - "edu": _2, - "org": _2, - "net": _2, - "mil": _2, - "gob": _2, - "cc": _3 - }], - "hr": [1, { - "iz": _2, - "from": _2, - "name": _2, - "com": _2, - "blogspot": _3, - "free": _3 - }], - "ht": [1, { - "com": _2, - "shop": _2, - "firm": _2, - "info": _2, - "adult": _2, - "net": _2, - "pro": _2, - "org": _2, - "med": _2, - "art": _2, - "coop": _2, - "pol": _2, - "asso": _2, - "edu": _2, - "rel": _2, - "gouv": _2, - "perso": _2 - }], - "hu": [1, { - "2000": _2, - "co": _2, - "info": _2, - "org": _2, - "priv": _2, - "sport": _2, - "tm": _2, - "agrar": _2, - "bolt": _2, - "casino": _2, - "city": _2, - "erotica": _2, - "erotika": _2, - "film": _2, - "forum": _2, - "games": _2, - "hotel": _2, - "ingatlan": _2, - "jogasz": _2, - "konyvelo": _2, - "lakas": _2, - "media": _2, - "news": _2, - "reklam": _2, - "sex": _2, - "shop": _2, - "suli": _2, - "szex": _2, - "tozsde": _2, - "utazas": _2, - "video": _2, - "blogspot": _3 - }], - "id": [1, { - "ac": _2, - "biz": _2, - "co": _6, - "desa": _2, - "go": _2, - "mil": _2, - "my": [1, { - "rss": _5 - }], - "net": _2, - "or": _2, - "ponpes": _2, - "sch": _2, - "web": _2, - "flap": _3, - "forte": _3 - }], - "ie": [1, { - "gov": _2, - "blogspot": _3, - "myspreadshop": _3 - }], - "il": [1, { - "ac": _2, - "co": [1, { - "ravpage": _3, - "blogspot": _3, - "tabitorder": _3, - "mytabit": _3 - }], - "gov": _2, - "idf": _2, - "k12": _2, - "muni": _2, - "net": _2, - "org": _2 - }], - "xn--4dbrk0ce": [1, { - "xn--4dbgdty6c": _2, - "xn--5dbhl8d": _2, - "xn--8dbq2a": _2, - "xn--hebda8b": _2 - }], - "ישראל": [1, { - "אקדמיה": _2, - "ישוב": _2, - "צהל": _2, - "ממשל": _2 - }], - "im": [1, { - "ac": _2, - "co": [1, { - "ltd": _2, - "plc": _2 - }], - "com": _2, - "net": _2, - "org": _2, - "tt": _2, - "tv": _2, - "ro": _3 - }], - "in": [1, { - "5g": _2, - "6g": _2, - "ac": _2, - "ai": _2, - "am": _2, - "bihar": _2, - "biz": _2, - "business": _2, - "ca": _2, - "cn": _2, - "co": _2, - "com": _2, - "coop": _2, - "cs": _2, - "delhi": _2, - "dr": _2, - "edu": _2, - "er": _2, - "firm": _2, - "gen": _2, - "gov": _2, - "gujarat": _2, - "ind": _2, - "info": _2, - "int": _2, - "internet": _2, - "io": _2, - "me": _2, - "mil": _2, - "net": _2, - "nic": _2, - "org": _2, - "pg": _2, - "post": _2, - "pro": _2, - "res": _2, - "travel": _2, - "tv": _2, - "uk": _2, - "up": _2, - "us": _2, - "web": _3, - "cloudns": _3, - "blogspot": _3, - "barsy": _3, - "supabase": _3 - }], - "info": [1, { - "cloudns": _3, - "dynamic-dns": _3, - "dyndns": _3, - "barrel-of-knowledge": _3, - "barrell-of-knowledge": _3, - "for-our": _3, - "groks-the": _3, - "groks-this": _3, - "here-for-more": _3, - "knowsitall": _3, - "selfip": _3, - "webhop": _3, - "barsy": _3, - "mayfirst": _3, - "forumz": _3, - "nsupdate": _3, - "dvrcam": _3, - "ilovecollege": _3, - "no-ip": _3, - "dnsupdate": _3, - "v-info": _3 - }], - "int": [1, { - "eu": _2 - }], - "io": [1, { - "2038": _3, - "com": _2, - "on-acorn": _5, - "apigee": _3, - "b-data": _3, - "backplaneapp": _3, - "banzaicloud": [0, { - "app": _3, - "backyards": _5 - }], - "beagleboard": _3, - "bitbucket": _3, - "bluebite": _3, - "boxfuse": _3, - "browsersafetymark": _3, - "bigv": [0, { - "uk0": _3 - }], - "cleverapps": _3, - "dappnode": [0, { - "dyndns": _3 - }], - "dedyn": _3, - "drud": _3, - "definima": _3, - "fh-muenster": _3, - "shw": _3, - "forgerock": [0, { - "id": _3 - }], - "ghost": _3, - "github": _3, - "gitlab": _3, - "lolipop": _3, - "hasura-app": _3, - "hostyhosting": _3, - "moonscale": _5, - "beebyte": _34, - "beebyteapp": [0, { - "sekd1": _3 - }], - "jele": _3, - "unispace": [0, { - "cloud-fr1": _3 - }], - "webthings": _3, - "loginline": _3, - "barsy": _3, - "azurecontainer": _5, - "ngrok": [2, { - "ap": _3, - "au": _3, - "eu": _3, - "in": _3, - "jp": _3, - "sa": _3, - "us": _3 - }], - "nodeart": [0, { - "stage": _3 - }], - "nid": _3, - "pantheonsite": _3, - "dyn53": _3, - "pstmn": [2, { - "mock": _3 - }], - "protonet": _3, - "qoto": _3, - "qcx": [2, { - "sys": _5 - }], - "vaporcloud": _3, - "vbrplsbx": [0, { - "g": _3 - }], - "on-k3s": _5, - "on-rio": _5, - "readthedocs": _3, - "resindevice": _3, - "resinstaging": [0, { - "devices": _3 - }], - "hzc": _3, - "sandcats": _3, - "shiftcrypto": _3, - "shiftedit": _3, - "mo-siemens": _3, - "musician": _3, - "lair": _33, - "stolos": _5, - "spacekit": _3, - "utwente": _3, - "s5y": _5, - "edugit": _3, - "telebit": _3, - "thingdust": [0, { - "dev": _44, - "disrec": _44, - "prod": _45, - "testing": _44 - }], - "tickets": _3, - "upli": _3, - "wedeploy": _3, - "editorx": _3, - "wixstudio": _3, - "basicserver": _3, - "virtualserver": _3 - }], - "iq": _46, - "ir": [1, { - "ac": _2, - "co": _2, - "gov": _2, - "id": _2, - "net": _2, - "org": _2, - "sch": _2, - "xn--mgba3a4f16a": _2, - "ایران": _2, - "xn--mgba3a4fra": _2, - "ايران": _2 - }], - "is": [1, { - "net": _2, - "com": _2, - "edu": _2, - "gov": _2, - "org": _2, - "int": _2, - "cupcake": _3, - "blogspot": _3 - }], - "it": [1, { - "gov": _2, - "edu": _2, - "abr": _2, - "abruzzo": _2, - "aosta-valley": _2, - "aostavalley": _2, - "bas": _2, - "basilicata": _2, - "cal": _2, - "calabria": _2, - "cam": _2, - "campania": _2, - "emilia-romagna": _2, - "emiliaromagna": _2, - "emr": _2, - "friuli-v-giulia": _2, - "friuli-ve-giulia": _2, - "friuli-vegiulia": _2, - "friuli-venezia-giulia": _2, - "friuli-veneziagiulia": _2, - "friuli-vgiulia": _2, - "friuliv-giulia": _2, - "friulive-giulia": _2, - "friulivegiulia": _2, - "friulivenezia-giulia": _2, - "friuliveneziagiulia": _2, - "friulivgiulia": _2, - "fvg": _2, - "laz": _2, - "lazio": _2, - "lig": _2, - "liguria": _2, - "lom": _2, - "lombardia": _2, - "lombardy": _2, - "lucania": _2, - "mar": _2, - "marche": _2, - "mol": _2, - "molise": _2, - "piedmont": _2, - "piemonte": _2, - "pmn": _2, - "pug": _2, - "puglia": _2, - "sar": _2, - "sardegna": _2, - "sardinia": _2, - "sic": _2, - "sicilia": _2, - "sicily": _2, - "taa": _2, - "tos": _2, - "toscana": _2, - "trentin-sud-tirol": _2, - "xn--trentin-sd-tirol-rzb": _2, - "trentin-süd-tirol": _2, - "trentin-sudtirol": _2, - "xn--trentin-sdtirol-7vb": _2, - "trentin-südtirol": _2, - "trentin-sued-tirol": _2, - "trentin-suedtirol": _2, - "trentino-a-adige": _2, - "trentino-aadige": _2, - "trentino-alto-adige": _2, - "trentino-altoadige": _2, - "trentino-s-tirol": _2, - "trentino-stirol": _2, - "trentino-sud-tirol": _2, - "xn--trentino-sd-tirol-c3b": _2, - "trentino-süd-tirol": _2, - "trentino-sudtirol": _2, - "xn--trentino-sdtirol-szb": _2, - "trentino-südtirol": _2, - "trentino-sued-tirol": _2, - "trentino-suedtirol": _2, - "trentino": _2, - "trentinoa-adige": _2, - "trentinoaadige": _2, - "trentinoalto-adige": _2, - "trentinoaltoadige": _2, - "trentinos-tirol": _2, - "trentinostirol": _2, - "trentinosud-tirol": _2, - "xn--trentinosd-tirol-rzb": _2, - "trentinosüd-tirol": _2, - "trentinosudtirol": _2, - "xn--trentinosdtirol-7vb": _2, - "trentinosüdtirol": _2, - "trentinosued-tirol": _2, - "trentinosuedtirol": _2, - "trentinsud-tirol": _2, - "xn--trentinsd-tirol-6vb": _2, - "trentinsüd-tirol": _2, - "trentinsudtirol": _2, - "xn--trentinsdtirol-nsb": _2, - "trentinsüdtirol": _2, - "trentinsued-tirol": _2, - "trentinsuedtirol": _2, - "tuscany": _2, - "umb": _2, - "umbria": _2, - "val-d-aosta": _2, - "val-daosta": _2, - "vald-aosta": _2, - "valdaosta": _2, - "valle-aosta": _2, - "valle-d-aosta": _2, - "valle-daosta": _2, - "valleaosta": _2, - "valled-aosta": _2, - "valledaosta": _2, - "vallee-aoste": _2, - "xn--valle-aoste-ebb": _2, - "vallée-aoste": _2, - "vallee-d-aoste": _2, - "xn--valle-d-aoste-ehb": _2, - "vallée-d-aoste": _2, - "valleeaoste": _2, - "xn--valleaoste-e7a": _2, - "valléeaoste": _2, - "valleedaoste": _2, - "xn--valledaoste-ebb": _2, - "valléedaoste": _2, - "vao": _2, - "vda": _2, - "ven": _2, - "veneto": _2, - "ag": _2, - "agrigento": _2, - "al": _2, - "alessandria": _2, - "alto-adige": _2, - "altoadige": _2, - "an": _2, - "ancona": _2, - "andria-barletta-trani": _2, - "andria-trani-barletta": _2, - "andriabarlettatrani": _2, - "andriatranibarletta": _2, - "ao": _2, - "aosta": _2, - "aoste": _2, - "ap": _2, - "aq": _2, - "aquila": _2, - "ar": _2, - "arezzo": _2, - "ascoli-piceno": _2, - "ascolipiceno": _2, - "asti": _2, - "at": _2, - "av": _2, - "avellino": _2, - "ba": _2, - "balsan-sudtirol": _2, - "xn--balsan-sdtirol-nsb": _2, - "balsan-südtirol": _2, - "balsan-suedtirol": _2, - "balsan": _2, - "bari": _2, - "barletta-trani-andria": _2, - "barlettatraniandria": _2, - "belluno": _2, - "benevento": _2, - "bergamo": _2, - "bg": _2, - "bi": _2, - "biella": _2, - "bl": _2, - "bn": _2, - "bo": _2, - "bologna": _2, - "bolzano-altoadige": _2, - "bolzano": _2, - "bozen-sudtirol": _2, - "xn--bozen-sdtirol-2ob": _2, - "bozen-südtirol": _2, - "bozen-suedtirol": _2, - "bozen": _2, - "br": _2, - "brescia": _2, - "brindisi": _2, - "bs": _2, - "bt": _2, - "bulsan-sudtirol": _2, - "xn--bulsan-sdtirol-nsb": _2, - "bulsan-südtirol": _2, - "bulsan-suedtirol": _2, - "bulsan": _2, - "bz": _2, - "ca": _2, - "cagliari": _2, - "caltanissetta": _2, - "campidano-medio": _2, - "campidanomedio": _2, - "campobasso": _2, - "carbonia-iglesias": _2, - "carboniaiglesias": _2, - "carrara-massa": _2, - "carraramassa": _2, - "caserta": _2, - "catania": _2, - "catanzaro": _2, - "cb": _2, - "ce": _2, - "cesena-forli": _2, - "xn--cesena-forl-mcb": _2, - "cesena-forlì": _2, - "cesenaforli": _2, - "xn--cesenaforl-i8a": _2, - "cesenaforlì": _2, - "ch": _2, - "chieti": _2, - "ci": _2, - "cl": _2, - "cn": _2, - "co": _2, - "como": _2, - "cosenza": _2, - "cr": _2, - "cremona": _2, - "crotone": _2, - "cs": _2, - "ct": _2, - "cuneo": _2, - "cz": _2, - "dell-ogliastra": _2, - "dellogliastra": _2, - "en": _2, - "enna": _2, - "fc": _2, - "fe": _2, - "fermo": _2, - "ferrara": _2, - "fg": _2, - "fi": _2, - "firenze": _2, - "florence": _2, - "fm": _2, - "foggia": _2, - "forli-cesena": _2, - "xn--forl-cesena-fcb": _2, - "forlì-cesena": _2, - "forlicesena": _2, - "xn--forlcesena-c8a": _2, - "forlìcesena": _2, - "fr": _2, - "frosinone": _2, - "ge": _2, - "genoa": _2, - "genova": _2, - "go": _2, - "gorizia": _2, - "gr": _2, - "grosseto": _2, - "iglesias-carbonia": _2, - "iglesiascarbonia": _2, - "im": _2, - "imperia": _2, - "is": _2, - "isernia": _2, - "kr": _2, - "la-spezia": _2, - "laquila": _2, - "laspezia": _2, - "latina": _2, - "lc": _2, - "le": _2, - "lecce": _2, - "lecco": _2, - "li": _2, - "livorno": _2, - "lo": _2, - "lodi": _2, - "lt": _2, - "lu": _2, - "lucca": _2, - "macerata": _2, - "mantova": _2, - "massa-carrara": _2, - "massacarrara": _2, - "matera": _2, - "mb": _2, - "mc": _2, - "me": _2, - "medio-campidano": _2, - "mediocampidano": _2, - "messina": _2, - "mi": _2, - "milan": _2, - "milano": _2, - "mn": _2, - "mo": _2, - "modena": _2, - "monza-brianza": _2, - "monza-e-della-brianza": _2, - "monza": _2, - "monzabrianza": _2, - "monzaebrianza": _2, - "monzaedellabrianza": _2, - "ms": _2, - "mt": _2, - "na": _2, - "naples": _2, - "napoli": _2, - "no": _2, - "novara": _2, - "nu": _2, - "nuoro": _2, - "og": _2, - "ogliastra": _2, - "olbia-tempio": _2, - "olbiatempio": _2, - "or": _2, - "oristano": _2, - "ot": _2, - "pa": _2, - "padova": _2, - "padua": _2, - "palermo": _2, - "parma": _2, - "pavia": _2, - "pc": _2, - "pd": _2, - "pe": _2, - "perugia": _2, - "pesaro-urbino": _2, - "pesarourbino": _2, - "pescara": _2, - "pg": _2, - "pi": _2, - "piacenza": _2, - "pisa": _2, - "pistoia": _2, - "pn": _2, - "po": _2, - "pordenone": _2, - "potenza": _2, - "pr": _2, - "prato": _2, - "pt": _2, - "pu": _2, - "pv": _2, - "pz": _2, - "ra": _2, - "ragusa": _2, - "ravenna": _2, - "rc": _2, - "re": _2, - "reggio-calabria": _2, - "reggio-emilia": _2, - "reggiocalabria": _2, - "reggioemilia": _2, - "rg": _2, - "ri": _2, - "rieti": _2, - "rimini": _2, - "rm": _2, - "rn": _2, - "ro": _2, - "roma": _2, - "rome": _2, - "rovigo": _2, - "sa": _2, - "salerno": _2, - "sassari": _2, - "savona": _2, - "si": _2, - "siena": _2, - "siracusa": _2, - "so": _2, - "sondrio": _2, - "sp": _2, - "sr": _2, - "ss": _2, - "suedtirol": _2, - "xn--sdtirol-n2a": _2, - "südtirol": _2, - "sv": _2, - "ta": _2, - "taranto": _2, - "te": _2, - "tempio-olbia": _2, - "tempioolbia": _2, - "teramo": _2, - "terni": _2, - "tn": _2, - "to": _2, - "torino": _2, - "tp": _2, - "tr": _2, - "trani-andria-barletta": _2, - "trani-barletta-andria": _2, - "traniandriabarletta": _2, - "tranibarlettaandria": _2, - "trapani": _2, - "trento": _2, - "treviso": _2, - "trieste": _2, - "ts": _2, - "turin": _2, - "tv": _2, - "ud": _2, - "udine": _2, - "urbino-pesaro": _2, - "urbinopesaro": _2, - "va": _2, - "varese": _2, - "vb": _2, - "vc": _2, - "ve": _2, - "venezia": _2, - "venice": _2, - "verbania": _2, - "vercelli": _2, - "verona": _2, - "vi": _2, - "vibo-valentia": _2, - "vibovalentia": _2, - "vicenza": _2, - "viterbo": _2, - "vr": _2, - "vs": _2, - "vt": _2, - "vv": _2, - "blogspot": _3, - "ibxos": _3, - "iliadboxos": _3, - "neen": [0, { - "jc": _3 - }], - "tim": [0, { - "open": [0, { - "jelastic": _13 - }] - }], - "16-b": _3, - "32-b": _3, - "64-b": _3, - "123homepage": _3, - "myspreadshop": _3, - "syncloud": _3 - }], - "je": [1, { - "co": _2, - "net": _2, - "org": _2, - "of": _3 - }], - "jm": _12, - "jo": [1, { - "com": _2, - "org": _2, - "net": _2, - "edu": _2, - "sch": _2, - "gov": _2, - "mil": _2, - "name": _2 - }], - "jobs": _2, - "jp": [1, { - "ac": _2, - "ad": _2, - "co": _2, - "ed": _2, - "go": _2, - "gr": _2, - "lg": _2, - "ne": [1, { - "aseinet": _42, - "gehirn": _3, - "ivory": _3, - "mail-box": _3, - "mints": _3, - "mokuren": _3, - "opal": _3, - "sakura": _3, - "sumomo": _3, - "topaz": _3 - }], - "or": _2, - "aichi": [1, { - "aisai": _2, - "ama": _2, - "anjo": _2, - "asuke": _2, - "chiryu": _2, - "chita": _2, - "fuso": _2, - "gamagori": _2, - "handa": _2, - "hazu": _2, - "hekinan": _2, - "higashiura": _2, - "ichinomiya": _2, - "inazawa": _2, - "inuyama": _2, - "isshiki": _2, - "iwakura": _2, - "kanie": _2, - "kariya": _2, - "kasugai": _2, - "kira": _2, - "kiyosu": _2, - "komaki": _2, - "konan": _2, - "kota": _2, - "mihama": _2, - "miyoshi": _2, - "nishio": _2, - "nisshin": _2, - "obu": _2, - "oguchi": _2, - "oharu": _2, - "okazaki": _2, - "owariasahi": _2, - "seto": _2, - "shikatsu": _2, - "shinshiro": _2, - "shitara": _2, - "tahara": _2, - "takahama": _2, - "tobishima": _2, - "toei": _2, - "togo": _2, - "tokai": _2, - "tokoname": _2, - "toyoake": _2, - "toyohashi": _2, - "toyokawa": _2, - "toyone": _2, - "toyota": _2, - "tsushima": _2, - "yatomi": _2 - }], - "akita": [1, { - "akita": _2, - "daisen": _2, - "fujisato": _2, - "gojome": _2, - "hachirogata": _2, - "happou": _2, - "higashinaruse": _2, - "honjo": _2, - "honjyo": _2, - "ikawa": _2, - "kamikoani": _2, - "kamioka": _2, - "katagami": _2, - "kazuno": _2, - "kitaakita": _2, - "kosaka": _2, - "kyowa": _2, - "misato": _2, - "mitane": _2, - "moriyoshi": _2, - "nikaho": _2, - "noshiro": _2, - "odate": _2, - "oga": _2, - "ogata": _2, - "semboku": _2, - "yokote": _2, - "yurihonjo": _2 - }], - "aomori": [1, { - "aomori": _2, - "gonohe": _2, - "hachinohe": _2, - "hashikami": _2, - "hiranai": _2, - "hirosaki": _2, - "itayanagi": _2, - "kuroishi": _2, - "misawa": _2, - "mutsu": _2, - "nakadomari": _2, - "noheji": _2, - "oirase": _2, - "owani": _2, - "rokunohe": _2, - "sannohe": _2, - "shichinohe": _2, - "shingo": _2, - "takko": _2, - "towada": _2, - "tsugaru": _2, - "tsuruta": _2 - }], - "chiba": [1, { - "abiko": _2, - "asahi": _2, - "chonan": _2, - "chosei": _2, - "choshi": _2, - "chuo": _2, - "funabashi": _2, - "futtsu": _2, - "hanamigawa": _2, - "ichihara": _2, - "ichikawa": _2, - "ichinomiya": _2, - "inzai": _2, - "isumi": _2, - "kamagaya": _2, - "kamogawa": _2, - "kashiwa": _2, - "katori": _2, - "katsuura": _2, - "kimitsu": _2, - "kisarazu": _2, - "kozaki": _2, - "kujukuri": _2, - "kyonan": _2, - "matsudo": _2, - "midori": _2, - "mihama": _2, - "minamiboso": _2, - "mobara": _2, - "mutsuzawa": _2, - "nagara": _2, - "nagareyama": _2, - "narashino": _2, - "narita": _2, - "noda": _2, - "oamishirasato": _2, - "omigawa": _2, - "onjuku": _2, - "otaki": _2, - "sakae": _2, - "sakura": _2, - "shimofusa": _2, - "shirako": _2, - "shiroi": _2, - "shisui": _2, - "sodegaura": _2, - "sosa": _2, - "tako": _2, - "tateyama": _2, - "togane": _2, - "tohnosho": _2, - "tomisato": _2, - "urayasu": _2, - "yachimata": _2, - "yachiyo": _2, - "yokaichiba": _2, - "yokoshibahikari": _2, - "yotsukaido": _2 - }], - "ehime": [1, { - "ainan": _2, - "honai": _2, - "ikata": _2, - "imabari": _2, - "iyo": _2, - "kamijima": _2, - "kihoku": _2, - "kumakogen": _2, - "masaki": _2, - "matsuno": _2, - "matsuyama": _2, - "namikata": _2, - "niihama": _2, - "ozu": _2, - "saijo": _2, - "seiyo": _2, - "shikokuchuo": _2, - "tobe": _2, - "toon": _2, - "uchiko": _2, - "uwajima": _2, - "yawatahama": _2 - }], - "fukui": [1, { - "echizen": _2, - "eiheiji": _2, - "fukui": _2, - "ikeda": _2, - "katsuyama": _2, - "mihama": _2, - "minamiechizen": _2, - "obama": _2, - "ohi": _2, - "ono": _2, - "sabae": _2, - "sakai": _2, - "takahama": _2, - "tsuruga": _2, - "wakasa": _2 - }], - "fukuoka": [1, { - "ashiya": _2, - "buzen": _2, - "chikugo": _2, - "chikuho": _2, - "chikujo": _2, - "chikushino": _2, - "chikuzen": _2, - "chuo": _2, - "dazaifu": _2, - "fukuchi": _2, - "hakata": _2, - "higashi": _2, - "hirokawa": _2, - "hisayama": _2, - "iizuka": _2, - "inatsuki": _2, - "kaho": _2, - "kasuga": _2, - "kasuya": _2, - "kawara": _2, - "keisen": _2, - "koga": _2, - "kurate": _2, - "kurogi": _2, - "kurume": _2, - "minami": _2, - "miyako": _2, - "miyama": _2, - "miyawaka": _2, - "mizumaki": _2, - "munakata": _2, - "nakagawa": _2, - "nakama": _2, - "nishi": _2, - "nogata": _2, - "ogori": _2, - "okagaki": _2, - "okawa": _2, - "oki": _2, - "omuta": _2, - "onga": _2, - "onojo": _2, - "oto": _2, - "saigawa": _2, - "sasaguri": _2, - "shingu": _2, - "shinyoshitomi": _2, - "shonai": _2, - "soeda": _2, - "sue": _2, - "tachiarai": _2, - "tagawa": _2, - "takata": _2, - "toho": _2, - "toyotsu": _2, - "tsuiki": _2, - "ukiha": _2, - "umi": _2, - "usui": _2, - "yamada": _2, - "yame": _2, - "yanagawa": _2, - "yukuhashi": _2 - }], - "fukushima": [1, { - "aizubange": _2, - "aizumisato": _2, - "aizuwakamatsu": _2, - "asakawa": _2, - "bandai": _2, - "date": _2, - "fukushima": _2, - "furudono": _2, - "futaba": _2, - "hanawa": _2, - "higashi": _2, - "hirata": _2, - "hirono": _2, - "iitate": _2, - "inawashiro": _2, - "ishikawa": _2, - "iwaki": _2, - "izumizaki": _2, - "kagamiishi": _2, - "kaneyama": _2, - "kawamata": _2, - "kitakata": _2, - "kitashiobara": _2, - "koori": _2, - "koriyama": _2, - "kunimi": _2, - "miharu": _2, - "mishima": _2, - "namie": _2, - "nango": _2, - "nishiaizu": _2, - "nishigo": _2, - "okuma": _2, - "omotego": _2, - "ono": _2, - "otama": _2, - "samegawa": _2, - "shimogo": _2, - "shirakawa": _2, - "showa": _2, - "soma": _2, - "sukagawa": _2, - "taishin": _2, - "tamakawa": _2, - "tanagura": _2, - "tenei": _2, - "yabuki": _2, - "yamato": _2, - "yamatsuri": _2, - "yanaizu": _2, - "yugawa": _2 - }], - "gifu": [1, { - "anpachi": _2, - "ena": _2, - "gifu": _2, - "ginan": _2, - "godo": _2, - "gujo": _2, - "hashima": _2, - "hichiso": _2, - "hida": _2, - "higashishirakawa": _2, - "ibigawa": _2, - "ikeda": _2, - "kakamigahara": _2, - "kani": _2, - "kasahara": _2, - "kasamatsu": _2, - "kawaue": _2, - "kitagata": _2, - "mino": _2, - "minokamo": _2, - "mitake": _2, - "mizunami": _2, - "motosu": _2, - "nakatsugawa": _2, - "ogaki": _2, - "sakahogi": _2, - "seki": _2, - "sekigahara": _2, - "shirakawa": _2, - "tajimi": _2, - "takayama": _2, - "tarui": _2, - "toki": _2, - "tomika": _2, - "wanouchi": _2, - "yamagata": _2, - "yaotsu": _2, - "yoro": _2 - }], - "gunma": [1, { - "annaka": _2, - "chiyoda": _2, - "fujioka": _2, - "higashiagatsuma": _2, - "isesaki": _2, - "itakura": _2, - "kanna": _2, - "kanra": _2, - "katashina": _2, - "kawaba": _2, - "kiryu": _2, - "kusatsu": _2, - "maebashi": _2, - "meiwa": _2, - "midori": _2, - "minakami": _2, - "naganohara": _2, - "nakanojo": _2, - "nanmoku": _2, - "numata": _2, - "oizumi": _2, - "ora": _2, - "ota": _2, - "shibukawa": _2, - "shimonita": _2, - "shinto": _2, - "showa": _2, - "takasaki": _2, - "takayama": _2, - "tamamura": _2, - "tatebayashi": _2, - "tomioka": _2, - "tsukiyono": _2, - "tsumagoi": _2, - "ueno": _2, - "yoshioka": _2 - }], - "hiroshima": [1, { - "asaminami": _2, - "daiwa": _2, - "etajima": _2, - "fuchu": _2, - "fukuyama": _2, - "hatsukaichi": _2, - "higashihiroshima": _2, - "hongo": _2, - "jinsekikogen": _2, - "kaita": _2, - "kui": _2, - "kumano": _2, - "kure": _2, - "mihara": _2, - "miyoshi": _2, - "naka": _2, - "onomichi": _2, - "osakikamijima": _2, - "otake": _2, - "saka": _2, - "sera": _2, - "seranishi": _2, - "shinichi": _2, - "shobara": _2, - "takehara": _2 - }], - "hokkaido": [1, { - "abashiri": _2, - "abira": _2, - "aibetsu": _2, - "akabira": _2, - "akkeshi": _2, - "asahikawa": _2, - "ashibetsu": _2, - "ashoro": _2, - "assabu": _2, - "atsuma": _2, - "bibai": _2, - "biei": _2, - "bifuka": _2, - "bihoro": _2, - "biratori": _2, - "chippubetsu": _2, - "chitose": _2, - "date": _2, - "ebetsu": _2, - "embetsu": _2, - "eniwa": _2, - "erimo": _2, - "esan": _2, - "esashi": _2, - "fukagawa": _2, - "fukushima": _2, - "furano": _2, - "furubira": _2, - "haboro": _2, - "hakodate": _2, - "hamatonbetsu": _2, - "hidaka": _2, - "higashikagura": _2, - "higashikawa": _2, - "hiroo": _2, - "hokuryu": _2, - "hokuto": _2, - "honbetsu": _2, - "horokanai": _2, - "horonobe": _2, - "ikeda": _2, - "imakane": _2, - "ishikari": _2, - "iwamizawa": _2, - "iwanai": _2, - "kamifurano": _2, - "kamikawa": _2, - "kamishihoro": _2, - "kamisunagawa": _2, - "kamoenai": _2, - "kayabe": _2, - "kembuchi": _2, - "kikonai": _2, - "kimobetsu": _2, - "kitahiroshima": _2, - "kitami": _2, - "kiyosato": _2, - "koshimizu": _2, - "kunneppu": _2, - "kuriyama": _2, - "kuromatsunai": _2, - "kushiro": _2, - "kutchan": _2, - "kyowa": _2, - "mashike": _2, - "matsumae": _2, - "mikasa": _2, - "minamifurano": _2, - "mombetsu": _2, - "moseushi": _2, - "mukawa": _2, - "muroran": _2, - "naie": _2, - "nakagawa": _2, - "nakasatsunai": _2, - "nakatombetsu": _2, - "nanae": _2, - "nanporo": _2, - "nayoro": _2, - "nemuro": _2, - "niikappu": _2, - "niki": _2, - "nishiokoppe": _2, - "noboribetsu": _2, - "numata": _2, - "obihiro": _2, - "obira": _2, - "oketo": _2, - "okoppe": _2, - "otaru": _2, - "otobe": _2, - "otofuke": _2, - "otoineppu": _2, - "oumu": _2, - "ozora": _2, - "pippu": _2, - "rankoshi": _2, - "rebun": _2, - "rikubetsu": _2, - "rishiri": _2, - "rishirifuji": _2, - "saroma": _2, - "sarufutsu": _2, - "shakotan": _2, - "shari": _2, - "shibecha": _2, - "shibetsu": _2, - "shikabe": _2, - "shikaoi": _2, - "shimamaki": _2, - "shimizu": _2, - "shimokawa": _2, - "shinshinotsu": _2, - "shintoku": _2, - "shiranuka": _2, - "shiraoi": _2, - "shiriuchi": _2, - "sobetsu": _2, - "sunagawa": _2, - "taiki": _2, - "takasu": _2, - "takikawa": _2, - "takinoue": _2, - "teshikaga": _2, - "tobetsu": _2, - "tohma": _2, - "tomakomai": _2, - "tomari": _2, - "toya": _2, - "toyako": _2, - "toyotomi": _2, - "toyoura": _2, - "tsubetsu": _2, - "tsukigata": _2, - "urakawa": _2, - "urausu": _2, - "uryu": _2, - "utashinai": _2, - "wakkanai": _2, - "wassamu": _2, - "yakumo": _2, - "yoichi": _2 - }], - "hyogo": [1, { - "aioi": _2, - "akashi": _2, - "ako": _2, - "amagasaki": _2, - "aogaki": _2, - "asago": _2, - "ashiya": _2, - "awaji": _2, - "fukusaki": _2, - "goshiki": _2, - "harima": _2, - "himeji": _2, - "ichikawa": _2, - "inagawa": _2, - "itami": _2, - "kakogawa": _2, - "kamigori": _2, - "kamikawa": _2, - "kasai": _2, - "kasuga": _2, - "kawanishi": _2, - "miki": _2, - "minamiawaji": _2, - "nishinomiya": _2, - "nishiwaki": _2, - "ono": _2, - "sanda": _2, - "sannan": _2, - "sasayama": _2, - "sayo": _2, - "shingu": _2, - "shinonsen": _2, - "shiso": _2, - "sumoto": _2, - "taishi": _2, - "taka": _2, - "takarazuka": _2, - "takasago": _2, - "takino": _2, - "tamba": _2, - "tatsuno": _2, - "toyooka": _2, - "yabu": _2, - "yashiro": _2, - "yoka": _2, - "yokawa": _2 - }], - "ibaraki": [1, { - "ami": _2, - "asahi": _2, - "bando": _2, - "chikusei": _2, - "daigo": _2, - "fujishiro": _2, - "hitachi": _2, - "hitachinaka": _2, - "hitachiomiya": _2, - "hitachiota": _2, - "ibaraki": _2, - "ina": _2, - "inashiki": _2, - "itako": _2, - "iwama": _2, - "joso": _2, - "kamisu": _2, - "kasama": _2, - "kashima": _2, - "kasumigaura": _2, - "koga": _2, - "miho": _2, - "mito": _2, - "moriya": _2, - "naka": _2, - "namegata": _2, - "oarai": _2, - "ogawa": _2, - "omitama": _2, - "ryugasaki": _2, - "sakai": _2, - "sakuragawa": _2, - "shimodate": _2, - "shimotsuma": _2, - "shirosato": _2, - "sowa": _2, - "suifu": _2, - "takahagi": _2, - "tamatsukuri": _2, - "tokai": _2, - "tomobe": _2, - "tone": _2, - "toride": _2, - "tsuchiura": _2, - "tsukuba": _2, - "uchihara": _2, - "ushiku": _2, - "yachiyo": _2, - "yamagata": _2, - "yawara": _2, - "yuki": _2 - }], - "ishikawa": [1, { - "anamizu": _2, - "hakui": _2, - "hakusan": _2, - "kaga": _2, - "kahoku": _2, - "kanazawa": _2, - "kawakita": _2, - "komatsu": _2, - "nakanoto": _2, - "nanao": _2, - "nomi": _2, - "nonoichi": _2, - "noto": _2, - "shika": _2, - "suzu": _2, - "tsubata": _2, - "tsurugi": _2, - "uchinada": _2, - "wajima": _2 - }], - "iwate": [1, { - "fudai": _2, - "fujisawa": _2, - "hanamaki": _2, - "hiraizumi": _2, - "hirono": _2, - "ichinohe": _2, - "ichinoseki": _2, - "iwaizumi": _2, - "iwate": _2, - "joboji": _2, - "kamaishi": _2, - "kanegasaki": _2, - "karumai": _2, - "kawai": _2, - "kitakami": _2, - "kuji": _2, - "kunohe": _2, - "kuzumaki": _2, - "miyako": _2, - "mizusawa": _2, - "morioka": _2, - "ninohe": _2, - "noda": _2, - "ofunato": _2, - "oshu": _2, - "otsuchi": _2, - "rikuzentakata": _2, - "shiwa": _2, - "shizukuishi": _2, - "sumita": _2, - "tanohata": _2, - "tono": _2, - "yahaba": _2, - "yamada": _2 - }], - "kagawa": [1, { - "ayagawa": _2, - "higashikagawa": _2, - "kanonji": _2, - "kotohira": _2, - "manno": _2, - "marugame": _2, - "mitoyo": _2, - "naoshima": _2, - "sanuki": _2, - "tadotsu": _2, - "takamatsu": _2, - "tonosho": _2, - "uchinomi": _2, - "utazu": _2, - "zentsuji": _2 - }], - "kagoshima": [1, { - "akune": _2, - "amami": _2, - "hioki": _2, - "isa": _2, - "isen": _2, - "izumi": _2, - "kagoshima": _2, - "kanoya": _2, - "kawanabe": _2, - "kinko": _2, - "kouyama": _2, - "makurazaki": _2, - "matsumoto": _2, - "minamitane": _2, - "nakatane": _2, - "nishinoomote": _2, - "satsumasendai": _2, - "soo": _2, - "tarumizu": _2, - "yusui": _2 - }], - "kanagawa": [1, { - "aikawa": _2, - "atsugi": _2, - "ayase": _2, - "chigasaki": _2, - "ebina": _2, - "fujisawa": _2, - "hadano": _2, - "hakone": _2, - "hiratsuka": _2, - "isehara": _2, - "kaisei": _2, - "kamakura": _2, - "kiyokawa": _2, - "matsuda": _2, - "minamiashigara": _2, - "miura": _2, - "nakai": _2, - "ninomiya": _2, - "odawara": _2, - "oi": _2, - "oiso": _2, - "sagamihara": _2, - "samukawa": _2, - "tsukui": _2, - "yamakita": _2, - "yamato": _2, - "yokosuka": _2, - "yugawara": _2, - "zama": _2, - "zushi": _2 - }], - "kochi": [1, { - "aki": _2, - "geisei": _2, - "hidaka": _2, - "higashitsuno": _2, - "ino": _2, - "kagami": _2, - "kami": _2, - "kitagawa": _2, - "kochi": _2, - "mihara": _2, - "motoyama": _2, - "muroto": _2, - "nahari": _2, - "nakamura": _2, - "nankoku": _2, - "nishitosa": _2, - "niyodogawa": _2, - "ochi": _2, - "okawa": _2, - "otoyo": _2, - "otsuki": _2, - "sakawa": _2, - "sukumo": _2, - "susaki": _2, - "tosa": _2, - "tosashimizu": _2, - "toyo": _2, - "tsuno": _2, - "umaji": _2, - "yasuda": _2, - "yusuhara": _2 - }], - "kumamoto": [1, { - "amakusa": _2, - "arao": _2, - "aso": _2, - "choyo": _2, - "gyokuto": _2, - "kamiamakusa": _2, - "kikuchi": _2, - "kumamoto": _2, - "mashiki": _2, - "mifune": _2, - "minamata": _2, - "minamioguni": _2, - "nagasu": _2, - "nishihara": _2, - "oguni": _2, - "ozu": _2, - "sumoto": _2, - "takamori": _2, - "uki": _2, - "uto": _2, - "yamaga": _2, - "yamato": _2, - "yatsushiro": _2 - }], - "kyoto": [1, { - "ayabe": _2, - "fukuchiyama": _2, - "higashiyama": _2, - "ide": _2, - "ine": _2, - "joyo": _2, - "kameoka": _2, - "kamo": _2, - "kita": _2, - "kizu": _2, - "kumiyama": _2, - "kyotamba": _2, - "kyotanabe": _2, - "kyotango": _2, - "maizuru": _2, - "minami": _2, - "minamiyamashiro": _2, - "miyazu": _2, - "muko": _2, - "nagaokakyo": _2, - "nakagyo": _2, - "nantan": _2, - "oyamazaki": _2, - "sakyo": _2, - "seika": _2, - "tanabe": _2, - "uji": _2, - "ujitawara": _2, - "wazuka": _2, - "yamashina": _2, - "yawata": _2 - }], - "mie": [1, { - "asahi": _2, - "inabe": _2, - "ise": _2, - "kameyama": _2, - "kawagoe": _2, - "kiho": _2, - "kisosaki": _2, - "kiwa": _2, - "komono": _2, - "kumano": _2, - "kuwana": _2, - "matsusaka": _2, - "meiwa": _2, - "mihama": _2, - "minamiise": _2, - "misugi": _2, - "miyama": _2, - "nabari": _2, - "shima": _2, - "suzuka": _2, - "tado": _2, - "taiki": _2, - "taki": _2, - "tamaki": _2, - "toba": _2, - "tsu": _2, - "udono": _2, - "ureshino": _2, - "watarai": _2, - "yokkaichi": _2 - }], - "miyagi": [1, { - "furukawa": _2, - "higashimatsushima": _2, - "ishinomaki": _2, - "iwanuma": _2, - "kakuda": _2, - "kami": _2, - "kawasaki": _2, - "marumori": _2, - "matsushima": _2, - "minamisanriku": _2, - "misato": _2, - "murata": _2, - "natori": _2, - "ogawara": _2, - "ohira": _2, - "onagawa": _2, - "osaki": _2, - "rifu": _2, - "semine": _2, - "shibata": _2, - "shichikashuku": _2, - "shikama": _2, - "shiogama": _2, - "shiroishi": _2, - "tagajo": _2, - "taiwa": _2, - "tome": _2, - "tomiya": _2, - "wakuya": _2, - "watari": _2, - "yamamoto": _2, - "zao": _2 - }], - "miyazaki": [1, { - "aya": _2, - "ebino": _2, - "gokase": _2, - "hyuga": _2, - "kadogawa": _2, - "kawaminami": _2, - "kijo": _2, - "kitagawa": _2, - "kitakata": _2, - "kitaura": _2, - "kobayashi": _2, - "kunitomi": _2, - "kushima": _2, - "mimata": _2, - "miyakonojo": _2, - "miyazaki": _2, - "morotsuka": _2, - "nichinan": _2, - "nishimera": _2, - "nobeoka": _2, - "saito": _2, - "shiiba": _2, - "shintomi": _2, - "takaharu": _2, - "takanabe": _2, - "takazaki": _2, - "tsuno": _2 - }], - "nagano": [1, { - "achi": _2, - "agematsu": _2, - "anan": _2, - "aoki": _2, - "asahi": _2, - "azumino": _2, - "chikuhoku": _2, - "chikuma": _2, - "chino": _2, - "fujimi": _2, - "hakuba": _2, - "hara": _2, - "hiraya": _2, - "iida": _2, - "iijima": _2, - "iiyama": _2, - "iizuna": _2, - "ikeda": _2, - "ikusaka": _2, - "ina": _2, - "karuizawa": _2, - "kawakami": _2, - "kiso": _2, - "kisofukushima": _2, - "kitaaiki": _2, - "komagane": _2, - "komoro": _2, - "matsukawa": _2, - "matsumoto": _2, - "miasa": _2, - "minamiaiki": _2, - "minamimaki": _2, - "minamiminowa": _2, - "minowa": _2, - "miyada": _2, - "miyota": _2, - "mochizuki": _2, - "nagano": _2, - "nagawa": _2, - "nagiso": _2, - "nakagawa": _2, - "nakano": _2, - "nozawaonsen": _2, - "obuse": _2, - "ogawa": _2, - "okaya": _2, - "omachi": _2, - "omi": _2, - "ookuwa": _2, - "ooshika": _2, - "otaki": _2, - "otari": _2, - "sakae": _2, - "sakaki": _2, - "saku": _2, - "sakuho": _2, - "shimosuwa": _2, - "shinanomachi": _2, - "shiojiri": _2, - "suwa": _2, - "suzaka": _2, - "takagi": _2, - "takamori": _2, - "takayama": _2, - "tateshina": _2, - "tatsuno": _2, - "togakushi": _2, - "togura": _2, - "tomi": _2, - "ueda": _2, - "wada": _2, - "yamagata": _2, - "yamanouchi": _2, - "yasaka": _2, - "yasuoka": _2 - }], - "nagasaki": [1, { - "chijiwa": _2, - "futsu": _2, - "goto": _2, - "hasami": _2, - "hirado": _2, - "iki": _2, - "isahaya": _2, - "kawatana": _2, - "kuchinotsu": _2, - "matsuura": _2, - "nagasaki": _2, - "obama": _2, - "omura": _2, - "oseto": _2, - "saikai": _2, - "sasebo": _2, - "seihi": _2, - "shimabara": _2, - "shinkamigoto": _2, - "togitsu": _2, - "tsushima": _2, - "unzen": _2 - }], - "nara": [1, { - "ando": _2, - "gose": _2, - "heguri": _2, - "higashiyoshino": _2, - "ikaruga": _2, - "ikoma": _2, - "kamikitayama": _2, - "kanmaki": _2, - "kashiba": _2, - "kashihara": _2, - "katsuragi": _2, - "kawai": _2, - "kawakami": _2, - "kawanishi": _2, - "koryo": _2, - "kurotaki": _2, - "mitsue": _2, - "miyake": _2, - "nara": _2, - "nosegawa": _2, - "oji": _2, - "ouda": _2, - "oyodo": _2, - "sakurai": _2, - "sango": _2, - "shimoichi": _2, - "shimokitayama": _2, - "shinjo": _2, - "soni": _2, - "takatori": _2, - "tawaramoto": _2, - "tenkawa": _2, - "tenri": _2, - "uda": _2, - "yamatokoriyama": _2, - "yamatotakada": _2, - "yamazoe": _2, - "yoshino": _2 - }], - "niigata": [1, { - "aga": _2, - "agano": _2, - "gosen": _2, - "itoigawa": _2, - "izumozaki": _2, - "joetsu": _2, - "kamo": _2, - "kariwa": _2, - "kashiwazaki": _2, - "minamiuonuma": _2, - "mitsuke": _2, - "muika": _2, - "murakami": _2, - "myoko": _2, - "nagaoka": _2, - "niigata": _2, - "ojiya": _2, - "omi": _2, - "sado": _2, - "sanjo": _2, - "seiro": _2, - "seirou": _2, - "sekikawa": _2, - "shibata": _2, - "tagami": _2, - "tainai": _2, - "tochio": _2, - "tokamachi": _2, - "tsubame": _2, - "tsunan": _2, - "uonuma": _2, - "yahiko": _2, - "yoita": _2, - "yuzawa": _2 - }], - "oita": [1, { - "beppu": _2, - "bungoono": _2, - "bungotakada": _2, - "hasama": _2, - "hiji": _2, - "himeshima": _2, - "hita": _2, - "kamitsue": _2, - "kokonoe": _2, - "kuju": _2, - "kunisaki": _2, - "kusu": _2, - "oita": _2, - "saiki": _2, - "taketa": _2, - "tsukumi": _2, - "usa": _2, - "usuki": _2, - "yufu": _2 - }], - "okayama": [1, { - "akaiwa": _2, - "asakuchi": _2, - "bizen": _2, - "hayashima": _2, - "ibara": _2, - "kagamino": _2, - "kasaoka": _2, - "kibichuo": _2, - "kumenan": _2, - "kurashiki": _2, - "maniwa": _2, - "misaki": _2, - "nagi": _2, - "niimi": _2, - "nishiawakura": _2, - "okayama": _2, - "satosho": _2, - "setouchi": _2, - "shinjo": _2, - "shoo": _2, - "soja": _2, - "takahashi": _2, - "tamano": _2, - "tsuyama": _2, - "wake": _2, - "yakage": _2 - }], - "okinawa": [1, { - "aguni": _2, - "ginowan": _2, - "ginoza": _2, - "gushikami": _2, - "haebaru": _2, - "higashi": _2, - "hirara": _2, - "iheya": _2, - "ishigaki": _2, - "ishikawa": _2, - "itoman": _2, - "izena": _2, - "kadena": _2, - "kin": _2, - "kitadaito": _2, - "kitanakagusuku": _2, - "kumejima": _2, - "kunigami": _2, - "minamidaito": _2, - "motobu": _2, - "nago": _2, - "naha": _2, - "nakagusuku": _2, - "nakijin": _2, - "nanjo": _2, - "nishihara": _2, - "ogimi": _2, - "okinawa": _2, - "onna": _2, - "shimoji": _2, - "taketomi": _2, - "tarama": _2, - "tokashiki": _2, - "tomigusuku": _2, - "tonaki": _2, - "urasoe": _2, - "uruma": _2, - "yaese": _2, - "yomitan": _2, - "yonabaru": _2, - "yonaguni": _2, - "zamami": _2 - }], - "osaka": [1, { - "abeno": _2, - "chihayaakasaka": _2, - "chuo": _2, - "daito": _2, - "fujiidera": _2, - "habikino": _2, - "hannan": _2, - "higashiosaka": _2, - "higashisumiyoshi": _2, - "higashiyodogawa": _2, - "hirakata": _2, - "ibaraki": _2, - "ikeda": _2, - "izumi": _2, - "izumiotsu": _2, - "izumisano": _2, - "kadoma": _2, - "kaizuka": _2, - "kanan": _2, - "kashiwara": _2, - "katano": _2, - "kawachinagano": _2, - "kishiwada": _2, - "kita": _2, - "kumatori": _2, - "matsubara": _2, - "minato": _2, - "minoh": _2, - "misaki": _2, - "moriguchi": _2, - "neyagawa": _2, - "nishi": _2, - "nose": _2, - "osakasayama": _2, - "sakai": _2, - "sayama": _2, - "sennan": _2, - "settsu": _2, - "shijonawate": _2, - "shimamoto": _2, - "suita": _2, - "tadaoka": _2, - "taishi": _2, - "tajiri": _2, - "takaishi": _2, - "takatsuki": _2, - "tondabayashi": _2, - "toyonaka": _2, - "toyono": _2, - "yao": _2 - }], - "saga": [1, { - "ariake": _2, - "arita": _2, - "fukudomi": _2, - "genkai": _2, - "hamatama": _2, - "hizen": _2, - "imari": _2, - "kamimine": _2, - "kanzaki": _2, - "karatsu": _2, - "kashima": _2, - "kitagata": _2, - "kitahata": _2, - "kiyama": _2, - "kouhoku": _2, - "kyuragi": _2, - "nishiarita": _2, - "ogi": _2, - "omachi": _2, - "ouchi": _2, - "saga": _2, - "shiroishi": _2, - "taku": _2, - "tara": _2, - "tosu": _2, - "yoshinogari": _2 - }], - "saitama": [1, { - "arakawa": _2, - "asaka": _2, - "chichibu": _2, - "fujimi": _2, - "fujimino": _2, - "fukaya": _2, - "hanno": _2, - "hanyu": _2, - "hasuda": _2, - "hatogaya": _2, - "hatoyama": _2, - "hidaka": _2, - "higashichichibu": _2, - "higashimatsuyama": _2, - "honjo": _2, - "ina": _2, - "iruma": _2, - "iwatsuki": _2, - "kamiizumi": _2, - "kamikawa": _2, - "kamisato": _2, - "kasukabe": _2, - "kawagoe": _2, - "kawaguchi": _2, - "kawajima": _2, - "kazo": _2, - "kitamoto": _2, - "koshigaya": _2, - "kounosu": _2, - "kuki": _2, - "kumagaya": _2, - "matsubushi": _2, - "minano": _2, - "misato": _2, - "miyashiro": _2, - "miyoshi": _2, - "moroyama": _2, - "nagatoro": _2, - "namegawa": _2, - "niiza": _2, - "ogano": _2, - "ogawa": _2, - "ogose": _2, - "okegawa": _2, - "omiya": _2, - "otaki": _2, - "ranzan": _2, - "ryokami": _2, - "saitama": _2, - "sakado": _2, - "satte": _2, - "sayama": _2, - "shiki": _2, - "shiraoka": _2, - "soka": _2, - "sugito": _2, - "toda": _2, - "tokigawa": _2, - "tokorozawa": _2, - "tsurugashima": _2, - "urawa": _2, - "warabi": _2, - "yashio": _2, - "yokoze": _2, - "yono": _2, - "yorii": _2, - "yoshida": _2, - "yoshikawa": _2, - "yoshimi": _2 - }], - "shiga": [1, { - "aisho": _2, - "gamo": _2, - "higashiomi": _2, - "hikone": _2, - "koka": _2, - "konan": _2, - "kosei": _2, - "koto": _2, - "kusatsu": _2, - "maibara": _2, - "moriyama": _2, - "nagahama": _2, - "nishiazai": _2, - "notogawa": _2, - "omihachiman": _2, - "otsu": _2, - "ritto": _2, - "ryuoh": _2, - "takashima": _2, - "takatsuki": _2, - "torahime": _2, - "toyosato": _2, - "yasu": _2 - }], - "shimane": [1, { - "akagi": _2, - "ama": _2, - "gotsu": _2, - "hamada": _2, - "higashiizumo": _2, - "hikawa": _2, - "hikimi": _2, - "izumo": _2, - "kakinoki": _2, - "masuda": _2, - "matsue": _2, - "misato": _2, - "nishinoshima": _2, - "ohda": _2, - "okinoshima": _2, - "okuizumo": _2, - "shimane": _2, - "tamayu": _2, - "tsuwano": _2, - "unnan": _2, - "yakumo": _2, - "yasugi": _2, - "yatsuka": _2 - }], - "shizuoka": [1, { - "arai": _2, - "atami": _2, - "fuji": _2, - "fujieda": _2, - "fujikawa": _2, - "fujinomiya": _2, - "fukuroi": _2, - "gotemba": _2, - "haibara": _2, - "hamamatsu": _2, - "higashiizu": _2, - "ito": _2, - "iwata": _2, - "izu": _2, - "izunokuni": _2, - "kakegawa": _2, - "kannami": _2, - "kawanehon": _2, - "kawazu": _2, - "kikugawa": _2, - "kosai": _2, - "makinohara": _2, - "matsuzaki": _2, - "minamiizu": _2, - "mishima": _2, - "morimachi": _2, - "nishiizu": _2, - "numazu": _2, - "omaezaki": _2, - "shimada": _2, - "shimizu": _2, - "shimoda": _2, - "shizuoka": _2, - "susono": _2, - "yaizu": _2, - "yoshida": _2 - }], - "tochigi": [1, { - "ashikaga": _2, - "bato": _2, - "haga": _2, - "ichikai": _2, - "iwafune": _2, - "kaminokawa": _2, - "kanuma": _2, - "karasuyama": _2, - "kuroiso": _2, - "mashiko": _2, - "mibu": _2, - "moka": _2, - "motegi": _2, - "nasu": _2, - "nasushiobara": _2, - "nikko": _2, - "nishikata": _2, - "nogi": _2, - "ohira": _2, - "ohtawara": _2, - "oyama": _2, - "sakura": _2, - "sano": _2, - "shimotsuke": _2, - "shioya": _2, - "takanezawa": _2, - "tochigi": _2, - "tsuga": _2, - "ujiie": _2, - "utsunomiya": _2, - "yaita": _2 - }], - "tokushima": [1, { - "aizumi": _2, - "anan": _2, - "ichiba": _2, - "itano": _2, - "kainan": _2, - "komatsushima": _2, - "matsushige": _2, - "mima": _2, - "minami": _2, - "miyoshi": _2, - "mugi": _2, - "nakagawa": _2, - "naruto": _2, - "sanagochi": _2, - "shishikui": _2, - "tokushima": _2, - "wajiki": _2 - }], - "tokyo": [1, { - "adachi": _2, - "akiruno": _2, - "akishima": _2, - "aogashima": _2, - "arakawa": _2, - "bunkyo": _2, - "chiyoda": _2, - "chofu": _2, - "chuo": _2, - "edogawa": _2, - "fuchu": _2, - "fussa": _2, - "hachijo": _2, - "hachioji": _2, - "hamura": _2, - "higashikurume": _2, - "higashimurayama": _2, - "higashiyamato": _2, - "hino": _2, - "hinode": _2, - "hinohara": _2, - "inagi": _2, - "itabashi": _2, - "katsushika": _2, - "kita": _2, - "kiyose": _2, - "kodaira": _2, - "koganei": _2, - "kokubunji": _2, - "komae": _2, - "koto": _2, - "kouzushima": _2, - "kunitachi": _2, - "machida": _2, - "meguro": _2, - "minato": _2, - "mitaka": _2, - "mizuho": _2, - "musashimurayama": _2, - "musashino": _2, - "nakano": _2, - "nerima": _2, - "ogasawara": _2, - "okutama": _2, - "ome": _2, - "oshima": _2, - "ota": _2, - "setagaya": _2, - "shibuya": _2, - "shinagawa": _2, - "shinjuku": _2, - "suginami": _2, - "sumida": _2, - "tachikawa": _2, - "taito": _2, - "tama": _2, - "toshima": _2 - }], - "tottori": [1, { - "chizu": _2, - "hino": _2, - "kawahara": _2, - "koge": _2, - "kotoura": _2, - "misasa": _2, - "nanbu": _2, - "nichinan": _2, - "sakaiminato": _2, - "tottori": _2, - "wakasa": _2, - "yazu": _2, - "yonago": _2 - }], - "toyama": [1, { - "asahi": _2, - "fuchu": _2, - "fukumitsu": _2, - "funahashi": _2, - "himi": _2, - "imizu": _2, - "inami": _2, - "johana": _2, - "kamiichi": _2, - "kurobe": _2, - "nakaniikawa": _2, - "namerikawa": _2, - "nanto": _2, - "nyuzen": _2, - "oyabe": _2, - "taira": _2, - "takaoka": _2, - "tateyama": _2, - "toga": _2, - "tonami": _2, - "toyama": _2, - "unazuki": _2, - "uozu": _2, - "yamada": _2 - }], - "wakayama": [1, { - "arida": _2, - "aridagawa": _2, - "gobo": _2, - "hashimoto": _2, - "hidaka": _2, - "hirogawa": _2, - "inami": _2, - "iwade": _2, - "kainan": _2, - "kamitonda": _2, - "katsuragi": _2, - "kimino": _2, - "kinokawa": _2, - "kitayama": _2, - "koya": _2, - "koza": _2, - "kozagawa": _2, - "kudoyama": _2, - "kushimoto": _2, - "mihama": _2, - "misato": _2, - "nachikatsuura": _2, - "shingu": _2, - "shirahama": _2, - "taiji": _2, - "tanabe": _2, - "wakayama": _2, - "yuasa": _2, - "yura": _2 - }], - "yamagata": [1, { - "asahi": _2, - "funagata": _2, - "higashine": _2, - "iide": _2, - "kahoku": _2, - "kaminoyama": _2, - "kaneyama": _2, - "kawanishi": _2, - "mamurogawa": _2, - "mikawa": _2, - "murayama": _2, - "nagai": _2, - "nakayama": _2, - "nanyo": _2, - "nishikawa": _2, - "obanazawa": _2, - "oe": _2, - "oguni": _2, - "ohkura": _2, - "oishida": _2, - "sagae": _2, - "sakata": _2, - "sakegawa": _2, - "shinjo": _2, - "shirataka": _2, - "shonai": _2, - "takahata": _2, - "tendo": _2, - "tozawa": _2, - "tsuruoka": _2, - "yamagata": _2, - "yamanobe": _2, - "yonezawa": _2, - "yuza": _2 - }], - "yamaguchi": [1, { - "abu": _2, - "hagi": _2, - "hikari": _2, - "hofu": _2, - "iwakuni": _2, - "kudamatsu": _2, - "mitou": _2, - "nagato": _2, - "oshima": _2, - "shimonoseki": _2, - "shunan": _2, - "tabuse": _2, - "tokuyama": _2, - "toyota": _2, - "ube": _2, - "yuu": _2 - }], - "yamanashi": [1, { - "chuo": _2, - "doshi": _2, - "fuefuki": _2, - "fujikawa": _2, - "fujikawaguchiko": _2, - "fujiyoshida": _2, - "hayakawa": _2, - "hokuto": _2, - "ichikawamisato": _2, - "kai": _2, - "kofu": _2, - "koshu": _2, - "kosuge": _2, - "minami-alps": _2, - "minobu": _2, - "nakamichi": _2, - "nanbu": _2, - "narusawa": _2, - "nirasaki": _2, - "nishikatsura": _2, - "oshino": _2, - "otsuki": _2, - "showa": _2, - "tabayama": _2, - "tsuru": _2, - "uenohara": _2, - "yamanakako": _2, - "yamanashi": _2 - }], - "xn--4pvxs": _2, - "栃木": _2, - "xn--vgu402c": _2, - "愛知": _2, - "xn--c3s14m": _2, - "愛媛": _2, - "xn--f6qx53a": _2, - "兵庫": _2, - "xn--8pvr4u": _2, - "熊本": _2, - "xn--uist22h": _2, - "茨城": _2, - "xn--djrs72d6uy": _2, - "北海道": _2, - "xn--mkru45i": _2, - "千葉": _2, - "xn--0trq7p7nn": _2, - "和歌山": _2, - "xn--8ltr62k": _2, - "長崎": _2, - "xn--2m4a15e": _2, - "長野": _2, - "xn--efvn9s": _2, - "新潟": _2, - "xn--32vp30h": _2, - "青森": _2, - "xn--4it797k": _2, - "静岡": _2, - "xn--1lqs71d": _2, - "東京": _2, - "xn--5rtp49c": _2, - "石川": _2, - "xn--5js045d": _2, - "埼玉": _2, - "xn--ehqz56n": _2, - "三重": _2, - "xn--1lqs03n": _2, - "京都": _2, - "xn--qqqt11m": _2, - "佐賀": _2, - "xn--kbrq7o": _2, - "大分": _2, - "xn--pssu33l": _2, - "大阪": _2, - "xn--ntsq17g": _2, - "奈良": _2, - "xn--uisz3g": _2, - "宮城": _2, - "xn--6btw5a": _2, - "宮崎": _2, - "xn--1ctwo": _2, - "富山": _2, - "xn--6orx2r": _2, - "山口": _2, - "xn--rht61e": _2, - "山形": _2, - "xn--rht27z": _2, - "山梨": _2, - "xn--djty4k": _2, - "岩手": _2, - "xn--nit225k": _2, - "岐阜": _2, - "xn--rht3d": _2, - "岡山": _2, - "xn--klty5x": _2, - "島根": _2, - "xn--kltx9a": _2, - "広島": _2, - "xn--kltp7d": _2, - "徳島": _2, - "xn--uuwu58a": _2, - "沖縄": _2, - "xn--zbx025d": _2, - "滋賀": _2, - "xn--ntso0iqx3a": _2, - "神奈川": _2, - "xn--elqq16h": _2, - "福井": _2, - "xn--4it168d": _2, - "福岡": _2, - "xn--klt787d": _2, - "福島": _2, - "xn--rny31h": _2, - "秋田": _2, - "xn--7t0a264c": _2, - "群馬": _2, - "xn--5rtq34k": _2, - "香川": _2, - "xn--k7yn95e": _2, - "高知": _2, - "xn--tor131o": _2, - "鳥取": _2, - "xn--d5qv7z876c": _2, - "鹿児島": _2, - "kawasaki": _12, - "kitakyushu": _12, - "kobe": _12, - "nagoya": _12, - "sapporo": _12, - "sendai": _12, - "yokohama": _12, - "buyshop": _3, - "fashionstore": _3, - "handcrafted": _3, - "kawaiishop": _3, - "supersale": _3, - "theshop": _3, - "usercontent": _3, - "angry": _3, - "babyblue": _3, - "babymilk": _3, - "backdrop": _3, - "bambina": _3, - "bitter": _3, - "blush": _3, - "boo": _3, - "boy": _3, - "boyfriend": _3, - "but": _3, - "candypop": _3, - "capoo": _3, - "catfood": _3, - "cheap": _3, - "chicappa": _3, - "chillout": _3, - "chips": _3, - "chowder": _3, - "chu": _3, - "ciao": _3, - "cocotte": _3, - "coolblog": _3, - "cranky": _3, - "cutegirl": _3, - "daa": _3, - "deca": _3, - "deci": _3, - "digick": _3, - "egoism": _3, - "fakefur": _3, - "fem": _3, - "flier": _3, - "floppy": _3, - "fool": _3, - "frenchkiss": _3, - "girlfriend": _3, - "girly": _3, - "gloomy": _3, - "gonna": _3, - "greater": _3, - "hacca": _3, - "heavy": _3, - "her": _3, - "hiho": _3, - "hippy": _3, - "holy": _3, - "hungry": _3, - "icurus": _3, - "itigo": _3, - "jellybean": _3, - "kikirara": _3, - "kill": _3, - "kilo": _3, - "kuron": _3, - "littlestar": _3, - "lolipopmc": _3, - "lolitapunk": _3, - "lomo": _3, - "lovepop": _3, - "lovesick": _3, - "main": _3, - "mods": _3, - "mond": _3, - "mongolian": _3, - "moo": _3, - "namaste": _3, - "nikita": _3, - "nobushi": _3, - "noor": _3, - "oops": _3, - "parallel": _3, - "parasite": _3, - "pecori": _3, - "peewee": _3, - "penne": _3, - "pepper": _3, - "perma": _3, - "pigboat": _3, - "pinoko": _3, - "punyu": _3, - "pupu": _3, - "pussycat": _3, - "pya": _3, - "raindrop": _3, - "readymade": _3, - "sadist": _3, - "schoolbus": _3, - "secret": _3, - "staba": _3, - "stripper": _3, - "sub": _3, - "sunnyday": _3, - "thick": _3, - "tonkotsu": _3, - "under": _3, - "upper": _3, - "velvet": _3, - "verse": _3, - "versus": _3, - "vivian": _3, - "watson": _3, - "weblike": _3, - "whitesnow": _3, - "zombie": _3, - "blogspot": _3, - "2-d": _3, - "bona": _3, - "crap": _3, - "daynight": _3, - "eek": _3, - "flop": _3, - "halfmoon": _3, - "jeez": _3, - "matrix": _3, - "mimoza": _3, - "netgamers": _3, - "nyanta": _3, - "o0o0": _3, - "rdy": _3, - "rgr": _3, - "rulez": _3, - "sakurastorage": [0, { - "isk01": _47, - "isk02": _47 - }], - "saloon": _3, - "sblo": _3, - "skr": _3, - "tank": _3, - "uh-oh": _3, - "undo": _3, - "webaccel": [0, { - "rs": _3, - "user": _3 - }], - "websozai": _3, - "xii": _3 - }], - "ke": [1, { - "ac": _2, - "co": _6, - "go": _2, - "info": _2, - "me": _2, - "mobi": _2, - "ne": _2, - "or": _2, - "sc": _2 - }], - "kg": [1, { - "org": _2, - "net": _2, - "com": _2, - "edu": _2, - "gov": _2, - "mil": _2, - "blog": _3, - "io": _3, - "jp": _3, - "tv": _3, - "uk": _3, - "us": _3 - }], - "kh": _12, - "ki": _48, - "km": [1, { - "org": _2, - "nom": _2, - "gov": _2, - "prd": _2, - "tm": _2, - "edu": _2, - "mil": _2, - "ass": _2, - "com": _2, - "coop": _2, - "asso": _2, - "presse": _2, - "medecin": _2, - "notaires": _2, - "pharmaciens": _2, - "veterinaire": _2, - "gouv": _2 - }], - "kn": [1, { - "net": _2, - "org": _2, - "edu": _2, - "gov": _2 - }], - "kp": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "org": _2, - "rep": _2, - "tra": _2 - }], - "kr": [1, { - "ac": _2, - "co": _2, - "es": _2, - "go": _2, - "hs": _2, - "kg": _2, - "mil": _2, - "ms": _2, - "ne": _2, - "or": _2, - "pe": _2, - "re": _2, - "sc": _2, - "busan": _2, - "chungbuk": _2, - "chungnam": _2, - "daegu": _2, - "daejeon": _2, - "gangwon": _2, - "gwangju": _2, - "gyeongbuk": _2, - "gyeonggi": _2, - "gyeongnam": _2, - "incheon": _2, - "jeju": _2, - "jeonbuk": _2, - "jeonnam": _2, - "seoul": _2, - "ulsan": _2, - "blogspot": _3 - }], - "kw": [1, { - "com": _2, - "edu": _2, - "emb": _2, - "gov": _2, - "ind": _2, - "net": _2, - "org": _2 - }], - "ky": _39, - "kz": [1, { - "org": _2, - "edu": _2, - "net": _2, - "gov": _2, - "mil": _2, - "com": _2, - "jcloud": _3, - "kazteleport": [0, { - "upaas": _3 - }] - }], - "la": [1, { - "int": _2, - "net": _2, - "info": _2, - "edu": _2, - "gov": _2, - "per": _2, - "com": _2, - "org": _2, - "bnr": _3, - "c": _3 - }], - "lb": _4, - "lc": [1, { - "com": _2, - "net": _2, - "co": _2, - "org": _2, - "edu": _2, - "gov": _2, - "oy": _3 - }], - "li": [1, { - "blogspot": _3, - "caa": _3 - }], - "lk": [1, { - "gov": _2, - "sch": _2, - "net": _2, - "int": _2, - "com": _2, - "org": _2, - "edu": _2, - "ngo": _2, - "soc": _2, - "web": _2, - "ltd": _2, - "assn": _2, - "grp": _2, - "hotel": _2, - "ac": _2 - }], - "lr": _4, - "ls": [1, { - "ac": _2, - "biz": _2, - "co": _2, - "edu": _2, - "gov": _2, - "info": _2, - "net": _2, - "org": _2, - "sc": _2, - "de": _3 - }], - "lt": _49, - "lu": [1, { - "blogspot": _3, - "123website": _3 - }], - "lv": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "org": _2, - "mil": _2, - "id": _2, - "net": _2, - "asn": _2, - "conf": _2 - }], - "ly": [1, { - "com": _2, - "net": _2, - "gov": _2, - "plc": _2, - "edu": _2, - "sch": _2, - "med": _2, - "org": _2, - "id": _2 - }], - "ma": [1, { - "co": _2, - "net": _2, - "gov": _2, - "org": _2, - "ac": _2, - "press": _2 - }], - "mc": [1, { - "tm": _2, - "asso": _2 - }], - "md": [1, { - "blogspot": _3, - "at": _3, - "de": _3, - "jp": _3, - "to": _3 - }], - "me": [1, { - "co": _2, - "net": _2, - "org": _2, - "edu": _2, - "ac": _2, - "gov": _2, - "its": _2, - "priv": _2, - "c66": _3, - "daplie": [2, { - "localhost": _3 - }], - "edgestack": _3, - "filegear": _3, - "filegear-au": _3, - "filegear-de": _3, - "filegear-gb": _3, - "filegear-ie": _3, - "filegear-jp": _3, - "filegear-sg": _3, - "glitch": _3, - "ravendb": _3, - "lohmus": _3, - "barsy": _3, - "mcpe": _3, - "mcdir": _3, - "soundcast": _3, - "tcp4": _3, - "brasilia": _3, - "ddns": _3, - "dnsfor": _3, - "hopto": _3, - "loginto": _3, - "noip": _3, - "webhop": _3, - "vp4": _3, - "diskstation": _3, - "dscloud": _3, - "i234": _3, - "myds": _3, - "synology": _3, - "transip": _37, - "wedeploy": _3, - "yombo": _3, - "nohost": _3 - }], - "mg": [1, { - "org": _2, - "nom": _2, - "gov": _2, - "prd": _2, - "tm": _2, - "edu": _2, - "mil": _2, - "com": _2, - "co": _2 - }], - "mh": _2, - "mil": _2, - "mk": [1, { - "com": _2, - "org": _2, - "net": _2, - "edu": _2, - "gov": _2, - "inf": _2, - "name": _2, - "blogspot": _3 - }], - "ml": [1, { - "com": _2, - "edu": _2, - "gouv": _2, - "gov": _2, - "net": _2, - "org": _2, - "presse": _2 - }], - "mm": _12, - "mn": [1, { - "gov": _2, - "edu": _2, - "org": _2, - "nyc": _3 - }], - "mo": _4, - "mobi": [1, { - "barsy": _3, - "dscloud": _3 - }], - "mp": [1, { - "ju": _3 - }], - "mq": _2, - "mr": _49, - "ms": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "net": _2, - "org": _2, - "lab": _3, - "minisite": _3 - }], - "mt": [1, { - "com": _6, - "edu": _2, - "net": _2, - "org": _2 - }], - "mu": [1, { - "com": _2, - "net": _2, - "org": _2, - "gov": _2, - "ac": _2, - "co": _2, - "or": _2 - }], - "museum": _2, - "mv": [1, { - "aero": _2, - "biz": _2, - "com": _2, - "coop": _2, - "edu": _2, - "gov": _2, - "info": _2, - "int": _2, - "mil": _2, - "museum": _2, - "name": _2, - "net": _2, - "org": _2, - "pro": _2 - }], - "mw": [1, { - "ac": _2, - "biz": _2, - "co": _2, - "com": _2, - "coop": _2, - "edu": _2, - "gov": _2, - "int": _2, - "museum": _2, - "net": _2, - "org": _2 - }], - "mx": [1, { - "com": _2, - "org": _2, - "gob": _2, - "edu": _2, - "net": _2, - "blogspot": _3 - }], - "my": [1, { - "biz": _2, - "com": _2, - "edu": _2, - "gov": _2, - "mil": _2, - "name": _2, - "net": _2, - "org": _2, - "blogspot": _3 - }], - "mz": [1, { - "ac": _2, - "adv": _2, - "co": _2, - "edu": _2, - "gov": _2, - "mil": _2, - "net": _2, - "org": _2 - }], - "na": [1, { - "info": _2, - "pro": _2, - "name": _2, - "school": _2, - "or": _2, - "dr": _2, - "us": _2, - "mx": _2, - "ca": _2, - "in": _2, - "cc": _2, - "tv": _2, - "ws": _2, - "mobi": _2, - "co": _2, - "com": _2, - "org": _2 - }], - "name": [1, { - "her": _52, - "his": _52 - }], - "nc": [1, { - "asso": _2, - "nom": _2 - }], - "ne": _2, - "net": [1, { - "adobeaemcloud": _3, - "adobeio-static": _3, - "adobeioruntime": _3, - "akadns": _3, - "akamai": _3, - "akamai-staging": _3, - "akamaiedge": _3, - "akamaiedge-staging": _3, - "akamaihd": _3, - "akamaihd-staging": _3, - "akamaiorigin": _3, - "akamaiorigin-staging": _3, - "akamaized": _3, - "akamaized-staging": _3, - "edgekey": _3, - "edgekey-staging": _3, - "edgesuite": _3, - "edgesuite-staging": _3, - "alwaysdata": _3, - "myamaze": _3, - "cloudfront": _3, - "t3l3p0rt": _3, - "appudo": _3, - "atlassian-dev": [0, { - "prod": [0, { - "cdn": _3 - }] - }], - "myfritz": _3, - "onavstack": _3, - "shopselect": _3, - "blackbaudcdn": _3, - "boomla": _3, - "bplaced": _3, - "square7": _3, - "gb": _3, - "hu": _3, - "jp": _3, - "se": _3, - "uk": _3, - "in": _3, - "clickrising": _3, - "cloudaccess": _3, - "cdn77-ssl": _3, - "cdn77": [0, { - "r": _3 - }], - "feste-ip": _3, - "knx-server": _3, - "static-access": _3, - "cryptonomic": _5, - "dattolocal": _3, - "mydatto": _3, - "debian": _3, - "bitbridge": _3, - "at-band-camp": _3, - "blogdns": _3, - "broke-it": _3, - "buyshouses": _3, - "dnsalias": _3, - "dnsdojo": _3, - "does-it": _3, - "dontexist": _3, - "dynalias": _3, - "dynathome": _3, - "endofinternet": _3, - "from-az": _3, - "from-co": _3, - "from-la": _3, - "from-ny": _3, - "gets-it": _3, - "ham-radio-op": _3, - "homeftp": _3, - "homeip": _3, - "homelinux": _3, - "homeunix": _3, - "in-the-band": _3, - "is-a-chef": _3, - "is-a-geek": _3, - "isa-geek": _3, - "kicks-ass": _3, - "office-on-the": _3, - "podzone": _3, - "scrapper-site": _3, - "selfip": _3, - "sells-it": _3, - "servebbs": _3, - "serveftp": _3, - "thruhere": _3, - "webhop": _3, - "definima": _3, - "casacam": _3, - "dynu": _3, - "dynv6": _3, - "twmail": _3, - "ru": _3, - "channelsdvr": [2, { - "u": _3 - }], - "fastlylb": [2, { - "map": _3 - }], - "fastly": [0, { - "freetls": _3, - "map": _3, - "prod": [0, { - "a": _3, - "global": _3 - }], - "ssl": [0, { - "a": _3, - "b": _3, - "global": _3 - }] - }], - "edgeapp": _3, - "flynnhosting": _3, - "cdn-edges": _3, - "heteml": _3, - "cloudfunctions": _3, - "moonscale": _3, - "in-dsl": _3, - "in-vpn": _3, - "ipifony": _3, - "iobb": _3, - "cloudjiffy": [2, { - "fra1-de": _3, - "west1-us": _3 - }], - "elastx": [0, { - "jls-sto1": _3, - "jls-sto2": _3, - "jls-sto3": _3 - }], - "faststacks": _3, - "massivegrid": [0, { - "paas": [0, { - "fr-1": _3, - "lon-1": _3, - "lon-2": _3, - "ny-1": _3, - "ny-2": _3, - "sg-1": _3 - }] - }], - "saveincloud": [0, { - "jelastic": _3, - "nordeste-idc": _3 - }], - "scaleforce": _40, - "tsukaeru": _41, - "kinghost": _3, - "uni5": _3, - "krellian": _3, - "barsy": _3, - "memset": _3, - "azurewebsites": _3, - "azure-mobile": _3, - "cloudapp": _3, - "azurestaticapps": [2, { - "1": _3, - "2": _3, - "3": _3, - "4": _3, - "5": _3, - "6": _3, - "7": _3, - "centralus": _3, - "eastasia": _3, - "eastus2": _3, - "westeurope": _3, - "westus2": _3 - }], - "dnsup": _3, - "hicam": _3, - "now-dns": _3, - "ownip": _3, - "vpndns": _3, - "eating-organic": _3, - "mydissent": _3, - "myeffect": _3, - "mymediapc": _3, - "mypsx": _3, - "mysecuritycamera": _3, - "nhlfan": _3, - "no-ip": _3, - "pgafan": _3, - "privatizehealthinsurance": _3, - "bounceme": _3, - "ddns": _3, - "redirectme": _3, - "serveblog": _3, - "serveminecraft": _3, - "sytes": _3, - "cloudycluster": _3, - "ovh": [0, { - "webpaas": _5, - "hosting": _5 - }], - "bar0": _3, - "bar1": _3, - "bar2": _3, - "rackmaze": _3, - "squares": _3, - "schokokeks": _3, - "firewall-gateway": _3, - "seidat": _3, - "senseering": _3, - "siteleaf": _3, - "vps-host": [2, { - "jelastic": [0, { - "atl": _3, - "njs": _3, - "ric": _3 - }] - }], - "myspreadshop": _3, - "srcf": [0, { - "soc": _3, - "user": _3 - }], - "supabase": _3, - "dsmynas": _3, - "familyds": _3, - "tailscale": [0, { - "beta": _3 - }], - "ts": _3, - "torproject": [2, { - "pages": _3 - }], - "reserve-online": _3, - "community-pro": _3, - "meinforum": _3, - "yandexcloud": [2, { - "storage": _3, - "website": _3 - }], - "za": _3 - }], - "nf": [1, { - "com": _2, - "net": _2, - "per": _2, - "rec": _2, - "web": _2, - "arts": _2, - "firm": _2, - "info": _2, - "other": _2, - "store": _2 - }], - "ng": [1, { - "com": _6, - "edu": _2, - "gov": _2, - "i": _2, - "mil": _2, - "mobi": _2, - "name": _2, - "net": _2, - "org": _2, - "sch": _2, - "col": _3, - "firm": _3, - "gen": _3, - "ltd": _3, - "ngo": _3 - }], - "ni": [1, { - "ac": _2, - "biz": _2, - "co": _2, - "com": _2, - "edu": _2, - "gob": _2, - "in": _2, - "info": _2, - "int": _2, - "mil": _2, - "net": _2, - "nom": _2, - "org": _2, - "web": _2 - }], - "nl": [1, { - "co": _3, - "hosting-cluster": _3, - "blogspot": _3, - "gov": _3, - "khplay": _3, - "123website": _3, - "myspreadshop": _3, - "transurl": _5, - "cistron": _3, - "demon": _3 - }], - "no": [1, { - "fhs": _2, - "vgs": _2, - "fylkesbibl": _2, - "folkebibl": _2, - "museum": _2, - "idrett": _2, - "priv": _2, - "mil": _2, - "stat": _2, - "dep": _2, - "kommune": _2, - "herad": _2, - "aa": _53, - "ah": _53, - "bu": _53, - "fm": _53, - "hl": _53, - "hm": _53, - "jan-mayen": _53, - "mr": _53, - "nl": _53, - "nt": _53, - "of": _53, - "ol": _53, - "oslo": _53, - "rl": _53, - "sf": _53, - "st": _53, - "svalbard": _53, - "tm": _53, - "tr": _53, - "va": _53, - "vf": _53, - "akrehamn": _2, - "xn--krehamn-dxa": _2, - "åkrehamn": _2, - "algard": _2, - "xn--lgrd-poac": _2, - "ålgård": _2, - "arna": _2, - "brumunddal": _2, - "bryne": _2, - "bronnoysund": _2, - "xn--brnnysund-m8ac": _2, - "brønnøysund": _2, - "drobak": _2, - "xn--drbak-wua": _2, - "drøbak": _2, - "egersund": _2, - "fetsund": _2, - "floro": _2, - "xn--flor-jra": _2, - "florø": _2, - "fredrikstad": _2, - "hokksund": _2, - "honefoss": _2, - "xn--hnefoss-q1a": _2, - "hønefoss": _2, - "jessheim": _2, - "jorpeland": _2, - "xn--jrpeland-54a": _2, - "jørpeland": _2, - "kirkenes": _2, - "kopervik": _2, - "krokstadelva": _2, - "langevag": _2, - "xn--langevg-jxa": _2, - "langevåg": _2, - "leirvik": _2, - "mjondalen": _2, - "xn--mjndalen-64a": _2, - "mjøndalen": _2, - "mo-i-rana": _2, - "mosjoen": _2, - "xn--mosjen-eya": _2, - "mosjøen": _2, - "nesoddtangen": _2, - "orkanger": _2, - "osoyro": _2, - "xn--osyro-wua": _2, - "osøyro": _2, - "raholt": _2, - "xn--rholt-mra": _2, - "råholt": _2, - "sandnessjoen": _2, - "xn--sandnessjen-ogb": _2, - "sandnessjøen": _2, - "skedsmokorset": _2, - "slattum": _2, - "spjelkavik": _2, - "stathelle": _2, - "stavern": _2, - "stjordalshalsen": _2, - "xn--stjrdalshalsen-sqb": _2, - "stjørdalshalsen": _2, - "tananger": _2, - "tranby": _2, - "vossevangen": _2, - "afjord": _2, - "xn--fjord-lra": _2, - "åfjord": _2, - "agdenes": _2, - "al": _2, - "xn--l-1fa": _2, - "ål": _2, - "alesund": _2, - "xn--lesund-hua": _2, - "ålesund": _2, - "alstahaug": _2, - "alta": _2, - "xn--lt-liac": _2, - "áltá": _2, - "alaheadju": _2, - "xn--laheadju-7ya": _2, - "álaheadju": _2, - "alvdal": _2, - "amli": _2, - "xn--mli-tla": _2, - "åmli": _2, - "amot": _2, - "xn--mot-tla": _2, - "åmot": _2, - "andebu": _2, - "andoy": _2, - "xn--andy-ira": _2, - "andøy": _2, - "andasuolo": _2, - "ardal": _2, - "xn--rdal-poa": _2, - "årdal": _2, - "aremark": _2, - "arendal": _2, - "xn--s-1fa": _2, - "ås": _2, - "aseral": _2, - "xn--seral-lra": _2, - "åseral": _2, - "asker": _2, - "askim": _2, - "askvoll": _2, - "askoy": _2, - "xn--asky-ira": _2, - "askøy": _2, - "asnes": _2, - "xn--snes-poa": _2, - "åsnes": _2, - "audnedaln": _2, - "aukra": _2, - "aure": _2, - "aurland": _2, - "aurskog-holand": _2, - "xn--aurskog-hland-jnb": _2, - "aurskog-høland": _2, - "austevoll": _2, - "austrheim": _2, - "averoy": _2, - "xn--avery-yua": _2, - "averøy": _2, - "balestrand": _2, - "ballangen": _2, - "balat": _2, - "xn--blt-elab": _2, - "bálát": _2, - "balsfjord": _2, - "bahccavuotna": _2, - "xn--bhccavuotna-k7a": _2, - "báhccavuotna": _2, - "bamble": _2, - "bardu": _2, - "beardu": _2, - "beiarn": _2, - "bajddar": _2, - "xn--bjddar-pta": _2, - "bájddar": _2, - "baidar": _2, - "xn--bidr-5nac": _2, - "báidár": _2, - "berg": _2, - "bergen": _2, - "berlevag": _2, - "xn--berlevg-jxa": _2, - "berlevåg": _2, - "bearalvahki": _2, - "xn--bearalvhki-y4a": _2, - "bearalváhki": _2, - "bindal": _2, - "birkenes": _2, - "bjarkoy": _2, - "xn--bjarky-fya": _2, - "bjarkøy": _2, - "bjerkreim": _2, - "bjugn": _2, - "bodo": _2, - "xn--bod-2na": _2, - "bodø": _2, - "badaddja": _2, - "xn--bdddj-mrabd": _2, - "bådåddjå": _2, - "budejju": _2, - "bokn": _2, - "bremanger": _2, - "bronnoy": _2, - "xn--brnny-wuac": _2, - "brønnøy": _2, - "bygland": _2, - "bykle": _2, - "barum": _2, - "xn--brum-voa": _2, - "bærum": _2, - "telemark": [0, { - "bo": _2, - "xn--b-5ga": _2, - "bø": _2 - }], - "nordland": [0, { - "bo": _2, - "xn--b-5ga": _2, - "bø": _2, - "heroy": _2, - "xn--hery-ira": _2, - "herøy": _2 - }], - "bievat": _2, - "xn--bievt-0qa": _2, - "bievát": _2, - "bomlo": _2, - "xn--bmlo-gra": _2, - "bømlo": _2, - "batsfjord": _2, - "xn--btsfjord-9za": _2, - "båtsfjord": _2, - "bahcavuotna": _2, - "xn--bhcavuotna-s4a": _2, - "báhcavuotna": _2, - "dovre": _2, - "drammen": _2, - "drangedal": _2, - "dyroy": _2, - "xn--dyry-ira": _2, - "dyrøy": _2, - "donna": _2, - "xn--dnna-gra": _2, - "dønna": _2, - "eid": _2, - "eidfjord": _2, - "eidsberg": _2, - "eidskog": _2, - "eidsvoll": _2, - "eigersund": _2, - "elverum": _2, - "enebakk": _2, - "engerdal": _2, - "etne": _2, - "etnedal": _2, - "evenes": _2, - "evenassi": _2, - "xn--eveni-0qa01ga": _2, - "evenášši": _2, - "evje-og-hornnes": _2, - "farsund": _2, - "fauske": _2, - "fuossko": _2, - "fuoisku": _2, - "fedje": _2, - "fet": _2, - "finnoy": _2, - "xn--finny-yua": _2, - "finnøy": _2, - "fitjar": _2, - "fjaler": _2, - "fjell": _2, - "flakstad": _2, - "flatanger": _2, - "flekkefjord": _2, - "flesberg": _2, - "flora": _2, - "fla": _2, - "xn--fl-zia": _2, - "flå": _2, - "folldal": _2, - "forsand": _2, - "fosnes": _2, - "frei": _2, - "frogn": _2, - "froland": _2, - "frosta": _2, - "frana": _2, - "xn--frna-woa": _2, - "fræna": _2, - "froya": _2, - "xn--frya-hra": _2, - "frøya": _2, - "fusa": _2, - "fyresdal": _2, - "forde": _2, - "xn--frde-gra": _2, - "førde": _2, - "gamvik": _2, - "gangaviika": _2, - "xn--ggaviika-8ya47h": _2, - "gáŋgaviika": _2, - "gaular": _2, - "gausdal": _2, - "gildeskal": _2, - "xn--gildeskl-g0a": _2, - "gildeskål": _2, - "giske": _2, - "gjemnes": _2, - "gjerdrum": _2, - "gjerstad": _2, - "gjesdal": _2, - "gjovik": _2, - "xn--gjvik-wua": _2, - "gjøvik": _2, - "gloppen": _2, - "gol": _2, - "gran": _2, - "grane": _2, - "granvin": _2, - "gratangen": _2, - "grimstad": _2, - "grong": _2, - "kraanghke": _2, - "xn--kranghke-b0a": _2, - "kråanghke": _2, - "grue": _2, - "gulen": _2, - "hadsel": _2, - "halden": _2, - "halsa": _2, - "hamar": _2, - "hamaroy": _2, - "habmer": _2, - "xn--hbmer-xqa": _2, - "hábmer": _2, - "hapmir": _2, - "xn--hpmir-xqa": _2, - "hápmir": _2, - "hammerfest": _2, - "hammarfeasta": _2, - "xn--hmmrfeasta-s4ac": _2, - "hámmárfeasta": _2, - "haram": _2, - "hareid": _2, - "harstad": _2, - "hasvik": _2, - "aknoluokta": _2, - "xn--koluokta-7ya57h": _2, - "ákŋoluokta": _2, - "hattfjelldal": _2, - "aarborte": _2, - "haugesund": _2, - "hemne": _2, - "hemnes": _2, - "hemsedal": _2, - "more-og-romsdal": [0, { - "heroy": _2, - "sande": _2 - }], - "xn--mre-og-romsdal-qqb": [0, { - "xn--hery-ira": _2, - "sande": _2 - }], - "møre-og-romsdal": [0, { - "herøy": _2, - "sande": _2 - }], - "hitra": _2, - "hjartdal": _2, - "hjelmeland": _2, - "hobol": _2, - "xn--hobl-ira": _2, - "hobøl": _2, - "hof": _2, - "hol": _2, - "hole": _2, - "holmestrand": _2, - "holtalen": _2, - "xn--holtlen-hxa": _2, - "holtålen": _2, - "hornindal": _2, - "horten": _2, - "hurdal": _2, - "hurum": _2, - "hvaler": _2, - "hyllestad": _2, - "hagebostad": _2, - "xn--hgebostad-g3a": _2, - "hægebostad": _2, - "hoyanger": _2, - "xn--hyanger-q1a": _2, - "høyanger": _2, - "hoylandet": _2, - "xn--hylandet-54a": _2, - "høylandet": _2, - "ha": _2, - "xn--h-2fa": _2, - "hå": _2, - "ibestad": _2, - "inderoy": _2, - "xn--indery-fya": _2, - "inderøy": _2, - "iveland": _2, - "jevnaker": _2, - "jondal": _2, - "jolster": _2, - "xn--jlster-bya": _2, - "jølster": _2, - "karasjok": _2, - "karasjohka": _2, - "xn--krjohka-hwab49j": _2, - "kárášjohka": _2, - "karlsoy": _2, - "galsa": _2, - "xn--gls-elac": _2, - "gálsá": _2, - "karmoy": _2, - "xn--karmy-yua": _2, - "karmøy": _2, - "kautokeino": _2, - "guovdageaidnu": _2, - "klepp": _2, - "klabu": _2, - "xn--klbu-woa": _2, - "klæbu": _2, - "kongsberg": _2, - "kongsvinger": _2, - "kragero": _2, - "xn--krager-gya": _2, - "kragerø": _2, - "kristiansand": _2, - "kristiansund": _2, - "krodsherad": _2, - "xn--krdsherad-m8a": _2, - "krødsherad": _2, - "kvalsund": _2, - "rahkkeravju": _2, - "xn--rhkkervju-01af": _2, - "ráhkkerávju": _2, - "kvam": _2, - "kvinesdal": _2, - "kvinnherad": _2, - "kviteseid": _2, - "kvitsoy": _2, - "xn--kvitsy-fya": _2, - "kvitsøy": _2, - "kvafjord": _2, - "xn--kvfjord-nxa": _2, - "kvæfjord": _2, - "giehtavuoatna": _2, - "kvanangen": _2, - "xn--kvnangen-k0a": _2, - "kvænangen": _2, - "navuotna": _2, - "xn--nvuotna-hwa": _2, - "návuotna": _2, - "kafjord": _2, - "xn--kfjord-iua": _2, - "kåfjord": _2, - "gaivuotna": _2, - "xn--givuotna-8ya": _2, - "gáivuotna": _2, - "larvik": _2, - "lavangen": _2, - "lavagis": _2, - "loabat": _2, - "xn--loabt-0qa": _2, - "loabát": _2, - "lebesby": _2, - "davvesiida": _2, - "leikanger": _2, - "leirfjord": _2, - "leka": _2, - "leksvik": _2, - "lenvik": _2, - "leangaviika": _2, - "xn--leagaviika-52b": _2, - "leaŋgaviika": _2, - "lesja": _2, - "levanger": _2, - "lier": _2, - "lierne": _2, - "lillehammer": _2, - "lillesand": _2, - "lindesnes": _2, - "lindas": _2, - "xn--linds-pra": _2, - "lindås": _2, - "lom": _2, - "loppa": _2, - "lahppi": _2, - "xn--lhppi-xqa": _2, - "láhppi": _2, - "lund": _2, - "lunner": _2, - "luroy": _2, - "xn--lury-ira": _2, - "lurøy": _2, - "luster": _2, - "lyngdal": _2, - "lyngen": _2, - "ivgu": _2, - "lardal": _2, - "lerdal": _2, - "xn--lrdal-sra": _2, - "lærdal": _2, - "lodingen": _2, - "xn--ldingen-q1a": _2, - "lødingen": _2, - "lorenskog": _2, - "xn--lrenskog-54a": _2, - "lørenskog": _2, - "loten": _2, - "xn--lten-gra": _2, - "løten": _2, - "malvik": _2, - "masoy": _2, - "xn--msy-ula0h": _2, - "måsøy": _2, - "muosat": _2, - "xn--muost-0qa": _2, - "muosát": _2, - "mandal": _2, - "marker": _2, - "marnardal": _2, - "masfjorden": _2, - "meland": _2, - "meldal": _2, - "melhus": _2, - "meloy": _2, - "xn--mely-ira": _2, - "meløy": _2, - "meraker": _2, - "xn--merker-kua": _2, - "meråker": _2, - "moareke": _2, - "xn--moreke-jua": _2, - "moåreke": _2, - "midsund": _2, - "midtre-gauldal": _2, - "modalen": _2, - "modum": _2, - "molde": _2, - "moskenes": _2, - "moss": _2, - "mosvik": _2, - "malselv": _2, - "xn--mlselv-iua": _2, - "målselv": _2, - "malatvuopmi": _2, - "xn--mlatvuopmi-s4a": _2, - "málatvuopmi": _2, - "namdalseid": _2, - "aejrie": _2, - "namsos": _2, - "namsskogan": _2, - "naamesjevuemie": _2, - "xn--nmesjevuemie-tcba": _2, - "nååmesjevuemie": _2, - "laakesvuemie": _2, - "nannestad": _2, - "narvik": _2, - "narviika": _2, - "naustdal": _2, - "nedre-eiker": _2, - "akershus": _54, - "buskerud": _54, - "nesna": _2, - "nesodden": _2, - "nesseby": _2, - "unjarga": _2, - "xn--unjrga-rta": _2, - "unjárga": _2, - "nesset": _2, - "nissedal": _2, - "nittedal": _2, - "nord-aurdal": _2, - "nord-fron": _2, - "nord-odal": _2, - "norddal": _2, - "nordkapp": _2, - "davvenjarga": _2, - "xn--davvenjrga-y4a": _2, - "davvenjárga": _2, - "nordre-land": _2, - "nordreisa": _2, - "raisa": _2, - "xn--risa-5na": _2, - "ráisa": _2, - "nore-og-uvdal": _2, - "notodden": _2, - "naroy": _2, - "xn--nry-yla5g": _2, - "nærøy": _2, - "notteroy": _2, - "xn--nttery-byae": _2, - "nøtterøy": _2, - "odda": _2, - "oksnes": _2, - "xn--ksnes-uua": _2, - "øksnes": _2, - "oppdal": _2, - "oppegard": _2, - "xn--oppegrd-ixa": _2, - "oppegård": _2, - "orkdal": _2, - "orland": _2, - "xn--rland-uua": _2, - "ørland": _2, - "orskog": _2, - "xn--rskog-uua": _2, - "ørskog": _2, - "orsta": _2, - "xn--rsta-fra": _2, - "ørsta": _2, - "hedmark": [0, { - "os": _2, - "valer": _2, - "xn--vler-qoa": _2, - "våler": _2 - }], - "hordaland": [0, { - "os": _2 - }], - "osen": _2, - "osteroy": _2, - "xn--ostery-fya": _2, - "osterøy": _2, - "ostre-toten": _2, - "xn--stre-toten-zcb": _2, - "østre-toten": _2, - "overhalla": _2, - "ovre-eiker": _2, - "xn--vre-eiker-k8a": _2, - "øvre-eiker": _2, - "oyer": _2, - "xn--yer-zna": _2, - "øyer": _2, - "oygarden": _2, - "xn--ygarden-p1a": _2, - "øygarden": _2, - "oystre-slidre": _2, - "xn--ystre-slidre-ujb": _2, - "øystre-slidre": _2, - "porsanger": _2, - "porsangu": _2, - "xn--porsgu-sta26f": _2, - "porsáŋgu": _2, - "porsgrunn": _2, - "radoy": _2, - "xn--rady-ira": _2, - "radøy": _2, - "rakkestad": _2, - "rana": _2, - "ruovat": _2, - "randaberg": _2, - "rauma": _2, - "rendalen": _2, - "rennebu": _2, - "rennesoy": _2, - "xn--rennesy-v1a": _2, - "rennesøy": _2, - "rindal": _2, - "ringebu": _2, - "ringerike": _2, - "ringsaker": _2, - "rissa": _2, - "risor": _2, - "xn--risr-ira": _2, - "risør": _2, - "roan": _2, - "rollag": _2, - "rygge": _2, - "ralingen": _2, - "xn--rlingen-mxa": _2, - "rælingen": _2, - "rodoy": _2, - "xn--rdy-0nab": _2, - "rødøy": _2, - "romskog": _2, - "xn--rmskog-bya": _2, - "rømskog": _2, - "roros": _2, - "xn--rros-gra": _2, - "røros": _2, - "rost": _2, - "xn--rst-0na": _2, - "røst": _2, - "royken": _2, - "xn--ryken-vua": _2, - "røyken": _2, - "royrvik": _2, - "xn--ryrvik-bya": _2, - "røyrvik": _2, - "rade": _2, - "xn--rde-ula": _2, - "råde": _2, - "salangen": _2, - "siellak": _2, - "saltdal": _2, - "salat": _2, - "xn--slt-elab": _2, - "sálát": _2, - "xn--slat-5na": _2, - "sálat": _2, - "samnanger": _2, - "vestfold": [0, { - "sande": _2 - }], - "sandefjord": _2, - "sandnes": _2, - "sandoy": _2, - "xn--sandy-yua": _2, - "sandøy": _2, - "sarpsborg": _2, - "sauda": _2, - "sauherad": _2, - "sel": _2, - "selbu": _2, - "selje": _2, - "seljord": _2, - "sigdal": _2, - "siljan": _2, - "sirdal": _2, - "skaun": _2, - "skedsmo": _2, - "ski": _2, - "skien": _2, - "skiptvet": _2, - "skjervoy": _2, - "xn--skjervy-v1a": _2, - "skjervøy": _2, - "skierva": _2, - "xn--skierv-uta": _2, - "skiervá": _2, - "skjak": _2, - "xn--skjk-soa": _2, - "skjåk": _2, - "skodje": _2, - "skanland": _2, - "xn--sknland-fxa": _2, - "skånland": _2, - "skanit": _2, - "xn--sknit-yqa": _2, - "skánit": _2, - "smola": _2, - "xn--smla-hra": _2, - "smøla": _2, - "snillfjord": _2, - "snasa": _2, - "xn--snsa-roa": _2, - "snåsa": _2, - "snoasa": _2, - "snaase": _2, - "xn--snase-nra": _2, - "snåase": _2, - "sogndal": _2, - "sokndal": _2, - "sola": _2, - "solund": _2, - "songdalen": _2, - "sortland": _2, - "spydeberg": _2, - "stange": _2, - "stavanger": _2, - "steigen": _2, - "steinkjer": _2, - "stjordal": _2, - "xn--stjrdal-s1a": _2, - "stjørdal": _2, - "stokke": _2, - "stor-elvdal": _2, - "stord": _2, - "stordal": _2, - "storfjord": _2, - "omasvuotna": _2, - "strand": _2, - "stranda": _2, - "stryn": _2, - "sula": _2, - "suldal": _2, - "sund": _2, - "sunndal": _2, - "surnadal": _2, - "sveio": _2, - "svelvik": _2, - "sykkylven": _2, - "sogne": _2, - "xn--sgne-gra": _2, - "søgne": _2, - "somna": _2, - "xn--smna-gra": _2, - "sømna": _2, - "sondre-land": _2, - "xn--sndre-land-0cb": _2, - "søndre-land": _2, - "sor-aurdal": _2, - "xn--sr-aurdal-l8a": _2, - "sør-aurdal": _2, - "sor-fron": _2, - "xn--sr-fron-q1a": _2, - "sør-fron": _2, - "sor-odal": _2, - "xn--sr-odal-q1a": _2, - "sør-odal": _2, - "sor-varanger": _2, - "xn--sr-varanger-ggb": _2, - "sør-varanger": _2, - "matta-varjjat": _2, - "xn--mtta-vrjjat-k7af": _2, - "mátta-várjjat": _2, - "sorfold": _2, - "xn--srfold-bya": _2, - "sørfold": _2, - "sorreisa": _2, - "xn--srreisa-q1a": _2, - "sørreisa": _2, - "sorum": _2, - "xn--srum-gra": _2, - "sørum": _2, - "tana": _2, - "deatnu": _2, - "time": _2, - "tingvoll": _2, - "tinn": _2, - "tjeldsund": _2, - "dielddanuorri": _2, - "tjome": _2, - "xn--tjme-hra": _2, - "tjøme": _2, - "tokke": _2, - "tolga": _2, - "torsken": _2, - "tranoy": _2, - "xn--trany-yua": _2, - "tranøy": _2, - "tromso": _2, - "xn--troms-zua": _2, - "tromsø": _2, - "tromsa": _2, - "romsa": _2, - "trondheim": _2, - "troandin": _2, - "trysil": _2, - "trana": _2, - "xn--trna-woa": _2, - "træna": _2, - "trogstad": _2, - "xn--trgstad-r1a": _2, - "trøgstad": _2, - "tvedestrand": _2, - "tydal": _2, - "tynset": _2, - "tysfjord": _2, - "divtasvuodna": _2, - "divttasvuotna": _2, - "tysnes": _2, - "tysvar": _2, - "xn--tysvr-vra": _2, - "tysvær": _2, - "tonsberg": _2, - "xn--tnsberg-q1a": _2, - "tønsberg": _2, - "ullensaker": _2, - "ullensvang": _2, - "ulvik": _2, - "utsira": _2, - "vadso": _2, - "xn--vads-jra": _2, - "vadsø": _2, - "cahcesuolo": _2, - "xn--hcesuolo-7ya35b": _2, - "čáhcesuolo": _2, - "vaksdal": _2, - "valle": _2, - "vang": _2, - "vanylven": _2, - "vardo": _2, - "xn--vard-jra": _2, - "vardø": _2, - "varggat": _2, - "xn--vrggt-xqad": _2, - "várggát": _2, - "vefsn": _2, - "vaapste": _2, - "vega": _2, - "vegarshei": _2, - "xn--vegrshei-c0a": _2, - "vegårshei": _2, - "vennesla": _2, - "verdal": _2, - "verran": _2, - "vestby": _2, - "vestnes": _2, - "vestre-slidre": _2, - "vestre-toten": _2, - "vestvagoy": _2, - "xn--vestvgy-ixa6o": _2, - "vestvågøy": _2, - "vevelstad": _2, - "vik": _2, - "vikna": _2, - "vindafjord": _2, - "volda": _2, - "voss": _2, - "varoy": _2, - "xn--vry-yla5g": _2, - "værøy": _2, - "vagan": _2, - "xn--vgan-qoa": _2, - "vågan": _2, - "voagat": _2, - "vagsoy": _2, - "xn--vgsy-qoa0j": _2, - "vågsøy": _2, - "vaga": _2, - "xn--vg-yiab": _2, - "vågå": _2, - "ostfold": [0, { - "valer": _2 - }], - "xn--stfold-9xa": [0, { - "xn--vler-qoa": _2 - }], - "østfold": [0, { - "våler": _2 - }], - "co": _3, - "blogspot": _3, - "123hjemmeside": _3, - "myspreadshop": _3 - }], - "np": _12, - "nr": _48, - "nu": [1, { - "merseine": _3, - "mine": _3, - "shacknet": _3, - "enterprisecloud": _3 - }], - "nz": [1, { - "ac": _2, - "co": _6, - "cri": _2, - "geek": _2, - "gen": _2, - "govt": _2, - "health": _2, - "iwi": _2, - "kiwi": _2, - "maori": _2, - "mil": _2, - "xn--mori-qsa": _2, - "māori": _2, - "net": _2, - "org": _2, - "parliament": _2, - "school": _2 - }], - "om": [1, { - "co": _2, - "com": _2, - "edu": _2, - "gov": _2, - "med": _2, - "museum": _2, - "net": _2, - "org": _2, - "pro": _2 - }], - "onion": _2, - "org": [1, { - "altervista": _3, - "amune": [0, { - "tele": _3 - }], - "pimienta": _3, - "poivron": _3, - "potager": _3, - "sweetpepper": _3, - "ae": _3, - "us": _3, - "certmgr": _3, - "cdn77": [0, { - "c": _3, - "rsc": _3 - }], - "cdn77-secure": [0, { - "origin": [0, { - "ssl": _3 - }] - }], - "cloudns": _3, - "duckdns": _3, - "tunk": _3, - "dyndns": [2, { - "go": _3, - "home": _3 - }], - "blogdns": _3, - "blogsite": _3, - "boldlygoingnowhere": _3, - "dnsalias": _3, - "dnsdojo": _3, - "doesntexist": _3, - "dontexist": _3, - "doomdns": _3, - "dvrdns": _3, - "dynalias": _3, - "endofinternet": _3, - "endoftheinternet": _3, - "from-me": _3, - "game-host": _3, - "gotdns": _3, - "hobby-site": _3, - "homedns": _3, - "homeftp": _3, - "homelinux": _3, - "homeunix": _3, - "is-a-bruinsfan": _3, - "is-a-candidate": _3, - "is-a-celticsfan": _3, - "is-a-chef": _3, - "is-a-geek": _3, - "is-a-knight": _3, - "is-a-linux-user": _3, - "is-a-patsfan": _3, - "is-a-soxfan": _3, - "is-found": _3, - "is-lost": _3, - "is-saved": _3, - "is-very-bad": _3, - "is-very-evil": _3, - "is-very-good": _3, - "is-very-nice": _3, - "is-very-sweet": _3, - "isa-geek": _3, - "kicks-ass": _3, - "misconfused": _3, - "podzone": _3, - "readmyblog": _3, - "selfip": _3, - "sellsyourhome": _3, - "servebbs": _3, - "serveftp": _3, - "servegame": _3, - "stuff-4-sale": _3, - "webhop": _3, - "ddnss": _3, - "accesscam": _3, - "camdvr": _3, - "freeddns": _3, - "mywire": _3, - "webredirect": _3, - "eu": [2, { - "al": _3, - "asso": _3, - "at": _3, - "au": _3, - "be": _3, - "bg": _3, - "ca": _3, - "cd": _3, - "ch": _3, - "cn": _3, - "cy": _3, - "cz": _3, - "de": _3, - "dk": _3, - "edu": _3, - "ee": _3, - "es": _3, - "fi": _3, - "fr": _3, - "gr": _3, - "hr": _3, - "hu": _3, - "ie": _3, - "il": _3, - "in": _3, - "int": _3, - "is": _3, - "it": _3, - "jp": _3, - "kr": _3, - "lt": _3, - "lu": _3, - "lv": _3, - "mc": _3, - "me": _3, - "mk": _3, - "mt": _3, - "my": _3, - "net": _3, - "ng": _3, - "nl": _3, - "no": _3, - "nz": _3, - "paris": _3, - "pl": _3, - "pt": _3, - "q-a": _3, - "ro": _3, - "ru": _3, - "se": _3, - "si": _3, - "sk": _3, - "tr": _3, - "uk": _3, - "us": _3 - }], - "twmail": _3, - "fedorainfracloud": _3, - "fedorapeople": _3, - "fedoraproject": [0, { - "cloud": _3, - "os": _35, - "stg": [0, { - "os": _35 - }] - }], - "freedesktop": _3, - "hepforge": _3, - "in-dsl": _3, - "in-vpn": _3, - "js": _3, - "barsy": _3, - "mayfirst": _3, - "mozilla-iot": _3, - "bmoattachments": _3, - "dynserv": _3, - "now-dns": _3, - "cable-modem": _3, - "collegefan": _3, - "couchpotatofries": _3, - "mlbfan": _3, - "mysecuritycamera": _3, - "nflfan": _3, - "read-books": _3, - "ufcfan": _3, - "hopto": _3, - "myftp": _3, - "no-ip": _3, - "zapto": _3, - "httpbin": _3, - "pubtls": _3, - "jpn": _3, - "my-firewall": _3, - "myfirewall": _3, - "spdns": _3, - "small-web": _3, - "dsmynas": _3, - "familyds": _3, - "teckids": _47, - "tuxfamily": _3, - "diskstation": _3, - "hk": _3, - "wmflabs": _3, - "toolforge": _3, - "wmcloud": _3, - "za": _3 - }], - "pa": [1, { - "ac": _2, - "gob": _2, - "com": _2, - "org": _2, - "sld": _2, - "edu": _2, - "net": _2, - "ing": _2, - "abo": _2, - "med": _2, - "nom": _2 - }], - "pe": [1, { - "edu": _2, - "gob": _2, - "nom": _2, - "mil": _2, - "org": _2, - "com": _2, - "net": _2, - "blogspot": _3 - }], - "pf": [1, { - "com": _2, - "org": _2, - "edu": _2 - }], - "pg": _12, - "ph": [1, { - "com": _2, - "net": _2, - "org": _2, - "gov": _2, - "edu": _2, - "ngo": _2, - "mil": _2, - "i": _2 - }], - "pk": [1, { - "com": _2, - "net": _2, - "edu": _2, - "org": _2, - "fam": _2, - "biz": _2, - "web": _2, - "gov": _2, - "gob": _2, - "gok": _2, - "gon": _2, - "gop": _2, - "gos": _2, - "info": _2 - }], - "pl": [1, { - "com": _2, - "net": _2, - "org": _2, - "aid": _2, - "agro": _2, - "atm": _2, - "auto": _2, - "biz": _2, - "edu": _2, - "gmina": _2, - "gsm": _2, - "info": _2, - "mail": _2, - "miasta": _2, - "media": _2, - "mil": _2, - "nieruchomosci": _2, - "nom": _2, - "pc": _2, - "powiat": _2, - "priv": _2, - "realestate": _2, - "rel": _2, - "sex": _2, - "shop": _2, - "sklep": _2, - "sos": _2, - "szkola": _2, - "targi": _2, - "tm": _2, - "tourism": _2, - "travel": _2, - "turystyka": _2, - "gov": [1, { - "ap": _2, - "griw": _2, - "ic": _2, - "is": _2, - "kmpsp": _2, - "konsulat": _2, - "kppsp": _2, - "kwp": _2, - "kwpsp": _2, - "mup": _2, - "mw": _2, - "oia": _2, - "oirm": _2, - "oke": _2, - "oow": _2, - "oschr": _2, - "oum": _2, - "pa": _2, - "pinb": _2, - "piw": _2, - "po": _2, - "pr": _2, - "psp": _2, - "psse": _2, - "pup": _2, - "rzgw": _2, - "sa": _2, - "sdn": _2, - "sko": _2, - "so": _2, - "sr": _2, - "starostwo": _2, - "ug": _2, - "ugim": _2, - "um": _2, - "umig": _2, - "upow": _2, - "uppo": _2, - "us": _2, - "uw": _2, - "uzs": _2, - "wif": _2, - "wiih": _2, - "winb": _2, - "wios": _2, - "witd": _2, - "wiw": _2, - "wkz": _2, - "wsa": _2, - "wskr": _2, - "wsse": _2, - "wuoz": _2, - "wzmiuw": _2, - "zp": _2, - "zpisdn": _2 - }], - "augustow": _2, - "babia-gora": _2, - "bedzin": _2, - "beskidy": _2, - "bialowieza": _2, - "bialystok": _2, - "bielawa": _2, - "bieszczady": _2, - "boleslawiec": _2, - "bydgoszcz": _2, - "bytom": _2, - "cieszyn": _2, - "czeladz": _2, - "czest": _2, - "dlugoleka": _2, - "elblag": _2, - "elk": _2, - "glogow": _2, - "gniezno": _2, - "gorlice": _2, - "grajewo": _2, - "ilawa": _2, - "jaworzno": _2, - "jelenia-gora": _2, - "jgora": _2, - "kalisz": _2, - "kazimierz-dolny": _2, - "karpacz": _2, - "kartuzy": _2, - "kaszuby": _2, - "katowice": _2, - "kepno": _2, - "ketrzyn": _2, - "klodzko": _2, - "kobierzyce": _2, - "kolobrzeg": _2, - "konin": _2, - "konskowola": _2, - "kutno": _2, - "lapy": _2, - "lebork": _2, - "legnica": _2, - "lezajsk": _2, - "limanowa": _2, - "lomza": _2, - "lowicz": _2, - "lubin": _2, - "lukow": _2, - "malbork": _2, - "malopolska": _2, - "mazowsze": _2, - "mazury": _2, - "mielec": _2, - "mielno": _2, - "mragowo": _2, - "naklo": _2, - "nowaruda": _2, - "nysa": _2, - "olawa": _2, - "olecko": _2, - "olkusz": _2, - "olsztyn": _2, - "opoczno": _2, - "opole": _2, - "ostroda": _2, - "ostroleka": _2, - "ostrowiec": _2, - "ostrowwlkp": _2, - "pila": _2, - "pisz": _2, - "podhale": _2, - "podlasie": _2, - "polkowice": _2, - "pomorze": _2, - "pomorskie": _2, - "prochowice": _2, - "pruszkow": _2, - "przeworsk": _2, - "pulawy": _2, - "radom": _2, - "rawa-maz": _2, - "rybnik": _2, - "rzeszow": _2, - "sanok": _2, - "sejny": _2, - "slask": _2, - "slupsk": _2, - "sosnowiec": _2, - "stalowa-wola": _2, - "skoczow": _2, - "starachowice": _2, - "stargard": _2, - "suwalki": _2, - "swidnica": _2, - "swiebodzin": _2, - "swinoujscie": _2, - "szczecin": _2, - "szczytno": _2, - "tarnobrzeg": _2, - "tgory": _2, - "turek": _2, - "tychy": _2, - "ustka": _2, - "walbrzych": _2, - "warmia": _2, - "warszawa": _2, - "waw": _2, - "wegrow": _2, - "wielun": _2, - "wlocl": _2, - "wloclawek": _2, - "wodzislaw": _2, - "wolomin": _2, - "wroclaw": _2, - "zachpomor": _2, - "zagan": _2, - "zarow": _2, - "zgora": _2, - "zgorzelec": _2, - "beep": _3, - "ecommerce-shop": _3, - "shoparena": _3, - "homesklep": _3, - "sdscloud": _3, - "unicloud": _3, - "krasnik": _3, - "leczna": _3, - "lubartow": _3, - "lublin": _3, - "poniatowa": _3, - "swidnik": _3, - "co": _3, - "torun": _3, - "simplesite": _3, - "art": _3, - "gliwice": _3, - "krakow": _3, - "poznan": _3, - "wroc": _3, - "zakopane": _3, - "myspreadshop": _3, - "gda": _3, - "gdansk": _3, - "gdynia": _3, - "med": _3, - "sopot": _3 - }], - "pm": [1, { - "own": _3, - "name": _3 - }], - "pn": [1, { - "gov": _2, - "co": _2, - "org": _2, - "edu": _2, - "net": _2 - }], - "post": _2, - "pr": [1, { - "com": _2, - "net": _2, - "org": _2, - "gov": _2, - "edu": _2, - "isla": _2, - "pro": _2, - "biz": _2, - "info": _2, - "name": _2, - "est": _2, - "prof": _2, - "ac": _2 - }], - "pro": [1, { - "aaa": _2, - "aca": _2, - "acct": _2, - "avocat": _2, - "bar": _2, - "cpa": _2, - "eng": _2, - "jur": _2, - "law": _2, - "med": _2, - "recht": _2, - "cloudns": _3, - "dnstrace": [0, { - "bci": _3 - }], - "barsy": _3 - }], - "ps": [1, { - "edu": _2, - "gov": _2, - "sec": _2, - "plo": _2, - "com": _2, - "org": _2, - "net": _2 - }], - "pt": [1, { - "net": _2, - "gov": _2, - "org": _2, - "edu": _2, - "int": _2, - "publ": _2, - "com": _2, - "nome": _2, - "blogspot": _3, - "123paginaweb": _3 - }], - "pw": [1, { - "co": _2, - "ne": _2, - "or": _2, - "ed": _2, - "go": _2, - "belau": _2, - "cloudns": _3, - "x443": _3 - }], - "py": [1, { - "com": _2, - "coop": _2, - "edu": _2, - "gov": _2, - "mil": _2, - "net": _2, - "org": _2 - }], - "qa": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "mil": _2, - "name": _2, - "net": _2, - "org": _2, - "sch": _2, - "blogspot": _3 - }], - "re": [1, { - "asso": _2, - "com": _2, - "nom": _2, - "blogspot": _3 - }], - "ro": [1, { - "arts": _2, - "com": _2, - "firm": _2, - "info": _2, - "nom": _2, - "nt": _2, - "org": _2, - "rec": _2, - "store": _2, - "tm": _2, - "www": _2, - "co": _3, - "shop": _3, - "blogspot": _3, - "barsy": _3 - }], - "rs": [1, { - "ac": _2, - "co": _2, - "edu": _2, - "gov": _2, - "in": _2, - "org": _2, - "brendly": [0, { - "shop": _3 - }], - "blogspot": _3, - "ua": _3, - "ox": _3 - }], - "ru": [1, { - "ac": _3, - "edu": _3, - "gov": _3, - "int": _3, - "mil": _3, - "test": _3, - "eurodir": _3, - "adygeya": _3, - "bashkiria": _3, - "bir": _3, - "cbg": _3, - "com": _3, - "dagestan": _3, - "grozny": _3, - "kalmykia": _3, - "kustanai": _3, - "marine": _3, - "mordovia": _3, - "msk": _3, - "mytis": _3, - "nalchik": _3, - "nov": _3, - "pyatigorsk": _3, - "spb": _3, - "vladikavkaz": _3, - "vladimir": _3, - "blogspot": _3, - "na4u": _3, - "mircloud": _3, - "regruhosting": _41, - "myjino": [2, { - "hosting": _5, - "landing": _5, - "spectrum": _5, - "vps": _5 - }], - "cldmail": [0, { - "hb": _3 - }], - "mcdir": [2, { - "vps": _3 - }], - "mcpre": _3, - "net": _3, - "org": _3, - "pp": _3, - "123sait": _3, - "lk3": _3, - "ras": _3 - }], - "rw": [1, { - "ac": _2, - "co": _2, - "coop": _2, - "gov": _2, - "mil": _2, - "net": _2, - "org": _2 - }], - "sa": [1, { - "com": _2, - "net": _2, - "org": _2, - "gov": _2, - "med": _2, - "pub": _2, - "edu": _2, - "sch": _2 - }], - "sb": _4, - "sc": _4, - "sd": [1, { - "com": _2, - "net": _2, - "org": _2, - "edu": _2, - "med": _2, - "tv": _2, - "gov": _2, - "info": _2 - }], - "se": [1, { - "a": _2, - "ac": _2, - "b": _2, - "bd": _2, - "brand": _2, - "c": _2, - "d": _2, - "e": _2, - "f": _2, - "fh": _2, - "fhsk": _2, - "fhv": _2, - "g": _2, - "h": _2, - "i": _2, - "k": _2, - "komforb": _2, - "kommunalforbund": _2, - "komvux": _2, - "l": _2, - "lanbib": _2, - "m": _2, - "n": _2, - "naturbruksgymn": _2, - "o": _2, - "org": _2, - "p": _2, - "parti": _2, - "pp": _2, - "press": _2, - "r": _2, - "s": _2, - "t": _2, - "tm": _2, - "u": _2, - "w": _2, - "x": _2, - "y": _2, - "z": _2, - "com": _3, - "blogspot": _3, - "conf": _3, - "iopsys": _3, - "123minsida": _3, - "itcouldbewor": _3, - "myspreadshop": _3, - "paba": [0, { - "su": _3 - }] - }], - "sg": [1, { - "com": _2, - "net": _2, - "org": _2, - "gov": _2, - "edu": _2, - "per": _2, - "blogspot": _3, - "enscaled": _3 - }], - "sh": [1, { - "com": _2, - "net": _2, - "gov": _2, - "org": _2, - "mil": _2, - "bip": _3, - "hashbang": _3, - "platform": [0, { - "bc": _3, - "ent": _3, - "eu": _3, - "us": _3 - }], - "now": _3, - "vxl": _3, - "wedeploy": _3 - }], - "si": [1, { - "gitapp": _3, - "gitpage": _3, - "blogspot": _3 - }], - "sj": _2, - "sk": _6, - "sl": _4, - "sm": _2, - "sn": [1, { - "art": _2, - "com": _2, - "edu": _2, - "gouv": _2, - "org": _2, - "perso": _2, - "univ": _2, - "blogspot": _3 - }], - "so": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "me": _2, - "net": _2, - "org": _2, - "sch": _3 - }], - "sr": _2, - "ss": [1, { - "biz": _2, - "com": _2, - "edu": _2, - "gov": _2, - "me": _2, - "net": _2, - "org": _2, - "sch": _2 - }], - "st": [1, { - "co": _2, - "com": _2, - "consulado": _2, - "edu": _2, - "embaixada": _2, - "mil": _2, - "net": _2, - "org": _2, - "principe": _2, - "saotome": _2, - "store": _2, - "kirara": _3, - "noho": _3 - }], - "su": [1, { - "abkhazia": _3, - "adygeya": _3, - "aktyubinsk": _3, - "arkhangelsk": _3, - "armenia": _3, - "ashgabad": _3, - "azerbaijan": _3, - "balashov": _3, - "bashkiria": _3, - "bryansk": _3, - "bukhara": _3, - "chimkent": _3, - "dagestan": _3, - "east-kazakhstan": _3, - "exnet": _3, - "georgia": _3, - "grozny": _3, - "ivanovo": _3, - "jambyl": _3, - "kalmykia": _3, - "kaluga": _3, - "karacol": _3, - "karaganda": _3, - "karelia": _3, - "khakassia": _3, - "krasnodar": _3, - "kurgan": _3, - "kustanai": _3, - "lenug": _3, - "mangyshlak": _3, - "mordovia": _3, - "msk": _3, - "murmansk": _3, - "nalchik": _3, - "navoi": _3, - "north-kazakhstan": _3, - "nov": _3, - "obninsk": _3, - "penza": _3, - "pokrovsk": _3, - "sochi": _3, - "spb": _3, - "tashkent": _3, - "termez": _3, - "togliatti": _3, - "troitsk": _3, - "tselinograd": _3, - "tula": _3, - "tuva": _3, - "vladikavkaz": _3, - "vladimir": _3, - "vologda": _3 - }], - "sv": [1, { - "com": _2, - "edu": _2, - "gob": _2, - "org": _2, - "red": _2 - }], - "sx": _7, - "sy": _46, - "sz": [1, { - "co": _2, - "ac": _2, - "org": _2 - }], - "tc": [1, { - "ch": _3, - "me": _3, - "we": _3 - }], - "td": _6, - "tel": _2, - "tf": [1, { - "sch": _3 - }], - "tg": _2, - "th": [1, { - "ac": _2, - "co": _2, - "go": _2, - "in": _2, - "mi": _2, - "net": _2, - "or": _2, - "online": _3, - "shop": _3 - }], - "tj": [1, { - "ac": _2, - "biz": _2, - "co": _2, - "com": _2, - "edu": _2, - "go": _2, - "gov": _2, - "int": _2, - "mil": _2, - "name": _2, - "net": _2, - "nic": _2, - "org": _2, - "test": _2, - "web": _2 - }], - "tk": _2, - "tl": _7, - "tm": [1, { - "com": _2, - "co": _2, - "org": _2, - "net": _2, - "nom": _2, - "gov": _2, - "mil": _2, - "edu": _2 - }], - "tn": [1, { - "com": _2, - "ens": _2, - "fin": _2, - "gov": _2, - "ind": _2, - "info": _2, - "intl": _2, - "mincom": _2, - "nat": _2, - "net": _2, - "org": _2, - "perso": _2, - "tourism": _2, - "orangecloud": _3 - }], - "to": [1, { - "611": _3, - "com": _2, - "gov": _2, - "net": _2, - "org": _2, - "edu": _2, - "mil": _2, - "oya": _3, - "rdv": _3, - "x0": _3, - "vpnplus": _3, - "quickconnect": _19, - "nyan": _3 - }], - "tr": [1, { - "av": _2, - "bbs": _2, - "bel": _2, - "biz": _2, - "com": _6, - "dr": _2, - "edu": _2, - "gen": _2, - "gov": _2, - "info": _2, - "mil": _2, - "k12": _2, - "kep": _2, - "name": _2, - "net": _2, - "org": _2, - "pol": _2, - "tel": _2, - "tsk": _2, - "tv": _2, - "web": _2, - "nc": _7 - }], - "tt": [1, { - "co": _2, - "com": _2, - "org": _2, - "net": _2, - "biz": _2, - "info": _2, - "pro": _2, - "int": _2, - "coop": _2, - "jobs": _2, - "mobi": _2, - "travel": _2, - "museum": _2, - "aero": _2, - "name": _2, - "gov": _2, - "edu": _2 - }], - "tv": [1, { - "dyndns": _3, - "better-than": _3, - "on-the-web": _3, - "worse-than": _3, - "from": _3, - "sakura": _3 - }], - "tw": [1, { - "edu": _2, - "gov": _2, - "mil": _2, - "com": [1, { - "mymailer": _3 - }], - "net": _2, - "org": _2, - "idv": _2, - "game": _2, - "ebiz": _2, - "club": _2, - "xn--zf0ao64a": _2, - "網路": _2, - "xn--uc0atv": _2, - "組織": _2, - "xn--czrw28b": _2, - "商業": _2, - "url": _3, - "blogspot": _3 - }], - "tz": [1, { - "ac": _2, - "co": _2, - "go": _2, - "hotel": _2, - "info": _2, - "me": _2, - "mil": _2, - "mobi": _2, - "ne": _2, - "or": _2, - "sc": _2, - "tv": _2 - }], - "ua": [1, { - "com": _2, - "edu": _2, - "gov": _2, - "in": _2, - "net": _2, - "org": _2, - "cherkassy": _2, - "cherkasy": _2, - "chernigov": _2, - "chernihiv": _2, - "chernivtsi": _2, - "chernovtsy": _2, - "ck": _2, - "cn": _2, - "cr": _2, - "crimea": _2, - "cv": _2, - "dn": _2, - "dnepropetrovsk": _2, - "dnipropetrovsk": _2, - "donetsk": _2, - "dp": _2, - "if": _2, - "ivano-frankivsk": _2, - "kh": _2, - "kharkiv": _2, - "kharkov": _2, - "kherson": _2, - "khmelnitskiy": _2, - "khmelnytskyi": _2, - "kiev": _2, - "kirovograd": _2, - "km": _2, - "kr": _2, - "kropyvnytskyi": _2, - "krym": _2, - "ks": _2, - "kv": _2, - "kyiv": _2, - "lg": _2, - "lt": _2, - "lugansk": _2, - "luhansk": _2, - "lutsk": _2, - "lv": _2, - "lviv": _2, - "mk": _2, - "mykolaiv": _2, - "nikolaev": _2, - "od": _2, - "odesa": _2, - "odessa": _2, - "pl": _2, - "poltava": _2, - "rivne": _2, - "rovno": _2, - "rv": _2, - "sb": _2, - "sebastopol": _2, - "sevastopol": _2, - "sm": _2, - "sumy": _2, - "te": _2, - "ternopil": _2, - "uz": _2, - "uzhgorod": _2, - "uzhhorod": _2, - "vinnica": _2, - "vinnytsia": _2, - "vn": _2, - "volyn": _2, - "yalta": _2, - "zakarpattia": _2, - "zaporizhzhe": _2, - "zaporizhzhia": _2, - "zhitomir": _2, - "zhytomyr": _2, - "zp": _2, - "zt": _2, - "cc": _3, - "inf": _3, - "ltd": _3, - "cx": _3, - "ie": _3, - "biz": _3, - "co": _3, - "pp": _3, - "v": _3 - }], - "ug": [1, { - "co": _2, - "or": _2, - "ac": _2, - "sc": _2, - "go": _2, - "ne": _2, - "com": _2, - "org": _2, - "blogspot": _3 - }], - "uk": [1, { - "ac": _2, - "co": [1, { - "bytemark": [0, { - "dh": _3, - "vm": _3 - }], - "blogspot": _3, - "layershift": _40, - "barsy": _3, - "barsyonline": _3, - "retrosnub": _45, - "nh-serv": _3, - "no-ip": _3, - "wellbeingzone": _3, - "adimo": _3, - "myspreadshop": _3 - }], - "gov": [1, { - "campaign": _3, - "service": _3, - "api": _3 - }], - "ltd": _2, - "me": _2, - "net": _2, - "nhs": _2, - "org": [1, { - "glug": _3, - "lug": _3, - "lugs": _3, - "affinitylottery": _3, - "raffleentry": _3, - "weeklylottery": _3 - }], - "plc": _2, - "police": _2, - "sch": _12, - "conn": _3, - "copro": _3, - "hosp": _3, - "independent-commission": _3, - "independent-inquest": _3, - "independent-inquiry": _3, - "independent-panel": _3, - "independent-review": _3, - "public-inquiry": _3, - "royal-commission": _3, - "pymnt": _3, - "barsy": _3 - }], - "us": [1, { - "dni": _2, - "fed": _2, - "isa": _2, - "kids": _2, - "nsn": _2, - "ak": _55, - "al": _55, - "ar": _55, - "as": _55, - "az": _55, - "ca": _55, - "co": _55, - "ct": _55, - "dc": _55, - "de": [1, { - "cc": _2, - "lib": _3 - }], - "fl": _55, - "ga": _55, - "gu": _55, - "hi": _56, - "ia": _55, - "id": _55, - "il": _55, - "in": _55, - "ks": _55, - "ky": _55, - "la": _55, - "ma": [1, { - "k12": [1, { - "pvt": _2, - "chtr": _2, - "paroch": _2 - }], - "cc": _2, - "lib": _2 - }], - "md": _55, - "me": _55, - "mi": [1, { - "k12": _2, - "cc": _2, - "lib": _2, - "ann-arbor": _2, - "cog": _2, - "dst": _2, - "eaton": _2, - "gen": _2, - "mus": _2, - "tec": _2, - "washtenaw": _2 - }], - "mn": _55, - "mo": _55, - "ms": _55, - "mt": _55, - "nc": _55, - "nd": _56, - "ne": _55, - "nh": _55, - "nj": _55, - "nm": _55, - "nv": _55, - "ny": _55, - "oh": _55, - "ok": _55, - "or": _55, - "pa": _55, - "pr": _55, - "ri": _56, - "sc": _55, - "sd": _56, - "tn": _55, - "tx": _55, - "ut": _55, - "vi": _55, - "vt": _55, - "va": _55, - "wa": _55, - "wi": _55, - "wv": [1, { - "cc": _2 - }], - "wy": _55, - "graphox": _3, - "cloudns": _3, - "drud": _3, - "is-by": _3, - "land-4-sale": _3, - "stuff-4-sale": _3, - "enscaled": [0, { - "phx": _3 - }], - "mircloud": _3, - "freeddns": _3, - "golffan": _3, - "noip": _3, - "pointto": _3, - "platterp": _3 - }], - "uy": [1, { - "com": _6, - "edu": _2, - "gub": _2, - "mil": _2, - "net": _2, - "org": _2 - }], - "uz": [1, { - "co": _2, - "com": _2, - "net": _2, - "org": _2 - }], - "va": _2, - "vc": [1, { - "com": _2, - "net": _2, - "org": _2, - "gov": _2, - "mil": _2, - "edu": _2, - "gv": [2, { - "d": _3 - }], - "0e": _3 - }], - "ve": [1, { - "arts": _2, - "bib": _2, - "co": _2, - "com": _2, - "e12": _2, - "edu": _2, - "firm": _2, - "gob": _2, - "gov": _2, - "info": _2, - "int": _2, - "mil": _2, - "net": _2, - "nom": _2, - "org": _2, - "rar": _2, - "rec": _2, - "store": _2, - "tec": _2, - "web": _2 - }], - "vg": [1, { - "at": _3 - }], - "vi": [1, { - "co": _2, - "com": _2, - "k12": _2, - "net": _2, - "org": _2 - }], - "vn": [1, { - "ac": _2, - "ai": _2, - "biz": _2, - "com": _2, - "edu": _2, - "gov": _2, - "health": _2, - "id": _2, - "info": _2, - "int": _2, - "io": _2, - "name": _2, - "net": _2, - "org": _2, - "pro": _2, - "angiang": _2, - "bacgiang": _2, - "backan": _2, - "baclieu": _2, - "bacninh": _2, - "baria-vungtau": _2, - "bentre": _2, - "binhdinh": _2, - "binhduong": _2, - "binhphuoc": _2, - "binhthuan": _2, - "camau": _2, - "cantho": _2, - "caobang": _2, - "daklak": _2, - "daknong": _2, - "danang": _2, - "dienbien": _2, - "dongnai": _2, - "dongthap": _2, - "gialai": _2, - "hagiang": _2, - "haiduong": _2, - "haiphong": _2, - "hanam": _2, - "hanoi": _2, - "hatinh": _2, - "haugiang": _2, - "hoabinh": _2, - "hungyen": _2, - "khanhhoa": _2, - "kiengiang": _2, - "kontum": _2, - "laichau": _2, - "lamdong": _2, - "langson": _2, - "laocai": _2, - "longan": _2, - "namdinh": _2, - "nghean": _2, - "ninhbinh": _2, - "ninhthuan": _2, - "phutho": _2, - "phuyen": _2, - "quangbinh": _2, - "quangnam": _2, - "quangngai": _2, - "quangninh": _2, - "quangtri": _2, - "soctrang": _2, - "sonla": _2, - "tayninh": _2, - "thaibinh": _2, - "thainguyen": _2, - "thanhhoa": _2, - "thanhphohochiminh": _2, - "thuathienhue": _2, - "tiengiang": _2, - "travinh": _2, - "tuyenquang": _2, - "vinhlong": _2, - "vinhphuc": _2, - "yenbai": _2, - "blogspot": _3 - }], - "vu": [1, { - "com": _2, - "edu": _2, - "net": _2, - "org": _2, - "cn": _3, - "blog": _3, - "dev": _3, - "me": _3 - }], - "wf": [1, { - "biz": _3, - "sch": _3 - }], - "ws": [1, { - "com": _2, - "net": _2, - "org": _2, - "gov": _2, - "edu": _2, - "advisor": _5, - "cloud66": _3, - "dyndns": _3, - "mypets": _3 - }], - "yt": [1, { - "org": _3 - }], - "xn--mgbaam7a8h": _2, - "امارات": _2, - "xn--y9a3aq": _2, - "հայ": _2, - "xn--54b7fta0cc": _2, - "বাংলা": _2, - "xn--90ae": _2, - "бг": _2, - "xn--mgbcpq6gpa1a": _2, - "البحرين": _2, - "xn--90ais": _2, - "бел": _2, - "xn--fiqs8s": _2, - "中国": _2, - "xn--fiqz9s": _2, - "中國": _2, - "xn--lgbbat1ad8j": _2, - "الجزائر": _2, - "xn--wgbh1c": _2, - "مصر": _2, - "xn--e1a4c": _2, - "ею": _2, - "xn--qxa6a": _2, - "ευ": _2, - "xn--mgbah1a3hjkrd": _2, - "موريتانيا": _2, - "xn--node": _2, - "გე": _2, - "xn--qxam": _2, - "ελ": _2, - "xn--j6w193g": [1, { - "xn--55qx5d": _2, - "xn--wcvs22d": _2, - "xn--mxtq1m": _2, - "xn--gmqw5a": _2, - "xn--od0alg": _2, - "xn--uc0atv": _2 - }], - "香港": [1, { - "公司": _2, - "教育": _2, - "政府": _2, - "個人": _2, - "網絡": _2, - "組織": _2 - }], - "xn--2scrj9c": _2, - "ಭಾರತ": _2, - "xn--3hcrj9c": _2, - "ଭାରତ": _2, - "xn--45br5cyl": _2, - "ভাৰত": _2, - "xn--h2breg3eve": _2, - "भारतम्": _2, - "xn--h2brj9c8c": _2, - "भारोत": _2, - "xn--mgbgu82a": _2, - "ڀارت": _2, - "xn--rvc1e0am3e": _2, - "ഭാരതം": _2, - "xn--h2brj9c": _2, - "भारत": _2, - "xn--mgbbh1a": _2, - "بارت": _2, - "xn--mgbbh1a71e": _2, - "بھارت": _2, - "xn--fpcrj9c3d": _2, - "భారత్": _2, - "xn--gecrj9c": _2, - "ભારત": _2, - "xn--s9brj9c": _2, - "ਭਾਰਤ": _2, - "xn--45brj9c": _2, - "ভারত": _2, - "xn--xkc2dl3a5ee0h": _2, - "இந்தியா": _2, - "xn--mgba3a4f16a": _2, - "ایران": _2, - "xn--mgba3a4fra": _2, - "ايران": _2, - "xn--mgbtx2b": _2, - "عراق": _2, - "xn--mgbayh7gpa": _2, - "الاردن": _2, - "xn--3e0b707e": _2, - "한국": _2, - "xn--80ao21a": _2, - "қаз": _2, - "xn--q7ce6a": _2, - "ລາວ": _2, - "xn--fzc2c9e2c": _2, - "ලංකා": _2, - "xn--xkc2al3hye2a": _2, - "இலங்கை": _2, - "xn--mgbc0a9azcg": _2, - "المغرب": _2, - "xn--d1alf": _2, - "мкд": _2, - "xn--l1acc": _2, - "мон": _2, - "xn--mix891f": _2, - "澳門": _2, - "xn--mix082f": _2, - "澳门": _2, - "xn--mgbx4cd0ab": _2, - "مليسيا": _2, - "xn--mgb9awbf": _2, - "عمان": _2, - "xn--mgbai9azgqp6j": _2, - "پاکستان": _2, - "xn--mgbai9a5eva00b": _2, - "پاكستان": _2, - "xn--ygbi2ammx": _2, - "فلسطين": _2, - "xn--90a3ac": [1, { - "xn--o1ac": _2, - "xn--c1avg": _2, - "xn--90azh": _2, - "xn--d1at": _2, - "xn--o1ach": _2, - "xn--80au": _2 - }], - "срб": [1, { - "пр": _2, - "орг": _2, - "обр": _2, - "од": _2, - "упр": _2, - "ак": _2 - }], - "xn--p1ai": _2, - "рф": _2, - "xn--wgbl6a": _2, - "قطر": _2, - "xn--mgberp4a5d4ar": _2, - "السعودية": _2, - "xn--mgberp4a5d4a87g": _2, - "السعودیة": _2, - "xn--mgbqly7c0a67fbc": _2, - "السعودیۃ": _2, - "xn--mgbqly7cvafr": _2, - "السعوديه": _2, - "xn--mgbpl2fh": _2, - "سودان": _2, - "xn--yfro4i67o": _2, - "新加坡": _2, - "xn--clchc0ea0b2g2a9gcd": _2, - "சிங்கப்பூர்": _2, - "xn--ogbpf8fl": _2, - "سورية": _2, - "xn--mgbtf8fl": _2, - "سوريا": _2, - "xn--o3cw4h": [1, { - "xn--12c1fe0br": _2, - "xn--12co0c3b4eva": _2, - "xn--h3cuzk1di": _2, - "xn--o3cyx2a": _2, - "xn--m3ch0j3a": _2, - "xn--12cfi8ixb8l": _2 - }], - "ไทย": [1, { - "ศึกษา": _2, - "ธุรกิจ": _2, - "รัฐบาล": _2, - "ทหาร": _2, - "เน็ต": _2, - "องค์กร": _2 - }], - "xn--pgbs0dh": _2, - "تونس": _2, - "xn--kpry57d": _2, - "台灣": _2, - "xn--kprw13d": _2, - "台湾": _2, - "xn--nnx388a": _2, - "臺灣": _2, - "xn--j1amh": _2, - "укр": _2, - "xn--mgb2ddes": _2, - "اليمن": _2, - "xxx": _2, - "ye": _46, - "za": [0, { - "ac": _2, - "agric": _2, - "alt": _2, - "co": _6, - "edu": _2, - "gov": _2, - "grondar": _2, - "law": _2, - "mil": _2, - "net": _2, - "ngo": _2, - "nic": _2, - "nis": _2, - "nom": _2, - "org": _2, - "school": _2, - "tm": _2, - "web": _2 - }], - "zm": [1, { - "ac": _2, - "biz": _2, - "co": _2, - "com": _2, - "edu": _2, - "gov": _2, - "info": _2, - "mil": _2, - "net": _2, - "org": _2, - "sch": _2 - }], - "zw": [1, { - "ac": _2, - "co": _2, - "gov": _2, - "mil": _2, - "org": _2 - }], - "aaa": _2, - "aarp": _2, - "abb": _2, - "abbott": _2, - "abbvie": _2, - "abc": _2, - "able": _2, - "abogado": _2, - "abudhabi": _2, - "academy": [1, { - "official": _3 - }], - "accenture": _2, - "accountant": _2, - "accountants": _2, - "aco": _2, - "actor": _2, - "ads": _2, - "adult": _2, - "aeg": _2, - "aetna": _2, - "afl": _2, - "africa": _2, - "agakhan": _2, - "agency": _2, - "aig": _2, - "airbus": _2, - "airforce": _2, - "airtel": _2, - "akdn": _2, - "alibaba": _2, - "alipay": _2, - "allfinanz": _2, - "allstate": _2, - "ally": _2, - "alsace": _2, - "alstom": _2, - "amazon": _2, - "americanexpress": _2, - "americanfamily": _2, - "amex": _2, - "amfam": _2, - "amica": _2, - "amsterdam": _2, - "analytics": _2, - "android": _2, - "anquan": _2, - "anz": _2, - "aol": _2, - "apartments": _2, - "app": [1, { - "beget": _5, - "clerk": _3, - "clerkstage": _3, - "wnext": _3, - "platform0": _3, - "deta": _3, - "ondigitalocean": _3, - "easypanel": _3, - "encr": _3, - "edgecompute": _3, - "fireweb": _3, - "onflashdrive": _3, - "framer": _3, - "run": [2, { - "a": _3 - }], - "web": _3, - "hasura": _3, - "loginline": _3, - "messerli": _3, - "netlify": _3, - "ngrok": _3, - "ngrok-free": _3, - "developer": _5, - "noop": _3, - "northflank": _5, - "snowflake": [2, { - "privatelink": _3 - }], - "streamlit": _3, - "storipress": _3, - "telebit": _3, - "typedream": _3, - "vercel": _3, - "bookonline": _3 - }], - "apple": _2, - "aquarelle": _2, - "arab": _2, - "aramco": _2, - "archi": _2, - "army": _2, - "art": _2, - "arte": _2, - "asda": _2, - "associates": _2, - "athleta": _2, - "attorney": _2, - "auction": _2, - "audi": _2, - "audible": _2, - "audio": _2, - "auspost": _2, - "author": _2, - "auto": _2, - "autos": _2, - "avianca": _2, - "aws": [1, { - "sagemaker": [0, { - "af-south-1": _8, - "ap-east-1": _8, - "ap-northeast-1": _8, - "ap-northeast-2": _8, - "ap-northeast-3": _8, - "ap-south-1": _8, - "ap-south-2": _9, - "ap-southeast-1": _8, - "ap-southeast-2": _8, - "ap-southeast-3": _8, - "ap-southeast-4": _9, - "ca-central-1": _8, - "eu-central-1": _8, - "eu-central-2": _9, - "eu-north-1": _8, - "eu-south-1": _8, - "eu-south-2": _9, - "eu-west-1": _8, - "eu-west-2": _8, - "eu-west-3": _8, - "il-central-1": _8, - "me-central-1": _8, - "me-south-1": _8, - "sa-east-1": _8, - "us-east-1": _10, - "us-east-2": _10, - "us-gov-east-1": _11, - "us-gov-west-1": _11, - "us-west-1": _8, - "us-west-2": _10 - }] - }], - "axa": _2, - "azure": _2, - "baby": _2, - "baidu": _2, - "banamex": _2, - "bananarepublic": _2, - "band": _2, - "bank": _2, - "bar": _2, - "barcelona": _2, - "barclaycard": _2, - "barclays": _2, - "barefoot": _2, - "bargains": _2, - "baseball": _2, - "basketball": [1, { - "aus": _3, - "nz": _3 - }], - "bauhaus": _2, - "bayern": _2, - "bbc": _2, - "bbt": _2, - "bbva": _2, - "bcg": _2, - "bcn": _2, - "beats": _2, - "beauty": _2, - "beer": _2, - "bentley": _2, - "berlin": _2, - "best": _2, - "bestbuy": _2, - "bet": _2, - "bharti": _2, - "bible": _2, - "bid": _2, - "bike": _2, - "bing": _2, - "bingo": _2, - "bio": _2, - "black": _2, - "blackfriday": _2, - "blockbuster": _2, - "blog": _2, - "bloomberg": _2, - "blue": _2, - "bms": _2, - "bmw": _2, - "bnpparibas": _2, - "boats": _2, - "boehringer": _2, - "bofa": _2, - "bom": _2, - "bond": _2, - "boo": _2, - "book": _2, - "booking": _2, - "bosch": _2, - "bostik": _2, - "boston": _2, - "bot": _2, - "boutique": _2, - "box": _2, - "bradesco": _2, - "bridgestone": _2, - "broadway": _2, - "broker": _2, - "brother": _2, - "brussels": _2, - "build": _2, - "builders": [1, { - "cloudsite": _3 - }], - "business": _14, - "buy": _2, - "buzz": _2, - "bzh": _2, - "cab": _2, - "cafe": _2, - "cal": _2, - "call": _2, - "calvinklein": _2, - "cam": _2, - "camera": _2, - "camp": _2, - "canon": _2, - "capetown": _2, - "capital": _2, - "capitalone": _2, - "car": _2, - "caravan": _2, - "cards": _2, - "care": _2, - "career": _2, - "careers": _2, - "cars": _2, - "casa": [1, { - "nabu": [0, { - "ui": _3 - }] - }], - "case": _2, - "cash": _2, - "casino": _2, - "catering": _2, - "catholic": _2, - "cba": _2, - "cbn": _2, - "cbre": _2, - "center": _2, - "ceo": _2, - "cern": _2, - "cfa": _2, - "cfd": _2, - "chanel": _2, - "channel": _2, - "charity": _2, - "chase": _2, - "chat": _2, - "cheap": _2, - "chintai": _2, - "christmas": _2, - "chrome": _2, - "church": _2, - "cipriani": _2, - "circle": _2, - "cisco": _2, - "citadel": _2, - "citi": _2, - "citic": _2, - "city": _2, - "claims": _2, - "cleaning": _2, - "click": _2, - "clinic": _2, - "clinique": _2, - "clothing": _2, - "cloud": [1, { - "banzai": _5, - "elementor": _3, - "encoway": [0, { - "eu": _3 - }], - "statics": _5, - "ravendb": _3, - "axarnet": [0, { - "es-1": _3 - }], - "diadem": _3, - "jelastic": [0, { - "vip": _3 - }], - "jele": _3, - "jenv-aruba": [0, { - "aruba": [0, { - "eur": [0, { - "it1": _3 - }] - }], - "it1": _3 - }], - "keliweb": [2, { - "cs": _3 - }], - "oxa": [2, { - "tn": _3, - "uk": _3 - }], - "primetel": [2, { - "uk": _3 - }], - "reclaim": [0, { - "ca": _3, - "uk": _3, - "us": _3 - }], - "trendhosting": [0, { - "ch": _3, - "de": _3 - }], - "jotelulu": _3, - "kuleuven": _3, - "linkyard": _3, - "magentosite": _5, - "perspecta": _3, - "vapor": _3, - "on-rancher": _5, - "scw": [0, { - "baremetal": [0, { - "fr-par-1": _3, - "fr-par-2": _3, - "nl-ams-1": _3 - }], - "fr-par": [0, { - "fnc": [2, { - "functions": _3 - }], - "k8s": _15, - "s3": _3, - "s3-website": _3, - "whm": _3 - }], - "instances": [0, { - "priv": _3, - "pub": _3 - }], - "k8s": _3, - "nl-ams": [0, { - "k8s": _15, - "s3": _3, - "s3-website": _3, - "whm": _3 - }], - "pl-waw": [0, { - "k8s": _15, - "s3": _3, - "s3-website": _3 - }], - "scalebook": _3, - "smartlabeling": _3 - }], - "sensiosite": _5, - "trafficplex": _3, - "urown": _3, - "voorloper": _3 - }], - "club": [1, { - "cloudns": _3, - "jele": _3, - "barsy": _3 - }], - "clubmed": _2, - "coach": _2, - "codes": [1, { - "owo": _5 - }], - "coffee": _2, - "college": _2, - "cologne": _2, - "comcast": _2, - "commbank": _2, - "community": [1, { - "nog": _3, - "ravendb": _3, - "myforum": _3 - }], - "company": _2, - "compare": _2, - "computer": _2, - "comsec": _2, - "condos": _2, - "construction": _2, - "consulting": _2, - "contact": _2, - "contractors": _2, - "cooking": _2, - "cool": [1, { - "elementor": _3, - "de": _3 - }], - "corsica": _2, - "country": _2, - "coupon": _2, - "coupons": _2, - "courses": _2, - "cpa": _2, - "credit": _2, - "creditcard": _2, - "creditunion": _2, - "cricket": _2, - "crown": _2, - "crs": _2, - "cruise": _2, - "cruises": _2, - "cuisinella": _2, - "cymru": _2, - "cyou": _2, - "dabur": _2, - "dad": _2, - "dance": _2, - "data": _2, - "date": _2, - "dating": _2, - "datsun": _2, - "day": _2, - "dclk": _2, - "dds": _2, - "deal": _2, - "dealer": _2, - "deals": _2, - "degree": _2, - "delivery": _2, - "dell": _2, - "deloitte": _2, - "delta": _2, - "democrat": _2, - "dental": _2, - "dentist": _2, - "desi": _2, - "design": [1, { - "bss": _3 - }], - "dev": [1, { - "autocode": _3, - "lcl": _5, - "lclstage": _5, - "stg": _5, - "stgstage": _5, - "pages": _3, - "r2": _3, - "workers": _3, - "curv": _3, - "deno": _3, - "deno-staging": _3, - "deta": _3, - "fly": _3, - "githubpreview": _3, - "gateway": _5, - "iserv": _3, - "localcert": [0, { - "user": _5 - }], - "loginline": _3, - "mediatech": _3, - "ngrok": _3, - "ngrok-free": _3, - "platter-app": _3, - "shiftcrypto": _3, - "vercel": _3, - "webhare": _5 - }], - "dhl": _2, - "diamonds": _2, - "diet": _2, - "digital": [1, { - "cloudapps": [2, { - "london": _3 - }] - }], - "direct": _2, - "directory": _2, - "discount": _2, - "discover": _2, - "dish": _2, - "diy": _2, - "dnp": _2, - "docs": _2, - "doctor": _2, - "dog": _2, - "domains": _2, - "dot": _2, - "download": _2, - "drive": _2, - "dtv": _2, - "dubai": _2, - "dunlop": _2, - "dupont": _2, - "durban": _2, - "dvag": _2, - "dvr": _2, - "earth": [1, { - "dapps": [0, { - "*": _3, - "bzz": _5 - }] - }], - "eat": _2, - "eco": _2, - "edeka": _2, - "education": _14, - "email": _2, - "emerck": _2, - "energy": _2, - "engineer": _2, - "engineering": _2, - "enterprises": _2, - "epson": _2, - "equipment": _2, - "ericsson": _2, - "erni": _2, - "esq": _2, - "estate": [1, { - "compute": _5 - }], - "eurovision": _2, - "eus": [1, { - "party": _42 - }], - "events": [1, { - "koobin": _3, - "co": _3 - }], - "exchange": _2, - "expert": _2, - "exposed": _2, - "express": _2, - "extraspace": _2, - "fage": _2, - "fail": _2, - "fairwinds": _2, - "faith": _43, - "family": _2, - "fan": _2, - "fans": _2, - "farm": [1, { - "storj": _3 - }], - "farmers": _2, - "fashion": _2, - "fast": _2, - "fedex": _2, - "feedback": _2, - "ferrari": _2, - "ferrero": _2, - "fidelity": _2, - "fido": _2, - "film": _2, - "final": _2, - "finance": _2, - "financial": _14, - "fire": _2, - "firestone": _2, - "firmdale": _2, - "fish": _2, - "fishing": _2, - "fit": _2, - "fitness": _2, - "flickr": _2, - "flights": _2, - "flir": _2, - "florist": _2, - "flowers": _2, - "fly": _2, - "foo": _2, - "food": _2, - "football": _2, - "ford": _2, - "forex": _2, - "forsale": _2, - "forum": _2, - "foundation": _2, - "fox": _2, - "free": _2, - "fresenius": _2, - "frl": _2, - "frogans": _2, - "frontier": _2, - "ftr": _2, - "fujitsu": _2, - "fun": _2, - "fund": _2, - "furniture": _2, - "futbol": _2, - "fyi": _2, - "gal": _2, - "gallery": _2, - "gallo": _2, - "gallup": _2, - "game": _2, - "games": _2, - "gap": _2, - "garden": _2, - "gay": _2, - "gbiz": _2, - "gdn": [1, { - "cnpy": _3 - }], - "gea": _2, - "gent": _2, - "genting": _2, - "george": _2, - "ggee": _2, - "gift": _2, - "gifts": _2, - "gives": _2, - "giving": _2, - "glass": _2, - "gle": _2, - "global": _2, - "globo": _2, - "gmail": _2, - "gmbh": _2, - "gmo": _2, - "gmx": _2, - "godaddy": _2, - "gold": _2, - "goldpoint": _2, - "golf": _2, - "goo": _2, - "goodyear": _2, - "goog": [1, { - "cloud": _3, - "translate": _3, - "usercontent": _5 - }], - "google": _2, - "gop": _2, - "got": _2, - "grainger": _2, - "graphics": _2, - "gratis": _2, - "green": _2, - "gripe": _2, - "grocery": _2, - "group": [1, { - "discourse": _3 - }], - "guardian": _2, - "gucci": _2, - "guge": _2, - "guide": _2, - "guitars": _2, - "guru": _2, - "hair": _2, - "hamburg": _2, - "hangout": _2, - "haus": _2, - "hbo": _2, - "hdfc": _2, - "hdfcbank": _2, - "health": [1, { - "hra": _3 - }], - "healthcare": _2, - "help": _2, - "helsinki": _2, - "here": _2, - "hermes": _2, - "hiphop": _2, - "hisamitsu": _2, - "hitachi": _2, - "hiv": _2, - "hkt": _2, - "hockey": _2, - "holdings": _2, - "holiday": _2, - "homedepot": _2, - "homegoods": _2, - "homes": _2, - "homesense": _2, - "honda": _2, - "horse": _2, - "hospital": _2, - "host": [1, { - "cloudaccess": _3, - "freesite": _3, - "easypanel": _3, - "fastvps": _3, - "myfast": _3, - "tempurl": _3, - "wpmudev": _3, - "jele": _3, - "mircloud": _3, - "pcloud": _3, - "half": _3 - }], - "hosting": [1, { - "opencraft": _3 - }], - "hot": _2, - "hotels": _2, - "hotmail": _2, - "house": _2, - "how": _2, - "hsbc": _2, - "hughes": _2, - "hyatt": _2, - "hyundai": _2, - "ibm": _2, - "icbc": _2, - "ice": _2, - "icu": _2, - "ieee": _2, - "ifm": _2, - "ikano": _2, - "imamat": _2, - "imdb": _2, - "immo": _2, - "immobilien": _2, - "inc": _2, - "industries": _2, - "infiniti": _2, - "ing": _2, - "ink": _2, - "institute": _2, - "insurance": _2, - "insure": _2, - "international": _2, - "intuit": _2, - "investments": _2, - "ipiranga": _2, - "irish": _2, - "ismaili": _2, - "ist": _2, - "istanbul": _2, - "itau": _2, - "itv": _2, - "jaguar": _2, - "java": _2, - "jcb": _2, - "jeep": _2, - "jetzt": _2, - "jewelry": _2, - "jio": _2, - "jll": _2, - "jmp": _2, - "jnj": _2, - "joburg": _2, - "jot": _2, - "joy": _2, - "jpmorgan": _2, - "jprs": _2, - "juegos": _2, - "juniper": _2, - "kaufen": _2, - "kddi": _2, - "kerryhotels": _2, - "kerrylogistics": _2, - "kerryproperties": _2, - "kfh": _2, - "kia": _2, - "kids": _2, - "kim": _2, - "kindle": _2, - "kitchen": _2, - "kiwi": _2, - "koeln": _2, - "komatsu": _2, - "kosher": _2, - "kpmg": _2, - "kpn": _2, - "krd": [1, { - "co": _3, - "edu": _3 - }], - "kred": _2, - "kuokgroup": _2, - "kyoto": _2, - "lacaixa": _2, - "lamborghini": _2, - "lamer": _2, - "lancaster": _2, - "land": [1, { - "static": [2, { - "dev": _3, - "sites": _3 - }] - }], - "landrover": _2, - "lanxess": _2, - "lasalle": _2, - "lat": _2, - "latino": _2, - "latrobe": _2, - "law": _2, - "lawyer": _2, - "lds": _2, - "lease": _2, - "leclerc": _2, - "lefrak": _2, - "legal": _2, - "lego": _2, - "lexus": _2, - "lgbt": _2, - "lidl": _2, - "life": _2, - "lifeinsurance": _2, - "lifestyle": _2, - "lighting": _2, - "like": _2, - "lilly": _2, - "limited": _2, - "limo": _2, - "lincoln": _2, - "link": [1, { - "cyon": _3, - "mypep": _3, - "dweb": _5 - }], - "lipsy": _2, - "live": [1, { - "hlx": _3 - }], - "living": _2, - "llc": _2, - "llp": _2, - "loan": _2, - "loans": _2, - "locker": _2, - "locus": _2, - "lol": [1, { - "omg": _3 - }], - "london": _2, - "lotte": _2, - "lotto": _2, - "love": _2, - "lpl": _2, - "lplfinancial": _2, - "ltd": _2, - "ltda": _2, - "lundbeck": _2, - "luxe": _2, - "luxury": _2, - "madrid": _2, - "maif": _2, - "maison": _2, - "makeup": _2, - "man": _2, - "management": [1, { - "router": _3 - }], - "mango": _2, - "map": _2, - "market": _2, - "marketing": _2, - "markets": _2, - "marriott": _2, - "marshalls": _2, - "mattel": _2, - "mba": _2, - "mckinsey": _2, - "med": _2, - "media": _50, - "meet": _2, - "melbourne": _2, - "meme": _2, - "memorial": _2, - "men": _2, - "menu": _51, - "merckmsd": _2, - "miami": _2, - "microsoft": _2, - "mini": _2, - "mint": _2, - "mit": _2, - "mitsubishi": _2, - "mlb": _2, - "mls": _2, - "mma": _2, - "mobile": _2, - "moda": _2, - "moe": _2, - "moi": _2, - "mom": _2, - "monash": _2, - "money": _2, - "monster": _2, - "mormon": _2, - "mortgage": _2, - "moscow": _2, - "moto": _2, - "motorcycles": _2, - "mov": _2, - "movie": _2, - "msd": _2, - "mtn": _2, - "mtr": _2, - "music": _2, - "nab": _2, - "nagoya": _2, - "natura": _2, - "navy": _2, - "nba": _2, - "nec": _2, - "netbank": _2, - "netflix": _2, - "network": [1, { - "alces": _5, - "co": _3, - "arvo": _3, - "azimuth": _3, - "tlon": _3 - }], - "neustar": _2, - "new": _2, - "news": [1, { - "noticeable": _3 - }], - "next": _2, - "nextdirect": _2, - "nexus": _2, - "nfl": _2, - "ngo": _2, - "nhk": _2, - "nico": _2, - "nike": _2, - "nikon": _2, - "ninja": _2, - "nissan": _2, - "nissay": _2, - "nokia": _2, - "norton": _2, - "now": _2, - "nowruz": _2, - "nowtv": _2, - "nra": _2, - "nrw": _2, - "ntt": _2, - "nyc": _2, - "obi": _2, - "observer": _2, - "office": _2, - "okinawa": _2, - "olayan": _2, - "olayangroup": _2, - "oldnavy": _2, - "ollo": _2, - "omega": _2, - "one": [1, { - "onred": [2, { - "staging": _3 - }], - "service": _3, - "homelink": _3 - }], - "ong": _2, - "onl": _2, - "online": [1, { - "eero": _3, - "eero-stage": _3, - "barsy": _3 - }], - "ooo": _2, - "open": _2, - "oracle": _2, - "orange": [1, { - "tech": _3 - }], - "organic": _2, - "origins": _2, - "osaka": _2, - "otsuka": _2, - "ott": _2, - "ovh": [1, { - "nerdpol": _3 - }], - "page": [1, { - "hlx": _3, - "hlx3": _3, - "translated": _3, - "codeberg": _3, - "pdns": _3, - "plesk": _3, - "prvcy": _3, - "rocky": _3, - "magnet": _3 - }], - "panasonic": _2, - "paris": _2, - "pars": _2, - "partners": _2, - "parts": _2, - "party": _43, - "pay": _2, - "pccw": _2, - "pet": _2, - "pfizer": _2, - "pharmacy": _2, - "phd": _2, - "philips": _2, - "phone": _2, - "photo": _2, - "photography": _2, - "photos": _50, - "physio": _2, - "pics": _2, - "pictet": _2, - "pictures": [1, { - "1337": _3 - }], - "pid": _2, - "pin": _2, - "ping": _2, - "pink": _2, - "pioneer": _2, - "pizza": [1, { - "ngrok": _3 - }], - "place": _14, - "play": _2, - "playstation": _2, - "plumbing": _2, - "plus": _2, - "pnc": _2, - "pohl": _2, - "poker": _2, - "politie": _2, - "porn": [1, { - "indie": _3 - }], - "pramerica": _2, - "praxi": _2, - "press": _2, - "prime": _2, - "prod": _2, - "productions": _2, - "prof": _2, - "progressive": _2, - "promo": _2, - "properties": _2, - "property": _2, - "protection": _2, - "pru": _2, - "prudential": _2, - "pub": _51, - "pwc": _2, - "qpon": _2, - "quebec": _2, - "quest": _2, - "racing": _2, - "radio": _2, - "read": _2, - "realestate": _2, - "realtor": _2, - "realty": _2, - "recipes": _2, - "red": _2, - "redstone": _2, - "redumbrella": _2, - "rehab": _2, - "reise": _2, - "reisen": _2, - "reit": _2, - "reliance": _2, - "ren": _2, - "rent": _2, - "rentals": _2, - "repair": _2, - "report": _2, - "republican": _2, - "rest": _2, - "restaurant": _2, - "review": _43, - "reviews": _2, - "rexroth": _2, - "rich": _2, - "richardli": _2, - "ricoh": _2, - "ril": _2, - "rio": _2, - "rip": [1, { - "clan": _3 - }], - "rocks": [1, { - "myddns": _3, - "lima-city": _3, - "webspace": _3 - }], - "rodeo": _2, - "rogers": _2, - "room": _2, - "rsvp": _2, - "rugby": _2, - "ruhr": _2, - "run": [1, { - "hs": _3, - "development": _3, - "ravendb": _3, - "servers": _3, - "build": _5, - "code": _5, - "database": _5, - "migration": _5, - "onporter": _3, - "repl": _3, - "wix": _3 - }], - "rwe": _2, - "ryukyu": _2, - "saarland": _2, - "safe": _2, - "safety": _2, - "sakura": _2, - "sale": _2, - "salon": _2, - "samsclub": _2, - "samsung": _2, - "sandvik": _2, - "sandvikcoromant": _2, - "sanofi": _2, - "sap": _2, - "sarl": _2, - "sas": _2, - "save": _2, - "saxo": _2, - "sbi": _2, - "sbs": _2, - "scb": _2, - "schaeffler": _2, - "schmidt": _2, - "scholarships": _2, - "school": _2, - "schule": _2, - "schwarz": _2, - "science": _43, - "scot": [1, { - "edu": _3, - "gov": [2, { - "service": _3 - }] - }], - "search": _2, - "seat": _2, - "secure": _2, - "security": _2, - "seek": _2, - "select": _2, - "sener": _2, - "services": [1, { - "loginline": _3 - }], - "seven": _2, - "sew": _2, - "sex": _2, - "sexy": _2, - "sfr": _2, - "shangrila": _2, - "sharp": _2, - "shaw": _2, - "shell": _2, - "shia": _2, - "shiksha": _2, - "shoes": _2, - "shop": [1, { - "base": _3, - "hoplix": _3, - "barsy": _3 - }], - "shopping": _2, - "shouji": _2, - "show": _2, - "silk": _2, - "sina": _2, - "singles": _2, - "site": [1, { - "cloudera": _5, - "cyon": _3, - "fnwk": _3, - "folionetwork": _3, - "fastvps": _3, - "jele": _3, - "lelux": _3, - "loginline": _3, - "barsy": _3, - "mintere": _3, - "omniwe": _3, - "opensocial": _3, - "platformsh": _5, - "tst": _5, - "byen": _3, - "srht": _3, - "novecore": _3 - }], - "ski": _2, - "skin": _2, - "sky": _2, - "skype": _2, - "sling": _2, - "smart": _2, - "smile": _2, - "sncf": _2, - "soccer": _2, - "social": _2, - "softbank": _2, - "software": _2, - "sohu": _2, - "solar": _2, - "solutions": [1, { - "diher": _5 - }], - "song": _2, - "sony": _2, - "soy": _2, - "spa": _2, - "space": [1, { - "myfast": _3, - "uber": _3, - "xs4all": _3 - }], - "sport": _2, - "spot": _2, - "srl": _2, - "stada": _2, - "staples": _2, - "star": _2, - "statebank": _2, - "statefarm": _2, - "stc": _2, - "stcgroup": _2, - "stockholm": _2, - "storage": _2, - "store": [1, { - "sellfy": _3, - "shopware": _3, - "storebase": _3 - }], - "stream": _2, - "studio": _2, - "study": _2, - "style": _2, - "sucks": _2, - "supplies": _2, - "supply": _2, - "support": _51, - "surf": _2, - "surgery": _2, - "suzuki": _2, - "swatch": _2, - "swiss": _2, - "sydney": _2, - "systems": [1, { - "knightpoint": _3 - }], - "tab": _2, - "taipei": _2, - "talk": _2, - "taobao": _2, - "target": _2, - "tatamotors": _2, - "tatar": _2, - "tattoo": _2, - "tax": _2, - "taxi": _2, - "tci": _2, - "tdk": _2, - "team": [1, { - "discourse": _3, - "jelastic": _3 - }], - "tech": _2, - "technology": _14, - "temasek": _2, - "tennis": _2, - "teva": _2, - "thd": _2, - "theater": _2, - "theatre": _2, - "tiaa": _2, - "tickets": _2, - "tienda": _2, - "tips": _2, - "tires": _2, - "tirol": _2, - "tjmaxx": _2, - "tjx": _2, - "tkmaxx": _2, - "tmall": _2, - "today": [1, { - "prequalifyme": _3 - }], - "tokyo": _2, - "tools": _2, - "top": [1, { - "now-dns": _3, - "ntdll": _3 - }], - "toray": _2, - "toshiba": _2, - "total": _2, - "tours": _2, - "town": _2, - "toyota": _2, - "toys": _2, - "trade": _43, - "trading": _2, - "training": _2, - "travel": _2, - "travelers": _2, - "travelersinsurance": _2, - "trust": _2, - "trv": _2, - "tube": _2, - "tui": _2, - "tunes": _2, - "tushu": _2, - "tvs": _2, - "ubank": _2, - "ubs": _2, - "unicom": _2, - "university": _2, - "uno": _2, - "uol": _2, - "ups": _2, - "vacations": _2, - "vana": _2, - "vanguard": _2, - "vegas": _2, - "ventures": _2, - "verisign": _2, - "versicherung": _2, - "vet": _2, - "viajes": _2, - "video": _2, - "vig": _2, - "viking": _2, - "villas": _2, - "vin": _2, - "vip": _2, - "virgin": _2, - "visa": _2, - "vision": _2, - "viva": _2, - "vivo": _2, - "vlaanderen": _2, - "vodka": _2, - "volvo": _2, - "vote": _2, - "voting": _2, - "voto": _2, - "voyage": _2, - "wales": _2, - "walmart": _2, - "walter": _2, - "wang": _2, - "wanggou": _2, - "watch": _2, - "watches": _2, - "weather": _2, - "weatherchannel": _2, - "webcam": _2, - "weber": _2, - "website": _50, - "wed": _2, - "wedding": _2, - "weibo": _2, - "weir": _2, - "whoswho": _2, - "wien": _2, - "wiki": _50, - "williamhill": _2, - "win": _2, - "windows": _2, - "wine": _2, - "winners": _2, - "wme": _2, - "wolterskluwer": _2, - "woodside": _2, - "work": _2, - "works": _2, - "world": _2, - "wow": _2, - "wtc": _2, - "wtf": _2, - "xbox": _2, - "xerox": _2, - "xfinity": _2, - "xihuan": _2, - "xin": _2, - "xn--11b4c3d": _2, - "कॉम": _2, - "xn--1ck2e1b": _2, - "セール": _2, - "xn--1qqw23a": _2, - "佛山": _2, - "xn--30rr7y": _2, - "慈善": _2, - "xn--3bst00m": _2, - "集团": _2, - "xn--3ds443g": _2, - "在线": _2, - "xn--3pxu8k": _2, - "点看": _2, - "xn--42c2d9a": _2, - "คอม": _2, - "xn--45q11c": _2, - "八卦": _2, - "xn--4gbrim": _2, - "موقع": _2, - "xn--55qw42g": _2, - "公益": _2, - "xn--55qx5d": _2, - "公司": _2, - "xn--5su34j936bgsg": _2, - "香格里拉": _2, - "xn--5tzm5g": _2, - "网站": _2, - "xn--6frz82g": _2, - "移动": _2, - "xn--6qq986b3xl": _2, - "我爱你": _2, - "xn--80adxhks": _2, - "москва": _2, - "xn--80aqecdr1a": _2, - "католик": _2, - "xn--80asehdb": _2, - "онлайн": _2, - "xn--80aswg": _2, - "сайт": _2, - "xn--8y0a063a": _2, - "联通": _2, - "xn--9dbq2a": _2, - "קום": _2, - "xn--9et52u": _2, - "时尚": _2, - "xn--9krt00a": _2, - "微博": _2, - "xn--b4w605ferd": _2, - "淡马锡": _2, - "xn--bck1b9a5dre4c": _2, - "ファッション": _2, - "xn--c1avg": _2, - "орг": _2, - "xn--c2br7g": _2, - "नेट": _2, - "xn--cck2b3b": _2, - "ストア": _2, - "xn--cckwcxetd": _2, - "アマゾン": _2, - "xn--cg4bki": _2, - "삼성": _2, - "xn--czr694b": _2, - "商标": _2, - "xn--czrs0t": _2, - "商店": _2, - "xn--czru2d": _2, - "商城": _2, - "xn--d1acj3b": _2, - "дети": _2, - "xn--eckvdtc9d": _2, - "ポイント": _2, - "xn--efvy88h": _2, - "新闻": _2, - "xn--fct429k": _2, - "家電": _2, - "xn--fhbei": _2, - "كوم": _2, - "xn--fiq228c5hs": _2, - "中文网": _2, - "xn--fiq64b": _2, - "中信": _2, - "xn--fjq720a": _2, - "娱乐": _2, - "xn--flw351e": _2, - "谷歌": _2, - "xn--fzys8d69uvgm": _2, - "電訊盈科": _2, - "xn--g2xx48c": _2, - "购物": _2, - "xn--gckr3f0f": _2, - "クラウド": _2, - "xn--gk3at1e": _2, - "通販": _2, - "xn--hxt814e": _2, - "网店": _2, - "xn--i1b6b1a6a2e": _2, - "संगठन": _2, - "xn--imr513n": _2, - "餐厅": _2, - "xn--io0a7i": _2, - "网络": _2, - "xn--j1aef": _2, - "ком": _2, - "xn--jlq480n2rg": _2, - "亚马逊": _2, - "xn--jvr189m": _2, - "食品": _2, - "xn--kcrx77d1x4a": _2, - "飞利浦": _2, - "xn--kput3i": _2, - "手机": _2, - "xn--mgba3a3ejt": _2, - "ارامكو": _2, - "xn--mgba7c0bbn0a": _2, - "العليان": _2, - "xn--mgbab2bd": _2, - "بازار": _2, - "xn--mgbca7dzdo": _2, - "ابوظبي": _2, - "xn--mgbi4ecexp": _2, - "كاثوليك": _2, - "xn--mgbt3dhd": _2, - "همراه": _2, - "xn--mk1bu44c": _2, - "닷컴": _2, - "xn--mxtq1m": _2, - "政府": _2, - "xn--ngbc5azd": _2, - "شبكة": _2, - "xn--ngbe9e0a": _2, - "بيتك": _2, - "xn--ngbrx": _2, - "عرب": _2, - "xn--nqv7f": _2, - "机构": _2, - "xn--nqv7fs00ema": _2, - "组织机构": _2, - "xn--nyqy26a": _2, - "健康": _2, - "xn--otu796d": _2, - "招聘": _2, - "xn--p1acf": [1, { - "xn--90amc": _3, - "xn--j1aef": _3, - "xn--j1ael8b": _3, - "xn--h1ahn": _3, - "xn--j1adp": _3, - "xn--c1avg": _3, - "xn--80aaa0cvac": _3, - "xn--h1aliz": _3, - "xn--90a1af": _3, - "xn--41a": _3 - }], - "рус": [1, { - "биз": _3, - "ком": _3, - "крым": _3, - "мир": _3, - "мск": _3, - "орг": _3, - "самара": _3, - "сочи": _3, - "спб": _3, - "я": _3 - }], - "xn--pssy2u": _2, - "大拿": _2, - "xn--q9jyb4c": _2, - "みんな": _2, - "xn--qcka1pmc": _2, - "グーグル": _2, - "xn--rhqv96g": _2, - "世界": _2, - "xn--rovu88b": _2, - "書籍": _2, - "xn--ses554g": _2, - "网址": _2, - "xn--t60b56a": _2, - "닷넷": _2, - "xn--tckwe": _2, - "コム": _2, - "xn--tiq49xqyj": _2, - "天主教": _2, - "xn--unup4y": _2, - "游戏": _2, - "xn--vermgensberater-ctb": _2, - "vermögensberater": _2, - "xn--vermgensberatung-pwb": _2, - "vermögensberatung": _2, - "xn--vhquv": _2, - "企业": _2, - "xn--vuq861b": _2, - "信息": _2, - "xn--w4r85el8fhu5dnra": _2, - "嘉里大酒店": _2, - "xn--w4rs40l": _2, - "嘉里": _2, - "xn--xhq521b": _2, - "广东": _2, - "xn--zfr164b": _2, - "政务": _2, - "xyz": [1, { - "blogsite": _3, - "localzone": _3, - "crafting": _3, - "zapto": _3, - "telebit": _5 - }], - "yachts": _2, - "yahoo": _2, - "yamaxun": _2, - "yandex": _2, - "yodobashi": _2, - "yoga": _2, - "yokohama": _2, - "you": _2, - "youtube": _2, - "yun": _2, - "zappos": _2, - "zara": _2, - "zero": _2, - "zip": _2, - "zone": [1, { - "cloud66": _3, - "hs": _3, - "triton": _5, - "lima": _3 - }], - "zuerich": _2 - }]; - return rules; -}(); -;// CONCATENATED MODULE: ../../node_modules/tldts/dist/es6/src/suffix-trie.js - - -/** - * Lookup parts of domain in Trie - */ -function lookupInTrie(parts, trie, index, allowedMask) { - let result = null; - let node = trie; - while (node !== undefined) { - // We have a match! - if ((node[0] & allowedMask) !== 0) { - result = { - index: index + 1, - isIcann: node[0] === 1 /* RULE_TYPE.ICANN */, - isPrivate: node[0] === 2 /* RULE_TYPE.PRIVATE */ - }; - } - // No more `parts` to look for - if (index === -1) { - break; - } - const succ = node[1]; - node = Object.prototype.hasOwnProperty.call(succ, parts[index]) ? succ[parts[index]] : succ['*']; - index -= 1; - } - return result; -} -/** - * Check if `hostname` has a valid public suffix in `trie`. - */ -function suffix_trie_suffixLookup(hostname, options, out) { - var _a; - if (fast_path(hostname, options, out)) { - return; - } - const hostnameParts = hostname.split('.'); - const allowedMask = (options.allowPrivateDomains ? 2 /* RULE_TYPE.PRIVATE */ : 0) | (options.allowIcannDomains ? 1 /* RULE_TYPE.ICANN */ : 0); - // Look for exceptions - const exceptionMatch = lookupInTrie(hostnameParts, exceptions, hostnameParts.length - 1, allowedMask); - if (exceptionMatch !== null) { - out.isIcann = exceptionMatch.isIcann; - out.isPrivate = exceptionMatch.isPrivate; - out.publicSuffix = hostnameParts.slice(exceptionMatch.index + 1).join('.'); - return; - } - // Look for a match in rules - const rulesMatch = lookupInTrie(hostnameParts, rules, hostnameParts.length - 1, allowedMask); - if (rulesMatch !== null) { - out.isIcann = rulesMatch.isIcann; - out.isPrivate = rulesMatch.isPrivate; - out.publicSuffix = hostnameParts.slice(rulesMatch.index).join('.'); - return; - } - // No match found... - // Prevailing rule is '*' so we consider the top-level domain to be the - // public suffix of `hostname` (e.g.: 'example.org' => 'org'). - out.isIcann = false; - out.isPrivate = false; - out.publicSuffix = (_a = hostnameParts[hostnameParts.length - 1]) !== null && _a !== void 0 ? _a : null; -} -;// CONCATENATED MODULE: ../../node_modules/tldts/dist/es6/index.js - - -// For all methods but 'parse', it does not make sense to allocate an object -// every single time to only return the value of a specific attribute. To avoid -// this un-necessary allocation, we use a global object which is re-used. -const RESULT = getEmptyResult(); -function parse(url, options = {}) { - return factory_parseImpl(url, 5 /* FLAG.ALL */, suffix_trie_suffixLookup, options, getEmptyResult()); -} -function getHostname(url, options = {}) { - /*@__INLINE__*/factory_resetResult(RESULT); - return factory_parseImpl(url, 0 /* FLAG.HOSTNAME */, suffix_trie_suffixLookup, options, RESULT).hostname; -} -function getPublicSuffix(url, options = {}) { - /*@__INLINE__*/resetResult(RESULT); - return parseImpl(url, 2 /* FLAG.PUBLIC_SUFFIX */, suffixLookup, options, RESULT).publicSuffix; -} -function es6_getDomain(url, options = {}) { - /*@__INLINE__*/resetResult(RESULT); - return parseImpl(url, 3 /* FLAG.DOMAIN */, suffixLookup, options, RESULT).domain; -} -function es6_getSubdomain(url, options = {}) { - /*@__INLINE__*/resetResult(RESULT); - return parseImpl(url, 4 /* FLAG.SUB_DOMAIN */, suffixLookup, options, RESULT).subdomain; -} -function es6_getDomainWithoutSuffix(url, options = {}) { - /*@__INLINE__*/resetResult(RESULT); - return parseImpl(url, 5 /* FLAG.ALL */, suffixLookup, options, RESULT).domainWithoutSuffix; -} -;// CONCATENATED MODULE: ../../libs/common/src/platform/misc/utils.ts -/* provided dependency */ var utils_process = __webpack_require__(71624); -/* eslint-disable no-useless-escape */ - - - -const nodeURL = typeof window === "undefined" ? __webpack_require__(69573) : null; -class Utils { - static init() { - if (Utils.inited) { - return; - } - Utils.inited = true; - Utils.isNode = - typeof utils_process !== "undefined" && - utils_process.release != null && - utils_process.release.name === "node"; - Utils.isBrowser = typeof window !== "undefined"; - Utils.isMobileBrowser = Utils.isBrowser && this.isMobile(window); - Utils.isAppleMobileBrowser = Utils.isBrowser && this.isAppleMobile(window); - if (Utils.isNode) { - Utils.global = __webpack_require__.g; - } - else if (Utils.isBrowser) { - Utils.global = window; - } - else { - // If it's not browser or node then it must be a service worker - Utils.global = self; - } - } - static fromB64ToArray(str) { - if (str == null) { - return null; - } - if (Utils.isNode) { - return new Uint8Array(Buffer.from(str, "base64")); - } - else { - const binaryString = Utils.global.atob(str); - const bytes = new Uint8Array(binaryString.length); - for (let i = 0; i < binaryString.length; i++) { - bytes[i] = binaryString.charCodeAt(i); - } - return bytes; - } - } - static fromUrlB64ToArray(str) { - return Utils.fromB64ToArray(Utils.fromUrlB64ToB64(str)); - } - static fromHexToArray(str) { - if (Utils.isNode) { - return new Uint8Array(Buffer.from(str, "hex")); - } - else { - const bytes = new Uint8Array(str.length / 2); - for (let i = 0; i < str.length; i += 2) { - bytes[i / 2] = parseInt(str.substr(i, 2), 16); - } - return bytes; - } - } - static fromUtf8ToArray(str) { - if (Utils.isNode) { - return new Uint8Array(Buffer.from(str, "utf8")); - } - else { - const strUtf8 = unescape(encodeURIComponent(str)); - const arr = new Uint8Array(strUtf8.length); - for (let i = 0; i < strUtf8.length; i++) { - arr[i] = strUtf8.charCodeAt(i); - } - return arr; - } - } - static fromByteStringToArray(str) { - if (str == null) { - return null; - } - const arr = new Uint8Array(str.length); - for (let i = 0; i < str.length; i++) { - arr[i] = str.charCodeAt(i); - } - return arr; - } - static fromBufferToB64(buffer) { - if (buffer == null) { - return null; - } - if (Utils.isNode) { - return Buffer.from(buffer).toString("base64"); - } - else { - let binary = ""; - const bytes = new Uint8Array(buffer); - for (let i = 0; i < bytes.byteLength; i++) { - binary += String.fromCharCode(bytes[i]); - } - return Utils.global.btoa(binary); - } - } - static fromBufferToUrlB64(buffer) { - return Utils.fromB64toUrlB64(Utils.fromBufferToB64(buffer)); - } - static fromB64toUrlB64(b64Str) { - return b64Str.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); - } - static fromBufferToUtf8(buffer) { - if (Utils.isNode) { - return Buffer.from(buffer).toString("utf8"); - } - else { - const bytes = new Uint8Array(buffer); - const encodedString = String.fromCharCode.apply(null, bytes); - return decodeURIComponent(escape(encodedString)); - } - } - static fromBufferToByteString(buffer) { - return String.fromCharCode.apply(null, new Uint8Array(buffer)); - } - // ref: https://stackoverflow.com/a/40031979/1090359 - static fromBufferToHex(buffer) { - if (Utils.isNode) { - return Buffer.from(buffer).toString("hex"); - } - else { - const bytes = new Uint8Array(buffer); - return Array.prototype.map - .call(bytes, (x) => ("00" + x.toString(16)).slice(-2)) - .join(""); - } - } - /** - * Converts a hex string to an ArrayBuffer. - * Note: this doesn't need any Node specific code as parseInt() / ArrayBuffer / Uint8Array - * work the same in Node and the browser. - * @param {string} hexString - A string of hexadecimal characters. - * @returns {ArrayBuffer} The ArrayBuffer representation of the hex string. - */ - static hexStringToArrayBuffer(hexString) { - // Check if the hexString has an even length, as each hex digit represents half a byte (4 bits), - // and it takes two hex digits to represent a full byte (8 bits). - if (hexString.length % 2 !== 0) { - throw "HexString has to be an even length"; - } - // Create an ArrayBuffer with a length that is half the length of the hex string, - // because each pair of hex digits will become a single byte. - const arrayBuffer = new ArrayBuffer(hexString.length / 2); - // Create a Uint8Array view on top of the ArrayBuffer (each position represents a byte) - // as ArrayBuffers cannot be edited directly. - const uint8Array = new Uint8Array(arrayBuffer); - // Loop through the bytes - for (let i = 0; i < uint8Array.length; i++) { - // Extract two hex characters (1 byte) - const hexByte = hexString.substr(i * 2, 2); - // Convert hexByte into a decimal value from base 16. (ex: ff --> 255) - const byteValue = parseInt(hexByte, 16); - // Place the byte value into the uint8Array - uint8Array[i] = byteValue; - } - return arrayBuffer; - } - static fromUrlB64ToB64(urlB64Str) { - let output = urlB64Str.replace(/-/g, "+").replace(/_/g, "/"); - switch (output.length % 4) { - case 0: - break; - case 2: - output += "=="; - break; - case 3: - output += "="; - break; - default: - throw new Error("Illegal base64url string!"); - } - return output; - } - static fromUrlB64ToUtf8(urlB64Str) { - return Utils.fromB64ToUtf8(Utils.fromUrlB64ToB64(urlB64Str)); - } - static fromUtf8ToB64(utfStr) { - if (Utils.isNode) { - return Buffer.from(utfStr, "utf8").toString("base64"); - } - else { - return decodeURIComponent(escape(Utils.global.btoa(utfStr))); - } - } - static fromUtf8ToUrlB64(utfStr) { - return Utils.fromBufferToUrlB64(Utils.fromUtf8ToArray(utfStr)); - } - static fromB64ToUtf8(b64Str) { - if (Utils.isNode) { - return Buffer.from(b64Str, "base64").toString("utf8"); - } - else { - return decodeURIComponent(escape(Utils.global.atob(b64Str))); - } - } - // ref: http://stackoverflow.com/a/2117523/1090359 - static newGuid() { - return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => { - const r = (Math.random() * 16) | 0; - const v = c === "x" ? r : (r & 0x3) | 0x8; - return v.toString(16); - }); - } - static isGuid(id) { - return RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/, "i").test(id); - } - static getHostname(uriString) { - if (Utils.isNullOrWhitespace(uriString)) { - return null; - } - uriString = uriString.trim(); - if (uriString.startsWith("data:")) { - return null; - } - if (uriString.startsWith("about:")) { - return null; - } - if (uriString.startsWith("file:")) { - return null; - } - // Does uriString contain invalid characters - // TODO Needs to possibly be extended, although '!' is a reserved character - if (uriString.indexOf("!") > 0) { - return null; - } - try { - const hostname = getHostname(uriString, { validHosts: this.validHosts }); - if (hostname != null) { - return hostname; - } - } - catch (_a) { - return null; - } - return null; - } - static getHost(uriString) { - const url = Utils.getUrl(uriString); - try { - return url != null && url.host !== "" ? url.host : null; - } - catch (_a) { - return null; - } - } - static getDomain(uriString) { - if (Utils.isNullOrWhitespace(uriString)) { - return null; - } - uriString = uriString.trim(); - if (uriString.startsWith("data:")) { - return null; - } - if (uriString.startsWith("about:")) { - return null; - } - try { - const parseResult = parse(uriString, { - validHosts: this.validHosts, - allowPrivateDomains: true, - }); - if (parseResult != null && parseResult.hostname != null) { - if (parseResult.hostname === "localhost" || parseResult.isIp) { - return parseResult.hostname; - } - if (parseResult.domain != null) { - return parseResult.domain; - } - return null; - } - } - catch (_a) { - return null; - } - return null; - } - static getQueryParams(uriString) { - const url = Utils.getUrl(uriString); - if (url == null || url.search == null || url.search === "") { - return null; - } - const map = new Map(); - const pairs = (url.search[0] === "?" ? url.search.substr(1) : url.search).split("&"); - pairs.forEach((pair) => { - const parts = pair.split("="); - if (parts.length < 1) { - return; - } - map.set(decodeURIComponent(parts[0]).toLowerCase(), parts[1] == null ? "" : decodeURIComponent(parts[1])); - }); - return map; - } - static getSortFunction(i18nService, prop) { - return (a, b) => { - if (a[prop] == null && b[prop] != null) { - return -1; - } - if (a[prop] != null && b[prop] == null) { - return 1; - } - if (a[prop] == null && b[prop] == null) { - return 0; - } - // The `as unknown as string` here is unfortunate because typescript doesn't property understand that the return of T[prop] will be a string - return i18nService.collator - ? i18nService.collator.compare(a[prop], b[prop]) - : a[prop].localeCompare(b[prop]); - }; - } - static isNullOrWhitespace(str) { - return str == null || typeof str !== "string" || str.trim() === ""; - } - static isNullOrEmpty(str) { - return str == null || typeof str !== "string" || str == ""; - } - static isPromise(obj) { - return (obj != undefined && typeof obj["then"] === "function" && typeof obj["catch"] === "function"); - } - static nameOf(name) { - return name; - } - static assign(target, source) { - return Object.assign(target, source); - } - static iterateEnum(obj) { - return Object.keys(obj).filter((k) => Number.isNaN(+k)).map((k) => obj[k]); - } - static getUrl(uriString) { - if (this.isNullOrWhitespace(uriString)) { - return null; - } - uriString = uriString.trim(); - return Utils.getUrlObject(uriString); - } - static camelToPascalCase(s) { - return s.charAt(0).toUpperCase() + s.slice(1); - } - /** - * There are a few ways to calculate text color for contrast, this one seems to fit accessibility guidelines best. - * https://stackoverflow.com/a/3943023/6869691 - * - * @param {string} bgColor - * @param {number} [threshold] see stackoverflow link above - * @param {boolean} [svgTextFill] - * Indicates if this method is performed on an SVG 'fill' attribute (e.g. ). - * This check is necessary because the '!important' tag cannot be used in a 'fill' attribute. - */ - static pickTextColorBasedOnBgColor(bgColor, threshold = 186, svgTextFill = false) { - const bgColorHexNums = bgColor.charAt(0) === "#" ? bgColor.substring(1, 7) : bgColor; - const r = parseInt(bgColorHexNums.substring(0, 2), 16); // hexToR - const g = parseInt(bgColorHexNums.substring(2, 4), 16); // hexToG - const b = parseInt(bgColorHexNums.substring(4, 6), 16); // hexToB - const blackColor = svgTextFill ? "black" : "black !important"; - const whiteColor = svgTextFill ? "white" : "white !important"; - return r * 0.299 + g * 0.587 + b * 0.114 > threshold ? blackColor : whiteColor; - } - static stringToColor(str) { - let hash = 0; - for (let i = 0; i < str.length; i++) { - hash = str.charCodeAt(i) + ((hash << 5) - hash); - } - let color = "#"; - for (let i = 0; i < 3; i++) { - const value = (hash >> (i * 8)) & 0xff; - color += ("00" + value.toString(16)).substr(-2); - } - return color; - } - /** - * @throws Will throw an error if the ContainerService has not been attached to the window object - */ - static getContainerService() { - if (this.global.bitwardenContainerService == null) { - throw new Error("global bitwardenContainerService not initialized."); - } - return this.global.bitwardenContainerService; - } - static validateHexColor(color) { - return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(color); - } - /** - * Converts map to a Record with the same data. Inverse of recordToMap - * Useful in toJSON methods, since Maps are not serializable - * @param map - * @returns - */ - static mapToRecord(map) { - if (map == null) { - return null; - } - if (!(map instanceof Map)) { - return map; - } - return Object.fromEntries(map); - } - /** - * Converts record to a Map with the same data. Inverse of mapToRecord - * Useful in fromJSON methods, since Maps are not serializable - * - * Warning: If the record has string keys that are numbers, they will be converted to numbers in the map - * @param record - * @returns - */ - static recordToMap(record) { - if (record == null) { - return null; - } - else if (record instanceof Map) { - return record; - } - const entries = Object.entries(record); - if (entries.length === 0) { - return new Map(); - } - if (isNaN(Number(entries[0][0]))) { - return new Map(entries); - } - else { - return new Map(entries.map((e) => [Number(e[0]), e[1]])); - } - } - /** Applies Object.assign, but converts the type nicely using Type-Fest Merge */ - static merge(destination, source) { - return Object.assign(destination, source); - } - /** - * encodeURIComponent escapes all characters except the following: - * alphabetic, decimal digits, - _ . ! ~ * ' ( ) - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent#encoding_for_rfc3986 - */ - static encodeRFC3986URIComponent(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); - } - /** - * Normalizes a path for defense against attacks like traversals - * @param denormalizedPath - * @returns - */ - static normalizePath(denormalizedPath) { - return path_browserify.normalize(decodeURIComponent(denormalizedPath)).replace(/^(\.\.(\/|\\|$))+/, ""); - } - static isMobile(win) { - let mobile = false; - ((a) => { - if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || - /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) { - mobile = true; - } - })(win.navigator.userAgent || win.navigator.vendor || win.opera); - return mobile || win.navigator.userAgent.match(/iPad/i) != null; - } - static delay(ms) { - return new Promise((resolve) => setTimeout(resolve, ms)); - } - /** - * Generate an observable from a function that returns a promise. - * Similar to the rxjs function {@link from} with one big exception: - * {@link from} will not re-execute the function when observers resubscribe. - * {@link Util.asyncToObservable} will execute `generator` for every - * subscribe, making it ideal if the value ever needs to be refreshed. - * */ - static asyncToObservable(generator) { - return of(undefined).pipe(switchMap(() => generator())); - } - /** - * Return the number of days remaining before a target date arrives. - * Returns 0 if the day has already passed. - */ - static daysRemaining(targetDate) { - const diffTime = targetDate.getTime() - Date.now(); - const msPerDay = 86400000; - return Math.max(0, Math.floor(diffTime / msPerDay)); - } - static isAppleMobile(win) { - return (win.navigator.userAgent.match(/iPhone/i) != null || - win.navigator.userAgent.match(/iPad/i) != null); - } - static getUrlObject(uriString) { - // All the methods below require a protocol to properly parse a URL string - // Assume http if no other protocol is present - const hasProtocol = uriString.indexOf("://") > -1; - if (!hasProtocol && uriString.indexOf(".") > -1) { - uriString = "http://" + uriString; - } - else if (!hasProtocol) { - return null; - } - try { - if (nodeURL != null) { - return new nodeURL.URL(uriString); - } - return new URL(uriString); - } - catch (e) { - // Ignore error - } - return null; - } -} -Utils.inited = false; -Utils.isNode = false; -Utils.isBrowser = true; -Utils.isMobileBrowser = false; -Utils.isAppleMobileBrowser = false; -Utils.global = null; -// Transpiled version of /\p{Emoji_Presentation}/gu using https://mothereff.in/regexpu. Used for compatability in older browsers. -Utils.regexpEmojiPresentation = /(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])/g; -Utils.validHosts = ["localhost"]; -Utils.originalMinimumPasswordLength = 8; -Utils.minimumPasswordLength = 12; -Utils.DomainMatchBlacklist = new Map([ - ["google.com", new Set(["script.google.com"])], -]); -Utils.init(); - -;// CONCATENATED MODULE: ../../libs/common/src/vault/services/fido2/fido2-utils.ts - -class Fido2Utils { - static bufferToString(bufferSource) { - const buffer = Fido2Utils.bufferSourceToUint8Array(bufferSource); - return Utils.fromBufferToUrlB64(buffer); - } - static stringToBuffer(str) { - return Utils.fromUrlB64ToArray(str); - } - static bufferSourceToUint8Array(bufferSource) { - if (Fido2Utils.isArrayBuffer(bufferSource)) { - return new Uint8Array(bufferSource); - } - else { - return new Uint8Array(bufferSource.buffer); - } - } - /** Utility function to identify type of bufferSource. Necessary because of differences between runtimes */ - static isArrayBuffer(bufferSource) { - return bufferSource instanceof ArrayBuffer || bufferSource.buffer === undefined; - } -} - -;// CONCATENATED MODULE: ./src/vault/fido2/webauthn-utils.ts - -class WebauthnUtils { - static mapCredentialCreationOptions(options, fallbackSupported) { - var _a, _b, _c, _d; - const keyOptions = options.publicKey; - if (keyOptions == undefined) { - throw new Error("Public-key options not found"); - } - return { - attestation: keyOptions.attestation, - authenticatorSelection: { - requireResidentKey: (_a = keyOptions.authenticatorSelection) === null || _a === void 0 ? void 0 : _a.requireResidentKey, - residentKey: (_b = keyOptions.authenticatorSelection) === null || _b === void 0 ? void 0 : _b.residentKey, - userVerification: (_c = keyOptions.authenticatorSelection) === null || _c === void 0 ? void 0 : _c.userVerification, - }, - challenge: Fido2Utils.bufferToString(keyOptions.challenge), - excludeCredentials: (_d = keyOptions.excludeCredentials) === null || _d === void 0 ? void 0 : _d.map((credential) => ({ - id: Fido2Utils.bufferToString(credential.id), - transports: credential.transports, - type: credential.type, - })), - extensions: undefined, - pubKeyCredParams: keyOptions.pubKeyCredParams.map((params) => ({ - alg: params.alg, - type: params.type, - })), - rp: { - id: keyOptions.rp.id, - name: keyOptions.rp.name, - }, - user: { - id: Fido2Utils.bufferToString(keyOptions.user.id), - displayName: keyOptions.user.displayName, - name: keyOptions.user.name, - }, - timeout: keyOptions.timeout, - fallbackSupported, - }; - } - static mapCredentialRegistrationResult(result) { - const credential = { - id: result.credentialId, - rawId: Fido2Utils.stringToBuffer(result.credentialId), - type: "public-key", - authenticatorAttachment: "cross-platform", - response: { - clientDataJSON: Fido2Utils.stringToBuffer(result.clientDataJSON), - attestationObject: Fido2Utils.stringToBuffer(result.attestationObject), - getAuthenticatorData() { - return Fido2Utils.stringToBuffer(result.authData); - }, - getPublicKey() { - return Fido2Utils.stringToBuffer(result.publicKey); - }, - getPublicKeyAlgorithm() { - return result.publicKeyAlgorithm; - }, - getTransports() { - return result.transports; - }, - }, - getClientExtensionResults: () => ({}), - }; - // Modify prototype chains to fix `instanceof` calls. - // This makes these objects indistinguishable from the native classes. - // Unfortunately PublicKeyCredential does not have a javascript constructor so `extends` does not work here. - Object.setPrototypeOf(credential.response, AuthenticatorAttestationResponse.prototype); - Object.setPrototypeOf(credential, PublicKeyCredential.prototype); - return credential; - } - static mapCredentialRequestOptions(options, fallbackSupported) { - var _a, _b; - const keyOptions = options.publicKey; - if (keyOptions == undefined) { - throw new Error("Public-key options not found"); - } - return { - allowedCredentialIds: (_b = (_a = keyOptions.allowCredentials) === null || _a === void 0 ? void 0 : _a.map((c) => Fido2Utils.bufferToString(c.id))) !== null && _b !== void 0 ? _b : [], - challenge: Fido2Utils.bufferToString(keyOptions.challenge), - rpId: keyOptions.rpId, - userVerification: keyOptions.userVerification, - timeout: keyOptions.timeout, - fallbackSupported, - }; - } - static mapCredentialAssertResult(result) { - const credential = { - id: result.credentialId, - rawId: Fido2Utils.stringToBuffer(result.credentialId), - type: "public-key", - response: { - authenticatorData: Fido2Utils.stringToBuffer(result.authenticatorData), - clientDataJSON: Fido2Utils.stringToBuffer(result.clientDataJSON), - signature: Fido2Utils.stringToBuffer(result.signature), - userHandle: Fido2Utils.stringToBuffer(result.userHandle), - }, - getClientExtensionResults: () => ({}), - authenticatorAttachment: "cross-platform", - }; - // Modify prototype chains to fix `instanceof` calls. - // This makes these objects indistinguishable from the native classes. - // Unfortunately PublicKeyCredential does not have a javascript constructor so `extends` does not work here. - Object.setPrototypeOf(credential.response, AuthenticatorAssertionResponse.prototype); - Object.setPrototypeOf(credential, PublicKeyCredential.prototype); - return credential; - } -} - -;// CONCATENATED MODULE: ./src/vault/fido2/content/messaging/message.ts -var MessageType; -(function (MessageType) { - MessageType[MessageType["CredentialCreationRequest"] = 0] = "CredentialCreationRequest"; - MessageType[MessageType["CredentialCreationResponse"] = 1] = "CredentialCreationResponse"; - MessageType[MessageType["CredentialGetRequest"] = 2] = "CredentialGetRequest"; - MessageType[MessageType["CredentialGetResponse"] = 3] = "CredentialGetResponse"; - MessageType[MessageType["AbortRequest"] = 4] = "AbortRequest"; - MessageType[MessageType["DisconnectRequest"] = 5] = "DisconnectRequest"; - MessageType[MessageType["ReconnectRequest"] = 6] = "ReconnectRequest"; - MessageType[MessageType["AbortResponse"] = 7] = "AbortResponse"; - MessageType[MessageType["ErrorResponse"] = 8] = "ErrorResponse"; -})(MessageType || (MessageType = {})); - -;// CONCATENATED MODULE: ./src/vault/fido2/content/messaging/messenger.ts -var messenger_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; - - -const SENDER = "bitwarden-webauthn"; -/** - * A class that handles communication between the page and content script. It converts - * the browser's broadcasting API into a request/response API with support for seamlessly - * handling aborts and exceptions across separate execution contexts. - */ -class Messenger { - /** - * Creates a messenger that uses the browser's `window.postMessage` API to initiate - * requests in the content script. Every request will then create it's own - * `MessageChannel` through which all subsequent communication will be sent through. - * - * @param window the window object to use for communication - * @returns a `Messenger` instance - */ - static forDOMCommunication(window) { - const windowOrigin = window.location.origin; - return new Messenger({ - postMessage: (message, port) => window.postMessage(message, windowOrigin, [port]), - addEventListener: (listener) => window.addEventListener("message", listener), - removeEventListener: (listener) => window.removeEventListener("message", listener), - }); - } - constructor(broadcastChannel) { - this.broadcastChannel = broadcastChannel; - this.messageEventListener = null; - this.onDestroy = new EventTarget(); - this.messengerId = this.generateUniqueId(); - this.messageEventListener = this.createMessageEventListener(); - this.broadcastChannel.addEventListener(this.messageEventListener); - } - /** - * Sends a request to the content script and returns the response. - * AbortController signals will be forwarded to the content script. - * - * @param request data to send to the content script - * @param abortController the abort controller that might be used to abort the request - * @returns the response from the content script - */ - request(request, abortController) { - return messenger_awaiter(this, void 0, void 0, function* () { - const requestChannel = new MessageChannel(); - const { port1: localPort, port2: remotePort } = requestChannel; - try { - const promise = new Promise((resolve) => { - localPort.onmessage = (event) => resolve(event.data); - }); - const abortListener = () => localPort.postMessage({ - metadata: { SENDER }, - type: MessageType.AbortRequest, - }); - abortController === null || abortController === void 0 ? void 0 : abortController.signal.addEventListener("abort", abortListener); - this.broadcastChannel.postMessage(Object.assign(Object.assign({}, request), { SENDER, senderId: this.messengerId }), remotePort); - const response = yield promise; - abortController === null || abortController === void 0 ? void 0 : abortController.signal.removeEventListener("abort", abortListener); - if (response.type === MessageType.ErrorResponse) { - const error = new Error(); - Object.assign(error, JSON.parse(response.error)); - throw error; - } - return response; - } - finally { - localPort.close(); - } - }); - } - createMessageEventListener() { - return (event) => messenger_awaiter(this, void 0, void 0, function* () { - var _a; - const windowOrigin = window.location.origin; - if (event.origin !== windowOrigin || !this.handler) { - return; - } - const message = event.data; - const port = (_a = event.ports) === null || _a === void 0 ? void 0 : _a[0]; - if ((message === null || message === void 0 ? void 0 : message.SENDER) !== SENDER || - message.senderId == this.messengerId || - message == null || - port == null) { - return; - } - const abortController = new AbortController(); - port.onmessage = (event) => { - if (event.data.type === MessageType.AbortRequest) { - abortController.abort(); - } - }; - let onDestroyListener; - const destroyPromise = new Promise((_, reject) => { - onDestroyListener = () => reject(new FallbackRequestedError()); - this.onDestroy.addEventListener("destroy", onDestroyListener); - }); - try { - const handlerResponse = yield Promise.race([ - this.handler(message, abortController), - destroyPromise, - ]); - port.postMessage(Object.assign(Object.assign({}, handlerResponse), { SENDER })); - } - catch (error) { - port.postMessage({ - SENDER, - type: MessageType.ErrorResponse, - error: JSON.stringify(error, Object.getOwnPropertyNames(error)), - }); - } - finally { - this.onDestroy.removeEventListener("destroy", onDestroyListener); - port.close(); - } - }); - } - /** - * Cleans up the messenger by removing the message event listener - */ - destroy() { - return messenger_awaiter(this, void 0, void 0, function* () { - this.onDestroy.dispatchEvent(new Event("destroy")); - if (this.messageEventListener) { - yield this.sendDisconnectCommand(); - this.broadcastChannel.removeEventListener(this.messageEventListener); - this.messageEventListener = null; - } - }); - } - sendReconnectCommand() { - return messenger_awaiter(this, void 0, void 0, function* () { - yield this.request({ type: MessageType.ReconnectRequest }); - }); - } - sendDisconnectCommand() { - return messenger_awaiter(this, void 0, void 0, function* () { - yield this.request({ type: MessageType.DisconnectRequest }); - }); - } - generateUniqueId() { - return Date.now().toString(36) + Math.random().toString(36).substring(2); - } -} - -;// CONCATENATED MODULE: ./src/vault/fido2/content/page-script.ts -var page_script_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; - - - - -const BrowserPublicKeyCredential = window.PublicKeyCredential; -const browserNativeWebauthnSupport = window.PublicKeyCredential != undefined; -let browserNativeWebauthnPlatformAuthenticatorSupport = false; -if (!browserNativeWebauthnSupport) { - // Polyfill webauthn support - try { - // credentials is read-only if supported, use type-casting to force assignment - navigator.credentials = { - create() { - return page_script_awaiter(this, void 0, void 0, function* () { - throw new Error("Webauthn not supported in this browser."); - }); - }, - get() { - return page_script_awaiter(this, void 0, void 0, function* () { - throw new Error("Webauthn not supported in this browser."); - }); - }, - }; - window.PublicKeyCredential = class PolyfillPublicKeyCredential { - static isUserVerifyingPlatformAuthenticatorAvailable() { - return Promise.resolve(true); - } - }; - window.AuthenticatorAttestationResponse = - class PolyfillAuthenticatorAttestationResponse { - }; - } - catch (_a) { - /* empty */ - } -} -if (browserNativeWebauthnSupport) { - BrowserPublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then((available) => { - browserNativeWebauthnPlatformAuthenticatorSupport = available; - if (!available) { - // Polyfill platform authenticator support - window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable = () => Promise.resolve(true); - } - }); -} -const browserCredentials = { - create: navigator.credentials.create.bind(navigator.credentials), - get: navigator.credentials.get.bind(navigator.credentials), -}; -const messenger = (window.messenger = Messenger.forDOMCommunication(window)); -navigator.credentials.create = createWebAuthnCredential; -navigator.credentials.get = getWebAuthnCredential; -/** - * Creates a new webauthn credential. - * - * @param options Options for creating new credentials. - * @param abortController Abort controller to abort the request if needed. - * @returns Promise that resolves to the new credential object. - */ -function createWebAuthnCredential(options, abortController) { - var _a, _b, _c, _d; - return page_script_awaiter(this, void 0, void 0, function* () { - if (!isWebauthnCall(options)) { - return yield browserCredentials.create(options); - } - const fallbackSupported = (((_b = (_a = options === null || options === void 0 ? void 0 : options.publicKey) === null || _a === void 0 ? void 0 : _a.authenticatorSelection) === null || _b === void 0 ? void 0 : _b.authenticatorAttachment) === "platform" && - browserNativeWebauthnPlatformAuthenticatorSupport) || - (((_d = (_c = options === null || options === void 0 ? void 0 : options.publicKey) === null || _c === void 0 ? void 0 : _c.authenticatorSelection) === null || _d === void 0 ? void 0 : _d.authenticatorAttachment) !== "platform" && - browserNativeWebauthnSupport); - try { - const response = yield messenger.request({ - type: MessageType.CredentialCreationRequest, - data: WebauthnUtils.mapCredentialCreationOptions(options, fallbackSupported), - }, abortController); - if (response.type !== MessageType.CredentialCreationResponse) { - throw new Error("Something went wrong."); - } - return WebauthnUtils.mapCredentialRegistrationResult(response.result); - } - catch (error) { - if (error && error.fallbackRequested && fallbackSupported) { - yield waitForFocus(); - return yield browserCredentials.create(options); - } - throw error; - } - }); -} -/** - * Retrieves a webauthn credential. - * - * @param options Options for creating new credentials. - * @param abortController Abort controller to abort the request if needed. - * @returns Promise that resolves to the new credential object. - */ -function getWebAuthnCredential(options, abortController) { - return page_script_awaiter(this, void 0, void 0, function* () { - if (!isWebauthnCall(options)) { - return yield browserCredentials.get(options); - } - const fallbackSupported = browserNativeWebauthnSupport; - try { - if ((options === null || options === void 0 ? void 0 : options.mediation) && options.mediation !== "optional") { - throw new FallbackRequestedError(); - } - const response = yield messenger.request({ - type: MessageType.CredentialGetRequest, - data: WebauthnUtils.mapCredentialRequestOptions(options, fallbackSupported), - }, abortController); - if (response.type !== MessageType.CredentialGetResponse) { - throw new Error("Something went wrong."); - } - return WebauthnUtils.mapCredentialAssertResult(response.result); - } - catch (error) { - if (error && error.fallbackRequested && fallbackSupported) { - yield waitForFocus(); - return yield browserCredentials.get(options); - } - throw error; - } - }); -} -function isWebauthnCall(options) { - return options && "publicKey" in options; -} -/** - * Wait for window to be focused. - * Safari doesn't allow scripts to trigger webauthn when window is not focused. - * - * @param fallbackWait How long to wait when the script is not able to add event listeners to `window.top`. Defaults to 500ms. - * @param timeout Maximum time to wait for focus in milliseconds. Defaults to 5 minutes. - * @returns Promise that resolves when window is focused, or rejects if timeout is reached. - */ -function waitForFocus(fallbackWait = 500, timeout = 5 * 60 * 1000) { - return page_script_awaiter(this, void 0, void 0, function* () { - try { - if (window.top.document.hasFocus()) { - return; - } - } - catch (_a) { - // Cannot access window.top due to cross-origin frame, fallback to waiting - return yield new Promise((resolve) => window.setTimeout(resolve, fallbackWait)); - } - let focusListener; - const focusPromise = new Promise((resolve) => { - focusListener = () => resolve(); - window.top.addEventListener("focus", focusListener); - }); - let timeoutId; - const timeoutPromise = new Promise((_, reject) => { - timeoutId = window.setTimeout(() => reject(new DOMException("The operation either timed out or was not allowed.", "AbortError")), timeout); - }); - try { - yield Promise.race([focusPromise, timeoutPromise]); - } - finally { - window.top.removeEventListener("focus", focusListener); - window.clearTimeout(timeoutId); - } - }); -} -/** - * Sets up a listener to handle cleanup or reconnection when the extension's - * context changes due to being reloaded or unloaded. - */ -messenger.handler = (message, abortController) => { - const type = message.type; - // Handle cleanup for disconnect request - if (type === MessageType.DisconnectRequest && browserNativeWebauthnSupport) { - navigator.credentials.create = browserCredentials.create; - navigator.credentials.get = browserCredentials.get; - } - // Handle reinitialization for reconnect request - if (type === MessageType.ReconnectRequest && browserNativeWebauthnSupport) { - navigator.credentials.create = createWebAuthnCredential; - navigator.credentials.get = getWebAuthnCredential; - } -}; - -})(); - -/******/ })() -; \ No newline at end of file diff --git a/data/polyfills-c67a75d1b6f99dc8.js b/data/polyfills-c67a75d1b6f99dc8.js deleted file mode 100644 index 3858b79..0000000 --- a/data/polyfills-c67a75d1b6f99dc8.js +++ /dev/null @@ -1 +0,0 @@ -!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,s=u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a,c={f:s},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,h=function(t){return l.call(t).slice(8,-1)},p="".split,d=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==h(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return d(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!y(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!y(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(t,e){return b.call(t,e)},S=n.document,E=y(S)&&y(S.createElement),x=function(t){return E?S.createElement(t):{}},A=!i&&!o(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,R={f:i?O:function(t,e){if(t=g(t),e=m(e,!0),A)try{return O(t,e)}catch(t){}if(w(t,e))return f(!c.f.call(t,e),t[e])}},j=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,I={f:i?P:function(t,e,r){if(j(t),e=m(e,!0),j(r),A)try{return P(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},T=i?function(t,e,r){return I.f(t,e,f(1,r))}:function(t,e,r){return t[e]=r,t},k=function(t,e){try{T(n,t,e)}catch(r){n[t]=e}return e},L="__core-js_shared__",U=n[L]||k(L,{}),M=Function.toString;"function"!=typeof U.inspectSource&&(U.inspectSource=function(t){return M.call(t)});var _,N,C,F=U.inspectSource,B=n.WeakMap,D="function"==typeof B&&/native code/.test(F(B)),q=!1,z=e(function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),W=0,K=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++W+K).toString(36)},$=z("keys"),V=function(t){return $[t]||($[t]=G(t))},H={};if(D){var X=new(0,n.WeakMap),Y=X.get,J=X.has,Q=X.set;_=function(t,e){return Q.call(X,t,e),e},N=function(t){return Y.call(X,t)||{}},C=function(t){return J.call(X,t)}}else{var Z=V("state");H[Z]=!0,_=function(t,e){return T(t,Z,e),e},N=function(t){return w(t,Z)?t[Z]:{}},C=function(t){return w(t,Z)}}var tt,et={set:_,get:N,has:C,enforce:function(t){return C(t)?N(t):_(t,{})},getterFor:function(t){return function(e){var r;if(!y(e)||(r=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},rt=e(function(t){var e=et.get,r=et.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||T(i,"name",e),r(i).source=o.join("string"==typeof e?e:"")),t!==n?(u?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=i:T(t,e,i)):s?t[e]=i:k(e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||F(this)})}),nt=n,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(nt[t])||ot(n[t]):nt[t]&&nt[t][e]||n[t]&&n[t][e]},at=Math.ceil,ut=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ut:at)(t)},ct=Math.min,ft=function(t){return t>0?ct(st(t),9007199254740991):0},lt=Math.max,ht=Math.min,pt=function(t,e){var r=st(t);return r<0?lt(r+e,0):ht(r,e)},dt=function(t){return function(e,r,n){var o,i=g(e),a=ft(i.length),u=pt(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},vt={includes:dt(!0),indexOf:dt(!1)},gt=vt.indexOf,yt=function(t,e){var r,n=g(t),o=0,i=[];for(r in n)!w(H,r)&&w(n,r)&&i.push(r);for(;e.length>o;)w(n,r=e[o++])&&(~gt(i,r)||i.push(r));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return yt(t,bt)}},St={f:Object.getOwnPropertySymbols},Et=it("Reflect","ownKeys")||function(t){var e=wt.f(j(t)),r=St.f;return r?e.concat(r(t)):e},xt=function(t,e){for(var r=Et(e),n=I.f,o=R.f,i=0;i2?arguments[2]:void 0,u=Mt((void 0===a?n:pt(a,n))-i,n-o),s=1;for(i0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},Nt=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Ct=Nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=z("wks"),Bt=n.Symbol,Dt=Ct?Bt:Bt&&Bt.withoutSetter||G,qt=function(t){return w(Ft,t)||(Ft[t]=Nt&&w(Bt,t)?Bt[t]:Dt("Symbol."+t)),Ft[t]},zt=Object.keys||function(t){return yt(t,mt)},Wt=i?Object.defineProperties:function(t,e){j(t);for(var r,n=zt(e),o=n.length,i=0;o>i;)I.f(t,r=n[i++],e[r]);return t},Kt=it("document","documentElement"),Gt=V("IE_PROTO"),$t=function(){},Vt=function(t){return"'; - document.head.appendChild(template); - - //var anchor = '#article-popular'; -var anchor = '#article-related'; -var related_template = 'queryly_related_template'; -queryly.related.batchSize = 5; -queryly.related.decay =5; -queryly.extendedDataFields = "creator,section"; - -queryly.callback.relatedClicked = function (link) { - var section = link.getAttribute("section"); - var label = link.getAttribute("data-label"); - window.dataLayer = window.dataLayer || []; - window.dataLayer.push({ - "event" : "eventTracker", - "eventAction" : section, - "eventLabel" : label, - "eventCategory" : "Navigation", - "contentPlacementCD" : 'related articles' - }); -} - -queryly.QuerylyRelatedCallback = function (related) { - - if (related == null || related.items == null) { - return; - } - - var templatename = 'queryly_related_template'; - var existingarticles = []; - - if (document.querySelector(anchor) != null) { - - var relateditemhtml = ''; - var counter = 0; - - for (var relateditemcount = 0; relateditemcount < related.items.length; relateditemcount++) { - try { - queryly.relateddata = related.items[relateditemcount]; - queryly.relateddata.title = queryly.relateddata.title.replace(/(([^\s]+\s\s*){18})(.*)/, "$1..."); - if (existingarticles.indexOf(queryly.relateddata.title) >= 0){continue;} - - existingarticles.push(queryly.relateddata.title); - var recommendsArticle = queryly.relateddata.link.match(/recommends/g); - if (recommendsArticle) { - queryly.relateddata.pubdate = ''; - } else { - queryly.relateddata.pubdate = (new Date(queryly.relateddata.pubdate)).toLocaleDateString('en-US',{ year: 'numeric', month: 'long', day: 'numeric' }); - } - - if (queryly.relateddata.image.indexOf('resize=1200,600') > 0){ - queryly.relateddata.image = queryly.relateddata.image.replace('resize=1200,600','resize=130,86'); - } - else if (queryly.relateddata.image.indexOf('?') < 0){ - queryly.relateddata.image = queryly.relateddata.image + '?resize=130,86'; - } - else{ - queryly.relateddata.image = queryly.relateddata.image + '&resize=130,86'; - } - - var creators = queryly.relateddata.creator.split(','); - var creatorhtml = ''; - for (var i=0;i < creators.length; i++){ - if (creators[i].trim() == "The Associated Press"){ - creators[i] ="Associated Press"; - } - if (creators[i] == '') {continue;} - - creatorhtml = creatorhtml + '' + creators[i] + ''; - if (i == 0){ - if (creators.length ==2){ - creatorhtml = creatorhtml + " and "; - } - else if (creators.length > 2){ - creatorhtml = creatorhtml + ", "; - } - } - else if (i == 1 && creators.length > 2){ - creatorhtml = creatorhtml + " and Others"; - break; - } - } - queryly.relateddata.creatorhtml = creatorhtml; - relateditemhtml = relateditemhtml + queryly.util.tmpl(related_template, queryly.relateddata); - counter = counter + 1; - } - catch (e) {} - } - - if (relateditemhtml != '') { - htmlcontent ="
Related Articles
    " + relateditemhtml + "
"; - document.querySelector(anchor).innerHTML = htmlcontent; - - queryly.related.hookRelatedEvent('#article-related a'); - } - } - else { - setTimeout(queryly.QuerylyRelatedCallback(related), 1000); - } -}; - - var relatedurl = '//related.queryly.com/json.aspx?queryly_key=' + queryly.QuerylyKey + '&callback=queryly.QuerylyRelatedCallback' + '&pageurl=' + encodeURIComponent('https://fortune.com/ranking/fortune500/2023/search/') + '&batchsize=' + queryly.related.batchSize + '&decay=' + queryly.related.decay + "&extendedDataFields=" + encodeURIComponent(queryly.extendedDataFields); - if (typeof queryly.related.title != 'undefined' && queryly.related.title != ''){ - var relatedurl = '//related.queryly.com/json.aspx?queryly_key=' + queryly.QuerylyKey + '&callback=queryly.QuerylyRelatedCallback' + '&batchsize=' + queryly.related.batchSize + '&decay=' + queryly.related.decay + "&extendedDataFields=" + encodeURIComponent(queryly.extendedDataFields) + '&title=' + encodeURIComponent(queryly.related.title); - if (typeof queryly.related.text != 'undefined' && queryly.related.text != ''){ - if (queryly.related.text.length < 512){ - relatedurl = relatedurl + '&text=' + encodeURIComponent(queryly.related.text); - } - else{ - relatedurl = relatedurl + '&text=' + encodeURIComponent(queryly.related.text.substring(0,512)); - } - } - } - - if (queryly.related.feednames != ''){ - relatedurl = relatedurl + '&feednames=' + encodeURIComponent(queryly.related.feednames) - } - - if (typeof queryly.related.facetedkey != 'undefined' && typeof queryly.related.facetedvalue != 'undefined'){ - relatedurl = relatedurl + '&facetedkey=' + encodeURIComponent(queryly.related.facetedkey) + "&facetedvalue=" + encodeURIComponent(queryly.related.facetedvalue); - } - - - - queryly.util.loadScript(relatedurl, function () { - }); - } - catch(e){} - - new Image().src = "//data.queryly.com/ping.aspx?type=pv&queryly_key=" + queryly.QuerylyKey + "&visitorid=" + queryly.visitorid + "&httpurl=" + encodeURIComponent(document.URL.replace(/&/g, "&")) + "&httpreferer=" + encodeURIComponent(document.referrer.replace(/&/g, "&")); - -})(); diff --git a/data/ta.c34341.js b/data/ta.c34341.js deleted file mode 100644 index b7945d9..0000000 --- a/data/ta.c34341.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see ta.c34341.js.LICENSE.txt */ -(()=>{var t={531:(t,e,r)=>{"use strict";var n,o,i,s,a,c=r(362),u=r(293),h=r(472),f=[],l=window.document;function p(){}function d(t){f.push("responded "+JSON.stringify(t))}function y(t,e,r){var l,y,m,b,v,g=window!==window.top,w=window.location,_=a||w.search;h.isBot()?f.push("is a bot page load"):h.is404NotFound()?f.push("is a custom 404 page"):n&&n===t?f.push("pushState did not change the location"):(n=t,_&&_.length>1&&"?"===_[0]&&(_=_.substring(1)),setTimeout((function(){i?(l=i(),m=l.canonical,y=l.meta||{"og:url":l["og:url"],"og:type":l["og:type"]}):(m=c.canonical(),y=c.meta()),b=c.openGraphURL(y),v=y["og:type"],g&&(_=void 0,e=s),(o&&o(m,b,e,v,y)||function(t,e,r,n,o){if(!t&&!e)return f.push("missing both canonical and og:url meta data"),!1;if(r){if(t&&0===r.indexOf(t))return f.push("reload with matching canonical"),!1;if(e&&0===r.indexOf(e))return f.push("reload with matching og:url"),!1}return c.isValidPageType(n)?!c.isPageNotFound(o)||(f.push('page title contains "page not found"'),!1):(f.push("is an unsupported page type: "+n),!1)}(m,b,e,v,y))&&(l={canonical:m,ogURL:b,image:y["og:image"],published:y["article:published_time"]||y["video:release_date"],referrer:e,search:_,title:y["og:title"]||y["twitter:title"],version:17},f.push("requesting"),u.sendPageView(l,d,p))}),r))}t.exports={configure:function(t){var e,r,c,p,d,m,b,v,g,w=!1,_="am.tru.popstate";if(c=function(t){return function(){var e;t.apply(window.history,arguments);try{e=new window.CustomEvent(_),window.dispatchEvent(e)}catch(t){(e=l.createEvent("CustomEvent")).initEvent(_,!0,!0),window.dispatchEvent(e)}}},h.isFacebookInstantArticle())return m=[(d=new URL(ia_document.shareURL)).protocol,"//",d.host,d.pathname].join(""),b=ia_document.title,v=ia_document.referrer,g=encodeURIComponent(d.href),void(m&&u.simplePageView(m,m,v,g,b));h.isBot()?f.push("is a bot page load"):h.is404NotFound()?f.push("is a custom 404 page"):this.isConfigured?f.push("already configured"):(this.isConfigured=!0,t&&(t.referrer&&(s=t.referrer),t.search&&(a=t.search),"function"==typeof t.canFire&&(o=t.canFire),"function"==typeof t.page&&(i=t.page),"boolean"==typeof t.disableHistoryChangeTrigger&&(w=t.disableHistoryChangeTrigger)),p=function(){y(l.URL,n,1e3)},y(l.URL,l.referrer,1),!w&&"history"in window&&"pushState"in window.history&&(window.addEventListener("popstate",p),window.addEventListener(_,p),e=window.history.pushState,window.history.pushState=c(e),r=window.history.replaceState,window.history.replaceState=c(r)))},diagnostics:function(){return f},isValidPageType:c.isValidPageType}},472:t=>{"use strict";var e=/(bot|facebook|yahoo)/i;t.exports={is404NotFound:function(){return null!==document.querySelector(".notfound")},isBot:function(){return e.test(window.navigator.userAgent)},isFacebookInstantArticle:function(){return"undefined"!=typeof ia_document&&"ia.facebook.com"===ia_document.referrer}}},880:(t,e,r)=>{"use strict";r(147),r(310);var n=r(531);window.TRUE_ANTHEM=window.TRUE_ANTHEM||{};var o=window.TRUE_ANTHEM;o.configure=n.configure,o.diagnostics=n.diagnostics,o.isValidPageType=n.isValidPageType},362:(t,e,r)=>{"use strict";var n=r(241),o=window.document,i=/^[0-9]+$/,s=/page not found/i,a=["og:type","og:url","og:title","og:image","article:published_time","video:release_date","twitter:title"],c=String.prototype.endsWith||function(t,e){var r=this.toString();(void 0===e||e>r.length)&&(e=r.length),e-=t.length;var n=r.indexOf(t,e);return-1!==n&&n===e};function u(t,e,r){return c.call(t,e,r)}var h,f=String.prototype.trim||(h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,function(){return this.replace(h,"")});function l(t){return f.call(t)}function p(t){var e=n.parse(t);return e.protocol&&e.hostname&&e.pathname}function d(t){var e=o.querySelector(t);if(e)return e.textContent}function y(t){return function(t,e){var r=o.querySelector(t);if(r)return r.getAttribute("href")}("link[rel="+t+"]")}function m(t){var e,r,o,s,a,c=y("prev"),h=y("next"),f=-1,l=u(t,"/");if(c&&p(c)||h&&p(h)){if(0===(o=(r=(e=n.parse(t)).pathname.split("/")).length))return t;if(!(s=r[o+f])&&o>1&&(s=r[o+(f-=1)]),i.test(s))return e.pathname=r.slice(0,f).concat("").join("/"),a=n.format(e),l?u(a,"/")||(a+="/"):u(a,"/")&&(a=a.slice(0,-1)),a}return t}t.exports={canonical:function(){var t=y("canonical");if(t&&p(t))return m(t)},isPageNotFound:function(t){var e=d("title")||"",r=t["og:title"]||"",n=t["twitter:title"]||"";return s.test(e)||s.test(r)||s.test(n)},isValidPageType:function(t){return(t=(t=t||"").toLowerCase())&&("article"===t||"gallery"===t||"story"===t||0===t.indexOf("video")||u(t,"product")||u(t,"album")||u(t,"playlist")||u(t,"song")||u(t,"radio_station"))},meta:function(){var t,e,r,n,i={},s=o.querySelectorAll("meta"),c=s?s.length:0;for(e=0;e{"use strict";var n=r(726),o=r(362).stringTrim;function i(t){if(t.ok)return t;var e=new Error(t.statusText);throw e.response=t,e}function s(t){var e,r="Content-Type",n=t.headers;if(n.has(r)&&n.get(r).indexOf("application/json")>-1)return t.json();throw(e=new Error("Content-Type must be application/json")).response=t,e}t.exports={sendPageView:function(t,e,r){var a,c;a={version:t.version},t.canonical&&(a.canonical=t.canonical),t.ogURL&&(a.ogURL=t.ogURL),t.published&&(a.published=t.published),t.referrer&&(a.referrer=o(t.referrer)),t.search&&(a.search=decodeURIComponent(t.search)),t.title&&(a.title=t.title),t.image&&(a.image=t.image),fetch(n.URL_ROOT+"/beacon",{cache:"no-store",method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},mode:"cors",body:(c=a,Object.keys(c).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(c[t])})).join("&"))}).then(i).then(s).then(e).catch(r)},simplePageView:function(t,e,r,o,i){var s=n.URL_ROOT+"/pageview?canonical="+e+"&ogURL="+t+"&referrer="+r+"&search="+o+"&title="+i;fetch(s,{cache:"no-store",method:"GET",mode:"cors"})}}},726:t=>{t.exports={URL_ROOT:"//b.trueanthem.com",PAGE_SOCIAL_SDK_ROOT:"//static.trueanthem.com/scripts"}},310:(t,e,r)=>{"use strict";t.exports=r(702).polyfill()},702:function(t,e,r){t.exports=function(){"use strict";function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,o=void 0,i=void 0,s=function(t,e){p[n]=t,p[n+1]=e,2===(n+=2)&&(i?i(d):g())};var a="undefined"!=typeof window?window:void 0,c=a||{},u=c.MutationObserver||c.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var t=setTimeout;return function(){return t(d,1)}}var p=new Array(1e3);function d(){for(var t=0;t{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var s=/\+/g;t=t.split(r);var a=1e3;o&&"number"==typeof o.maxKeys&&(a=o.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(h=d.substr(0,y),f=d.substr(y+1)):(h=d,f=""),l=decodeURIComponent(h),p=decodeURIComponent(f),e(i,l)?Array.isArray(i[l])?i[l].push(p):i[l]=[i[l],p]:i[l]=p}return i}},361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,o){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(o){var i=encodeURIComponent(e(o))+n;return Array.isArray(t[o])?t[o].map((function(t){return i+encodeURIComponent(e(t))})).join(r):i+encodeURIComponent(e(t[o]))})).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""}},673:(t,e,r)=>{"use strict";e.decode=e.parse=r(587),e.encode=e.stringify=r(361)},147:(t,e,r)=>{"use strict";r.r(e),r.d(e,{DOMException:()=>O,Headers:()=>d,Request:()=>_,Response:()=>T,fetch:()=>x});var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n&&n,o="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in n,c="ArrayBuffer"in n;if(c)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(t){return t&&u.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function y(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function m(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function b(t){var e=new FileReader,r=m(e);return e.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():c&&s&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(t)||h(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(b)}),this.text=function(){var t,e,r,n=y(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=m(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function A(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},g.call(_.prototype),g.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];T.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new T(null,{status:e,headers:{location:t}})};var O=n.DOMException;try{new O}catch(t){(O=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function x(t,e){return new Promise((function(r,o){var i=new _(t,e);if(i.signal&&i.signal.aborted)return o(new O("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout((function(){r(new T(o,n))}),0)},a.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){o(new O("Aborted","AbortError"))}),0)},a.open(i.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":c&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof d?i.headers.forEach((function(t,e){a.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){a.setRequestHeader(t,l(e.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",u)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}x.polyfill=!0,n.fetch||(n.fetch=x,n.Headers=d,n.Request=_,n.Response=T)},241:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Url:()=>p,format:()=>i,parse:()=>g,resolve:()=>f,resolveObject:()=>l});var n=r(673),o=/https?|ftp|gopher|file/;function i(t){"string"==typeof t&&(t=g(t));var e=function(t,e,r){var n=t.auth,o=t.hostname,i=t.protocol||"",s=t.pathname||"",a=t.hash||"",c=t.query||"",u=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",t.host?u=n+t.host:o&&(u=n+(~o.indexOf(":")?"["+o+"]":o),t.port&&(u+=":"+t.port)),c&&"object"==typeof c&&(c=e.encode(c));var h=t.search||c&&"?"+c||"";return i&&":"!==i.substr(-1)&&(i+=":"),t.slashes||(!i||r.test(i))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),{protocol:i,host:u,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:h=h.replace("#","%23"),hash:a}}(t,n,o);return""+e.protocol+e.host+e.pathname+e.search+e.hash}var s="http://",a="w.w",c=s+a,u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,h=/https?|ftp|gopher|file/;function f(t,e){var r="string"==typeof t?g(t):t;t="object"==typeof t?i(t):t;var n=g(e),o="";r.protocol&&!r.slashes&&(o=r.protocol,t=t.replace(r.protocol,""),o+="/"===e[0]||"/"===t[0]?"/":""),o&&n.protocol&&(o="",n.slashes||(o=n.protocol,e=e.replace(n.protocol,"")));var a=t.match(u);a&&!n.protocol&&(t=t.substr((o=a[1]+(a[2]||"")).length),/^\/\/[^/]/.test(e)&&(o=o.slice(0,-1)));var f=new URL(t,c+"/"),l=new URL(e,f).toString().replace(c,""),p=n.protocol||r.protocol;return p+=r.slashes||n.slashes?"//":"",!o&&p?l=l.replace(s,p):o&&(l=l.replace(s,"")),h.test(l)||~e.indexOf(".")||"/"===t.slice(-1)||"/"===e.slice(-1)||"/"!==l.slice(-1)||(l=l.slice(0,-1)),o&&(l=o+("/"===l[0]?l.substr(1):l)),l}function l(t,e){return g(f(t,e))}function p(){}p.prototype.parse=g,p.prototype.format=i,p.prototype.resolve=f,p.prototype.resolveObject=f;var d=/^https?|ftp|gopher|file/,y=/^(.*?)([#?].*)/,m=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,b=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function g(t,e,r){if(void 0===e&&(e=!1),void 0===r&&(r=!1),t&&"object"==typeof t&&t instanceof p)return t;var o=(t=t.trim()).match(y);t=o?o[1].replace(/\\/g,"/")+o[2]:t.replace(/\\/g,"/"),v.test(t)&&"/"!==t.slice(-1)&&(t+="/");var s=!/(^javascript)/.test(t)&&t.match(m),u=b.test(t),h="";s&&(d.test(s[1])||(h=s[1].toLowerCase(),t=""+s[2]+s[3]),s[2]||(u=!1,d.test(s[1])?(h=s[1],t=""+s[3]):t="//"+s[3]),3!==s[2].length&&1!==s[2].length||(h=s[1],t="/"+s[3]));var f,l=(o?o[1]:t).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),g=l&&l[1],w=new p,_="",A="";try{f=new URL(t)}catch(T){_=T,h||r||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(A="/",t=t.substr(1));try{f=new URL(t,c)}catch(T){return w.protocol=h,w.href=h,w}}w.slashes=u&&!A,w.host=f.host===a?"":f.host,w.hostname=f.hostname===a?"":f.hostname.replace(/(\[|\])/g,""),w.protocol=_?h||null:f.protocol,w.search=f.search.replace(/\\/g,"%5C"),w.hash=f.hash.replace(/\\/g,"%5C");var T,E=t.split("#");!w.search&&~E[0].indexOf("?")&&(w.search="?"),w.hash||""!==E[1]||(w.hash="#"),w.query=e?n.decode(f.search.substr(1)):w.search.substr(1),w.pathname=A+(s?(T=f.pathname).replace(/['^|`]/g,(function(t){return"%"+t.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(t,e){try{return decodeURIComponent(e).split("").map((function(t){var e=t.charCodeAt();return e>256||/^[a-z0-9]$/i.test(t)?t:"%"+e.toString(16).toUpperCase()})).join("")}catch(t){return e}})):f.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),_&&"/"!==t[0]&&(w.pathname=w.pathname.substr(1)),h&&!d.test(h)&&"/"!==t.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[f.username,f.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=f.port,g&&!w.host.endsWith(g)&&(w.host+=g,w.port=g.slice(1)),w.href=A?""+w.pathname+w.search+w.hash:i(w);var O=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach((function(t){~O.indexOf(t)||(w[t]=w[t]||null)})),w}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(147),r(880)})(); \ No newline at end of file diff --git a/data/ta.js b/data/ta.js deleted file mode 100644 index 47624ed..0000000 --- a/data/ta.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e={726:e=>{e.exports={URL_ROOT:"//b.trueanthem.com",PAGE_SOCIAL_SDK_ROOT:"//static.trueanthem.com/scripts"}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.h=()=>"c3434175d2100fcf147d",(()=>{"use strict";const e=n.h().substring(0,6);var t=n(726).PAGE_SOCIAL_SDK_ROOT;!function(n,r){var a=r.getElementsByTagName("script")[0],o=r.createElement("script");o.src=t+"/ta.".concat(e,".js"),a.parentNode.insertBefore(o,a);var c=function(){window.TRUE_ANTHEM.configure()};o.addEventListener?o.addEventListener("load",c,!1):o.onreadystatechange=function(){o.readyState in{loaded:1,complete:1}&&(o.onreadystatechange=null,c())}}(window,document)})()})(); \ No newline at end of file diff --git a/data/tinypass.min.js b/data/tinypass.min.js deleted file mode 100644 index 510d1a1..0000000 --- a/data/tinypass.min.js +++ /dev/null @@ -1,12686 +0,0 @@ -"use strict"; - -function _typeof(e) { - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { - return typeof e - } : function (e) { - return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e - }, _typeof(e) -} - -!function () { - var e = Object.defineProperty; - window.pnFullTPVersion = !0, "function" != typeof Object.assign && Object.defineProperty(Object, "assign", { - value: function (e, n) { - if (null == e) throw new TypeError("Cannot convert undefined or null to object"); - for (var t = Object(e), r = 1; r < arguments.length; r++) { - var o = arguments[r]; - if (null != o) for (var i in o) Object.prototype.hasOwnProperty.call(o, i) && (t[i] = o[i]) - } - return t - }, writable: !0, configurable: !0 - }); - var n = new WeakMap; - - function t(e, t) { - return n.get(e) && n.get(e).get(t) - } - - function r(e, n, r) { - if (void 0 === n) throw new TypeError; - var o = t(n, r); - return o && o.get(e) - } - - function o(e, r, o, i) { - if (i && !["string", "symbol"].includes(_typeof(i))) throw new TypeError; - (t(o, i) || function (e, t) { - var r = n.get(e) || new Map; - n.set(e, r); - var o = r.get(t) || new Map; - return r.set(t, o), o - }(o, i)).set(e, r) - } - - function i(e, n, t) { - return r(e, n, t) ? r(e, n, t) : Object.getPrototypeOf(n) ? i(e, Object.getPrototypeOf(n), t) : void 0 - } - - var a, s, c = { - decorate: function (e, n, t, r) { - if (!Array.isArray(e) || 0 === e.length) throw new TypeError; - return void 0 !== t ? function (e, n, t, r) { - return e.reverse().forEach((function (e) { - r = e(n, t, r) || r - })), r - }(e, n, t, r) : "function" == typeof n ? function (e, n) { - return e.reverse().forEach((function (e) { - var t = e(n); - t && (n = t) - })), n - }(e, n) : void 0 - }, defineMetadata: function (e, n, t, r) { - o(e, n, t, r) - }, getMetadata: function (e, n, t) { - return i(e, n, t) - }, getOwnMetadata: function (e, n, t) { - return r(e, n, t) - }, hasMetadata: function (e, n, t) { - return !!i(e, n, t) - }, hasOwnMetadata: function (e, n, t) { - return !!r(e, n, t) - }, metadata: function (e, n) { - return function (t, r) { - o(e, n, t, r) - } - } - }; - window.Reflect = window.Reflect || {}, Object.assign(window.Reflect, c), (s = a || (a = {}))[s.Transient = 0] = "Transient", s[s.Singleton = 1] = "Singleton", s[s.ResolutionScoped = 2] = "ResolutionScoped", s[s.ContainerScoped = 3] = "ContainerScoped"; - var u = a, l = function (e, n) { - return (l = Object.setPrototypeOf || {__proto__: []} instanceof Array && function (e, n) { - e.__proto__ = n - } || function (e, n) { - for (var t in n) Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]) - })(e, n) - }; - - function d(e, n) { - if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); - - function t() { - this.constructor = e - } - - l(e, n), e.prototype = null === n ? Object.create(n) : (t.prototype = n.prototype, new t) - } - - var p = function () { - return p = Object.assign || function (e) { - for (var n, t = 1, r = arguments.length; t < r; t++) for (var o in n = arguments[t]) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]); - return e - }, p.apply(this, arguments) - }; - - function f(e, n) { - var t = {}; - for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]); - if (null != e && "function" == typeof Object.getOwnPropertySymbols) { - var o = 0; - for (r = Object.getOwnPropertySymbols(e); o < r.length; o++) n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (t[r[o]] = e[r[o]]) - } - return t - } - - function m(e, n) { - return function (t, r) { - n(t, r, e) - } - } - - function v(e, n) { - if ("object" == ("undefined" == typeof Reflect ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(e, n) - } - - function g(e, n, t, r) { - return new (t || (t = Promise))((function (o, i) { - function a(e) { - try { - c(r.next(e)) - } catch (e) { - i(e) - } - } - - function s(e) { - try { - c(r.throw(e)) - } catch (e) { - i(e) - } - } - - function c(e) { - e.done ? o(e.value) : function (e) { - return e instanceof t ? e : new t((function (n) { - n(e) - })) - }(e.value).then(a, s) - } - - c((r = r.apply(e, n || [])).next()) - })) - } - - function h(e, n) { - var t, r, o, i, a = { - label: 0, sent: function () { - if (1 & o[0]) throw o[1]; - return o[1] - }, trys: [], ops: [] - }; - return i = { - next: s(0), - throw: s(1), - return: s(2) - }, "function" == typeof Symbol && (i[Symbol.iterator] = function () { - return this - }), i; - - function s(i) { - return function (s) { - return function (i) { - if (t) throw new TypeError("Generator is already executing."); - for (; a;) try { - if (t = 1, r && (o = 2 & i[0] ? r.return : i[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, i[1])).done) return o; - switch (r = 0, o && (i = [2 & i[0], o.value]), i[0]) { - case 0: - case 1: - o = i; - break; - case 4: - return a.label++, {value: i[1], done: !1}; - case 5: - a.label++, r = i[1], i = [0]; - continue; - case 7: - i = a.ops.pop(), a.trys.pop(); - continue; - default: - if (!(o = (o = a.trys).length > 0 && o[o.length - 1]) && (6 === i[0] || 2 === i[0])) { - a = 0; - continue - } - if (3 === i[0] && (!o || i[1] > o[0] && i[1] < o[3])) { - a.label = i[1]; - break - } - if (6 === i[0] && a.label < o[1]) { - a.label = o[1], o = i; - break - } - if (o && a.label < o[2]) { - a.label = o[2], a.ops.push(i); - break - } - o[2] && a.ops.pop(), a.trys.pop(); - continue - } - i = n.call(e, a) - } catch (e) { - i = [6, e], r = 0 - } finally { - t = o = 0 - } - if (5 & i[0]) throw i[1]; - return {value: i[0] ? i[1] : void 0, done: !0} - }([i, s]) - } - } - } - - function y(e) { - var n = "function" == typeof Symbol && Symbol.iterator, t = n && e[n], r = 0; - if (t) return t.call(e); - if (e && "number" == typeof e.length) return { - next: function () { - return e && r >= e.length && (e = void 0), {value: e && e[r++], done: !e} - } - }; - throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.") - } - - function w(e, n) { - var t = "function" == typeof Symbol && e[Symbol.iterator]; - if (!t) return e; - var r, o, i = t.call(e), a = []; - try { - for (; (void 0 === n || n-- > 0) && !(r = i.next()).done;) a.push(r.value) - } catch (e) { - o = {error: e} - } finally { - try { - r && !r.done && (t = i.return) && t.call(i) - } finally { - if (o) throw o.error - } - } - return a - } - - function _() { - for (var e = [], n = 0; n < arguments.length; n++) e = e.concat(w(arguments[n])); - return e - } - - function b(e, n, t) { - if (t || 2 === arguments.length) for (var r, o = 0, i = n.length; o < i; o++) (r || !(o in n)) && (r || (r = Array.prototype.slice.call(n, 0, o)), r[o] = n[o]); - return e.concat(r || Array.prototype.slice.call(n)) - } - - var k = "injectionTokens"; - - function C(e) { - return !!e.useClass - } - - function I(e) { - return !!e.useFactory - } - - var S = function () { - function e(e) { - this.wrap = e, this.reflectMethods = ["get", "getPrototypeOf", "setPrototypeOf", "getOwnPropertyDescriptor", "defineProperty", "has", "set", "deleteProperty", "apply", "construct", "ownKeys"] - } - - return e.prototype.createProxy = function (e) { - var n, t = this, r = !1; - return new Proxy({}, this.createHandler((function () { - return r || (n = e(t.wrap()), r = !0), n - }))) - }, e.prototype.createHandler = function (e) { - var n = {}; - return this.reflectMethods.forEach((function (t) { - n[t] = function () { - for (var n = [], r = 0; r < arguments.length; r++) n[r] = arguments[r]; - return n[0] = e(), Reflect[t].apply(void 0, _(n)) - } - })), n - }, e - }(); - - function E(e) { - return "string" == typeof e || "symbol" == _typeof(e) - } - - function T(e) { - return "object" == _typeof(e) && "token" in e && "transform" in e - } - - function P(e) { - return !!e.useToken - } - - function x(e) { - return null != e.useValue - } - - var A = function () { - function e() { - this._registryMap = new Map - } - - return e.prototype.entries = function () { - return this._registryMap.entries() - }, e.prototype.getAll = function (e) { - return this.ensure(e), this._registryMap.get(e) - }, e.prototype.get = function (e) { - this.ensure(e); - var n = this._registryMap.get(e); - return n[n.length - 1] || null - }, e.prototype.set = function (e, n) { - this.ensure(e), this._registryMap.get(e).push(n) - }, e.prototype.setAll = function (e, n) { - this._registryMap.set(e, n) - }, e.prototype.has = function (e) { - return this.ensure(e), this._registryMap.get(e).length > 0 - }, e.prototype.clear = function () { - this._registryMap.clear() - }, e.prototype.ensure = function (e) { - this._registryMap.has(e) || this._registryMap.set(e, []) - }, e - }(), O = A, M = function (e) { - function n() { - return null !== e && e.apply(this, arguments) || this - } - - return d(n, e), n - }(O), N = M, R = function () { - this.scopedResolutions = new Map - }; - - function L(e, n, t) { - var r = w(e.toString().match(/constructor\(([\w, ]+)\)/) || [], 2)[1], o = function (e, n) { - return null === e ? "at position #" + n : '"' + e.split(",")[n].trim() + '" at position #' + n - }(void 0 === r ? null : r, n); - return function (e, n, t) { - return void 0 === t && (t = " "), _([e], n.message.split("\n").map((function (e) { - return t + e - }))).join("\n") - }("Cannot inject the dependency " + o + ' of "' + e.name + '" constructor. Reason:', t) - } - - var U = function (e) { - function n() { - return null !== e && e.apply(this, arguments) || this - } - - return d(n, e), n - }(O), D = function (e) { - function n() { - return null !== e && e.apply(this, arguments) || this - } - - return d(n, e), n - }(O), j = function () { - this.preResolution = new U, this.postResolution = new D - }, V = new Map, F = function () { - function e(e) { - this.parent = e, this._registry = new N, this.interceptors = new j, this.disposed = !1, this.disposables = new Set - } - - return e.prototype.register = function (e, n, t) { - var r; - if (void 0 === t && (t = {lifecycle: u.Transient}), this.ensureNotDisposed(), r = function (e) { - return C(e) || x(e) || P(e) || I(e) - }(n) ? n : {useClass: n}, P(r)) for (var o = [e], i = r; null != i;) { - var a = i.useToken; - if (o.includes(a)) throw new Error("Token registration cycle detected! " + _(o, [a]).join(" -> ")); - o.push(a); - var s = this._registry.get(a); - i = s && P(s.provider) ? s.provider : null - } - if ((t.lifecycle === u.Singleton || t.lifecycle == u.ContainerScoped || t.lifecycle == u.ResolutionScoped) && (x(r) || I(r))) throw new Error('Cannot use lifecycle "' + u[t.lifecycle] + '" with ValueProviders or FactoryProviders'); - return this._registry.set(e, {provider: r, options: t}), this - }, e.prototype.registerType = function (e, n) { - return this.ensureNotDisposed(), E(n) ? this.register(e, {useToken: n}) : this.register(e, {useClass: n}) - }, e.prototype.registerInstance = function (e, n) { - return this.ensureNotDisposed(), this.register(e, {useValue: n}) - }, e.prototype.registerSingleton = function (e, n) { - if (this.ensureNotDisposed(), E(e)) { - if (E(n)) return this.register(e, {useToken: n}, {lifecycle: u.Singleton}); - if (n) return this.register(e, {useClass: n}, {lifecycle: u.Singleton}); - throw new Error('Cannot register a type name as a singleton without a "to" token') - } - var t = e; - return n && !E(n) && (t = n), this.register(e, {useClass: t}, {lifecycle: u.Singleton}) - }, e.prototype.resolve = function (e, n) { - void 0 === n && (n = new R), this.ensureNotDisposed(); - var t = this.getRegistration(e); - if (!t && E(e)) throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"'); - if (this.executePreResolutionInterceptor(e, "Single"), t) { - var r = this.resolveRegistration(t, n); - return this.executePostResolutionInterceptor(e, r, "Single"), r - } - if (function (e) { - return "function" == typeof e || e instanceof S - }(e)) { - r = this.construct(e, n); - return this.executePostResolutionInterceptor(e, r, "Single"), r - } - throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.") - }, e.prototype.executePreResolutionInterceptor = function (e, n) { - var t, r; - if (this.interceptors.preResolution.has(e)) { - var o = []; - try { - for (var i = y(this.interceptors.preResolution.getAll(e)), a = i.next(); !a.done; a = i.next()) { - var s = a.value; - "Once" != s.options.frequency && o.push(s), s.callback(e, n) - } - } catch (e) { - t = {error: e} - } finally { - try { - a && !a.done && (r = i.return) && r.call(i) - } finally { - if (t) throw t.error - } - } - this.interceptors.preResolution.setAll(e, o) - } - }, e.prototype.executePostResolutionInterceptor = function (e, n, t) { - var r, o; - if (this.interceptors.postResolution.has(e)) { - var i = []; - try { - for (var a = y(this.interceptors.postResolution.getAll(e)), s = a.next(); !s.done; s = a.next()) { - var c = s.value; - "Once" != c.options.frequency && i.push(c), c.callback(e, n, t) - } - } catch (e) { - r = {error: e} - } finally { - try { - s && !s.done && (o = a.return) && o.call(a) - } finally { - if (r) throw r.error - } - } - this.interceptors.postResolution.setAll(e, i) - } - }, e.prototype.resolveRegistration = function (e, n) { - if (this.ensureNotDisposed(), e.options.lifecycle === u.ResolutionScoped && n.scopedResolutions.has(e)) return n.scopedResolutions.get(e); - var t, r = e.options.lifecycle === u.Singleton, o = e.options.lifecycle === u.ContainerScoped, i = r || o; - return t = x(e.provider) ? e.provider.useValue : P(e.provider) ? i ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : C(e.provider) ? i ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : I(e.provider) ? e.provider.useFactory(this) : this.construct(e.provider, n), e.options.lifecycle === u.ResolutionScoped && n.scopedResolutions.set(e, t), t - }, e.prototype.resolveAll = function (e, n) { - var t = this; - void 0 === n && (n = new R), this.ensureNotDisposed(); - var r = this.getAllRegistrations(e); - if (!r && E(e)) throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"'); - if (this.executePreResolutionInterceptor(e, "All"), r) { - var o = r.map((function (e) { - return t.resolveRegistration(e, n) - })); - return this.executePostResolutionInterceptor(e, o, "All"), o - } - var i = [this.construct(e, n)]; - return this.executePostResolutionInterceptor(e, i, "All"), i - }, e.prototype.isRegistered = function (e, n) { - return void 0 === n && (n = !1), this.ensureNotDisposed(), this._registry.has(e) || n && (this.parent || !1) && this.parent.isRegistered(e, !0) - }, e.prototype.reset = function () { - this.ensureNotDisposed(), this._registry.clear(), this.interceptors.preResolution.clear(), this.interceptors.postResolution.clear() - }, e.prototype.clearInstances = function () { - var e, n; - this.ensureNotDisposed(); - try { - for (var t = y(this._registry.entries()), r = t.next(); !r.done; r = t.next()) { - var o = w(r.value, 2), i = o[0], a = o[1]; - this._registry.setAll(i, a.filter((function (e) { - return !x(e.provider) - })).map((function (e) { - return e.instance = void 0, e - }))) - } - } catch (n) { - e = {error: n} - } finally { - try { - r && !r.done && (n = t.return) && n.call(t) - } finally { - if (e) throw e.error - } - } - }, e.prototype.createChildContainer = function () { - var n, t; - this.ensureNotDisposed(); - var r = new e(this); - try { - for (var o = y(this._registry.entries()), i = o.next(); !i.done; i = o.next()) { - var a = w(i.value, 2), s = a[0], c = a[1]; - c.some((function (e) { - return e.options.lifecycle === u.ContainerScoped - })) && r._registry.setAll(s, c.map((function (e) { - return e.options.lifecycle === u.ContainerScoped ? { - provider: e.provider, - options: e.options - } : e - }))) - } - } catch (e) { - n = {error: e} - } finally { - try { - i && !i.done && (t = o.return) && t.call(o) - } finally { - if (n) throw n.error - } - } - return r - }, e.prototype.beforeResolution = function (e, n, t) { - void 0 === t && (t = {frequency: "Always"}), this.interceptors.preResolution.set(e, { - callback: n, - options: t - }) - }, e.prototype.afterResolution = function (e, n, t) { - void 0 === t && (t = {frequency: "Always"}), this.interceptors.postResolution.set(e, { - callback: n, - options: t - }) - }, e.prototype.dispose = function () { - return g(this, void 0, void 0, (function () { - var e; - return h(this, (function (n) { - switch (n.label) { - case 0: - return this.disposed = !0, e = [], this.disposables.forEach((function (n) { - var t = n.dispose(); - t && e.push(t) - })), [4, Promise.all(e)]; - case 1: - return n.sent(), [2] - } - })) - })) - }, e.prototype.getRegistration = function (e) { - return this.isRegistered(e) ? this._registry.get(e) : this.parent ? this.parent.getRegistration(e) : null - }, e.prototype.getAllRegistrations = function (e) { - return this.isRegistered(e) ? this._registry.getAll(e) : this.parent ? this.parent.getAllRegistrations(e) : null - }, e.prototype.construct = function (e, n) { - var t = this; - if (e instanceof S) return e.createProxy((function (e) { - return t.resolve(e, n) - })); - var r = function () { - var r = V.get(e); - if (!r || 0 === r.length) { - if (0 === e.length) return new e; - throw new Error('TypeInfo not known for "' + e.name + '"') - } - var o = r.map(t.resolveParams(n, e)); - return new (e.bind.apply(e, _([void 0], o))) - }(); - return function (e) { - return "function" == typeof e.dispose && !(e.dispose.length > 0) - }(r) && this.disposables.add(r), r - }, e.prototype.resolveParams = function (e, n) { - var t = this; - return function (r, o) { - var i, a, s; - try { - return function (e) { - return "object" == _typeof(e) && "token" in e && "multiple" in e - }(r) ? T(r) ? r.multiple ? (i = t.resolve(r.transform)).transform.apply(i, _([t.resolveAll(r.token)], r.transformArgs)) : (a = t.resolve(r.transform)).transform.apply(a, _([t.resolve(r.token, e)], r.transformArgs)) : r.multiple ? t.resolveAll(r.token) : t.resolve(r.token, e) : T(r) ? (s = t.resolve(r.transform, e)).transform.apply(s, _([t.resolve(r.token, e)], r.transformArgs)) : t.resolve(r, e) - } catch (e) { - throw new Error(L(n, o, e)) - } - } - }, e.prototype.ensureNotDisposed = function () { - if (this.disposed) throw new Error("This container has been disposed, you cannot interact with a disposed container") - }, e - }(), B = new F; - var q = function (e) { - return function (e, n) { - return function (t, r, o) { - var i = Reflect.getOwnMetadata(k, t) || {}; - i[o] = n ? { - token: e, - transform: n.transformToken, - transformArgs: n.args || [] - } : e, Reflect.defineMetadata(k, i, t) - } - }(e) - }; - var z = function () { - return function (e) { - V.set(e, function (e) { - var n = Reflect.getMetadata("design:paramtypes", e) || [], t = Reflect.getOwnMetadata(k, e) || {}; - return Object.keys(t).forEach((function (e) { - n[+e] = t[e] - })), n - }(e)) - } - }; - var H = function (e) { - return void 0 === e && (e = []), function (n) { - return e.forEach((function (e) { - var n = e.token, t = e.options, r = f(e, ["token", "options"]); - return B.register(n, r, t) - })), n - } - }; - var W, G, J, Q, X = function () { - return function (e) { - z()(e), B.registerSingleton(e) - } - }; - if ("undefined" == typeof Reflect || !Reflect.getMetadata) throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point."); - if (window.pnInitPerformance = performance.now(), window.pnHasPolyfilled || (window.pnHasPolyfilled = !1), window.pnFullTPVersion || (window.pnFullTPVersion = !1), void 0 !== window.pn && void 0 !== window.pn.container) throw new Error("Piano SDK is loaded twice on same page. Try to fix that to prevent the message."); - !window.pnFullTPVersion && "undefined" != typeof Proxy && (W = function () { - return G - }, G = new Proxy({}, { - get: function (e, n, t) { - return "isv" === n || W - }, apply: function (e, n, t) { - return G - } - }), B.resolve = new Proxy(B.resolve, { - apply: function (e, n, t) { - if (B.isRegistered(t[0])) return Reflect.apply(e, n, t); - B.register(t[0], {useValue: G}); - var r = B.resolve(t[0]); - return Q[t[0]] = r, r - } - })), J = window.pn || {}, (Q = window.pn = {}).container = B, Q.singleton = X, Q.injectable = z, Q.inject = q, Q.registry = H, Q.instanceCachingFactory = function (e) { - var n; - return function (t) { - return null == n && (n = e(t)), n - } - }, Q.predefinedOptions = J, B.register("predefinedOptions", {useValue: J}); - var Y, $, K = !1; - try { - if (!window.pnHasPolyfilled) { - if ("undefined" == typeof Proxy) throw new Error("The browser cannot Proxy"); - if (new Promise((function (e) { - })), Object.assign({}, {}), [""].includes(""), !Element.prototype.closest) throw new Error("There is no closest method of a DOM element") - } - } catch (s) { - K = !0 - } - if (K) throw Y = function () { - var e, n = document.querySelectorAll("script"); - if (n.length) for (var t = 0, r = n; t < r.length; t++) { - var o = r[t], - i = null === (e = null == o ? void 0 : o.src) || void 0 === e ? void 0 : e.match(/^.*?(tinypass.com|piano.io)/i); - if (i) return i[0] - } - return "https://sandbox.tinypass.com" - }(), delete window.pn, ($ = document.createElement("script")).type = "text/javascript", $.async = !0, $.src = "".concat(Y, "/api/piano.es5.js"), document.getElementsByTagName("head")[0].appendChild($), new Error("Load full version of piano SDK"); - var Z, ee = (Z = function (e) { - return new Promise((function (n, t) { - var r = document.createElement("style"); - r.type = "text/css", r.innerHTML = e, r.onload = n, r.onerror = t, document.getElementsByTagName("head")[0].appendChild(r) - })) - }, { - name: "css", loadOfferCss: function () { - Z(".tp-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#121214;z-index:300000;opacity:0;transition:opacity .25s linear}.tp-backdrop.tp-active{opacity:.9}.tp-modal .tp-close.tp-square{background:#ccc;border-radius:0;border:0;top:0;right:-40px}.tp-modal .tp-close{display:none;position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:#fff url(\"data:image/svg+xml,%3Csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.51 7.208l-.706-.708-2.798 2.798L7.207 6.5l-.707.707 2.798 2.799L6.503 12.8l.707.707 2.796-2.795 2.792 2.792.707-.707-2.792-2.792 2.798-2.798z' fill='%23000' fill-opacity='.4'/%3E%3C/svg%3E\") center center no-repeat;border:none;box-shadow:0 0 10px rgba(28,37,68,.15);outline:none;z-index:300100;border-radius:40px;opacity:0;cursor:pointer;transform:scale(.25);-webkit-appearance:none;-moz-appearance:none;appearance:none}.tp-modal .tp-close:hover,.tp-modal .tp-close:focus{box-shadow:0 0 10px 2px rgba(28,37,68,.15)}.tp-modal .tp-close:focus{border:1px solid}.tp-modal .tp-close.tp-active{display:block;opacity:1;transform:scale(1)}.tp-modal .tp-iframe-wrapper[dir=rtl] .tp-close{right:initial;left:-20px}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close{top:0;right:0;width:64px;height:64px;box-shadow:none;outline:none;border-radius:0;border-left:1px solid rgba(15,15,21,.2);background:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg %3E%3Cpath d='M3 3L13 13M13 3L3 13' stroke='%230F0F15' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E%0A\") center center no-repeat;opacity:.3}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close.tp-active{opacity:.3}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close:hover,.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2 .tp-close:focus{box-shadow:none;border:none;border-left:1px solid rgba(15,15,21,.06);opacity:1}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close{right:auto;left:0;border-left:none;border-right:1px solid rgba(15,15,21,.2)}.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close:hover,.tp-modal .tp-iframe-wrapper.piano-id-modal-ver-2[dir=rtl] .tp-close:focus{border-left:none;border-right:1px solid rgba(15,15,21,.06)}.tp-modal{z-index:300050}@media screen and (max-width: 650px){.tp-modal .tp-close{right:0}.tp-modal .tp-iframe-wrapper[dir=rtl] .tp-close{right:initial;left:0}}.tp-modal .tp-iframe-wrapper.tp-curtain{width:600px;height:480px}.tp-modal-open{overflow:hidden!important;height:100vh;-webkit-overflow-scrolling:touch}.tp-modal-open.tp-modal-resizing{-webkit-overflow-scrolling:auto}.tp-modal-close{overflow:auto}.tp-iframe-wrapper{position:relative;margin:50px auto;box-shadow:0 0 10px rgba(0,0,0,.21)}.tp-iframe-wrapper.no-shadow{box-shadow:unset}.tp-modal{overflow-x:hidden;overflow-y:scroll!important;display:none;position:fixed;top:0;bottom:0;left:0;right:0;transform:translateZ(0)}.tp-modal .tp-message{font-family:Graphik Web Regular,Helvetica,Arial,sans-serif;padding:10px}.tp-modal .tp-btn-container{padding-left:10px;padding-bottom:10px}.tp-cxense-placeholder-modal{width:100%;background-color:#fff;max-width:912px;display:block;overflow:hidden;height:auto;opacity:1}.tp-widget-placeholder>div:after{display:block;content:\"\";clear:both}.tp-btn{text-decoration:none;cursor:pointer;padding:0 18px;line-height:40px;border-collapse:separate;border-radius:4px;text-align:center;vertical-align:middle;display:inline-block;color:#fff;border:none;box-shadow:inset 0 -1px rgba(216,218,221,0);background:#3878D8;background-position:bottom;text-shadow:none;font-family:Graphik Web Regular,Helvetica,Arial,sans-serif;white-space:nowrap;outline:0}.tp-please-wait.tp-active{display:block;opacity:.9;transition:opacity .25s linear}.tp-please-wait{position:absolute;top:0;left:0;background-color:#999;opacity:0;width:100%;height:100%;display:none;text-align:center;color:#fff;font-weight:lighter;font-family:Open Sans,sans-serif;font-size:15px}.tp-please-wait.tp-overlap{position:fixed;z-index:300150}.tp-please-wait.tp-local-overlap{position:absolute}.tp-please-wait>.tp-icon{width:80px;height:80px;margin:100px auto 20px}.pn-spinner{color:gray;display:inline-block;position:relative;width:80px;height:80px}.pn-spinner div{transform-origin:40px 40px;animation:pn-spinner 1.2s linear infinite}.pn-spinner div:after{content:\" \";display:block;position:absolute;top:3px;left:37px;width:6px;height:18px;border-radius:20%;background:#fff}.pn-spinner div:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.pn-spinner div:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.pn-spinner div:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.pn-spinner div:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.pn-spinner div:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.pn-spinner div:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.pn-spinner div:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.pn-spinner div:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.pn-spinner div:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.pn-spinner div:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.pn-spinner div:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.pn-spinner div:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes pn-spinner{0%{opacity:1}to{opacity:0}}.tp-please-wait>.tp-icon.tp-centered{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tp-iframe-wrapper.no-width .tp-close,.tp-iframe-wrapper.no-height .tp-close,.tp-modal.no-width .tp-close,.tp-modal.no-height .tp-close{display:none}.tp-banner{position:fixed;bottom:0;left:0;width:100%}.tp-banner>.tp-container-inner,.tp-banner>.tp-container-inner>iframe{width:inherit!important}.tp-modal-overscroll-prevented{overscroll-behavior:contain;width:100%;overflow-x:unset;overflow-y:scroll}.tp-scroll-prevented{height:100vh;overflow:hidden;touch-action:none}.tp-body-scroll-prevented{touch-action:none}\n") - } - }); - pn.container.register("css", {useValue: ee}), pn.css = pn.container.resolve("css"); - var ne, te, re = function (e) { - return {}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase() - }, oe = Math.round(1e4 * Math.random()), ie = window.document, ae = /^(?:text|application)\/javascript/i, - se = /^(?:text|application)\/xml/i, ce = "application/json", ue = "text/html", le = /^\s*$/, - de = function e(n) { - var t = ke({}, n || {}); - for (ne in e.settings) void 0 === t[ne] && (t[ne] = e.settings[ne]); - fe(t), t.crossDomain || (t.crossDomain = /^([\w-]+:)?\/\/([^\/]+)/.test(t.url) && RegExp.$2 != window.location.host); - var r = t.dataType, o = /=\?/.test(t.url); - if ("jsonp" == r || o) return o || (t.url = ye(t.url, "callback=?")), e.JSONP(t); - t.url || (t.url = window.location.toString()), we(t); - var i, a = t.accepts[r], s = {}, c = /^([\w-]+:)\/\//.test(t.url) ? RegExp.$1 : window.location.protocol, - u = e.settings.xhr(); - t.crossDomain || (s["X-Requested-With"] = "XMLHttpRequest"), a && (s.Accept = a, a.indexOf(",") > -1 && (a = a.split(",", 2)[0]), u.overrideMimeType && u.overrideMimeType(a)), (t.contentType || t.data && "GET" != t.type.toUpperCase()) && (s["Content-Type"] = t.contentType || "application/x-www-form-urlencoded"), t.headers = ke(s, t.headers || {}); - var l = t.xhrFields && t.xhrFields.withCredentials; - l && (u.withCredentials = l), u.onreadystatechange = function () { - if (4 == u.readyState) { - clearTimeout(i); - var e, n = !1; - if (u.status >= 200 && u.status < 300 || 304 == u.status || 0 == u.status && "file:" == c) { - r = r || function (e) { - return e && (e == ue ? "html" : e == ce ? "json" : ae.test(e) ? "script" : se.test(e) && "xml") || "text" - }(u.getResponseHeader("content-type")), e = u.responseText; - try { - "script" == r ? (0, eval)(e) : "xml" == r ? e = u.responseXML : "json" == r && (e = le.test(e) ? null : JSON.parse(e)) - } catch (e) { - n = e - } - n ? ve(n, "parsererror", u, t) : me(e, u, t) - } else ve(null, "error", u, t) - } - }; - var d = !("async" in t) || t.async; - for (te in u.open(t.type, t.url, d), t.headers) u.setRequestHeader(te, t.headers[te]); - return !1 === function (e, n) { - var t = n.context; - if (!1 === n.beforeSend.call(t, e, n) || !1 === pe(n, t, "ajaxBeforeSend", [e, n])) return !1; - pe(n, t, "ajaxSend", [e, n]) - }(u, t) ? (u.abort(), !1) : (t.timeout > 0 && (i = setTimeout((function () { - u.onreadystatechange = he, u.abort(), ve(null, "timeout", u, t) - }), t.timeout)), u.send(t.data ? t.data : null), u) - }; - - function pe(e, n, t, r) { - if (e.global) return !0 - } - - function fe(e) { - e.global && 0 == de.active++ && pe(e) - } - - function me(e, n, t) { - var r = t.context, o = "success"; - t.success.call(r, e, o, n), pe(t), ge(o, n, t) - } - - function ve(e, n, t, r) { - var o = r.context; - r.error.call(o, t, n, e), pe(r), ge(n, t, r) - } - - function ge(e, n, t) { - var r = t.context; - t.complete.call(r, n, e), pe(t), function (e) { - e.global && !--de.active && pe(e) - }(t) - } - - function he() { - } - - function ye(e, n) { - return (e + "&" + n).replace(/[&?]{1,2}/, "?") - } - - function we(e) { - "object" === re(e.data) && (e.data = function (e, n) { - var t = []; - return t.add = function (e, n) { - void 0 !== n && (n = null == n ? "" : n, this.push(_e(e) + "=" + _e(n))) - }, be(t, e, n), t.join("&").replace("%20", "+") - }(e.data)), e.data && (!e.type || "GET" == e.type.toUpperCase()) && (e.url = ye(e.url, e.data)) - } - - de.active = 0, de.JSONP = function (e) { - if (!("type" in e)) return de(e); - var n, t = "jsonp" + (e.cache ? "Callback" : ++oe), r = ie.createElement("script"), o = { - abort: function () { - t in window && (window[t] = he), ge("abort", o, e) - } - }, i = ie.getElementsByTagName("head")[0] || ie.documentElement; - return e.error && (r.onerror = function () { - o.abort(), e.error() - }), window[t] = function (r) { - clearTimeout(n), delete window[t], me(r, o, e) - }, we(e), r.src = e.url.replace(/=\?/, "=" + t), i.insertBefore(r, i.firstChild), e.timeout > 0 && (n = setTimeout((function () { - o.abort(), ge("timeout", o, e) - }), e.timeout)), o - }, de.settings = { - type: "GET", - beforeSend: he, - success: he, - error: he, - complete: he, - context: null, - global: !0, - xhr: function () { - return new window.XMLHttpRequest - }, - accepts: { - script: "text/javascript, application/javascript", - json: ce, - xml: "application/xml, text/xml", - html: ue, - text: "text/plain" - }, - crossDomain: !1, - timeout: 0 - }, de.get = function (e, n) { - return de({url: e, success: n}) - }, de.post = function (e, n, t, r) { - return "function" === re(n) && (r = r || t, t = n, n = null), de({ - type: "POST", - url: e, - data: n, - success: t, - dataType: r - }) - }, de.getJSON = function (e, n) { - return de({url: e, success: n, dataType: "json"}) - }; - var _e = encodeURIComponent; - - function be(e, n, t, r) { - var o = "array" === re(n); - for (var i in n) { - var a = n[i]; - r && (i = t ? r : r + "[" + (o ? "" : i) + "]"), !r && o ? e.add(a.name, a.value) : (t ? "array" === re(a) : "object" === re(a)) ? be(e, a, t, i) : e.add(i, a) - } - } - - function ke(e) { - return Array.prototype.slice.call(arguments, 1).forEach((function (n) { - for (ne in n) void 0 !== n[ne] && (e[ne] = n[ne]) - })), e - } - - var Ce = de, Ie = { - send: function (e, n, t, r, o, i) { - void 0 === i && (i = !0), void 0 === i && (i = !0); - var a = new XMLHttpRequest; - a.open(t, e, i), a.onreadystatechange = function () { - 4 === a.readyState && n && n(a.responseText) - }, a.setRequestHeader("Content-type", o), a.send(r) - }, request: function (e) { - return e.dataType = e.dataType || "json", Ce(e) - } - }; - pn.container.register("ajax", {useValue: Ie}), pn.ajax = pn.container.resolve("ajax"); - var Se, Ee, Te, Pe, xe; - pn.container.register("jqUtils", { - useValue: (Se = function (e) { - return "function" == typeof e - }, Ee = function (e, n) { - return e ? Te(e, n)[0] : null - }, Te = function (e, n) { - if (!e) return []; - var t = n || document, r = e.split(","), o = []; - return r.forEach((function (e) { - var n = e.trim(); - try { - o = o.concat(Array.prototype.slice.call(t.querySelectorAll(n))) - } catch (e) { - var r = n.indexOf(" ") > -1; - if ("." !== n[0] || r) if ("#" !== n[0] || r) o = o.concat(Array.prototype.slice.call(t.querySelectorAll(n))); else { - var i = document.getElementById(n.substring(1)); - o = o.concat(i ? [i] : []) - } else o = o.concat(Array.prototype.slice.call(t.getElementsByClassName(n.substring(1)))) - } - })), o - }, Pe = function (e, n, t) { - t.setAttribute(e, n) - }, xe = [], { - scrollTop: function () { - return window.pageYOffset || document.documentElement.scrollTop - }, winSize: function () { - var e = window, n = document, t = n.documentElement, r = n.getElementsByTagName("body")[0], - o = e.innerWidth || t.clientWidth || r.clientWidth; - return {height: e.innerHeight || t.clientHeight || r.clientHeight, width: o} - }, isPlainObject: function (e) { - return "[object Object]" === Object.prototype.toString.call(e) - }, isEmptyObject: function (e) { - return 0 === Object.keys(e).length && e.constructor === Object - }, isFunction: Se, inArray: function (e, n) { - return n.indexOf(e) - }, type: function (e) { - return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/, "$1").toLowerCase() - }, remove: function (e) { - var n; - null === (n = e.parentNode) || void 0 === n || n.removeChild(e) - }, empty: function (e) { - for (; e.firstChild;) e.removeChild(e.firstChild) - }, queryEl: Ee, qa: Te, filter: function (e, n) { - return Array.prototype.filter.call(document.querySelectorAll(e), n) - }, addClass: function (e, n) { - n.classList.add(e) - }, toggleClass: function (e, n) { - n.classList.toggle(e) - }, removeClass: function (e, n) { - n.classList.remove(e) - }, getWidth: function (e) { - var n = getComputedStyle(e, null), t = n.paddingLeft, r = n.paddingRight, - o = e.getBoundingClientRect().width; - return o -= parseFloat(t) + parseFloat(r) - }, show: function (e) { - e.style.display = "block" - }, hide: function (e) { - e.style.display = "none" - }, getHeight: function (e) { - var n = getComputedStyle(e, null), t = n.paddingTop, r = n.paddingBottom, - o = e.getBoundingClientRect().height; - return o -= parseFloat(t) + parseFloat(r) - }, visible: function (e) { - return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length) - }, append: function (e, n) { - e.appendChild(n) - }, setAttr: Pe, setAttrs: function (e, n) { - Object.keys(e).forEach((function (t) { - Pe(t, e[t], n) - })) - }, getAttr: function (e, n) { - return "string" == typeof e && (e = Ee(e)), e ? e.getAttribute(n) : null - }, ready: function (e) { - "loading" != document.readyState ? e() : document.addEventListener("DOMContentLoaded", (function () { - return e() - })) - }, delegate: function (e, n, t, r) { - var o = function (t) { - for (var o = t.target; o && null != o; o = o.parentNode) { - var i = xe.findIndex((function (t) { - return t.parentEl === e && t.elementSelector === n - })); - if (o.matches && o.matches(n) && i >= 0) { - r.call(o, t); - break - } - } - }; - xe.push({parentEl: e, elementSelector: n, handler: o, eventName: t}), e.addEventListener(t, o, !1) - }, undelegate: function (e, n) { - xe = xe.filter((function (t) { - var r = t.parentEl !== e && t.elementSelector !== n; - return r || t.parentEl.removeEventListener(t.eventName, t.handler), r - })) - }, on: function (e, n, t) { - e.addEventListener(n, (function (e) { - t(e) - }), !1) - }, off: function (e, n, t) { - e.removeEventListener(n, t) - }, deepExtend: function e() { - for (var n = [], t = 0; t < arguments.length; t++) n[t] = arguments[t]; - for (var r = {}, o = 0, i = function (n) { - for (var t in n) n.hasOwnProperty(t) && ("[object Object]" === Object.prototype.toString.call(n[t]) ? r[t] = e(r[t], n[t]) : r[t] = n[t]) - }; o < n.length; o++) i(n[o]); - return r - }, param: function (e, n) { - var t = [], r = function (e, n) { - return encodeURIComponent(e) + "=" + encodeURIComponent(Se(n) ? n() : n || 0 === n || !1 === n ? n : "") - }; - return Object.keys(e).forEach((function (o) { - n && n[o] || (Array.isArray(e[o]) ? e[o].forEach((function (e) { - t.push(r(o, e)) - })) : t.push(r(o, e[o]))) - })), t.join("&") - } - }) - }), pn.jqUtils = pn.container.resolve("jqUtils"); - var Ae = {}; - !function (n, t) { - for (var r in t) e(n, r, {get: t[r], enumerable: !0}) - }(Ae, { - cookie: function () { - return Re - }, localStorage: function () { - return Le - }, sessionStorage: function () { - return Ue - } - }); - var Oe = function (e) { - var n = new Date, t = function (e) { - e && n.setDate(n.getDate() + e) - }; - if (e instanceof Date) n = e; else if ("number" == typeof e) t(e); else { - var r = e, o = r.days, i = r.minutes; - t(o), i && n.setMinutes(n.getMinutes() + i) - } - return n - }, Me = function (e) { - var n = e.replace(/\+/g, " ").replace(/^\s+|\s+$/g, ""); - try { - return decodeURIComponent(n) - } catch (e) { - return n - } - }, Ne = function (e) { - return 0 === e.indexOf('"') && (e = e.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, "\\")), Me(e) - }, Re = function () { - var e = function (e, n, t) { - var r = void 0 === t ? {} : t, o = r.path, i = r.domain, a = r.expires, s = r.secure, c = r.samesite, - u = r.raw, l = r.priority; - return (u ? e : encodeURIComponent(e)) + "=" + (u ? n : encodeURIComponent(n)) + (a ? "; expires=".concat(Oe(a).toUTCString()) : "") + (o ? "; path=".concat(o) : "") + (i ? "; domain=".concat(i) : "") + (s ? "; secure" : "") + (c ? "boolean" == typeof c ? "; sameSite" : "; sameSite=".concat(c) : "") + (l ? "; priority=".concat(l) : "") - }, n = function (n, t, r, o) { - void 0 === t || void 0 !== o && function (e) { - return encodeURI(e).split(/%(?:u[\dA-F]{2})?[\dA-F]{2}|./).length - 1 - }(t) > o || (document.cookie = e(n, t, r)) - }, t = function (e) { - for (var n = document.cookie.split(";"), t = 0; t < n.length; t++) { - var r = n[t].split("="); - if (e(Me(r[0]), r[1] || "")) return - } - }; - - function r(e) { - var n = null, r = {}; - return t((function (t, o) { - if (e) { - if (t === e) return n = Ne(o), !0 - } else r[t] = Ne(o) - })), e ? n : r - } - - var o, i = function (e, t) { - n(e, "", Object.assign({}, t, {expires: -1})) - }, a = (o = "_cookie_test", function (e) { - void 0 === e && (e = []); - var t = window.location.hostname.split("."), - a = (new Date).getTime().toString(36) + Math.round(2147483647 * Math.random()).toString(36), - s = new Date; - s.setSeconds(s.getSeconds() + 30); - for (var c = 0; c < t.length; c++) try { - var u = t.slice(-(c + 1)).join("."); - if (!e.includes(u)) { - n(o, a, {expires: s, path: "/", domain: u}); - var l = r(o) === a; - if (i(o, {path: "/", domain: u}), l) return u - } - } catch (e) { - } - }); - return { - set: n, get: r, getNames: function () { - var e = []; - return t((function (n) { - e.push(n) - })), e - }, remove: i, getTopLevelDomain: a, __private__: {_generateCookieString: e} - } - }(), Le = function () { - var e = "_ls_ttl", n = function () { - try { - var n = window.localStorage.getItem(e); - return n ? JSON.parse(n) : null - } catch (e) { - return null - } - }, t = function (n) { - try { - Object.keys(n).length ? window.localStorage.setItem(e, JSON.stringify(n)) : window.localStorage.removeItem(e) - } catch (e) { - } - }, r = function () { - var e = o(), r = n(), i = {}; - !r || (Object.keys(r).forEach((function (n) { - if (e.includes(n)) if (function (e) { - return !e || e > Date.now() - }(r[n] ? parseInt(r[n], 36) : null)) i[n] = r[n]; else try { - window.localStorage.removeItem(n) - } catch (e) { - } - })), JSON.stringify(r) !== JSON.stringify(i) && t(i)) - }, o = function () { - try { - return Object.keys(window.localStorage) - } catch (e) { - return [] - } - }; - return r(), { - get: function (e) { - var n; - r(); - try { - return null !== (n = window.localStorage.getItem(e)) && void 0 !== n ? n : null - } catch (e) { - return null - } - }, set: function (e, r, o) { - if (void 0 === o && (o = {}), function (e, r) { - var o = n(); - if (void 0 === r) return null != o && o[e] && (delete o[e], t(o)), !0; - var i = Oe(r).getTime(); - return i > Date.now() && ((o = o || {})[e] = i.toString(36), t(o), !0) - }(e, o.expires)) try { - window.localStorage.setItem(e, r) - } catch (e) { - } - }, getNames: o, remove: function (e) { - try { - window.localStorage.removeItem(e) - } catch (e) { - } - r() - }, expires: r, __protected__: { - get ttlName() { - return e - } - } - } - }(), Ue = { - get: function (e) { - try { - return window.sessionStorage.getItem(e) - } catch (e) { - return null - } - }, set: function (e, n) { - try { - window.sessionStorage.setItem(e, n) - } catch (e) { - } - }, getNames: function () { - try { - return Object.keys(window.sessionStorage) - } catch (e) { - return [] - } - }, remove: function (e) { - try { - window.sessionStorage.removeItem(e) - } catch (e) { - } - } - }, De = function () { - return De = Object.assign || function (e) { - for (var n, t = 1, r = arguments.length; t < r; t++) for (var o in n = arguments[t]) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]); - return e - }, De.apply(this, arguments) - }, je = function (e, n) { - return void 0 === n && (n = "_pctx"), { - cookieName: n, readonly: !1, init: function (n) { - var t; - return null !== (t = null != n ? n : e) && void 0 !== t ? t : null - }, refresh: function (e) { - return e - }, update: function (e) { - return e - }, set: function (e) { - return e - }, get: function (e) { - return e - } - } - }, Ve = function (e) { - return De(De({}, je(e)), {cookieName: null}) - }, Fe = je("anon"), Be = function (e) { - return e ? Object.keys(e) : [] - }, qe = function (e) { - return Array.isArray(e) - }, ze = function (e) { - return null == e - }, He = function (e) { - return !ze(e) - }, We = function (e) { - return "object" == _typeof(e) - }, Ge = function (e) { - return "string" == typeof e - }, Je = function () { - for (var e = (new Date).getTime().toString(36); e.length < 16;) e += Math.round(2147483647 * Math.random()).toString(36); - return e.substr(0, 16) - }, Qe = function (e, n) { - return e && Be(e).filter((function (t) { - return n(e[t]) - })).reduce((function (n, t) { - var r; - return De(De({}, n), ((r = {})[t] = e[t], r)) - }), {}) - }, Xe = function () { - var e = {}; - return { - add: function (n) { - e[n] = !0 - }, values: function () { - return Be(e) - } - } - }, Ye = function (e) { - return "true" === e || !0 === e - }, $e = function (e, n) { - var t, r = NaN, o = NaN; - return function (i) { - var a = null == n ? void 0 : n(); - return (i !== o || r !== a) && (r = a, o = i, t = e(i)), t - } - }, Ke = function (e) { - var n; - return function (t) { - var r = e(); - r !== n && (n = r, t(r)) - } - }, Ze = function e(n, t) { - try { - return n() - } catch (n) { - return t ? e(t) : null - } - }, en = function (e, n) { - return void 0 === n && (n = !1), Ze((function () { - return JSON.parse(e) - }), (function () { - return n ? JSON.parse(window.atob(e)) : null - })) || null - }, nn = function (e, n) { - if (e === n) return !0; - if (!e || !n) return null; - var t = Be(e), r = Be(n); - return t.length === r.length && !t.some((function (t) { - return e[t] !== n[t] - })) - }, tn = function (e) { - return Qe(e, (function (e) { - return "CX" !== (null == e ? void 0 : e.type) - })) - }, rn = De(De({}, je(null)), { - init: function (e) { - return tn(e || null) - }, refresh: tn, set: function (e, n) { - return null === e ? null : Qe(De(De({}, n), e), (function (e) { - return null !== e - })) - } - }), on = function () { - return window.pdl || {} - }, an = function (e, n) { - return n({protect: !0}), Je() - }, sn = De(De({}, Ve()), { - init: function (e, n) { - return n({protect: !0}), on().pageViewId || Je() - }, refresh: an, update: an, set: function (e, n, t) { - return t({protect: !0}), e - } - }), cn = De(De({}, je(null, "_pcid")), { - init: function (e, n) { - return n({protect: !0}), e || Je() - }, update: function (e, n) { - return n({protect: !0}), Je() - }, set: function (e, n, t) { - return t({protect: !0}), e - } - }), un = "DL", ln = ["PA", "DMP", "COMPOSER", "ID", "VX", "ESP", "SOCIAL_FLOW", un].map((function (e, n) { - return {name: e, id: n} - })), dn = ln.reduce((function (e, n, t) { - var r, o = n.name; - return De(De({}, e), ((r = {})[o] = t, r[o.toLowerCase()] = t, r)) - }), {}); - dn["social flow"] = dn.SOCIAL_FLOW, dn["Social Flow"] = dn.SOCIAL_FLOW; - var fn = Ke((function () { - var e; - return null === (e = Zn(on().consent)) || void 0 === e ? void 0 : e.products - })), mn = function () { - var e = ln; - return function () { - return fn((function (n) { - e = n ? ln.filter((function (e) { - return n.includes(e.name) || e.name === un - })) : ln - })), e - } - }(), vn = function (e, n, t) { - var r = mn().reduce((function (r, o) { - var i = o.id; - return r[i] = t(null == e ? void 0 : e[i], null == n ? void 0 : n[i], i), r - }), {}); - return nn(r, n) ? n : r - }, gn = function (e) { - var n = Number(e); - if (Number.isNaN(n)) { - var t = dn[e.toLowerCase()]; - return null != t ? t : null - } - return n < ln.length ? n : null - }, hn = function (e, n) { - return Be(e).reduce((function (t, r) { - var o = ln[Number(r)].name, i = e[r]; - return t[o] = n ? n(i, o) : i, t - }), {}) - }, yn = "opt-in", wn = "essential", _n = "opt-out", bn = "custom", kn = [yn, wn, _n], Cn = kn.concat(bn), - In = Cn.reduce((function (e, n, t) { - var r; - return De(De({}, e), ((r = {})[t] = n, r)) - }), {}), Sn = [yn, bn, wn, _n], En = function (e) { - return Cn.includes(e) - }, Tn = {AD: ["DMP", "SOCIAL_FLOW"], CP: ["COMPOSER"], AM: ["PA"], PR: ["ESP", "VX", "ID"], DL: ["DL"]}, - Pn = Be(Tn).reduce((function (e, n) { - return Tn[n].forEach((function (t) { - var r = dn[t]; - e[r] = n - })), e - }), {}), xn = Ke((function () { - var e; - return null === (e = Zn(on().consent)) || void 0 === e ? void 0 : e.defaultPurposes - })), An = function () { - var e = De({}, Pn); - return function () { - return xn((function (n) { - e = De({}, Pn), n && Be(n).forEach((function (t) { - var r, o = dn[t]; - e[o] = null === (r = n[t]) || void 0 === r ? void 0 : r.substring(0, 32) - })) - })), e - } - }(), On = function (e, n) { - return vn(e, n, (function (e, n, t) { - return e || n || An()[t] - })) - }, Mn = De(De({}, je(null, "_pprv")), { - init: function (e) { - return Ln() ? On(e || null, null) : null - }, set: function (e, n) { - return Ln() ? null == e ? n : On(function (e) { - return Be(e).reduce((function (n, t) { - var r = gn(t), o = Fn(e[t]); - return null === r || o === Dn || r === dn[un] || o && (n[r] = o), n - }), {}) - }(e), n) : null - } - }), Nn = function () { - return on().consent_modifiers || null - }, Rn = function () { - return !!on().requireConsent - }, Ln = function () { - return "v2" === on().requireConsent - }, Un = function (e, n) { - var t; - return e === bn && !(null !== (t = Nn()) && void 0 !== t && t[n]) - }, Dn = "DL", jn = ["AD", "AM", "CP", "PR", Dn].reduce((function (e, n) { - var t; - return De(De({}, e), ((t = {})[n] = n, t[n.toLowerCase()] = n, t)) - }), {}), Vn = function (e) { - return jn[(null == e ? void 0 : e.toLowerCase()) || ""] || null - }, Fn = function (e) { - return Vn(e) || (null == e ? void 0 : e.substring(0, 32)) - }, Bn = function (e, n, t) { - return "".concat(e.join(", "), " ").concat(e.length > 1 ? t : n) - }, qn = function (e) { - return '"'.concat(e, '" can not be applied for the dl product') - }; - - function zn(e, n, t, r, o) { - var i = function (e) { - return {error: e} - }, a = function (n, t, r) { - var o = []; - if (!En(n)) return i(function (e) { - return "".concat(e, " is unknown consent mode") - }(n)); - var a = mn().reduce((function (i, a) { - var s = a.id, c = a.name; - return (!t || (null == e ? void 0 : e[s]) === t || (null == r ? void 0 : r.includes(s))) && (Un(n, c) ? o.push(c) : i[s] = {mode: n}), i - }), {}); - return o.length ? i(function (e) { - return Bn(e, "does", "do") + "n't have modifier in the pdl. Custom mode can't be applied" - }(o)) : Object.keys(a).length ? {consent: a} : null - }, s = function (n, t) { - var r = Fn(t); - return jn[r] || Object.values(e || {}).includes(r) ? a(n, r) : i("Unknown purpose. Provide a product or define within pdl config") - }; - return Ln() ? o ? function (e, n, t) { - var r = Fn(n), o = qe(t) ? t : [t], c = o.map(gn).filter(He); - if (!c.length) return Vn(n) ? s(e, n) : i(function (e) { - return "Custom purpose: " + Bn(e, "is", "are") + " unknown" - }(o)); - if (r !== Dn && c.includes(dn.DL)) return {error: qn(r)}; - if (r === Dn && c.some((function (e) { - return e !== dn.DL - }))) return i('the "DL" purpose is reserved'); - var u = a(e, r, c); - if (null != u && u.error) return u; - var l = c.reduce((function (e, n) { - return e[n] = r, e - }), {}); - return {consent: (null == u ? void 0 : u.consent) || null, purposes: l} - }(r, t, o) : r ? s(r, t) : function (e) { - return a(e) - }(t) : i("Consent v2 is disabled") - } - - var Hn = function (e, n) { - if (!e) return null; - var t = hn(n || Pn); - return mn().reduce((function (n, r) { - var o, i = r.name, a = t[i], s = (null === (o = e[i]) || void 0 === o ? void 0 : o.mode) || yn; - return n[a] ? (n[a].mode = function (e, n) { - var t = Sn.indexOf(e), r = Sn.indexOf(n); - return Sn[Math.max(t, r)] - }(n[a].mode, s), n[a].products.push(i)) : n[a] = {mode: s, products: [i]}, n - }), {}) - }, Wn = ["include", "exclude", "obfuscate"], Gn = function (e, n) { - return '"'.concat(e, '" should be one of ').concat(n.join(", ")) - }, Jn = function () { - }, Qn = function (e, n) { - return function (t) { - return n(e + t) - } - }, Xn = function (e, n) { - void 0 === n && (n = Jn); - var t = dn[e.toLowerCase()]; - return void 0 !== t ? ln[t].name : (n('"'.concat(e, '" is not found')), null) - }, Yn = function (e) { - return function (e) { - return kn.includes(e) - }(e) ? e : null - }, $n = function (e, n) { - void 0 === n && (n = Jn); - var t = e.source, r = e.patches || []; - return Yn(t) || (n(Gn("source", kn)), t = yn), qe(r) || (n('"patches" should be an array'), r = []), r = r.reduce((function (e, t, r) { - if (!We(t) || qe(t)) return n("patch[".concat(r, "]: should be type of {action, item, with?}")), e; - var o = t.action, i = t.item; - return Wn.includes(o) ? i && We(i) && i.key && i.type ? (e.push(t), e) : (n("patch[".concat(r, ']: "item" should be type of {key, type}')), e) : (n("patch[".concat(r, "]: ") + Gn("action", Wn)), e) - }), []), {source: t, patches: r} - }, Kn = function (e, n) { - if (void 0 === n && (n = Jn), !e) return null; - var t = {}; - e.products && (qe(e.products) ? t.products = e.products.reduce((function (e, t) { - var r = Xn(t, Qn("consent.products: ", n)); - return r && e.push(r), e - }), []) : n("consent.products: should be an array")), e.defaultPreset && (t.defaultPreset = Be(e.defaultPreset).reduce((function (t, r) { - var o = Xn(r, Qn("consent.defaultPreset: ", n)), i = Yn(e.defaultPreset[r]); - return i || n("consent.defaultPreset: " + Gn(r, kn)), o && i && (t[o] = i), t - }), {})); - var r = e.defaultPurposes; - return r && (t.defaultPurposes = Be(r).reduce((function (e, t) { - var o = Qn("consent.defaultPurposes: ", n), i = Xn(t, o), a = r[t], s = Fn(a); - return s === Dn || i === un ? o('"'.concat(t, ": ").concat(a, '" - invalid config')) : i && s && (e[i] = s), e - }), {})), t - }, Zn = $e(Kn), - et = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 2, 2, 2, 2, 0], [1, 2, 2, 2, 2, 2, 2, 1], [0, 2, 0, 2, 2, 2, 0, 0], [1, 2, 2, 2, 2, 2, 1, 1], [2, 0, 0, 2, 2, 2, 2, 0], [2, 0, 2, 2, 2, 2, 2, 0], [2, 2, 2, 2, 2, 2, 0, 2], [2, 2, 0, 0, 0, 0, 2, 0], [2, 2, 1, 2, 1, 2, 2, 1], [2, 2, 1, 1, 2, 2, 2, 1]], - nt = function (e) { - return e.reduce((function (e, n, t) { - var r; - return De(De({}, e), ((r = {})[t] = {mode: In[n]}, r)) - }), {}) - }, tt = et.map((function (e, n) { - return {id: n, preset: nt(e)} - })), rt = Ke((function () { - var e; - return null === (e = Zn(on().consent)) || void 0 === e ? void 0 : e.defaultPreset - })), ot = function () { - var e = tt; - return function () { - return rt((function (n) { - e = tt.slice(), n && (e[0] = {id: 0, preset: De({}, e[0].preset)}, Be(n).forEach((function (t) { - var r = n[t], o = dn[t]; - e[0].preset[o] = {mode: r} - }))) - })), e - } - }(), it = function (e, n) { - return vn(e, n, (function (e, n, t) { - var r = (null == e ? void 0 : e.mode) || (null == n ? void 0 : n.mode) || ot()[0].preset[t].mode; - return r !== (null == n ? void 0 : n.mode) ? {mode: r} : n - })) - }, at = De(De({}, je(null, "_pprv")), { - init: function (e) { - return Rn() && e ? it(e, null) : null - }, set: function (e, n) { - var t, r; - return Rn() ? null == e ? n : (r = function (e) { - return "number" == typeof e - }(e) ? (null === (t = ot()[e]) || void 0 === t ? void 0 : t.preset) || null : qe(e) ? function (e) { - var n = null; - return e.forEach((function (e) { - var t = et[e]; - n || !t ? !n || !t || (n = n.map((function (e, n) { - return Math.min(e, t[n]) - }))) : n = t - })), n && nt(n) - }(e) : function (e) { - return Be(e).reduce((function (n, t) { - var r = e[t], o = gn(t); - if (null === o) return n; - var i = En(r.mode) ? r.mode : null; - return i && (n || (n = {}), n[o] = {mode: i}), n - }), null) - }(e), r ? it(r, n) : n) : null - }, get: $e((function (e) { - return e && hn(e, (function (e, n) { - var t, r = De({}, e); - return r.mode === bn && (r.modifier = (null === (t = Nn()) || void 0 === t ? void 0 : t[n]) || null), r - })) - }), (function () { - return Nn() - })) - }), st = De(De({}, Ve()), {init: ot, set: ot}), ct = De(De({}, Ve()), {init: mn, set: mn}), - ut = De(De({}, Ve(null)), { - readonly: !0, set: function () { - return null - }, get: Nn - }), lt = function (e) { - var n = Number(e); - return Number.isNaN(n) ? String(e) : n - }, dt = function (e) { - return qe(e) ? e : e.split(",").map((function (e) { - return e.trim().replace(/^['"](.+)['"]$/, "$1") - })) - }, pt = function (e) { - return e - }, ft = { - id: pt, - type: pt, - zone: pt, - createdAt: lt, - modifiedAt: lt, - authors: dt, - section: pt, - tags: dt, - keywords: dt, - title: pt, - description: pt, - isNative: Ye - }, mt = function (e) { - return "last" === e - }; - - function vt(e, n) { - if (void 0 === e && (e = "meta"), function (e) { - return "first" === e - }(n)) return document.querySelector(e); - var t = document.querySelectorAll(e); - return mt(n) ? t[t.length - 1] : Array.from(t) - } - - var gt = function () { - var e = null; - return { - refresh: function () { - (e = vt() || null) && setTimeout((function () { - e = null - }), 0) - }, find: function (n, t) { - return void 0 === t && (t = !1), e ? e.reduce((function (e, r) { - for (var o = 0, i = n; o < i.length; o++) { - var a = i[o], s = (("name" === a ? r.name : r.getAttribute(a)) || "").trim().toLowerCase(), - c = r.content; - if (s && (!t || c)) { - e[s] || (e[s] = []), e[s].push(r); - break - } - } - return e - }), {}) : null - } - } - }(), ht = function (e) { - var n, t = e.getContent || function (e) { - return e.content - }; - return e.selector ? (n = vt(e.selector, e.take || "first")) && t(n) || null : function () { - var n = gt.find(e.attr || ["name"], e.hasContent), r = e.names || [], o = !function (e) { - return "all" === e - }(e.take), i = mt(e.take); - if (!n) return null; - for (var a = function (e) { - var r = [], a = n[e]; - if (a) { - if (o) { - var s = a[i ? a.length - 1 : 0]; - return {value: t(s) || ""} - } - a.forEach((function (e) { - r = r.concat(t(e) || "") - })) - } - if (r.length) return {value: r} - }, s = 0, c = r; s < c.length; s++) { - var u = a(c[s]); - if ("object" == _typeof(u)) return u.value - } - return null - }() - }, yt = function (e) { - for (var n = 0, t = e; n < t.length; n++) { - var r = t[n], o = ht(r); - if (o) return o - } - }, wt = function (e, n, t) { - var r = ft[n]; - if (!Boolean(e[n]) && r) { - var o = ("function" == typeof t ? t : function () { - return qe(t) ? yt(t) : ht(t) - })(), i = o && r(o); - i && (e[n] = i) - } - }, _t = function (e) { - return {names: [e]} - }, bt = { - januar: "01", - january: "01", - jan: "01", - februar: "02", - february: "02", - feb: "02", - mars: "03", - march: "03", - mar: "03", - april: "04", - apr: "04", - mai: "05", - may: "05", - juni: "06", - june: "06", - jun: "06", - juli: "07", - july: "07", - jul: "07", - august: "08", - aug: "08", - september: "09", - sept: "09", - sep: "09", - oktober: "10", - october: "10", - okt: "10", - oct: "10", - november: "11", - nov: "11", - desember: "12", - december: "12", - dec: "12", - des: "12" - }, kt = function (e) { - var n = e.replace(/DAY/g, "(0?[1-9]|[12][0-9]|3[01])").replace(/MONTHLONG/g, "(" + Be(bt).join("|") + ")").replace(/MONTH/g, "(0?[1-9]|1[012])").replace(/YEAR2/g, "([0-9][0-9])").replace(/YEAR/g, "(197[1-9]|19[8-9][0-9]|20[0-9][0-9])").replace(/TIME/g, "([0-9][0-9]):([0-9][0-9]):([0-9][0-9])(?:\\.[0-9][0-9][0-9])?([zZ]|[+-][0-9][0-9](?::?[0-9][0-9])?)?"), - t = e.replace(/.*?([YMD])(EAR|ONTH|AY).*?/g, "$1").substring(0, 3); - return [new RegExp(n), t] - }, - Ct = ["\\bDAY\\.MONTH\\.YEAR\\b", "\\bDAY\\.?\\s{0,3}MONTHLONG\\.?\\s{1,3}YEAR\\b", "\\bYEAR-MONTH-DAY(?:[tT]|\\b)", "\\bMONTHLONG\\.?\\s{0,3}DAY(?:st|nd|rd|th)?,?\\s{1,3}YEAR\\b", "\\bDAY(?:st|nd|rd|th|\\.)?\\s{0,3}MONTHLONG\\.?,?\\s{1,3}YEAR\\b", "\\bYEAR[/年]MONTH[/月]DAY(?=\\b|日)", "\\bDAY\\.MONTH\\.YEAR2\\b", "\\bDAY/MONTH/YEAR\\b"].map(kt), - It = kt("YEAR-MONTH-DAY[tT]TIME")[0], St = function (e) { - return e && parseInt(e, 10) || 0 - }; - - function Et(e, n, t, r, o, i, a) { - var s = new Date(Date.UTC(St(e), St(n) - 1, St(t), St(r), St(o), St(i))), - c = (a || "").match(/^([+-][0-9][0-9])(?::?([0-9][0-9])?)$/); - c && (s = new Date(s.getTime() - 36e5 * Number(c[1]) - 6e4 * (Number(c[2]) || 0))); - var u = Date.now() - s.getTime(); - return u > 0 || -u < 1728e5 ? s.toISOString() : null - } - - var Tt = function (e) { - return e.replace(/<\/?[^>?]*\/?>/g, " ").replace(/\s+/g, " ").trim() - }; - - function Pt(e) { - return void 0 === e && (e = ""), Tt(e.replace(/,(?=\s*(jr|sr)(\.?)\b)/g, " ")) - } - - var xt, At = function (e) { - return De(De({}, e), {take: "last"}) - }, Ot = function (e) { - return De(De({}, e), { - take: "last", hasContent: !0, getContent: function (e) { - return Tt(e.content || "") - } - }) - }, Mt = [At({ - attr: ["name", "property", "itemprop"], - names: ["cxenseparse:publishtime", "cxenseparse:recs:publishtime", "article:published_time", "date", "dc.date", "dc.date.created", "dc.terms.issued", "pub_date", "article.published", "datepublished", "og:article:published_time"] - }), At({ - selector: "time.published[datetime],time[pubdate][datetime]", getContent: function (e) { - return e.getAttribute("datetime") - } - }), At({ - selector: "time[datetime]", getContent: function (e) { - return e.getAttribute("datetime") - } - })], Nt = {selector: 'meta[property="article:modified_time"]'}, Rt = [{ - attr: ["property", "name"], - names: ["cxenseparse:author", "og:article:author", "article:author", "og:book:author", "book:author", "author", "dc.creator", "article.author"], - take: "all", - getContent: function (e) { - var n = e.getAttribute("data-separator"), t = e.content; - return n ? Pt(t).split(n) : function (e) { - return void 0 === e && (e = ""), Pt(e.replace(/\n+/, ";").replace(/(\<|<)br(\>|>)/, ";").replace(/\b(and|und|og)\b/g, ";")).split(/[,;]/) - }(t) - } - }], Lt = [Ot({names: ["cxenseparse:keywords"]}), Ot({ - attr: ["property", "name"], - names: ["news_keywords"] - }), Ot({names: ["keywords"]})], Ut = [Ot({names: ["cxenseparse:description"]}), Ot({ - attr: ["property"], - names: ["og:description"] - }), Ot({names: ["description"]})], - Dt = [{names: ["cxenseparse:title"]}, At({attr: ["property", "name"], names: ["og:title"]})], - jt = function (e) { - wt(e, "createdAt", (function () { - var e = yt(Mt); - return e ? function (e) { - var n = (e = e.toLowerCase()).match(It); - if (n) return Et(n[1], n[2], n[3], n[4], n[5], n[6], n[7]); - for (var t = 0, r = Ct; t < r.length; t++) { - var o = r[t], i = e.match(o[0]); - if (i) return Et(2 === (i = "DMY" === o[1] ? ["", i[3], i[2], i[1]] : "MDY" === o[1] ? ["", i[3], i[1], i[2]] : i)[1].length ? (St(i[1]) < 60 ? "20" : "19") + i[1] : i[1], i[2].length <= 2 ? i[2] : bt[i[2]], i[3]) - } - }(e.toLowerCase()) : null - })), wt(e, "modifiedAt", Nt), wt(e, "authors", Rt), wt(e, "keywords", (function () { - var e = yt(Lt); - return e && e.length <= 1024 ? e : null - })), wt(e, "title", Dt), wt(e, "description", Ut) - }, Vt = function () { - var e = Array.from(document.querySelectorAll("meta[property^=content]")).reduce((function (e, n) { - var t, - r = null === (t = null == n ? void 0 : n.getAttribute("property")) || void 0 === t ? void 0 : t.split(":").pop(), - o = ft[r]; - return o && n && (e[r] = o((null == n ? void 0 : n.getAttribute("content")) || "")), e - }), {}); - return gt.refresh(), function (e) { - wt(e, "type", { - attr: ["property"], - names: ["og:type"] - }), wt(e, "section", _t("section")), wt(e, "id", _t("id")), wt(e, "authors", _t("author")) - }(e), jt(e), e - }, Ft = De(De({}, Ve(null)), { - init: function () { - return Vt() - }, refresh: function (e) { - var n = Vt(); - return null != e && e._fixed_ && (null == e || e._fixed_.forEach((function (e) { - delete n[e] - }))), De(De({}, e), n) - }, set: function (e, n) { - if (null === e) return {}; - var t = new Set(n && n._fixed_), r = function (n, t) { - Be(Qe(e, n)).forEach(t) - }; - return r(He, (function (e) { - t.add(e) - })), r(ze, (function (e) { - t.delete(e) - })), Qe(De(De(De({}, n), e), {_fixed_: Array.from(t.values())}), He) - }, get: $e((function (e) { - var n = De({}, e); - return delete n._fixed_, e && n - })) - }), Bt = De(De({}, je(null, "_pcus")), { - init: function (e) { - return void 0 === e && (e = null), e && Qe(e, (function (e) { - return We(e) && Array.isArray(e.segments) - })) - } - }), qt = { - pageViewId: sn, - browserId: cn, - users: rn, - userStatus: Fe, - siteId: je(), - consent: at, - consentPresets: st, - products: ct, - consentModifiers: ut, - purposes: Mn, - content: Ft, - userSegments: Bt - }, zt = { - path: "/", - expires: 395, - samesite: "lax", - secure: "https:" === window.location.protocol, - domain: Re.getTopLevelDomain(["pantheon.io", "go-vip.net", "go-vip.co"]) - }, Ht = function (e) { - return e.getTime().toString(36) - }, Wt = function (e) { - return e ? Ze((function () { - return new Date(parseInt(e, 36)) - })) : null - }, Gt = "_t", Jt = function (e, n) { - var t = n.encode, r = n.decode, o = !1, i = null, a = null, s = null; - !function () { - var n, t = null === (n = r(e || "")) || void 0 === n ? void 0 : n[Gt]; - if (t) { - var s = t.split("|"); - i = Wt(s[0]), a = Wt(s[1]), o = !!i - } - }(); - var c = function (e) { - return i = i || function (e) { - var n = new Date; - if (e instanceof Date) n = e; else { - if ("number" != typeof e) return null; - n.setDate(n.getDate() + e) - } - return n - }(e.expires), i - }; - return { - get fixedAt() { - return o ? [a, i] : null - }, onChange: function (e) { - s = e - }, setMode: function (e) { - var n = o; - (o = e) !== n && (i = null, a = null, null == s || s(o)) - }, bindOptions: function (e) { - return o && (i = c(e)) ? De(De({}, e), {expires: i}) : e - }, decode: function (e) { - var n = r(e); - return null != n && n[Gt] && delete n[Gt], n - }, encode: function (e, n) { - return o ? (i = c(n)) && (e[Gt] = Ht(i) + "|" + Ht(a = a || new Date)) : delete e[Gt], t(e) - } - } - }, Qt = "essential", Xt = "optional", Yt = "mandatory", $t = function (e, n, t) { - return void 0 === n && (n = Xt), void 0 === t && (t = !1), { - cookieName: e, consent: n, encode: function (e) { - return function (e, n) { - void 0 === n && (n = !1); - var t = JSON.stringify(e); - return Ze((function () { - return n ? window.btoa(t) : t - })) || t - }(e, t) - }, decode: function (e) { - return en(e, !0) - } - } - }, Kt = String.fromCharCode, Zt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", er = {}; - !function (e) { - e.URI = "URI" - }(xt || (xt = {})); - var nr = { - URI: { - prefix: "{u}", compress: function (e) { - return null == e ? "" : function (e, n, t) { - if (null == e) return ""; - var r, o, i, a = {}, s = {}, c = "", u = "", l = "", d = 2, p = 3, f = 2, m = [], v = 0, g = 0; - for (i = 0; i < e.length; i += 1) if (c = e.charAt(i), Object.prototype.hasOwnProperty.call(a, c) || (a[c] = p++, s[c] = !0), u = l + c, Object.prototype.hasOwnProperty.call(a, u)) l = u; else { - if (Object.prototype.hasOwnProperty.call(s, l)) { - if (l.charCodeAt(0) < 256) { - for (r = 0; r < f; r++) v <<= 1, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++; - for (o = l.charCodeAt(0), r = 0; r < 8; r++) v = v << 1 | 1 & o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o >>= 1 - } else { - for (o = 1, r = 0; r < f; r++) v = v << 1 | o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o = 0; - for (o = l.charCodeAt(0), r = 0; r < 16; r++) v = v << 1 | 1 & o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o >>= 1 - } - 0 == --d && (d = Math.pow(2, f), f++), delete s[l] - } else for (o = a[l], r = 0; r < f; r++) v = v << 1 | 1 & o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o >>= 1; - 0 == --d && (d = Math.pow(2, f), f++), a[u] = p++, l = String(c) - } - if ("" !== l) { - if (Object.prototype.hasOwnProperty.call(s, l)) { - if (l.charCodeAt(0) < 256) { - for (r = 0; r < f; r++) v <<= 1, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++; - for (o = l.charCodeAt(0), r = 0; r < 8; r++) v = v << 1 | 1 & o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o >>= 1 - } else { - for (o = 1, r = 0; r < f; r++) v = v << 1 | o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o = 0; - for (o = l.charCodeAt(0), r = 0; r < 16; r++) v = v << 1 | 1 & o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o >>= 1 - } - 0 == --d && (d = Math.pow(2, f), f++), delete s[l] - } else for (o = a[l], r = 0; r < f; r++) v = v << 1 | 1 & o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o >>= 1; - 0 == --d && (d = Math.pow(2, f), f++) - } - for (o = 2, r = 0; r < f; r++) v = v << 1 | 1 & o, g == n - 1 ? (g = 0, m.push(t(v)), v = 0) : g++, o >>= 1; - for (; ;) { - if (v <<= 1, g == n - 1) { - m.push(t(v)); - break - } - g++ - } - return m.join("") - }(e, 6, (function (e) { - return Zt.charAt(e) - })) - }, decompress: function (e) { - return null == e ? "" : "" == e ? null : function (e, n, t) { - var r, o, i, a, s, c, u, l = [], d = 4, p = 4, f = 3, m = "", v = [], - g = {val: t(0), position: n, index: 1}; - for (r = 0; r < 3; r += 1) l[r] = r; - for (i = 0, s = Math.pow(2, 2), c = 1; c != s;) a = g.val & g.position, g.position >>= 1, 0 == g.position && (g.position = n, g.val = t(g.index++)), i |= (a > 0 ? 1 : 0) * c, c <<= 1; - switch (i) { - case 0: - for (i = 0, s = Math.pow(2, 8), c = 1; c != s;) a = g.val & g.position, g.position >>= 1, 0 == g.position && (g.position = n, g.val = t(g.index++)), i |= (a > 0 ? 1 : 0) * c, c <<= 1; - u = Kt(i); - break; - case 1: - for (i = 0, s = Math.pow(2, 16), c = 1; c != s;) a = g.val & g.position, g.position >>= 1, 0 == g.position && (g.position = n, g.val = t(g.index++)), i |= (a > 0 ? 1 : 0) * c, c <<= 1; - u = Kt(i); - break; - case 2: - return "" - } - for (l[3] = u, o = u, v.push(u); ;) { - if (g.index > e) return ""; - for (i = 0, s = Math.pow(2, f), c = 1; c != s;) a = g.val & g.position, g.position >>= 1, 0 == g.position && (g.position = n, g.val = t(g.index++)), i |= (a > 0 ? 1 : 0) * c, c <<= 1; - switch (u = i) { - case 0: - for (i = 0, s = Math.pow(2, 8), c = 1; c != s;) a = g.val & g.position, g.position >>= 1, 0 == g.position && (g.position = n, g.val = t(g.index++)), i |= (a > 0 ? 1 : 0) * c, c <<= 1; - l[p++] = Kt(i), u = p - 1, d--; - break; - case 1: - for (i = 0, s = Math.pow(2, 16), c = 1; c != s;) a = g.val & g.position, g.position >>= 1, 0 == g.position && (g.position = n, g.val = t(g.index++)), i |= (a > 0 ? 1 : 0) * c, c <<= 1; - l[p++] = Kt(i), u = p - 1, d--; - break; - case 2: - return v.join("") - } - if (0 == d && (d = Math.pow(2, f), f++), l[u]) m = l[u]; else { - if (u !== p) return null; - m = o + o.charAt(0) - } - v.push(m), l[p++] = o + m.charAt(0), o = m, 0 == --d && (d = Math.pow(2, f), f++) - } - }((e = e.replace(/ /g, "+")).length, 32, (function (n) { - return function (e, n) { - if (!er[e]) { - er[e] = {}; - for (var t = 0; t < e.length; t++) er[e][e.charAt(t)] = t - } - return er[e][n] - }(Zt, e.charAt(n)) - })) - } - } - }, tr = Be(nr).reduce((function (e, n) { - return e[nr[n].prefix] = nr[n], e - }), {}), rr = { - cookieName: "_pctx", consent: Yt, encode: function (e, n) { - void 0 === n && (n = xt.URI); - var t = JSON.stringify(e), r = nr[n].compress(t); - return nr[n].prefix + r - }, decode: function (e) { - var n = function (e) { - var n = e.slice(0, 3), t = e.slice(3); - if (!tr[n]) return null; - var r = tr[n].decompress(t); - if (!r) return null; - try { - return JSON.parse(r) - } catch (e) { - return null - } - }(e || ""); - return We(n) ? n : null - } - }, or = function () { - var e, n; - return !(null === (n = null === (e = on().cookies) || void 0 === e ? void 0 : e._pprv) || void 0 === n || !n.jsonOnly) - }, ir = {_pprv: $t("_pprv", Yt, !or()), _pcid: $t("_pcid", Qt), _pcus: $t("_pcus", Xt, !0), _pctx: rr}, - ar = function (e) { - return Be(e).reduce((function (n, t) { - return n[t] = function (e) { - var n = e.cookieName, t = e.consent, r = Re.get(n), o = !!r, i = Jt(r, e), a = !!i.fixedAt, s = o, - c = null, u = De({}, zt), l = null, d = function () { - return o && s - }, p = function (e) { - var t = f(e), r = c || (l ? i.encode(l, t) : ""); - if (!r) { - var o = Re.get(n), s = i.decode(o || ""); - r = s ? i.encode(s, t) : "" - } - r && (a = !0, Re.set(n, r, i.bindOptions(t))) - }, f = function (e) { - return De(De({}, u), Qe(e || {}, He)) - }, m = function (e) { - Re.remove(n, f(e)) - }, v = function (e, n) { - var t = e && n; - !d() && t && p(), d() && !t && m(), d() && t && !a && p(), o = e, s = n - }; - return i.onChange((function () { - d() && (a = !1, p()) - })), { - get cookieName() { - return n - }, get cookieEnabled() { - return d() - }, get fixedAt() { - return i.fixedAt - }, get consent() { - return t - }, set: function (e, n) { - l = e, d() && p(n) - }, get: function () { - return i.decode(Re.get(n) || "") - }, remove: m, setCookieOptions: function (e) { - u = f(e), d() && p() - }, setCookieEnabled: function (e, n) { - void 0 === n && (n = null), c = e ? n : null, v(e, s) - }, lazyActive: function () { - v(o, !0) - }, setFixedMode: function (e) { - i.setMode(e) - } - } - }(e[t]), n - }), {}) - }(ir), sr = "__pctx_connection__", cr = "uvm42pas28m", ur = {}, lr = function () { - var e = function () { - var e = null, n = null; - return { - register: function (t) { - return e = De(De({}, t.fields), e), n = De(De({}, t.cookieByName), n) - }, get wrappers() { - return n - }, get: function () { - var e = {}; - return n && Be(n).forEach((function (t) { - e = De(De({}, e), n[t].get()) - })), e - }, set: function (t, r) { - void 0 === r && (r = null); - var o = {}; - Be(t).forEach((function (i) { - var a = t[i], s = null == e ? void 0 : e[i]; - s && (o[s] || (o[s] = { - wrapper: null == n ? void 0 : n[s], - data: {}, - update: !1 - }), o[s].data[i] = a, (!r || !o[s].update && a !== r[i]) && (o[s].update = !0)) - })), Be(o).forEach((function (e) { - var n = o[e], t = n.wrapper; - n.update && t.set(o[e].data) - })) - } - } - }(), n = {}, t = null, r = new Map, o = new Map, i = [], a = function (e, n, t) { - void 0 === t && (t = !1); - var r = []; - return Be(n).forEach((function (i) { - var a = n[i], s = !o.has(i) || o.get(i) === e || t; - a && s ? o.set(i, e) : !a && s ? o.delete(i) : r.push(i) - })), r.length > 0 ? r : null - }; - return function (s, c) { - var u = Je(); - return r.set(u, s), c && e.register(c), n = De(De({}, e.get()), n), { - getInitCookieData: function () { - return n - }, getCachedData: function () { - return t || ur - }, setProtectionData: function (e) { - return a(u, e) - }, setProtectionDataUnsafe: function (e) { - return a(u, e, !0) - }, updateData: function (r) { - return function (r, a) { - var s = {}, c = {}; - Be(a).forEach((function (e) { - o.has(e) ? s[e] = (null == t ? void 0 : t[e]) || null : c[e] = a[e] - })); - var u = t || n, l = De(De({}, t), c); - return nn(l, u) || (e.set(l, u), t = l, i.forEach((function (e) { - return (0, e[1])(c) - }))), Be(s).length > 0 ? s : null - }(0, r) - }, onUpdateData: function (e) { - !function (e, n) { - i.push([e, n]) - }(u, e) - }, terminate: function () { - (function (e) { - i = i.filter((function (n) { - return n[0] !== e - })) - })(u), r.delete(u) - }, setCookieOptions: function () { - return null - }, setCookieEnabled: function () { - return null - }, get registeredCookiesWrapper() { - return e.wrappers - } - } - } - }, dr = function (e) { - return void 0 === e && (e = !1), function (n, t) { - var r = lr(); - try { - Object.defineProperty(window, sr, { - configurable: e, set: function (e) { - var n = e(); - n === cr ? e(r) : "mrlqf5trgho" === n && (r = lr()) - } - }) - } catch (e) { - } - return window[sr] = function (e) { - return e && (r = e), cr - }, r(n, t) - } - }(), pr = function (e) { - return e.includes("*") - }, fr = function (e, n) { - return [new RegExp("^" + e.replace(/\*/g, ".*") + "$"), n] - }, mr = function (e) { - return Be(e).filter(pr).map((function (n) { - return fr(n, e[n]) - })) - }, vr = function (e, n) { - for (var t = 0, r = n; t < r.length; t++) { - var o = r[t]; - if (o[0].test(e)) return o[1] - } - return null - }, gr = function (e, n) { - switch (e) { - case yn: - return !0; - case wn: - return n === Qt || n === Yt; - case _n: - return n === Yt; - default: - return !0 - } - }, hr = function (e) { - switch (e) { - case"include": - case"obfuscate": - return !0; - case"exclude": - return !1 - } - }, yr = function (e) { - var n = Object.assign({}, e.items), t = mr(n), r = function (e) { - return n[e] || vr(e, t) || Xt - }; - return function (n, t) { - var o = on().requireConsent, i = !qe(n), a = i ? [n] : n, s = function () { - var n = function () { - return a.map((function (e) { - return {name: e, allowed: !o} - })) - }, i = t || e.getConsent(); - if (!i) return n(); - if (i.mode === bn) { - var s = function (e, n, t) { - var r = n && $n(n, t); - if (!r) return null; - for (var o = [], i = {}, a = 0, s = r.patches; a < s.length; a++) { - var c = s[a], u = c.action, l = c.with, d = void 0 === l ? null : l, p = c.item; - if (p.type === e) { - var f = {action: u, data: d}; - i[p.key] = f, pr(p.key) && o.push(fr(p.key, f)) - } - } - return { - source: r.source, getModifier: function (e) { - return i[e] || vr(e, o) - } - } - }(e.type, i.modifier, e.log); - if (!s) return n(); - var c = s.source; - return a.map((function (e) { - var n = s.getModifier(e), t = function (e, n) { - return "obfuscate" === e ? n : null - }(null == n ? void 0 : n.action, null == n ? void 0 : n.data), - o = {name: e, allowed: null != n && n.action ? hr(n.action) : gr(c, r(e))}; - return null !== t && (o.data = t), o - })) - } - return a.map((function (e) { - return {name: e, allowed: gr(i.mode, r(e))} - })) - }(); - return i ? s[0] : s - } - }, wr = Object.freeze({ - __proto__: null, - createCheckConsentWrapper: yr, - createMask: fr, - getByMask: vr, - isMask: pr, - itemsToMask: mr - }), _r = function (e) { - var n = e && e.length; - return 16 === n || 36 === n ? e : null - }, br = function () { - var e = { - pa_vid: function (e) { - return _r(en(e || "", !0) || e) - }, atuserid: function (e) { - var n; - return _r((null === (n = en(e || "", !0)) || void 0 === n ? void 0 : n.val) || "") - } - }; - return function (n) { - for (var t = function (n) { - try { - var t = function () { - if (n.ls) return function (e) { - var n = function (e) { - return Ze((function () { - return window.localStorage.getItem(e) - })) - }, t = n(e), r = Ze((function () { - return parseInt(en(n("_ls_ttl"))[e], 36) - })); - return r && r <= Date.now() ? null : t - }(n.ls) || null; - var t = Re.get(n); - return e[n] && t ? e[n](t) : t - }(); - if (t) return {value: t} - } catch (e) { - } - }, r = 0, o = n; r < o.length; r++) { - var i = t(o[r]); - if ("object" == _typeof(i)) return i.value - } - return null - } - }(), kr = [{ls: "_cX_P"}, "cX_P"], Cr = {PA: {browserId: ["pa_vid", "atuserid"].concat(kr)}, DMP: {browserId: kr}}, - Ir = {browserId: {source: "DMP"}}, Sr = function (e) { - var n, t = De(De({}, Ir), function (e, n) { - return void 0 === n && (n = Jn), Be(e || {}).reduce((function (t, r) { - var o = null == e ? void 0 : e[r], i = Xn((null == o ? void 0 : o.source) || "", n); - return t[r] = De(De({}, o), {source: i}), t - }), {}) - }(null === (n = on()) || void 0 === n ? void 0 : n.migration)); - Be(t).forEach((function (n) { - var r, o, i = e.params.get(n), a = t[n] === Ir[n], - s = null === (r = t[n]) || void 0 === r ? void 0 : r.source, - c = s && (null === (o = Cr[s]) || void 0 === o ? void 0 : o[n]) || []; - if (i && c.length) { - var u = br(c); - u && (i.readonly = !1, e.updateValues(n, u, !0), i.readonly = !a) - } - })) - }, Er = "@@Data-layer/", Tr = Er + "update_value", Pr = Er + "refresh_value", xr = Er + "refresh_locked_key", - Ar = function () { - var e = De({}, window.pdl), n = function (e) { - return function (e, n) { - return We(e) ? Be(e).reduce((function (t, r) { - var o = e[r], i = n[r], a = i && i(o); - return void 0 !== a && (t[r] = a), t - }), {}) : e - }(e, { - path: String, domain: String, secure: Ye, expires: function (e) { - return e instanceof Date ? e : Number(e) - }, samesite: function (e) { - return Ge(e) ? e : Ye(e) - } - }) - }; - return null != e && e.cookies && (e.cookies = Be(e.cookies).reduce((function (t, r) { - return t[r] = n(e.cookies[r]), t - }), {})), null != e && e.cookieDefault && (e.cookieDefault = n(e.cookieDefault)), e - }, Or = function (e) { - var n = Be(ir).reduce((function (e, n) { - return e[n] = ir[n].consent, e - }), {}), t = function (n) { - var t; - return n || (null === (t = e.get("consent")) || void 0 === t ? void 0 : t.DL) || null - }, r = yr({items: n, type: "cookie", getConsent: t}), o = t(), i = function (n) { - var t, o = {_pprv: !on().requireConsent}, - i = null === (t = e.getConnection()) || void 0 === t ? void 0 : t.registeredCookiesWrapper; - if (i) { - var a = Be(i).map((function (e) { - return i[e].cookieName - })); - r(a, n).forEach((function (e) { - var n = e.name, t = e.allowed, r = e.data, a = t && !o[n]; - i[n].setCookieEnabled(a, r || null) - })) - } - }; - e.addChangeListener("consent", (function (e) { - var n = (null == e ? void 0 : e.DL) || null; - (null == o ? void 0 : o.mode) !== (null == n ? void 0 : n.mode) && (o = n, i(n)) - })), i(o) - }, Mr = function (e, n, t) { - var r = 1 === t ? "can not be" : "was"; - console.warn('[DL]: Consent v2: the "'.concat(e, '" has a conflicted consent mode, ') + "mode ".concat(r, ' changed to "').concat(n, '"')) - }, Nr = function (e, n, t) { - var r, o = function (e, n) { - return { - fields: Be(e).reduce((function (n, t) { - var r = e[t].cookieName; - return null !== r && (n[t] = r), n - }), {}), cookieByName: n - } - }(e, n), i = dr("data-layer", o), a = !1, s = new Map, c = new Set, u = new Map, l = function () { - if (!i) throw new Error("DataLayer can't be connected"); - return i - }, d = function (e) { - var n = l().registeredCookiesWrapper; - n && e(n) - }, p = function (e) { - d((function (n) { - e.forEach((function (e) { - var t = n[e]; - t && t.lazyActive() - })) - })) - }, f = function () { - var e = null; - return d((function (n) { - e = Be(n).reduce((function (e, t) { - var r = n[t].cookieEnabled, o = n[t].fixedAt || null; - return e[n[t].cookieName] = r ? {enabled: r, fixedAt: o} : null, e - }), {}) - })), e - }, m = function () { - var e = {}, n = function (n) { - return Be(e).reduce((function (t, r) { - var o = e[r]; - return void 0 !== o[n] && (t[r] = o[n]), t - }), {}) - }; - return { - add: function (n, t) { - e[n] = t - }, call: function () { - var e; - e = n("protect"), Be(e).length > 0 && l().setProtectionData(e), function () { - var e = n("protectUnsafe"); - Be(e).length > 0 && l().setProtectionDataUnsafe(e) - }() - } - } - }, v = function (e, n) { - return Be(e).reduce((function (t, r) { - var o = u.get(r), i = e[r]; - return o && (t[r] = n ? n(o, i) : o.get(i)), t - }), {}) - }, g = function () { - return {params: u, getConnection: l, addChangeListener: C, get: w, updateValues: y} - }, h = function (e) { - var n = !1; - Be(e).forEach((function (t) { - var o, i = t, a = u.get(i); - if (a) { - var c = e[i]; - r[i] !== c && (r[i] = c, n = !0, null === (o = s.get(i)) || void 0 === o || o.forEach((function (e) { - return e(a.get(c)) - }))) - } - })), n && c.forEach((function (e) { - return e(v(r)) - })) - }, y = function (e, n, t) { - var o; - void 0 === t && (t = !1); - var i = e, a = Xe(); - Ge(e) && ((o = {})[e] = n, i = o); - var s = m(), c = m(); - i = Be(i).reduce((function (e, n) { - var t = i[n], o = u.get(n), l = n; - return null != o && o.readonly || (o && o.cookieName && a.add(o.cookieName), !o || t === r[n]) ? e : t === Pr ? (e[n] = o.refresh(r[n], (function (e) { - c.add(l, e) - })), e[n] !== r[n] && s.add(l, {protectUnsafe: !1}), e) : t === Tr ? (e[n] = o.update(r[n], (function (e) { - c.add(l, e) - })), e) : (e[n] = o.set(t, r[n], (function (e) { - c.add(l, e) - })), e) - }), {}), p(a.values()), s.call(); - var d = l().updateData(i); - if (d && t) { - var f = Be(d).reduce((function (e, n) { - var t; - return De(De({}, e), ((t = {})[n] = !1, t)) - }), {}); - l().setProtectionDataUnsafe(f), l().updateData(i) - } - return c.call(), d && v(d) - }; - - function w(e) { - var n, t, o = Xe(), i = Ge(e); - return void 0 === e ? t = r : i ? ((n = {})[e] = r[e], t = n) : t = e.reduce((function (e, n) { - return u.has(n) && (e[n] = r[n]), e - }), {}), t = v(t, (function (e, n) { - return e.cookieName && o.add(e.cookieName), e.get(n) - })), p(o.values()), i ? t[e] : t - } - - function _(e, n) { - return y(e, n, !1) - } - - var b = function (e, n) { - void 0 === n && (n = !1); - var t = e; - return qe(e) || (t = [e]), y(t.reduce((function (e, n) { - return e[n] = Tr, e - }), {}), void 0, n) - }, k = function (e, n, t) { - var r; - void 0 === t && (t = !1); - var o = t ? l().setProtectionDataUnsafe : l().setProtectionData, i = e; - return Ge(e) && ((r = {})[e] = n, i = r), o(i) - }; - - function C(e, n) { - var t; - Ge(e) ? null === (t = s.get(e)) || void 0 === t || t.add(n) : c.add(e) - } - - return { - init: function (n) { - if (void 0 === n && (n = {}), !a) { - i || (i = dr("data-layer", o)), function (e) { - var n = De(De({}, e), Ar()), t = n.cookieDefault; - d((function (e) { - Be(e).forEach((function (r) { - var o, i, a, s, c = e[r].cookieName, - u = null === (o = n.cookies) || void 0 === o ? void 0 : o[c], - l = "fixed" === (null === (i = n.cookies) || void 0 === i ? void 0 : i.storageMode); - null === (s = (a = e[r]).setFixedMode) || void 0 === s || s.call(a, l), (t || u) && e[r].setCookieOptions(De(De({}, t), u)) - })) - })) - }(n), a = !0, Be(e).forEach((function (n) { - var t = e[n]; - s.set(n, new Set), u.set(n, t) - })); - var c = !1, p = l().getInitCookieData(), f = l().getCachedData(), v = m(), - y = Be(e).reduce((function (n, t) { - var r = t, o = e[t]; - return n[t] = (null == f ? void 0 : f[r]) || o.init(null == p ? void 0 : p[r], (function (e) { - v.add(r, e) - })), null != f && f[r] || (c = !0), n - }), {}); - r = y, c && l().updateData(y), v.call(), l().onUpdateData((function (e) { - return h(e) - })), null == t || t(g()) - } - }, set: _, get: w, update: function (e) { - return b(e) - }, refresh: function () { - var e; - if (l().setProtectionData(((e = {})[xr] = !0, e))) return !1; - var n = []; - u.forEach((function (e, t) { - return n.push(t) - })); - var t = n.reduce((function (e, n) { - return e[n] = Pr, e - }), {}); - return y(t), !0 - }, protect: function (e, n) { - return k(e, n) - }, addChangeListener: C, removeChangeListener: function (e) { - c.delete(e), s.forEach((function (n) { - return n.delete(e) - })) - }, terminate: function () { - null == i || i.terminate(), s.clear(), c.clear(), i = null, a = !1, r = {} - }, updateMigration: function () { - a && Sr(g()) - }, get isReady() { - return a - }, utils: { - validateModifier: $n, validateConsent: Kn, checkConsent: wr, setConsent: function (e, n, t) { - w("consent"); - var r = zn(w("purposes"), 0, e, n, t); - return r ? r.error ? r.error : (_({consent: r.consent, purposes: r.purposes}), null) : null - }, getConsent: function () { - var e = w(["consent", "purposes"]), n = e.consent, t = e.purposes; - return Hn(n, t) - }, notAcquiredConsent: Ln() ? Be(Tn).reduce((function (e, n) { - return e[n] = {mode: "not-acquired", products: Tn[n]}, e - }), {}) : null - }, get cookies() { - return f() - }, get cookieEnabled() { - return f() - }, setUnsafe: function (e, n) { - y(e, n, !0) - }, protectUnsafe: function (e, n) { - return k(e, n, !0) - }, updateUnsafe: function (e) { - return b(e, !0) - }, setCookieEnabled: function (e) { - d((function (n) { - var t = Be(e); - t.length ? t.forEach((function (t) { - var r = n[t]; - r && r.setCookieEnabled(e[t]) - })) : Be(n).forEach((function (t) { - n[t].setCookieEnabled(e) - })) - })) - } - } - }(qt, ar, (function (e) { - Or(e), Sr(e), function (e) { - var n = null, t = {}, r = function (n) { - var r = Hn(n, e.get("purposes")); - if (r && n) { - var o = !1, i = Be(r).reduce((function (e, i) { - var a = r[i].mode; - return r[i].products.forEach((function (r) { - var i; - a !== (null === (i = n[r]) || void 0 === i ? void 0 : i.mode) && (Un(a, r) ? t[r] || (t[r] = !0, Mr(r, a, 1)) : (e[r] = {mode: a}, o = !0, Mr(r, a, 2))) - })), e - }), {}); - o && e.updateValues({consent: i}) - } - }; - e.addChangeListener("consent", (function (e) { - Ln() && (n && (clearTimeout(n), n = null), n = setTimeout((function () { - r(e), n = null - }), 200)) - })), Ln() && r(e.get("consent")) - }(e) - })), Rr = function (e) { - return function () { - var n = e.dataLayer.get("consent"); - return n && n[e.productName] || null - } - }, Lr = function (e, n) { - var t = null, r = function (r) { - var o = (null == r ? void 0 : r[e.productName]) || null; - o !== t && (t = o, n(o)) - }; - return e.dataLayer.addChangeListener("consent", r), function () { - e.dataLayer.removeChangeListener(r) - } - }, Ur = function (e, n) { - return e.utils.checkConsent.createCheckConsentWrapper(n) - }, Dr = function (e, n, t) { - var r = e.utils.checkConsent, o = r.itemsToMask(n), i = Object.keys(n).filter((function (e) { - return !r.isMask(e) - })); - return t().filter((function (e) { - return i.includes(e) || r.getByMask(e, o) - })) - }, jr = function (e, n, t) { - var r = Rr(t), o = Ur(t.dataLayer, {items: t.items, type: n, getConsent: r}), i = function (n) { - var r; - null === (r = o(Dr(t.dataLayer, t.items, e.getNames), n)) || void 0 === r || r.forEach((function (n) { - n.allowed ? n.data && e.set(n.name, n.data) : e.remove(n.name) - })) - }; - return function () { - var e = void 0 === t.checkConsentOnInit && t.enableAutoRemove; - t.enableAutoRemove && Lr(t, i), e && i(r()) - }(), Object.assign({}, e, { - set: function (n, t, r) { - var i, a = o(n); - if (null != a && a.allowed) { - var s = null !== (i = a.data) && void 0 !== i ? i : t, c = r ? [n, s, r] : [n, s]; - e.set.apply(null, c) - } - }, check: o - }) - }, Vr = function (e) { - var n = function (e) { - var n, t, r = Le.__protected__.ttlName, o = {dataLayer: e, productName: "DL"}, i = (t = Ur(o.dataLayer, { - items: (n = {}, n[r] = "mandatory", n), - type: "localStorage", - getConsent: Rr(o) - }), function () { - var e = t(r); - return e.allowed && !e.data - }), a = !0, s = function () { - (a = i()) || Le.remove(r) - }; - return Lr(o, s), s(), function () { - return a - } - }(e.dataLayer), t = jr(Le, "localStorage", e); - return Object.assign({}, t, { - set: function (e, r, o) { - var i = o; - return (null == o ? void 0 : o.expires) && !n() && delete (i = Object.assign({}, o)).expires, t.set(e, r, i) - } - }) - }, Fr = function (e) { - var n = e.dataLayer.utils.checkConsent, t = Rr(e), r = {}, o = [], i = {}, a = {}; - Object.keys(e.items).forEach((function (t) { - var a = e.items[t]; - if (a.type) { - var s = a, c = s.type, u = s.domain, l = s.path, d = {}; - i[t] = c, u && (d.domain = u), l && (d.path = l), n.isMask(t) ? o.push(n.createMask(t, d)) : r[t] = d - } else i[t] = a - })); - var s, c = Ur(e.dataLayer, {items: i, type: "cookie", getConsent: t}), u = function (t) { - var s; - null === (s = c(Dr(e.dataLayer, i, Re.getNames), t)) || void 0 === s || s.forEach((function (e) { - var t = function () { - return r[e.name] || n.getByMask(e.name, o) || a - }; - e.allowed ? e.data && Re.set(e.name, e.data, t()) : Re.remove(e.name, t()) - })) - }; - s = !(void 0 !== e.checkConsentOnInit || !e.enableAutoRemove), e.enableAutoRemove && (a = e.enableAutoRemove, Lr(e, u)), s && u(t()); - return Object.assign({}, Re, { - check: c, set: function (e, n, t, r) { - var o, i = c(e); - null != i && i.allowed && Re.set(e, null !== (o = i.data) && void 0 !== o ? o : n, t, r) - } - }) - }, Br = function (e, n) { - return void 0 === n && (n = ""), Object.entries(e).reduce((function (e, t) { - var r = t[0], o = t[1]; - return e[r] = function (e, n) { - void 0 === n && (n = "Method"); - var t = function () { - var t; - return null === (t = null == pn ? void 0 : pn.util) || void 0 === t || t.debug("".concat(n, " is deprecated")), e.apply(this, arguments) - }; - return t.skipLog = e, t - }(o, n + String(r)), e - }), {}) - }, - qr = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(location.hostname), - zr = Ae.cookie.getTopLevelDomain(), Hr = { - COMPOSER: { - cookie: { - items: { - __tbc: "mandatory", - xbc: "mandatory", - __tac: "mandatory", - __tae: "mandatory", - __pls: {type: "mandatory", domain: zr, path: "/"}, - "__pls_*": {type: "mandatory", domain: zr, path: "/"}, - "_pc_*": {type: "mandatory", domain: "", path: "/"}, - _pcus: "optional", - _pcer: {type: "essential", domain: zr, path: "/"} - } - }, - localStorage: { - items: { - __pnml: "mandatory", - "__tp-customVariables": "essential", - "__tp-customVariables-expiration": "essential" - }, enableAutoRemove: !0 - } - }, - VX: { - cookie: { - items: { - "__ut_*": "mandatory", - __ut: "mandatory", - __pvi: "optional", - __pat: "optional", - __pnahc: "mandatory", - "glt_*": "optional", - "__utg_*": "optional", - __gom: "optional", - "tpcc_*": {type: "optional", domain: qr ? "" : zr, path: "/"} - } - }, - localStorage: { - items: { - "__tp-gaAccount": "optional", - "__tp-trackOnlyAids": "optional", - "__tp-metricsGAAccount": "optional", - "__tp-exrs": "optional", - tp__unprocessedCookies: "optional", - "tp__unprocessedСookies": "optional", - "__tp-gaAccount-expiration": "optional", - "__tp-trackOnlyAids-expiration": "optional", - "__tp-metricsGAAccount-expiration": "optional", - "__tp-exrs-expiration": "optional" - }, enableAutoRemove: !0 - } - }, - DMP: { - cookie: {items: {cX_P: "essential"}, enableAutoRemove: {domain: zr, path: "/"}}, - localStorage: {items: {_cX_P: "essential"}, enableAutoRemove: !0} - }, - ID: { - cookie: { - items: { - __utp: "mandatory", - "__utp_*": "mandatory", - __pid: "mandatory", - __pil: "essential", - __idr: "essential", - __eea: "essential", - "piano-id-initial-gm-sso-shown-*": "mandatory" - } - }, localStorage: {items: {"pnid-tc-string": "optional"}, enableAutoRemove: !0} - } - }, Wr = ["opt-in", "essential", "opt-out", "custom"], - Gr = ["PA", "DMP", "COMPOSER", "ID", "VX", "ESP", "SOCIAL_FLOW", "DL"].reduce((function (e, n, t) { - var r; - return p(p({}, e), ((r = {})[n.toLowerCase()] = {name: n, id: t}, r)) - }), {}); - Gr["social flow"] = Gr.SOCIAL_FLOW; - var Jr = function (e) { - return Gr[e.toLowerCase()] || null - }, Qr = function () { - return window.pdl || null - }, Xr = function () { - var e; - return !(null === (e = Qr()) || void 0 === e || !e.requireConsent) - }, Yr = function () { - var e; - return "v2" === (null === (e = Qr()) || void 0 === e ? void 0 : e.requireConsent) - }, $r = function () { - return Xr() ? Yr() ? 2 : 1 : null - }, Kr = function () { - return !(Xr() && !Yr()) || (console.error('Consent v2 is disabled. To use the feature set pdl.requireConsent = "v2"'), !1) - }, Zr = function () { - return !Yr() || (console.error("Consent v2 is enabled. To change consent use tp.consent.setByPurpose or tp.consent.setAllPurposes"), !1) - }, eo = Object.entries({ - AD: ["DMP", "SOCIAL_FLOW"], - CP: ["COMPOSER"], - AM: ["PA"], - PR: ["ESP", "VX", "ID"], - DL: ["DL"] - }).reduce((function (e, n) { - var t = n[0]; - return n[1].forEach((function (n) { - e[Jr(n).id] = t - })), e - }), {}), no = function (e) { - var n = e.reduce((function (e, n) { - var t, r = n.id; - return p(p({}, e), ((t = {})[r] = 4, t)) - }), {}), t = Nr.get("purposes") || {}; - return { - addConsent: function (e, t) { - var r = Jr(e).id; - n[r] = function (e) { - return Wr.indexOf(e) - }(t) - }, addPurpose: function (e, n) { - t[Jr(e).id] = n - }, toModeParamString: function () { - return JSON.stringify(n) - }, toPurposeParamString: function () { - return Object.entries(t).some((function (e) { - var n = e[0]; - return e[1] !== eo[n] - })) ? JSON.stringify(t) : null - } - } - }; - pn.container.register("consent", { - useValue: function () { - var e = !1, n = [], t = {composer: null, vx: null, dmp: null, id: null}; - var r = function (e) { - e(t) - }, o = Br({ - setByPreset: function (e) { - Zr() && Nr.set("consent", e) - }, set: function (e, n) { - var t; - Zr() && ("string" == typeof e ? Nr.set("consent", ((t = {})[e] = n, t)) : Nr.set("consent", e)) - }, get: function (e) { - var n = Nr.get("consent"); - return e && n ? n[e] : n - } - }, "tp.consent."); - return { - setByPreset: o.setByPreset, set: o.set, get: o.get, setByPurpose: function (e, n, t) { - if (Kr()) { - if (!n) return void pn.util.error("consent.setByPurpose: mode is required"); - var r = Nr.utils.setConsent(e, n, t); - r && pn.util.error("consent.setByPurpose: [DL]: " + r) - } - }, setAllPurposes: function (e) { - if (Kr()) { - var n = Nr.utils.setConsent(e); - n && pn.util.error("consent.setAllPurpose: [DL]: " + n) - } - }, getByPurpose: function () { - return Nr.utils.getConsent() - }, get composer() { - return t.composer - }, get vx() { - return t.vx - }, get dmp() { - return t.dmp - }, get id() { - return t.id - }, __protected__: { - getVersion: $r, addConsentsToParams: function (e) { - var n, t = Nr.get("products"), r = 2 === $r() ? Nr.utils.getConsent() : null, - o = 1 === $r() ? Nr.get("consent") : null, - i = !(null === (n = Qr()) || void 0 === n || !n.requireConsent); - if (!(r && o || i)) return e; - var a = no(t); - o && Object.keys(o).forEach((function (e) { - a.addConsent(e, o[e].mode) - })), r && Object.keys(r).forEach((function (e) { - var n = r[e], t = n.mode; - n.products.forEach((function (n) { - a.addConsent(n, t), a.addPurpose(n, e) - })) - })); - var s = a.toModeParamString(), c = a.toPurposeParamString(); - return s && (e.consent_modes = s), c && (e.consent_purposes = c), e - }, init: function () { - var o, i = pn.debug ? function (e) { - var n; - null === (n = pn.util) || void 0 === n || n.debug("[PDL validation]: " + e) - } : void 0, a = Qr(), s = function () { - var e; - return (null === (e = Qr()) || void 0 === e ? void 0 : e.consent_modifiers) || null - }(); - s && (Object.keys(s).forEach((function (e) { - var n, t = s[e], r = null === (n = Jr(e)) || void 0 === n ? void 0 : n.name; - r && (delete s[e], s[r] = t) - })), null === (o = Nr.get("products")) || void 0 === o || o.forEach((function (e) { - var n = e.name; - if (s[n]) { - var t = function (e) { - return pn.debug ? function (n) { - var t; - null === (t = pn.util) || void 0 === t || t.debug("[PDL validation]: consent_modifier: ".concat(e, " - ").concat(n)) - } : void 0 - }(n); - s[n] = Nr.utils.validateModifier(s[n], t) - } - }))), null != a && a.consent && (a.consent = Nr.utils.validateConsent(a.consent, i) || a.consent); - var c = {domain: pn.cookieDomain || Ae.cookie.getTopLevelDomain(), path: pn.cookiePath || "/"}; - Object.entries(Hr).forEach((function (e) { - var n, r = e[0], o = e[1], i = r, a = i.toLowerCase(), s = {dataLayer: Nr, productName: i}; - t[a] = { - cookie: Fr(p(p(p({}, s), o.cookie), {enableAutoRemove: null !== (n = o.cookie.enableAutoRemove) && void 0 !== n ? n : c})), - localStorage: Vr(p(p({}, s), o.localStorage)) - } - })), n.forEach(r), n = [], e = !0 - }, getConsentConfig: function () { - return pn.debug ? Hr : null - }, async: function (t) { - e ? r(t) : n.push(t) - } - } - } - }() - }), pn.consent = pn.container.resolve("consent"); - var to = { - name: "cookie", raw: !1, set: function (e, n, t) { - var r = t; - Ae.cookie.set(e, n, r) - }, get: function (e) { - return Ae.cookie.get(e) || void 0 - }, remove: function (e, n) { - return null !== Ae.cookie.get(e) && (Ae.cookie.remove(e, n), !0) - } - }; - pn.container.register("cookie", {useValue: to}), pn.cookie = pn.container.resolve("cookie"); - var ro = function () { - var e = function () { - try { - return window.localStorage - } catch (e) { - return null - } - }(); - window.name || (window.name = Math.floor(1e8 * Math.random())); - return { - get: function (n) { - if (e && "function" == typeof e.getItem) { - var t = Ae.localStorage.get(n); - try { - return JSON.parse(t) - } catch (e) { - return t - } - } - }, set: function (n, t) { - !e || "function" != typeof e.getItem || Ae.localStorage.set(n, JSON.stringify(t)) - }, remove: function (n) { - !e || "function" != typeof e.getItem || Ae.localStorage.remove(n) - } - } - }(); - pn.container.register("localStorage", {useValue: ro}), pn.localStorage = pn.container.resolve("localStorage"); - var oo = function () { - var e = function () { - return "1.9.34" - }; - return window.__tpVersion = "1.9.34", {name: "versionService", getTinypassVersion: e} - }(); - pn.container.register("versionService", {useValue: oo}), pn.versionService = pn.container.resolve("versionService"); - var io = function (e) { - void 0 === e && (e = pn.container); - var n, t, r, o = e.resolve("ajax"), i = e.resolve("localStorage"), a = e.resolve("consent"), s = 3600, c = 2500, - u = "tp__unprocessedCookies", l = {}; - - function d() { - n && clearTimeout(n), n = setTimeout((function () { - o.request({ - url: pn.cloudflareWorkerUrl + "?maxAge=2628000", - type: "POST", - data: JSON.stringify(l), - crossDomain: !0, - xhrFields: {withCredentials: !0}, - success: function () { - l = {}, i.remove(u) - }, - error: function (e, n) { - console.error(n) - } - }) - }), c) - } - - function p() { - try { - var e = i.get(u); - e && Object.keys(e).forEach((function (n) { - l[n] = e[n] - })) - } catch (e) { - console.error(e) - } - } - - return t = "tp__unprocessedСookies", (r = i.get(t)) && (i.remove(t), i.get(u) || i.set(u, r)), { - name: "itp", - init: function () { - !pn.cloudflareWorkerUrl || !pn.util.isSafariOrUiWebView() || (p(), Object.keys(l).length > 0 && d()) - }, - synchronizeCookie: function (e, n, t) { - !pn.cloudflareWorkerUrl || !pn.util.isSafariOrUiWebView() || (p(), function (e, n, t) { - l[e] = {value: n}, t && (t instanceof Date ? l[e].expires = t : l[e].maxAge = t * s) - }(e, n, t), function () { - var e = a.vx; - null !== e && e.localStorage.set(u, JSON.stringify(l)) - }(), d()) - } - } - }(); - pn.container.register("itp", {useValue: io}), pn.itp = pn.container.resolve("itp"); - pn.container.register("util", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t = e.resolve("jqUtils"), r = e.resolve("cookie"), o = e.resolve("versionService"), - i = e.resolve("itp"), a = e.resolve("consent"), s = "", - c = {ENABLED_AFTER_DISABLED: -2, NOT_DETECTED: -1, DISABLED: 0, ENABLED: 1}; - void 0 === "testString".toHex && Object.defineProperty(String.prototype, "toHex", { - enumerable: !1, - value: function () { - for (var e = "", n = 0; n < this.length; ++n) e += "" + this.charCodeAt(n).toString(16); - return e - } - }); - var u = function (e, n, t) { - var o = {path: "/", expires: 0}; - void 0 !== n && (o.domain = n), void 0 !== t && (o.path = t), r.remove(e, o) - }, l = function (e, n, t) { - -1 !== n.indexOf("abril.com.br") && u(e, ".abril.com.br", t), -1 !== n.indexOf("scotsman.com") && u(e, ".scotsman.com", t) - }, d = function (e) { - var n; - if (0 === document.cookie.length) return null; - if (e instanceof RegExp) for (var t = document.cookie.split(";"), r = 0; r < t.length; r++) { - var o = t[r].indexOf("="); - if (-1 !== o) { - var i, a = t[r].substr(0, o).trim(); - if (e.test(a)) { - i = t[r].substr(o + 1).trim(); - try { - return decodeURIComponent(i) - } catch (n) { - m('Could not uri-decode cookie "' + e.toString() + '"', n) - } - return i - } - } - } else { - var s = ("; " + document.cookie).split("; " + e + "="); - if (s.length >= 2) { - var c = null === (n = s.pop()) || void 0 === n ? void 0 : n.split(";").shift(); - if (void 0 === c) return null; - try { - return decodeURIComponent(c) - } catch (n) { - m('Could not uri-decode cookie "' + e + '"', n) - } - return c - } - } - return null - }, f = function (e) { - if (0 === document.cookie.length) return []; - for (var n = [], t = document.cookie.split(";"), r = 0; r < t.length; r++) { - var o = t[r].indexOf("="); - if (-1 !== o) { - var i, a = t[r].substr(0, o).trim(); - if (e instanceof RegExp && e.test(a)) { - i = t[r].substr(o + 1).replace(/^\s+|\s+$/g, ""); - try { - i = decodeURIComponent(i) - } catch (n) { - m('Could not uri-decode cookie "' + e.toString() + '"', n) - } - n.push({name: a, value: i}) - } else if (a === e) { - i = t[r].substr(o + 1).replace(/^\s+|\s+$/g, ""); - try { - i = decodeURIComponent(i) - } catch (n) { - m('Could not uri-decode cookie "' + e + '"', n) - } - n.push({name: a, value: i}) - } - } - } - return n - }; - - function m() { - for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - !0 === pn.debug && g.apply(void 0, e) - } - - function v() { - for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - var t; - g.apply(void 0, e), (t = "string" == typeof arguments[0] ? new Error(arguments[0]) : new Error).stack && g(t.stack) - } - - function g() { - for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - if (window.console && window.console.log && window.console.log.apply && window.console.log.apply.call && void 0 !== window.console && void 0 !== window.console.log) { - var t = ["TP:"]; - try { - for (var r = 0; r < e.length; r++) t.push(e[r]) - } catch (n) { - t = e - } - $() && (t = y(t)), "object" == _typeof(window.console.log) ? window.console.log.apply.call(this, console, t) : console.log.apply(console, t) - } - } - - var h = function () { - var e = 0; - return window.pageYOffset ? e = window.pageYOffset : e = "number" == typeof (e = document.documentElement || document.body.parentNode).scrollTop ? e.scrollTop : document.body.scrollTop, e - }, y = function (e) { - var n = ""; - try { - for (var t = 0; t < e.length; t++) try { - n += JSON.stringify(e[t]) + ", " - } catch (e) { - n += "" + e - } - return [n] - } catch (n) { - return e - } - }, w = function () { - var e, n; - return "CSS1Compat" === document.compatMode ? (e = document.documentElement.clientWidth, n = document.documentElement.clientHeight) : (e = document.body.clientWidth, n = document.body.clientHeight), { - x: e, - y: n - } - }, _ = function (e) { - e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); - var n = new RegExp("[\\?&]" + e + "=([^&#]*)").exec(location.search); - return null === n ? "" : decodeURIComponent(n[1].replace(/\+/g, " ")) - }, b = function (e) { - var n = e(location.href); - if (history && "function" == typeof history.replaceState) { - var t = "object" == _typeof(window.next) && "object" == _typeof(window.next.router) ? { - url: e(history.state.url || ""), - as: e(history.state.as || ""), - options: history.state.options - } : history.state; - history.replaceState(t, document.title, n) - } else location.href = n - }, k = function (e, n, t) { - var r = p({path: "/", expires: 730}, t && {domain: t}), o = T(); - for (var i in o) u(e, o[i]); - r.domain && l(e, r.domain), (pn.cookieDomain || pn.cookiePath) && (r.domain = pn.cookieDomain ? pn.cookieDomain : r.domain, u(e, r.domain, r.path), r.path = pn.cookiePath ? pn.cookiePath : r.path, u(e, r.domain, r.path)), u(e), J("composer", e, n, r) - }, C = function () { - return Ae.cookie.getTopLevelDomain() - }, I = function (e) { - return pn.useAidSpecifiedCookies && pn.aid ? e + "_" + pn.aid : e - }, S = function () { - var e, n = I("__pls"), t = d(n); - if (t) try { - if ((e = JSON.parse(t)) && !Array.isArray(e)) throw new Error("Push list subscriptions must be an array") - } catch (e) { - m("Can't get push list subscriptions", e) - } - return e - }, E = function (e) { - n = e; - var t = C(); - J("vx", "__pat", n, {path: "/", expires: 30, domain: t}) - }, T = function () { - var e, n = []; - n.push(document.domain); - for (var t = (null === (e = document.domain) || void 0 === e ? void 0 : e.split(".")) || []; t.length >= 2;) n.push("." + t.join(".")), t.shift(); - return n - }, P = function (e) { - var n = G(e); - return "boolean" === t.type(n) || "string" === t.type(n) && n.length ? !0 === n || "true" === n ? c.ENABLED : c.DISABLED : c.NOT_DETECTED - }, x = function () { - var e = G("__pnahc"), n = !1; - return void 0 === e && (e = "0", n = !0), {cookieValue: parseInt(e, 10), isFirst: n} - }, A = {}, O = function (e) { - A[e] ? A[e].counter++ : A[e] = {counter: 1, waiters: []} - }, M = function (e, n) { - if (A[e] && (A[e].counter--, A[e].counter <= 0)) { - var t = []; - A[e].waiters.forEach((function (e) { - t.push(e) - })), delete A[e], t.forEach((function (e) { - e(void 0 !== n ? n : {}) - })) - } - }, N = function () { - return navigator.userAgent || navigator.vendor || window.opera - }, R = function () { - return o.getTinypassVersion().indexOf("SNAPSHOT") >= 0 - }, L = function () { - return "https:" === document.location.protocol - }, U = function (e, n) { - var t = [], r = e.indexOf(n); - return -1 === r ? t.push(e) : (t.push(e.substr(0, r)), t.push(e.substr(r + 1))), t - }, D = function (e) { - var n, t, r = U(e, "="); - void 0 !== e && (n = r[0], t = r[1]); - var o = ""; - return void 0 !== n && (o += encodeURIComponent(decodeURIComponent(n))), void 0 !== t && (o += "=" + encodeURIComponent(decodeURIComponent(t))), o - }, j = function (e) { - if (!e) return ""; - var n = function (e) { - var n = e.indexOf("?"), t = e.indexOf("#"), r = !1; - -1 !== t && (r = !0); - var o = !1; - -1 !== n && (o = !0), r && o && t < n && (o = !1); - var i, a = "", s = ""; - if (o) { - var c = U(e, "?"); - if (i = c[0], r) { - var u = U(c[1], "#"); - a = u[0], s = u[1] - } else a = c[1] - } else if (r) { - var l = U(e, "#"); - i = l[0], s = l[1] - } else i = e; - return {schemeDomainAndPath: i, queryString: a, hash: s, hasQueryString: o, hasHash: r} - }(e = e.replace(/^((%20)|\s)+/, "")), t = encodeURI(decodeURI(n.schemeDomainAndPath)); - return n.hasQueryString && (t += "?" + function (e) { - var n = ""; - if (void 0 !== e) for (var t = e.split("&"), r = 0; r < t.length; r++) r > 0 && (n += "&"), n += D(t[r]); - return n - }(n.queryString)), n.hasHash && (t += "#" + encodeURIComponent(decodeURIComponent(n.hash))), t - }, V = function (e) { - var n = parseInt(e, 10); - return !(isNaN(parseFloat(n)) || n < 0 || n > 255) - }, F = function (e) { - var n = document.createElement("a"); - n.href = /^https?:\/\//i.test(e) ? e : "http://" + e; - var t = n.hostname; - return 0 === t.indexOf("www.") && (t = t.replace("www.", "")), t - }; - - function B() { - return null !== N().match(/Version.+Safari/) - } - - var q = function (e, n) { - return new RegExp("\\?" + n, "gi").test(e) ? e.split("&").length > 1 ? e.replace(new RegExp(n + "[^&]+&?", "gi"), "") : e.replace(new RegExp("\\?" + n + "[^&]+&?", "gi"), "") : new RegExp("\\&" + n, "gi").test(e) ? e.replace(new RegExp("\\&" + n + "[^&]+", "gi"), "") : e - }, z = function (e) { - try { - var n = new Error; - H({trace: ee(n.stack, 6), desc: "clearing __tp cookie", accessTokenList: e}) - } catch (e) { - } - }, H = function (e) { - try { - var n = pn.user.getProvider(), t = JSON.stringify([p({ - aid: pn.aid, - up: n.getName(), - url: window.location.href, - t: (new Date).getTime(), - v: o.getTinypassVersion(), - tags: ["sdk"] - }, e)]); - pn.api.callApi("/anon/error/log", {log_message: t}) - } catch (e) { - } - }; - var W = function (e) { - e || (e = 730); - var n = pn.getMaxCookieExpirationInDays(); - if (null !== n) { - var t; - "number" == typeof e ? (t = new Date).setDate(t.getDate() + e) : t = e; - var r = new Date; - if (r.setDate(r.getDate() + n), t > r) return n - } - return e - }, G = function (e) { - return r.get(e) - }, J = function (e, n, t, o) { - var i; - a[e] || m("CONSENT ERROR: Consent module was not initiliazed"), Q(n, t, o, (null === (i = a[e]) || void 0 === i ? void 0 : i.cookie.set) || r.set) - }, Q = function (e, n, t, o) { - void 0 === o && (o = r.set), t = t || {}, "11C6aYHwtb" === pn.aid ? (t.samesite = "none", t.secure = !0) : t.samesite = "lax", t.expires && (t.expires = W(t.expires)), o(e, n, t), void 0 !== i.synchronizeCookie && i.synchronizeCookie(e, n, t.expires) - }, X = "__tp-", Y = "-expiration", $ = function () { - var e = ["__webdriver_evaluate", "__selenium_evaluate", "__webdriver_script_function", "__webdriver_script_func", "__webdriver_script_fn", "__fxdriver_evaluate", "__driver_unwrapped", "__webdriver_unwrapped", "__driver_evaluate", "__selenium_unwrapped", "__fxdriver_unwrapped"], - n = ["_phantom", "__nightmare", "_selenium", "callPhantom", "callSelenium", "_Selenium_IDE_Recorder"]; - for (var t in n) { - if (window[n[t]]) return !0 - } - for (var r in e) { - var o = e[r]; - if (window.document[o]) return !0 - } - for (var i in window.document) if (i.match(/\$[a-z]dc_/) && window.document[i].cache_) return !0; - return !!(window.external && window.external.toString && window.external.toString() && -1 !== window.external.toString().indexOf("Sequentum") || window.document.documentElement.getAttribute("selenium") || window.document.documentElement.getAttribute("webdriver") || window.document.documentElement.getAttribute("driver")) - }, K = function () { - return G("__tac") - }, Z = function () { - return document.referrer - }, ee = function (e, n) { - return e && e.split("\n").filter((function (e, t) { - return t > 1 && t < n + 1 - })).map((function (e) { - return e.trim() - })).join("") - }, ne = function e(n, t) { - try { - return n() - } catch (n) { - return t ? e(t) : null - } - }, te = function (e, n) { - return void 0 === n && (n = !1), ne((function () { - return JSON.parse(e) - }), (function () { - return n ? JSON.parse(window.atob(e)) : null - })) || null - }, re = function () { - return Nr.isReady ? Nr.get("userSegments") : null - }; - return { - name: "util", - __private__: {getAdjustedCookieExpiration: W}, - __protected__: { - deleteTLDCookieForSpecificDomains: l, documentReady: function (e) { - var n = function n() { - document.removeEventListener("DOMContentLoaded", n), window.removeEventListener("load", n), e() - }; - "complete" === document.readyState || "loading" !== document.readyState && !document.documentElement.doScroll ? window.setTimeout(e) : (document.addEventListener("DOMContentLoaded", n), window.addEventListener("load", n)) - }, getCookie: G, setCookieConsent: J, setCookie: Q, getLocalStorageItem: function (e) { - var n = X + e, t = Ae.localStorage.get(n), r = Ae.localStorage.get(n + Y); - return r && r < Math.floor((new Date).getTime() / 1e3) ? (Ae.localStorage.remove(n), Ae.localStorage.remove(n + Y), null) : t - }, hasLocalStorage: function () { - try { - return "object" == _typeof(window.localStorage) && "function" == typeof window.localStorage.getItem - } catch (e) { - return !1 - } - }, randomStringCxCompatible: function () { - for (var e = (new Date).getTime().toString(36); e.length < 16;) e += Math.round(2147483647 * Math.random()).toString(36); - return e.substr(0, 16) - }, setLocalStorageItem: function (e, n, t, r, o) { - void 0 === o && (o = !0); - var i = (o ? X : "") + n, s = a[e]; - s ? s.localStorage.set(i, t, {expires: r}) : v("There is no such initiated consentProduct ->", e) - }, removeLocalStorageItem: function (e) { - var n = X + e; - Ae.localStorage.remove(n) - }, cameFromFbSubscriptions: function () { - return 0 === _("redirect_uri").indexOf("https://www.facebook.com/subscriptions/account-linking/confirm/") - }, logRemoveTokens: function (e) { - var n, t; - H({ - uid: null !== (n = e.uid) && void 0 !== n ? n : "n", - desc: "clearing __utp cookie", - actions: null !== (t = e.actions) && void 0 !== t ? t : "n" - }) - }, waitAllPromises: function (e) { - return Promise.all(e) - }, isInteger: function (e) { - return "number" == typeof e && isFinite(e) && Math.floor(e) === e - }, racePromise: function (e) { - return Promise.race(e) - }, isCxenseBot: function () { - var e = N(); - return /(cxensebot)/i.test(e) - }, isHttpsProtocol: L, isApplePayAllowed: function () { - var e = !1; - try { - e = B() && window.ApplePaySession && window.ApplePaySession.canMakePayments() - } catch (e) { - g("ApplePay error", e) - } - return (R() || L()) && e - }, isDevEndpoint: R, setVxUsersToDataLayer: function (e) { - var n = Nr.get("users"), t = !1, r = n ? Object.keys(n).reduce((function (e, r) { - var o; - return "VX" === (null === (o = n[r]) || void 0 === o ? void 0 : o.type) && (t = !0, e[r] = null), e - }), {}) : {}; - (n && t || e) && Nr.set("users", p(p({}, r), e)) - } - }, - toJSON: function (e, n) { - void 0 === n && (n = !1); - var t = JSON.stringify(e); - return ne((function () { - return n ? window.btoa(t) : t - })) || t - }, - parseJSON: te, - addScript: function (e, n) { - var t, r = document.createElement("script"), o = document.getElementsByTagName("script")[0]; - null === (t = o.parentNode) || void 0 === t || t.insertBefore(r, o), r.type = "text/javascript", r.async = !0, r.onload = n, r.src = e - }, - isScriptAdded: function (e) { - for (var n = document.getElementsByTagName("script"), t = 0, r = n.length; t < r; t++) if (n[t].src.indexOf(e) > -1) return !0; - return !1 - }, - fromUnderscoreToCamelCase: function (e) { - return e.slice().replace(/_[a-z]/g, (function (e) { - return e.replace("_", "").toUpperCase() - })) - }, - randomString: function (e) { - e || (e = 5); - var n = "", t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - if (window.crypto && window.crypto.getRandomValues && "function" == typeof Uint32Array) { - var r = new Uint32Array(e); - window.crypto.getRandomValues(r); - for (var o = 0; o < e; o++) n += t.charAt(r[o] % 62) - } else for (o = 0; o < e; o++) n += t.charAt(Math.floor(62 * Math.random())); - return n - }, - log: g, - debug: m, - error: v, - findCookieByName: d, - findCookiesByName: f, - removeVoucherCodeFromUrl: function (e) { - return q(e, "voucher_code") - }, - removeSharedAccountCodeFromUrl: function (e) { - return q(e, "shared_account_code") - }, - deleteCookie: u, - mapArrayIndex: function (e, n) { - return n - }, - getScroll: h, - getPageSize: function () { - return { - x: Math.max(document.documentElement.clientWidth, document.body.scrollWidth, document.documentElement.scrollWidth, document.body.offsetWidth, document.documentElement.offsetWidth), - y: Math.max(document.documentElement.clientHeight, document.body.scrollHeight, document.documentElement.scrollHeight, document.body.offsetHeight, document.documentElement.offsetHeight) - } - }, - getViewport: w, - center: function (e, n) { - var t = h(), r = w(); - return (r = { - x: r.x / 2 - e / 2, - y: r.y / 2 - n / 2 + t - }).x = Math.max(0, r.x), r.y = Math.max(10, r.y), r - }, - centerScreen: function (e, n) { - e = e || 0, n = n || 0; - var r = void 0 !== window.screenLeft ? window.screenLeft : window.screen.left, - o = void 0 !== window.screenTop ? window.screenTop : window.screen.top, i = t.winSize(); - return { - left: (i.width || document.documentElement.clientWidth || window.screen.width) / 2 - e / 2 + r, - top: (i.height || document.documentElement.clientHeight || window.screen.height) / 2 - n / 2 + o - } - }, - getQueryParamByName: _, - hasQueryParamByName: function (e) { - var n = {}; - return location.search.substr(1).split("&").forEach((function (e) { - var t = e.split("="), r = t[0], o = t[1] && decodeURIComponent(t[1]); - r in n ? n[r].push(o) : n[r] = [o] - })), n.hasOwnProperty(e) - }, - removeQueryParamByName: function (e) { - b((function (n) { - return function (e, n) { - var t, r = e.split("#"), o = r[0].split("?"); - if (r.length >= 2 && (t = r[1]), n = Array.isArray(n) ? n : [n], o.length >= 2) { - for (var i = o[1].split(/[&;]/g), a = 0; a < n.length; a++) for (var s = encodeURIComponent(n[a]) + "=", c = i.length; c-- > 0;) -1 !== i[c].lastIndexOf(s, 0) && i.splice(c, 1); - return e = o[0] + (i.length > 0 ? "?" + i.join("&") : ""), t ? e + "#" + t : e - } - return e - }(n, e) - })) - }, - setAccessTokenListCookie: function (e, n, r) { - var o = I("__ut"); - if (e && "string" === t.type(e.value)) { - var i = new Date, a = {domain: void 0, path: "/", expires: 730, secure: !0}; - e.cookie_domain && "localhost" !== e.cookie_domain && t.inArray(e.cookie_domain, T()) >= 0 && (a.domain = e.cookie_domain), pn.cookieDomain && (a.domain = pn.cookieDomain), pn.cookiePath && (a.path = pn.cookiePath); - var s = T(); - for (var c in s) u("__tac", s[c]), u("__tae", s[c]), u(o, s[c]); - e.value && J("composer", "__tac", e.value, a), J("composer", "__tae", i.getTime(), a), J("vx", o, n, a), "" === n && !r && z(e) - } else { - var l = T(); - if (l.push(void 0), pn.cookieDomain && l.push(pn.cookieDomain), pn.cookiePath) for (var c in l) u("__tac", l[c], pn.cookiePath), u("__tae", l[c], pn.cookiePath), u("__eea", l[c], pn.cookiePath), u(o, l[c], pn.cookiePath); - for (var c in l) u("__tac", l[c]), u("__tae", l[c]), u("__eea", l[c]), u(o, l[c]); - r || z(e) - } - }, - setTpccCookies: function () { - var e = _("tpcc"); - if (e) { - var n = new Date, t = JSON.stringify({date: n.getTime()}), r = C(); - /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(location.hostname) && (r = ""), r || (r = ""), J("vx", "tpcc_" + e, t, { - path: "/", - expires: 90, - domain: r - }) - } - }, - getCampaigns: function (e) { - var n = f(/^tpcc_.+/), t = _("tpcc"), r = "tpcc_".concat(t), o = !1; - n.forEach((function (n) { - e[n.name] = n.value, t && n.name === r && (o = !0) - })), t && !o && (e[r] = JSON.stringify({date: Date.now()})) - }, - getCustomCookies: function () { - var e = {}; - return f(/^_pc_.+/).forEach((function (n) { - e[decodeURIComponent(n.name)] = n.value - })), e - }, - ADBLOCKER_STATUS: c, - getAdblockStatus: function () { - var e = c.NOT_DETECTED, n = x(); - return pn.adblockerCookieName && (e = P(pn.adblockerCookieName)), e === c.NOT_DETECTED && (e = P("__pac")), e === c.NOT_DETECTED && (e = P("__adblocker")), function (e, n) { - e <<= 1, n === c.ENABLED ? e |= 1 : e &= -2, n !== c.NOT_DETECTED && J("vx", "__pnahc", e + "", { - path: "/", - expires: 90 - }) - }(n.cookieValue, e), e === c.ENABLED && (n.isFirst || function (e) { - return 1 == (e >> 0 & 1) - }(n.cookieValue) || (e = c.ENABLED_AFTER_DISABLED)), e - }, - getAdblockerStatusReason: function () { - return void 0 !== window.blockAdBlock ? "1" : "0" - }, - getAdblockerHistoryCookieInfo: x, - waitCall: function (e, n) { - A[e] ? A[e].waiters.push(n) : n() - }, - startCall: O, - doneCall: M, - hasCall: function (e) { - return !!A[e] - }, - debounce: function (e, n, t) { - var r; - return function () { - var o = this, i = Array.prototype.slice.call(arguments), a = t && !r; - clearTimeout(r), r = setTimeout((function () { - r = null, t || e.apply(o, i) - }), n), a && e.apply(o, i) - } - }, - throttle: function (e, n) { - var t, r, o = !1; - return function i() { - if (o) return t = arguments, void (r = this); - e.apply(this, arguments), o = !0, setTimeout((function () { - o = !1, t && (i.apply(r, t), t = r = null) - }), n) - } - }, - profile: function (e) { - function n() { - return n.__invokeCount++, e.apply(this, arguments) - } - - return Object.defineProperty(n, "__invokeCount", { - writable: !0, - value: 0 - }), Object.defineProperty(n, "invokeCount", { - get: function () { - return this.__invokeCount - } - }), n - }, - setTbcCookieFromResponse: function (e) { - e && e.browser && void 0 !== e.browser.tbc && k("__tbc", e.browser.tbc, e.browser.cookie_domain), e && e.tbc && e.tbc.cookie_value && k("__tbc", e.tbc.cookie_value, e.tbc.cookie_domain) - }, - setTacCookieFromResponse: function (e) { - var n = (new Date).getTime(), t = K(), r = function (e, r) { - !e || e === t || (k("__tac", e, r), k("__tae", n, r)) - }; - e.browser && r(e.browser.tac, e.browser.cookie_domain), e.tac && r(e.tac.cookie_value, e.tac.cookie_domain) - }, - setXbcCookieFromResponse: function (e) { - var n = "xbc"; - if (e.xbc && e.xbc.cookie_value) { - var t = {path: "/", expires: 730}; - if (e.xbc.cookie_domain && "localhost" !== e.xbc.cookie_domain && (t.domain = e.xbc.cookie_domain, l(n, e.xbc.cookie_domain)), pn.cookieDomain || pn.cookiePath) { - var r = T(); - for (var o in r) u(n, r[o]); - t.domain = pn.cookieDomain ? pn.cookieDomain : t.domain, l(n, t.domain, t.path), t.path = pn.cookiePath ? pn.cookiePath : t.path, l(n, t.domain, t.path) - } - u(n), J("composer", n, e.xbc.cookie_value, t) - } - }, - getTbcCookie: function () { - return G("__tbc") - }, - getPcidCookie: function () { - return G("_pcid") - }, - getTacCookie: K, - getAidSpecifiedName: I, - getUserTokenCookie: function () { - var e = I("__ut"), n = d(e); - return void 0 !== n && n && n.length >= 0 ? n : null - }, - getPushListsCookie: S, - setPushListsCookie: function (e) { - if (e) { - var n = I("__pls"), t = S() || []; - t.indexOf(e) > -1 || (t.push(e), u(n), J("composer", n, JSON.stringify(t), { - path: "/", - expires: 730, - domain: C() - })) - } - }, - setAppTimezoneOffsetFromResponse: function (e) { - e && e.browser && void 0 !== e.browser.app_timezone_offset ? E(e.browser.app_timezone_offset) : e && void 0 !== e.timezone_offset && E(e.timezone_offset) - }, - setAppTimezoneOffset: E, - getAppTimezoneOffset: function () { - return null == n && (n = G("__pat")), n || 0 - }, - getBrowserTimezoneOffset: function () { - return -Math.round((new Date).getTimezoneOffset()) - }, - str2timestamp: function (e) { - if (void 0 !== e && 0 !== e.length) { - if ("string" != typeof e && (e = "" + e), (e = e.trim()).match(/^[0-9]{0,10}$/)) return parseInt(e); - if (e.match(/^[0-9]{13,}$/)) return parseInt(e) / 1e3; - var n = Date.parse(e); - if (n) return n / 1e3; - if ((e = (e = (e = (e = e.replace(/00:([0-9]{2}(:[0-9]{2})?\s*[AP]M)/i, "12:$1").replace(/([0-9]{2})([AP|M])/i, "$1 $2")).replace(/\s*(at|@|\-|on|\|)\s*/gi, " ")).replace(/\s*(mon(day)?|tue(s?day)?|wed(nesday)?|thu((rs)?day)?|fri(day)?|sat(urday)?|sun(day)?)\s*/gi, "")).replace(/([0-9]{1,2})(st|nd|rd|th)/, "$1")).match(/\s+ET$/)) e = 240 === (new Date).getTimezoneOffset() ? e.replace(/\s+ET$/, " EDT") : e.replace(/\s+ET$/, " EST"); - if (e = e.trim(), n = Date.parse(e)) return n / 1e3; - var t = e.match(/!^([a-z]+)[-/ ]([0-9]+)[-/ ]([0-9]+)(.*)$!i/); - if (t ? e = t[2] + " " + t[1] + " " + t[3] + t[4] : (t = e.match(/!^([0-9]+)[-/ ]([a-z]+)[-/ ]([0-9]+)(.*)$!i/)) && (e = t[1] + " " + t[2] + " " + t[3] + t[4]), n = Date.parse(e)) return n / 1e3 - } - }, - getPossibleCookieDomains: T, - isMobileTabletIOs: function () { - var e = N(); - return /iPad|iPhone|iPod/.test(e) && !window.MSStream - }, - isIphone: function () { - var e = N(); - return /iPhone/.test(e) && !window.MSStream - }, - isIOS: function () { - var e = N(); - return /iPad|iPhone|iPod/.test(e) && !window.MSStream - }, - isIOsUiWebView: function () { - var e = N(); - return /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e) - }, - isSafariOrIOsUiWebView: function () { - var e = N(); - return /(iPhone|iPod|iPad).*AppleWebKit/i.test(e) - }, - isSafariOrUiWebView: function () { - var e = N(); - return /(Macintosh|iPhone|iPod|iPad)(?!.*Chrome)(?!.*Firefox)(?!.*Opera)(?!.*MSIE)(?!.*Trident)(.*AppleWebKit|.*Safari)/i.test(e) - }, - isFBOrInstWebView: function () { - var e = N(); - return e.indexOf("FBAN") > -1 || e.indexOf("FBAV") > -1 || e.indexOf("Instagram") > -1 - }, - isAndroid: function () { - var e = N(); - return /(android)/i.test(e) - }, - isSafari: B, - isIE: function () { - var e = -1 !== (navigator && navigator.appVersion || "").indexOf("MSIE"), - n = (navigator && navigator.userAgent || "").indexOf("Trident/") > 0; - return e || n - }, - isCriOS: function () { - return -1 !== (navigator && navigator.userAgent || "").indexOf("CriOS") - }, - isEdge: function () { - return /Edg(e?)/i.test(N()) - }, - isRelativeUrl: function (e) { - return /^\/(?:\w+|\.{1,2}\/\w+)/.test(e) - }, - prepareUrlParameter: j, - getReferrer: Z, - getHostname: F, - extractCookieDomain: function (e) { - if (e && e.length && "." === e[0]) return e; - var n = e || window.location.href, t = F(n); - return function (e) { - var n = e.split("."), t = !0; - return 4 === n.length && V(n[0]) && V(n[1]) && V(n[2]) && V(n[3]) || (t = !1), t - }(t) ? t : "localhost" === t ? null : "." + t - }, - setCurrentDomainFromResponse: function (e) { - e && void 0 !== e.browser && void 0 !== e.browser.cookie_domain && M("domainIsReceived", e.browser.cookie_domain), e && e.tbc && e.tbc.cookie_domain && M("domainIsReceived", e.tbc.cookie_domain) - }, - getCurrentDomainFromCookie: function (e, n) { - void 0 === n && (n = !1); - try { - return te(G(e), n).domain - } catch (e) { - O("domainIsReceived") - } - }, - isBot: $, - getAffiliateToken: function (e) { - var n = window.location.hash.slice(1); - if (n) { - var t = n.split("="), r = t[0], o = t[1]; - r && o && r === e && (b((function (e) { - return e.split("#")[0] - })), s = o) - } - return s - }, - removeAffiliateToken: function () { - s = "" - }, - asUint8Array: function (e) { - for (var n = new Uint8Array(e.length), t = e.split(""), r = 0; r < e.length; r++) n[r] = t[r].charCodeAt(0); - return n - }, - setUserSegments: function (e) { - var n = e.userSegments || {}, t = Object.keys(n).reduce((function (e, t) { - var r = n[t].segments; - return Array.isArray(r) && r.length && (e[t] = {segments: n[t].segments}), e - }), {}); - Nr.set("userSegments", Object.keys(t).length ? t : null) - }, - getPageViewContext: function () { - var e = Nr.isReady && Nr.get("content") || {}, - n = e.createdAt ? new Date(e.createdAt).getTime() : 0; - return (!n || isNaN(n)) && (n = void 0), { - pageTitle: e.title || window.document.title, - referrerUrl: j(Z() || window.document.referrer), - url: j(window.location.href), - pageViewId: Nr.isReady && Nr.get("pageViewId") || null, - author: (e.authors || []).join(","), - created: n, - section: e.section, - tags: e.tags, - contentType: e.type || "" - } - }, - getBrowserId: function () { - return Nr.isReady ? Nr.get("browserId") : null - }, - getCookieConsents: function () { - return Nr.utils.getConsent() || Nr.utils.notAcquiredConsent - }, - getUserSegments: re, - getUserSegmentsString: function () { - return JSON.stringify(re()) - }, - requireJsFile: function (e) { - return new Promise((function (n, t) { - var r = document.createElement("script"); - r.onload = n, r.onerror = n, r.type = "text/javascript", r.charset = "utf-8", r.async = !0, r.src = e, document.getElementsByTagName("head")[0].appendChild(r) - })) - } - } - }() - }), pn.util = pn.container.resolve("util"); - var ao = "composer-control-policy", so = "composer-request-control-policy", co = function (e) { - var n = {}, t = e; - if (e) { - if ("object" != _typeof(e)) try { - t = JSON.parse(e) - } catch (e) { - } - n = ["deny-web", "deny-all", "deny-fbia"].reduce((function (e, n) { - return t[n] && (e[n] = t[n]), e - }), {}) - } - return n - }, uo = function (e) { - var n = !1, t = Object.keys(e).reduce((function (t, r) { - return function (e) { - return !!e && Math.ceil(Date.now() / 1e3) <= e - }(e[r]) ? t[r] = e[r] : n = !0, t - }), {}); - return {needToRemove: !Object.keys(t).length, needToUpdate: n, newValue: t} - }; - pn.container.register("composerControlPolicy", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("localStorage"), t = co(n.get(ao)), r = function (e) { - var r = uo(t), o = r.needToUpdate, i = r.needToRemove, a = r.newValue; - t = p(p({}, a), e), (o || e) && n.set(ao, JSON.stringify(t)), !e && i && n.remove(ao) - }; - r(); - var o = function (e) { - return r(), !!t["deny-all"] || !!t[e] - }; - return { - get denyFbia() { - return o("deny-fbia") - }, get denyWeb() { - return o("deny-web") - }, get denyAll() { - return o("deny-all") - }, __private__: { - setPolicyByRequest: function (e) { - var n; - if (e.getAllResponseHeaders().includes(so)) { - var t = e.getResponseHeader(so); - t && r(((n = {})[t] = function (e) { - return void 0 === e && (e = 15), Math.ceil(Date.now() / 1e3) + 60 * e - }(), n)) - } - }, checkLS: function () { - t = co(n.get(ao)) - } - } - } - }() - }), pn.composerControlPolicy = pn.container.resolve("composerControlPolicy"); - var lo = function () { - pn.container.resolve("jqUtils"); - var e, n = pn.container.resolve("util"), t = pn.container.resolve("ajax"), r = n.findCookieByName(/__TP_*/); - if (void 0 !== window._tpm && void 0 !== window._tpm.paywallID) { - var o = window._tpm.paywallID; - e = n.__protected__.getCookie("umc_" + o) - } - var i = function () { - return pn.getApiEndpoint() - }, a = function (t, o) { - var i = n.__protected__.getCookie("__tac"); - (void 0 === t || !t) && (t = {}), t.aid = pn.aid, e && (t.umc = e), r && (t.tp_access_token_v2 = r), i && (t.tac = i), !t.user_provider && o && !o.isv && (t.user_provider = o.getName()), (void 0 === t.user_token || !t.user_token) && o && !o.isv && (t.user_token = "string" == typeof o.getToken() ? o.getToken() : ""); - var a = n.getAffiliateToken(pn.affiliateTokenName); - a && (t.affiliate_token = a) - }; - - function s(e, r, o, s, c, u) { - var l; - n.debug("Calling API method: " + e), l = void 0 !== s ? s : i(), l += e, (void 0 === r || !r) && (r = {}); - var d, f, m = n.getTbcCookie(); - m && (r.tbc = m), pn.user && (d = pn.user.getProvider()), a(r, d), f = function (e) { - n.debug("API Response", e), e && (n.setTbcCookieFromResponse(e), n.setAppTimezoneOffsetFromResponse(e), n.setCurrentDomainFromResponse(e)), void 0 !== o && o(e) - }; - var v = function (e) { - var n = "/access/list", t = "/access/check"; - if (e !== n && e !== t && "/user/access/list" !== e && "/user/access/check.jwt" !== e) return null; - var r = Math.floor((new Date).getTime() / 1e3); - return e === n ? { - code: 0, - count: 0, - data: [], - limit: 0, - offset: 0, - total: 0, - ts: r - } : e === t ? { - code: 0, - ts: 1548942314, - access: { - access_id: null, - parent_access_id: null, - granted: !1, - resource: null, - user: null, - expire_date: r - } - } : {code: 403, ts: r, message: "User doesn't have permission to call this method"} - }(e); - if (null === v || pn.user.getProvider().isUserValid()) { - !function (e) { - !pn.isDoubleOptInCheckOnAccessCheckEnabled || "/access/check" === e && pn.doubleOptIn.check() - }(e); - var g = r.aid, h = p({}, r); - delete h.aid; - var y = {type: null != u ? u : "POST", dataType: "json", data: h}; - l += "?aid=" + g, y.url = l, c && (y.async = !1), y.success = function (e) { - f(e) - }, y.error = function (e) { - var t = {code: 503, message: "Error: Received error when requesting API response from URL: " + l}; - n.log(t.message), f(t) - }, t.request(y) - } else f(v) - } - - return { - name: "api", callApi: function (e, n, t, r, o, i) { - return s(e, n, t, r, o, i) - }, getEndpoint: function () { - return i() - }, getCallParams: function (e, n) { - return a(e, n) - } - } - }(); - pn.container.register("api", {useValue: lo}), pn.api = pn.container.resolve("api"); - var po = function () { - var e, n, t, r, o, i, a, s, c, u, l, d = pn.container.resolve("jqUtils"), p = pn.container.resolve("util"), - f = {}, m = {}, v = [], g = {}, - h = (e = {}, i = 1, a = window, s = !1, u = "addEventListener", l = a[c = "postMessage"], e[c] = function (e, n, t) { - !n || (e = "string" == typeof e ? e : d.param(e), t = t || parent, l ? t[c](e, n.replace(/([^:]+:\/\/[^\/]+).*/, "$1")) : n && (t.location = n.replace(/#.*$/, "") + "#" + +new Date + i++ + "&" + e)) - }, e.receiveMessage = o = function (e, i, c) { - l ? (e && (r && o(), r = function (n) { - if ("string" == typeof i && n.origin !== i || d.isFunction(i) && i(n.origin) === s) return s; - e(n) - }), a[u] ? a[e ? u : "removeEventListener"]("message", r, s) : a[e ? "attachEvent" : "detachEvent"]("onmessage", r)) : (n && clearInterval(n), n = null, e && (c = "number" == typeof i ? i : "number" == typeof c ? c : 100, n = setInterval((function () { - var n = document.location.hash, r = /^#?\d+&/; - n !== t && r.test(n) && (t = n, e({data: n.replace(r, "")})) - }), c))) - }, e), y = function (e, n) { - var t = {}, r = {true: !0, false: !1, null: null}; - return e.replace(/\+/g, " ").split("&").forEach((function (e, o) { - var i = o.split("="), a = ""; - try { - a = decodeURIComponent(i[0]) - } catch (e) { - return - } - var s, c = t, u = 0, l = a.split("]["), d = l.length - 1; - if (/\[/.test(l[0]) && /\]$/.test(l[d]) ? (l[d] = l[d].replace(/\]$/, ""), d = (l = l.shift().split("[").concat(l)).length - 1) : d = 0, 2 === i.length) if (s = decodeURIComponent(i[1]), n && (s = s && !isNaN(s) ? +s : "undefined" === s ? void 0 : void 0 !== r[s] ? r[s] : s), d) for (; u <= d; u++) c = c[a = "" === l[u] ? c.length : l[u]] = u < d ? c[a] || (l[u + 1] && isNaN(l[u + 1]) ? {} : []) : s; else Array.isArray(t[a]) ? t[a].push(s) : void 0 !== t[a] ? t[a] = [t[a], s] : t[a] = s; else a && (t[a] = n ? void 0 : "") - })), t - }; - var w = function (e, n, t) { - t && C(t) && !(t in m) ? p.error("Cannot send message to unmanaged iframe: " + t) : t && m[t].element && ("popup" === m[t].config.displayMode || "popup" !== m[t].config.displayMode && m[t].element.contentWindow ? _(e, n, t) : (v.push({ - event: e, - params: n, - recipient: t - }), d.on(m[t].element, "load", function (e) { - return function () { - var n = v.filter((function (n) { - return n.recipient === e - })); - v = v.filter((function (n) { - return n.recipient !== e - })); - for (var t = n.length; t--;) { - var r = n.pop(); - _(r.event, r.params, r.recipient) - } - } - }(t)))) - }, _ = function (e, n, t) { - var r, o = {}, i = "popup" === m[t].config.displayMode ? "opener" : "parent"; - o.sender = C(t) ? i : t, o.recipient = C(t) ? t : i, o.event = e, o.params = n; - var a = m[t].element; - r = "popup" === m[t].config.displayMode ? m[t].container : a && a.contentWindow ? a.contentWindow : a && "[object Window]" === a.toString() ? m[t].element : window[i], h.postMessage(JSON.stringify(o), f[t].postMessageUrl, r) - }; - var b = function (e) { - f[e.iframeId] = { - iframeConfig: null, - receive: null, - postMessageUrl: null, - initializedListener: !1, - initializedKeystrokeHandler: !1 - }, m[e.iframeId] = e - }, k = function (e) { - return !(!f[e] || !f[e].iframeConfig) - }, C = function (e) { - return !(f[e] && f[e].iframeConfig) - }, I = function (e) { - var n = S(e); - return n.showCloseButton && "inline" !== n.displayMode - }, S = function (e) { - var n = f[e], t = n && n.iframeConfig && n.iframeConfig.iframe; - return t && t.config - }; - - function E(e) { - var n, t, r = !1; - try { - n = JSON.parse(e.data) - } catch (t) { - try { - (n = y(e.data)) && (r = !0) - } catch (n) { - return void p.debug("Error parsing postMessage: " + e.data) - } - } - if (T(n), r) { - var o; - for (var i in m) (t = m[i]).config.isCurtain && (o = !0, t.config.parent && f[t.config.parent].receive && f[t.config.parent].receive(n), f[i].receive && f[i].receive(n)); - o || p.debug("Error parsing postMessage: " + e.data) - } else if (!C(n.sender) || n.sender && n.sender in m) { - if (p.debug((k(n.sender) ? "iframe(" + n.recipient : "the parent") + ") received event '" + n.event + "' from iframe(" + n.sender + ")", n), f[n.sender].receive && f[n.sender].receive(n), m[n.sender] && ((t = m[n.sender]).config.parent && f[t.config.parent].receive)) { - n.sender = t.config.parent, f[t.config.parent].receive(n, !0) - } - } else p.debug("Received message from unmanaged iframe: " + n.sender) - } - - var T = function (e) { - (g[e.event] || []).forEach((function (n) { - n(e) - })) - }; - return { - name: "postmessage", init: function (e, n) { - if (b(e.iframe), e.postMessageUrl) { - if (e.iframe.iframeId) { - f[e.iframe.iframeId].initializedKeystrokeHandler || (f[e.iframe.iframeId].initializedKeystrokeHandler = !0, d.delegate(window, "#".concat(e.iframe.iframeId), "keyup", (function (e) { - return function (e) { - 27 === e.keyCode && k(e.data.iframeId) && I(e.data.iframeId) && w("close", null, e.data.iframeId) - }(e) - }))), f[e.iframe.iframeId].postMessageUrl = e.postMessageUrl, f[e.iframe.iframeId].initializedListener || (f[e.iframe.iframeId].initializedListener = !0, f[e.iframe.iframeId].receive = e.receive, h.receiveMessage(E)), f[e.iframe.iframeId].iframeConfig = e; - var t = n || {}; - t.height = document.documentElement.offsetHeight, t.width = e.iframeParams && e.iframeParams.width ? e.iframeParams.width : document.documentElement.offsetWidth, w("loaded", t, e.iframe.iframeId) - } - } else p.error("Must specify postMessageUrl to send and receive postMessages") - }, __protected__: { - isIframeManaged: function (e) { - var n = m[e]; - return n && C(n) - } - }, send: w, removeIframe: function (e) { - delete m[e], delete f[e] - }, broadcast: function (e, n, t) { - for (var r in m) m.hasOwnProperty(r) && r === t || w(e, n, r) - }, subscribe: function (e, n) { - g[e] = g[e] || [], g[e].push(n) - }, unsubscribe: function (e, n) { - g[e] instanceof Array && (g[e] = g[e].filter((function (e) { - return e !== n - }))) - } - } - }(); - pn.container.register("postmessage", {useValue: po}), pn.postmessage = pn.container.resolve("postmessage"); - var fo = function () { - var e = pn.container.resolve("jqUtils"), n = pn.container.resolve("util"), - t = pn.container.resolve("postmessage"); - return { - name: "eventUtils", createEventManager: function (r) { - var o, i = {}; - for (o = 0; o < r.length; o++) i[r[o]] = []; - var a = { - addEvent: function (e) { - void 0 === i[e] && (i[e] = []) - }, hasIframeCallback: function (e, n) { - var t, r; - if (i[e] && i[e].length > 0) for (r = 0, null, t = null; r < i[e].length; ++r) if ("object" == _typeof(t = i[e][r]) && n === t.iframeId) return !0; - return !1 - }, hasCallback: function (e) { - return i[e] && i[e].length > 0 - }, registerCallback: function (e, t) { - var r, o, a, s = "string" == typeof e ? e : null, c = "object" == _typeof(e) ? e : null; - if (s) { - if (r = "function" == typeof t ? t : null, void 0 === i[s]) return; - i[s].push(r) - } - if (c) for (a in o = "string" == typeof t ? t : null, i) "function" == typeof c[a] && (n.debug("Registering " + a + " callback for iframe " + o), i[a].push({ - iframeId: o, - callback: c[a] - })) - }, fireCallbacks: function (e, n, t, r) { - return a.fire(t, e, r, n) - }, fire: function (r, o, a, s, c, u) { - var l, d, p, f = !1, m = []; - s && m.push(s), c && m.push(c), u && m.push(u); - var v = s && s.resultCallbackId, g = function (t) { - if (a) try { - if (m.length > 1) return d.apply(null, m); - if ("loginRequired" === o) { - var i = e.deepExtend({}, t.term); - return delete t.term, d(t, r, i) - } - return d(t, r) - } catch (e) { - n.debug(e) - } - }; - if (void 0 !== i[o]) { - for (p = 0, l = null, d = null; p < i[o].length; ++p) { - if ("function" == typeof (d = i[o][p])) n.debug("firing callback for event '" + o + "' from iframe(" + r + ")"), l = g(s), f = !0; else if ("object" == _typeof(d)) { - if (r !== d.iframeId) continue; - n.debug("firing callback for event '" + o + "' from iframe(" + r + ")"), d = d.callback, l = g(s), f = !0 - } - v && (s.result = l, s.event = o, t.send("resultCallback", s, r)) - } - return !f && v && (s.callbackNotFound = !0, s.event = o, t.send("resultCallback", s, r)), l - } - }, fireCallbacksAndStopOnFirstFalse: function (e, t, r, o) { - for (var a = [], s = 4; s < arguments.length; s++) a[s - 4] = arguments[s]; - if (void 0 === i[e]) return !0; - for (var c = !0, u = 0; u < i[e].length; u++) { - var l = i[e][u]; - if ("function" == typeof l) { - n.debug("firing callback for event '" + e + "'"); - try { - var d = []; - if (d.push(t), d.push(r), d.push(o), d = d.concat([].slice.call(a)), !1 === l.apply(null, d)) { - n.debug("callback for event '" + e + "' returned false"), c = !1; - break - } - } catch (t) { - n.debug("firing callback for event '" + e + "' failed", t) - } - } - } - return c - } - }; - return a - } - } - }(); - pn.container.register("eventUtils", {useValue: fo}), pn.eventUtils = pn.container.resolve("eventUtils"); - var mo = function () { - var e = pn.container.resolve("util"), n = pn.container.resolve("api"), t = pn.container.resolve("eventUtils"), - r = pn.container.resolve("localStorage"), o = t.createEventManager(["userChanged", "logout"]), - i = "janrain", a = function () { - return e.getUserTokenCookie() - }, s = function () { - var e = a(); - return !!(void 0 !== e && e && e.length >= 0) - }, c = !1, u = !1, l = {onCaptureSessionCreated: []}, d = { - loginRequiredScreen: "signIn", - appName: null, - appId: null, - clientId: null, - settings: null, - disableLogout: !1, - startCapture: !1 - }, p = {register: "traditionalRegistration", login: "signIn"}; - var f = function (e) { - return e && p.hasOwnProperty(e.startScreen) ? p[e.startScreen] : d.loginRequiredScreen - }; - var m = function () { - d.disableLogout || e.setAccessTokenListCookie(void 0, void 0, !0) - }, v = !0, g = function () { - var e = window.janrain; - return e && e.capture && e.capture.ui && e.capture.ui.hasActiveSession() - }; - - function h() { - e.log("JANRAIN:", "Processing janrain user"), v ? v = !1 : e.startCall("refreshUserToken"), e.log("JANRAIN:", "hasActiveSession:" + g()); - var t = y(); - if (!g()) return e.log("JANRAIN:", "No token found. Done processing user"), m(), void e.doneCall("refreshUserToken"); - if (s()) return e.log("JANRAIN:", "Using __ut. Done processing user"), void e.doneCall("refreshUserToken"); - var r = {janrain_capture_token: t, url: e.prepareUrlParameter(window.location.href)}; - n.callApi("/anon/janrain/verifyAccountInfo", r, (function (n) { - if (n && n.access) try { - e.log("JANRAIN:", "Verify success. Done processing user"), e.setAccessTokenListCookie(n.access.access_token, n.access.user_token); - var t = {access_token: n.access.access_token, user_token: n.access.user_token}; - n.access.user && (t.user = { - uid: n.access.user.uid, - email: n.access.user.email, - firstName: n.access.user.first_name, - lastName: n.access.user.last_name, - valid: n.access.user.valid - }), function (e, n) { - if (void 0 !== l[e] && 0 !== l[e].length) for (var t = 0; t < l[e].length; ++t) l[e][t].apply(null, arguments) - }("onCaptureSessionCreated", t), o.fireCallbacks("userChanged", t, void 0, !0) - } finally { - e.doneCall("refreshUserToken") - } else e.log("JANRAIN:", "Verify failed") - })) - } - - var y = function () { - return r.get("janrainCaptureToken") - }, w = function () { - var n = window.janrain; - n.events.onProviderLogoutComplete.addHandler((function () { - m() - })), n.events.onCaptureSessionEnded.addHandler((function (n) { - e.log("JANRAIN: Events received for logout", n), m() - })), _() - }, _ = function () { - if (g()) return e.log("JANRAIN:", "Found early active session via function"), void h(); - if (!g() && !s() && !y()) return e.log("JANRAIN:", "not found __ut cookie and janrain token"), void h(); - var n = !1, t = window.janrain; - t.events.onCaptureSessionFound.addHandler((function (t) { - b() ? n && (e.log("JANRAIN: Events received for logged in user", t), h()) : h() - })), t.events.onCaptureSessionNotFound.addHandler((function (t) { - b() ? n && (e.log("JANRAIN: Events received for logged out user", t), h()) : h() - })), t.events.onCaptureFederateNoLogin.addHandler((function (e) { - n = e - })), t.events.onCaptureFederateLogin.addHandler((function (n) { - e.log("JANRAIN: Events received for SSO login", n), h() - })) - }, b = function () { - var e = window.janrain; - return e && e.settings && e.settings.capture && e.settings.capture.federate - }; - - function k(e, n) { - if (!c) throw "Janrain is not configured"; - var t = 0; - !function r() { - var o = window.janrain; - if (u) o.events[e].addHandler((function (e) { - n(e) - })); else { - if (t > 100) throw "Janrain is not initialized"; - t++, window.setTimeout(r, 100) - } - }() - } - - return { - name: i, isv: !1, init: function (n) { - if (!c) { - if (!n.appName || !n.appId || !n.clientId) throw "Must specify appName, appId, and clientId to initialize janrain"; - for (var t in d) void 0 !== n[t] && (d[t] = n[t]); - if (n.settings && (d.settings = n.settings), n.loginRequiredScreen && (d.loginRequiredScreen = n.loginRequiredScreen), d.settings) { - "object" != _typeof(window.janrain) && (window.janrain = {}), "object" != _typeof(window.janrain.settings) && (window.janrain.settings = {}); - var r = window.janrain; - r.settings = d.settings, "object" != _typeof(window.janrain.settings.capture) && (window.janrain.settings.capture = {}), r.settings.appUrl = "https://" + d.appName + ".rpxnow.com", r.settings.capture.captureServer = "https://" + d.appName + ".janraincapture.com", r.settings.capture.appId = d.appId, r.settings.capture.clientId = d.clientId; - var o, i = d.appName.replace(/\./g, "-"), a = "http://widget-cdn.rpxnow.com/load/" + i, - s = "https://rpxnow.com/load/" + i; - o = e.__protected__.isHttpsProtocol() ? s : a, pn.push(["addExternalLibrary", o, function () { - r.ready = !0 - }]) - } - e.log("JANRAIN:", "start refresh user token"), e.startCall("refreshUserToken", 3e4), e.waitCall("refreshUserToken", (function () { - e.log("JANRAIN:", "end refresh user token") - })), function () { - var n = 100, t = 0; - - function r() { - var o = window.janrain; - if (window.janrain && window.janrain.ready && window.janrain.capture && window.janrain.capture.ui && window.janrain.capture.ui.hasActiveSession) (function () { - var n = window.janrain, t = function (t) { - n.events[t].addHandler((function () { - for (var n = [], r = 0; r < arguments.length; r++) n[r] = arguments[r]; - e.log("JANRAIN: ", t, n) - })) - }; - pn.debug && n.events.captureEvents.forEach(t) - })(), w(), d.startCapture && o.capture.ui.start(), u = !0; else { - if (t > n) throw "Janrain is not initialized"; - t++, window.setTimeout(r, 100) - } - } - - r() - }(), c = !0, pn.zIndexes = {backdrop: 900, modal: 950, close: 990}; - var l = function (n) { - e.log("JANRAIN: onLogin"), window.janrain.capture.ui.modal.close(), h() - }; - k("onCaptureLoginSuccess", l), k("onCaptureRegistrationSuccess", l) - } - }, isUserValid: s, getToken: a, getName: function () { - return i - }, onLoginSuccess: function (n) { - e.setAccessTokenListCookie({value: n.token_list, cookie_domain: n.cookie_domain}, n.user_token) - }, login: function (e, n) { - if (!c) throw "Janrain is not configured"; - var t = 0; - !function r() { - if (u) try { - window.janrain.capture.ui.renderScreen(f(n)), "function" == typeof e && function (e, n) { - l[e] = [], l[e].push(n) - }("onCaptureSessionCreated", e) - } catch (e) { - return t++, void window.setTimeout(r, 100) - } else { - if (t > 100) throw "Janrain is not initialized"; - t++, window.setTimeout(r, 100) - } - }() - }, logout: function (e) { - if (!c) throw "Janrain is not configured"; - var n = 100, t = 0, r = 0; - - function i() { - r > n ? e() : g() ? (r++, window.setTimeout(i, 100)) : e() - } - - m(), function r() { - if (u) { - var a = window.janrain; - a.capture.ui.modal.close(), a.capture.ui.endCaptureSession(), o.fireCallbacks("logout", null, void 0, !0), e && i() - } else { - if (t > n) throw "Janrain is not initialized"; - t++, window.setTimeout(r, 100) - } - }() - }, isConfigured: function () { - return c - }, getLoginRequiredScreen: f, addEventHandler: k, registerCallback: function (e, n) { - o.addEvent(e), o.registerCallback(e, (function (e) { - n(e) - })) - } - } - }(); - pn.container.register("janrain", {useValue: mo}), pn.janrain = pn.container.resolve("janrain"); - var vo = { - name: "sha1", hash: function (e, n) { - function t(e, n) { - return e << n | e >>> 32 - n - } - - function r(e) { - var n, t = ""; - for (n = 7; n >= 0; n--) t += (e >>> 4 * n & 15).toString(16); - return t - } - - n = n || 32; - var o, i, a, s, c, u, l, d, p, f = new Array(80), m = 1732584193, v = 4023233417, g = 2562383102, - h = 271733878, y = 3285377520; - e = function (e) { - e = e.replace(/\r\n/g, "\n"); - for (var n = "", t = 0; t < e.length; t++) { - var r = e.charCodeAt(t); - r < 128 ? n += String.fromCharCode(r) : r > 127 && r < 2048 ? (n += String.fromCharCode(r >> 6 | 192), n += String.fromCharCode(63 & r | 128)) : (n += String.fromCharCode(r >> 12 | 224), n += String.fromCharCode(r >> 6 & 63 | 128), n += String.fromCharCode(63 & r | 128)) - } - return n - }(e); - var w = e.length, _ = new Array; - for (i = 0; i < w - 3; i += 4) a = e.charCodeAt(i) << 24 | e.charCodeAt(i + 1) << 16 | e.charCodeAt(i + 2) << 8 | e.charCodeAt(i + 3), _.push(a); - switch (w % 4) { - case 0: - i = 2147483648; - break; - case 1: - i = e.charCodeAt(w - 1) << 24 | 8388608; - break; - case 2: - i = e.charCodeAt(w - 2) << 24 | e.charCodeAt(w - 1) << 16 | 32768; - break; - case 3: - i = e.charCodeAt(w - 3) << 24 | e.charCodeAt(w - 2) << 16 | e.charCodeAt(w - 1) << 8 | 128 - } - for (_.push(i); _.length % 16 != 14;) _.push(0); - for (_.push(w >>> 29), _.push(w << 3 & 4294967295), o = 0; o < _.length; o += 16) { - for (i = 0; i < 16; i++) f[i] = _[o + i]; - for (i = 16; i <= 79; i++) f[i] = t(f[i - 3] ^ f[i - 8] ^ f[i - 14] ^ f[i - 16], 1); - for (s = m, c = v, u = g, l = h, d = y, i = 0; i <= 19; i++) p = t(s, 5) + (c & u | ~c & l) + d + f[i] + 1518500249 & 4294967295, d = l, l = u, u = t(c, 30), c = s, s = p; - for (i = 20; i <= 39; i++) p = t(s, 5) + (c ^ u ^ l) + d + f[i] + 1859775393 & 4294967295, d = l, l = u, u = t(c, 30), c = s, s = p; - for (i = 40; i <= 59; i++) p = t(s, 5) + (c & u | c & l | u & l) + d + f[i] + 2400959708 & 4294967295, d = l, l = u, u = t(c, 30), c = s, s = p; - for (i = 60; i <= 79; i++) p = t(s, 5) + (c ^ u ^ l) + d + f[i] + 3395469782 & 4294967295, d = l, l = u, u = t(c, 30), c = s, s = p; - m = m + s & 4294967295, v = v + c & 4294967295, g = g + u & 4294967295, h = h + l & 4294967295, y = y + d & 4294967295 - } - return (p = r(m) + r(v) + r(g) + r(h) + r(y)).toLowerCase().slice(0, n) - } - }; - pn.sha1 = vo, pn.container.register("sha1", {useValue: vo}); - var go = function () { - function e(e, n) { - this._isActive = !1, this.targets = [], this.timeout = 200, this.util = n, this.callback = e - } - - return e.prototype._mutationSearch = function () { - var e = this; - this.targets.forEach((function (n) { - var t = e._getState(n.element); - !t === n.currentState && (n.currentState = t, e.callback([{target: n.element}])) - })), this._isActive && setTimeout(this._mutationSearch.bind(this), this.timeout) - }, e.prototype._getState = function (e) { - var n = [].slice.call(e.attributes).reduce((function (n, t) { - return n[t.name] = e.getAttribute(t.name), n - }), {}); - return JSON.stringify(n) - }, e.prototype.observe = function (e) { - this.targets.push({ - id: this.util.randomString(), - element: e, - currentState: this._getState(e) - }), this._isActive || (this._isActive = !0, this._mutationSearch()) - }, e.prototype.disconnect = function () { - this._isActive = !1, this.targets = [] - }, e - }(), ho = function () { - pn.container.resolve("jqUtils"); - var e = pn.container.resolve("util"), - n = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver, - t = {attributes: !0}; - return { - name: "observer", create: function (r, o) { - r || e.error("element must be NODE"); - var i = new (n || go)((function (e) { - var n = e.map((function (e) { - return e.target - })); - return "function" == typeof o && o(n) - }), e); - return i.observe(r, t), i - } - } - }(); - pn.container.register("observer", {useValue: ho}), pn.observer = pn.container.resolve("observer"); - var yo, wo, _o = function () { - var e, n, t, r = pn.container.resolve("jqUtils"), o = pn.container.resolve("util"), - i = pn.container.resolve("postmessage"), a = pn.container.resolve("eventUtils"), - s = pn.container.resolve("sha1"), c = {}, u = {}, l = a.createEventManager(["close"]), - d = "tp-container-inner", p = new Map, f = {continuation: !0}, m = [], v = "tp-modal-overscroll-prevented", - g = "tp-scroll-prevented", h = "tp-body-scroll-prevented", y = { - _initialScrollPosition: {x: 0, y: 0}, applyFix: function () { - var e = window.visualViewport ? Math.max(window.scrollY, document.documentElement.scrollTop, window.visualViewport.pageTop) : Math.max(window.scrollY, document.documentElement.scrollTop); - this.saveInitialScroll(window.scrollX, e), t && (C(), _(), w(t, v)) - }, removeFix: function () { - document.querySelectorAll(".tp-iframe-wrapper.tp-active").length || (this._scrollBack(), n && (n.disconnect(), n = null), k()) - }, _scrollBack: function () { - (this._initialScrollPosition.y || this._initialScrollPosition.x) && I(this._initialScrollPosition.x, this._initialScrollPosition.y) - }, saveInitialScroll: function (e, n) { - this._initialScrollPosition.x = e, this._initialScrollPosition.y = n - }, modalOpened: function () { - this.applyFix() - }, modalClosed: function () { - this.removeFix() - } - }, w = function (e, n) { - e.classList.add(n) - }, _ = function () { - w(document.documentElement, g), w(document.body, h) - }, b = function (e) { - document.querySelectorAll(".".concat(e)).forEach((function (n) { - n.classList.remove(e) - })) - }, k = function () { - b(g), b(h) - }, C = function () { - var e = document.querySelectorAll(".tp-iframe-wrapper"), t = e[e.length - 1]; - (n = new MutationObserver((function (e, n) { - for (var t = 0, r = e; t < r.length; t++) { - var o = r[t]; - "attributes" === o.type && "style" === o.attributeName && I(0, 0) - } - }))).observe(t, {attributes: !0, childList: !0, subtree: !0}) - }, I = function (e, n) { - function t(e) { - return /\{\s*\[native code\]\s*\}/.test("" + e) - } - - try { - if (t(window.scrollTo)) return void window.scrollTo(e, n); - if (t(window.scroll)) return void window.scroll(e, n); - document.body && (document.body.scrollTop = 0) - } catch (e) { - console.warn("Can not perform scroll: " + e.message) - } - }; - r.on(window, "resize", (function () { - var e; - if ($(), o.isAndroid()) { - var n = null === (e = document.querySelector(".tp-iframe-wrapper.tp-active")) || void 0 === e ? void 0 : e.closest(".tp-modal"); - n && n.scrollBy(0, 1) - } - })), o.isIOS() && r.on(window, "orientationchange", (function () { - setTimeout((function () { - return $() - }), 100) - })), i.subscribe("close", (function () { - y.modalClosed() - })), i.subscribe("toggleIframeShadow", (function (e) { - T(e.params.isEnabled) - })), i.subscribe("toggleLoadingContainer", (function (e) { - if (e.params.isEnabled) return ne(); - te() - })); - var S, E, T = function (e) { - var n = document.querySelector(".tp-iframe-wrapper"); - if (n) { - if (e) return n.classList.contains("no-shadow") && n.classList.remove("no-shadow"); - n.classList.add("no-shadow") - } - }, P = function (e) { - (function (e) { - i.send("checkProccessesForClose", {}, e.iframeId) - })(e), "popup" === e.config.displayMode ? e.container.close() : (function (e) { - if (o.debug("Removing iframe", e), e.element && (r.hide(e.element), "inline" === e.config.displayMode)) { - var n = e.element.parentElement; - n && r.hide(n) - } - e.resizeObserver && e.resizeObserver.disconnect(), ("modal" === e.config.displayMode || "inline" === e.config.displayMode) && (e.waitFinishProcesses = !0) - }(e), L(), D()) - }, x = function () { - for (var e in c) { - var n = c[e]; - if ("modal" === n.config.displayMode && !n.waitFinishProcesses && !n.config.isPreload) return !0 - } - return !1 - }, A = function (e) { - var n = document.createElement("form"), - t = {id: "form_" + e.iframeId, method: "post", action: e.iframeSrc, target: e.iframeId}; - return r.setAttrs(t, n), [{name: "userToken", value: e.userToken}].forEach((function (e) { - var t = document.createElement("input"), o = {type: "hidden", name: e.name}; - r.setAttrs(o, t), t.value = e.value, r.append(n, t) - })), n - }, O = function (e) { - return c[e] - }, M = function () { - function e(e, n, t) { - this.$ = e, this._operationWithContainer = t, this.util = n, this._initModalContainer(), this.iOSBottomToolbarHeight = 90 - } - - return e.prototype._initModalContainer = function () { - var e = this; - return this.container || (this.container = document.createElement("div"), this.element = this.container, this.$.addClass("tp-modal", this.container), this.close = document.createElement("button"), this.$.setAttr("type", "button", this.close), this.$.setAttr("aria-label", "Close", this.close), this.$.addClass("tp-close", this.close), this.iframeWrapper = document.createElement("div"), this.$.addClass("tp-iframe-wrapper", this.iframeWrapper), this.$.append(this.iframeWrapper, this.close), this.container.style.zIndex = pn.zIndexes.modal + "", this.close.style.zIndex = pn.zIndexes.close + "", this.$.on(this.close, "click", (function () { - "function" == typeof e.closeClick && e.closeClick() - })), this.util.isIOS() && !this.util.isFBOrInstWebView() && (this.iframeWrapper.style.marginBottom = "".concat(this.iOSBottomToolbarHeight, "px")), this.$.append(this.container, this.iframeWrapper), this._operationWithContainer("body", (function (n) { - e.$.append(n, e.container) - }))), this.container - }, e.prototype.getContainer = function (e, n) { - return this._initModalContainer(), this.closeClick = n, void 0 === e && (e = !0), e ? this.showCloseButton() : this.hideCloseButton(), this.iframeWrapper - }, e.prototype.show = function (e) { - this._initModalContainer(), void 0 === e && (e = !0), e ? this.showCloseButton() : this.hideCloseButton(), this.$.addClass("tp-active", this.container) - }, e.prototype.hide = function () { - this._initModalContainer(), this.$.removeClass("tp-active", this.container) - }, e.prototype.showCloseButton = function () { - this._initModalContainer(), this.$.addClass("tp-active", this.close) - }, e.prototype.hideCloseButton = function () { - this._initModalContainer(), this.$.removeClass("tp-active", this.close) - }, e - }(), N = function (e, n, t) { - for (var r in o.debug("Search container to close", e, n, t), c) { - var i = c[r]; - e && r !== e || t && "inline" === i.config.displayMode || t && i.config.isPreload || ("modal" === i.config.displayMode && R(i), P(i)) - } - l.fireCallbacks("close", null, e, !0) - }, R = function (e) { - var n = m.shift(); - S && !n && r.removeClass("tp-active", S), e.iframeParams.shown = !1, r.removeClass("tp-active", e.container), n ? (r.hide(t), t = n, r.show(t)) : (L(), D()) - }, L = function () { - !t || (q("body", (function (e) { - r.addClass("tp-modal-close", e), r.removeClass("tp-modal-open", e), e.classList.contains("body-fixed") && r.removeClass("body-fixed", e) - })), r.hide(t)) - }, U = function (e, n, i) { - if (function () { - if (S) return S; - var e = document.createElement("div"); - r.addClass("tp-backdrop", e), e.style.zIndex = pn.zIndexes.backdrop + "", q("body", (function (n) { - r.append(n, e) - })), S = e - }(), r.visible(S)) { - var a = r.qa(".tp-modal").find((function (e) { - return r.visible(e) - })); - n && !i ? (a && (r.hide(a), m.unshift(a)), e && r.show(e)) : n && (a ? (e && m.push(e), t = a) : e && r.show(e)) - } else r.show(S), e && function (e) { - r.visible(e) || (q("body", (function (e) { - r.removeClass("tp-modal-close", e), r.addClass("tp-modal-open", e) - })), r.show(e), (o.isIphone() || o.isSafariOrIOsUiWebView() || o.isAndroid()) && y.modalOpened()) - }(e), E = window.setTimeout((function () { - r.addClass("tp-active", S) - }), 50) - }, D = function () { - S && (r.removeClass("tp-active", S), r.hide(S), clearTimeout(E)), y.modalClosed() - }, j = function (e) { - S && (S.style.height = "100%"); - var n = r.queryEl(".tp-close", e); - n && r.removeClass("tp-square", n) - }, V = function (e, n) { - if (e) { - K(e.element, n); - var t = Object.assign({}, n, {animate: !1}); - switch (e.config.displayMode) { - case"modal": - K(e.container, t), q("body", (function (e) { - r.addClass("tp-modal-resizing", e), setTimeout((function () { - r.removeClass("tp-modal-resizing", e) - }), 50) - })); - break; - case"inline": - var o = r.queryEl("." + d, e.container); - o && K(o, n) - } - } - }, F = function (e, n, o) { - var i = e.container, a = i.parentElement; - a && a.classList.contains("tp-modal") ? t = a : a = t, e.iframeParams = e.iframeParams || {}, e.iframeParams.shown || (e.iframeParams.shown = !0, U(a, n, o), o || (i.classList.contains("tp-active") || r.addClass("tp-active", i), j(i))) - }, B = {}, q = function e(n, t) { - var o = r.queryEl(n); - B[n] || (B[n] = 0), o ? (delete B[n], t(o)) : B[n] < 100 && (B[n] += 1, setTimeout((function () { - e(n, t) - }), 50)) - }, z = function (e, n) { - if (void 0 === e.showCloseButton && (e.showCloseButton = !0), e.container) return e.container; - var i = new M(r, o, q); - return e.isPreload || (t = i.element), i.getContainer(e.showCloseButton, n) - }, H = function (e) { - var n = {container: null, containerReady: !1}; - if (!e.iframeParams.containerSelector) return o.log("Inline offer must have a valid containerSelector"), n; - if (n.container = e.singleContainer || r.queryEl(e.iframeParams.containerSelector), !n.container) return o.log("Invalid containerSelector"), n; - var t = e.config, i = "object" == _typeof(t) && null !== t; - return r.empty(n.container), i ? !!t.preview || (e.iframeParams.width = r.getWidth(n.container)) : e.iframeParams.width = e.iframeParams.width || r.getWidth(n.container), n.containerReady = !0, n - }, W = function (e) { - var n = r.winSize(), t = e.width ? e.width : n.width, i = e.height ? e.height : n.height, - a = o.centerScreen(t, i); - return {width: t, height: i, top: a.top, left: a.left} - }, G = function (e, n) { - var t = W(e), - r = window.open(n, o.randomString(16), "scrollbars=yes,location=yes,status=0,toolbar=0,resizable=1, width=" + t.width + ", height=" + t.height + ", top=" + t.top + ", left=" + t.left); - return window.focus && r && r.focus(), r - }, J = 1, Q = function (e, n, t) { - var i = "iframe-" + J++ + "-" + o.randomString(); - n.iframeId && (i = n.iframeId); - var a = document.createElement("iframe"), s = { - id: i, - name: i, - title: i, - scrolling: "no", - allowtransparency: "true", - allow: "payment", - allowfullscreen: "true" - }; - (!pn.isSensitiveDataProtectionEnabled || e.isSensitiveDataProtectionDisabled) && (s.src = t), Object.keys(s).forEach((function (e) { - r.setAttr(e, s[e], a) - })); - var c = { - overflow: "hidden", - backgroundColor: "transparent", - border: "0", - width: "inline" === e.displayMode ? n.width + "px" : "0px", - height: "0px" - }; - Object.keys(c).forEach((function (e) { - a.style[e] = c[e] - })); - try { - r.setAttr("frameBorder", "0", a) - } catch (e) { - o.log(e) - } - return a - }, X = function (e, n) { - var t = function (e) { - return r.queryEl("." + d, e.container) ? r.getWidth(e.container) : 0 - }(e); - return !(!t || !n) && Math.abs(t - n) < .1 - }, Y = function (e, n, t) { - var o = setInterval((function () { - r.empty(e) - }), 150); - r.ready((function () { - clearInterval(o), r.append(e, n), pn.isSensitiveDataProtectionEnabled && (r.append(n, t), t.submit()) - })) - }, $ = function () { - for (var e in c) { - var n = c[e]; - if (!n.config.preview && "inline" === n.config.displayMode && n.container && V(n, {width: r.getWidth(n.container)}), "modal" === n.config.displayMode && n.container) { - var t = Math.max(document.documentElement.clientWidth, document.body.offsetWidth, document.documentElement.offsetWidth); - i.send("RESIZE_MODAL_CHECKOUT", {iframe: n, width: t}, n.iframeId) - } - } - }, K = function (e, n) { - !e || (void 0 !== n.width && (e.style.width = n.width + "px", (0 === n.width && !e.classList.contains("no-width") || 0 !== n.width && e.classList.contains("no-width")) && r.toggleClass("no-width", e)), void 0 !== n.height && (n.animate, e.style.height = n.height + "px", (0 === n.height && !e.classList.contains("no-height") || 0 !== n.height && e.classList.contains("no-height")) && r.toggleClass("no-height", e))) - }, Z = function (e) { - var n = document.createElement("div"); - return n.innerHTML = e.trim(), n.firstChild - }, ee = function (e) { - return void 0 === e && (e = ""), '
') - }, ne = function () { - e || (e = Z(ee())) && document.body.appendChild(e) - }, te = function () { - !e || (document.body.removeChild(e), e = null) - }, re = function (e) { - if (e && null != e && e.container && !p.has(e.iframeId)) { - var n = Z(ee("tp-local-overlap")); - n && (e.container.appendChild(n), p.set(e.iframeId, n)) - } - }, oe = function (e) { - if (e && null != e && e.container && p.has(e.iframeId)) { - var n = p.get(e.iframeId); - n && (e.container.removeChild(n), p.delete(e.iframeId)) - } - }; - - function ie(e) { - !e || !e.element || (function (e) { - var n; - return !!e && !(null === (n = null == e ? void 0 : e.element.getBoundingClientRect()) || void 0 === n || !n.width) - }(e) && function (e) { - e && e.container && (re(e), e.container.addEventListener("load", (function () { - oe(e) - }), {once: !0, capture: !0})) - }(e), e.element.src = e.element.src) - } - - function ae() { - for (var e in c) { - var n = c[e]; - n && ie(n) - } - } - - return { - name: "containerUtils", - fakeOfferId: "fakeOfferId", - createContainer: function (e) { - var n, t, a, p, m = {}, v = document.createElement("form"), g = !0, h = e.iframeParams; - if ("inline" !== h.displayMode && !h.width && (h.width = window.innerWidth), a = e.config.buildQueryStringFn ? function (n) { - return e.config.buildQueryStringFn(n, r) - } : function (e) { - var n = r.param(e, f); - return n + "&_qh=" + s.hash(n, 10) - }, "popup" === h.displayMode) { - h.width || (h.width = window.innerWidth); - var y = e.url + "?" + a(h); - t = G(h, y); - try { - p = t.document - } catch (e) { - try { - p = t - } catch (e) { - p = null, console.warn("Unable to get popup element") - } - } - u[h.iframeId] = { - container: t, interval: setInterval((function () { - u[h.iframeId].container.closed && (clearInterval(u[h.iframeId].interval), u[h.iframeId].container.close(), e.onCloseCallback && e.onCloseCallback()) - }), 100) - } - } else { - if ("inline" === h.displayMode) { - void 0 !== e.config.showCloseButton && delete e.config.showCloseButton; - var w = H(e); - t = w.container, g = !!w.containerReady - } else t = z(e.config, (function () { - N(h.iframeId, e.parent) - })); - pn.isSensitiveDataProtectionEnabled && (m = { - userToken: h.userToken, - iframeId: h.iframeId - }, delete h.userToken), n = e.url + "?" + a(h), p = Q(e.config, h, n) - } - l.registerCallback(e, h.iframeId); - var _ = c[h.iframeId] = { - iframeId: h.iframeId, - config: e.config, - element: p, - container: t, - iframeParams: h, - containerReady: g - }; - if (i.init({ - postMessageUrl: e.postMessageUrl, - parent: e.parent, - receive: e.receive, - iframe: _, - iframeParams: h - }), r.on(document, "keyup", (function (e) { - })), pn.isSensitiveDataProtectionEnabled && (m.iframeSrc = n, v = A(m)), "modal" === h.displayMode) r.on(window, "resize", (function () { - j(t) - })), pn.isSensitiveDataProtectionEnabled ? (r.append(t, p), r.append(t, v), null == v || v.submit()) : r.append(t, p); else if ("inline" === h.displayMode) { - if (c[h.iframeId].containerReady) { - var b = document.createElement("div"); - r.addClass(d, b), r.append(b, p), e.config.isPreload && r.hide(b), ("complete" === document.readyState || "loading" !== document.readyState && !document.documentElement.doScroll) && t ? (r.empty(t), r.append(t, b), pn.isSensitiveDataProtectionEnabled && (r.append(b, v), null == v || v.submit())) : Y(t, b, v) - } else { - var k = document.createElement("div"); - r.setAttr("id", "temp-inline-" + h.iframeId, k), r.hide(k), q("body", (function (e) { - r.append(e, k) - })), r.append(k, p) - } - if (window.ResizeObserver) { - var C = new ResizeObserver((function (e) { - var n = r.getWidth(_.container); - if (n > 0) { - if ("inline" === _.config.displayMode && X(_, n)) return; - V(_, {width: n}) - } - })); - C.observe(_.container), _.resizeObserver = C - } - } - return o.debug("creating iframe: ", e), _ - }, - showPreloadedContainer: function (e) { - if ("modal" === e.config.displayMode) { - if (x()) return void o.log("Modal is already shown; must be one modal per time"); - !function (e) { - (t = e.container.closest(".tp-modal")) || o.error("there is no such modal container"), F(e, !0, !0) - }(e) - } else "inline" === e.config.displayMode ? function (e) { - r.show(e.container); - var n = r.queryEl(".".concat(d), e.container); - n && r.show(n), V(e, {width: r.getWidth(e.container)}) - }(e) : o.log("Unexpected displayMode of preloaded iframe\n"); - return e.config.isPreload = !1, e.iframeParams.isPreload = !1, o.debug("show preloaded iframe: ", e.config), e - }, - redirectContainer: function (e, n) { - var t = n.url + "?" + r.param(n.iframeParams, f), o = c[e]; - if ("popup" === o.config.displayMode) o.container.location = t; else { - var a = o.element; - (a.contentWindow || a).location = t - } - o.config = n.config, i.init({ - postMessageUrl: n.postMessageUrl, - receive: n.receive, - iframe: c[n.iframeParams.iframeId], - iframeParams: n.iframeParams - }) - }, - hasModalIframe: x, - getForm: A, - getIframe: O, - generateIframe: Q, - generateIframeWrapper: function () { - var e = document.createElement("div"), n = { - overflow: "hidden", - backgroundColor: "transparent", - border: "0", - width: "0px", - height: "0px", - position: "absolute", - display: "block", - top: "-1px", - left: "-1px" - }; - return Object.keys(n).forEach((function (t) { - e.style[t] = n[t] - })), e - }, - getPopupPosition: W, - generatePopup: G, - initInlineContainer: H, - getModalContainer: z, - centerBackdrop: function (e) { - if (S) { - var n = r.winSize(); - e.offsetHeight > n.height ? S.style.height = n.height + "" : S.style.height = "100%" - } - }, - showBackdrop: U, - hideBackdrop: D, - checkBackdropAndContainer: F, - resizeIframe: V, - centerIt: j, - operationWithContainer: q, - closeContainer: N, - closeModalContainer: function (e, n) { - N(e, n, !0) - }, - purgeIframe: function (e, n) { - o.debug("Purging iframe", e); - var t = c[e]; - try { - if (t.resizeObserver && t.resizeObserver.disconnect(), i.removeIframe(t.iframeId), r.remove(t.element), "inline" === t.config.displayMode) { - var a = r.queryEl(".tp-container-inner", t.container); - a && r.remove(a) - } - } catch (e) { - } - delete c[e] - }, - hideModalContainer: function (e) { - var n = []; - for (var t in c) { - var o = c[t]; - e && t !== e || "inline" !== o.config.displayMode && "modal" === o.config.displayMode && (R(o), r.hide(o.container), n.push(t)) - } - return n - }, - closeModal: R, - hideCloseButton: function (e) { - if (e) { - var n = r.queryEl(".tp-close", e); - n && n.classList.contains("tp-active") && r.removeClass("tp-active", n) - } - }, - activateContainers: function (e) { - if (e && e.length) for (var n in c) for (var t = c[n], o = 0; o < e.length; o++) if (n === e[o]) { - var i = t.container, a = i.parentElement; - a && U(a), r.addClass("tp-active", i), r.show(i) - } - }, - showWaitPanel: ne, - hideWaitPanel: te, - addClassToContainer: function (e, n) { - r.addClass(n, e.container) - }, - turnOnRTL: function (e) { - e.container && e.container.setAttribute && e.container.setAttribute("dir", "rtl") - }, - turnOffRTL: function (e) { - e.container && e.container.removeAttribute && e.container.removeAttribute("dir") - }, - setIframesPopstateHandlers: function () { - !o.isIphone() && !o.isSafariOrIOsUiWebView() || window.addEventListener("popstate", ae) - }, - __protected__: { - setElementSizes: K, closeInlineContainers: function (e) { - Array.prototype.slice.call(document.querySelectorAll(e + " > ." + d + " > iframe")).forEach((function (e) { - e.id && function (e) { - var n = O(e); - n.config.child && N(n.config.child), N(e) - }(e.id) - })) - }, addChildToInlineIframe: function (e, n) { - if (e) { - var t = O(n); - t && t.config && (t.config.child = e.iframeId) - } - }, closeAndRemoveIframe: P - }, - __private__: {mobileModalFix: y} - } - }(); - pn.container.register("containerUtils", {useValue: _o}), pn.containerUtils = pn.container.resolve("containerUtils"), function (e) { - e.EXTERNAL_LINK = "EXTERNAL_LINK", e.EXTERNAL_EVENT = "EXTERNAL_EVENT" - }(yo || (yo = {})), function (e) { - e.LOG_MICRO_CONVERSION = "logMicroConversion", e.LOG_AUTO_MICRO_CONVERSION = "logAutoMicroConversion", e.LOG_TELEMETRY = "logTelemetry", e.LOG_CONVERSION = "logConversion", e.LOG_FUNNEL_STEP = "logFunnelStep", e.LOG_ESP_MICRO_CONVERSION = "logEspMicroConversion", e.LOG_BEACON_REQUEST = "logBeaconRequest", e.LOG_CUSTOM_FORM_IMPRESSION = "logCustomFormImpression", e.LOG_CUSTOM_FORM_SUBMISSION = "logCustomFormSubmission" - }(wo || (wo = {})); - var bo; - pn.container.register("log", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("ajax"), t = e.resolve("util"); - e.resolve("postmessage").subscribe("iframeLogRequest", (function (e) { - var n = "browser_id" in e.queryParams ? e.queryParams : a(e.queryParams); - i(e.url, n) - })); - var r = function (e) { - var n = []; - for (var t in e) { - var r = e[t]; - n.push(encodeURIComponent(t) + "=" + encodeURIComponent("object" == _typeof(r) ? JSON.stringify(r) : r)) - } - return n.join("&") - }, o = function () { - var e = window.doNotTrack || window.navigator.doNotTrack || window.navigator.msDoNotTrack; - return !!e && ("1" === e.charAt(0) || "yes" === e) - }, i = function (e, o) { - var i = r(o); - t.isRelativeUrl(e.trim()) ? i.length > 6e3 ? n.request({ - type: "POST", - url: pn.getTrackingEndpoint() + e, - data: i - }) : n.request({ - url: pn.getTrackingEndpoint() + e + "?" + i, - dataType: "jsonp" - }) : t.log("Url parameter is incorrect") - }, a = function (e, n) { - var r, o; - void 0 === n && (n = !1); - var i = t.getBrowserId(), a = p({}, e), s = function (e, n) { - n && (a[e] = n) - }; - if (s("browser_id", i), n) { - var c = t.getPageViewContext(); - s("page_title", c.pageTitle), s("url", c.url), s("page_view_id", c.pageViewId), s("referrer", c.referrerUrl), s("content_author", c.author), s("content_created", null === (r = c.created) || void 0 === r ? void 0 : r.toString()), s("content_section", c.section), s("tags", (null === (o = c.tags) || void 0 === o ? void 0 : o.join(",")) || null), s("content_type", c.contentType) - } - return a - }, s = function (e) { - return a(e, !0) - }, c = function (e, n, r) { - var o = s({ - tracking_id: e, - event_group_id: n, - custom_params: r || "", - cookie_consents: t.getCookieConsents(), - previous_user_segments: t.getUserSegmentsString() - }); - e ? n ? i("/api/v3/conversion/logMicroConversion", o) : t.log("Parameter eventGroupId is required to log micro conversion.") : t.log("Parameter trackingId is required to log micro conversion.") - }, u = function (e, n, r, o) { - var a = s({ - tracking_id: e, - event_type: r, - event_group_id: n, - custom_params: o || "", - cookie_consents: t.getCookieConsents(), - previous_user_segments: t.getUserSegmentsString() - }); - e ? n ? (console.log(a), i("/api/v3/conversion/logAutoMicroConversion", a)) : t.log("Parameter eventGroupId is required to log auto micro conversion.") : t.log("Parameter trackingId is required to log auto micro conversion.") - }, l = function (e, n, r, o, a) { - var c = s({ - tracking_id: e, - esp_widget_id: n, - event_type: o, - event_group_id: r, - custom_params: a || "", - cookie_consents: t.getCookieConsents(), - previous_user_segments: t.getUserSegmentsString() - }); - e ? r ? n ? i("/api/v3/conversion/logEspMicroConversion", c) : t.log("Parameter espWidgetId is required to log esp micro conversion.") : t.log("Parameter eventGroupId is required to log esp micro conversion.") : t.log("Parameter trackingId is required to log esp micro conversion.") - }, d = function (e, n, r, o, a, c, u, l) { - var d = s({ - tracking_id: e, - term_id: n, - term_name: r, - cookie_consents: t.getCookieConsents(), - previous_user_segments: t.getUserSegmentsString() - }); - e ? n ? r ? (void 0 !== o && (d.step_number = o), void 0 !== a && (d.amount = a), void 0 !== c && (d.currency = c), void 0 !== u && (d.custom_params = u), void 0 !== l && (d.conversion_category = l), i("/api/v3/conversion/log", d)) : t.log("Parameter termName is required to log conversion.") : t.log("Parameter termId is required to log conversion.") : t.log("Parameter trackingId is required to log conversion.") - }, f = function (e, n, t, r, o, i, a, s) { - if ("object" == _typeof(e)) { - var c = e; - d(c.tracking_id, c.term_id, c.term_name, c.step_number, c.amount, c.currency, c.custom_params, c.conversion_category) - } else d(e, n, t, r, o, i, a, s) - }, m = function (e, n, r, o) { - var a = s({ - tracking_id: e, - step_number: n, - step_name: r, - custom_params: o || "", - cookie_consents: t.getCookieConsents(), - previous_user_segments: t.getUserSegmentsString() - }); - e ? n ? r ? i("/api/v3/conversion/logFunnelStep", a) : t.log("Parameter stepName is required to log funnel step.") : t.log("Parameter stepNumber is required to log funnel step.") : t.log("Parameter trackingId is required to log funnel step.") - }, v = function (e, n, r) { - n || t.log("Parameter formName is required to log impression."), r || t.log("Parameter source is required to log impression."); - var o = { - aid: pn.aid, - pageview_id: pn.main.fetchPageViewId(), - custom_form_name: n, - custom_form_source: r, - cookie_consents: t.getCookieConsents(), - previous_user_segments: t.getUserSegmentsString() - }, a = pn.user.getProvider().getToken(); - return a && (o.user_token = a), e && (o.tracking_id = e), i("/api/v3/customform/log/impression", o) - }, g = function (e, n, r) { - n || t.log("Parameter formName is required to log submission."), r || t.log("Parameter source is required to log submission."); - var o = { - aid: pn.aid, - pageview_id: pn.main.fetchPageViewId(), - custom_form_name: n, - custom_form_source: r, - cookie_consents: t.getCookieConsents(), - previous_user_segments: t.getUserSegmentsString() - }, a = pn.user.getProvider().getToken(); - return a && (o.user_token = a), e && (o.tracking_id = e), i("/api/v3/customform/log/submission", o) - }, h = function (e, i) { - if (!o()) { - var a, s = r(i), c = e + "?" + s; - if (navigator.sendBeacon) if (c.length > 6e3) { - var u = new Blob([s], {type: "application/x-www-form-urlencoded"}); - navigator.sendBeacon(e, u) - } else navigator.sendBeacon(c); else (a = -1 !== navigator.appVersion.indexOf("MSIE 9") ? { - dataType: "jsonp", - url: c - } : {type: "post", url: c, async: !1, xhrFields: {withCredentials: !0}}).error = function () { - for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - t.debug.apply(t, b(["Beacon request has been failed"], e, !1)) - }, n.request(a) - } - }; - return { - name: "log", - logMicroConversion: c, - logConversion: f, - logFunnelStep: m, - logEspMicroConversion: l, - logBeaconRequest: h, - logAutoMicroConversion: u, - __protected__: { - handleEvent: function (e, t) { - var i = t.trackingId, a = t.termId, s = t.termName, d = t.stepNumber, p = t.stepName, - y = t.amount, w = t.currency, _ = t.customParams, b = t.conversionCategory, - k = t.eventGroupId, C = t.eventType, I = t.url, S = t.params, E = t.formName, T = t.source, - P = t.espWidgetId; - t.body; - switch (e) { - case wo.LOG_TELEMETRY: - return void function (e, t) { - if (!o()) { - var i = e + "?" + r(t); - navigator.sendBeacon ? navigator.sendBeacon(i) : n.send(i, null, "POST", null, "application/json", !0) - } - }(I, S); - case wo.LOG_CONVERSION: - return void f(i, a, s, d, y, w, _, b); - case wo.LOG_AUTO_MICRO_CONVERSION: - return void u(i, k, C, _); - case wo.LOG_BEACON_REQUEST: - return void h(I, S); - case wo.LOG_CUSTOM_FORM_IMPRESSION: - return void v(i, E, T); - case wo.LOG_CUSTOM_FORM_SUBMISSION: - return void g(i, E, T); - case wo.LOG_ESP_MICRO_CONVERSION: - return void l(i, P, k, C, _); - case wo.LOG_FUNNEL_STEP: - return void m(i, d, p, _); - case wo.LOG_MICRO_CONVERSION: - return void c(i, k, _) - } - }, - logCustomFormImpression: v, - logCustomFormSubmission: g, - logEspMicroConversion: l, - logAutoMicroConversion: u - }, - __private__: {doLog: i, logBeaconRequest: h} - } - }() - }), pn.log = pn.container.resolve("log"), function (e) { - e.TRACK_EVENT = "track", e.TRACK_CUSTOM_EVENT = "trackCustom" - }(bo || (bo = {})); - var ko = function () { - var e = pn.container.resolve("util"), n = !1, t = function (t, r, o) { - n ? (o || (o = {}), e.log("fbpixel: Track Facebook Pixel event", r, o), window.fbq(t, r, o)) : e.log("fbpixel: Skip tracking event - Facebook Pixel is not initalized", r, o) - }, r = function () { - return n - }; - return { - name: "fbpixel", isInitialized: r, __private__: {isInitialized: r}, __protected__: { - init: function () { - if (!n) { - var t = pn.getFbPixelId(); - if (!t) return void e.error("fbpixel: Facebook Pixel ID is not defined"); - e.log("fbpixel: Initialize Facebook Pixel tracking", t), function (e, n, t, r, o, i, a) { - e.fbq || (o = e.fbq = function () { - o.callMethod ? o.callMethod.apply(o, arguments) : o.queue.push(arguments) - }, e._fbq || (e._fbq = o), o.push = o, o.loaded = !0, o.version = "2.0", o.queue = [], (i = n.createElement(t)).async = !0, i.src = "https://connect.facebook.net/en_US/fbevents.js", (a = n.getElementsByTagName(t)[0]).parentNode.insertBefore(i, a)) - }(window, document, "script"), window.fbq("set", "autoConfig", "false", t), window.fbq("init", t), n = !0 - } - }, handleEvent: function (e, n) { - var r = n.eventName, o = n.eventParams; - switch (e) { - case bo.TRACK_EVENT: - return void t(bo.TRACK_EVENT, r, o); - case bo.TRACK_CUSTOM_EVENT: - return void t(bo.TRACK_CUSTOM_EVENT, r, o) - } - } - } - } - }(); - pn.container.register("fbpixel", {useValue: ko}), pn.fbpixel = pn.container.resolve("fbpixel"); - pn.container.register("clientConfiguration", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t, r = e.resolve("ajax"); - return { - configuration: n, getConfiguration: function () { - return g(void 0, void 0, void 0, (function () { - return h(this, (function (e) { - return n ? [2, n] : (t || (t = new Promise((function (e, o) { - r.request({ - url: pn.getApiEndpoint() + "/anon/assets/sdk-runtime-config.js?aid=" + pn.aid, - type: "GET", - success: function (r) { - 0 === (null == r ? void 0 : r.code) ? (n = r.client_configurations_dto, e(r.client_configurations_dto), t = void 0) : o() - }, - error: function () { - return o() - } - }) - }))), [2, t]) - })) - })) - } - } - }() - }); - var Co, Io = function () { - var e = {}, n = {}; - return { - name: "gaCollectingService", setParam: function (e, t) { - t && (n[e] = t) - }, getParams: function () { - return p({aid: pn.aid, tags: pn.tags, debug: pn.debug, url: window.location.href}, n) - }, setParamMap: function (e) { - n = p(p({}, n), e) - }, isEventExcluded: function (n) { - return e[n] - }, setExcludedEvents: function (n) { - e = p(p({}, e), n) - } - } - }(); - pn.container.register("gaCollectingService", {useValue: Io}), pn.gaCollectingService = pn.container.resolve("gaCollectingService"), function (e) { - e.EMIT_GA_EVENT = "emitGAEvent", e.EMIT_METRICS_EVENT = "emitMetricsEvent" - }(Co || (Co = {})); - var So = { - experienceExecute: !0, - meterActive: !0, - meterExpired: !0, - beforeBrowserEvent: !1, - setResponseVariable: !0, - startCheckout: !1, - showOffer: !0, - showTemplate: !0, - termSelected: !0, - promoApplied: !0, - promoInvalid: !0, - submitPayment: !1, - checkoutCustomEvent: !0, - checkoutStateChange: !1, - receiptDisplayed: !1, - checkoutSuccess: !0, - checkoutRestarted: !1, - checkoutError: !0, - checkoutClose: !1, - publisherLoginRequired: !1, - loginRequired: !1, - loginDisplayed: !1, - registrationDisplayed: !1, - loginSuccess: !0, - registrationSuccess: !0, - logout: !1 - }, Eo = function () { - var e, n = pn.container.resolve("util"), t = (pn.container.resolve("api"), pn.container.resolve("postmessage")), - r = pn.container.resolve("gaCollectingService"), o = pn.container.resolve("clientConfiguration"), - i = "pianoTracker", a = "performanceTracker", s = "gaAccount", c = "metricsGAAccount", u = "trackOnlyAids", - l = "disabled", d = { - gaAccount: void 0, - trackerName: i, - trackOnlyAids: [], - metricsGAAccount: void 0, - isGAEnabled: !1, - isGAAppended: !1, - isMetricsEnabled: !1, - isTrackerAppended: !1, - isMetricsTrackerAppended: !1 - }, p = [], f = !1, m = !0, v = !1, y = !1, w = [], _ = function (e) { - if (e.hitType = "timing", !d.isMetricsTrackerAppended) return S("send", e), void function () { - if (!y) { - if (y = !0, x(), !d.metricsGAAccount) return void function () { - return g(this, void 0, void 0, (function () { - var e; - return h(this, (function (n) { - switch (n.label) { - case 0: - return [4, o.getConfiguration()]; - case 1: - return e = n.sent(), [2, O({ - is_enabled: e.is_performance_metrics_enabled, - ga_account: e.performance_metrics_ga_account, - track_only_aids: e.performance_metrics_track_only_aids - })] - } - })) - })) - }().then((function () { - return N() - })).catch((function (e) { - n.error("PN catch: something vent wrong with GA injection: ".concat(e)) - })); - N().catch((function (e) { - n.error("PN catch: something vent wrong with GA injection: ".concat(e)) - })) - } - }(); - if (d.isMetricsEnabled) { - if (!window.ga || !d.isMetricsTrackerAppended) return void S("send", e); - w.length && E(), P("send", e) - } - }; - - function b() { - v || (v = !0, m ? setTimeout((function () { - m = !1, k() - }), 3e3) : k()) - } - - function k() { - x(), d.gaAccount ? M().catch((function () { - })) : function () { - return g(this, void 0, void 0, (function () { - var e; - return h(this, (function (n) { - switch (n.label) { - case 0: - return [4, o.getConfiguration()]; - case 1: - return e = n.sent(), [2, A(e.ga_account)] - } - })) - })) - }().then((function () { - return M() - })).catch((function () { - })) - } - - var C = function (e, n) { - p.push({action: e, params: n}) - }, I = function () { - if (window.ga && d.isTrackerAppended) for (; p.length;) { - var e = p.pop(); - T(e.action, e.params) - } - }, S = function (e, n) { - w.push({action: e, params: n}) - }, E = function () { - if (window.ga && d.isMetricsTrackerAppended) for (; w.length;) { - var e = w.pop(); - P(e.action, e.params) - } - }, T = function (e, n) { - if (!r.isEventExcluded(n.eventCategory)) { - if (!window.ga || !d.isTrackerAppended) return void C(e, n); - window.ga(d.trackerName + "." + e, n) - } - }, P = function (e, n) { - if (d.isMetricsEnabled) { - if (!window.ga || !d.isMetricsTrackerAppended) return void S(e, n); - window.ga(a + "." + e, n) - } - }, x = function () { - if (!f) { - if (tp.gaClientId && (e = tp.gaClientId), n.__protected__.hasLocalStorage()) { - var t = n.__protected__.getLocalStorageItem(s), r = n.__protected__.getLocalStorageItem(c), - o = n.__protected__.getLocalStorageItem(u); - d.isGAEnabled = !!t && t !== l, d.isMetricsEnabled = !!r && r !== l, d.gaAccount = t, d.metricsGAAccount = r, d.trackOnlyAids = o || [] - } - f = !0 - } - }; - var A = function (e) { - d.isGAEnabled = !!e, d.gaAccount = e || l, n.__protected__.setLocalStorageItem("vx", s, d.gaAccount, 1) - }, O = function (e) { - d.isMetricsEnabled = JSON.parse(e.is_enabled), d.metricsGAAccount = d.isMetricsEnabled ? e.ga_account : l, d.trackOnlyAids = d.isMetricsEnabled ? JSON.parse(e.track_only_aids) : [], n.__protected__.setLocalStorageItem("vx", u, d.trackOnlyAids, 1), n.__protected__.setLocalStorageItem("vx", c, d.metricsGAAccount, 1) - }; - - function M() { - return new Promise((function (n, t) { - d.isGAEnabled ? R().then((function () { - if (d.isGAAppended) if (d.isTrackerAppended) n(null); else try { - var r = document.createElement("script"); - r.innerHTML = function () { - var n = new RegExp("^UA-[0-9a-zA-Z]*-[0-9a-zA-Z]*$").test(d.gaAccount), - t = new RegExp("([{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?)|([0-9]*\\.[0-9]*)").test(e || ""); - if (!n) return ""; - var r = "ga(function() {\n ga('create', '".concat(d.gaAccount, "', 'auto', '").concat(i, "'"); - return r += e && t ? ", { clientId: '".concat(e, "' });") : ");\n tp.gaService.setClientId(ga.getByName('".concat(i, "').get('clientId'));"), r += "tp.gaService.trackerAppended(); });", r - }(), document.head.appendChild(r), d.isTrackerAppended = !0, n(null) - } catch (e) { - t() - } else t() - })).catch((function (e) { - })) : t() - })) - } - - function N() { - return new Promise((function (e, n) { - d.isMetricsEnabled ? R().then((function () { - if (d.isGAAppended) if (d.isMetricsTrackerAppended) e(null); else try { - var t = !d.trackOnlyAids.length || d.trackOnlyAids.contains(tp.aid), - r = document.createElement("script"); - if (!new RegExp("^UA-[0-9a-zA-Z]*-[0-9a-zA-Z]*$").test(d.metricsGAAccount)) return void n(); - r.innerHTML = "\n ga(function() {\n if (".concat(t, ") {\n ga('create', '").concat(d.metricsGAAccount, "', 'auto', '").concat(a, "', { storage: 'none' });\n tp.gaService.metricsTrackerAppended();\n }\n });\n "), document.head.appendChild(r), d.isMetricsTrackerAppended = !0, e(null) - } catch (e) { - n() - } else n() - })) : e("isMetricsEnabled !== true") - })) - } - - function R() { - return new Promise((function (e, n) { - if (d.isGAAppended) e(null); else try { - var t = document.createElement("script"); - t.innerHTML = "\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n ", document.head.appendChild(t), d.isGAAppended = !0, e(null) - } catch (e) { - n() - } - })) - } - - return { - name: "gaService", getClientId: function () { - return e - }, getGAAccount: function () { - return d.gaAccount - }, metricsTrackerAppended: function () { - d.isMetricsTrackerAppended = !0, y = !1, E() - }, recreateWithClientId: function (n) { - e = n, b() - }, setClientId: function (n) { - e = n - }, setTrackerName: function (e) { - d.trackerName = e - }, trackerAppended: function () { - d.isTrackerAppended = !0, t.broadcast("gaAppended", {clientId: e, gaAccount: d.gaAccount}), v = !1, I() - }, __protected__: { - handleEvent: function (e, n) { - switch (e) { - case Co.EMIT_GA_EVENT: - return void function (e) { - if (e.hitType = "event", e.nonInteraction = So[e.eventCategory], !d.isTrackerAppended) return C("send", e), void b(); - if (d.isGAEnabled) { - if (!window.ga || !d.isTrackerAppended) return void C("send", e); - p.length && I(), T("send", e) - } - }(n); - case Co.EMIT_METRICS_EVENT: - return void _(n) - } - } - } - } - }(); - pn.container.register("gaService", {useValue: Eo}), pn.gaService = pn.container.resolve("gaService"); - var To = function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("gaCollectingService"), t = ["trackingId"], r = {measurementId: ""}, o = [], i = function () { - return "function" == typeof window.gtag - }, a = function (e) { - return e.eventParameters ? "gtag('config', '".concat(e.measurementId, "', ").concat(function (e) { - return e || (e = {}), JSON.stringify(e) - }(e.eventParameters), ");") : "gtag('config', '".concat(e.measurementId, "');") - }, s = function (e) { - var n = document.createElement("script"); - return n.innerHTML = "".concat(i() ? "" : "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());", "\n") + "function setGoogleTagConfig() {\n" + " if (".concat(!e.measurementId, ") { return; }\n") + " ".concat(a(e), "\n") + "}\nsetGoogleTagConfig();", n - }, c = function (e, n, t, r) { - void 0 === e && (e = ""); - return e && e.includes(t) ? e : ["offerId", "aid", "templateId", "templateVariantId"].reduce((function (e, o) { - return r[o] && (e.length && (e += n), e += "".concat(o).concat(t).concat(r[o])), e - }), e) - }, u = function (e, n) { - var r = p(p(p({}, n), e), { - non_interaction: So[e.eventCategory], - event_action: c(e.eventAction, "____", "_", n), - event_label: c(e.eventLabel, " ", ":", n) - }); - return Object.keys(r).reduce((function (e, n) { - var o = r[n]; - return function (e, n) { - return e.includes("user") || "nonInteraction" === e || "object" == _typeof(n) || "function" == typeof n - }(n, o) || (e[function (e) { - return t.includes(e) && (e = "piano_" + e), function (e) { - return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (function (e, n) { - return n ? "_" + e : e - })).toLowerCase() - }(e) - }(n)] = o), e - }), {}) - }, l = function () { - !r.measurementId || (function () { - if (!i()) { - var e = document.createElement("script"); - e.async = !0, e.src = "https://www.googletagmanager.com/gtag/js?id=".concat(r.measurementId), document.head.appendChild(e) - } - }(), document.head.appendChild(s(r))) - }, d = function (e) { - n.isEventExcluded(e.name) || window.gtag("event", e.name, p({send_to: e.sendTo}, e.params)) - }; - return { - name: "ga4Service", getMeasurementId: function () { - return r.measurementId - }, appendGoogleTag: l, sendCustomEvent: d, setGa4Config: function (e) { - r = e, l() - }, __protected__: { - handleEvent: function (e, t) { - if (e === Co.EMIT_GA_EVENT) { - var a = function (e, t) { - return {name: t.eventCategory, sendTo: r.measurementId, params: u(t, n.getParams())} - }(0, t); - if (i() && a.sendTo) return d(a), o.forEach((function (e) { - e.sendTo || (e.sendTo = r.measurementId), d(e) - })), void (o = []); - !function (e) { - o.push(e) - }(a) - } - } - } - } - }(); - pn.container.register("ga4Service", {useValue: To}), pn.ga4Service = pn.container.resolve("ga4Service"); - var Po, xo, Ao, Oo = void 0; - !function (e) { - e.purge = "purge", e.dismissTemplate = "acp-close", e.retainSubscription = "acp-retain-subscription", e.cancelSubscription = "acp-cancel-subscription" - }(Po || (Po = {})), function (e) { - e.autoRenewalDisabled = "acp-auto-renewal-disabled", e.subscriptionCancellation = "acp-subscription-cancellation" - }(xo || (xo = {})), function (e) { - e.dismissTemplate = "dismissTemplate", e.finalConfirmation = "finalConfirmation", e.autoRenewalDisabled = "autoRenewalDisabled", e.subscriptionCancellation = "subscriptionCancellation" - }(Ao || (Ao = {})); - var Mo = function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("postmessage"), t = pn.container.resolve("util"), - r = {autoRenewalDisabled: !1, subscriptionCancellation: !1}, - o = {token: "", isFlowInProgress: !1, templateInteractionConfig: p({}, r)}, i = p({}, o), - a = function (e, r, o) { - n.broadcast(e, function (e, n) { - return "boolean" != typeof (null == e ? void 0 : e.autoRenew) && "string" != typeof (null == e ? void 0 : e.cancellationType) ? n instanceof Error : { - isFlowError: n instanceof Error, - autoRenew: null == e ? void 0 : e.autoRenew, - cancellationType: null == e ? void 0 : e.cancellationType, - pageViewId: Nr.get("pageViewId"), - tbc: t.getTbcCookie(), - subscriptionId: null == e ? void 0 : e.subscriptionId - } - }(r, o)), c(!1), o instanceof Error && "Subscription was upgraded" === o.message && window.location.reload() - }, s = function (e) { - n.broadcast("setTemplateInteractionConfig", e) - }, c = function (e) { - i.isFlowInProgress = e - }, u = function (e) { - i = p(p({}, i), e) - }; - return { - handleAcpEvent: function (e, n, t, r) { - var o, i, s = (null === (o = n.params) || void 0 === o ? void 0 : o.eventName) || n.event, - u = t.experienceActionId, l = t.continuation, d = t.containerSelector, f = t.displayMode, - m = t.trackingId, v = "inline" === f ? d : null, - g = null === (i = n.params) || void 0 === i ? void 0 : i.subscriptionId, h = function () { - e("customEvent", p({ - experienceActionId: u, - continuation: l, - trackingId: m, - customEventName: s, - containerSelector: v - }, n.params), n.sender, r) - }; - switch (s) { - case Po.purge: - e("dismissTemplate", p({ - experienceActionId: u, - continuation: l, - trackingId: m, - offerType: t.offerType || null - }, n.params), n.sender, r); - break; - case Po.retainSubscription: - case Po.cancelSubscription: - e("finalConfirmation", p({ - experienceActionId: u, - continuation: l, - confirm: s === Po.cancelSubscription, - trackingId: m - }, n.params), n.sender, r), h(); - break; - case xo.autoRenewalDisabled: - e("autoRenewalDisabled", { - templateType: 1, - continuation: a.bind(Oo, "".concat(xo.autoRenewalDisabled, "-result"), n.params), - subscriptionId: g - }, n.sender), c(!0); - break; - case xo.subscriptionCancellation: - e("subscriptionCancellation", { - templateType: 1, - continuation: a.bind(Oo, "".concat(xo.subscriptionCancellation, "-result"), n.params), - subscriptionId: g - }, n.sender), c(!0); - break; - default: - h() - } - }, extendByAcpParams: function (e, n, t) { - var r = t.experienceActionId, o = t.continuation; - return p(p({}, n), {experienceActionId: r, continuation: o, customEventName: e}) - }, sendTemplateInteractionActive: function (e) { - if (e.activateTemplateInteraction && pn.user.isUserValid()) { - var n = pn.user.getProvider().getToken(); - if (n === i.token || i.isFlowInProgress) s(i.templateInteractionConfig); else { - var t = [Ao.subscriptionCancellation, Ao.autoRenewalDisabled]; - pn.experience.executeTemplateInteraction({templateType: 1}).then((function (e) { - var n = e.registeredEvents; - return t.reduce((function (e, t) { - var r; - return n.includes(t) ? p(p({}, e), ((r = {})[t] = !0, r)) : e - }), p({}, r)) - })).then((function (e) { - s(e), u({templateInteractionConfig: e, token: n}) - })).catch((function () { - s(r), u(o) - })) - } - } else s(r) - }, getComposerAcpEvents: function () { - return Object.values(Ao) - } - } - }(); - pn.container.register("acp", {useValue: Mo}), pn.acp = pn.container.resolve("acp"); - pn.container.register("analytics", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t, r = e.resolve("gaService"), o = e.resolve("ga4Service"), i = e.resolve("fbpixel"), - a = e.resolve("log"), s = function (e) { - return e || function () { - } - }, c = function (e) { - return { - initialize: s(e.__protected__.init), event: function (n) { - var t = n.eventType, r = n.payload; - return e.__protected__.handleEvent(t, r) - } - } - }; - return { - name: "analytics", ga: (n = r, t = o, { - initialize: function () { - }, event: function (e) { - var r = e.eventType, o = e.payload; - n.__protected__.handleEvent(r, o), t.__protected__.handleEvent(r, o) - } - }), fbpixel: c(i), log: c(a) - } - }() - }), pn.analytics = pn.container.resolve("analytics"); - var No = function () { - var e = pn.container.resolve("api"), n = pn.container.resolve("analytics"), t = []; - setTimeout((function () { - r() - }), 1e4); - var r = function (r) { - if (Math.floor(500 * Math.random()) + 1 === 255) { - var o = r || (pn.fullTPVersion ? "ts_c" : "ts_s"), i = {aid: pn.aid, type: o, actions: t}; - n.log.event({ - eventType: wo.LOG_TELEMETRY, - payload: {url: e.getEndpoint() + "/telemetry/ux/timings", params: i} - }) - } - }; - return { - name: "logging", setTime: function (e, n, r) { - t.push({name: e, time: n, tags: r}) - } - } - }(); - pn.container.register("logging", {useValue: No}), pn.logging = pn.container.resolve("logging"); - var Ro, Lo = "/execution/credit", Uo = "".concat(Lo, "/redeem"), Do = "".concat(Lo, "/check"); - !function (e) { - e.AUTO = "A", e.MANUAL = "M" - }(Ro || (Ro = {})); - var jo = function () { - var e = pn.container.resolve("util"), n = pn.container.resolve("ajax"), t = pn.container.resolve("jqUtils"), - r = pn.container.resolve("eventUtils"), o = pn.container.resolve("consent"), i = function (e) { - return Object.entries(e).reduce((function (e, n) { - var t = n[0], r = n[1]; - return (r || 0 === r) && (e[t] = r), e - }), {}) - }, a = r.createEventManager([]), s = function () { - return e.__protected__.getCookie("xbc") || void 0 - }, c = function (r, o, a) { - return new Promise((function (c, u) { - var l = a ? "?" + t.param(a) : "", d = function () { - var e = pn.getExperienceEndpoint(!1); - return "".concat(e, "/").concat(pn.aid) - }() + r + l, f = i({xbc: s(), tbc: e.getTbcCookie() || void 0}), m = i(p(p({}, f), o)); - if (!(m.cid && m.itemId && m.xbc)) { - var v = "credit: Error: Required params are absent"; - e.debug(v), u({code: 0, message: v}) - } - n.request({ - type: "post", - url: d, - data: p(p({}, f), o), - xhrFields: {withCredentials: !0}, - error: function (n) { - var t = "credit: Error: Received error:".concat(n.status, " ").concat(n.responseText); - e.debug(t), u({code: n.status, message: n.responseText}) - }, - success: function (e) { - c(e) - } - }) - })) - }, u = function (e, n, t, r) { - var o = function (e) { - return function (n) { - return a.fire(void 0, e, !0, n), n - } - }, i = o("string" == typeof e ? e : e.success), s = o("string" == typeof e ? e : e.failure); - return c(n, t, r).then(i).catch(s) - }; - return { - redeem: function (n) { - var t = o.__protected__.addConsentsToParams({}), r = t.consent_modes, i = t.consent_purposes; - return u("manualCreditRedeemed", Uo, p(p({}, n), { - previousUserSegments: Nr.get("userSegments"), - consentModes: r, - consentPurposes: i - })).then((function (n) { - var t = n.xbc; - t && t !== s() && e.setXbcCookieFromResponse({xbc: t}) - })) - }, check: function (e) { - return u("creditChecked", Do, e) - }, registerCallback: function (e, n) { - a.addEvent(e), a.registerCallback(e, n) - } - } - }(); - pn.container.register("credit", {useValue: jo}), pn.credit = pn.container.resolve("credit"); - var Vo = function () { - var e, n = pn.container.resolve("postmessage"), t = pn.container.resolve("containerUtils"), - r = pn.container.resolve("util"), o = pn.container.resolve("eventUtils"), - i = (pn.container.resolve("logging"), o.createEventManager(["resize", "loginSuccess", "logout"])), - a = function () { - return pn.getEndpointRoot(!0) + "/checkout/user/loginShow" - }; - - function s(o) { - r.debug("Login event received", o.event, o.params, o); - var a = !t.getIframe(o.sender).config.parent; - switch (o.event) { - case"loaded": - e = !1, !0; - break; - case"close": - t.closeModalContainer(), i.fireCallbacks(o.event, o.params, o.sender, a); - break; - case"cancel": - case"error": - case"customEvent": - i.fireCallbacks(o.event, o.params, o.sender, a); - break; - case"loginSuccess": - !function (e, n, o, a) { - var s = t.getIframe(o); - r.setAccessTokenListCookie({ - value: n.token_list, - cookie_domain: n.cookie_domain - }, n.user_token), s.config.userToken = n.user_token, s && s.config && s.config.loginSuccess && s.config.loginSuccess(n.event, n.params, n.sender), i.fireCallbacks(e, n, o, a), s && s.config && s.config.closeAfterSuccess && t.closeModalContainer(o); - var u = {reloadAfterLogin: !0, userToken: n.user_token, user: n.user}; - c(u) - }(o.event, o.params, o.sender, a); - break; - case"logoutSuccess": - !function (e, n, t, o) { - i.fireCallbacks("logout", null, void 0, !0), r.setAccessTokenListCookie({ - value: n.token_list, - cookie_domain: n.cookie_domain - }, n.user_token, !0) - }(o.event, o.params, o.sender); - break; - case"readyToSubmitStats": - var s = {pageViewId: pn.main.fetchPageViewId(), tbc: r.getTbcCookie()}; - n.send("submitStats", s, o.sender); - break; - default: - return void r.debug("Received invalid event type: " + o.event) - } - } - - var c = function (e) { - n.broadcast("reloadOffer", e) - }; - var u; - - function l(e) { - var n = performance.now(); - u && t.closeModalContainer(u); - var o = {}; - Object.assign(o, {closeAfterSuccess: !0}, e), o.displayMode = "popup", o.width = 360, o.height = 660, o.state = o.state ? o.state : "login"; - var c = function (e) { - var n = {}; - return ["displayMode", "aid", "width", "height", "state"].forEach((function (t) { - e[t] && (n[t] = e[t]) - })), n - }(o); - c.iframeId = r.randomString(16), c.url = window.location.href, c.host_url = window.location.href, c.initTime = n, u = c.iframeId, function (e) { - ["aid", "gaClientId", "tags", "contentSection", "contentAuthor"].forEach((function (n) { - pn[n] && (e[n] = pn[n]) - })), pn.contentCreated && (e.contentCreated = pn.contentCreated) - }(c), c.user_provider = "tinypass_accounts", e.userToken && (c.user_token = e.userToken), r.getCampaigns(c); - var l, d = {url: a(), config: o, postMessageUrl: a(), receive: s, iframeParams: c}; - return o.iframeId ? (d.iframeParams.iframeId = o.iframeId, l = t.redirectContainer(o.iframeId, d)) : l = t.createContainer(d), i.registerCallback(o, c.iframeId), l - } - - return { - name: "tinypassLogin", show: function (n) { - if (e) return !1; - e = !0, setTimeout((function () { - e = !1 - }), 1e4), l(n) || r.error("Could not initialize login; check configuration") - }, close: function () { - t.closeModalContainer() - }, showBackdrop: function () { - t.showBackdrop() - }, hideBackdrop: function () { - t.hideBackdrop() - }, centerBackdrop: function (e) { - t.centerBackdrop(e) - }, registerCallback: function (e, n) { - i.registerCallback(e, n) - }, listenLogin: function (e) { - !function (e) { - i.registerCallback(e, e.iframeId); - var t = {iframeId: e.iframeId, config: e, iframeParams: e}; - n.init({postMessageUrl: a(), receive: s, iframe: t, iframeParams: {}}) - }(e) - } - } - }(); - pn.container.register("tinypassLogin", {useValue: Vo}), pn.tinypassLogin = pn.container.resolve("tinypassLogin"); - var Fo = function () { - var e = pn.container.resolve("ajax"), n = pn.container.resolve("jqUtils"), t = pn.container.resolve("util"), - r = pn.container.resolve("tinypassLogin"), - o = pn.container.resolve("eventUtils").createEventManager(["logout"]), i = function () { - return t.getUserTokenCookie() || null - }; - return { - name: "tinypassAccounts", isv: !1, isUserValid: function () { - return !!t.getUserTokenCookie() - }, getToken: i, getName: function () { - return "tinypass_accounts" - }, onLoginSuccess: function (e) { - t.setAccessTokenListCookie({value: e.token_list, cookie_domain: e.cookie_domain}, e.user_token) - }, isConfigured: function () { - return !0 === pn.useTinypassAccounts || "string" == typeof pn.useTinypassAccounts && "true" === pn.useTinypassAccounts - }, login: function (e) { - return (e = e || {}).userToken = i(), r.show(e) - }, logout: function (r) { - var i = {aid: pn.aid, url: document.location.href}, - a = pn.getEndpointRoot(!0) + "/checkout/user/logout?" + n.param(i); - t.setAccessTokenListCookie({value: null}, void 0, !0), e.request({ - url: a, - dataType: "jsonp", - success: function (e) { - t.setAccessTokenListCookie({ - value: "", - cookie_domain: e.models.cookie_domain - }, e.models.user_token, !0), o.fireCallbacks("logout", null, void 0, !0), r && r(e) - }, - error: function (e) { - t.setAccessTokenListCookie(null, void 0, !0), o.fireCallbacks("logout", null, void 0, !0), r && r(e) - } - }) - }, registerCallback: function (e, n) { - o.addEvent(e), o.registerCallback(e, n) - } - } - }(); - pn.container.register("tinypassAccounts", {useValue: Fo}), pn.tinypassAccounts = pn.container.resolve("tinypassAccounts"); - var Bo = function () { - var e = pn.container.resolve("jqUtils"), n = pn.container.resolve("cookie"), t = pn.container.resolve("util"), - r = pn.container.resolve("eventUtils").createEventManager(["logout"]); - return { - isv: !1, name: "condeUserProvider", getName: function () { - return "conde" - }, isUserValid: function () { - return !!t.getUserTokenCookie() - }, getToken: function () { - var e = t.findCookieByName("amg_user_partner"); - return void 0 !== e && e && e.length >= 0 ? e : null - }, onLoginSuccess: function (r) { - t.setAccessTokenListCookie({value: r.token_list, cookie_domain: r.cookie_domain}, r.user_token); - var o = {path: "/", expires: 730}; - r.cookie_domain && "localhost" !== r.cookie_domain && e.inArray(r.cookie_domain, t.getPossibleCookieDomains()) >= 0 && (o.domain = r.cookie_domain), n.raw = !0, t.__protected__.setCookie(r.params.cookieName, r.params.cookieValue, o), t.__protected__.setCookie("amg_user_partner", r.params.externalId, o), t.__protected__.setCookie("amg_user_info", r.params.userName, o), t.__protected__.setCookie("amg_user_ext", r.params.siteUserId, o), r.params.updateToken && t.__protected__.setCookie("amg_user_update", r.params.updateToken, o), n.raw = !1 - }, logout: function (e) { - t.setAccessTokenListCookie({value: null}, void 0, !0); - var n = t.getPossibleCookieDomains(); - for (var o in n) t.deleteCookie("amg_user", n[o]), t.deleteCookie("amg_user_partner", n[o]), t.deleteCookie("amg_user_info", n[o]), t.deleteCookie("amg_user_ext", n[o]), t.deleteCookie("amg_user_update", n[o]); - t.deleteCookie("amg_user"), t.deleteCookie("amg_user_partner"), t.deleteCookie("amg_user_info"), t.deleteCookie("amg_user_ext"), t.deleteCookie("amg_user_update"), r.fireCallbacks("logout", null, void 0, !0), e && e() - }, isConfigured: function () { - return !0 === pn.useCondeUserProvider || "string" == typeof pn.useCondeUserProvider && "true" === pn.useCondeUserProvider - }, registerCallback: function (e, n) { - r.addEvent(e), r.registerCallback(e, n) - } - } - }(); - pn.container.register("condeUserProvider", {useValue: Bo}), pn.condeUserProvider = pn.container.resolve("condeUserProvider"); - var qo = function () { - var e = pn.container.resolve("util"), n = pn.container.resolve("api"), t = pn.container.resolve("eventUtils"), - r = pn.container.resolve("jqUtils"), o = !1; - var i = t.createEventManager(["userChanged", "onHide", "logout"]), a = { - apiKey: null, - screenSet: "Default-RegistrationLogin", - startScreen: null, - enabledProviders: null, - lang: null - }; - - function s() { - var n = e.getUserTokenCookie(); - if (n && e.findCookieByName("glt_" + a.apiKey) === e.findCookieByName("__utg_" + a.apiKey)) return n; - return null - } - - function c() { - var e = s(); - return !!(void 0 !== e && e && e.length >= 0) - } - - var u = []; - - function l(t, s) { - if (!o) throw "Gigya is not configured"; - p(); - var l = e.findCookieByName("glt_" + a.apiKey), d = e.findCookieByName("__utg_" + a.apiKey); - (l !== d || l && l === d && !c() || t) && (u.push(s), 1 === u.length && window.gigya.accounts.getAccountInfo({ - callback: function (t) { - if (0 === t.errorCode) { - var o = { - uid: t.UID, - signature: t.UIDSignature, - signature_timestamp: t.signatureTimestamp, - url: e.prepareUrlParameter(window.location.href) - }; - e.startCall("refreshUserToken"), n.callApi("/anon/gigya/verifyAccountInfo", o, (function (n) { - if (n && n.result) { - e.setAccessTokenListCookie(n.result.access_token, n.result.user_token); - var t = {path: "/", expires: 730}; - if (n.result.access_token) { - var o = n.result.access_token.cookie_domain; - o && "localhost" !== o && r.inArray(o, e.getPossibleCookieDomains()) >= 0 && (t.domain = o) - } - var s = e.findCookieByName("glt_" + a.apiKey); - e.__protected__.setCookieConsent("vx", "__utg_" + a.apiKey, s, t); - for (var c = 0; c < u.length; c++) { - var l = u[c]; - l && l(n.result) - } - n.result.user && (n.result.user = { - uid: n.result.user.uid, - email: n.result.user.email, - firstName: n.result.user.first_name, - lastName: n.result.user.last_name, - valid: n.result.user.valid - }), i.fireCallbacks("userChanged", n.result, void 0, !0) - } else e.log("Can't verify gigya user: may be the configuration of gigya user provider is invalid"), e.setAccessTokenListCookie(); - u = [], e.doneCall("refreshUserToken") - })) - } else e.setAccessTokenListCookie(), u = [] - } - })) - } - - var d = !1; - - function p() { - if (!window.gigya || !window.gigya.__initialized) throw "Gigya is not initialized" - } - - return { - isv: !1, name: "gigya", init: function (n) { - if (!o) { - for (var t in n) void 0 !== n[t] && (a[t] = n[t]); - if (!a.screenSet) throw "Gigya is not configured: screenSet parameter required"; - if (!a.apiKey) throw "Gigya is not configured: apiKey parameter required"; - p(), window.gigya.accounts.addEventHandlers({ - onLogin: function () { - d = !0, l() - }, onLogout: function () { - e.setAccessTokenListCookie({value: null}, void 0, !0), i.fireCallbacks("logout", null, void 0, !0) - } - }), o = !0, l() - } - }, isUserValid: c, getToken: s, getName: function () { - return "gigya" - }, onLoginSuccess: function (n) { - e.setAccessTokenListCookie({value: n.token_list, cookie_domain: n.cookie_domain}, n.user_token) - }, login: function (e) { - if (!o) throw "Gigya is not configured"; - p(), e && window.gigya.accounts.addEventHandlers({ - onLogin: function () { - l(!0, e) - } - }); - var n = { - screenSet: a.screenSet, onHide: function () { - i.fireCallbacks("onHide", {afterLogin: d}, void 0, !0) - } - }, t = ["apiKey", "screenSet"]; - for (var r in a) { - r in t || (n[r] = a[r]) - } - d = !1, window.gigya.accounts.showScreenSet(n) - }, logout: function (n) { - if (!o) throw "Gigya is not configured"; - p(), window.gigya.accounts.logout({ - callback: function () { - i.fireCallbacks("logout", null, void 0, !0), n && n(), e.setAccessTokenListCookie({value: null}, void 0, !0) - } - }), e.setAccessTokenListCookie({value: null}, void 0, !0) - }, isConfigured: function () { - return !0 === pn.useGigyaUserProvider || "string" == typeof pn.useGigyaUserProvider && "true" === pn.useGigyaUserProvider - }, registerCallback: function (e, n) { - i.addEvent(e), i.registerCallback(e, (function (e) { - return n(e) - })) - }, loginByPasswordless: function (n) { - if (!n) throw "Session info is empty"; - var t = n.accessTokenName, r = n.accessToken; - e.__protected__.setCookie(t, r); - var o = "glt_" + a.apiKey; - e.__protected__.setCookieConsent("vx", o, r), l(!0) - } - } - }(); - pn.container.register("gigya", {useValue: qo}), pn.gigya = pn.container.resolve("gigya"); - var zo = function () { - var e = function (e) { - function n() { - return null !== e && e.apply(this, arguments) || this - } - - return d(n, e), n.prototype.construct = function (e) { - this.message = e, this.name = "InvalidCharacterError" - }, n - }(Error); - - function n(n) { - var t = String(n).replace(/=+$/, ""); - if (t.length % 4 == 1) throw new e("'atob' failed: The string to be decoded is not correctly encoded."); - for (var r, o, i = 0, a = 0, s = ""; o = t.charAt(a++); ~o && (r = i % 4 ? 64 * r + o : o, i++ % 4) ? s += String.fromCharCode(255 & r >> (-2 * i & 6)) : 0) o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o); - return s - } - - try { - var t = window.atob && window.atob.bind(window) || n - } catch (e) { - t = n - } - var r = function (e) { - var n = e.replace(/-/g, "+").replace(/_/g, "/"); - switch (n.length % 4) { - case 0: - break; - case 2: - n += "=="; - break; - case 3: - n += "="; - break; - default: - throw "Illegal base64url string!" - } - try { - return function (e) { - return decodeURIComponent(t(e).replace(/(.)/g, (function (e, n) { - var t = n.charCodeAt(0).toString(16).toUpperCase(); - return t.length < 2 && (t = "0" + t), "%" + t - }))) - }(n) - } catch (e) { - return t(n) - } - }; - return function (e, n) { - if ("string" != typeof e) throw new Error("Invalid token specified"); - var t = !0 === (n = n || {}).header ? 0 : 1; - return JSON.parse(r(e.split(".")[t])) - } - }(); - pn.jwtDecode = zo, pn.container.register("jwtDecode", {useValue: zo}); - pn.container.register("urlManager", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t = function () { - var e = pn.sandbox || pn.isNonProdEndpoint(), - t = n || pn.pianoIdUrl || !e && "https://id.tinypass.com" || "/"; - return "/" === t && (t = pn.getEndpointRoot(!0)), t.replace(/\/$/, "") - }, r = function () { - return "".concat(t(), "/id/") - }; - return { - getPianoIdDomain: t, getPianoIdUrl: r, getIdentifyUrl: function () { - return "".concat(r(), "api/v1/identity") - }, iframeUrlFromGlobalConfig: n, setIframeUrlFromGlobalConfig: function (e) { - return n = e - } - } - }() - }); - var Ho, Wo; - pn.container.register("langManager", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("util"); - return { - getLang: function () { - return pn.locale || n.__protected__.getCookie("__pil") || "" - } - } - }() - }), function (e) { - e.Modal = "modal", e.Inline = "inline", e.Popup = "popup", e.Redirect = "redirect", e.InlinePopup = "inlinePopup" - }(Ho || (Ho = {})), function (e) { - e.isPianoIdLiteConfigured = function () { - return !0 === pn.usePianoIdLiteUserProvider || "string" == typeof pn.usePianoIdLiteUserProvider && "true" === pn.usePianoIdLiteUserProvider - }, e.isCustomForm = function (e, n) { - var t = !e.isRegistration, r = !/\.html$/.test(n); - return !!e.formName && r && t - } - }(Wo || (Wo = {})); - var Go = Wo.isCustomForm; - pn.container.register("iframeBuilder", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("util"), t = e.resolve("langManager"), r = e.resolve("gaService"), - o = e.resolve("jqUtils"); - return { - buildIframeUrl: function (e, i, a, s) { - var c, u = n.getPageViewContext().contentType, l = n.getPageViewContext(), d = l.pageTitle, - p = l.pageViewId, f = { - client_id: i.aid, - sender: null == a ? void 0 : a.iframeId, - origin: s || window.location.origin || window.location.href, - site: window.location.href, - display_mode: i.displayMode, - page_view_id: null != p ? p : void 0, - browser_id: null !== (c = n.getBrowserId()) && void 0 !== c ? c : void 0, - page_title: d, - tbc: n.getTbcCookie() - }; - u && (f.content_type = u); - var m = t.getLang(); - if (m && (f.lang = m), r.getClientId() && (f.ga_client_id = r.getClientId()), r.getGAAccount() && (f.ga = r.getGAAccount()), i.disableSignUp && (f.disable_sign_up = !0), i.screen && (f.screen = i.screen), i.resetPasswordToken && (f.reset = i.resetPasswordToken), i.verification_code && (f.verification_code = i.verification_code), i.stage && (f.stage = i.stage), i.resetPasswordLandingUrl && (f.reset_uri = i.resetPasswordLandingUrl), i.width && i.displayMode === Ho.Modal && (f.width = i.width), i.formName && (f.form_name = i.formName), i.preview) switch (i.template) { - case"custom_form": - e += "form"; - break; - case"profile": - e += "profile"; - break; - case"newsletters": - e += "newsletters"; - break; - case"layout_gm_sso": - case"sso_confirm": - case"sso_confirm_before": - e += "gm-sso" - } else Go(i, e) && (e += "form"), i.isGmSsoEnabled && (e += "gm-sso"); - if (i.confirmation && (f.gm_sso_confirm = i.confirmation), i.hideIfComplete && (f.hide_if_complete = i.hideIfComplete), i.preview && (f.preview = i.preview), i.templateVersion && (f.templateVersion = i.templateVersion), i.template && (f.template = i.template), i.accessToken && (f.access_token = i.accessToken), i.email && (f.email = i.email), i.singleStep && (f.single_step = !0), i.createPasswordlessUser && (f.create_passwordless_user = !0), i.customParams && (f.custom_params = JSON.stringify(i.customParams)), i.customEvents) { - var v = Object.keys(i.customEvents); - v.length && (f.custom_events = JSON.stringify(v)) - } - return i.jsonpError && (f.jsonp_error = JSON.stringify(i.jsonpError)), i.passwordlessSuccess && (f.passwordless_success = !0), i.passwordlessToken && (f.passwordless_token = i.passwordlessToken), i.redirectUri && (f.redirect_uri = i.redirectUri), null != a && a.iframeUrl && (f.url = a.iframeUrl), i.returnBack && (f.return_back = i.returnBack), null != a && a.pos && (f.width = a.pos.width, f.height = a.pos.height, f.top = a.pos.top, f.left = a.pos.left), i.templateId && (f.template_id = i.templateId), i.variantId && (f.variant_id = i.variantId), i.sss && (f.sss_mode = i.sss.sss_mode, f.sss_callback_url = i.sss.sss_callback_url, f.sss_origin_url = i.sss.sss_origin_url), i.trackingId && (f.tracking_id = i.trackingId), i.response_id && (f.response_id = i.response_id), i.transparentMode && (f.transparent_mode = !0), [e, o.param(f)].join("?") - } - } - }() - }); - var Jo = function (e) { - function n() { - return null !== e && e.apply(this, arguments) || this - } - - return d(n, e), n - }(Error); - pn.container.register("microsoftQuickAuth", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t = "msqaLinkingState", r = e.resolve("util"), o = e.resolve("ajax"), i = e.resolve("localStorage"), - a = e.resolve("gaService"), s = "", c = "", u = function () { - return new Promise((function (e) { - var o, a = null !== (o = null == n ? void 0 : n.promptPosition) && void 0 !== o ? o : "left"; - ms.auth.prompt(a, (function (n) { - n.displayed && (r.debug("[Piano ID][Microsoft Quick Auth] Prompt displayed."), i.remove(t)), e(n) - })) - })) - }, l = function () { - var e = new URL(s), n = r.getBrowserId(); - n && e.searchParams.append("browser_id", n); - var a = pn.main.fetchPageViewId(); - a && e.searchParams.append("page_view_id", a); - var u = r.getPageViewContext().contentType; - return u && e.searchParams.append("content_type", u), new Promise((function (n, r) { - return o.request({ - url: e.toString(), - type: "POST", - contentType: "application/json", - dataType: "text", - data: JSON.stringify({ - state: i.get(t), - back_url: window.location.href, - social_type: "MSQA", - response_type: "token", - prompt: !0, - redirect_uri: c - }), - success: function (e) { - i.set(t, e), "ms" in window && ms.auth.setRedirectState(e), n(e) - }, - error: function (e) { - r(e) - } - }) - })) - }; - return { - init: function (e, o, a) { - return void 0 === a && (a = function () { - }), g(void 0, void 0, void 0, (function () { - var s, c; - return h(this, (function (u) { - switch (u.label) { - case 0: - if (!e || !o) throw new Jo("[Piano ID] Microsoft Quick Auth configuration failed. Client ID or redirectUri are missed."); - return [4, r.requireJsFile("https://edge-auth.microsoft.com/js/ms_auth_client.min.js")]; - case 1: - if (u.sent(), r.debug("[Piano ID][Microsoft Quick Auth] Script loaded."), !ms) throw new Jo("[Piano ID] Microsoft Quick Auth configuration failed. MSQA is not loaded."); - if (s = ms.auth.initialize({ - client_id: e, - callback: a, - redirect_uri: o, - ux_mode: "redirect", - auto_prompt: !1, - auto_sign_in: null == n ? void 0 : n.autoSignIn, - context: null == n ? void 0 : n.context, - cancel_on_tap_outside: null == n ? void 0 : n.cancelOnTapOutside, - locale: null == n ? void 0 : n.locale - }), (c = i.get(t)) && ms.auth.setRedirectState(c), "failure" === s.result) throw new Jo("[Piano ID] Microsoft Quick Auth configuration failed due to ".concat(s.reason)); - return r.debug("[Piano ID][Microsoft Quick Auth] Initialized."), [2] - } - })) - })) - }, showPrompt: u, fetchLinkingState: l, setLinkingStateUrl: function (e) { - return s = e - }, setLinkingRedirectUri: function (e, n, t, o) { - var i = new URL(e); - i.searchParams.append("client_id", n), i.searchParams.append("origin", t), i.searchParams.append("site", window.location.href), i.searchParams.append("display_mode", "modal"); - var s = pn.main.fetchPageViewId(); - s && i.searchParams.append("page_view_id", s); - var u = r.getBrowserId(); - u && i.searchParams.append("browser_id", u); - var l = r.getTbcCookie(); - l && i.searchParams.append("tbc", l), a.getGAAccount() && i.searchParams.append("ga", a.getGAAccount()); - var d = r.getPageViewContext(); - null != d && d.contentType && i.searchParams.append("content_type", null == d ? void 0 : d.contentType), i.searchParams.append("lang", o), i.searchParams.append("width", "400"), c = i.toString() - }, runLinkingStateAndPromptObserver: function () { - r.debug("[Piano ID][Microsoft Quick Auth] Running linking state and prompt observer."), setInterval((function () { - return l().then((function () { - return u() - })) - }), 6e5) - }, clearConfirmationParameters: function () { - var e = "internal_redirect_uri", n = "response_id"; - r.hasQueryParamByName(e) && r.removeQueryParamByName(e), r.hasQueryParamByName(n) && r.removeQueryParamByName(n) - }, setConfiguration: function (e) { - return n = e - } - } - }() - }); - pn.container.register("selfServeSessions", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("langManager"), t = e.resolve("urlManager"), r = function () { - var e = o(), n = e.sss_mode, t = e.sss_callback_url; - return !!n && !!t - }, o = function () { - var e = pn.sssOriginUrl || window.location.href || window.location.origin; - return {sss_mode: pn.sssMode, sss_callback_url: pn.sssCallbackUrl, sss_origin_url: e} - }; - return { - getAccessToken: function () { - return pn.sssAccessToken - }, isSssEnabled: r, getSssParams: o, setSssAccessToken: function (e, r) { - if (void 0 === r && (r = !1), pn.setSssAccessToken(e), !r) { - var i = ""; - i += "callback_url=" + o().sss_callback_url, i += "&origin_url=" + o().sss_origin_url, i += "&aid=" + pn.aid, i += "&lang=" + n.getLang(), i += "&token=" + e, window.location.href = t.getPianoIdDomain() + "/id/api/v1/sss?" + i - } - }, isRedirect: function (e) { - var n; - return "redirect" === (null === (n = e.sss) || void 0 === n ? void 0 : n.sss_mode) - }, logout: function () { - r() && pn.sssAccessToken && pn.setSssAccessToken(void 0) - } - } - }() - }); - pn.container.register("tokenManager", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("util"), t = e.resolve("selfServeSessions"), r = n.getAidSpecifiedName("__utp"), - o = function () { - var e; - return t.isSssEnabled() && t.getAccessToken() ? null !== (e = t.getAccessToken()) && void 0 !== e ? e : null : n.findCookieByName(r) || null - }; - return { - getToken: function () { - return pn.externalJWT && Wo.isPianoIdLiteConfigured() ? pn.externalJWT : o() - }, loadToken: o - } - }() - }); - var Qo; - pn.container.register("configManager", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("tokenManager"), t = function () { - var e = window.innerWidth || document.documentElement.clientWidth || window.screen.width; - return Math.min(e, 400) - }; - return { - prepareConfig: function (e, r) { - e.aid || (e.aid = pn.aid), e.displayMode || (e.displayMode = Ho.Modal), e.displayMode === Ho.Popup ? (e.width = parseInt(String(e.width)) || t(), e.height = parseInt(String(e.height)) || 460) : e.displayMode === Ho.Modal && (e.width = parseInt(String(e.width)) || t()), null == r || r(e), e.accessToken = n.loadToken() - }, getDefaultWidth: t - } - }() - }), function (e) { - e.None = "none", e.Before = "before", e.After = "after" - }(Qo || (Qo = {})); - pn.container.register("pianoId", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t, r, o, i, a, s = e.resolve("cookie"), c = e.resolve("jqUtils"), u = e.resolve("ajax"), - l = e.resolve("jwtDecode"), d = e.resolve("util"), f = e.resolve("containerUtils"), - m = e.resolve("postmessage"), v = e.resolve("observer"), y = (e.resolve("gaService"), e.resolve("api")), - w = e.resolve("logging"), _ = e.resolve("localStorage"), k = e.resolve("consent"), - C = e.resolve("analytics"), I = e.resolve("clientConfiguration"), S = e.resolve("microsoftQuickAuth"), - E = !1, T = e.resolve("selfServeSessions"), P = e.resolve("iframeBuilder"), - x = e.resolve("configManager"), A = e.resolve("urlManager"), O = e.resolve("tokenManager"), - M = "gm_sso_redirect", N = "token", R = "term_id", L = "offer_id", U = "checkout_flow_id", - D = "experience_id", j = "form_name", V = "form_name_by_term_id", F = "remember", B = "registration", - q = "reset_token", z = "passwordless_token", H = "verification_code", W = "piano_social_token", - G = d.getAidSpecifiedName("__utp"), J = "__pil", Q = "__pid", X = "__idr", Y = "__eea", $ = "PIANOID", - K = "show_form", Z = "registration", ee = "checkout", ne = 3e3, te = "pnid-tc-string", - re = ["he_IL", "ar_EG"], oe = {}, ie = [], ae = {}, se = { - loggedIn: [], - loggedOut: [], - loginSuccess: [], - registrationSuccess: [], - profileUpdate: [], - langChange: [], - fire_loginSuccess: [], - loginDisplayed: [], - registerDisplayed: [], - loginFailed: [], - registrationFailed: [], - onShow: [], - layoutReady: [] - }, ce = {}, ue = {}, le = [], de = !1, pe = {}; - c.on(window, "resize", (function () { - return me() - })); - var fe = function (e) { - var n; - de && (e.confirmation = null !== (n = e.confirmation) && void 0 !== n ? n : Qo.After) - }, me = function (e) { - ie.filter((function (e) { - return "inline" === e.config.displayMode - })).filter((function (n) { - return !e || e.some((function (e) { - return n.container === e - })) - })).forEach((function (e) { - var n = c.getWidth(e.container); - f.resizeIframe(e, {width: n}), m.send("resize", {width: n}, e.iframeId) - })) - }, ve = function (e) { - if (o && !e) return o; - var n; - oe = Object.assign(oe, e), A.setIframeUrlFromGlobalConfig(oe.iframeUrl), e && Ve(e), Object.keys(se).forEach((function (e) { - !!oe[e] && delete oe[e] - })), o = new Promise((function (e) { - n = e - })), Wo.isPianoIdLiteConfigured() || pn.setUsePianoIdUserProvider(!0); - var t = d.getQueryParamByName(q); - if (void 0 === oe.resetPasswordToken && t && (oe.resetPasswordToken = t), d.getQueryParamByName(M)) { - var r = d.getQueryParamByName(R), i = d.getQueryParamByName(L), a = d.getQueryParamByName(D), - s = d.getQueryParamByName(U), c = d.getQueryParamByName(j), u = d.getQueryParamByName(V); - r && i && (pe.termId = r, pe.offerId = i), a && (pe.experienceId = a), s && (pe.checkoutFlowId = s), c && (pe.formName = c), u && (pe.formNameByTermId = u), g(void 0, void 0, void 0, (function () { - var e, n, t; - return h(this, (function (r) { - switch (r.label) { - case 0: - return e = d.getQueryParamByName(N), n = !!d.getQueryParamByName(F), t = !!d.getQueryParamByName(B), d.removeQueryParamByName([M, N, F, R, L, D, U, j, V, B]), e ? [4, cn({ - source: $, - user: l(e), - remember: n, - token: e - })] : [3, 2]; - case 1: - r.sent(), t && je("registrationSuccess"), r.label = 2; - case 2: - return [2] - } - })) - })), function () { - var e = O.getToken(), n = l(e); - e && (pe.emailConfirmationRequired = n.email_confirmation_required, pe.phoneConfirmationRequired = n.pn_cr) - }() - } - var p = d.getQueryParamByName(z); - void 0 === oe.passwordlessToken && p && (oe.passwordlessToken = p); - var f = d.getQueryParamByName(H); - void 0 === oe.verification_code && f && (oe.verification_code = f); - var m = d.getQueryParamByName(W); - return m && (d.removeQueryParamByName(W), un() || (pn.inappBrowserReturn = !0, function (e, n) { - var t = l(e); - t.rememberMe = n, tn({user: t, token: e}) - }(m, !0))), setTimeout((function () { - return n() - }), 50), o - }, ge = function (e, t) { - if (r && !e) return r; - var o; - r = new Promise((function (e) { - o = e - })); - var i = function () { - d.doneCall("refreshUserToken"), r = null, o() - }, a = function (t) { - var r, o; - if ("token_not_valid" === t) { - if (i(), E) return; - if (d.isEdge()) { - var a = d.getQueryParamByName("internal_redirect_uri"), - s = d.getQueryParamByName("response_id"); - if (a && s) { - S.clearConfirmationParameters(); - var c = Array.from(new URL(a).searchParams.entries()); - return he(p(p(p({}, oe), c.reduce((function (e, n) { - var t, r = n[0], o = n[1]; - return p(p({}, e), ((t = {})[r] = o, t)) - }), {})), {response_id: s, transparentMode: !0})), void (E = !0) - } - S.setLinkingStateUrl("".concat(A.getIdentifyUrl(), "/social/").concat(oe.aid || pn.aid, "/state")), S.setLinkingRedirectUri(A.getPianoIdUrl(), oe.aid || pn.aid, A.getPianoIdUrl(), "en-US"), S.setConfiguration(p(p({}, null == e ? void 0 : e.msqaPromptConfiguration), {locale: null !== (o = null === (r = null == e ? void 0 : e.msqaPromptConfiguration) || void 0 === r ? void 0 : r.locale) && void 0 !== o ? o : kn().replace("_", "-")})), n = I.getConfiguration().then((function (e) { - return g(void 0, void 0, void 0, (function () { - return h(this, (function (n) { - switch (n.label) { - case 0: - return e.msqa_client_id ? [4, S.fetchLinkingState()] : [3, 2]; - case 1: - return n.sent(), [2, e]; - case 2: - return [2, Promise.reject()] - } - })) - })) - })).then((function (e) { - return S.init(e.msqa_client_id, "".concat(A.getIdentifyUrl(), "/login/social/callback/MSQA")) - })).then((function () { - return S.runLinkingStateAndPromptObserver() - })).then((function () { - var n, t; - if (null === (t = null === (n = null == e ? void 0 : e.msqaPromptConfiguration) || void 0 === n ? void 0 : n.autoPrompt) || void 0 === t || t) return S.showPrompt() - })).then((function () { - return E = !0 - })).catch((function (e) { - e instanceof Jo && console.error(e) - })) - } - } else "request_failed" === t && console.error("Opening the ID screen is prohibited because authentication via cookie failed.") - }; - return e && e.preview ? (setTimeout((function () { - return o() - }), 10), r) : (d.startCall("refreshUserToken"), ve(e).then((function () { - return oe.passwordlessToken ? Ce().then(i, i) : t ? Promise.resolve().then(i, i) : mn().then(i, a) - })), r) - }, he = function (e) { - var n = !un(), r = performance.now(); - ge().then((function () { - var o = Object.assign({}, oe, e, { - isRegistration: !0, - initTime: r, - isSensitiveDataProtectionDisabled: !0 - }); - if (T.isSssEnabled() && (o.sss = T.getSssParams()), de) En(o) ? Tn(o) : dn(o); else if (T.isSssEnabled() && T.isRedirect(o)) $e(o, (function (e) { - fe(e) - })); else { - var i = un(); - if (i) Me(o, {emitGlobalLoginSuccessEvent: n && i}); else t ? d.log("Modal login window already shown") : (x.prepareConfig(o, (function (e) { - fe(e) - })), Ke(o)) - } - })) - }, ye = function () { - var e = "email_is_not_confirmed", n = sn(); - if (n) { - var t = d.getQueryParamByName(e); - if (t) d.removeQueryParamByName(e), be({ - screen: "registration" === t ? "email_is_not_confirmed" : "email_confirmation_required", - email: null == n ? void 0 : n.email - }) - } - }, we = function (e) { - t ? d.log("Modal window already shown") : ge().then((function () { - var n = Object.assign({screen: "email_confirmation_required"}, oe, e); - x.prepareConfig(n, (function (e) { - fe(e) - })), Ke(n) - })) - }, _e = function (e) { - t ? d.log("Modal window already shown") : ge().then((function () { - var n = Object.assign({screen: "email_confirmation"}, oe, e); - En(n) && (n.displayMode = Ho.Modal), d.getQueryParamByName(H) && d.removeQueryParamByName(H), x.prepareConfig(n, (function (e) { - fe(e) - })), Ke(n) - })) - }, be = function (e) { - if (t) d.log("Modal window already shown"); else { - e || (e = {}); - var n = Object.assign({}, e, oe); - e.customEvents && "object" == _typeof(e.customEvents) && (ce = e.customEvents), x.prepareConfig(n, (function (e) { - fe(e) - })), Ke(n) - } - }, ke = function (e) { - var n = performance.now(); - ge().then((function () { - var r = Object.assign({}, oe, e, {initTime: n, isRegistration: !1}); - if (!r.formName) throw new Error('Form name should be specified, like\ntp.pianosId.showForm({formName: "..."});'); - var o = function () { - if (t) d.log("Modal login window already shown"); else { - if (x.prepareConfig(r, (function (e) { - fe(e) - })), !r.preview && i) return void d.log("Skip show form, register new user"); - if (!r.hideIfComplete) return void Ke(p(p({}, r), { - entityType: "customForm", - readyCallback: function (e) { - m.send("setToken", O.getToken(), e.iframeId) - } - })); - Sn(r).then((function (e) { - (null == e ? void 0 : e.has_all_custom_field_values_filled) && r.hideIfComplete ? d.log("Skip show form, all fields are completed") : Ke(p(p({}, r), { - entityType: "customForm", - readyCallback: function (n) { - m.send("setToken", O.getToken(), n.iframeId), m.send("userData", e, n.iframeId) - } - })) - })) - } - }; - if (e.preview || un()) o(); else { - var a = Object.assign({}, e, { - closedCallback: function () { - un() && o() - } - }); - he(a) - } - })) - }, Ce = function () { - return new Promise((function (e, n) { - var t = {aid: oe.aid || pn.aid, passwordless_token: oe.passwordlessToken, lang: kn()}; - Nn({ - url: "".concat(A.getIdentifyUrl(), "/passwordless/authorization/code?").concat(c.param(t)), - type: "POST", - success: function (n) { - Ie(n), e(null) - }, - error: function (e) { - var t = e.response, r = JSON.parse(t).error_code_list; - Se(r), n() - } - }) - })) - }, Ie = function (e) { - return g(void 0, void 0, void 0, (function () { - var n, t, r, o, i, a, s; - return h(this, (function (c) { - switch (c.label) { - case 0: - return n = e.access_token, t = e.error, r = e.token_type, o = e.direction_url, i = e.code, a = e.extend_expired_access_enabled, !t && "code" === r && o && i ? ((s = new URL(o)).searchParams.append("code", i), window.open(s, window.name), [3, 3]) : [3, 1]; - case 1: - return !t && n ? (Ee(e), delete oe.passwordlessToken, d.removeQueryParamByName(z), T.isSssEnabled() && T.setSssAccessToken(n, !0), [4, cn({ - source: $, - token: n, - user: l(n), - extendExpiredAccessEnabled: a - })]) : [3, 3]; - case 2: - c.sent(), T.isSssEnabled() && T.setSssAccessToken(n), c.label = 3; - case 3: - return d.doneCall("refreshUserToken"), [2] - } - })) - })) - }, Se = function (e) { - be({ - screen: "passwordless_confirmation", jsonpError: { - error_description: e.map((function (e) { - return e.message - })).join("\n") - } - }), delete oe.passwordlessToken, d.removeQueryParamByName(z) - }, Ee = function (e) { - var n = {aid: oe.aid || pn.aid, login_token_id: e.login_token_id, user_token: e.access_token}, - t = {passwordlessToken: e.passwordless_token, redirectUri: e.direction_url}; - Te(n, t) - }, Te = function (e, n) { - f.showWaitPanel(), y.callApi("/anon/passwordless/complete", e, (function (e) { - if (e.result && e.result.polling_enabled) return Pe(e).then((function (e) { - Ae(e, n) - })); - Ae(e, n) - })) - }, Pe = function (e) { - return new Promise((function (n) { - var t = { - aid: pn.aid, - oid: e.result.oid, - process_id: e.result.process_id, - user_token: pn.user.getProvider().getToken() - }; - xe(t, 0, e.result.polling_timeouts, n) - })) - }, xe = function e(n, t, r, o) { - y.callApi("/anon/passwordless/check", n, (function (i) { - t++, i && i.result && "waiting" !== i.result.poll_status ? o(i) : !i.result && i.message ? (d.error("Passwordless purchase failed", i.message), o()) : t <= r.length ? setTimeout((function () { - e(n, t, r, o) - }), r[t - 1]) : o() - })) - }, Ae = function (e, n) { - try { - var t = e.result.resource || {}, r = JSON.parse(e.result.show_offer_params), o = Oe(n); - if (!Object.keys(t).length && !Object.keys(r).length) return be(o); - o = t.name ? Oe(n, {customParams: {resourceName: t.name}}) : Oe(n, { - customEvents: { - checkoutContinue: function () { - en(), f.closeModalContainer(), pn.offer.show(r) - } - } - }), be(o) - } catch (e) { - be(Oe(n)) - } finally { - f.hideWaitPanel() - } - }, Oe = function (e, n) { - var t = {screen: "passwordless_confirmation"}; - return e && (t.passwordlessToken = e.passwordlessToken, t.redirectUri = e.redirectUri), n ? Object.assign(t, n) : Object.assign(t, {passwordlessSuccess: !0}) - }, Me = function (e, n) { - n = n || {}; - var t = sn(); - if (t) { - var r = {token: O.loadToken(), user: t, source: n.source, stage: n.stage}, o = { - event: "loginSuccess", - source: n.source, - params: r.user, - user_token: r.token, - registration: i, - stage: n.stage - }; - e ? (e.loggedIn && e.loggedIn(r), n.emitGlobalLoginSuccessEvent && De("loginSuccess", o)) : (Re("loggedIn", r), Re("loginSuccess", r), n.source === $ && (Re("fire_loginSuccess", o), De("loginSuccess", o))) - } - }, Ne = function (e, n) { - var t = {login: "loginDisplayed", register: "registerDisplayed"}[e]; - n || Re(t, {}), De(t, {}) - }, Re = function (e, n) { - var t; - Le(e, n), null === (t = se[e]) || void 0 === t || t.forEach((function (e) { - return e(n) - })) - }, Le = function (e, n) { - ie.filter((function (e) { - return !e.closed - })).map((function (n) { - return Ue(n.config, e) - })).filter((function (e) { - return !!e - })).forEach((function (e) { - return e(n) - })) - }, Ue = function (e, n) { - return "function" == typeof (null == e ? void 0 : e[n]) ? e[n] : void 0 - }, De = function (e, n) { - var t; - null === (t = ue[e]) || void 0 === t || t.forEach((function (e) { - return e(n) - })) - }, je = function (e, n) { - Re(e, n), De(e, n) - }, Ve = function (e) { - !e || Object.keys(se).forEach((function (n) { - var t, r = e[n]; - r && (null === (t = se[n]) || void 0 === t || t.push(r)) - })) - }, Fe = function (e) { - ne = e - }, Be = function () { - var e = window.innerWidth || document.documentElement.clientWidth || window.screen.width; - return Math.min(e, 400) - }, qe = function (e, n, t) { - return g(void 0, void 0, void 0, (function () { - return h(this, (function (r) { - switch (r.label) { - case 0: - return i = !1, [4, hn()]; - case 1: - return r.sent(), an(), T.logout(), _.remove(te), d.setAccessTokenListCookie({value: null}, void 0, !0), t || function (e) { - var n = {source: e}; - Re("loggedOut", n), De("logout", n) - }(n), e && e(), [2] - } - })) - })) - }; - - function ze(e) { - return function (n) { - var t, r, o, i, a, s, u, l = e.config, p = l.trackingId, v = l.formName; - switch (n.event) { - case"updateToken": - cn(n.params); - break; - case"loaded": - l.displayMode === Ho.Modal && f.checkBackdropAndContainer(e, !0), null === (t = l.loadedCallback) || void 0 === t || t.call(l, e); - var g = pn.consent.getByPurpose(); - g && m.send("consentWithModes", g, e.iframeId); - break; - case"stateReady": - null === (r = l.readyCallback) || void 0 === r || r.call(l, e); - break; - case"resize": - f.resizeIframe(e, n.params); - break; - case"restoreSize": - "inline" === e.config.displayMode && f.resizeIframe(e, {width: c.getWidth(e.container)}); - break; - case"loginSuccess": - Qe(n, (function () { - var e; - null === (e = l.callback) || void 0 === e || e.call(l), pn.user.refreshAccessToken(!0), m.broadcast("pianoIdLoginSuccess", n.params) - })); - break; - case"loginFailed": - je("loginFailed", n.params); - break; - case"registrationSuccess": - Qe(n, (function () { - je("registrationSuccess", n.params), m.broadcast("pianoIdLoginSuccess", n.params) - })); - break; - case"registrationFailed": - je("registrationFailed", n.params); - break; - case"lang": - bn(n.params.lang, !0), xn(n.params.lang, e); - break; - case"customEvent": - !function (e, n) { - var t; - null === (t = null == e ? void 0 : e.customEvent) || void 0 === t || t.call(e, n), De("customEvent", n) - }(e.config, n.params); - break; - case"closed": - "customForm" === e.config.entityType && De("customFormClosed", { - config: e.config, - reason: null === (o = n.params) || void 0 === o ? void 0 : o.reason - }), wn(e, {force: !0}), null === (i = l.closedCallback) || void 0 === i || i.call(l, e); - break; - case"cfFormSubmission": - C.log.event({ - eventType: wo.LOG_CUSTOM_FORM_SUBMISSION, - payload: {trackingId: p, formName: v, source: K} - }); - break; - case"formSend": - De("customFormSubmitted", { - config: e.config, - submittedFields: null === (a = n.params) || void 0 === a ? void 0 : a.submittedFields - }), wn(e, {reason: "customFormSubmitted"}); - break; - case"formSkip": - wn(e); - break; - case"cfAppImpression": - C.log.event({ - eventType: wo.LOG_CUSTOM_FORM_IMPRESSION, - payload: {trackingId: p, formName: v, source: Z} - }); - break; - case"cfAppSubmission": - C.log.event({ - eventType: wo.LOG_CUSTOM_FORM_SUBMISSION, - payload: {trackingId: p, formName: v, source: Z} - }); - break; - case"cfFormImpression": - C.log.event({ - eventType: wo.LOG_CUSTOM_FORM_IMPRESSION, - payload: {trackingId: p, formName: v, source: K} - }); - break; - case"changeScreen": - Ne(n.params.screen); - break; - case"screenReady": - l.initTime && w.setTime("idShow", Math.floor(performance.now() - l.initTime), { - aot: null === (s = n.params) || void 0 === s ? void 0 : s.AOT, - form_type: null !== (u = l.entityType) && void 0 !== u ? u : "" - }), je("onShow"); - break; - case"layoutReady": - je("layoutReady", n.params); - break; - case"confirmationEmailSent": - "inline" !== e.config.displayMode && !n.params.isDOI && !n.params.isPasswordlessDigitalCode && wn(e); - break; - case"verificationCodeStartCheckout": - var h = {}; - try { - h = JSON.parse(n.params.startCheckoutParams) - } catch (e) { - d.log("error parse start checkout params"), h = {} - } - mn(!0, !0).then((function () { - wn(e, {force: !0}) - })), d.waitCall("refreshUserToken", (function () { - pn.offer.show(h) - })); - break; - case"removeParamFromGlobalConfig": - We(n); - break; - case"verifyCode": - Ge(n, e); - break; - case"openPasswordlessLoginWithCreatingUser": - He(); - break; - case"fireCustomEvent": - !function (e) { - ce && "function" == typeof ce[e] && ce[e]() - }(n.params.name); - break; - case"passwordRestored": - d.removeQueryParamByName(q), oe.resetPasswordToken = void 0; - break; - case Co.EMIT_GA_EVENT: - C.ga.event({payload: n.params, eventType: Co.EMIT_GA_EVENT}); - break; - case"redirect": - document.location.href = n.params.url; - break; - case"designVersion": - f.addClassToContainer(e, "piano-id-modal-ver-".concat(n.params.version)); - break; - case"profileUpdated": - Re("profileUpdate", n.params); - break; - case"logout": - un() && qe(); - break; - case"successDOI": - m.broadcast("successDOI", n.params), !!pe.termId && fn(); - break; - default: - d.debug("Received invalid event type: " + n.event) - } - } - } - - var He = function () { - he({createPasswordlessUser: !0}) - }, We = function (e) { - var n = e.params.name, t = d.fromUnderscoreToCamelCase(n); - delete oe[t], e.params.removeFromUrl && d.removeQueryParamByName(n) - }, Ge = function (e, n) { - var t = e.params.verificationCode, r = e.params.locale, o = oe.aid || pn.aid, i = O.getToken(), - a = document.location.href, s = n.config.trackingId; - Nn({ - url: "".concat(A.getIdentifyUrl(), "/verification/code"), - dataType: "jsonp", - data: {client_id: o, access_token: i, site: a, verification_code: t, lang: r, tracking_id: s}, - success: function (e) { - e.error || Je(e, n) - }, - xhrFields: {withCredentials: !0}, - crossDomain: !0 - }) - }, Je = function (e, n) { - !e.error && e.access_token && (tn({ - token: e.access_token, - user: l(e.access_token), - cookie_domain: e.site_cookie_domain - }), T.isSssEnabled() && T.setSssAccessToken(e.access_token)), m.send("verificationCodeComplete", e, n.iframeId) - }, Qe = function (e, n) { - return g(void 0, void 0, void 0, (function () { - var t, r; - return h(this, (function (o) { - switch (o.label) { - case 0: - return e && e.params && !e.params.areCookiesSet ? (e.params.source = $, i = !!e.params.registration, [4, cn(e.params)]) : [3, 2]; - case 1: - return t = o.sent(), n(t), Ye(null === (r = e.params) || void 0 === r ? void 0 : r.user), [3, 3]; - case 2: - "function" == typeof n && n(), o.label = 3; - case 3: - return On(), [2] - } - })) - })) - }, Xe = function () { - var e = pn.sandbox || pn.isNonProdEndpoint(), - n = oe.iframeUrl || pn.pianoIdUrl || !e && "https://id.tinypass.com" || "/"; - return "/" === n && (n = pn.getEndpointRoot(!0)), n.replace(/\/$/, "") - }, Ye = function (e) { - var n = null == e ? void 0 : e.email_confirmation_required, - t = null == e ? void 0 : e.phone_confirmation_required, r = oe.verification_code; - n || r || t ? f.hideCloseButton() : _n() - }, $e = function (e, n) { - x.prepareConfig(e, n), O.getToken() || window.open(P.buildIframeUrl(A.getPianoIdUrl(), e), window.name) - }, Ke = function (e) { - var n = e.containerSelector ? c.queryEl(e.containerSelector) : null, - r = "piano-id-".concat(e.isRegistration ? "" : "form-").concat(d.randomString()); - e.singleContainer = n; - var o, i, a, - s = {iframeId: r, containerSelector: e.containerSelector, width: e.width, height: e.height}, - u = P.buildIframeUrl(A.getPianoIdUrl(), e, s), l = !0; - if (e.iframeParams = s, e.displayMode === Ho.Inline) { - var p = f.initInlineContainer(e); - if (!(o = p.container)) return; - i = f.generateIframe(e, s, u), l = !!p.containerReady, e.observeContainer && (a = v.create(o, me)) - } else if (e.displayMode === Ho.Modal) o = f.getModalContainer(e, (function () { - return wn(t) - })), i = f.generateIframe(e, s, u); else if (e.displayMode === Ho.Popup) if (d.isIE()) { - o = f.generateIframeWrapper(), u = P.buildIframeUrl(A.getPianoIdUrl(), e, s, A.getPianoIdUrl() + "proxy.html"), s.iframeUrl = u, s.pos = f.getPopupPosition(s); - var m = P.buildIframeUrl(A.getPianoIdUrl() + "proxy.html", e, s); - e.displayMode = Ho.InlinePopup, i = f.generateIframe({}, s, m) - } else { - o = f.generatePopup(s, u); - try { - try { - i = o.document - } catch (e) { - i = o - } - } catch (e) { - i = window.document - } - } - var g = {iframeId: s.iframeId, config: e, element: i, container: o, iframeParams: s, containerReady: l}; - if (Ze(g), e.displayMode === Ho.Inline) { - var h = document.createElement("div"); - c.addClass("piano-id-container", h), c.append(h, i), c.append(o, h) - } else e.displayMode === Ho.Modal ? c.append(o, i) : e.displayMode === Ho.InlinePopup && (c.append(o, i), c.append(document.body, o)); - if (d.debug("creating iframe: ", e), ie.push(g), e.displayMode === Ho.Modal) { - (t = g).observer = a; - var y = kn(); - xn(y, g) - } - return g - }, Ze = function (e) { - var n = {center: d.centerScreen(), originUrl: document.location.href}; - m.init({postMessageUrl: A.getPianoIdUrl(), receive: ze(e), iframe: e, iframeParams: e.iframeParams}, n) - }, en = function (e) { - if (t) { - var n = f.__private__.mobileModalFix; - f.closeModal(t), c.remove(t.element), t.observer && t.observer.disconnect(), n.isIphoneCaretFixed && n.modalClosed(), t = void 0 - } - }, nn = function () { - var e = {path: "/", secure: d.__protected__.isHttpsProtocol(), priority: "High"}; - if (pn.cookieDomain) e.domain = pn.cookieDomain; else { - var n = d.__protected__.getCookie(Q), t = d.extractCookieDomain(n); - t && (e.domain = t) - } - return pn.cookiePath && (e.path = pn.cookiePath), e - }, tn = function (e) { - if (e && e.user && e.token) { - an({keepRememberMe: !0, keepExtendExpiredAccess: !0}), e.cookie_domain && on(e.cookie_domain); - var n = {}; - if (("r" in e.user ? e.user.r : e.user.rememberMe || In()) && (n.expires = new Date(1e3 * e.user.exp), rn(X, 1, n)), e.extendExpiredAccessEnabled && (Pn("setExtendExpiredAccess", !0, "broadcast"), rn(Y, "true", n)), !T.isSssEnabled()) { - var t = d.getPossibleCookieDomains(); - for (var r in t) d.deleteCookie(G, t[r]); - rn(G, e.token, n) - } - } - }, rn = function (e, n, t) { - d.__protected__.setCookieConsent("id", e, n, p(p({}, nn()), t)) - }, on = function (e) { - rn(Q, e, {domain: e, expires: 30}) - }, an = function (e) { - var n = void 0 === e ? {} : e, t = n.keepRememberMe, r = n.keepExtendExpiredAccess, o = nn(); - d.getPossibleCookieDomains(o.domain).forEach((function (e) { - if (e) { - var n = p(p({}, o), {domain: e}); - s.remove(G, n), r || s.remove(Y, n), t || Cn(n) - } - })) - }, sn = function () { - var e = null, n = O.loadToken(); - if (n) try { - if (e = l(n)) { - e.firstName = e.given_name, e.lastName = e.family_name, e.valid = !0, e.uid = e.sub, e.confirmed = !e.email_confirmation_required && !e.pn_cr; - var t = new Date; - new Date(1e3 * e.exp) < t && (an(), e = null) - } - } catch (e) { - } - return e - }, cn = function (e, n) { - return g(void 0, void 0, void 0, (function () { - return h(this, (function (t) { - switch (t.label) { - case 0: - return tn(e), [4, yn(e.token, e.rememberMe)]; - case 1: - return t.sent(), !n && Me(null, {stage: e.stage, source: e.source}), [2] - } - })) - })) - }, un = function () { - return Wo.isPianoIdLiteConfigured() ? !!pn.externalJWT : !!sn() - }, ln = function (e, n, t) { - return g(void 0, void 0, void 0, (function () { - var r, o; - return h(this, (function (i) { - switch (i.label) { - case 0: - return r = l(e.access_token), [4, cn({ - token: e.access_token, - user: r, - cookie_domain: e.site_cookie_domain, - extendExpiredAccessEnabled: e.extend_expired_access_enabled - }, n)]; - case 1: - return o = i.sent(), t && Ye(r), d.doneCall("refreshUserToken"), [2, o] - } - })) - })) - }, dn = function (e) { - return g(void 0, void 0, void 0, (function () { - var n; - return h(this, (function (r) { - return n = p(p({}, e), {isGmSsoEnabled: de}), x.prepareConfig(n, (function (e) { - fe(e) - })), t ? (d.log("Modal login window already shown"), [2]) : (O.getToken() ? n.confirmation !== Qo.None && !An() && n.displayMode !== Ho.Popup && (Ke(p(p({}, n), {confirmation: Qo.After})), On()) : Ke(n), [2]) - })) - })) - }, fn = function () { - if (null != pe && pe.phoneConfirmationRequired) return function (e) { - t ? d.log("Modal window already shown") : ge().then((function () { - var n = Object.assign({screen: "phone_is_not_confirmed"}, oe, e); - x.prepareConfig(n, (function (e) { - fe(e) - })), Ke(n) - })) - }({displayMode: Ho.Modal}), void (pe.phoneConfirmationRequired = void 0); - if (null != pe && pe.emailConfirmationRequired) return we({displayMode: Ho.Modal}), void (pe.emailConfirmationRequired = void 0); - if ((null == pe ? void 0 : pe.offerId) && (null == pe ? void 0 : pe.termId)) { - var e = {offerId: pe.offerId, termId: pe.termId, closeOnLogout: !0}; - pe.formNameByTermId && (e.formNameByTermId = pe.formNameByTermId), pe.experienceId && (e.experienceId = pe.experienceId), pe.checkoutFlowId && (e.checkoutFlowId = pe.checkoutFlowId), pn.offer.show(e), pe.offerId = void 0, pe.termId = void 0, pe.formNameByTermId = void 0, pe.experienceId = void 0, pe.checkoutFlowId = void 0 - } - null != pe && pe.formName && (ke({formName: null == pe ? void 0 : pe.formName}), pe.formName = void 0), oe.confirmation === Qo.None || An() || he({displayMode: Ho.Modal}) - }, mn = function (e, n) { - return new Promise((function (e, n) { - d.startCall("refreshUserToken"); - var t = function (t) { - t.isSuccessful ? (e(null), de && fn(), S.clearConfirmationParameters()) : n(t.failReason), d.doneCall("refreshUserToken") - }, r = function (e) { - return g(void 0, void 0, void 0, (function () { - return h(this, (function (n) { - switch (n.label) { - case 0: - return de = e.authorized_by_sso, !e.error && e.access_token ? Wo.isPianoIdLiteConfigured() ? [3, 2] : [4, ln(e, !1, !0)] : [3, 3]; - case 1: - n.sent(), n.label = 2; - case 2: - return t({isSuccessful: !0}), [3, 4]; - case 3: - e.site_cookie_domain && on(e.site_cookie_domain), an(), t({ - isSuccessful: !1, - failReason: "token_not_valid" - }), n.label = 4; - case 4: - return [2] - } - })) - })) - }, o = O.getToken() || void 0, - i = {client_id: oe.aid || pn.aid, site: document.location.origin || document.location.href}, - a = vn(); - a && (i.tcf = a), Nn(o ? { - url: "".concat(A.getIdentifyUrl(), "/token/validation"), - data: {client_id: oe.aid || pn.aid, site: document.location.origin || document.location.href}, - headers: {Authorization: o}, - success: function (e) { - r(e), e.access_token && gn(a) - }, - error: function () { - return t({isSuccessful: !1, failReason: "request_failed"}) - } - } : { - url: "".concat(A.getIdentifyUrl(), "/token/verify"), data: i, success: function (e) { - r(e), e.access_token && (gn(a), T.isSssEnabled() && T.setSssAccessToken(e.access_token)) - }, error: function () { - return t({isSuccessful: !1, failReason: "request_failed"}) - }, dataType: "jsonp", xhrFields: {withCredentials: !0}, crossDomain: !0 - }) - })) - }, vn = function () { - var e, n = window; - return function (e) { - if (!e) return !1; - var n = e; - if (!n || !n.tcString || !n.date) return !1; - var t = new Date, r = new Date(n.date), o = Math.abs(r.getTime() - t.getTime()); - return Math.ceil(o / 864e5) <= 1 - }(_.get(te)) ? null : (e = null, n.__tcfapi && n.__tcfapi("getTCData", 2, (function (n, t) { - t && n.tcString && (e = n.tcString) - }), [412]), e) - }, gn = function (e) { - if (e) { - var n = {date: (new Date).toString(), tcString: e}; - Mn(te, JSON.stringify(n)) - } - }, hn = function () { - return new Promise((function (e) { - var n = O.getToken(), t = {client_id: oe.aid || pn.aid}; - n && Object.assign(t, {token: n}), Nn({ - url: "".concat(A.getIdentifyUrl(), "/logout"), - data: t, - dataType: "jsonp", - complete: e, - xhrFields: {withCredentials: !0}, - crossDomain: !0 - }) - })) - }, yn = function (e, n) { - return new Promise((function (t) { - var r = !(n || In()); - Nn({ - url: "".concat(A.getIdentifyUrl(), "/vxauth/cookie"), - data: {client_id: oe.aid || pn.aid, session_cookie: r}, - headers: {Authorization: e || void 0}, - complete: t - }) - })) - }, wn = function e(n, t) { - var r = void 0 === t ? {} : t, o = r.force, i = r.reason; - !n || (o ? n.closed || (n.closed = !0, "inline" === n.config.displayMode ? c.empty(n.container) : "popup" === n.config.displayMode ? n.container.close() : "modal" === n.config.displayMode && (en(n), c.remove(n.container.parentElement)), de && On()) : (m.send("close", {reason: i}, n.iframeId), ie = ie.filter((function (e) { - return e.iframeId !== n.iframeId - })), setTimeout((function () { - e(n, {force: !0}) - }), 600))) - }, _n = function () { - ie.forEach((function (e) { - wn(e) - })), ie = [] - }, bn = function (e, n) { - var t = d.__protected__.getCookie(J), r = d.__protected__.getCookie(Q); - t === e || !r || (rn(J, e, {expires: 30}), n || ie.forEach((function (n) { - m.send("lang", {lang: e}, n.iframeId) - })), Object.keys(ae).forEach((function (n) { - var t = ae[n]; - m.__protected__.isIframeManaged(n) && t ? t(e) : delete ae[n] - })), je("langChange", e)) - }, kn = function () { - return pn.locale || d.__protected__.getCookie(J) || "" - }, Cn = function (e) { - e && s.remove(X, e) - }, In = function () { - return !!d.__protected__.getCookie(X) - }, Sn = function (e) { - return new Promise((function (n) { - var t = Object.assign({}, oe, e); - Nn({ - url: "".concat(A.getIdentifyUrl(), "/userinfo"), - data: {client_id: oe.aid || pn.aid, form_name: t.formName}, - headers: {Authorization: O.getToken() || void 0}, - success: n, - complete: function () { - return n(null) - } - }), setTimeout(n, ne) - })) - }, En = function (e) { - var n = (null == e ? void 0 : e.displayMode) === Ho.Redirect || !(null != e && e.displayMode) && (null == oe ? void 0 : oe.displayMode) === Ho.Redirect, - t = d.isSafariOrUiWebView() && !(null != e && e.displayMode) && !(null != oe && oe.displayMode); - return n || t - }, Tn = function (e) { - var n, t, r; - if (!O.getToken()) { - e = p(p(p({}, oe), e), {redirectUri: null !== (n = e.redirectUri) && void 0 !== n ? n : window.location.href}); - var o = function (e, n) { - return JSON.parse(e)[n] - }; - x.prepareConfig(e, (function (e) { - fe(e) - })), t = e, r = window.open(function (e, n) { - var t, r = d.getPageViewContext(), i = r.pageViewId, a = r.pageTitle, s = { - client_id: n.aid, - gm_sso_piano_id_domain: Xe(), - site: document.location.href, - display_mode: "redirect", - gm_sso_redirect_container_width: null !== (t = n.width) && void 0 !== t ? t : Be(), - page_view_id: null != i ? i : void 0, - page_title: a, - browser_id: Rn() - }, u = kn(); - u && (s.lang = u), n.screen && (s.screen = n.screen), n.resetPasswordToken && (s.reset = n.resetPasswordToken), n.redirectUri && (s.redirect_uri = n.redirectUri), n.offerId && (s.gm_sso_offer_id = n.offerId), n.termId && (s.gm_sso_term_id = n.termId), n.experienceId && (s.gm_sso_experience_id = n.experienceId), n.checkoutFlowId && (s.gm_sso_checkout_flow_id = n.checkoutFlowId), n.confirmation && (s.gm_sso_confirm = n.confirmation), n.transparentMode && (s.transparent_mode = !0); - var l = n.termId && n.formNameByTermId; - if (n.formName) s.form_name = n.formName; else if (l) { - var p = o(n.formNameByTermId, n.termId); - p && (s.form_name = p) - } - return n.formNameByTermId && (s.form_name_by_term_id = n.formNameByTermId), n.sss && (s.sss_mode = n.sss.sss_mode, s.sss_callback_url = n.sss.sss_callback_url, s.sss_origin_url = n.sss.sss_origin_url), [e += "gm-sso", c.param(s)].join("?") - }(A.getPianoIdUrl(), t), window.name), r && On() - } - }, Pn = function (e, n, t) { - le.push({type: t, name: e, data: n}) - }, xn = function (e, n) { - re.includes(e) ? f.turnOnRTL(n) : f.turnOffRTL(n) - }, An = function () { - return !!d.__protected__.getCookie("piano-id-initial-gm-sso-shown-" + (oe.aid || pn.aid)) - }, On = function () { - rn("piano-id-initial-gm-sso-shown-".concat(oe.aid || pn.aid), !0, {expires: 30}) - }, Mn = function (e, n) { - k.id ? k.id.localStorage.set(e, n) : _.set(e, n) - }, Nn = function (e) { - var n = new URL(e.url), t = d.getPageViewContext(), r = t.pageTitle, o = t.pageViewId, i = Rn(); - i && n.searchParams.append("browser_id", i), o && n.searchParams.append("page_view_id", o); - var a = d.getPageViewContext().contentType; - a && n.searchParams.append("content_type", a), n.searchParams.append("page_title", r), e.url = n.toString(), u.request(e) - }, Rn = function () { - var e; - return null !== (e = d.getBrowserId()) && void 0 !== e ? e : void 0 - }; - return { - name: "pianoId", - isv: !1, - init: ge, - prepare: function () { - return ve() - }, - show: he, - showForm: ke, - checkAndShowEmailIsNotConfirmed: ye, - showEmailConfirmationRequired: we, - submitLoginForm: function () { - m.send("submitLoginForm", null, null == t ? void 0 : t.iframeId) - }, - loginByToken: function (e) { - return g(void 0, void 0, void 0, (function () { - var n; - return h(this, (function (t) { - switch (t.label) { - case 0: - return n = l(e), [4, cn({user: n, token: e})]; - case 1: - return t.sent(), Ye(n), [2] - } - })) - })) - }, - logout: qe, - getToken: O.getToken, - getUser: sn, - loadExtendedUser: function (e) { - var n = Object.assign({}, oe, e); - Sn(n).then((function (e) { - var t = Object.assign({}, e); - e && Array.isArray(e.custom_field_values) && (e.custom_field_values = e.custom_field_values.map((function (e) { - var n; - try { - n = JSON.parse(e.value) - } catch (t) { - n = e.value - } - return {field_name: e.field_name, value: n, created: e.created} - }))), "function" == typeof n.extendedUserLoaded && n.extendedUserLoaded(t), De("extendedUserLoaded", t) - })) - }, - getName: function () { - return "piano_id" - }, - isConfigured: function () { - return !0 === pn.usePianoIdUserProvider || "string" == typeof pn.usePianoIdUserProvider && "true" === pn.usePianoIdUserProvider - }, - onLoginSuccess: function (e) { - return g(void 0, void 0, void 0, (function () { - var n; - return h(this, (function (t) { - switch (t.label) { - case 0: - return a ? [2] : (a = !0, n = { - source: e.source, - token: e.user_token, - user: e.params || e.user, - cookie_domain: e.cookie_domain, - stage: e.stage - }, d.setAccessTokenListCookie({ - value: e.token_list, - cookie_domain: e.cookie_domain - }, e.user_token), [4, cn(n)]); - case 1: - return t.sent(), Ye(n.user), a = !1, [2] - } - })) - })) - }, - onProfileUpdate: function (e, n) { - return g(void 0, void 0, void 0, (function () { - var t; - return h(this, (function (r) { - switch (r.label) { - case 0: - return t = { - token: e.token, - user: e.user, - cookie_domain: e.cookie_domain - }, [4, cn(t, !0)]; - case 1: - return r.sent(), n(), Re("profileUpdate", t), [2] - } - })) - })) - }, - onExtendedUserLoginRequired: function () { - be() - }, - isUserValid: un, - setCallbacks: Ve, - getIframeUrl: A.getPianoIdUrl, - updateLang: bn, - onLangChange: function (e, n) { - return ae[n] = e, function () { - delete ae[n] - } - }, - getLang: kn, - isAot: function () { - ie.forEach((function (e) { - m.send("isAOT", {}, e.iframeId) - })) - }, - registerCallback: function (e, n) { - var t, r = null !== (t = ue[e]) && void 0 !== t ? t : []; - ue[e] = b(b([], r, !0), [n], !1) - }, - setRequestTimeout: Fe, - showMsqaPrompt: function () { - return g(void 0, void 0, void 0, (function () { - return h(this, (function (e) { - switch (e.label) { - case 0: - return d.isEdge() ? [4, n] : [3, 2]; - case 1: - return e.sent(), [2, S.showPrompt()]; - case 2: - return [2] - } - })) - })) - }, - __protected__: { - offerMessageReceiver: function (e) { - switch (e.params.event) { - case"cfAppImpression": - case"cfFormImpression": - C.log.event({ - eventType: wo.LOG_CUSTOM_FORM_IMPRESSION, - payload: { - trackingId: e.params.trackingId, - formName: e.params.trackingId, - source: ee - } - }); - break; - case"cfFormSubmission": - C.log.event({ - eventType: wo.LOG_CUSTOM_FORM_SUBMISSION, - payload: { - trackingId: e.params.trackingId, - formName: e.params.trackingId, - source: ee - } - }); - break; - case"updateToken": - cn(e.params.params); - break; - case"changeScreen": - Ne(e.params.params.screen, !0); - break; - case"loginFailed": - case"registrationFailed": - case"successDOI": - case"registrationSuccess": - case"customEvent": - De(e.params.event, e.params.params); - break; - case Co.EMIT_GA_EVENT: - C.ga.event({payload: e.params.params, eventType: Co.EMIT_GA_EVENT}); - break; - case"redirect": - document.location.href = e.params.params.url; - break; - default: - return void d.debug("Received invalid event type: " + e.params.event) - } - }, - showEmailConfirmation: _e, - checkAndShowEmailIsNotConfirmed: ye, - closeModalContainer: en, - executePostMessagesBatch: function () { - for (; le.length;) { - var e = le.pop(); - "broadcast" === e.type ? m.broadcast(e.name, e.data) : m.send(e.name, e.data) - } - }, - isGmSso: function () { - return de - }, - isGmSsoRedirectEnabled: En, - authByGmSsoRedirect: Tn, - extendUserToken: function () { - var e = O.loadToken(); - if (e) { - var n = (new Date).getTime(), t = d.__protected__.getCookie(Y), - r = n - 1e3 * l(e).iat > 864e5; - t && r && mn(!1, !0) - } - }, - getStage: function () { - return oe.stage - }, - isSssEnabled: T.isSssEnabled, - getSssParams: T.getSssParams, - checkVerificationCode: function () { - var e = d.getQueryParamByName(H); - if (e) { - var n = d.getQueryParamByName("_ptid"), - t = p({verification_code: e}, n ? {trackingId: n} : {}); - un() ? _e(t) : he(t) - } - } - }, - __private__: { - prepareConfig: function (e) { - return x.prepareConfig(e, (function (e) { - fe(e) - })) - }, setRequestTimeout: Fe, createIframe: Ke, addEventsListener: Ze, gmSsoActionAfterTokenVerify: fn - } - } - }() - }), pn.pianoId = pn.container.resolve("pianoId"); - var Xo = function () { - var e = pn.container.resolve("util"), n = pn.container.resolve("pianoId"), - t = pn.container.resolve("eventUtils").createEventManager(["userChanged", "onHide", "logout"]), - r = e.getAidSpecifiedName("__utp"), o = function () { - return pn.externalJWT || i() - }, i = function () { - return e.findCookieByName(r) || null - }; - return { - name: "pianoIdLite", isv: !1, isConfigured: function () { - return !0 === pn.usePianoIdLiteUserProvider || "string" == typeof pn.usePianoIdLiteUserProvider && "true" === pn.usePianoIdLiteUserProvider - }, isUserValid: function () { - return !!o() - }, getToken: o, getName: function () { - return "piano_id_lite" - }, onLoginSuccess: function (n) { - e.setAccessTokenListCookie({value: n.token_list, cookie_domain: n.cookie_domain}, n.user_token) - }, registerCallback: function (e, n) { - t.addEvent(e), t.registerCallback(e, n) - }, loginByToken: function (e) { - n.loginByToken(e) - }, logout: function (n) { - e.waitCall("refreshUserToken", (function () { - "function" == typeof n && n() - })), t.fireCallbacks("logout", null, void 0, !0) - } - } - }(); - pn.container.register("pianoIdLite", {useValue: Xo}), pn.pianoIdLite = pn.container.resolve("pianoIdLite"); - pn.container.register("user", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t, r = e.resolve("api"), o = e.resolve("util"), i = e.resolve("janrain"), - a = e.resolve("tinypassAccounts"), s = e.resolve("condeUserProvider"), c = e.resolve("gigya"), - u = e.resolve("pianoId"), l = e.resolve("pianoIdLite"), d = e.resolve("eventUtils"), - p = d.createEventManager([]); - n = "logout", t = function () { - o.__protected__.setVxUsersToDataLayer(null), Nr.set("userStatus", "anon") - }, [i, a, s, c, u, l].forEach((function (e) { - e.registerCallback(n, t) - })); - var f = { - isv: !1, getName: function () { - return "publisher_user_ref" - }, getToken: function () { - return pn.userRef ? pn.userRef.constructor === "".constructor ? pn.userRef : pn.userRef.constructor === {}.constructor ? "{jox}" + JSON.stringify(pn.userRef) : pn.userRef : null - }, isUserValid: function () { - return !!(void 0 !== pn.userRef && pn.userRef && pn.userRef.length > 0) - }, onLoginSuccess: function (e) { - o.setAccessTokenListCookie({value: e.token_list, cookie_domain: e.cookie_domain}, e.user_token) - }, logout: function (e) { - o.setAccessTokenListCookie(), e && e() - } - }, m = function () { - return [i, a, s, c, u, l].find((function (e) { - return e.isConfigured() && !e.isv - })) || f - }; - return { - name: "user", getProvider: m, providerInit: function (e) { - (void 0 === e || !e) && (e = function () { - }); - var n = m(); - "function" == typeof n.prepare ? "prepare" in n && n.prepare().then(e, e) : e() - }, refreshAccessToken: function (e, n) { - var t = !1, i = m().isUserValid(); - (function () { - var e = "__tac", n = o.__protected__.getCookie(e); - if (void 0 === n) return 0; - var t = encodeURIComponent(n), r = new TextEncoder; - try { - return r.encode(t + e).byteLength - } catch (n) { - return o.debug("couldn't encode __tac cookie", n), (t + e).length - } - })() >= 4096 ? (t = !0, console.warn("__tac cookie exceeds max size equals ".concat(4096, " bytes")), o.setAccessTokenListCookie(null, "", !0)) : t = function (e, n) { - if (void 0 !== n && n) return !0; - if (e) { - var t = o.__protected__.getCookie("__tae"); - if (void 0 === t || !t) return !0; - var r = new Date(parseInt(t)); - if ((new Date).getTime() - r.getTime() > 864e5) return !0 - } - return !1 - }(i, e), (void 0 === n || !n) && (n = function () { - }), t || !i ? o.waitCall("refreshUserToken", (function () { - o.waitCall("offerCreate", (function () { - o.waitCall("experienceExecute", (function () { - if (!m().isUserValid()) return o.__protected__.getCookie("__tac") && o.setAccessTokenListCookie(null, "", !0), void (n && n("")); - o.startCall("refreshAccessTokenList"); - var e = {url: o.prepareUrlParameter(window.location.href)}; - r.callApi("/access/token/list", e, (function (e) { - o.doneCall("refreshAccessTokenList"), void 0 !== e.access_token_list ? (o.setAccessTokenListCookie(e.access_token_list), n && n(e.access_token_list.value)) : n && n(null) - }), void 0, void 0) - })) - })) - })) : n(null) - }, showLogin: function (e) { - var n = m().getName(); - if ("tinypass_accounts" === n) a.login(e); else if ("piano_id" === n) { - var t = e || {}; - u.show(t) - } else "publisher_user_ref" === n && p.fireCallbacks("loginRequired", {}, void 0, !0) - }, isUserValid: function () { - return m().isUserValid() - }, logout: function (e, n) { - m().logout(e, n) - }, registerCallback: function (e, n) { - p.addEvent(e), p.registerCallback(e, n) - }, getUserInfoParams: function (e) { - var n = e.userToken; - if (!n) { - var t = m().getToken(); - n = t && t.length > 0 ? t : "" - } - return { - user_token: n, - user_lang: o.__protected__.getCookie("LANG") || "", - is_preview: e.preview, - is_non_logged_user: e.previewNonLoggedUser - } - } - } - }() - }), pn.user = pn.container.resolve("user"); - var Yo = function () { - var e = pn.container.resolve("jqUtils"), n = pn.container.resolve("util"), t = "viewport-exit-activated", - r = "viewport-exit-prepared", o = !1, i = !1, a = 0, s = 0, c = ["top", "right", "bottom", "left"], u = !0, - l = !1, d = !1, p = [], f = { - top: {visited: !1, value: 1}, - right: {visited: !1, value: 2}, - bottom: {visited: !1, value: 4}, - left: {visited: !1, value: 8} - }, m = 0, v = function () { - if (!l) { - l = !0, m = 0; - var n = /(?:Firefox|Safari)[\/\s](\d+\.\d+)/.test(navigator.userAgent) ? document.body : document; - e.on(n, "mouseleave", (function (e) { - return g(e) - })), e.on(document, "mousemove", (function (e) { - return h(e) - })) - } - }; - var g = function (t) { - var r; - r = function (e) { - return e.clientX === e.clientY && e.clientX < 0 && e.clientX >= -1 - }(t) ? "" : function (n, t) { - var r = e.winSize(), o = r.width, i = r.height, a = ""; - return n >= o && (a = "right"), t >= i && (a = "bottom"), n <= 0 && (a = "left"), t <= 0 && (a = "top"), a - }(t.clientX, t.clientY), r || (r = function () { - if (!i) return ""; - var n = e.winSize(), t = n.width, r = n.height; - return c[function (e) { - if (0 === e.length) return -1; - for (var n = e[0], t = 0, r = 1; r < e.length; r++) e[r] < n && (t = r, n = e[r]); - return t - }([s, t - a, r - s, a])] - }(), r || n.debug("viewportExit: the detect of the exit side failed")), r && function (e) { - -1 !== c.indexOf(e) ? f[e].visited || (f[e].visited = !0, m += f[e].value) : n.debug("viewportExit: the detect of the exit side failed") - }(r), y("all"), "top" === r && y("top") - }, h = function (e) { - i = !0, s = e.clientY, a = e.clientX - }, y = function (e) { - if (u) { - for (var t, r = [], o = [], i = 0; i < p.length; i++) ((t = p[i]).detectExitMode === e || "back" === e && t.detectBackButtonForMobile) && t.consumeEventFn() ? r.push(t) : o.push(t); - r.length && n.debug("viewportExit: listeners was run fire with type: ", e), p = o; - for (i = 0; i < r.length; i++) (t = r[i]).callback() - } - }; - return { - name: "viewportExit", initialize: v, isInitialized: function () { - return l - }, addListener: function (e, n, i) { - ("mobile" === n.clientDevice || "tablet" === n.clientDevice) && !!n.detectBackButtonForMobile && function () { - if (!d) { - d = !0, window.addEventListener("popstate", (function (e) { - o && e.state && e.state.pianoViewportExitState === t && (o = !1, y("back")) - })); - var e = window.history.state || {}; - e && e.pianoViewportExitState !== r && (e.pianoViewportExitState !== t && (e.pianoViewportExitState = t, window.history.replaceState(e, document.title)), window.history.pushState({pianoViewportExitState: r}, document.title)), o = !0 - } - }(), v(), "function" != typeof i && (i = function () { - return !0 - }), p.push({ - callback: e, - detectExitMode: n.detectExitMode, - detectBackButtonForMobile: n.detectBackButtonForMobile, - consumeEventFn: i - }) - }, resetSumOfCodesDirectionToDefault: function () { - m = 0 - }, getSumOfCodesDirection: function () { - return m - }, removeListeners: function () { - p = [] - }, enable: function () { - u = !0 - }, disable: function () { - u = !1 - } - } - }(); - pn.container.register("viewportExit", {useValue: Yo}), pn.viewportExit = pn.container.resolve("viewportExit"); - var $o, Ko, Zo = function () { - var e = pn.container.resolve("postmessage"), n = pn.container.resolve("containerUtils"), - t = pn.container.resolve("user"), r = pn.container.resolve("api"), o = pn.container.resolve("util"); - - function i(e) { - return s(e, "/checkout/template/show") - } - - function a(e) { - return e.initContextLoadPromise = function (e, n) { - e.contextLoadingPromise = c(e, n) - }, s(e, "/checkout/template/cacheableShow") - } - - var s = function (e, n) { - var t = pn.getEndpointRoot(!0) + n; - return e.iframeUrl = t, e.postMessageUrl = t, e.widget = "template", pn.offer.createOfferIframe(e) - }, c = function (e, n) { - var i = t.getUserInfoParams(e); - return i.tracking_id = e.trackingId, i.templateId = e.templateId, i.templateVariantId = e.templateVariantId, i.aid = pn.aid, i.preload = e.isPreload, i.cookie_consents = JSON.stringify(o.getCookieConsents()), i.previous_user_segments = o.getUserSegmentsString(), e.affiliateState && (i.affiliateState = JSON.stringify(e.affiliateState)), Object.keys(n).forEach((function (e) { - i[e] = n[e] - })), new Promise((function (e, n) { - r.callApi("/anon/template/loadTemplateContext", i, (function (t) { - var r = t.code, o = t.templateContext, i = t.message; - 0 === r ? e(o) : n(i) - }), void 0, void 0) - })) - }, u = function (e, n) { - var t = {}; - return ["aid", "templateId", "templateVariantId", "previewTemplateVersion", "preload", "preview", "previewUncached", "deploymentItemId", "gaClientId", "zuoraSelectedRatePlanIds", "newscycleSelectedIds", "addNewsletterAssets", "offerId", "experienceId", "iframeId", "displayMode", "debug", "pianoIdUrl", "widget", "url"].forEach((function (n) { - e[n] && (t[n] = e[n]) - })), n.param(t) - }; - - function l(e) { - pn.getCacheableShowTemplate() ? (function (e) { - e.deferredContextLoading = !0, e.buildQueryStringFn = u - }(e), e.createIframeFn = a) : e.createIframeFn = i - } - - return { - name: "template", show: function (e) { - return e.offerId = n.fakeOfferId, e.trackStatsOnShow = !0, l(e), pn.offer.show(e) - }, deferredShow: function (e) { - return e.offerId = n.fakeOfferId, l(e), pn.offer.deferredShow(e) - }, close: function () { - n.closeModalContainer() - }, closeInline: function (e) { - n.__protected__.closeInlineContainers(e) - }, createTemplateIframe: i, showBackdrop: function () { - n.showBackdrop() - }, hideBackdrop: function () { - n.hideBackdrop() - }, centerBackdrop: function (e) { - n.centerBackdrop(e) - }, registerCallback: function (e, n) { - }, refreshUser: function (n) { - t.refreshAccessToken(!0, (function () { - e.send("externalLoginSuccess", {user_token: t.getProvider().getToken()}, n) - })) - } - } - }(); - pn.container.register("template", {useValue: Zo}), pn.template = pn.container.resolve("template"), function (e) { - e.COMMON = "linkedTermData", e.SIGNED = "linkTermSignedData" - }($o || ($o = {})), function (e) { - e.LINKED = "linked", e.LINK = "link" - }(Ko || (Ko = {})); - pn.container.register("offer", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t, r, o, i, a, s, c = e.resolve("jqUtils"), u = e.resolve("util"), l = e.resolve("postmessage"), - d = e.resolve("user"), m = e.resolve("containerUtils"), v = e.resolve("eventUtils"), - g = e.resolve("viewportExit"), h = e.resolve("gaService"), y = e.resolve("sha1"), - w = e.resolve("logging"), _ = e.resolve("template"), k = e.resolve("analytics"), - C = e.resolve("gaCollectingService"), I = e.resolve("ajax"), S = e.resolve("acp"), E = [], T = {}, - P = 0, x = "close", A = "OFFER", O = !1, M = !1, N = !1, R = {}, L = new Map, U = {}, - D = ["he_IL", "ar_EG"], j = "", V = !1, F = !1, B = "pn_rurl_3ds", q = Symbol(), z = Symbol(), - H = v.createEventManager(b(["complete", "cancel", "close", "error", "loginRequired", "loginSuccess", "loaded", "customEvent", "startCheckout", "resize", "onMeterExpired", "onMeterActive", "onAccessGranted", "onShowOffer", "pianoIdEvent", "parentSize", "redeemCredit", "onStartCreditRedemption", "showAuthForm", "callLinkTermSelectedCallback", "callLinkedTermSelectedCallback", "callLinkTermSelectedCallback", "visibleImpression"], S.getComposerAcpEvents(), !0)); - m.setIframesPopstateHandlers(); - var W = function () { - return pn.offerBaseUrl ? pn.offerBaseUrl : pn.getEndpointRoot() + "/checkout/offer/show" - }, G = function (e) { - if (!e) return null; - var n = e.linkedTermData, t = e.linkTermSignedData, r = e.linkedTermSignedData, - o = f(e, ["linkedTermData", "linkTermSignedData", "linkedTermSignedData"]), i = r || t; - switch (!0) { - case Boolean(n): - return p({linkedTermData: n}, o); - case Boolean(i): - return p({linkTermSignedData: i}, o); - default: - return o - } - }, J = function (e, n) { - if (n === $o.COMMON) return e.externalTermId || ""; - if (n === $o.SIGNED) try { - return JSON.parse(e.payload).externalTermId || "" - } catch (e) { - return console.warn(e), "" - } - return "" - }, Q = function (e, n) { - void 0 === e && (e = {}), void 0 === n && (n = {}); - var t = pn.getApiEndpoint() + "/linkedTerm/session/create", r = p(p({ - tracking_id: j || "", - tbc: u.getTbcCookie() || "", - pcid: u.getPcidCookie() || "", - consents: JSON.stringify(u.getCookieConsents()), - previous_user_segments: u.getUserSegmentsString() - }, e), n); - return new Promise((function (e, n) { - try { - I.request({ - url: t, - type: "POST", - dataType: "json", - data: JSON.stringify(r), - contentType: "application/json", - success: e, - error: n - }) - } catch (e) { - n(e) - } - })) - }, X = function (e, n) { - var t = "".concat(pn.getApiEndpoint(), "/linkedTerm/subscription/hasActive"), - r = {aid: e, external_term_id: n, user_token: d.getProvider().getToken()}; - return new Promise((function (e, n) { - try { - I.request({ - url: t, - type: "POST", - dataType: "json", - data: r, - contentType: "application/x-www-form-urlencoded", - success: e, - error: n - }) - } catch (e) { - n(e) - } - })) - }, Y = function (e, n) { - var t = function (e) { - switch (e) { - case"purge": - return {eventCategory: "checkoutClose", eventLabel: "Checkout close"}; - case"customEvent": - return {eventCategory: "checkoutCustomEvent", eventLabel: "Checkout custom event"}; - case"checkoutPaymentError": - case"error": - return {eventCategory: "checkoutError", eventLabel: "Checkout error"}; - case"checkoutStateChange": - return {eventCategory: "checkoutStateChange", eventLabel: "Checkout state change"}; - case"showTemplate": - return {eventCategory: "showTemplate", eventLabel: "Show template"}; - case"startCheckout": - return {eventCategory: "startCheckout", eventLabel: "Start checkout"}; - case"submitPayment": - return {eventCategory: "submitPayment", eventLabel: "Submit payment"}; - case"logout": - return {eventCategory: "logout", eventLabel: "Logout event"}; - case"loginRequired": - return {eventCategory: "loginRequired", eventLabel: "Login required"}; - default: - return null - } - }(e); - t && r !== t.eventCategory && (k.ga.event({ - eventType: Co.EMIT_GA_EVENT, - payload: p(p({iframeId: n.sender}, t), n.params) - }), r = t.eventCategory) - }; - - function $(e, n) { - var r, a, s = m.getIframe(e.sender), v = !0; - switch (s && s.config && (v = !s.config.parent), e.event) { - case"initContext": - if (e.params && e.params.resultCallbackId) { - var h = { - resultCallbackId: e.params.resultCallbackId, - affiliateState: s.config.affiliateState - }; - l.send("resultCallback", h, e.sender) - } - break; - case"storeCustomVariables": - tp.saveCustomVariablesToLocalStorage(300); - break; - case"fullRedirectThreeDS": - window.location.href = e.params.bankSecureUrl; - break; - case"resize": - if (e.params.iframeId === e.sender) { - var y = void 0 === e.params.width ? p(p({}, e.params), {width: c.getWidth(s.container)}) : e.params; - m.resizeIframe(s, y), "modal" === s.config.displayMode && ("boilerplate" === e.params.closeButtonType && m.hideCloseButton(s.container), m.centerIt(s.container)), l.send("afterResize", {}, s.iframeId) - } - H.fireCallbacks(e.event, e.params, e.sender, v), (null === (r = null == s ? void 0 : s.iframeParams) || void 0 === r ? void 0 : r.experienceId) && (null === (a = null == s ? void 0 : s.iframeParams) || void 0 === a ? void 0 : a.experienceActionId) && se(s.iframeId); - break; - case"startCheckout": - if (e.params.width = null, "inline" === e.displayMode) { - e.params.closeOnLogout = !0; - var _ = Ne(e.params, s.statParams); - _.browserId = s.browserId, _.isOpenedFromInlineCheckout = !0, He(_, e.sender) - } - e.params.iframeId === e.sender && (H.fireCallbacks(e.event, e.params, e.sender, v), Y(e.event, e)); - break; - case"showAuthForm": - var b = e.params, C = void 0 === b ? {} : b; - pn.pianoId.show(p({ - closedCallback: function () { - l.send("authFormClosed", {}, e.sender) - } - }, C)); - break; - case"callLinkTermSelectedCallback": - case"callLinkedTermSelectedCallback": - if (!e.params || "function" != typeof tp.linkedTermSelected) return; - var I = e.params, E = I.linkedTermData, T = I.linkTermData, P = I.offerStatData, - A = I.pageViewData, - M = f(I, ["linkedTermData", "linkTermData", "offerStatData", "pageViewData"]), - N = G(E || T) || M, L = N.linkedTermData ? $o.COMMON : $o.SIGNED, U = J(N[L], L); - Promise.all([Q(P, A), X(tp.aid, U)]).then((function (e) { - var n, t = e[0].data, r = e[1].data; - m.hasModalIframe() && m.closeModalContainer(), tp.linkedTermSelected(t || "", p(p({}, N), ((n = {})[L] = p(p({}, N[L]), {userHasActiveSubscriptionToTerm: r}), n))) - })).catch(u.debug); - break; - case"loaded": - if (e.params.iframeId === e.sender) { - if (l.send("setupCustomVariables", R[e.params.iframeId], e.params.iframeId), l.send("setupEVTFields", s.config.externalVerificationFields, e.params.iframeId), Ae(s), Oe(s), s.config.deferredContextLoading && Z(s, e), s.waitFinishProcesses) return void m.__protected__.closeAndRemoveIframe(s); - "pianoId" === d.getProvider().name && pn.pianoId.__protected__.executePostMessagesBatch(), "modal" === s.config.displayMode && (m.resizeIframe(s, e.params), s.config.isPreload || m.checkBackdropAndContainer(s, !0)), "popup" === s.config.displayMode && m.resizeIframe(s, e.params), !s.config.isPreload && !s.config.trackStatsOnShow && Te(s), Pe(s), xe(s), Me(s), H.fireCallbacks(e.event, e.params, e.sender, v), "inline" === s.config.displayMode && (s.containerReady ? m.resizeIframe(s, e.params) : m.operationWithContainer(s.iframeParams.containerSelector, (function (n) { - var t = c.queryEl("#temp-inline-" + s.iframeId); - t && (n.innerHTML = t.innerHTML, c.remove(t)), s.element = c.queryEl("iframe", n), s.containerReady = !0, m.resizeIframe(s, e.params) - }))); - var j = s.iframeParams, F = j.offerId, B = j.templateId, q = j.initTime, z = j.logType; - w.setTime(z, Math.floor(performance.now() - q), { - offer_id: "fakeOfferId" === F ? void 0 : F, - template_id: B - }), re(s.config), u.doneCall("offerCreate") - } - break; - case"downForMaintenance": - m.resizeIframe(s, { - width: 300, - height: 200 - }), "modal" === s.config.displayMode && (s.config.isPreload || m.checkBackdropAndContainer(s)); - break; - case"removeQueryParamByName": - e && e.params && Array.isArray(e.params.paramsToRemove) && e.params.paramsToRemove.forEach((function (e) { - u.removeQueryParamByName(e) - })); - break; - case"purge": - n || (e && e.params && e.params.alreadyPurchased && (x = "alreadyHasAccess"), e && e.params && e.params.completePayment && (x = "checkoutCompleted"), pe(null == s ? void 0 : s.config.displayMode), m.purgeIframe(e.sender, s.config.parent), S.handleAcpEvent(H.fireCallbacks, e, s.config, v), re(s.config), Y(e.event, e)); - break; - case"close": - n || (e && e.params && e.params.alreadyPurchased && (x = "alreadyHasAccess"), e && e.params && e.params.completePayment && (x = "checkoutCompleted"), u.hasQueryParamByName("voucher_code") && (x = "voucherRedemptionCompleted"), m.closeContainer(e.sender, s.config.parent), re(s.config)); - break; - case"closeAndRefresh": - var W = e.params; - W ? window.location.assign(W) : window.location.reload(); - break; - case"selectTerm": - x = e && e.params && e.params.alreadyPurchased ? "alreadyHasAccess" : "close"; - break; - case"submitPayment": - H.fireCallbacks(e.event, Ne(e.params, {offerId: s.iframeParams.offerId}), e.sender, v), Y(e.event, e); - break; - case"complete": - if (void 0 !== e.params.token_list) { - var $ = d.getProvider().getToken(); - u.setAccessTokenListCookie({ - value: e.params.token_list, - cookie_domain: e.params.cookie_domain - }, $) - } - var te = Ne(e.params, {offerId: s.iframeParams.offerId}); - H.fireCallbacks(e.event, te, e.sender, v), x = "checkoutCompleted"; - break; - case"checkoutSelectTerm": - H.fireCallbacks(e.event, Ne(e.params, {offerId: s.iframeParams.offerId}), e.sender, v); - break; - case"checkoutStateChange": - i = o, o = e.params.stateName, H.fireCallbacks(e.event, e.params, e.sender, v), Y(e.event, e); - break; - case"checkoutPaymentError": - case"alreadyPurchased": - case"startThreeDBankSecure": - case"cancel": - case"error": - case"completeUpgradePurchase": - H.fireCallbacks(e.event, e.params, e.sender, v), Y(e.event, e); - break; - case"customEvent": - S.handleAcpEvent(H.fireCallbacks, e, s.config, v), Y(e.event, e); - break; - case"loginRequired": - O = !0, H.fireCallbacks(e.event, Je(s, e.params, e.sender), e.sender, v), Y(e.event, e); - break; - case"logout": - ee(e.event, e.params, e.sender, s.config.parent, v), Y(e.event, e); - break; - case"loginSuccess": - ne(e.event, e.params, e.sender, v); - break; - case"inputFocus": - var oe = c.queryEl(".tp-modal"); - oe && (oe.style.zIndex = pn.zIndexes.modal + 1 + "", oe.style.zIndex = pn.zIndexes.modal + ""); - break; - case"inputBlur": - var ie = c.queryEl(".tp-modal"); - ie && (ie.style.zIndex = pn.zIndexes.modal + 1 + "", ie.style.zIndex = pn.zIndexes.modal + ""); - break; - case"getLocation": - e.params && e.params.resultCallbackId && (e.params.result = window.location.href, l.send("resultCallback", e.params, e.sender)); - break; - case"setLocationHash": - e.params && e.params.hash && (window.location.hash = e.params.hash); - break; - case"langChangedWithinOffer": - pn.pianoId.isConfigured() && pn.pianoId.updateLang(e.params.lang), D.indexOf(e.params.lang) >= 0 ? m.turnOnRTL(s) : m.turnOffRTL(s); - break; - case"loginStart": - g.disable(); - break; - case"loginEnd": - g.enable(); - break; - case"pianoIdEvent": - e.params.iframeId === e.sender && ("closed" === e.params.event && m.closeContainer(e.sender), pn.pianoId.__protected__.offerMessageReceiver(e)), K(e.params, e.sender); - break; - case"swgCheckoutStart": - break; - case"sharedAccountsSuccessfullyAdded": - l.broadcast("refreshMyAccount", {userToken: d.getProvider().getToken()}); - break; - case"newsletterSignupImpression": - case"newsletterSignupSubmission": - pn.pianoEsp.__protected__.offerMessageReceiver(e), H.fireCallbacks(e.event, e.params, e.sender, v); - break; - case"parentSize": - var ae = c.winSize(), ce = {width: ae.width, height: ae.height}; - l.send("parentSize", ce, e.sender); - break; - case"gigyaPasswordlessLogin": - e.params.iframeId === e.sender && (t = e.params.iframeId, pn.gigya.loginByPasswordless(e.params)); - break; - case Co.EMIT_GA_EVENT: - return void (!n && k.ga.event({ - eventType: Co.EMIT_GA_EVENT, - payload: p({iframeId: e.sender}, e.params) - })); - case Co.EMIT_METRICS_EVENT: - !n && k.ga.event({eventType: Co.EMIT_METRICS_EVENT, payload: e.params}); - break; - case"bannerInit": - s.config.singleContainer.classList.add("tp-banner"); - break; - case"bannerDestroy": - s.config.singleContainer.classList.remove("tp-banner"); - break; - case"redeemCredit": - var ue = H.fireCallbacks("onStartCreditRedemption", e.params, e.sender, v); - ue && ue.then && ue.then((function (n) { - l.send("successfullyCreditRedeem", n, e.sender) - }), (function (n) { - l.send("creditRedeemFailed", n, e.sender) - })); - break; - case"scrollModalTo": - if ("modal" === e.displayMode) { - var le = c.queryEl(".tp-modal"); - if (le) { - var de = e.params.x || 0, fe = e.params.y || 0; - le.scrollTo(de, fe) - } - } - break; - case"frequencyEvent": - var me = { - event_name: "piano_frequency_event", - event_type: "closeClick" === e.params.eventType ? "close_click" : "visible_impression", - experience_Id: e.params.experienceId, - experience_action_Id: e.params.experienceActionId - }; - ("closeClick" !== e.params.eventType && !V || "closeClick" === e.params.eventType) && (H.fireCallbacks("piano_frequency_event", me, e.sender, v), V = "closeClick" !== e.params.eventType); - default: - return void u.debug("Received invalid event type: " + e.event) - } - } - - var K = function (e, n) { - "successDOI" === e.event && (e.iframeId !== n && m.closeContainer(e.iframeId), l.send("afterSuccessDOI", e.params, n)) - }, Z = function (e, n) { - e.config.contextLoadingPromise.then((function (t) { - var r = {iframeParams: e.iframeParams, userContext: t}; - r.iframeParams.url = u.prepareUrlParameter(window.location.href), l.send("userDataContextLoaded", r, n.params.iframeId) - })) - }, ee = function (e, n, t, r, o) { - d.logout((function () { - var e = {}; - e.userProvider = d.getProvider().getName(), e.userToken = d.getProvider().getToken() && d.getProvider().getToken().length > 0 ? d.getProvider().getToken() : "", e.noNeedStartCheckout = !0, Ge(e) - }), A), n.closeOnLogout && m.closeModalContainer(t, r) - }, ne = function (e, n, t, r) { - if (n.source = A, d.getProvider().onLoginSuccess(n), H.fireCallbacks("loginSuccess", n, t, r), !N) { - var o = {userToken: n.user_token, user: n.user, reloadAfterLogin: !0}; - Ge(o, t) - } - }, te = function (e) { - var n = e.displayMode || "modal"; - return [e.offerId, n, e.containerSelector].join("|") - }, re = function (e) { - var n = te(e); - delete T[n] - }, oe = function (e) { - if (x = "close", Ve(e), void 0 === e.displayMode) e.displayMode = "modal"; else if ("modal" !== e.displayMode && "inline" !== e.displayMode && "popup" !== e.displayMode) return u.log("Invalid offer displayMode; must be one of: modal, inline, popup"), void re(e); - if ("modal" === e.displayMode && !e.isPreload && m.hasModalIframe()) return u.log("Modal offer is already shown; must be one modal offer per time"), void re(e); - if ("modal" !== e.displayMode) { - var n, t = c.qa(e.containerSelector); - if (!e.isPreload) if (t.forEach((function (t) { - var r = Ne({}, e); - r.singleContainer = t, n = ae(r) - })), n) return n; - var r = t[t.length - 1]; - r && (e.singleContainer = r) - } - return ae(e) - }; - - function ie(e, n) { - var t = u.getPageViewContext(), r = t.pageTitle, o = t.url, i = t.referrerUrl, a = t.contentType; - n.pageTitle = r, n.url = o, n.referrerUrl = i, n.contentType = a - } - - function ae(e, r) { - var o = function (e) { - var n = {}; - e.termIds && (e.termIds instanceof Array || (e.termIds = [e.termIds])); - var t = e.additionalParamNames ? e.additionalParamNames : []; - ["displayMode", "containerSelector", "templateId", "templateVariantId", "offerId", "termId", "termIds", "rid", "aid", "isCheckout", "isOpenedFromInlineCheckout", "pw_id", "paywallId", "width", "preview", "previewUncached", "previewTemplateType", "previewTemplateVersion", "tokenType", "janrainCaptureToken", "closeOnLogout", "voucherCode", "isRedemption", "allowReturnToStartState", "startFromInlineCheckout", "formNameByTermId", "hideCompletedFields", "startFromInlineCheckout", "reloadAfterLogin", "preventReloadAfterLogin", "isAuth", "authStartScreen", "showCloseButton", "closeButtonType", "checkoutFlowId", "offerState", "oid", "promoCode", "promoCodeId", "promoCodeTermId", "rurl_3ds", "thirdPartyParams", "termId3ds", "providerId", "deploymentItemId", "sharedAccountCode", "targetedTermId", "widget", "linkTermCheckoutState", "linkedTermCheckoutState", "purchasedLinkTermData", "purchasedLinkedTermData", "subscriptionId", "experienceActionId", "continuation"].concat(["trackingId", "experienceId", "experienceActionId", "activeMeters", "directCheckout"], t).forEach((function (t) { - e[t] && (n[t] = e[t]), "showCloseButton" === t && (void 0 === e[t] ? n[t] = !0 : n[t] = e[t]) - })); - var r = decodeURIComponent(u.getQueryParamByName("_ptid")); - return r && (n.trackingId = r, ke(r)), e.preview && (n.activeMeters = JSON.stringify([{ - meterName: "preview-meter", - views: 10, - viewsLeft: 5, - maxViews: 20, - totalViews: 20 - }])), n - }(e), i = performance.now(); - o.widget || (o.widget = "offer"); - var a = u.getTbcCookie(); - a && a.length > 0 && (o.tbc = a), e.deferredContextLoading ? (o.iframeId = Ce(e), o.url = window.location.origin) : (o.iframeId = "offer-" + P++ + "-" + u.randomString(), o.url = u.prepareUrlParameter(window.location.href)); - var s = c.winSize(); - o.parentDualScreenLeft = void 0 !== window.screenLeft ? window.screenLeft : screen.left, o.parentDualScreenTop = void 0 !== window.screenTop ? window.screenTop : screen.top, o.parentWidth = s.width ? s.width : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width, o.parentHeight = s.height ? s.height : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height, o.parentOuterHeight = window.outerHeight, e.previewNonLoggedUser && (o.previewNonLoggedUser = e.previewNonLoggedUser), e.isPreload && (o.preload = 1), pn.locale && (o.lang = pn.locale), h.getClientId() && (o.gaClientId = h.getClientId()), h.getGAAccount() && (o.gaAccount = h.getGAAccount()), function (e) { - ["debug", "aid", "gaClientId", "tags", "contentSection", "contentAuthor", "debug", "zone"].forEach((function (n) { - pn[n] && (e[n] = pn[n]) - })), pn.customVariables && (R[e.iframeId] = JSON.stringify(pn.customVariables), e.customVariables = R[e.iframeId]); - var n = pn.contentCreated; - if (n && (e.contentCreated = n), pn && pn.main && (e.visitId = pn.main.fetchVisitId()), pn && pn.util) { - var t = pn.util.getPageViewContext(), r = t.pageTitle, o = t.pageViewId; - e.browserId = pn.util.getBrowserId(), e.pageViewId = o, e.pageTitle = r - } - }(o); - var p = H.hasCallback("loginRequired"); - if (!pn.janrain.isConfigured() || void 0 !== e.loginRequired && e.loginRequired) if (!pn.gigya.isConfigured() || void 0 !== e.loginRequired && e.loginRequired) if (pn.pianoId.isConfigured()) { - (void 0 === e.loginRequired || !e.loginRequired) && (e.loginRequired = function (e) { - if (!e.preventExternalLogin) return n = e.termId, t = o.iframeId, pn.pianoId.show({screen: e.startScreen}), !1 - }), Ue(), o.pianoIdUrl = pn.pianoId.getIframeUrl(), o.pianoIdStage = pn.pianoId.__protected__.getStage(), e.isGmSso && (o.isGmSso = e.isGmSso); - var f = pn.pianoId.getLang(); - f && (o.lang = f), pn.pianoId.onLangChange((function (e) { - l.send("langChanged", {lang: e}, o.iframeId) - }), o.iframeId) - } else pn.pianoIdLite.isConfigured() && (o.pianoIdUrl = pn.pianoId.getIframeUrl()); else { - v = []; - pn.gigya.registerCallback("onHide", (function (e) { - e && e.afterLogin ? m.activateContainers(v) : pn.offer.close(), l.send("gigyaHide", e, t) - })), Re(), e.loginRequired = function (e) { - return M = e.allowReturnToStartState, O = !1, v = m.hideModalContainer(), n = e.termId, t = o.iframeId, u.waitCall("refreshUserToken", (function () { - pn.gigya.login() - })), !1 - } - } else { - var v = []; - pn.janrain.addEventHandler("onModalClose", (function () { - m.activateContainers(v) - })), Le(), e.loginRequired = function (e) { - return v = m.hideModalContainer(), M = e.allowReturnToStartState, O = !1, n = e.termId, t = o.iframeId, u.waitCall("refreshUserToken", (function () { - pn.janrain.login(void 0, e) - })), !1 - } - } - o.userProvider = d.getProvider().getName(), e.userToken ? o.userToken = e.userToken : o.userToken = d.getProvider().getToken() && d.getProvider().getToken().length > 0 ? d.getProvider().getToken() : "", u.getCampaigns(o), o.customCookies = JSON.stringify(u.getCustomCookies()), H.registerCallback(e, o.iframeId), o.hasLoginRequiredCallback = H.hasIframeCallback("loginRequired", o.iframeId) || p, o.initMode = "context", Ie(o); - var g = e.iframeUrl ? e.iframeUrl : o.isCheckout ? pn.getEndpointRoot(!0) + "/checkout/offer/show" : W(), - y = e.postMessageUrl ? e.postMessageUrl : W(); - if (e.deferredContextLoading) { - var w = Se(o); - ie(0, w), e.initContextLoadPromise(e, w) - } - var _ = Ee(o, e); - if (pn.pianoId.__protected__.isSssEnabled()) { - var b = pn.pianoId.__protected__.getSssParams(); - o.sss_mode = b.sss_mode, o.sss_callback_url = b.sss_callback_url, o.sss_origin_url = b.sss_origin_url - } - e.splitTestIds && (o.abTestIds = e.splitTestIds), e.socialName && (o.socialName = e.socialName), e.responseType && (o.responseType = e.responseType), o.requestUserAuthForLinkedTerm = tp.requestUserAuthForLinkedTerm, o.initTime = i; - var k = g.indexOf("/offer/") >= 0 ? "offerShow" : "templateShow"; - o.logType = k; - var C = m.createContainer({ - url: g, - config: e, - parent: e.parent, - postMessageUrl: y, - receive: $, - iframeParams: o, - singleContainer: e.singleContainer, - close: function () { - H.fireCallbacks("close", {state: x}, o.iframeId, !0) - } - }); - return U = g.indexOf("/template/") >= 0 && o.offerId === m.fakeOfferId ? o : U, be(o, "offerId", "width", "termId", "displayMode", "experienceId", "iframeId", "templateId", "templateVariantId"), C.statParams = _, C.browserId = e.browserId, E.push(C), C - } - - var se = function (e) { - if (!V) { - document.getElementById(e) && !F && (F = !0, me(e)); - var n = E.find((function (n) { - return n.iframeId === e - })); - "modal" === (null == n ? void 0 : n.config.displayMode) ? le(e) : ce(e) - } - }, ce = function (e) { - s = e, document.addEventListener("scroll", ue) - }, ue = function e() { - fe(s) ? document.removeEventListener("scroll", e) : me(s) - }, le = function (e) { - var n; - s = e, null === (n = document.getElementsByClassName("tp-modal")[0]) || void 0 === n || n.addEventListener("scroll", de) - }, de = function e() { - var n; - fe(s) ? null === (n = document.getElementsByClassName("tp-modal")[0]) || void 0 === n || n.removeEventListener("scroll", e) : me(s) - }, pe = function (e) { - var n; - "modal" === e ? null === (n = document.getElementsByClassName("tp-modal")[0]) || void 0 === n || n.removeEventListener("scroll", de) : document.removeEventListener("scroll", ue) - }, fe = function (e) { - var n = E.find((function (n) { - return n.iframeId === e - })); - return V || "offer" !== o && n.iframeParams.offerId !== m.fakeOfferId || a && "offer" === i - }, me = function (e) { - var n = ve(e); - he(n) && ge(n, e) - }, ve = function (e) { - var n, t, r, - o = null === (n = document.getElementById(e)) || void 0 === n ? void 0 : n.getBoundingClientRect(); - return { - top: (null == o ? void 0 : o.top) || 0, - bottom: (null == o ? void 0 : o.bottom) || 0, - left: (null == o ? void 0 : o.left) || 0, - right: (null == o ? void 0 : o.right) || 0, - iframeHeight: (null == o ? void 0 : o.height) || 0, - iframeWidth: (null == o ? void 0 : o.width) || 0, - viewportHeight: (null === (t = window.visualViewport) || void 0 === t ? void 0 : t.height) || 0, - viewportWidth: (null === (r = window.visualViewport) || void 0 === r ? void 0 : r.width) || 0 - } - }, ge = function (e, n) { - setTimeout((function () { - he(e) && _e(n) - }), 1e3) - }, he = function (e) { - return e.iframeHeight > e.viewportHeight ? ye(e) : we(e) - }, ye = function (e) { - return e.viewportWidth > e.iframeWidth ? e.top < 0 && Math.abs(e.top) >= e.iframeHeight / 2 - e.viewportHeight && Math.abs(e.top) <= e.iframeHeight / 2 && (e.left >= 0 && e.left <= e.viewportWidth - e.iframeWidth / 2 || e.left < 0 && e.right >= e.iframeWidth / 2) : e.top < 0 && Math.abs(e.top) >= e.iframeHeight / 2 - e.viewportHeight && Math.abs(e.top) <= e.iframeHeight / 2 && e.left <= 0 && Math.abs(e.left) >= e.iframeWidth / 2 - e.viewportWidth && Math.abs(e.left) <= e.iframeWidth / 2 - }, we = function (e) { - return e.viewportWidth > e.iframeWidth ? (e.top >= 0 && e.top <= e.viewportHeight - e.iframeHeight / 2 || e.top < 0 && e.bottom >= e.iframeHeight / 2) && (e.left >= 0 && e.left <= e.viewportWidth - e.iframeWidth / 2 || e.left < 0 && e.right >= e.iframeWidth / 2) : (e.top >= 0 && e.top <= e.viewportHeight - e.iframeHeight / 2 || e.top < 0 && e.bottom >= e.iframeHeight / 2) && e.left <= 0 && Math.abs(e.left) >= e.iframeWidth / 2 - e.viewportWidth && Math.abs(e.left) <= e.iframeWidth / 2 - }, _e = function (e) { - var n, t, r = E.find((function (n) { - return n.iframeId === e - })), o = { - event_name: "piano_frequency_event", - event_type: "visible_impression", - experience_Id: null === (n = null == r ? void 0 : r.iframeParams) || void 0 === n ? void 0 : n.experienceId, - experience_action_Id: null === (t = null == r ? void 0 : r.iframeParams) || void 0 === t ? void 0 : t.experienceActionId - }; - r && !V && document.getElementById(e) && (H.fireCallbacks("piano_frequency_event", o, e, !0), V = !0) - }, be = function (e) { - for (var n = [], t = 1; t < arguments.length; t++) n[t - 1] = arguments[t]; - var r = n.reduce((function (n, t) { - var r; - return p(p({}, n), ((r = {})[t] = e[t], r)) - }), {}); - C.setParamMap(r) - }, ke = function (e) { - C.setParam("trackingId", e) - }, Ce = function (e) { - var n = 0, t = "offer_" + y.hash(e.iframeUrl + "?" + e.buildQueryStringFn(e, c), 20); - return L.has(t) && (n = L.get(t) + 1), L.set(t, n), t + "-" + n - }, Ie = function (e) { - var n = u.getQueryParamByName("termId"), t = u.getQueryParamByName("paySource"); - n && (e.termId = n), t && (e.paySource = t) - }, Se = function (e) { - var n = {}; - return ["tbc", "trackingId", "pageViewId", "visitId", "tags", "contentCreated", "contentSection", "contentAuthor", "pageTitle", "referrerUrl"].forEach((function (t) { - e[t] && (n[t] = e[t]) - })), Object.keys(e).forEach((function (t) { - 0 === t.indexOf("tpcc_") && (n[t] = e[t]) - })), n - }, Ee = function (e, n) { - var t = {}; - return n.trackStatsOnShow || n.deferredContextLoading || (t = Se(e), Object.keys(t).forEach((function (n) { - delete e[n] - }))), t - }, Te = function (e) { - var n = Ne(e.iframeParams, e.statParams); - e.config.affiliateState && (n.affiliateState = e.config.affiliateState), ie(e.config, n), l.send("trackStat", n, e.iframeId) - }, Pe = function (e) { - var n = {browserId: e.browserId}; - l.send("passBrowserId", n, e.iframeId) - }, xe = function (e) { - l.send("passPcidBrowserId", {browser_id: u.getBrowserId()}, e.iframeId) - }, Ae = function (e) { - l.send("passCookieConsents", u.getCookieConsents(), e.iframeId) - }, Oe = function (e) { - l.send("passUserSegments", u.getUserSegmentsString(), e.iframeId) - }, Me = function (e) { - var n = u.getPageViewContext(), t = n.pageTitle, r = n.url, o = n.pageViewId, i = n.referrerUrl, - a = n.author, s = n.created, c = n.section, d = n.tags, p = n.contentType; - l.send("passPageViewContext", { - page_title: t, - url: r, - page_view_id: o, - referrer: i, - content_author: a, - content_created: null == s ? void 0 : s.toString(), - content_section: c, - tags: d ? JSON.stringify(d) : null, - content_type: p - }, e.iframeId) - }, Ne = function (e, n) { - var t = {}; - return Object.keys(e).forEach((function (n) { - t[n] = e[n] - })), Object.keys(n).forEach((function (e) { - t[e] = n[e] - })), t - }, Re = function () { - N || (pn.gigya.registerCallback("userChanged", (function (e) { - if (e && e.user_token) { - var r = { - token_list: e.access_token.value, - user_token: e.user_token, - userToken: e.user_token, - cookie_domain: e.access_token.cookie_domain, - user: e.user, - allowReturnToStartState: M, - termId: n - }; - if (t) m.getIframe(t) ? (l.send("externalLoginSuccess", r, t), delete r.termId, Ge(r, t)) : Ge(r); else Ge(r) - } - })), pn.gigya.registerCallback("logout", (function () { - var e, r = {}; - r.userProvider = d.getProvider().getName(), r.userToken = d.getProvider().getToken() && d.getProvider().getToken().length > 0 ? d.getProvider().getToken() : "", r.noNeedStartCheckout = !0, t && (e = m.getIframe(t)), e && "inline" === e.config.displayMode && m.closeModalContainer(), n = "", t = "", M = !1, Ge(r) - })), N = !0) - }, Le = function () { - N || (pn.janrain.registerCallback("userChanged", (function (e) { - if (e && e.user_token) { - var r = { - token_list: e.access_token.value, - user_token: e.user_token, - userToken: e.user_token, - cookie_domain: e.access_token.cookie_domain, - user: e.user, - allowReturnToStartState: M, - termId: n - }; - if (t) m.getIframe(t) ? (l.send("externalLoginSuccess", r, t), delete r.termId, Ge(r, t)) : Ge(r); else Ge(r) - } - })), pn.janrain.addEventHandler("onCaptureSessionEnded", (function () { - var e, r = {}; - r.userProvider = d.getProvider().getName(), r.userToken = d.getProvider().getToken() && d.getProvider().getToken().length > 0 ? d.getProvider().getToken() : "", r.noNeedStartCheckout = !0, t && (e = m.getIframe(t)), e && "inline" === e.config.displayMode && m.closeModalContainer(), n = "", t = "", M = !1, Ge(r) - })), N = !0) - }, Ue = function () { - N || (pn.pianoId.setCallbacks({ - loggedIn: function (e) { - u.log("offer.js - piano id user logged in"); - var r = { - user_token: e.token, - userToken: e.token, - user: e.user, - reloadAfterLogin: !0, - termId: n - }; - t ? m.getIframe(t) ? (l.send("externalLoginSuccess", r, t), We(t, r), delete r.termId, Ge(r, t)) : Ge(r) : Ge(r) - }, loggedOut: function (e) { - if (e.source !== A) { - var r = {}; - r.userProvider = d.getProvider().getName(), r.userToken = d.getProvider().getToken() && d.getProvider().getToken().length > 0 ? d.getProvider().getToken() : "", r.noNeedStartCheckout = !0, Ge(r) - } - n = "", t = "" - } - }), N = !0) - }; - - function De(e) { - return m.showPreloadedContainer(e) - } - - var je = function (e) { - var n = e.offerId === m.fakeOfferId ? "showTemplate" : "showOffer"; - H.hasCallback(n) && H.fireCallbacks(n, e, void 0, !0), Y(n, {params: e}) - }, Ve = function (e) { - [{queryParam: "promo_code", configParam: "promoCode"}].forEach((function (n) { - var t = u.getQueryParamByName(n.queryParam); - t.length && (e[n.configParam] = t) - })) - }, Fe = function () { - return u.getQueryParamByName(B) - }, Be = function (e) { - if (e.offerId || !0 === e.preview) return !function (e) { - var n = te(e); - return !!T[n] - }(e) && void (function (e) { - return Fe() && !e.rurl_3ds && "modal" === e.displayMode - }(e) || (j = e.trackingId, ke(j), e.preview || function (e) { - var n = te(e); - T[n] = !0 - }(e), setTimeout((function () { - re(e) - }), 1e4), u.waitCall("refreshUserToken", (function () { - u.waitCall("refreshAccessTokenList", (function () { - u.waitCall("myAccountLogin", (function () { - var n; - if (u.startCall("offerCreate"), e.createIframeFn ? (Ve(e), n = e.createIframeFn(e)) : n = oe(e), !n) return u.doneCall("offerCreate"), void u.error("Could not initialize offer; check configuration"); - qe(e) && (a = !0, ze(n.iframeId)), je(e) - })) - })) - })))); - u.error("Must specify offerId") - }; - var qe = function (e) { - return !!e.directCheckout && "inline" !== e.displayMode - }, ze = function (e) { - u.waitCall("offerCreate", (function () { - l.send("startDirectCheckout", {}, e) - })) - }, He = function (e, n) { - if (!function (e) { - return !e.offerId && !e.isRedemption && !e.preview - }(e)) { - var t = H.hasCallback("loginRequired"); - if (e.isSiteLicensing && t && (Qe() || Xe())) return void _.refreshUser(U.iframeId); - m.hasModalIframe() && !Ye(e) && m.closeModalContainer(), u.debug("creating checkout: ", e), e.displayMode = "popup" === e.displayMode ? "popup" : "modal", e.isCheckout = !0, e.parent = n, u.waitCall("refreshUserToken", (function () { - u.waitCall("refreshAccessTokenList", (function () { - var t, r; - if (Ye(e) && e.reloadAfterLogin && Xe()) { - var o = null === (t = d.getProvider()) || void 0 === t ? void 0 : t.getToken(); - return o && e[z] ? void function (e) { - var n, t = e.token, r = e.termId, o = e.iframeId; - l.send("startLinkedTermProcessAfterExternalLogin", {termId: r}, o), O && (Ge({ - userProvider: null === (n = d.getProvider()) || void 0 === n ? void 0 : n.getName(), - userToken: t, - noNeedStartCheckout: !0, - noNeedStartCheckoutAfterLogin: !0 - }), O = !1) - }({ - token: o, - termId: e.termId, - iframeId: e[z] - }) : void u.log("external checkout cannot be continued.") - } - if (u.startCall("offerCreate"), pn.pianoId.__protected__.isGmSso()) { - if (pn.pianoId.__protected__.isGmSsoRedirectEnabled() && !pn.pianoId.getToken()) return void pn.pianoId.__protected__.authByGmSsoRedirect(e); - e = p(p({}, e), {isGmSso: !0}) - } - r = e.createIframeFn ? e.createIframeFn(e) : oe(e), m.__protected__.addChildToInlineIframe(r, n), r ? O && u.waitCall("offerCreate", (function () { - O = !1; - var e = {}; - e.userProvider = d.getProvider().getName(), d.getProvider().getToken() && d.getProvider().getToken().length > 0 ? e.userToken = d.getProvider().getToken() : e.userToken = "", e.noNeedStartCheckout = !0, e.noNeedStartCheckoutAfterLogin = !0, Ge(e, r.iframeId) - })) : (u.doneCall("offerCreate"), u.error("Could not start checkout; check configuration")) - })) - })) - } - }, We = function (e, n) { - l.send("reloadOffer", n, e) - }, Ge = function (e, n) { - l.broadcast("reloadOffer", e, n) - }, Je = function (e, n, t) { - var r = {reloadAfterLogin: !0}; - return Object.assign(r, e.config), r.singleContainer && delete r.singleContainer, n.termId && (r.termId = n.termId), n.term && (r.term = {}, r.term = Ne(r.term, n.term)), n.startScreen && (r.startScreen = n.startScreen), n.isRedemption && (r.isRedemption = n.isRedemption, r.voucherCode = n.redemption && n.redemption.form && n.redemption.form.redeemCode, r.termId = null), n && n.currentState && "modal" === e.config.displayMode && (r.allowReturnToStartState = !0), n.preventExternalLogin && (r.preventExternalLogin = n.preventExternalLogin), n.sharedAccountCode && (r.sharedAccountCode = n.sharedAccountCode), n.isSiteLicensing && (r.isSiteLicensing = n.isSiteLicensing), n.campaignCode && (r.campaignCode = n.campaignCode), n.campaignGroupId && (r.campaignGroupId = n.campaignGroupId), n.termType && (r[q] = n.termType), t && (r[z] = t), r.displayMode = "modal", r - }, Qe = function () { - return "publisher_user_ref" === d.getProvider().getName() - }, Xe = function () { - return "piano_id_lite" === d.getProvider().getName() - }, Ye = function (e) { - var n = e[q] === Ko.LINKED, t = e[q] === Ko.LINK; - return n || t - }; - return { - name: "offer", show: function (e) { - "inline" === e.displayMode ? m.operationWithContainer(e.containerSelector, (function () { - Be(e) - })) : Be(e) - }, deferredShow: function (e) { - return function (e) { - var n, t, r, o = new Promise((function (e, r) { - n = e, t = r - })), i = new Promise((function (e, n) { - r = e - })); - return "popup" !== e.displayMode && e.offerId ? u.waitCall("refreshAccessTokenList", (function () { - var o; - e.isPreload = !0, u.startCall("offerCreate"), e.createIframeFn ? (Ve(e), o = e.createIframeFn(e)) : o = oe(e), o ? (o.element.onload = function () { - r(o) - }, n(o)) : (u.doneCall("offerCreate"), u.error("Could not initialize offer; check configuration"), t()) - })) : t(), { - promise: o, show: function () { - o.then(De).then((function () { - return i - })).then((function (n) { - Te(n), qe(e) && ze(n.iframeId), je(e) - }), (function () { - Be(e), delete e.isPreload - })) - } - } - }(e) - }, close: function () { - m.closeModalContainer() - }, closeInline: function (e) { - m.__protected__.closeInlineContainers(e) - }, startCheckout: He, startLinkedTermCheckout: function (e, n) { - if (E.length) if (n) { - var t = E.find((function (e) { - var t, r; - return (null === (t = null == e ? void 0 : e.config) || void 0 === t ? void 0 : t.offerId) === n || (null === (r = null == e ? void 0 : e.iframeParams) || void 0 === r ? void 0 : r.offerId) === n - })); - t ? l.send("tpStartLinkedTermCheckout", {termId: e}, t.iframeId) : u.debug("offer iframe ".concat(n, " was not found")) - } else E.forEach((function (n) { - l.send("tpStartLinkedTermCheckout", {termId: e}, n.iframeId) - })); else u.debug("there are not offer iframes.") - }, startRedeemVoucher: function (e, n) { - m.closeModalContainer(), e || (e = {}), e.isRedemption = !0, u.debug("starting redeem voucher: ", e), e.displayMode = "popup" === e.displayMode ? "popup" : "modal", e.isCheckout = !1, e.parent = n, u.waitCall("refreshAccessTokenList", (function () { - u.startCall("offerCreate"), (e.createIframeFn ? e.createIframeFn(e) : oe(e)) || (u.doneCall("offerCreate"), u.error("Could not start redeem; check configuration")) - })) - }, createOfferIframe: oe, showBackdrop: function () { - m.showBackdrop() - }, hideBackdrop: function () { - m.hideBackdrop() - }, centerBackdrop: function (e) { - m.centerBackdrop(e) - }, registerCallback: function (e, n) { - H.addEvent(e), H.registerCallback(e, n) - }, reload: We, reloadAll: function (e, n) { - var t = e || {}; - u.waitCall("refreshUserToken", (function () { - Ge(Object.assign(t, {userToken: pn.user.getProvider().getToken()}), n) - })) - }, resetUserAndReloadAll: function (e, n) { - var t = e || {}; - Ge(Object.assign(t, {userToken: ""}), n) - }, checkThreeDSRedirect: function () { - var e = Fe(); - if (e) { - var n = { - offerId: "pn_offer_id", - oid: "pn_oid", - termId3ds: "pn_term_id", - providerId: "pn_provider_id", - thirdPartyParams: "third_party_params" - }, t = [B], r = Object.keys(n).reduce((function (e, r) { - var o = Object.assign({}, e); - return o[r] = u.getQueryParamByName(n[r]), t.push(n[r]), o - }), {}); - u.removeQueryParamByName(t), Be(Object.assign({displayMode: "modal", rurl_3ds: e}, r)) - } - }, passUserSegments: Oe, passCookieConsents: Ae - } - }() - }), pn.offer = pn.container.resolve("offer"); - var ei = function () { - var e, n = pn.container.resolve("jqUtils"), t = pn.container.resolve("util"), - r = pn.container.resolve("postmessage"), o = pn.container.resolve("offer"), - i = pn.container.resolve("user"), a = pn.container.resolve("containerUtils"), - s = pn.container.resolve("pianoId"), c = pn.container.resolve("logging"), - u = pn.container.resolve("microsoftQuickAuth"), l = pn.container.resolve("acp"), d = {}, p = !1, - f = {loginRequired: [], loginSuccess: [], autoRenewalDisabled: [], subscriptionCancellation: []}, - m = function () { - return pn.getEndpointRoot() + "/checkout/myaccount/show" - }, v = function (e, n) { - e.element.style.height = (e.config.maxHeight ? Math.min(n.height, e.config.maxHeight) : n.height) + "px", e.container.style.height = (e.config.maxHeight ? Math.min(n.height, e.config.maxHeight) : n.height) + "px", e.element.style.width = n.width + "px", "modal" === e.config.displayMode && (e.container.style.width = n.width + "px"), r.send("resized", { - height: e.config.maxHeight ? Math.min(n.height, e.config.maxHeight) : n.height, - width: n.width - }, e.iframeId) - }, g = function (t, r, i) { - return function () { - e && (n.removeClass("tp-active", e), o.hideBackdrop(), window.setTimeout((function () { - n.remove(e) - }), 250), r.result = i, t(r)) - } - }, h = function (e) { - var t = n.winSize(); - e.offsetHeight > t.height ? (!1 === p && (e.style.position = "absolute", p = !0), e.style.marginTop = window.scrollY - .5 * t.height + "") : (!0 === p && (e.style.position = "fixed", p = !1), e.style.marginTop = 0 - .5 * e.offsetHeight + ""), o.centerBackdrop(e), e.style.marginLeft = 0 - .5 * e.offsetWidth + "" - }, y = function (t, i) { - !function (t, r) { - var i = document.createElement("div"); - n.addClass("tp-modal", i); - var a = document.createElement("div"); - n.addClass("tp-close", a); - var s = document.createElement("div"); - n.addClass("tp-message", s), i.style.width = (t.width ? t.width : 400) + "px", s.innerHTML = t.message; - var c = document.createElement("div"); - n.addClass("tp-btn-container", c); - var u = document.createElement("button"); - n.addClass("tp-btn", u), n.addClass("tp-ok-btn", u), u.innerHTML = t.ok ? t.ok : "Ok"; - var l = document.createElement("button"); - n.addClass("tp-btn", l), n.addClass("tp-cancel-btn", l), l.innerHTML = t.cancel ? t.cancel : "Cancel", n.on(a, "click", g(r, t, "cancel")), n.on(l, "click", g(r, t, "cancel")), n.on(u, "click", g(r, t, "ok")), n.append(i, a), n.append(i, s), n.append(c, u), n.append(c, l), n.append(i, c), n.append(document.body, i), o.showBackdrop(), n.addClass("tp-active", i), h(i), e = i - }(i.params, (function (e) { - r.send("closeDialog", e, d[i.sender].iframeId) - })) - }, w = function (e, n) { - f[e] = f[e] || [], f[e].push(n) - }, _ = function (e, n, o) { - if (t.debug("received event: " + e, n), void 0 !== f[e]) { - for (var i = 0; i < f[e].length; ++i) { - t.debug("firing callback for event: " + e); - var a = f[e][i](n); - n && n.resultCallbackId && (n.result = a, n.event = e, r.send("resultCallback", n, o)) - } - !f[e].length && n && n.resultCallbackId && (n.callbackNotFound = !0, n.event = e, r.send("resultCallback", n, o)) - } - }, b = function (e) { - switch (t.log("*** My account event received", e.event, e.params), e.event) { - case"resize": - t.debug("*** Resize event", e.params.width, e.params.height), v(d[e.sender], e.params), "modal" === d[e.sender].config.displayMode && h(d[e.sender].container); - break; - case"loaded": - var o = d[e.sender]; - r.send("initMaxHeight", {height: o.config.maxHeight}, o.iframeId), pn.offer.passCookieConsents(o), pn.offer.passUserSegments(o), v(o, e.params), "pianoId" === i.getProvider().name && s.__protected__.executePostMessagesBatch(), "modal" === o.config.displayMode && window.setTimeout((function () { - n.addClass("tp-active", o.container), h(o.container) - }), 25), c.setTime("myAccountShow", Math.floor(performance.now() - o.config.initTime)); - break; - case"cancel": - case"complete": - case"error": - case"loginRequired": - case"customEvent": - _(e.event, e.params, e.sender); - break; - case"openDialog": - y(e.event, e); - break; - case"pianoIdProfileUpdated": - s.onProfileUpdate(e.params, (function () { - var n = e.params; - n && n.resultCallbackId && r.send("resultCallback", n, e.sender); - var t = {userToken: e.params.token, user: e.params.user}; - k(t) - })); - break; - case"extendedUserLoginRequired": - s.onExtendedUserLoginRequired(); - break; - case"loginSuccess": - i.getProvider().onLoginSuccess(e.params); - var a = {reloadAfterLogin: !0, userToken: e.params.user_token, user: e.params.user}; - k(a), _(e.event, e.params, e.sender); - break; - case"logout": - i.logout((function () { - var e = {}; - e.userProvider = i.getProvider().getName(), e.userToken = i.getProvider().getToken() && i.getProvider().getToken().length > 0 ? i.getProvider().getToken() : "", k(e) - })), _(e.event, e.params, e.sender); - break; - case"userProfileUpdateSuccess": - var u = e, p = u.event, f = u.params, m = u.sender; - i.getProvider().onLoginSuccess(f); - var g = {userProvider: f.user_provider, userToken: f.user_token}; - for (var w in k(g), _(p, f, m), d) if (d.hasOwnProperty(w)) { - var b = d[w].config; - b.hasOwnProperty("userToken") && delete b.userToken, S(b) - } - break; - case"langChangedWithinMyAccount": - s.isConfigured() && s.updateLang(e.params.lang); - break; - case"requestScrollData": - C(e.sender); - break; - case"downForMaintenance": - v(d[e.sender], {width: 300, height: 200}); - break; - case"removeQueryParamByName": - Array.isArray(e.params.paramsToRemove) && e.params.paramsToRemove.forEach((function (e) { - t.removeQueryParamByName(e) - })); - break; - case"getTrackingData": - r.send("getTrackingDataResponseEvent", { - pageViewId: pn.main.fetchPageViewId(), - tbc: t.getTbcCookie() - }, e.sender); - break; - case"redirect": - document.location.href = e.params.url; - break; - case"getTemplateInteractionConfig": - l.sendTemplateInteractionActive(d[e.sender].config); - break; - case xo.autoRenewalDisabled: - case xo.subscriptionCancellation: - l.handleAcpEvent(_, e, d[e.sender].config, !0); - break; - default: - return void t.log("Received invalid event type: " + e.event) - } - }, k = function (e) { - r.broadcast("reloadOffer", e) - }, C = function (e) { - var n = d[e].element.getBoundingClientRect(), t = { - iframeRect: { - bottom: n.bottom, - height: n.height, - left: n.left, - right: n.right, - top: n.top, - width: n.width - } - }; - r.send("returnScrollData", t, e) - }; - - function I(e) { - e.initTime = performance.now(); - var o = {widget: "myaccount"}; - if (e.templateId && (o.templateId = e.templateId), void 0 === e.displayMode) e.displayMode = "inline"; else if ("modal" !== e.displayMode && "inline" !== e.displayMode) return void t.log("Invalid offer displayMode; must be one of: modal, inline"); - if (o.displayMode = e.displayMode, o.iframeId = t.randomString(16), o.url = window.location.href, o.initialWidth = e.width, o.initialHeight = e.height, o.maxHeight = e.maxHeight, o.v3ApiEndpoint = pn.getApiEndpoint(), i.getProvider().getName() === s.getName() && s.__protected__.isSssEnabled()) { - var c = s.__protected__.getSssParams(); - o.piano_id_sss_mode = c.sss_mode, o.piano_id_sss_callback_url = c.sss_callback_url, o.piano_id_sss_origin_url = c.sss_origin_url - } - if (pn.locale && (o.lang = pn.locale), !pn.janrain.isConfigured() || void 0 !== e.loginRequired && e.loginRequired) if (!pn.gigya.isConfigured() || void 0 !== e.loginRequired && e.loginRequired) if (pn.pianoId.isConfigured()) { - y = e; - if (pn.pianoId.setCallbacks({ - loggedIn: function (n) { - var t; - o.userToken !== n.token && (e.loginSuccess && (t = e.loginSuccess(n)), (void 0 === t || t) && (y.userToken = n.token, S(y))) - }, loggedOut: function () { - var e = {}; - e.userProvider = i.getProvider().getName(), e.userToken = i.getProvider().getToken() && i.getProvider().getToken().length > 0 ? i.getProvider().getToken() : "", k(e) - } - }), null !== pn.pianoId.getToken() && u.clearConfirmationParameters(), void 0 === e.loginRequired || !e.loginRequired) { - var l = 0; - e.loginRequired = function () { - if (++l > 10) t.log("Too many attemps to login for myAccount"); else { - var e = t.getQueryParamByName("verification_code"), - n = t.getQueryParamByName("internal_redirect_uri"), - r = t.getQueryParamByName("response_id"), o = n && r, i = pn.pianoId.__protected__, - a = i.isGmSso, s = i.isGmSsoRedirectEnabled; - !(a() && s() || o) ? pn.pianoId.show({verificationCode: e}) : pn.pianoId.init() - } - } - } - o.pianoIdUrl = pn.pianoId.getIframeUrl(); - var p = pn.pianoId.getLang(); - p && (o.lang = p), pn.pianoId.onLangChange((function (e) { - r.send("langChanged", {lang: e}, o.iframeId) - }), o.iframeId) - } else pn.pianoIdLite.isConfigured() && (o.pianoIdUrl = pn.pianoId.getIframeUrl()); else { - g = []; - pn.gigya.registerCallback("onHide", (function () { - a.activateContainers(g), t.doneCall("myAccountLogin") - })), e.loginRequired = function () { - var n = e; - t.waitCall("refreshAccessTokenList", (function () { - t.waitCall("offerCreate", (function () { - t.startCall("myAccountLogin"), g = a.hideModalContainer(), pn.gigya.login((function (t) { - var r; - e.loginSuccess && (r = e.loginSuccess(t)), (void 0 === r || r) && (n.userToken = t.user_token, S(n)) - })) - })) - })) - } - } else { - var g = [], y = e; - pn.janrain.addEventHandler("onModalClose", (function () { - a.activateContainers(g), t.doneCall("myAccountLogin") - })), pn.janrain.registerCallback("userChanged", (function (n) { - var t; - n && n.user_token && (e.loginSuccess && (t = e.loginSuccess(n)), (void 0 === t || t) && (y.userToken = n.user_token, S(y))) - })), pn.janrain.addEventHandler("onCaptureSessionEnded", (function (n) { - var t; - e.loginSuccess && (t = e.loginSuccess(n)), (void 0 === t || t) && (y.userToken = null, S(y)) - })), e.loginRequired = function () { - return t.waitCall("refreshAccessTokenList", (function () { - t.waitCall("offerCreate", (function () { - t.startCall("myAccountLogin"), g = a.hideModalContainer(), pn.janrain.login() - })) - })), !1 - } - } - return new Promise((function (s) { - t.waitCall("refreshUserToken", (function () { - var c, u = {}; - if ("inline" === e.displayMode) { - if (!e.containerSelector) return void t.log("My account must have a valid containerSelector"); - if (!(c = n.queryEl(e.containerSelector))) return void t.log("My account must have a valid containerSelector"); - o.width = n.getWidth(c) - } else c = function () { - var e = document.createElement("div"); - n.addClass("tp-modal", e); - var t = document.createElement("div"); - return n.addClass("tp-close", t), n.append(e, t), n.append(document.body, e), e - }(); - var l = t.getPageViewContext(), p = l.pageTitle, g = l.pageViewId; - for (var y in o.pageViewId = g, o.tbc = t.getTbcCookie(), o.browserId = t.getBrowserId(), o.contentType = t.getPageViewContext().contentType, o.pageTitle = p, o.userProvider = i.getProvider().getName(), e.userToken ? o.userToken = e.userToken : o.userToken = i.getProvider().getToken(), f) "function" == typeof e[y] && (t.debug("Registering " + y + " callback for iframe " + o.iframeId), w(y, e[y])); - o.aid = pn.aid, pn.isSensitiveDataProtectionEnabled && (u = { - userToken: o.userToken, - iframeId: o.iframeId - }, delete o.userToken); - var _ = m() + "?" + n.param(o), k = document.createElement("iframe"), C = { - scrolling: "no", - allowtransparency: "true", - name: o.iframeId, - id: o.iframeId, - allow: "payment" - }; - pn.isSensitiveDataProtectionEnabled || (C.src = _), Object.keys(C).forEach((function (e) { - n.setAttr(e, C[e], k) - })); - var I = {overflow: "hidden", border: "0", height: "0"}; - if ("inline" === e.displayMode ? I.width = o.width + "px" : I.width = 0, Object.keys(I).forEach((function (e) { - k.style[e] = I[e] - })), d[o.iframeId] = { - iframeId: o.iframeId, - config: e, - element: k, - container: c, - containerWidth: n.getWidth(c), - containerHeight: n.getHeight(c) - }, r.init({ - postMessageUrl: m(), - receive: b, - iframe: d[o.iframeId] - }), n.on(window, "keyup", (function (e) { - })), "modal" === e.displayMode && n.on(window, "resize", (function () { - h(c) - })), "modal" === e.displayMode ? h(c) : n.empty(c), pn.isSensitiveDataProtectionEnabled) { - u.iframeSrc = _; - var S = a.getForm(u); - n.append(c, k), n.append(c, S), S.submit() - } else n.append(c, k); - if (n.on(window, "resize", (function () { - !function () { - for (var e in d) { - var t = d[e], o = !1, i = n.getWidth(t.container); - i !== t.containerWidth && (t.element.style.width = i + "", t.containerWidth = i, o = !0); - var a = n.getHeight(t.container); - a !== t.containerHeight && (t.element.style.height = a + "", t.containerHeight = a, o = !0), o && r.send("resize", { - width: i, - height: a - }, e) - } - }() - })), "inline" === e.displayMode && window.ResizeObserver) { - var E = new ResizeObserver((function (e) { - var t = n.getWidth(c); - t > 0 && v(d[o.iframeId], {width: t}) - })); - E.observe(c), d[o.iframeId].resizeObserver = E - } - pn.offer && pn.offer.registerCallback("complete", (function () { - r.send("refreshNow", {}, o.iframeId) - })), s(d[o.iframeId]) - })) - })) - } - - var S = function (e) { - t.waitCall("offerCreate", (function () { - t.waitCall("refreshAccessTokenList", (function () { - var n; - null === (n = I(e)) || void 0 === n || n.then((function (e) { - e || t.log("Could not initialize my account; check configuration") - })) - })) - })) - }; - return {name: "myaccount", show: S, registerCallback: w} - }(); - pn.container.register("myaccount", {useValue: ei}), pn.myaccount = pn.container.resolve("myaccount"); - var ni = function () { - var e = pn.container.resolve("jqUtils"), n = pn.container.resolve("util"), t = pn.container.resolve("api"), - r = pn.container.resolve("offer"), - o = pn.container.resolve("eventUtils").createEventManager(["onCheckoutSuccess", "onMeterExpired", "onMeterError", "onAccessGranted", "onMeterActive", "onMeterInactive", "meterSelector"]), - i = { - state: "ok", - views_left: null, - offer_id: "", - curtain_template_id: "", - reminder_template_id: "", - cookie_name: "", - cookie_value: "", - cookie_expires: "", - show_reminder: !1, - show_close_button: !1 - }, a = function (e, t) { - return o.fire(void 0, e, !0, t), !l[e] || "function" != typeof l[e] || (n.debug("_customCaller called with " + e), l[e](t)) - }, s = function (n) { - (n = n || {}).offerId || (n.offerId = i.offer_id), n.templateId || (n.templateId = i.curtain_template_id), n.displayMode || (n.displayMode = l.displayMode), n.containerSelector || (n.containerSelector = l.containerSelector), n.showCloseButton || (n.showCloseButton = i.show_close_button), "function" === e.type(l.close) && (n.close = l.close), "function" === e.type(l.loginRequired) && (n.loginRequired = l.loginRequired), "function" === e.type(l.customEvent) && (n.customEvent = l.customEvent), "function" === e.type(l.onCheckoutSuccess) && (n.complete = l.onCheckoutSuccess), r.createOfferIframe(n) - }, c = function (e) { - if (a("___onProcessMeter", e), !e.user_meter) return n.log("Could not load meter", e), void function (e) { - a("onMeterError", e) - }(e); - if ((i = e.user_meter) && i.cookie_name && i.cookie_value && i.cookie_expires) { - var t = {path: "/", expires: i.cookie_expires}; - i.cookie_domain && (t.domain = i.cookie_domain), n.__protected__.setCookie(i.cookie_name, i.cookie_value, t) - } - "ok" === i.state ? function (e) { - n.debug("_handleMeterActive", e), e.show_reminder && e.reminder_template_id && e.track_page_view && a("onShowOffer", e) && s({templateId: e.reminder_template_id}), a("onMeterActive", e) - }(i) : "ap" === i.state ? function (e) { - n.debug("_handleAccessGranted", e), a("onAccessGranted", e) - }(i) : "ia" === i.state ? function (e) { - n.debug("_handleMeterInactive", e), a("onMeterInactive", e) - }(i) : function (e) { - n.debug("_handleExpired", e), a("onMeterExpired", e), e.track_page_view && a("onShowOffer", e) && s() - }(i) - }, u = function (e, r, o) { - if (null !== l.paywallId && "" !== l.paywallId) { - var i = document.URL; - e && "function" == typeof e.getAttribute && e.getAttribute("href") ? i = e.getAttribute("href") : e && "function" == typeof e.attr && e.attr("href") && (i = e.attr("href")); - var a = l.trackPageview; - a && delete l.trackPageview; - var s = l.meterSelector(); - s || (s = ""); - var u = { - paywall_id: l.paywallId, - url: encodeURI(i), - referer: encodeURI(l.referer), - track_page_view: a, - meter_name: s, - pageview_id: pn.main.fetchPageViewId() - }; - r && (u.transaction_id = r), l.referer = ""; - var d = n.__protected__.getCookie("umc"); - if (d) u.umc = d; else { - var p = n.__protected__.getCookie("umc_" + l.paywallId); - p && (u.umc = p) - } - t.callApi("/anon/meter/load", u, (function (e) { - c(e), "function" == typeof o && o() - })) - } else n.debug("You must specify a paywallId in your configuration") - }, l = { - paywallId: null, - trackPageview: !0, - trackExternalReferrer: !0, - referer: document.referrer, - offerURL: "", - displayMode: "modal", - containerSelector: "", - onCheckoutSuccess: function () { - }, - onMeterExpired: function () { - }, - onMeterError: function () { - }, - onAccessGranted: function () { - }, - onMeterActive: function () { - }, - onMeterInactive: function () { - }, - meterSelector: function () { - } - }; - return { - name: "meter", init: function (e) { - if (void 0 !== e) if (void 0 !== e.paywallID || void 0 !== e.paywallId) { - for (var t in void 0 === e.paywallId && (e.paywallId = e.paywallID), e) l[t] = e[t]; - l.referer = document.referrer, n.debug("Initializing paywall: " + l.paywallId), u() - } else n.error("Must specify paywallId to load Piano paywall"); else n.error("Must specify paywall configuration to load Piano paywall") - }, isExpired: function () { - return i.state && "ex" === i.state - }, isExpiredNextClick: function () { - return void 0 !== i.views_left && 0 === i.views_left - }, checkMeter: function (e) { - l.trackPageview = !0, u(e) - }, showCurtain: s, last: function () { - return i - }, registerCallback: function (e, n) { - o.addEvent(e), o.registerCallback(e, n) - } - } - }(); - pn.container.register("meter", {useValue: ni}), pn.meter = pn.container.resolve("meter"); - var ti = function () { - var e = pn.container.resolve("util"), n = pn.container.resolve("sha1"), t = "", r = function () { - var e = ""; - return ["ShockwaveFlash.ShockwaveFlash.6", "ShockwaveFlash.ShockwaveFlash.7", "SWCt1.SWCt1.9", "SWCtl.SWCtl", "Adobe.SVGCtl", "WMPlayer.OCX", "AgControl.AgControl", "AcroPDF.PDF", "PDF.PdfCtrl", "RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)", "RealPlayer", "Skype.Detection", "3dmlw.IEPlugin", "GoogleTalk.Plugin", "GoogleTalk.Plugin.1"].map((function (n) { - try { - new window.ActiveXObject(n), e += n + "|" - } catch (e) { - } - })), e - }, o = function () { - if (t) return t; - var o = function () { - try { - var e; - return e = window.navigator.userLanguage || window.navigator.language, (new Date).getTimezoneOffset() + ":" + e - } catch (e) { - return "" - } - }(); - return o += function () { - if (window.ActiveXObject) return r(); - try { - var e = "", n = navigator.plugins.length; - if (n > 0) for (var t = 0; t < n; t++) e += navigator.plugins[t].name + "|"; - return e - } catch (e) { - return "" - } - }(), o += function () { - try { - return screen.height + "x" + screen.width + "+" + screen.colorDepth - } catch (e) { - return "" - } - }(), o += navigator.userAgent, o += function () { - var e = ""; - try { - e += document.getElementById ? 1 : 0, e += window.getComputedStyle ? 1 : 0, e += screen.globalStorage ? 1 : 0, e += window.localStorage ? 1 : 0, e += window.sessionStorage ? 1 : 0, e += document.getElementsByClassName ? 1 : 0, e += document.querySelector ? 1 : 0, e += document.all ? 1 : 0, e += window.attachEvent ? 1 : 0, e += window.createPopup ? 1 : 0, e += window.XMLHttpRequest ? 1 : 0, e += window.ActiveXObject ? 1 : 0, e += window.XDomainRequest ? 1 : 0, e += window.msPerformance ? 1 : 0, e += document.documentMode ? 1 : 0, e += navigator.cpuClass ? 1 : 0, e += navigator.browserLanguage ? 1 : 0, e += window.opera ? 1 : 0, e += window.chrome ? 1 : 0 - } catch (e) { - } - return e - }(), t = n.hash(o), e.debug("Current browser fingerprint is: " + t), t - }; - return o(), {name: "fingerprint", getFingerprint: o} - }(); - pn.container.register("fingerprint", {useValue: ti}), pn.fingerprint = pn.container.resolve("fingerprint"); - var ri = function () { - var e, n = pn.container.resolve("jqUtils"), t = 0, r = 0, o = 200, i = 0, a = []; - n.on(window, "scroll", (function () { - c() - })); - var s = function () { - var e = n.scrollTop(); - e > i && (i = e) - }, c = function () { - s(), l() - }, u = function (e) { - if (e.consumeEventFn()) { - if ("pixels" === e.measureType) return e.position <= i; - if ("percentage" === e.measureType) return i / (t - n.winSize().height) >= e.position / 100 - } - }, l = function () { - for (var e, n = [], t = [], r = 0; r < a.length; r++) e = a[r], u(e) ? n.push(e) : t.push(e); - a = t; - for (r = 0; r < n.length; r++) n[r].callback() - }; - return { - name: "scrollDepth", initialize: function (i) { - var a = document; - i && i > 0 && (o = i || o); - !function i() { - var s = a.body || {}, c = a.documentElement || {}, - u = Math.max(s.scrollHeight, c.scrollHeight, s.offsetHeight, c.offsetHeight, s.clientHeight, c.clientHeight); - u > t && (t = u); - var l = n.scrollTop() + n.winSize().height; - l > r && ((r = l) > t && (t = r)), e && clearTimeout(e), e = setTimeout(i, o) - }() - }, getMaxScrollDepth: function () { - return r - }, getMaxDocumentHeight: function () { - return t - }, addListener: function (e, n, t) { - "function" != typeof t && (t = function () { - return !0 - }), a.push({ - callback: e, - position: n.scrollDepth, - measureType: n.measureType, - repeat: "once", - consumeEventFn: t - }), s(), l() - }, removeListeners: function () { - a = [] - }, clearMaxScrolledPosition: function () { - i = 0, r = 0, t = 0 - } - } - }(); - pn.container.register("scrollDepth", {useValue: ri}), pn.scrollDepth = pn.container.resolve("scrollDepth"); - var oi = function () { - var e, n = pn.container.resolve("util"), t = pn.container.resolve("jqUtils"), r = !1, o = [], i = 200; - - function a() { - r || (r = !0, t.on(document, "mousemove", (function () { - return c() - })), t.on(document, "keypress", (function () { - return c() - })), t.on(window, "scroll", (function () { - return c() - }))) - } - - function s() { - o.length && function () { - for (var e, t, r, i = [], a = [], s = Date.now(), c = 0; c < o.length; c++) e = o[c], t = s - e.startTime, r = !1, t >= e.idleTime && (e.consumeEventFn() ? r = !0 : e.startTime = s), r ? i.push(e) : a.push(e); - i.length && n.debug("idle: run fire"), o = a; - for (c = 0; c < i.length; c++) (e = i[c]).callback() - }(), e && clearTimeout(e), o.length && (e = setTimeout((function () { - return s() - }), i)) - } - - function c() { - for (var n = Date.now(), t = 0; t < o.length; t++) o[t].startTime = n; - clearTimeout(e), o.length && (e = setTimeout((function () { - return s() - }), i)) - } - - return { - name: "idle", initialize: a, addListener: function (n, t, r) { - a(), "function" != typeof r && (r = function () { - return !0 - }), o.push({ - callback: n, - idleTime: 1e3 * t, - startTime: Date.now(), - consumeEventFn: r - }), e || (e = setTimeout((function () { - return s() - }), i)) - }, removeListeners: function () { - o = [] - } - } - }(); - pn.container.register("idle", {useValue: oi}), pn.idle = pn.container.resolve("idle"); - var ii = function () { - var e = pn.container.resolve("util"), n = pn.container.resolve("jqUtils"), t = []; - return { - name: "interaction", bind: function (r, o, i) { - var a = function (e) { - for (var n = { - click: "click", - doubleClick: "dblclick", - rightClick: "contextmenu", - mouseOut: "mouseout", - mouseIn: "mouseover" - }, t = [], r = 0; r < e.length; r++) { - var o = e[r]; - t.push(n[o]) - } - return t - }; - "function" != typeof i && (i = function () { - return !0 - }), e.__protected__.documentReady((function () { - for (var e = 0; e < o.length; e++) { - var s = o[e], c = a(s.elementActions).join(" "), u = s.elementSelector, l = s.repetitive; - c.trim().length && function (e, o, a) { - var s = function () { - !i() || (a || n.undelegate(document.body, e), r()) - }; - n.delegate(document.body, e, o, s), t.push({action: c, selector: u, func: s}) - }(u, c, l) - } - })) - }, unbindAll: function () { - t.forEach((function (e) { - n.undelegate(document.body, e.selector) - })), t = [] - } - } - }(); - pn.container.register("interaction", {useValue: ii}), pn.interaction = pn.container.resolve("interaction"); - var ai = function () { - var e = pn.container.resolve("jqUtils"), n = pn.container.resolve("util"), - t = pn.container.resolve("containerUtils"), r = function (e) { - return "inline" === e.displayMode - }, o = function (e) { - return "modal" === e.displayMode - }; - return { - name: "recWidgetService", __protected__: { - getInstance: function () { - var i, a = []; - - function s(n) { - var s = n || {}, c = s.widget || {}; - r(c.config) ? e.empty(c.container) : o(c.config) && (function (n) { - if (i) { - t.closeModal(i), e.empty(i.container); - var r = t.__private__.mobileModalFix; - r.isIphoneCaretFixed && r.modalClosed(), i = null - } - }(), e.remove(c.container)), !s.skipOnclose && e.isFunction(c.onclose) && c.onclose(), a = a.filter((function (e) { - return e.uuid !== c.uuid - })) - } - - function c(e) { - return a.filter((function (n) { - return e === n.widgetId - }))[0] - } - - return { - showRecommendation: function (u) { - var l = u.widgetConfig || {}, d = u.createPlaceholderFn, p = l.widgetId; - if (!p) throw new Error("widgetId should be specified"); - if (c(p)) n.log("widget with id " + l.widgetId + " already initialize"); else if (o(l) && i) n.log("modal widget already shown"); else { - var f = function (t) { - var r = e.queryEl(t.containerSelector), o = "widget-id-" + n.randomString(), i = { - singleContainer: r || void 0, - displayMode: t.displayMode || "modal", - showCloseButton: t.showCloseButton, - iframeParams: { - iframeId: o, - containerSelector: t.containerSelector, - width: t.width, - height: t.height - } - }; - return { - uuid: o, - widgetId: t.widgetId, - placeholder: t.placeholder, - trackingId: t.trackingId, - config: i - } - }(l), m = f.config, v = d(); - if (f.container = function (e, n) { - var i; - return r(e) ? i = t.initInlineContainer(e).container : o(e) && (i = t.getModalContainer(e, (function () { - n instanceof Function && n() - }))), i - }(m, (function () { - s({widget: f}) - })), f.container) return e.append(f.container, v), f.element = v, o(m) && (i = f), function (n, t) { - void 0 === t && (t = {}), Object.keys(t).forEach((function (r) { - e.isFunction(t[r]) && (n[r] = t[r](n)) - })) - }(f, u.widgetCallbacks), a.push(f), f; - n.log('widget has invalid selector "'.concat(m.iframeParams.containerSelector, '"')) - } - }, fireWidgetCallback: function (n, t, r) { - a.forEach((function (o) { - if (o.widgetId === t.toString()) { - var i = o["on" + n]; - e.isFunction(i) && i(r) - } - })) - }, findWidget: c, clearWidgets: function () { - a = [], i = null - }, closeWidget: s, fixWidgetModalWidth: function (n, r) { - if (!n || o(n.config)) { - var i = n.container, - a = r ? e.queryEl("iframe", i) : e.queryEl(".tp-widget-placeholder", i); - t.checkBackdropAndContainer(n, !0, !0), setTimeout((function () { - a && t.__protected__.setElementSizes(i, {width: e.getWidth(a)}) - }), 100) - } - } - } - }, insertWidgetLib: function (n) { - var t = document.getElementsByTagName("script")[0], r = document.createElement("script"); - n.id && r.setAttribute("id", n.id), e.isFunction(n.onerror) && (r.onerror = n.onerror), e.isFunction(n.onload) && (r.onload = n.onload), n.defer && (r.defer = !0), r.type = "text/javascript", r.src = n.src, t && t.parentNode && t.parentNode.insertBefore(r, t) - } - } - } - }(); - pn.container.register("recWidgetService", {useValue: ai}), pn.recWidgetService = pn.container.resolve("recWidgetService"); - var si = function () { - pn.container.resolve("predefinedOptions"); - return {testPianoOption: ""} - }(); - pn.container.register("piano", {useValue: si}); - var ci, ui = pn.container.resolve("piano"); - for (ci in ui) pn[ci] = ui[ci]; - pn.container.register("pianoEsp", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t = e.resolve("util"), r = e.resolve("user"), o = (e.resolve("api"), e.resolve("jqUtils")), - i = e.resolve("consent"), a = e.resolve("analytics"), s = e.resolve("recWidgetService"), c = "__pnml", - u = {granted: "ALLOWED", default: "UNKNOWN", denied: "FORBIDDEN"}, l = s.__protected__.getInstance(); - - function d() { - return new Promise((function (e, n) { - window.PianoESPConfig = p(p({}, window.PianoESPConfig || {}), { - onload: e, - widget_init_on_event: {rec: !0, "opt-in": !1}, - onclick: function (e) { - l.fireWidgetCallback("click", e.widgetId, e) - }, - onwidgetinit: function (e) { - l.fireWidgetCallback("init", e.widgetId, e) - }, - onrecsloaded: function (e) { - l.fireWidgetCallback("recsloaded", e.widgetId, e) - } - }), t.debug("pianoESP: loading PianoESP with config:", window.PianoESPConfig), s.__protected__.insertWidgetLib({ - id: "pnesplucidsdksel", - src: m() + "/public/sdk/v04/sdk.js?v=" + (localStorage && localStorage.lucidsdkver || "xxx"), - onerror: n - }) - })) - } - - function f() { - return n || (n = new Promise((function (e, n) { - var t, r = function () { - return e(null) - }; - if (null !== (t = window.PianoESPConfig) && void 0 !== t && t.id) d().then(r, n); else var o = 0, - i = setInterval((function () { - var e; - return null !== (e = window.PianoESPConfig) && void 0 !== e && e.id ? (d().then(r, n), void clearInterval(i)) : o >= 5e3 ? (clearInterval(i), void n()) : void (o += 500) - }), 500) - }))) - } - - setTimeout((function () { - pn.addHandler("logout", (function () { - g([]) - })); - var e = r.getProvider(); - e.registerCallback && e.registerCallback("logout", (function () { - g([]) - })) - }), 300); - var m = function () { - var e = "//api-esp.piano.io"; - return pn.espEndpoint ? e = pn.espEndpoint.replace(/^http[s]*:/, "") : pn.isSandbox() && (e = "//sandbox-api-esp.piano.io"), ("https:" === window.location.protocol ? "https:" : "http:") + e - }, v = function (e, n) { - f().then((function () { - window.PianoESP.getCurrentPushState().then((function (e) { - "prompt" === e && a.log.event({ - eventType: wo.LOG_MICRO_CONVERSION, - payload: {trackingId: n, eventGroupId: "showPrompt"} - }) - })), window.PianoESP.subscribeToPushSquads([e]).then((function (r) { - var o = r || {}; - !0 === o.result ? (t.setPushListsCookie(e), t.debug("pianoESP: Push notification was set:", o), a.log.event({ - eventType: wo.LOG_MICRO_CONVERSION, - payload: {trackingId: n, eventGroupId: "enrollPushCampaign"} - })) : !1 === o.result && ("closed" === o.reason ? a.log.event({ - eventType: wo.LOG_MICRO_CONVERSION, - payload: {trackingId: n, eventGroupId: "closePrompt"} - }) : a.log.event({ - eventType: wo.LOG_MICRO_CONVERSION, - payload: {trackingId: n, eventGroupId: "declineEnrollPushCampaign"} - })) - })).catch((function (e) { - t.log("pianoESP: Push notification error:", e) - })) - })) - }, g = function (e) { - try { - var n = JSON.stringify(e); - i.composer ? i.composer.localStorage.set(c, n) : localStorage.setItem(c, n) - } catch (e) { - t.debug("can't save mailing lists to storage", e) - } - }, h = function () { - var e = []; - try { - var n = localStorage.getItem(c); - if (!n) return []; - if (e = JSON.parse(n), !Array.isArray(e)) throw new Error("MAINLING_LIST should be array") - } catch (e) { - t.debug("can't load mailing lists from storage", e) - } - return e || [] - }; - var y = function (e) { - return function () { - var n = document.createElement("pnespwgtplaceholder"); - return o.setAttr("holdername", e, n), n - } - }; - - function w() { - return { - onrecsloaded: function (e) { - return function (n) { - 0 !== n.countOfRecs ? (l.fixWidgetModalWidth(e, !0), a.log.event({ - eventType: wo.LOG_ESP_MICRO_CONVERSION, - payload: { - trackingId: e.trackingId, - espWidgetId: e.widgetId, - eventGroupId: "init", - eventType: yo.EXTERNAL_EVENT - } - }), t.debug("creating recommendation widget: ", e.config)) : l.closeWidget({ - widget: e, - skipOnclose: !0 - }) - } - }, onclick: function (e) { - return function (n) { - var t = {href: n.url}; - a.log.event({ - eventType: wo.LOG_ESP_MICRO_CONVERSION, - payload: { - trackingId: e.trackingId, - espWidgetId: e.widgetId, - eventGroupId: "click", - eventType: yo.EXTERNAL_LINK, - customParams: t - } - }) - } - }, onclose: function (e) { - return function () { - a.log.event({ - eventType: wo.LOG_ESP_MICRO_CONVERSION, - payload: { - trackingId: e.trackingId, - espWidgetId: e.widgetId, - eventGroupId: "close", - eventType: yo.EXTERNAL_EVENT, - customParams: {event: "widgetClosed"} - } - }) - } - } - } - } - - return { - name: "pianoEsp", __protected__: { - init: f, setVisitorId: function (e) { - window.PianoESPConfig = Object.assign({}, window.PianoESPConfig, {visitor: e}) - }, showRecommendation: function (e) { - var n = w(); - return l.showRecommendation({ - widgetConfig: e, - widgetCallbacks: n, - createPlaceholderFn: y(e.placeholder) - }), f().then((function () { - window.PianoESP.initWidget(parseInt(e.widgetId)) - })) - }, showPushSignup: function (e) { - var n = e || {}; - n.templateId ? (a.log.event({ - eventType: wo.LOG_CUSTOM_FORM_IMPRESSION, - payload: {trackingId: n.trackingId, formName: "pushSignup", source: "show_form"} - }), pn.template.show(p(p({}, n), { - customEvent: function (e) { - switch (e.eventName) { - case"push-allow": - a.log.event({ - eventType: wo.LOG_MICRO_CONVERSION, - payload: { - trackingId: n.trackingId, - eventGroupId: "allowSoftEnrollPushCampaign" - } - }), v(n.pushListId, n.trackingId); - break; - case"push-dont-allow": - a.log.event({ - eventType: wo.LOG_MICRO_CONVERSION, - payload: { - trackingId: n.trackingId, - eventGroupId: "declineSoftEnrollPushCampaign" - } - }); - break; - case"push-close": - a.log.event({ - eventType: wo.LOG_MICRO_CONVERSION, - payload: {trackingId: n.trackingId, eventGroupId: "close"} - }) - } - } - }))) : v(n.pushListId, n.trackingId) - }, getNotificationStatus: function () { - if (window.Notification) return u[window.Notification.permission] || u.default - }, showNewsletterSignup: function (e) { - if (e && e.mailingListIds) { - var n = h().indexOf(e.mailingListIds) > -1; - e.notShowIfFilled && n ? t.log("Mailing list with ids " + e.mailingListIds + " already shown") : pn.template.show(e) - } else t.log("mailingListIds should be specified") - }, offerMessageReceiver: function (e) { - if ("newsletterSignupSubmission" === e.event) { - var n = h(); - -1 === n.indexOf(e.params.mailingListIds) && (n.push(e.params.mailingListIds), g(n)) - } - }, loadCompleteMailingLists: h - }, __private__: { - removeWidgetsAndSdk: function () { - l.clearWidgets(), n = null, delete window.PianoESP - }, getWidgetCallbacks: w, onInit: function (e) { - !n || "function" == typeof e && n.then(e) - } - } - } - }() - }), pn.pianoEsp = pn.container.resolve("pianoEsp"); - var li = function () { - var e, n = pn.container.resolve("postmessage"), t = pn.container.resolve("user"), - r = pn.container.resolve("util"), o = pn.container.resolve("eventUtils"), - i = pn.container.resolve("containerUtils"), a = "externalCheckoutComplete", s = "loginPrompt", - c = "deferredAccountCreation", u = "buy", l = o.createEventManager([a]), d = "__gom", p = !1, f = !1, - m = !1, v = []; - window.SWG = window.SWG || [], window.SWG.push((function (n) { - n.setOnPaymentResponse((function (t) { - f || (r.debug("swg: onPaymentResponse is triggered"), f = !0, t.then((function (t) { - r.debug("swg: onPaymentResponse", t), e && C(t, t.purchaseData, t.userData, n, e, u) - })).catch((function (e) { - r.log("swg: onPaymentResponse failed", e) - }))) - })) - })), n.subscribe("swgCheckoutStart", (function (n) { - p || r.log("swg: incorrect SwG configuration. Please make sure that Experience user segment is configured properly. Details at https://docs.piano.io/subscribe-with-google/#SwGscript"); - var t = n.params.sku; - e = n.params.termId, window.SWG.push((function (e) { - e.subscribe(t) - })) - })); - var g = function (e) { - if (l.hasCallback(a)) { - var n = {type: "swg", flow: e}; - l.fireCallbacks(a, n, void 0, !0) - } - }, h = function (e) { - for (var n = !1, t = v.reduce((function (e, n) { - return e.concat(n.products) - }), []), r = 0; r < e.length; r++) if (-1 === t.indexOf(e[r])) { - n = !0; - break - } - return n - }, y = function (e) { - if (p && !m) { - var n = e || t.getProvider().getToken(); - !n || (m = !0, function (e) { - var n = "/swg/sync"; - return "piano_id_lite" === t.getProvider().getName() && (n += "/external"), new Promise((function (t, r) { - pn.api.callApi(n, {aid: pn.aid, access_token: e}, (function (e) { - var n; - 0 !== e.code && r(), t(null !== (n = e.SwgResponse) && void 0 !== n ? n : {products: []}) - })) - })) - }(n).then((function (e) { - return e.products && h(e.products) - })).then((function (e) { - e && function (e) { - window.SWG.push((function (n) { - n.saveSubscription((function () { - return {token: e} - })).then((function (e) { - !e && r.log("swg: save subscription process was stopped") - })) - })) - }(n), m = !1 - })).catch((function (e) { - r.log("swg: save subscription flow failed with error - ", e), m = !1 - }))) - } - }, w = function e() { - y(), n.unsubscribe("purge", e) - }, _ = function () { - n.subscribe("loginSuccess", (function (e) { - if (i.hasModalIframe()) n.subscribe("purge", w); else { - var t = e.params.token || e.params.user_token; - y(t) - } - })), n.subscribe("purge", (function (e) { - e.params && e.params.completePayment && y() - })) - }, b = function (e) { - return new Promise((function (n, t) { - pn.api.callApi("/swg/check", {entitlement: JSON.stringify(e)}, (function (e) { - 0 !== e.code && (r.log("swg: check subscription response - " + e.message), t()), n(e.CheckSubscriptionResponse) - })) - })) - }, k = function (e) { - return new Promise((function (n, t) { - pn.api.callApi("/swg/check/external", {entitlements: JSON.stringify(e)}, (function (e) { - 0 !== e.code && (r.log("swg: check external entitlement response - " + e.message), t()); - var o = e.data; - o || (r.log("swg: check external entitlement empty response"), t()), n(o) - })) - })) - }, C = function (e, t, o, i, a, s) { - pn.api.callApi("/swg/subscribe", { - term_id: a, - purchase_data: JSON.stringify(t), - user_data: JSON.stringify(o) - }, (function (t) { - if (t) { - if (0 !== t.code) return function (e) { - e.reset().then((function () { - return e.getEntitlements() - })).then((function (e) { - r.debug("swg: reload entitlements - ", e.entitlements) - })).catch((function (e) { - r.debug("swg: entitlements reload failed - ", e) - })) - }(i), void r.log("swg: subscribe response - " + t.message); - t.data && I(t.data) - } else r.log("swg: empty response"); - n.broadcast("swgCheckoutComplete"), e.complete().then((function () { - g(s) - })).catch((function (e) { - r.log("swg: complete failed:", e) - })) - })) - }, I = function (e) { - e && t.getProvider().loginByToken && t.getProvider().loginByToken(e) - }, S = !1, E = !1; - return { - name: "swg", __protected__: { - injectMarkup: function (e) { - var n; - if (!S && e) { - r.debug("swg: rendering swg markup with config:", e); - var t = '{\n "@context": "http://schema.org",\n "@type": "CreativeWork",\n "isAccessibleForFree": ' + e.isAccessibleForFree; - !1 === e.isAccessibleForFree && e.productId && (t = t + ',\n "isPartOf": {\n "@type": ["CreativeWork", "Product"],\n "name" : "' + e.resourceName + '",\n "productID": "' + e.productId + '"\n }'), t += "\n}"; - var o = document.createElement("script"); - o.type = "application/ld+json", o.innerHTML = t, null === (n = document.getElementsByTagName("script")[0].parentNode) || void 0 === n || n.appendChild(o), S = !0 - } - }, addLibrary: function () { - var e; - if (!E) { - r.debug("swg: adding swg.js library"); - var n = document.createElement("script"); - n.type = "text/javascript", n.setAttribute("subscriptions-control", "manual"), n.async = !0, n.src = "https://news.google.com/swg/js/v1/swg.js", null === (e = document.getElementsByTagName("script")[0].parentNode) || void 0 === e || e.appendChild(n), E = !0 - } - }, initSwgFlow: function () { - window.SWG.push((function (e) { - e.getEntitlements().then((function (n) { - if (p = !0, r.debug("swg: getEntitlements", n), n.enablesThis()) { - var o = n.getEntitlementForSource("google"); - if (v = n.entitlements, !o) return void (v && k(v).then((function () { - r.debug("swg: checkExternalEntitlement"), n.ack() - }), (function () { - r.log("swg: checkExternalEntitlement failed") - }))); - b(o).then((function (o) { - if (f) r.debug("swg: onPaymentResponse is already triggered. Skipping entitlements flow."); else if (o) switch (o.type) { - case"USER_FOUND": - if (t.isUserValid()) return void r.error("swg: user found, but not valid"); - r.debug("swg: user found, initiate login prompt"); - var i = o.user_token; - if (function (e) { - return r.__protected__.getCookie(d) && r.__protected__.getCookie(d).includes(e) - }(o.type)) return; - e.showLoginPrompt().then((function () { - I(i), g(s) - })).catch((function (e) { - (function (e) { - r.__protected__.setCookieConsent("vx", d, e, { - expires: 30, - path: "/" - }) - })(o.type), r.log("swg: showLoginPrompt failed", e) - })); - break; - case"TERM_FOUND": - r.debug("swg: term found, initiate deferred account creation"); - var a = o.term_id; - e.completeDeferredAccountCreation({ - entitlements: n, - consent: !0 - }).then((function (n) { - r.debug("swg: completeDeferredAccountCreation", n), C(n, n.purchaseData, n.userData, e, a, c) - })).catch((function (e) { - r.log("swg: completeDeferredAccountCreation failed", e) - })); - break; - default: - r.debug("swg: check subscription response type " + o.type + ". Nothing to do") - } - }), (function () { - r.log("swg: checkSubscription failed") - })), n.ack() - } - })).catch((function (e) { - r.log("swg: get entitlements failed", e) - })) - })), _() - } - }, registerCallback: function (e, n) { - l.addEvent(e), l.registerCallback(e, n) - } - } - }(); - pn.container.register("swg", {useValue: li}), pn.swg = pn.container.resolve("swg"); - var di = function () { - var e = pn.container.resolve("util"), n = pn.container.resolve("analytics"), t = pn.container.resolve("offer"), - r = pn.container.resolve("user"), o = pn.container.resolve("api"), i = !1, a = "", s = {}, c = {}; - - function u(n) { - return new Promise((function (t) { - var i = { - aid: pn.aid, - rid: "", - account_linking_token: e.getQueryParamByName("account_linking_token"), - user_token: r.getProvider().getToken(), - user_provider: r.getProvider().getName() - }; - n && (i.rid = n), o.callApi("/fbia/subscriptionPayload/generate", i, (function (e) { - e && e.data && (a = e.data), t(null) - })) - })) - } - - var l = function () { - u().then((function () { - a && p() - })) - }, d = function (n) { - if (n) { - var t = new Promise((function (e) { - setTimeout((function () { - e(null) - }), 1e3 * pn.redirectToFbTimeout) - })), r = u(n); - e.__protected__.waitAllPromises([t, r]).then((function () { - p() - })) - } else e.error("fbsubscriptions: 'rid' could not be empty on generating subscription payload") - }, p = function () { - var n = e.getQueryParamByName("account_linking_token"), - t = e.getQueryParamByName("redirect_uri") + "?account_linking_token=" + encodeURIComponent(n); - a && (t += "&subscription_payload=" + encodeURIComponent(a)), window.location.href = t - }, f = function (e, t) { - s[e] || (s[e] = !0, n.fbpixel.event({eventType: bo.TRACK_EVENT, payload: {eventName: e, eventParams: t}})) - }, m = function (e, t) { - c[e] || (c[e] = !0, n.fbpixel.event({ - eventType: bo.TRACK_CUSTOM_EVENT, - payload: {eventName: e, eventParams: t} - })) - }, v = function () { - return i - }; - return { - name: "fbsubscriptions", checkUserAccessAndRedirectToFb: function () { - u().then((function () { - p() - })) - }, isInitialized: v, __private__: {isInitialized: v}, __protected__: { - init: function () { - if (!i) { - n.fbpixel.initialize(), t.registerCallback("loaded", (function () { - var n = e.getQueryParamByName("surface"); - ("meter_limit_reached" === n || "locked_article" === n) && !pn.inappBrowserReturn && m("ViewPaywall", {surface: "IA"}) - })); - pn.addHandler("loginSuccess", (function (e) { - u().then((function () { - e.registration ? m("CreateAccount") : m("LogIntoAccount", {is_subscriber: !!a}), a && setTimeout((function () { - p() - }), 200) - })) - })), pn.addHandler("experienceExecute", (function () { - r.isUserValid() && l() - })), t.registerCallback("alreadyPurchased", (function (e) { - d(e.rid) - })), t.registerCallback("startCheckout", (function (e) { - f("InitiateCheckout", {offer_code: e.offerId, campaign_code: e.termId}) - })), t.registerCallback("complete", (function (e) { - e.hasOwnProperty("chargeCurrency") && e.hasOwnProperty("chargeAmount") && f("Purchase", { - currency: e.chargeCurrency, - value: e.chargeAmount, - offer_code: e.offerId, - campaign_code: e.termId - }), d(e.rid) - })), t.registerCallback("close", (function () { - p() - })), i = !0 - } - } - } - } - }(); - pn.container.register("fbsubscriptions", {useValue: di}), pn.fbsubscriptions = pn.container.resolve("fbsubscriptions"); - pn.container.register("cxense", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("jqUtils"), t = e.resolve("util"), r = e.resolve("analytics"), - o = e.resolve("recWidgetService").__protected__.getInstance(), i = [], a = function () { - return void 0 !== pn.cxCdnUrl && "" !== pn.cxCdnUrl ? pn.cxCdnUrl : "https://cdn.cxense.com" - }, s = function () { - return void 0 !== pn.cxenseSiteId && "" !== pn.cxenseSiteId - }, c = function (e) { - return void 0 !== window.cX && void 0 !== window.cX.library && (e || void 0 !== window.cX.CCE && void 0 !== window.cX.CCE.library) - }, u = function (e) { - return void 0 !== e.cxenseCustomerPrefix && "" !== e.cxenseCustomerPrefix - }, l = function (e, n) { - var r, o, i, a = "anon", s = function () { - for (var e = [], r = 0; r < arguments.length; r++) e[r] = arguments[r]; - n && t.debug.apply(t, e) - }; - e.uid && "anon" !== e.uid && "" !== e.uid && (a = !(null === (i = null === (o = e.eventExecutionContext) || void 0 === o ? void 0 : o.accessList) || void 0 === i || !i.length) ? "hasActiveAccess" : "registered", s("c1x: adding externalId", { - uid: e.uid, - prefix: e.cxenseCustomerPrefix - })); - if (s("c1x: adding CustomParameters userState", {userState: a}), s("c1x: sending pageview event"), "anon" !== a ? t.__protected__.setVxUsersToDataLayer(((r = {})[e.uid] = { - prefix: e.cxenseCustomerPrefix || "", - type: "VX" - }, r)) : t.__protected__.setVxUsersToDataLayer(null), Nr.set("userStatus", a), n) { - Nr.set("siteId", pn.cxenseSiteId); - var c = window.cX = window.cX || {}; - c.callQueue = c.callQueue || [], c.callQueue.push(["sendPageViewEvent", {location: pn.customPageUrl || void 0}]) - } - }, d = function (e) { - var n = null, t = []; - - function r() { - n && clearTimeout(n), n = null, e(t), t = [] - } - - return function (e) { - n || (n = setTimeout(r, 10)), t.push(e) - } - }((function (e) { - if (s()) { - for (var n = [], a = function () { - var t = e[c] || {}; - o.showRecommendation({ - widgetConfig: t, - createPlaceholderFn: p(t.widgetId, t.displayMode) - }) && n.push({ - widgetParams: { - widgetId: t.widgetId, - targetElementId: "cxense-" + t.widgetId, - experienceId: t.experienceId, - trackingId: t.trackingId - }, widgetCallback: function (e) { - var n = e && e.response; - if (n && !e.response.error) { - "modal" === t.displayMode && o.fixWidgetModalWidth(o.findWidget(t.widgetId)); - for (var a = 0; a < n.items.length; a++) { - var s = n.items[a].id; - -1 === i.indexOf(s) && i.push(s) - } - r.log.event({ - eventType: wo.LOG_AUTO_MICRO_CONVERSION, - payload: { - trackingId: t.trackingId, - eventGroupId: "init", - eventType: yo.EXTERNAL_EVENT, - customParams: {source: "CX"} - } - }) - } - } - }) - }, c = 0; c < e.length; c++) a(); - f((function () { - (function () { - var e = pn.cxenseSiteId; - t.debug("c1x: setting siteId: ", e), window.cX.setSiteId(e) - })(), window.cX.CCE.runMulti(n, ["id"], i) - })) - } else t.debug("c1x: can not show recommendation because siteId is not configured using `setCxenseSiteId`") - })), p = function (e, t) { - return function () { - var r = document.createElement("div"); - n.addClass("tp-cxense-placeholder-".concat(t), r), n.addClass("tp-widget-placeholder", r); - var o = document.createElement("div"); - return o.id = "cxense-".concat(e), r.appendChild(o), r - } - }, f = function (e) { - window.cX = window.cX || {}, window.cX.CCE = window.cX.CCE || {}, window.cX.CCE.callQueue = window.cX.CCE.callQueue || [], window.cX.CCE.callQueue.push(["invoke", e]) - }, m = function (e) { - return c(e) - }; - return { - name: "cxense", __protected__: { - showRecommendation: d, clearWidgets: function () { - o.clearWidgets() - }, sendPageViewEvent: function (e) { - var n = !0; - !s() && !u(e) && (n = !1), !s() && u(e) && (t.debug("cxense: can not send pageview because siteId is not configured using `setCxenseSiteId`"), n = !1), s() && !u(e) && (t.debug("cxense: can not send pageview because customer prefix is not configured in app settings"), n = !1), l(e, n) - }, isActivated: s, isCustomerPrefixConfigured: u, isConfiguredPollingAsync: function (e, n, t) { - n = n || 0, t = t || 0; - var r = 0; - return new Promise((function (o, i) { - m(e) ? o(!0) : setTimeout((function a() { - m(e) ? o(!0) : r >= t ? i(e ? "c1x: cX object is not found after " + t + " retries with " + n + "ms interval" : "c1x: cX and cX.CCE objects are not found after " + t + " retries with " + n + "ms interval") : (r++, setTimeout(a, n)) - }), n) - })) - }, invokeCxenseFn: f, getC1XIntegrationVersion: function () { - return void 0 !== pn.c1XIntegrationVersion && "" !== pn.cxenseSiteId ? pn.c1XIntegrationVersion : "N/A" - }, loadCxLibIfNeeded: function () { - var e = "cxLibLoading"; - t.waitCall(e, (function () { - var n; - if (!s() || !c(!0)) { - t.startCall(e); - var r, o = document.getElementsByTagName("script")[0], - i = document.createElement("script"); - i.onerror = function (n) { - r && clearTimeout(r), t.doneCall(e), t.debug("c1x: error during load of cx.js. ", n) - }, i.onload = function () { - r = setTimeout((function () { - t.doneCall(e) - }), 500), t.debug("c1x: cx.js has been successfully loaded") - }, i.async = !0, i.type = "text/javascript", pn.c1XLoadCce ? i.src = a() + "/cx.cce.js" : i.src = a() + "/cx.js", t.debug("c1x: start loading cx.js on the page..."), null === (n = o.parentNode) || void 0 === n || n.insertBefore(i, o) - } - })) - } - } - } - }() - }), pn.cxense = pn.container.resolve("cxense"); - var pi, fi, mi, vi, gi, hi = p({ - 1: "autoRenewalDisabled", - 2: "subscriptionCancellation", - 3: "dismissTemplate", - 4: "customEvent" - }, {5: "customFormSubmitted", 6: "customFormSubmitted", 7: "customFormClosed"}), yi = "finalConfirmation", wi = [1], - _i = function (e) { - var n = {}, t = function () { - var e = {}; - return { - add: function (n, t, r) { - e[n] || (e[n] = {}), e[n][t] || (e[n][t] = []), e[n][t].push(r) - }, get: function (n, t) { - var r; - return (null === (r = e[n]) || void 0 === r ? void 0 : r[t]) || null - }, clear: function () { - e = {} - } - } - }(), r = function (e) { - return hi[e] || e - }, o = function (e, n) { - return t.get(e, r(n)) - }; - return { - clear: function () { - Object.keys(n).forEach((function (e) { - n[e] = [] - })), t.clear() - }, on: function (o, i, a, s, c) { - void 0 === s && (s = function () { - return !0 - }), void 0 === c && (c = !1); - var u = r(o), l = {cb: a, check: s, skip: c}; - n[u] || (n[u] = [], e(u, (function () { - for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; - n[u].forEach((function (e) { - return e.res = null - })), n[u].forEach((function (n) { - var t, r = n.cb, o = n.check, i = n.skip; - o.apply(void 0, e) && (i ? n.skip = !1 : n.res = null !== (t = r.apply(void 0, e)) && void 0 !== t ? t : null) - })) - }))), i && t.add(i, u, l), n[u].push(l) - }, has: function (e, n) { - return !!o(e, n) - }, get: o, skipOne: function (e, n) { - var o = r(n), i = t.get(e, o); - return null == i || i.forEach((function (e) { - e.skip = !0 - })), !!i - } - } - }, bi = function (e, n) { - return function (t) { - return null !== t ? n(t) : e() - } - }, ki = function (e) { - return (e || {}).continuation || null - }, Ci = function (e) { - return (e || {}).trackingId || null - }, Ii = function (e) { - return (e || {}).experienceActionId || null - }; - !function (e) { - e.EQUALS = "equals", e.NOT_EQUALS = "notEquals", e.GREATER = "greater", e.LESS = "less", e.MATCHES = "matches", e.CONTAINS = "contains", e.NOT_CONTAINS = "notContains", e.OCCURS_BEFORE = "occursBefore", e.OCCURS_AFTER = "occursAfter", e.OCCURS_ON = "occursOn", e.OCCURS_WITHIN = "occursWithin", e.NOT_OCCURS_WITHIN = "notOccurWithin", e.ANY_OF = "anyOf", e.EMPTY = "empty", e.NOT_EMPTY = "notEmpty" - }(pi || (pi = {})), function (e) { - e.TEXT = "TEXT", e.ISO_DATE = "ISO_DATE", e.BOOLEAN = "BOOLEAN", e.NUMBER = "NUMBER", e.SINGLE_SELECT_LIST = "SINGLE_SELECT_LIST", e.MULTI_SELECT_LIST = "MULTI_SELECT_LIST" - }(fi || (fi = {})), function (e) { - e.VOID = "void", e.STRING_LIST = "stringList", e.NUMBER = "number", e.BOOLEAN = "boolean", e.DATE = "date", e.RELATIVE_DATE = "relativeDate", e.DATE_RANGE = "dateRange", e.RELATIVE_DATE_RANGE = "relativeDateRange" - }(mi || (mi = {})), function (e) { - e.DAYS = "days", e.WEEKS = "weeks", e.MONTHS = "months", e.YEARS = "years" - }(vi || (vi = {})), function (e) { - e.AGO = "ago", e.FROM_NOW = "fromNow" - }(gi || (gi = {})); - var Si, Ei = function (e) { - return e.getFullYear() - }, Ti = function (e) { - return e.getMonth() - }, Pi = function (e) { - return e.getDate() - }, xi = function (e, n) { - return e.setFullYear(n) - }, Ai = function (e) { - return Number(e) - }, Oi = function (e, n, t) { - var r = Ei(t), o = new Date(e); - xi(o, r); - var i = new Date(n); - return xi(i, r), t <= i && t >= o - }, Mi = function (e, n, t) { - if (e > n) return !1; - if (function (e, n) { - var t = e.getTime() - n.getTime(); - return Math.floor(t / 31536e6) - }(e, n) >= 1) return !0; - if (Ei(e) == Ei(n)) return Oi(e, n, t); - var r = function (e) { - return new Date(Ei(e), 0, 1) - }(n), o = function (e) { - return new Date(Ei(e), 11, 31) - }(e), i = Oi(e, o, t), a = Oi(r, n, t); - return i || a - }, Ni = function (e, n, t) { - if (!e) return null; - var r = new Date(n); - switch (e) { - case vi.DAYS: - r.setDate(Pi(r) + t); - break; - case vi.MONTHS: - r.setMonth(Ti(r) + t); - break; - case vi.YEARS: - r.setFullYear(Ei(r) + t); - break; - case vi.WEEKS: - r.setDate(Pi(r) + 7 * t) - } - return r - }, Ri = /^(\d{4})(?:-(\d{2}))?(?:-(\d{2}))?$/, Li = function (e, n) { - if (!e) return n ? new Date(n) : null; - var t; - if (Ri.test(e)) { - var r = e.match(Ri) || [], o = r[1], i = r[2], a = void 0 === i ? "1" : i, s = r[3], - c = void 0 === s ? "1" : s; - t = new Date(Ai(o), Ai(a) - 1, Ai(c)) - } else t = new Date(e); - return isNaN(t.getTime()) ? null : t - }, Ui = function (e, n) { - return "Not supported operator '".concat(e, "' for ").concat(n) - }, Di = function (e, n, t) { - return void 0 === t && (t = function () { - }), n.every((function (n) { - var r = function (e, n) { - try { - return n.filter((function (n) { - return n.fieldName === e.fieldName - })) - } catch (e) { - return [] - } - }(n, e); - if (!r.length) return t("Values of custom fields ".concat(n.fieldName, " is not found")), !1; - var o = r.some((function (e) { - return function (e, n, t) { - if (!(n.dataType in fi)) return !1; - var r = n.dataType, o = ji[r]; - if (!o) return t("dataType: ".concat(r, " is not supported")), !1; - var i = ""; - try { - i = JSON.parse(n.value || "") - } catch (e) { - i = n.value || null - } - try { - return o(e, i, t) - } catch (e) { - return !1 - } - }(n, e, t) - })); - if (!o) { - var i = n.fieldName, a = r.map((function (e) { - return e.value - })).join(", "), s = '"'.concat(n.operator, '": ').concat(JSON.stringify(n.ruleValue)); - return t('field "'.concat(i, '":[').concat(a, "] does not match a rule ").concat(s)), !1 - } - return !0 - })) - }, ji = ((Si = {})[fi.TEXT] = function (e, n, t) { - var r, o, i = e.operator, a = Bi(n, i); - if (!a.proceed) return a.result; - var s = String(n).trim().toLowerCase(); - Vi(e, [mi.STRING_LIST], t); - var c = null !== (o = null === (r = e.ruleValue.value) || void 0 === r ? void 0 : r.map((function (e) { - return e.trim().toLowerCase() - }))) && void 0 !== o ? o : []; - switch (i) { - case pi.MATCHES: - return c.some((function (e) { - return s === e - })); - case pi.CONTAINS: - return c.some((function (e) { - return s.includes(e) - })); - case pi.NOT_CONTAINS: - return c.every((function (e) { - return !s.includes(e) - })); - default: - return t(Ui(i, fi.TEXT)), !1 - } - }, Si[fi.NUMBER] = function (e, n, t) { - var r = e.operator, o = Bi(n, r); - if (!o.proceed) return o.result; - var i = parseInt(n, 10); - if (isNaN(i)) return t("".concat(n, " is not a number")), !1; - Vi(e, [mi.NUMBER], t); - var a = e.ruleValue.value; - switch (r) { - case pi.EQUALS: - return i === a; - case pi.NOT_EQUALS: - return i !== a; - case pi.GREATER: - return i > a; - case pi.LESS: - return i < a; - default: - return t(Ui(r, fi.TEXT)), !1 - } - }, Si[fi.ISO_DATE] = function (e, n, t) { - var r, o, i = e.operator, a = Bi(n, i); - if (!a.proceed) return a.result; - var s = Li(n, null); - if (!s) return t("".concat(n, " is not an ISO date")), !1; - var c = function () { - var e = new Date; - return new Date(Ei(e), Ti(e), Pi(e)) - }(), u = null, l = null, d = null, p = !1; - if ((i === pi.OCCURS_BEFORE || i === pi.OCCURS_AFTER) && (Vi(e, [mi.DATE], t), u = Li(null === (r = e.ruleValue) || void 0 === r ? void 0 : r.value, c)), i === pi.OCCURS_ON) { - Vi(e, [mi.DATE, mi.RELATIVE_DATE], t); - var f = e.ruleValue, m = e.ruleValue; - f.timeUnit || f.regardlessOfYears ? (p = null !== (o = f.regardlessOfYears) && void 0 !== o && o, u = Ni(f.timeUnit, c, f.timeType === gi.AGO ? -f.timeUnitNumber : +f.timeUnitNumber)) : u = Li(null == m ? void 0 : m.value, c) - } - if (i === pi.OCCURS_WITHIN || i === pi.NOT_OCCURS_WITHIN) { - Vi(e, [mi.DATE_RANGE, mi.RELATIVE_DATE_RANGE], t); - var v = e.ruleValue; - if (v.fromTimeType || v.toTimeUnit) p = v.regardlessOfYears, l = Ni(v.fromTimeUnit, c, v.fromTimeType === gi.AGO ? -v.fromTimeUnitNumber : +v.fromTimeUnitNumber), d = Ni(v.toTimeUnit, c, v.toTimeType === gi.AGO ? -v.toTimeUnitNumber : +v.toTimeUnitNumber); else { - var g = e.ruleValue; - l = Li(null == g ? void 0 : g.from, c), d = Li(null == g ? void 0 : g.to, c) - } - } - switch (i) { - case pi.OCCURS_BEFORE: - return s < u; - case pi.OCCURS_AFTER: - return s > u; - case pi.OCCURS_ON: - return p ? function (e, n) { - var t = Ei(e), r = new Date(e); - xi(r, t); - var o = new Date(n); - return xi(o, t), r.getTime() === o.getTime() - }(s, u) : s.getTime() === (null == u ? void 0 : u.getTime()); - case pi.OCCURS_WITHIN: - return p ? Mi(l, d, s) : !(s < l || s > d); - case pi.NOT_OCCURS_WITHIN: - return p ? !Mi(l, d, s) : s < l || s > d; - default: - return t(Ui(i, fi.ISO_DATE)), !1 - } - }, Si[fi.BOOLEAN] = function (e, n, t) { - var r = e.operator, o = Bi(n, r); - if (!o.proceed) return o.result; - Vi(e, [mi.BOOLEAN], t); - var i = e.ruleValue.value, a = Boolean(n); - return r === pi.EQUALS ? a === i : (t(Ui(r, fi.BOOLEAN)), !1) - }, Si[fi.SINGLE_SELECT_LIST] = function (e, n, t) { - var r = e.operator, o = n || []; - if (!Array.isArray(o)) return t("".concat(n, " is not an array of string")), !1; - var i = qi(o, r); - if (!i.proceed) return i.result; - Vi(e, [mi.STRING_LIST], t); - var a = e.ruleValue.value; - switch (r) { - case pi.EQUALS: - return 1 === (null == a ? void 0 : a.length) && 1 === o.length && o[0] === a[0]; - case pi.NOT_EQUALS: - return 0 !== o.length && (!a || 1 !== a.length || 1 !== o.length || o[0] !== a[0]); - case pi.ANY_OF: - return 0 !== o.length && !!a && a.some((function (e) { - return e === o[0] - })); - default: - return t(Ui(r, fi.SINGLE_SELECT_LIST)), !1 - } - }, Si[fi.MULTI_SELECT_LIST] = function (e, n, t) { - var r = e.operator, o = n || []; - if (!Array.isArray(o)) return t("".concat(n, " is not an array of string")), !1; - var i = qi(o, r); - if (!i.proceed) return i.result; - Vi(e, [mi.STRING_LIST], t); - var a = e.ruleValue.value; - switch (r) { - case pi.EQUALS: - return (null == o ? void 0 : o.length) > 0 && o.length === (null == a ? void 0 : a.length) && o.every((function (e) { - return a.includes(e) - })); - case pi.NOT_EQUALS: - return o.length > 0 && (o.length !== (null == a ? void 0 : a.length) || !o.every((function (e) { - return a.includes(e) - }))); - case pi.ANY_OF: - return !!a && o.some((function (e) { - return a.includes(e) - })); - default: - return t(Ui(r, fi.MULTI_SELECT_LIST)), !1 - } - }, Si); - - function Vi(e, n, t) { - var r; - n.some((function (n) { - var t; - return n === (null === (t = e.ruleValue) || void 0 === t ? void 0 : t.valueType) - })) || t("Incorrect value type '".concat(null === (r = e.ruleValue) || void 0 === r ? void 0 : r.valueType, "' for operator '").concat(e.operator, "'")) - } - - var Fi = function (e, n) { - var t = function (e, n) { - return {result: e, proceed: n} - }; - return n === pi.EMPTY ? t(e, !1) : n === pi.NOT_EMPTY ? t(!e, !1) : t(e, !0) - }; - - function Bi(e, n) { - var t = "string" == typeof e ? !e.trim() : null === e; - return Fi(t, n) - } - - function qi(e, n) { - var t = !e || 0 === e.length; - return Fi(t, n) - } - - var zi = _i(pn.myaccount.registerCallback), Hi = _i(pn.offer.registerCallback), - Wi = _i(pn.template.registerCallback), Gi = _i(pn.pianoId.registerCallback), - Ji = bi(pn.offer.close, pn.offer.closeInline), Qi = bi(pn.template.close, pn.template.closeInline), - Xi = function (e) { - return "receipt" === e - }, Yi = function (e, n, t) { - var r = e.eventType, o = e.parentId, i = e.autoClose, a = function (e) { - return t("ExpInt: eventType=".concat(r, ": ").concat(e)) - }, s = function (e) { - return Ii(e || {}) === o - }, c = function (e) { - var n = ki(e), t = Ci(e) || void 0; - n && (n(t), n.done = !0) - }, u = function (e) { - var t = ki(e); - n(t) - }, l = function (e) { - var n = e.offerType, t = e.currentState, r = ki(e), o = Ci(e) || void 0; - if (!r) return u(e); - if ("upgrade" === n && Xi(t)) return r.done = !0, r(new Error("Subscription was upgraded")); - if ("purchase" === n) { - if (Xi(t)) return r.done = !0, r(o); - if (function (e) { - return "alreadyHasAccess" === e - }(t)) return r.done = !0, r(new Error("Subscription already has access")) - } - u(e) - }, d = function (n, t) { - var r = t || {}, a = r.customEventName, u = void 0 === a ? null : a, l = r.containerSelector, - d = void 0 === l ? null : l, p = s(t) && (e.customEventNames || []).includes(u); - return !!p && (i && (Hi.skipOne(o, 3) || Hi.on(3, o, c, s, !0), Wi.skipOne(o, 3) || Wi.on(3, o, c, s, !0), n(d)), p) - }, p = function (e) { - var n = e.config, t = e.reason; - return s(n) && "customFormSubmitted" !== t - }; - switch (Number(r)) { - case 1: - case 2: - zi.on(r, o, (function (e) { - var t = ki(e), r = (e || {}).subscriptionId, o = void 0 === r ? null : r; - t && o && (t.subscriptionId = o), n(t) - })); - break; - case 3: - Hi.on(r, o, l, s), Wi.on(r, o, l, s); - break; - case 4: - Hi.on(r, o, u, d.bind(null, Ji)), Wi.on(r, o, u, d.bind(null, Qi)); - break; - case 5: - case 7: - Gi.on(r, o, (function (e) { - return u(e.config), !0 - }), p); - break; - case 6: - Gi.on(r, o, (function (t) { - var r = ki(t.config); - return !!function (e, n, t) { - var r, o = (t || {}).submittedFields, i = void 0 === o ? null : o, a = e.fieldRules, - s = i && Di(i, a.targetRules || [], n), - c = i && !(null === (r = a.ignoreRules) || void 0 === r || !r.length) && Di(i, a.ignoreRules || [], n); - return !(!i || !s || c) || (n("submitted fields are not equal provided rules"), !1) - }(e, a, t) && (n(r), !0) - }), p); - break; - default: - return void a(r + "is not supported") - } - }, $i = ["userSegmentTrue", "userSegmentFalse"], - Ki = new Set(b(["showForm", "showOffer", "showTemplate", "showRecommendations", "showZuoraOffer", "showNewscycleOffer"], $i, !0)), - Zi = new Set($i), ea = "continuation", na = function (e) { - return e[ea] || null - }, ta = function (e) { - var n = na(e); - return n && n.subscriptionId - }, ra = "executeTemplateInteraction", oa = "/xbuilder/experience/" + ra, ia = "templateInteractionEvent", - aa = "formInteractionEvent", sa = [ia, aa], ca = function () { - var e = {}; - return { - endpoint: oa, name: ra, add: function (n) { - var t = function (e) { - return hi[e] || null - }(n.eventType || -1); - (function (e) { - return sa.includes(e) - })(n.type) && t && (e[t] = !0) - }, get: function () { - return function (e) { - return Object.entries(e) - }(e).reduce((function (e, n) { - var t = n[0]; - return n[1] && e.push(t), e - }), []) - } - } - }, ua = function (e, n) { - return g(void 0, void 0, void 0, (function () { - var t; - return h(this, (function (r) { - switch (r.label) { - case 0: - if (!function (e) { - return !(!e || !wi.includes(e)) - }(e)) throw {code: 1}; - return t = ca(), [4, n(t)]; - case 1: - return r.sent(), function () { - var e = function (e) { - var n = ki(e), t = Ci(e) || void 0, r = e.confirm, o = void 0 === r ? null : r; - n && (n.apply(void 0, o ? [t] : [new Error("Final confirmation: confirm is false")]), n.done = !0) - }; - Hi.on(yi, null, e), Wi.on(yi, null, e) - }(), function () { - var e = function (e) { - var n = ki(e), t = Ii(e), r = Ci(e); - if (t && n) return { - id: t, run: function () { - if (!n.done) return n.done = !0, n(r) - } - } - }, n = function (n, t) { - var r = e(t); - r && !n.has(r.id, 3) && r.run() - }; - Hi.on(hi[3], null, n.bind(Hi)), Wi.on(hi[3], null, n.bind(Wi)), Gi.on(hi[7], null, (function (n) { - var t = n.config, r = n.reason, o = e(t); - if (o) { - if ("customFormSubmitted" === r) { - var i = Gi.get(o.id, 6); - return void ((!i || i.every((function (e) { - return !e.res - }))) && o.run()) - } - Gi.has(o.id, 7) || o.run() - } - })) - }(), [2, {registeredEvents: t.get()}] - } - })) - })) - }, la = {linkedNodes: {}, executedNodes: [], executedHandlers: {}}, da = function () { - return la.executedNodes - }, pa = function () { - la.executedNodes = [] - }, fa = function () { - zi.clear(), Hi.clear(), Wi.clear(), Gi.clear(), pa(), la.linkedNodes = {}, la.executedHandlers = {} - }; - pn.container.register("experience", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n, t, r, o = e.resolve("jqUtils"), i = e.resolve("util"), a = e.resolve("consent"), - s = e.resolve("api"), c = e.resolve("eventUtils"), u = e.resolve("scrollDepth"), l = e.resolve("ajax"), - d = e.resolve("viewportExit"), f = e.resolve("idle"), m = e.resolve("interaction"), - v = e.resolve("pianoEsp"), g = e.resolve("swg"), h = e.resolve("fbsubscriptions"), - y = e.resolve("user"), w = e.resolve("cxense"), _ = e.resolve("logging"), - b = e.resolve("composerControlPolicy"), k = e.resolve("analytics"), - C = e.resolve("gaCollectingService"), I = [], S = {}, E = "", T = !1, P = "reader_id", x = {}, A = !1, - O = {}, M = (n = { - applyCss: { - fn: function (e) { - e.eventParams.ruleList.forEach((function (e) { - var n, t = e.classes, r = e.elements; - t && (t = t.replace(/[,.]/g, " ").split(" ").filter((function (e) { - return "" !== e - })), "add" === e.type && (n = o.qa(r)) && n.length && n.forEach((function (e) { - t.forEach((function (n) { - o.addClass(n, e) - })) - })), "remove" === e.type && (n = o.qa(r)) && n.length && n.forEach((function (e) { - t.forEach((function (n) { - o.removeClass(n, e) - })) - }))); - i.debug("exp: css applied with rule:", e) - })) - }, isAction: !0, shouldFireCallback: !0 - }, - runJs: { - fn: function (e) { - if (e.eventParams && e.eventParams.snippet) { - var n = e.eventParams.snippet; - i.debug("exp: run js with snippet:", n); - var t = e.eventExecutionContext; - i.debug("exp: set publisher's context and custom:", t), ye("var context = " + JSON.stringify(t) + ";\nvar custom = " + JSON.stringify(pn.customVariables) + ";\n" + n) - } - }, isAction: !0, shouldFireCallback: !0 - }, - setCookie: { - fn: function (e) { - var n = e.eventParams; - if (n && void 0 !== n.cookieName && void 0 !== n.cookieValue) { - i.debug("exp: set cookie with parameters:", n); - var t = (n.isReadableCookie ? "_pc_" : "") + n.cookieName, - r = {domain: n.cookieDomain, path: n.cookiePath}; - if (!n.isSessionCookie) { - var o = new Date; - switch (n.expirationUnit) { - case"seconds": - o.setSeconds(o.getSeconds() + n.expirationValue); - break; - case"minutes": - o.setMinutes(o.getMinutes() + n.expirationValue); - break; - case"hours": - o.setHours(o.getHours() + n.expirationValue); - break; - case"days": - o.setDate(o.getDate() + n.expirationValue); - break; - case"months": - o.setMonth(o.getMonth() + n.expirationValue); - break; - case"years": - o.setFullYear(o.getFullYear() + n.expirationValue); - break; - default: - i.log("Wrong eventParams.expirationUnit : ", n.expirationUnit) - } - r.expires = o - } - i.__protected__.setCookieConsent("composer", t, n.cookieValue, r) - } - }, isAction: !0, shouldFireCallback: !0 - }, - nonSite: { - fn: function (e) { - i.debug("exp: non-site action:", e) - }, isAction: !0, shouldFireCallback: !0 - }, - showForm: { - fn: function (e) { - var n = e.eventParams; - if (n && n.formName) { - var t = { - formName: n.formName, - hideIfComplete: n.hideCompletedFields, - trackingId: e.eventExecutionContext.trackingId, - displayMode: n.displayMode, - containerSelector: n.containerSelector, - showCloseButton: n.showCloseButton, - templateId: n.templateId, - variantId: n.templateVariantId, - accessToken: y.getProvider().getToken(), - experienceActionId: e.eventModuleParams.moduleId, - continuation: na(e), - subscriptionId: ta(e) - }; - n.formWidth && n.formWidth.enabled && (t = o.deepExtend({}, {width: n.formWidth.width}, t)), i.debug("exp: show form with params:", n), pn.pianoId.showForm(t) - } - }, isAction: !0, shouldFireCallback: !0 - }, - showRecommendations: { - fn: function (e, n, t, r) { - return we(e, function (e) { - var n = { - ESP: v.__protected__.showRecommendation.bind(v), - CXENSE: w.__protected__.showRecommendation.bind(w) - }; - return n[e] || function () { - } - }(e.eventParams.type), _e(r)) - }, isAction: !0, shouldFireCallback: !0 - }, - showOffer: { - fn: function (e, n, t, r) { - return we(e, (function (e) { - return pn.offer.show(e) - }), _e(r)) - }, isAction: !0, shouldFireCallback: !1 - }, - showTemplate: {fn: be, isAction: !0, shouldFireCallback: !1}, - showZuoraOffer: {fn: be, isAction: !0, shouldFireCallback: !1}, - showNewscycleOffer: {fn: be, isAction: !0, shouldFireCallback: !1}, - showNewsletterSignup: { - fn: function (e, n, t, r) { - return we(e, (function (e) { - return v.__protected__.showNewsletterSignup(e) - }), _e(r)) - }, isAction: !0, shouldFireCallback: !1 - }, - showPushSignUp: { - fn: function (e, n, t, r) { - return we(e, (function (e) { - return v.__protected__.showPushSignup(e) - }), _e(r)) - }, isAction: !0, shouldFireCallback: !1 - }, - showLogin: { - fn: function (e) { - y.showLogin({trackingId: e.eventExecutionContext.trackingId}) - }, isAction: !0, shouldFireCallback: !0 - }, - continueExecution: { - fn: function (e, n, t, r) { - i.debug("exp: continue execution action:", e, "with requestParameters", n); - var o = n || {}; - o.experience_id = e.eventExecutionContext.experienceId, o.experience_version = e.eventExecutionContext.experienceVersion, o.context_data = e.eventParams.contextData, Q("auto", o, !0, r) - }, shouldFireCallback: !0 - }, - continueExecutionCompleted: {fn: Ee, shouldFireCallback: !0}, - meterActive: { - fn: Ee, shouldFireCallback: !0, ga: function (e) { - return { - eventCategory: "meterActive", - eventLabel: "Meter active", - experienceId: e.eventExecutionContext.experienceId, - meterName: e.eventExecutionContext.currentMeterName - } - } - }, - meterExpired: { - fn: Ee, shouldFireCallback: !0, ga: function (e) { - return { - eventCategory: "meterExpired", - eventLabel: "Meter expired", - experienceId: e.eventExecutionContext.experienceId, - meterName: e.eventExecutionContext.currentMeterName - } - } - }, - userSegmentTrue: {fn: he, shouldFireCallback: !0}, - userSegmentFalse: {fn: he, shouldFireCallback: !0}, - experienceExecutionFailed: {fn: Ee, shouldFireCallback: !0}, - log: { - fn: function (e, n, t, r) { - var o = _e(r); - re(e.eventModuleParams.moduleId, e, o) - }, shouldFireCallback: !1 - }, - experienceExecute: { - fn: function (e, n, t) { - e.eventParams.result = t - }, shouldFireCallback: !0, ga: function (e) { - return { - eventCategory: "experienceExecute", - eventLabel: "Experience execute", - experienceId: e.eventExecutionContext.experienceId - } - } - }, - setResponseVariable: { - fn: function (e) { - return e.eventParams - }, isAction: !0, shouldFireCallback: !0, ga: function (e) { - return p({ - eventCategory: "setResponseVariable", - eventLabel: "Set response variable", - experienceId: e.eventExecutionContext.experienceId, - setResponseVariableId: e.eventModuleParams.moduleId - }, e.eventParams.responseVariables) - } - }, - creditRedeemed: { - fn: function (e) { - i.debug("exp: credit redeemed action:", e) - }, isAction: !0, shouldFireCallback: !0 - } - }, t = {}, r = function (e, n) { - return function (t, r, o, a) { - var s = _e(a); - if (e.isAction) { - var c = function (e) { - var n = e.eventParams, t = e.eventModuleParams, r = e.eventExecutionContext; - return i.debug("exp: fire event 'beforeComposerAction' with eventParams:", n, ", moduleParams:", t, ", context:", r), q.fireCallbacksAndStopOnFirstFalse("beforeComposerAction", n, t, r) - }(t); - if (!c) return; - var u = ae(t), l = ie(t); - (u || l) && re(t.eventModuleParams.moduleId, t, s) - } - var d = t.eventModuleParams.moduleId, - p = null != a && a.interactionContext ? la.executedHandlers : O; - !p[d] && "N/A" !== d && (p[d] = { - experienceId: t.eventExecutionContext.experienceId, - moduleName: t.eventModuleParams.moduleName - }); - var f = (null == a ? void 0 : a.handlers) || {}, - m = "on".concat(n[0].toUpperCase()).concat(n.slice(1)); - "function" == typeof (null == f ? void 0 : f[m]) && f[m](t, r); - var v = Object.assign({}, t); - v.eventParams && (v.eventParams = Object.assign({}, t.eventParams)), e.fn(v, r, o, a), e.ga && ge(e.ga(v)), e.shouldFireCallback && function (e) { - return function (n) { - var t = n.eventParams.callback, r = n.eventParams, o = n.eventModuleParams, - a = n.eventExecutionContext; - i.debug("exp: fire event ", e, " with eventParams:", r, ", moduleParams:", o, ", context:", a), q.fire("experience", e, !0, r, o, a), t && e !== t && (i.debug("exp: execute event ", e, " with callback: ", t), ye(t)) - } - }(n)(v) - } - }, Object.keys(n).forEach((function (e) { - if ("function" != typeof n[e].fn) throw new Error("Unsupported config for " + e + " handler"); - t[e] = r(n[e], e) - })), t), N = { - showOffer: function (e) { - return ke(e, (function (e) { - return pn.offer.deferredShow(e) - })) - }, showTemplate: Ce, showZuoraOffer: Ce, showNewscycleOffer: Ce - }, R = i.profile((function (e, n) { - b.__private__.checkLS(), Q("manual", e, !1, {overrides: e, handlers: n}) - })), L = function (e, n) { - q.addEvent(e), q.registerCallback(e, n) - }, U = {}, D = "", j = "", V = "", F = [], B = { - HANDLER: "handler", - EVENT_CONDITION: "eventCondition", - INNER_EVENT_CONDITION: "innerEventCondition", - PRELOAD: "preload" - }, q = c.createEventManager([]), z = ["showOffer", "showZuoraOffer", "showNewscycleOffer", "showTemplate"]; - var H, W = function () { - return pn.getExperienceEndpoint(!1) + "/api/v3" - }, G = function () { - h.__protected__.init() - }, J = function e(n, t) { - void 0 === t && (t = !1); - var r = function (e) { - return void 0 === e && (e = !1), e ? da() : I - }(t); - r.length && (k.log.event({ - eventType: wo.LOG_BEACON_REQUEST, - payload: { - url: W() + "/composer/logExecutionStats", - params: { - aid: pn.aid, - items: JSON.stringify(r), - execution_stats_context: E, - ts: (new Date).getTime(), - source: n - } - } - }), function (e) { - void 0 === e && (e = !1), e ? pa() : I = [] - }(t)), window.clearTimeout(H), H = window.setTimeout((function () { - e("timer" + H, t) - }), 2e3) - }, Q = function (e, n, t, r) { - Boolean((window.pdl || {}).requireConsent && !pn.consent.get()) && i.debug("WARNING: The RequireConsent feature is enabled. The Piano services might be working unstable until user consent provided"), void 0 === pn.main.appHasApplePay() && q.fireCallbacks("experienceFlow", null, "experience", !0); - var a = !(null == r || !r.interactionContext), s = new Promise((function (e) { - setTimeout((function () { - e({}) - }), 3e4) - })); - return Promise.race([pn.main.externalResourcesDelay(), s]).then((function (s) { - o.isPlainObject(s) || (i.error("exp: error get external resources ", s), s = {}); - var c = {new_bid: Nr.get("browserId")}, u = a ? X : Y; - if (w.__protected__.isActivated()) { - i.debug("c1x: integration is activated"), w.__protected__.loadCxLibIfNeeded(); - var l = o.deepExtend({}, n, s, c, {c1x_integration_version: "v2"}); - return u(e, l, t, r) - } - return u(e, o.deepExtend({}, n, s, c), t, r) - })).catch((function (e) { - if (a) throw e - })) - }, X = function (e, n, t, r) { - return new Promise((function (o, i) { - return Y(e, n, t, r, o, i) - })) - }, Y = function (e, n, t, r, c, u) { - var d = null == r ? void 0 : r.interactionContext; - n = n || {}; - var p = o.deepExtend({}, {protocol_version: 1}, n); - $(p), K(p), Z(p), ne(p), i.hasQueryParamByName(P) && (p[P] = i.getQueryParamByName(P)), i.waitCall("refreshUserToken", (function () { - if (t) { - var n = d ? la.executedHandlers : O; - p.executed_nodes = JSON.stringify(n) - } else { - pn.main.trackPageUnloadIfNecessary.skipLog(), ee(p), s.getCallParams(p, y.getProvider()), i.removeAffiliateToken(); - var f = {url: window.location.href, tags: pn.tags, submitType: e, skipPageViewTrack: me(!!d)}; - pn.main.buildPageTrackParams(p, f) - } - a.__protected__.addConsentsToParams(p), i.debug("exp: Experience initialized with params:", p), i.waitCall("refreshAccessTokenList", (function () { - i.startCall((null == d ? void 0 : d.name) || "experienceExecute"); - var e, n = function (e) { - var n = e || null; - return n || (i.__protected__.cameFromFbSubscriptions() ? b.denyFbia || (n = "/xbuilder/experience/executeFbia", G()) : b.denyWeb || (n = "/xbuilder/experience/execute")), n && pn.getExperienceEndpoint(!1) + n - }(null == d ? void 0 : d.endpoint); - if (!n) return i.doneCall((null == d ? void 0 : d.name) || "experienceExecute"), t || Ie(!!d), void i.debug("execute: is denied"); - if (-1 !== navigator.appVersion.indexOf("MSIE 9")) e = { - dataType: "jsonp", - url: n + "?" + o.param(p) - }; else { - var a = "?" + o.param({aid: p.aid}); - e = { - type: "post", - url: n + a, - data: o.deepExtend({}, p, (null == r ? void 0 : r.overrides) || {}), - xhrFields: {withCredentials: !0} - } - } - e.success = function (e) { - i.doneCall((null == d ? void 0 : d.name) || "experienceExecute"); - var n = o.deepExtend({}, p); - t || (Ie(!!d), pn.main.registerTrackUnload.skipLog()), te(e.errors), ve(e.models, n, r), null == c || c({code: 0}) - }, e.error = function (e) { - b.__private__.setPolicyByRequest(e), i.doneCall((null == d ? void 0 : d.name) || "experienceExecute"), t || Ie(!!d); - var r = { - code: 503, - message: "Error: Received error when requesting API response from URL: " + n - }; - i.debug(r.message), null == u || u(r) - }, l.request(e) - })) - })) - }, $ = function (e) { - var n = i.__protected__.getCookie("xbc"); - n && (e.xbc = n); - var t = i.getTbcCookie(); - t && t.length > 0 && (e.tbc = t); - var r = i.__protected__.getCookie("_pcer"); - r && (e.edge_result = r), i.getCampaigns(e), e.custom_cookies = JSON.stringify(i.getCustomCookies()) - }, K = function (e) { - var n = i.getPushListsCookie(), t = v.__protected__.getNotificationStatus(); - n && n.length > 0 && (e.push_list_subscriptions = JSON.stringify(n)), t && (e.push_notification_settings = t) - }, Z = function (e) { - e.mailing_lists = JSON.stringify(v.__protected__.loadCompleteMailingLists()) - }, ee = function (e) { - return [{property: "debug", parameter: "debug", skipFalse: !0}, { - property: "trackPageView", - parameter: "increment_pageview_meter" - }].forEach((function (n) { - void 0 !== pn[n.property] && (!n.skipFalse || pn[n.property]) && (e[n.parameter] = pn[n.property]) - })), e - }, ne = function (e) { - var n = Nr.get("userSegments"); - n && (e.previous_user_segments = JSON.stringify(n)) - }, te = function (e) { - Array.isArray(e) && (e.length && i.debug("exp: composer execution has been failed with errors"), e.forEach((function (e) { - i.debug("exp: " + e.msg) - }))) - }, re = function (e, n, t) { - void 0 === t && (t = !1), function (e, n) { - void 0 === n && (n = !1), (n ? da() : I).push(e) - }({ - mId: e, - eId: n.eventExecutionContext.experienceId, - eV: n.eventExecutionContext.experienceVersion, - eeId: n.eventExecutionContext.executionId - }, t) - }; - - function oe(e, n, t, r, o) { - return { - type: B.HANDLER, eventType: n.eventType, children: [], run: function (i, a) { - var s = function (e, n) { - var t; - return n ? p(p({}, e), ((t = {})[ea] = n, t)) : e - }(n, i); - e.bind(this, s, t, r, o)(), function (e, n, t, r) { - var o = !Ki.has(e), i = Zi.has(e) && (r || 0) < 2; - n && (o || i) && !n.done && n(t) - }(n.eventType, i, n.eventExecutionContext.trackingId, a) - } - } - } - - var ie = function (e) { - var n, t = e.eventParams.delayBy || {}; - return t.value && ("time" === t.type ? n = { - type: "timer", - timer: t.value - } : "scroll" === t.type && (n = {type: "scrollDepth", scrollDepth: t.value, measureType: "pixels"})), n - }, ae = function (e) { - return e.eventConditions && Array.isArray(e.eventConditions) ? e.eventConditions.length : 0 - }, se = function (e, n) { - return function () { - var t, r = !1; - return { - type: B.PRELOAD, eventType: n.eventType, children: [], run: function () { - !1 === r && (t = e(n), r = !0) - }, getPreloadResult: function () { - return t - } - } - }() - }; - - function ce(e, n) { - var t = function () { - return function (e) { - x[e.type] || (ge(p({ - eventCategory: "beforeBrowserEvent", - eventLabel: "Before browser event" - }, e)), x[e.type] = !0) - }(e), q.fireCallbacksAndStopOnFirstFalse("beforeBrowserEvent", e) - }; - switch (e.type) { - case ia: - case aa: - Yi(e, (function (e) { - return t() && n(e) - }), (function (e) { - return i.debug(e) - })); - break; - case"viewportExit": - d.addListener(n, { - detectExitMode: e.detectExitMode, - detectBackButtonForMobile: e.detectBackButtonForMobile, - clientDevice: e.clientDevice - }, t); - break; - case"scrollDepth": - u.addListener(n, {scrollDepth: e.scrollDepth, measureType: e.measureType}, t); - break; - case"timer": - var r = setTimeout((function () { - t() && n() - }), 1e3 * e.timer); - F.push(r); - break; - case"interaction": - m.bind(n, e.interactions, t); - break; - case"idle": - f.addListener(n, e.idleTime, t) - } - } - - var ue = function (e) { - return e.type === B.HANDLER && -1 === ["continueExecution", "meterActive", "meterExpired"].indexOf(e.eventType) - }; - - function le(e, n, t) { - return r = !1, o = !!t, a = t ? la.linkedNodes : S, s = function (t) { - re(e.moduleId, n, o); - for (var s = a[e.moduleId].children, c = 0; c < s.length; c++) { - var u = s[c], l = a[u]; - if (!1 === r || ue(l)) try { - l.run(t, s.length) - } catch (e) { - i.error("exp: error execute chain event", l, e) - } - } - r = !0, T && J("chain", o) - }, null == t || t.add(e), { - type: B.EVENT_CONDITION, children: [], run: function () { - ce(e, s) - } - }; - var r, o, a, s - } - - function de(e, n, t) { - return r = !1, o = t ? la.linkedNodes : S, a = function () { - for (var e = o[n + B.INNER_EVENT_CONDITION].children, t = 0; t < e.length; t++) { - var a = e[t], s = o[a]; - if (!1 === r || ue(s)) try { - s.run() - } catch (e) { - i.error("exp: error execute chain event", s, e) - } - } - r = !0 - }, { - type: B.INNER_EVENT_CONDITION, children: [n], run: function () { - ce(e, a) - } - }; - var r, o, a - } - - var pe = function (e) { - e.swgMarkupData && (i.debug("exp: swg markup data :", e.swgMarkupData), function (e) { - g.__protected__.injectMarkup(e) - }(e.swgMarkupData), e.swgMarkupData.isAccessibleForFree || g.__protected__.addLibrary()), e.swgEnabled && g.__protected__.initSwgFlow() - }, fe = function (e) { - if (e) { - for (var n = {}, t = 0; t < e.events.length; t++) { - var r = e.events[t]; - try { - "experienceExecute" === r.eventType && ((n = o.deepExtend({}, r.eventExecutionContext)).result = o.deepExtend({}, e)) - } catch (e) { - i.error("exp: error on execute event: ", r, e) - } - } - return n - } - i.debug("exp: no composer execution result") - }, me = function (e) { - return e && (A || 0 !== R.invokeCount) - }, ve = function (e, n, t) { - if (e) { - var r = null == t ? void 0 : t.interactionContext, a = !!r, s = r ? la.linkedNodes : S; - i.setTbcCookieFromResponse(e), i.setTacCookieFromResponse(e), i.setAppTimezoneOffsetFromResponse(e), i.setCurrentDomainFromResponse(e), me(a) || function (e) { - w.__protected__.sendPageViewEvent({ - browserId: e.bid, - uid: e.uid, - cxenseCustomerPrefix: e.cxenseCustomerPrefix, - pageViewId: pn.main.fetchPageViewId(), - eventExecutionContext: fe(e.result) - }) - }(e), function (e) { - v.__protected__.setVisitorId(e.bid) - }(e), function (e) { - D = e.bid - }(e), function (e) { - e.iss && (j = e.iss) - }(e), function (e) { - V = e.itemId - }(e), function (e) { - var n; - null !== (n = e.result) && void 0 !== n && n.onContentRestrictedFallback && (i.debug("exp: fire event: contentRestrictedFallback"), q.fireCallbacks("contentRestrictedFallback", void 0, "experience", !0)) - }(e), i.setXbcCookieFromResponse(e); - var c = e.result, u = {}; - if (!c) return void i.debug("exp: no composer execution result"); - pe(c), i.debug("exp: processed experiences :", c.experiences), E = e.executionStatsContext, c.debugMessages.forEach((function (e) { - i.debug("exp: execute :", e) - })); - for (var l, d = function (e, n, r) { - for (var o = e.eventConditions, a = 0; a < o.length; a++) { - var c = o[a], u = c.moduleId, l = o[a - 1], d = !o[a + 1]; - if (s[u] || (s[u] = le(c, e, null == t ? void 0 : t.interactionContext)), d) if (s[u].children.push(n), -1 !== z.indexOf(e.eventType) && "viewportExit" === c.type && !ie(e)) { - var p = N[e.eventType]; - if (!p) { - i.error("exp: not found preload handler for event: ", e); - continue - } - var f = n + B.PRELOAD; - s[f] = se(p, e), l ? s[l.moduleId].children.push(f) : r.push(f) - } - l && -1 === s[l.moduleId].children.indexOf(u) && s[l.moduleId].children.push(u) - } - }, p = [], f = 0, m = 0; m < c.events.length; m++) { - var g = c.events[m]; - try { - var h = g.eventType, y = g.eventModuleParams || {}; - if (i.debug("exp: process event '" + h + "' (" + y.moduleId + ")"), "experienceExecute" === h && ((u = o.deepExtend({}, g.eventExecutionContext)).result = o.deepExtend({}, c), i.setUserSegments(u)), !(l = y.moduleId)) { - i.error("exp: not found moduleId for linked node event: ", g); - continue - } - var _ = M[h]; - if (!_) { - i.error("exp: not found handler for event: ", g); - continue - } - s[l] = oe(_, g, n, c, t); - var b = ae(g), k = ie(g); - if (b || k) { - var C = l; - if (k) { - var I = de(k, l, r); - C = l + B.INNER_EVENT_CONDITION, s[C] = I - } - b ? -1 === p.indexOf(g.eventConditions[0].moduleId) && p.push(g.eventConditions[0].moduleId) : k && p.push(C), d(g, C, p), f++ - } else p.push(l) - } catch (e) { - i.error("exp: error on execute event: ", g, e) - } - } - f <= 3 && (T = !0); - for (var P = 0; P < p.length; P++) l = p[P], s[l] && s[l].run(); - window.clearTimeout(H), H = window.setTimeout((function () { - J("rootTimer" + H, !!r) - }), 2e3), U = u - } - }; - - function ge(e) { - k.ga.event({eventType: Co.EMIT_GA_EVENT, payload: p({aid: pn.aid}, e)}) - } - - function he(e, n, t, r) { - var o = ae(e), i = _e(r); - o && re(e.eventModuleParams.moduleId, e, i) - } - - function ye(e) { - try { - eval.call(window, "(function () {" + e + "\n})();") - } catch (e) { - i.log("Error occurred in RunJS\n", e) - } - } - - function we(e, n, t) { - void 0 === t && (t = !1); - var r = (t ? la.linkedNodes : S)[e.eventModuleParams.moduleId + B.PRELOAD]; - return r && r.getPreloadResult ? r.getPreloadResult().show() : Se(e, n) - } - - function _e(e) { - return !(null == e || !e.interactionContext) - } - - function be(e, n, t, r) { - return we(e, (function (e) { - return pn.template.show(e) - }), _e(r)) - } - - function ke(e, n) { - return i.debug("exp: run preloading for:", e), Se(e, (function (e) { - return n(e) - })) - } - - function Ce(e) { - return ke(e, (function (e) { - return pn.template.deferredShow(e) - })) - } - - function Ie(e) { - void 0 === e && (e = !1), J("reset", e), e ? fa() : (F.forEach((function (e) { - clearTimeout(e) - })), F = [], d.removeListeners(), f.removeListeners(), u.removeListeners(), m.unbindAll(), S = {}, O = {}) - } - - function Se(e, n) { - var t = o.deepExtend({}, e.eventParams), r = e.eventExecutionContext.splitTests, - a = e.eventExecutionContext.activeMeters, s = e.eventParams.formNameByTermId, - c = e.eventParams.hideCompletedFields, u = function (e) { - var n; - if (!j) return null; - var t = e || {}; - return { - issuerId: j, - premium: t.user && t.user.premium || null, - redemptionCandidateItemId: V || null, - creditStates: t.creditStates || null, - userId: (null === (n = t.user) || void 0 === n ? void 0 : n.uid) || null, - targetGroups: {l1: "target", l2: null} - } - }(e.eventExecutionContext), l = na(e), d = ta(e); - if (t.trackingId = e.eventExecutionContext.trackingId, t.experienceId = e.eventExecutionContext.experienceId, t.experienceExecutionId = e.eventExecutionContext.executionId, t.experienceActionId = e.eventModuleParams.moduleId, t.experienceConditions = e.eventConditions, l && (t.continuation = l, t.subscriptionId = d), t.browserId = D, t.onStartCreditRedemption = function (n) { - var t = o.deepExtend({}, n), r = "https://www.piano.io" === j, - i = e.eventExecutionContext.user && "anon" !== e.eventExecutionContext.uid; - return t.trackingId = e.eventExecutionContext.trackingId || void 0, r && i && (t.uid = e.eventExecutionContext.user.uid || void 0), pn.credit.redeem(t) - }, r && r.length > 0) { - var p = r.map((function (e) { - return e.variantId - })); - t.splitTestIds = JSON.stringify(p) - } - if (t.additionalParamNames = [], a && a.length > 0 && (t.activeMeters = JSON.stringify(a)), "showZuoraOffer" === e.eventType) { - var f = e.eventParams.ratePlanIds; - f && f.length > 0 && (t.zuoraSelectedRatePlanIds = JSON.stringify(f), t.additionalParamNames.push("zuoraSelectedRatePlanIds")) - } - if ("showNewscycleOffer" === e.eventType) { - var m = e.eventParams.ids; - m && m.length > 0 && (t.newscycleSelectedIds = JSON.stringify(m), t.additionalParamNames.push("newscycleSelectedIds", "campaignCode", "campaignGroupId")) - } - if ("showNewsletterSignup" === e.eventType) { - var v = e.eventParams.mailingListIds, g = e.eventParams.siteId; - v && v.length > 0 && (t.mailingListIds = JSON.stringify(v), t.siteId = g, t.additionalParamNames.push("mailingListIds", "siteId")) - } - return "showRecommendations" === e.eventType && (t.widgetId = e.eventParams.widgetId, t.placeholder = e.eventParams.placeholder), s && (t.formNameByTermId = JSON.stringify(s), t.hideCompletedFields = c), u && (t.affiliateState = u), i.debug("exp: show with params:", t), C.setParam("splitTestIds", t.splitTestIds), n(t) - } - - function Ee() { - return function () { - } - } - - return { - name: "experience", - init: function () { - if (!A && !i.__protected__.isCxenseBot()) { - A = !0; - var e = !0; - if (pn.customPreChecks && pn.customPreChecks.length) for (var n = null, t = pn.customPreChecks.length; t--;) try { - 1 !== (n = pn.customPreChecks[t]()) && !0 !== n && (e = !1) - } catch (e) { - } - e && Q("auto").then((function () { - _.setTime("expExec", Math.floor(performance.now() - window.pnInitPerformance)) - })) - } - }, - execute: R, - executeTemplateInteraction: function (e) { - return void 0 === e && (e = {templateType: 1}), ua(e.templateType || 1, (function (n) { - return Q("manual", {template_type: e.templateType || 1}, !1, {interactionContext: n}) - })) - }, - _getLastExecutionResult: function () { - return U - }, - registerCallback: L, - __private__: { - handlers: M, - executedNodes: I, - linkedNodes: S, - processResult: ve, - processErrors: te, - show: Se, - getTrackingEndpoint: W, - initialized: A, - registerCallback: L - }, - __protected__: {sendStatisticsExecutedNodes: J} - } - }() - }), pn.experience = pn.container.resolve("experience"); - var ma = function () { - var e, n, t = 0, r = document, o = !1, i = "active", a = 6e4, s = function () { - var e, n, t; - return e = function () { - return (65536 * (1 + Math.random()) | 0).toString(16).substring(1) - }, function () { - return e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e() - }, t = {}, n = "__ceGUID", { - add: function (e, r, o) { - return e[n] = void 0, e[n] || (e[n] = "ifvisible.object.event.identifier"), t[e[n]] || (t[e[n]] = {}), t[e[n]][r] || (t[e[n]][r] = []), t[e[n]][r].push(o) - }, remove: function (e, r, o) { - var i, a, s, c, u; - if (o) { - if (e[n] && t[e[n]] && t[e[n]][r]) for (a = s = 0, c = (u = t[e[n]][r]).length; s < c; a = ++s) if ((i = u[a]) === o) return t[e[n]][r].splice(a, 1), i - } else if (e[n] && t[e[n]] && t[e[n]][r]) return delete t[e[n]][r] - }, fire: function (e, r, o) { - var i, a, s, c, u; - if (e[n] && t[e[n]] && t[e[n]][r]) { - for (u = [], a = 0, s = (c = t[e[n]][r]).length; a < s; a++) i = c[a], u.push(i(o || {})); - return u - } - } - } - }(), c = function () { - var e; - return function (n, t, r) { - return e || (e = n.addEventListener ? function (e, n, t) { - return e.addEventListener(n, t.bind(ma), !1) - } : n.attachEvent ? function (e, n, t) { - return e.attachEvent("on" + n, t, !1) - } : function (e, n, t) { - return e["on" + n] = t - }), e(n, t, r) - } - }(), u = function () { - var e, n = r.createElement("div"), t = n.getElementsByTagName("i"), o = 3; - for (e = function () { - return n.innerHTML = "\x3c!--[if gt IE " + ++o + "]> 4 ? o : void 0 - }(); - - function l() { - var s; - return !!o || (e ? c(r, n, (function () { - return r.hidden ? p() : d() - }), !1) : (s = "blur", u && u < 9 && (s = "focusout"), c(window, s, (function () { - return ma.blur() - })), c(window, "focus", (function () { - return ma.focus() - }))), o = !0, function () { - var e, n; - return (n = function () { - return clearTimeout(e), "active" !== i && m(), t = +new Date, e = setTimeout((function () { - if ("active" === i) return f() - }), a) - })(), c(r, "mousemove", n), c(r, "mouseup", n), c(r, "keyup", n), c(r, "touchstart", n), c(window, "scroll", n), c(window, "resize", n), d(n), m(n) - }()) - } - - void 0 !== r.hidden ? (e = "hidden", n = "visibilitychange") : void 0 !== r.mozHidden ? (e = "mozHidden", n = "mozvisibilitychange") : void 0 !== r.msHidden ? (e = "msHidden", n = "msvisibilitychange") : void 0 !== r.webkitHidden && (e = "webkitHidden", n = "webkitvisibilitychange"); - - function d(e) { - return "function" == typeof e ? v("focus", (function (n) { - e(n) - })) : (i = "active", s.fire(ma, "focus"), s.fire(ma, "wakeup"), s.fire(ma, "statusChanged", {status: i})), ma - } - - function p(e) { - return "function" == typeof e ? v("blur", (function (n) { - e(n) - })) : (i = "hidden", s.fire(ma, "blur"), s.fire(ma, "idle"), s.fire(ma, "statusChanged", {status: i})), ma - } - - function f(e) { - return "function" == typeof e ? v("idle", (function (n) { - e(n) - })) : (i = "idle", s.fire(ma, "idle"), s.fire(ma, "statusChanged", {status: i})), ma - } - - function m(e) { - return "function" == typeof e ? v("wakeup", (function (n) { - return e(n) - })) : (i = "active", s.fire(ma, "wakeup"), s.fire(ma, "statusChanged", {status: i})), ma - } - - function v(e, n) { - return l(), s.add(ma, e, n), ma - } - - return { - name: "ifvisible", setIdleDuration: function (e) { - return a = 1e3 * e - }, getIdleDuration: function () { - return a - }, getIdleInfo: function () { - var e, n; - return e = +new Date, n = {}, "idle" === i ? (n.isIdle = !0, n.idleFor = e - t, n.timeLeft = 0, n.timeLeftPer = 100) : (n.isIdle = !1, n.idleFor = e - t, n.timeLeft = t + a - e, n.timeLeftPer = (100 - 100 * n.timeLeft / a).toFixed(2)), n - }, wakeup: m, idle: f, focus: d, blur: p, on: v, off: function (e, n) { - return l(), s.remove(ma, e, n), ma - }, onEvery: function (e, n) { - var t, r = !1; - return l(), n && (t = setInterval((function () { - if ("active" === i && !r) return n() - }), 1e3 * e)), { - stop: function () { - return clearInterval(t) - }, pause: function () { - return r = !0 - }, resume: function () { - return r = !1 - }, code: t, callback: n - } - }, now: function (e) { - return l(), i === (e || "active") - } - } - }(); - pn.container.register("ifvisible", {useValue: ma}), pn.ifvisible = pn.container.resolve("ifvisible"); - var va = function () { - var e, n = pn.container.resolve("jqUtils"), t = pn.container.resolve("ifvisible"), r = 0, o = [], i = 60, - a = !0, s = function () { - m(); - var e = o[o.length - 1]; - void 0 !== e && void 0 === e.stopTime || o.push({startTime: new Date, startMinute: r, stopTime: void 0}) - }, c = function () { - if (0 !== o.length && !a) { - if (d()) return void f(); - var e = o[o.length - 1]; - void 0 === e.stopTime && (e.stopTime = new Date, e.stopMinute = r) - } - }, u = function (e, n, t, r) { - var o = Math.abs(e.getTime() - n.getTime()), i = t - r; - return o > 6e4 * (i + 10) && (o = 6e4 * i), o - }, l = function (e) { - var n = parseFloat(e); - if (isNaN(n)) throw { - name: "InvalidDurationException", - message: "An invalid duration time (" + e + ") was provided." - }; - t.setIdleDuration(n), i = n - }, d = function () { - return !!(e = n.filter("video,audio", (function (e) { - return !e.paused - }))).length - }, p = function () { - setTimeout((function () { - c() - }), 15e3) - }, f = function () { - !e || e.forEach((function (e) { - n.on(e, "pause", p) - })) - }, m = function () { - !e || e.forEach((function (e) { - n.off(e, "pause", p) - })) - }; - return { - name: "activetimer", setIdleDurationInSeconds: l, getActiveTimeInSeconds: function () { - for (var e = 0, n = 0; n < o.length; n++) { - var t = o[n].startTime, i = o[n].stopTime, a = o[n].startMinute, s = o[n].stopMinute; - void 0 === i && (i = new Date, s = r), e += u(i, t, s, a) - } - return Math.floor(e / 1e3) - }, getTotalTimeInSeconds: function () { - var e = 0, n = o[0]; - if (void 0 !== n) { - var t = n.startTime, i = n.startMinute, a = new Date; - e = u(a, t, r, i) - } - return Math.floor(e / 1e3) - }, resetRecordedTime: function () { - o = [], s() - }, startTimer: s, stopTimer: c, initialize: function (e) { - e && l(e), t.on("blur", (function () { - a = !1, c() - })), t.on("focus", (function () { - a = !0, s() - })), t.on("idle", (function () { - i > 0 && (a = !1, c()) - })), t.on("wakeup", (function () { - i > 0 && (a = !0, s()) - })), s(), setInterval((function () { - r++ - }), 6e4) - } - } - }(); - pn.container.register("activetimer", {useValue: va}), pn.activetimer = pn.container.resolve("activetimer"); - var ga = function () { - var e, n = {}, t = [], r = !1, - o = {RENDERED_FOR_CURRENT_UNIT: 1, DID_NOT_RENDER_BUT_VIEWED: 2, RECIEVED_FROM_GET_SLOTS: 3}; - - function i(e) { - e && (c(), r = !1), function () { - if (r) return !1; - r = !0; - try { - var e = window.googletag = window.googletag || {}; - return e.cmd = e.cmd || [], e.cmd.push((function () { - e.pubads().addEventListener("slotRenderEnded", d), e.pubads().addEventListener("impressionViewable", p), e.companionAds().addEventListener("slotRenderEnded", d), e.companionAds().addEventListener("impressionViewable", p) - })), e.apiReady && e.cmd.push((function () { - u(e.pubads().getSlots()), u(e.companionAds().getSlots()) - })), !0 - } catch (e) { - return m(e), !1 - } - }() - } - - function a(n, t) { - "function" == typeof e && e(n, t) - } - - function s(e) { - return e && void 0 !== n[e] && null !== n[e] && n.hasOwnProperty(e) - } - - function c() { - n = {}, t = [] - } - - function u(e) { - for (var n = 0; n < e.length; n++) { - var t = e[n]; - d({eventSource: o.RECIEVED_FROM_GET_SLOTS, slot: t}) - } - } - - function l(e) { - var n; - try { - var t = e.serviceName, r = e.slot; - if (!t) { - var o = e.slot.getServices(); - o && o.length && (t = o[0].getName()) - } - var i = r.getResponseInformation() || {}, a = r.getSlotId ? r.getSlotId() : {}, - s = r.getSlotElementId ? r.getSlotElementId() : a.getDomId ? a.getDomId() : null; - n = { - companion: !!t && "companion_ads" === t, - adUnit: r.getAdUnitPath ? r.getAdUnitPath() : 0, - isEmpty: e.isEmpty, - elementId: s, - advertiserId: e.advertiserId || i.advertiserId, - campaignId: e.campaignId || i.campaignId, - lineItemId: e.lineItemId || i.lineItemId, - creativeId: e.creativeId || i.creativeId, - eventSource: e.eventSource || null, - size: e.size && e.size.slice(0, 2) || null, - viewed: !1, - position: null - }; - var c = document.getElementById(s); - if (s && c && (n.position = { - top: c.offsetTop, - left: c.offsetLeft - }, void 0 === e.isEmpty && (n.isEmpty = c.offsetWidth <= 0 && c.offsetHeight <= 0, !n.isEmpty && !n.size))) { - var u = r.getSizes(); - u && u.length && (n.size = "object" == _typeof(u[0]) ? [u[0].getWidth(), u[0].getHeight()] : u[0]) - } - } catch (e) { - m(e) - } - return n - } - - function d(e) { - e.eventSource = e.eventSource || o.RENDERED_FOR_CURRENT_UNIT; - var r = l(e), i = f(e.slot); - !i || (n[i] ? r.viewed = n[i].viewed : t.push(i), n[i] = r, a(r, i)) - } - - function p(e) { - var r = f(e.slot); - if (r) { - var i = n[r] || l(e); - s(r) || (n[r] = i, t.push(r)), void 0 === i.companion && (i.companion = "companion_ads" === e.serviceName), (!i.eventSource || i.eventSource > o.DID_NOT_RENDER_BUT_VIEWED) && (i.eventSource = o.DID_NOT_RENDER_BUT_VIEWED), i.viewed = !0, a(i, r) - } - } - - function f(e) { - try { - var n = e.getSlotId ? e.getSlotId() : {}, - t = e.getSlotElementId ? e.getSlotElementId() : n.getDomId ? n.getDomId() : null, - r = e.getAdUnitPath ? e.getAdUnitPath() : 0; - return [t, n.getId ? n.getId() : 0, r].join(":") - } catch (e) { - m(e) - } - } - - function m(e) { - pn && pn.util && pn.util.error && pn.util.error("DFP module error: ", e) - } - - return i(), { - name: "doubleClickForPublisher", initialize: i, setCustomHandler: function (n) { - e = n - }, getAds: function (e) { - var r = [], o = 0, i = t.length; - e && function (e) { - return "number" == typeof e && isFinite(e) && Math.floor(e) === e - }(e) && e > 0 && e < i && (o = i - e); - for (var a = o; a < i; a++) { - var c = t[a]; - !s(c) || r.push(n[c]) - } - return r - }, resetAds: c - } - }(); - pn.container.register("doubleClickForPublisher", {useValue: ga}), pn.doubleClickForPublisher = pn.container.resolve("doubleClickForPublisher"); - var ha = function () { - var e, n, t, r, o, i, a, s, c = pn.container.resolve("postmessage"), u = pn.container.resolve("util"), - l = "https://js.braintreegateway.com/web/3.79.1/js/client.min.js", - d = "https://js.braintreegateway.com/web/3.79.1/js/apple-pay.min.js", - p = "https://js.braintreegateway.com/web/3.79.1/js/data-collector.min.js", f = ""; - c.subscribe("loaded", (function () { - m() - })), c.subscribe("startCheckout", (function () { - m() - })), c.subscribe("applePayBtClientToken", (function (e) { - y(e.params.clientToken) - })), c.subscribe("applePayBtCheckoutFlowProperties", (function (e) { - i = e.params.requestEmail, a = e.params.requestPostalAddress - })), c.subscribe("applyTaxFailed", (function (n) { - e.abort() - })), c.subscribe("checkApplePayBtInstance", (function (e) { - n && c.broadcast("applePayInit", {}) - })), c.subscribe("applyTaxCompleted", (function (e) { - h(e.params) - })), c.subscribe("applePayBtBeginSession", (function (t) { - var r = {}, s = t.params; - s.resourceTitle && (r = s), s.termId && (f = s.termId || ""); - var u = {currencyCode: s.currencyCode, total: {label: s.resourceTitle, amount: s.chargeAmount}}; - v(u); - try { - o = n.createPaymentRequest(u) - } catch (e) { - c.broadcast("payment-error", {errorCode: 101}) - } - (e = new window.ApplePaySession(2, o)).onvalidatemerchant = function (t) { - n.performValidation({ - validationURL: t.validationURL, - displayName: s.resourceTitle || r.resourceTitle - }, (function (n, t) { - if (n) return e.abort(), void c.broadcast("payment-error", {errorCode: 102}); - e.completeMerchantValidation(t) - })) - }, e.onpaymentauthorized = function (t) { - n.tokenize({token: t.payment.token}, (function (n, r) { - if (n) return c.broadcast("payment-error", {errorCode: 103}), void e.completePayment(window.ApplePaySession.STATUS_FAILURE); - var o = {nonce: r.nonce, cardType: r.details.cardType}; - i || a ? g(t, o) : h(o) - })) - }, e.begin() - })); - var m = function () { - var e = u.__protected__.isApplePayAllowed(); - c.broadcast("EVENT_APPLE_PAY_CAN_MAKE_PAYMENTS", {canMakePayments: e}) - }, v = function (e) { - i && (e.requiredShippingContactFields = ["email"]), a && (e.requiredBillingContactFields = ["postalAddress"]) - }, g = function (e, n) { - var t = e.payment.billingContact, r = { - countryCode: t.countryCode ? t.countryCode.toUpperCase() : t.countryCode, - zipCode: t.postalCode, - billingZipCode: t.postalCode, - nonce: n.nonce, - cardType: n.cardType - }; - e.payment.shippingContact && (r.user = {email: e.payment.shippingContact.emailAddress}), c.broadcast("applePayPaymentAuthorized" + f, r) - }, h = function (n) { - e.completePayment(window.ApplePaySession.STATUS_SUCCESS), n.deviceData = r.deviceData, c.broadcast("applePayNonce" + f, n) - }, y = function (e) { - s = e, w() - }, w = function () { - C() || k(l, (function () { - !0, _() - })) - }, _ = function () { - I() || k(p, (function () { - !0, b() - })) - }, b = function () { - S() || k(d, (function () { - !0, window.braintree.client.create({authorization: s}).then((function (e) { - return t = e, window.braintree.dataCollector.create({client: e, kount: !0, paypal: !0}) - })).then((function (e) { - return r = e, t - })).then((function (e) { - window.braintree.applePay.create({client: e}, (function (e, t) { - e ? c.broadcast("payment-error", {errorCode: 101}) : (n = t, c.broadcast("applePayInit", {})) - })) - })).catch((function (e) { - if (e) return c.broadcast("payment-error", {errorCode: 100}), void u.error("[TP] Client error: " + e.message) - })) - })) - }, k = function (e, n) { - u.addScript(e, n) - }, C = function () { - return u.isScriptAdded(l) - }, I = function () { - return u.isScriptAdded(p) - }, S = function () { - return u.isScriptAdded(d) - }; - return {name: "applePay"} - }(); - pn.container.register("applePay", {useValue: ha}), pn.applePay = pn.container.resolve("applePay"); - var ya = function () { - var e = pn.container.resolve("postmessage"), n = pn.container.resolve("util"), t = "", - r = {environment: "", billingRequestFlowId: ""}, o = { - customer: "", - mandate: "", - bank_account_ending: "", - bank_account_holder: "", - bank_name: "", - currency: "" - }, i = !1; - e.subscribe("LOAD_GOCARDLESS_DROPIN", (function (n) { - t = n.sender, i ? e.send("GOCARDLESS_DROPIN_LOADED", null, t) : s("https://pay.gocardless.com/billing/static/dropin/v2/initialise.js", (function () { - i = !0, e.send("GOCARDLESS_DROPIN_LOADED", null, t) - })) - })), e.subscribe("GOCARDLESS_DROPIN_MANDATE_CREATION_INIT", (function (e) { - r = e.params, i && a() - })); - var a = function () { - window.GoCardlessDropin.create({ - billingRequestFlowID: r.billingRequestFlowId, - environment: r.environment, - onSuccess: function (n) { - var r = n.links, i = r.customer, a = r.mandate_request_mandate, - s = n.resources.customer_bank_account, c = s.account_number_ending, u = s.account_holder_name, - l = s.bank_name, d = n.mandate_request.currency; - o = { - customer: i, - mandate: a, - bank_account_ending: c, - bank_account_holder: u, - bank_name: l, - currency: d - }, null, e.send("GOCARDLESS_DROPIN_MANDATE_CREATION_COMPLETE", o, t) - }, - onExit: function (n) { - null, n ? e.send("payment-error", {message: n}, t) : e.send("GOCARDLESS_DROPIN_ENABLE_PLUGIN", null, t) - } - }).open() - }, s = function (e, t) { - n.addScript(e, t) - }; - return {name: "goCardlessDropin"} - }(); - pn.container.register("goCardlessDropin", {useValue: ya}), pn.goCardlessDropin = pn.container.resolve("goCardlessDropin"); - var wa = function () { - var e, n, t, r = pn.container.resolve("postmessage"), o = pn.container.resolve("util"), i = !1; - return { - name: "applePayIntegrationService", initialize: function () { - var a = function () { - i = o.__protected__.isApplePayAllowed(), r.broadcast("EVENT_APPLE_PAY_CAN_MAKE_PAYMENTS", {canMakePayments: i}) - }; - r.subscribe("provider-component-initiated", (function () { - i && r.broadcast("apple-pay-init", {}) - })), r.subscribe("initPwApplePay", (function () { - a() - })), r.subscribe("startCheckout", (function () { - a() - })), r.subscribe("pay-session-received", (function (e) { - try { - n.completeMerchantValidation(e.params.applePaySession) - } catch (e) { - r.broadcast("payment-error", {errorCode: 111, errors: e}) - } - })), r.subscribe("apple-pay-complete-payment", (function (e) { - !function (e) { - return !t || t === e - }(e.params.termId) || n.completePayment(e.params.status, e.params.errors) - })), r.subscribe("start-purchase", (function (o) { - t = o.params.termId || "", e = o.params.resourceName, n = new window.ApplePaySession(3, function (e) { - return { - countryCode: e.params.countryCode, - currencyCode: e.params.currencyCode, - supportedNetworks: ["visa", "masterCard", "amex", "discover"], - merchantCapabilities: ["supports3DS"], - requiredShippingContactFields: e.params.requiredShippingContactFields || [], - requiredBillingContactFields: e.params.requiredBillingContactFields || [], - total: {label: e.params.resourceName, amount: e.params.chargeAmount} - } - }(o)), n.onvalidatemerchant = function (n) { - !function (e, n) { - var o = { - validationUrl: e, - displayedCaption: n, - userToken: null, - userProvider: null, - userRef: null, - janrainCaptureToken: null, - domainName: window.location.hostname, - aid: null, - termId: t, - merchantIdentifier: tp.applePayMerchantId - }; - r.broadcast("apple-pay-pay-session-request", o) - }(n.validationURL, e) - }, n.onpaymentauthorized = function (e) { - try { - r.broadcast("apple-pay-payment-authorized", { - paymentData: e.payment, - termId: t, - merchantIdentifier: tp.applePayMerchantId - }) - } catch (e) { - r.broadcast("payment-error", {errorCode: 110, error: e}) - } - }; - try { - n.begin() - } catch (e) { - r.broadcast("payment-error", {errorCode: 112, error: e, termId: t}) - } - })), r.subscribe("abort-apple-pay-session", (function () { - !function () { - try { - n.abort() - } catch (e) { - o.error(e) - } - }() - })) - }, __protected__: { - applePayCanMakePaymentsWithActiveCard: function () { - var e = { - then: function (e) { - return e(null) - }, catch: function () { - } - }; - return pn.applePayMerchantId && o.__protected__.isApplePayAllowed() && pn.applePayMerchantId ? window.ApplePaySession.canMakePaymentsWithActiveCard(pn.applePayMerchantId) : e - } - } - } - }(); - pn.container.register("applePayIntegrationService", {useValue: wa}), pn.applePayIntegrationService = pn.container.resolve("applePayIntegrationService"); - var _a = function () { - var e, n, t = pn.container.resolve("postmessage"), r = pn.container.resolve("util"), - o = pn.container.resolve("ajax"), i = "datatrans-applepay-button", a = !1, s = null, c = null, u = !1, - l = function (n) { - e = n.sender, v().then(g).then(h) - }, d = function (n) { - t.send("datatrans-applepay-service-error", n, e) - }, p = function (e) { - n = e.params, v().then(g).then(f).catch((function () { - d({eventName: "init-error", errorCode: 110}) - })) - }, f = function () { - PaymentButton.init(n.applePayConfig) - }, m = function () { - var e = document.getElementById(i); - null !== e && null !== e.firstElementChild ? e.firstElementChild.click() : d({ - eventName: "system-error", - errorCode: 112 - }) - }, v = function () { - return null !== c || (c = new Promise((function (e) { - o.request({ - url: tp.getApiEndpoint() + "/anon/datatrans/applepay/config", - data: {aid: tp.aid}, - dataType: "jsonp", - jsonpCallback: "jsonpCallback", - success: function (n) { - var t = n.config; - e(t.url) - } - }) - }))), c - }, g = function (e) { - if (null !== s) return s; - var n = "datatrans-apple-pay"; - return document.getElementById(n) ? void 0 : s = new Promise((function (t) { - var r = document.createElement("script"); - r.addEventListener("load", (function () { - return t(null) - })), r.src = e, r.id = n, document.body.appendChild(r) - })) - }, h = function () { - u || (PaymentButton.on("init", y), PaymentButton.on("create", w), PaymentButton.on("token", _), PaymentButton.on("abort", (function () { - d({eventName: "abort", errorCode: 0}) - })), PaymentButton.on("unsupported", (function () { - d({eventName: "unsupported", errorCode: 113}) - })), PaymentButton.on("error", (function (e) { - e && (r.error("datatransApplePayIntegrationService. apple pay button error: " + e), d({ - eventName: "error", - errorCode: 112 - })) - })), u = !0) - }, y = function () { - var e = b(); - PaymentButton.create(e, n.paymentConfig).catch((function () { - d({eventName: "create-error", errorCode: 111}) - })) - }, w = function () { - r.log("datatransApplePayIntegrationService paymentButtonOnCreate"), t.send("datatrans-applepay-service-ready", null, e) - }, _ = function (n) { - r.log("datatransApplePayIntegrationService paymentButtonOnToken"), t.send("datatrans-applepay-service-token", n.token.details.token, e) - }, b = function () { - var e = document.getElementById(i); - return null === e && ((e = document.createElement("div")).setAttribute("id", i), e.style.display = "none", document.body.appendChild(e)), e.innerHTML = "", e - }; - return { - name: "datatransApplePayIntegrationService", initialize: function () { - !r.__protected__.isApplePayAllowed() && a || (a = !0, t.subscribe("datatrans-applepay-loaded", l), t.subscribe("datatrans-applepay-checkout-initiate-purchase", p), t.subscribe("datatrans-applepay-make-purchase", m)) - } - } - }(); - pn.container.register("datatransApplePayIntegrationService", {useValue: _a}), pn.datatransApplePayIntegrationService = pn.container.resolve("datatransApplePayIntegrationService"); - var ba = function () { - var e, n = pn.container.resolve("postmessage"), t = pn.container.resolve("util"), r = null, o = null, i = !1, - a = ""; - n.subscribe("stripe-applepay-initialized", (function () { - s() - })), n.subscribe("stripe-applepay-initiate-purchase", (function (e) { - s().then((function () { - var n = e.params.apiKey, t = e.params.accountId; - null === r && (r = t ? window.Stripe(n, {stripeAccount: t}) : window.Stripe(n)); - var o = e.params.paymentRequestPayload; - return r.paymentRequest(o) - })).then((function (e) { - return o = e, e.canMakePayment() - })).then((function (e) { - i = e && e.applePay, n.broadcast("stripe-applepay-initiate-purchase-complete", {canMakePayment: i}), i && (o.on("cancel", (function () { - n.broadcast("stripe-applepay-start-purchase-complete" + a, {status: "fail"}) - })), o.on("paymentmethod", (function (e) { - var t = e.paymentMethod.billing_details.address, - r = {countryCode: t.country, zipCode: t.postal_code, billingZipCode: t.postal_code}, - o = e.paymentMethod.id; - n.broadcast("stripe-applepay-start-purchase-complete" + a, { - status: "success", - paymentMethodId: o, - payerEmail: e.payerEmail, - billingAddress: r - }), e.complete("success") - }))) - })).catch((function (e) { - t.error(e), n.broadcast("stripe-applepay-initiate-purchase-complete", {canMakePayment: !1}) - })) - })), n.subscribe("stripe-applepay-start-purchase", (function (e) { - a = e.params.termId || ""; - var n = e.params.paymentRequestPayload; - o.update(n), o.show() - })), n.subscribe("stripe-applepay-abort-request", (function () { - o && o.abort(), n.broadcast("stripe-applepay-reopen-request") - })); - var s = function () { - if (null != e) return e; - if (!document.getElementById("stripe.js")) { - var n = document.createElement("script"); - return n.src = "https://js.stripe.com/v3/", n.id = "stripe.js", document.body.appendChild(n), e = new Promise((function (e) { - n.onload = function () { - e(null) - } - })) - } - }; - return {name: "stripeApplePayIntegrationService"} - }(); - pn.container.register("stripeApplePayIntegrationService", {useValue: ba}), pn.stripeApplePayIntegrationService = pn.container.resolve("stripeApplePayIntegrationService"); - var ka = function () { - var e = pn.container.resolve("postmessage"), n = pn.container.resolve("util"); - e.subscribe("obi-handle-3ds-challenge", (function (e) { - var r = e.params; - if (window.obick) t(r); else { - if (-1 === ["https://jsl.qat.obi.aol.com/obipmservice/obick.umd.js", "https://jsl.prod.obi.aol.com/obipmservice/obick.umd.js"].indexOf(r.obickUrl)) return void n.error("Untrusted obickUrl detected: " + r.obickUrl); - var o = document.createElement("script"); - o.src = r.obickUrl, o.id = "obick.js", document.body.appendChild(o), o.onload = function () { - n.log("".concat(o.id, " onload")), t(r) - } - } - })); - var t = function (t) { - if (t.stepUpUrl && 0 !== t.stepUpUrl.indexOf("http")) n.error("There is no link in params.stepUpUrl for OBI"); else { - var r = {stepUpUrl: t.stepUpUrl, jwt: t.jwt, transactionId: t.transactionId, zIndex: t.zIndex}; - window.obick.handle3dsChallenge(r).then((function (t) { - n.debug(t), e.broadcast("obi-3ds-challenge-complete", { - threeDSTransactionId: t.threeDSTransactionId, - challengeStatus: t.challengeStatus - }) - })).catch((function (t) { - n.error(t), e.broadcast("obi-3ds-challenge-complete", {error: "challenge-error", payload: t}) - })) - } - }; - return {name: "obi3DSChallenge"} - }(); - pn.container.register("obi3DSChallenge", {useValue: ka}), pn.obi3DSChallenge = pn.container.resolve("obi3DSChallenge"); - var Ca = function () { - var e = pn.container.resolve("jqUtils"), n = pn.container.resolve("util"), t = pn.container.resolve("api"), - r = pn.container.resolve("user"), o = pn.container.resolve("pianoId"), - i = {displayMode: "inline", containerSelector: "body", loginSuccess: p}, a = "reader_id", s = function () { - return "/" + pn.aid + "/execution/amp" - }, c = function () { - return s() + "/login" - }, u = function () { - window.location.href = n.getQueryParamByName("return") + "#success=true" - }; - var l = function (e) { - return /^\w+$/i.test(e) - }, d = function (e) { - var r = {}; - if (r.reader_id = n.getQueryParamByName(a), r.reader_id) { - var o = pn.getExperienceEndpoint(!1); - t.callApi(s() + "/logout", r, e, o, !1) - } else n.log("reader_id cannot be empty") - }; - - function p(e, r) { - var o = e || {}; - if (o.reader_id || (o.reader_id = n.getQueryParamByName(a)), o.reader_id) { - var i = pn.getExperienceEndpoint(!1); - t.callApi(c(), o, r, i, !1) - } else n.log("reader_id cannot be empty") - } - - return { - name: "amp", showLogin: function (t) { - t = t || {}; - var a = r.getProvider(); - if (a.getName() === o.getName()) { - var s; - s = t.loginSuccess && e.isFunction(t.loginSuccess) ? t.loginSuccess : u; - var c = function () { - p({}, s) - }, l = Object.assign({}, i, t); - r.isUserValid() ? c() : (l.loginSuccess = c, o.show(l)) - } else n.log("Current user provider" + a.name + " is not allowed for amp") - }, logout: function (n) { - n = e.isFunction(n) ? n : u, r.getProvider().getName() === o.getName() ? o.logout((function () { - d(n) - })) : d(n) - }, login: function (t) { - var i = r.getProvider().getName(); - i === o.getName() && (t = t ? e.deepExtend({}, t, {userProvider: i}) : {userProvider: i}); - var a = {user_transient: !0, user_provider: "publisher_user"}; - if (t && t.readerId && (a.reader_id = t.readerId), t && t.userToken && (a.user_token = t.userToken), t && t.userProvider && (a.user_provider = t.userProvider, a.user_transient = !1), !function (t) { - if (t && t.userState && e.isPlainObject(t.userState)) { - var r = Object.keys(t.userState); - if (r.filter(l).length !== r.length) return n.error("user_state accept only contain letters, numbers and underscore"), !1 - } - return !0 - }(t)) return !1; - t && t.userState && (a.user_state = JSON.stringify(t.userState)); - p(a, (function (n) { - 0 === n.code ? t.loginSuccess && e.isFunction(t.loginSuccess) && t.loginSuccess() : t.loginFail && e.isFunction(t.loginFail) && t.loginFail() - })) - } - } - }(); - pn.container.register("amp", {useValue: Ca}), pn.amp = pn.container.resolve("amp"); - var Ia = function () { - var e, n = pn.container.resolve("postmessage"), t = [{ - resourceRegExp: new RegExp("/checkout/offer/show"), - label: "showOffer" - }, { - resourceRegExp: new RegExp("tinypass.min.js$"), - label: "tinypassMinJS" - }, {resourceRegExp: new RegExp("/xbuilder/experience/execute"), label: "experienceExecute"}], r = !1, o = [], - i = "EVENT_TP_PERFORMANCE_DATA"; - - function a(e) { - e.forEach((function (e) { - !function (e) { - !function (e) { - return t.some((function (n) { - return e.name.match(n.resourceRegExp) - })) - }(e) || function (e) { - if (!s()) return void o.push(e); - o.push(e), c() - }(e) - }(e) - })) - } - - function s() { - return r && e - } - - function c() { - !s() || (o.forEach((function (t) { - n.send(i, {entry: t}, e) - })), o = []) - } - - return function () { - if (window.performance && window.PerformanceObserver && "function" == typeof performance.getEntries) { - var t = window.PerformanceObserver.prototype.observe; - window.PerformanceObserver.prototype.observe = function () { - for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - try { - t.apply(this, e) - } catch (e) { - } - }, n.subscribe("EVENT_LOGGER_READY", (function (n) { - e = n.sender, r = !0, c() - })), a(performance.getEntries()), new PerformanceObserver((function (e) { - a(e.getEntries()) - })).observe({entryTypes: ["measure", "resource"]}) - } - }(), {name: "performanceMetrics"} - }(); - pn.container.register("performanceMetrics", {useValue: Ia}), pn.performanceMetrics = pn.container.resolve("performanceMetrics"); - var Sa = function () { - var e = pn.container.resolve("api"), n = pn.container.resolve("pianoId"); - return { - name: "doubleOptIn", check: function () { - !pn.user.isUserValid() || new Promise((function (n) { - e.callApi("/email/confirmation/check", {}, (function (e) { - n(e) - })) - })).then((function (e) { - e && !1 === e.data && n.showEmailConfirmationRequired() - })) - } - } - }(); - pn.container.register("doubleOptIn", {useValue: Sa}), pn.doubleOptIn = pn.container.resolve("doubleOptIn"); - var Ea = function () { - var e = pn.container.resolve("api"), n = pn.container.resolve("postmessage"), t = pn.container.resolve("util"), - r = t.debounce((function () { - o().then(i, a) - }), 1500), o = function () { - return new Promise((function (n, t) { - var r = {aid: pn.aid}; - e.callApi("/externalVerification/synchronizeSubscriptions", r, (function (e) { - e && e.data && n(e.data), t(e.message) - })) - })) - }, i = function (e) { - n.broadcast("NEWSCYCLE_HAS_BEEN_SYNCHRONIZED_SUCCESS", {data: e}) - }, a = function (e) { - t.error("newscycle module: sync request failed with error: " + e) - }; - return {name: "newscycle", syncSubscriptions: r} - }(); - pn.container.register("newscycle", {useValue: Ea}), pn.newscycle = pn.container.resolve("newscycle"); - var Ta = function () { - var e = pn.container.resolve("postmessage"), n = {enabled: !1, captcha3SiteKey: "", aid: ""}; - - function t() { - window.grecaptcha.ready(r) - } - - var r = function () { - var e = document.createElement("div"); - e.id = "tp-recaptcha", document.body.appendChild(e), window.grecaptcha.render("tp-recaptcha", { - sitekey: n.captcha3SiteKey, - size: "invisible", - "error-callback": function () { - e.style.display = "none" - } - }) - }, o = function () { - window.onCaptchaV3Load = t; - var e = document.createElement("script"); - e.src = "https://www.google.com/recaptcha/api.js?onload=onCaptchaV3Load&render=explicit", e.type = "text/javascript", e.async = !0, e.defer = !0, document.head.appendChild(e) - }, i = function () { - e.subscribe("set-captcha-v3-config", (function (e) { - !function (e) { - e && e.enabled && (n = e, o()) - }(e.params.config) - })), e.subscribe("get-captcha-v3-config", (function () { - e.broadcast("get-captcha-v3-config-value", {config: n}) - })) - }; - e.subscribe("get-captcha-v3-token", (function (e) { - window.grecaptcha.ready((function () { - return a(e.params.action) - })) - })); - var a = function (n) { - window.grecaptcha.execute({action: n}).then((function (n) { - e.broadcast("captcha-v3-token", {token: n}) - })).catch((function () { - e.broadcast("captcha-v3-token", {token: ""}) - })) - }; - return { - name: "captchaV3", addCaptchaV3: function () { - i() - } - } - }(); - pn.container.register("captchaV3", {useValue: Ta}), pn.captchaV3 = pn.container.resolve("captchaV3"); - pn.container.register("tinypassErrorHandler", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("postmessage"), t = e.resolve("api"), r = e.resolve("util"), o = e.resolve("analytics"), - i = e.resolve("versionService"), a = "EVENT_TP_ERROR_HANDLER", s = "sdk", c = [], u = !0, - l = function (e) { - if (h(e) && !v(c, e)) { - e.tags || (e.tags = ["unknown"]), e.aid = pn.aid, e.v = i.getTinypassVersion(); - var n = {details: e}; - c.push(n) - } - }; - var d = function (e) { - var n = e.params; - Array.isArray(n) && n.forEach((function (e) { - e.tags.push(pn.aid), l(e) - })) - }; - - function p(e) { - var n, t; - if (e.message.toLowerCase().indexOf("script error") > -1) l({ - message: "Probably that is Piano error.", - url: window.location.href, - tags: [s] - }); else { - var r = null == e ? void 0 : e.error; - if (g(null == r ? void 0 : r.stack)) return !1; - l({ - stack: null !== (n = null == r ? void 0 : r.stack) && void 0 !== n ? n : "n/a", - message: null !== (t = null == r ? void 0 : r.message) && void 0 !== t ? t : "n/a", - userAgent: navigator.userAgent, - tags: [s] - }) - } - return !1 - } - - var f = function () { - setInterval((function () { - m(), u = !1 - }), 15e3) - }, m = function () { - var e = c.filter((function (e) { - return !e.send - })); - if (0 !== e.length) { - var n = e.map((function (e) { - return e.details - })), r = {type: "console-error-message", srcType: "ts", log_message: JSON.stringify(n)}; - o.log.event({ - eventType: wo.LOG_BEACON_REQUEST, - payload: {url: t.getEndpoint() + "/anon/error/log", params: r} - }), e.forEach((function (e) { - return e.send = !0 - })) - } - }, v = function (e, n) { - var t = e.map((function (e) { - return JSON.stringify(e.details) - })), r = JSON.stringify(n); - return -1 !== t.indexOf(r) - }, g = function (e) { - return -1 === (null == e ? void 0 : e.indexOf("tinypass")) - }, h = function (e) { - var n = !!r.__protected__.getLocalStorageItem("tinypassErrorHandlerTestMode"); - return e.tags.indexOf("wgt_err") >= 0 || n || 0 === y(0, 1e3) - }, y = function (e, n) { - var t = e - .5 + Math.random() * (n - e + 1); - return Math.round(t) - }, w = function (e, n) { - return void 0 === e && (e = []), n ? e.concat(n) : e - }; - return { - name: "tinypassErrorHandler", addError: function (e, n) { - try { - var t = {place: n, tags: [s]}; - e instanceof Error ? (t.stack = e.stack, t.message = e.message) : t.stack = JSON.stringify(e), u && (t.tags = w(t.tags, "initError")), l(t) - } catch (e) { - } - }, initialize: function () { - try { - pn.isSandbox() || (n.subscribe(a, d), null === (e = window.addEventListener) || void 0 === e || e.call(window, "error", p), f()) - } catch (e) { - console.warn("Cannot start watching errors", e) - } - var e - } - } - }() - }), pn.tinypassErrorHandler = pn.container.resolve("tinypassErrorHandler"); - pn.container.register("main", { - useValue: function (e) { - void 0 === e && (e = pn.container); - var n = e.resolve("api"), t = e.resolve("cookie"), r = e.resolve("jqUtils"), o = e.resolve("util"), - i = e.resolve("logging"), a = e.resolve("fingerprint"), s = e.resolve("user"), c = e.resolve("sha1"), - u = e.resolve("activetimer"), l = e.resolve("scrollDepth"), d = e.resolve("doubleClickForPublisher"), - f = e.resolve("offer"), m = e.resolve("viewportExit"), v = e.resolve("idle"), - g = e.resolve("experience"), h = e.resolve("pianoId"), y = e.resolve("pianoEsp"), - w = e.resolve("applePayIntegrationService"), _ = e.resolve("datatransApplePayIntegrationService"), - b = e.resolve("cxense"), k = (e.resolve("tinypassErrorHandler"), e.resolve("captchaV3")), - C = pn.container.resolve("postmessage"), I = e.resolve("composerControlPolicy"), - S = e.resolve("analytics"), E = e.resolve("consent"), T = "exrs", P = {minutes: 120}, x = null, - A = "voucher_code", O = "__pvi", M = !1, N = !1, R = {}, L = null, U = { - APPLE_PAY_BT: 25, - APPLE_PAY_SS: 38, - APPLE_PAY_STRIPE: 41, - APPLE_PAY_PW: 42, - DATATRANS_APPLE_PAY: 61 - }, D = new Set(Object.values(U)), j = void 0, V = [], F = !1, B = function () { - if ("iP" === navigator.platform.substr(0, 2)) { - var e = /constructor/i.test(window.HTMLElement), n = window.navigator, t = n.userAgent, - r = !!window.indexedDB; - if ((-1 === t.indexOf("Safari") || -1 === t.indexOf("Version") || n.standalone) && (r || !e) && window.statusbar.visible && (window.webkit && window.webkit.messageHandlers || !e || r)) return !0 - } - return !1 - }(); - var q, z, H, W = function () { - return o.parseJSON(o.__protected__.getCookie(O), !0) || {} - }, G = function () { - return o.getCurrentDomainFromCookie(O, !0) - }, J = function (e, n) { - var t = R; - R = {}; - var r = {}; - for (var o in t) if (t.hasOwnProperty(o)) for (var i in r[o] = r[o] || [], t[o]) t[o].hasOwnProperty(i) && r[o].push(t[o][i]); - _e(r, e, n) - }, Q = function () { - return g.execute.invokeCount > 0 && Nr.refresh(), b.__protected__.clearWidgets(), Nr.get("pageViewId") - }; - - function X() { - function e(e, n, t) { - t = t || "0"; - var r = String(e); - return r.length >= n ? r : new Array(n - r.length + 1).join(t) + r - } - - if (Ce()) return Ie(); - var n = o.randomString(16), t = c.hash([a.getFingerprint(), window.location.href].join("")), - r = new Date; - return [[e(r.getFullYear(), 4), e(r.getMonth() + 1, 2), e(r.getDate(), 2), e(r.getHours(), 2), e(r.getMinutes(), 2), e(r.getSeconds(), 2), e(r.getMilliseconds(), 3)].join("-"), n, t].join("-") - } - - var Y = function (e) { - var n = {path: "/", expires: 1, domain: z.currentDomain}; - return e && (n.domain = e), n - }, $ = function (e, n) { - e.domain = n.domain, e.time = (new Date).getTime(), o.__protected__.setCookieConsent("vx", O, o.toJSON(e, !0), n) - }, K = function (e) { - var n = (new Date).getTime(), t = 6e4 * o.getBrowserTimezoneOffset(), r = o.getAppTimezoneOffset(), - i = new Date(e.time).setHours(0, 0, 0, 0) + 864e5 - t - r; - return e.time + 18e5 < n || n >= i - }, Z = function () { - if (o.__protected__.cameFromFbSubscriptions() || !z.currentDomain) return !1; - var e = o.getReferrer(); - if (L && L === e) return !1; - var n = o.getHostname(e), - t = new RegExp(z.currentDomain.replace(/\./g, "\\.").replace(/^\\./, "\\.?") + "$").test(n); - return Boolean(n) && !t - }, ee = function () { - var e = W(); - (!e || !e.id || !e.time || K(e) || Z()) && (e.id = "v-" + X()), function (e) { - var n = Y(); - e.domain || z.currentDomain ? $(e, n) : o.waitCall("domainIsReceived", (function (t) { - ue(t), n.domain = t, $(e, n) - })) - }(e), z.visit = e - }, ne = function (e, n, t) { - var i, s, c, u = "manual", l = !1; - if (void 0 === n) n = window.location.href; else { - if ("object" != _typeof(n)) throw new Error("First parameter to track page must be a URL or an object"); - var d = n; - if (void 0 === d.url) throw new Error("Must supply url property"); - n = d.url, void 0 !== d.tags && (t = d.tags), void 0 !== d.submitType && (u = d.submitType), l = d.skipPageViewTrack - } - t || (t = pn.tags), pn.customPageUrl && (e.custom_page_url = o.prepareUrlParameter(pn.customPageUrl)), void 0 !== t ? "[object Array]" !== Object.prototype.toString.call(t) && "[object String]" !== Object.prototype.toString.call(t) ? (o.log("Tags must be an array or a comma-separated string, ignoring supplied tags"), t = "") : t instanceof Array && (t = t.join(",")) : t = "", l || H.track(), e.page_session_id = H.pageSessionId, e.track_count = H.trackCount, ye(e), pn.contentCreated ? c = pn.contentCreated : pn.contentCreatedSelector && r.queryEl(pn.contentCreatedSelector) && (c = null === (i = r.queryEl(pn.contentCreatedSelector)) || void 0 === i ? void 0 : i.innerHTML), c && (pn.contentCreated || (pn.contentCreated = c), e.content_created = c), "boolean" == typeof pn.contentIsNative && (e.content_is_native = pn.contentIsNative), pn.zone && (e.zone = pn.zone), pn.itemId && (e.item_id = pn.itemId); - var p = pn.contentSection || ce("section"); - p && (e.content_section = p); - var f = pn.contentAuthor || ce("author"); - f && (e.content_author = f); - var m = pn.contentId || ce("id"); - m && (e.content_id = m); - var v, g = o.__protected__.getCookie("sailthru_hid"); - g && (e.sailthru_hid = g), L && L === o.getReferrer() ? v = "" : (v = o.getReferrer(), L = v), e.referer = o.prepareUrlParameter(v), t && (e.tags = t), e.url = o.prepareUrlParameter(n), e.fingerprint = a.getFingerprint(), e.adblocker = o.getAdblockStatus(), (e.adblocker === o.ADBLOCKER_STATUS.ENABLED_AFTER_DISABLED || e.adblocker === o.ADBLOCKER_STATUS.ENABLED) && (pn.setCustomParam("_abr", o.getAdblockerStatusReason(), "user", !0), pn.setCustomParam("_absh", o.getAdblockerHistoryCookieInfo().cookieValue + "", "user", !0)), e.timezone_offset = o.getBrowserTimezoneOffset(), e.submit_type = u; - var h = se(); - e.visit_id = h, e.new_visit = ie(h); - var y = function () { - return Nr.get("content") || {} - }; - return e.keywords = (null === (s = y().keywords) || void 0 === s ? void 0 : s.join(",")) || "", e.title = y().title || "", e.description = y().description || "", e.content_type = y().type || "", ["keywords", "title", "description", "content_type"].forEach((function (n) { - e[n] = e[n].substr(0, 8192) - })), e.custom_variables = JSON.stringify(pn.customVariables), re(e), E.__protected__.addConsentsToParams(e), e - }, te = function () { - return ae(), {} - }, re = function (e) { - var n = {}; - return pn.customParams && (n = r.deepExtend({}, pn.customParams)), r.isEmptyObject(n) || (e.custom_params = JSON.stringify(n)), e - }, oe = function () { - return H.id - }, ie = function (e) { - var n = z.lastTrackedVisitId !== e; - return z.lastTrackedVisitId = e, n - }, ae = function () { - z.checkForRefresh = !0 - }, se = function () { - return z.checkForRefresh && (ee(), z.checkForRefresh = !1), z.visit.id - }, ce = function (e) { - return (document.head.querySelector("meta[name=" + e + "]") || {}).content - }, ue = function (e) { - z.currentDomain = e - }, le = function () { - return !(pn.endpoint && pn.endpoint.match(/sandbox/)) - }, de = function (e, t, r, a) { - pn.aid && 0 !== pn.aid.length ? !le() || (i.setTime("track", Math.floor(performance.now() - window.pnInitPerformance)), o.waitCall("refreshAccessTokenList", (function () { - o.waitCall("offerCreate", (function () { - o.startCall("pageTrack"); - n.callApi(e, t, (function (e) { - o.doneCall("pageTrack"), r && r(e) - }), pn.getExperienceEndpoint(!1) + "/api/v3", a) - })) - }))) : o.log("Must supply a valid tp.aid before calling tp.init()") - }, pe = function () { - M && H.trackCount > 0 && (fe(), he()) - }, fe = function (e) { - if (le() && !I.denyAll) try { - te(), m.isInitialized() && m.resetSumOfCodesDirectionToDefault(), ge() - } catch (e) { - o.error("main: error on tracking page unload event: ", e) - } - }, me = function () { - N || (N = !0, fe(!0)) - }, ve = function () { - M = !0 - }, ge = function () { - M = !1 - }, he = function () { - u.resetRecordedTime() - }, ye = function (e) { - e && (e.pageview_id = oe()) - }, we = function (e, n) { - if (le() && !I.denyAll) try { - pe(); - var t = ne({}, e, n); - de("/page/track", t), ve() - } catch (e) { - o.error("main: error on page tracking event: ", e) - } - }, _e = function (e, n, t) { - }, be = function () { - var e = o.getQueryParamByName(A); - e && f.startRedeemVoucher({voucherCode: e}) - }, ke = function () { - return x || (x = new Promise((function (e) { - if (null !== o.__protected__.getLocalStorageItem(T) && e({has_active_apple_pay_card: o.__protected__.getLocalStorageItem(T)}), !pn.applePayMerchantId) return e({has_active_apple_pay_card: null}), x; - Ee((function (e) { - g.registerCallback("experienceFlow", (function () { - j = !0, e(!0) - })) - })).then((function (n) { - var t = function (n) { - e({has_active_apple_pay_card: n}), o.__protected__.setLocalStorageItem("vx", T, n, P) - }; - n ? w.__protected__.applePayCanMakePaymentsWithActiveCard().then(t) : t(null) - })) - }))) - }; - - function Ce() { - return b.__protected__.isActivated() - } - - var Ie = function () { - return o.__protected__.randomStringCxCompatible() - }; - - function Se(e) { - return function (n) { - var t = n.params; - void 0 === j && (j = function (e) { - if (!Array.isArray(e) || !e.length) return !1; - for (var n = 0, t = e; n < t.length; n++) { - var r = t[n]; - if (D.has(r)) return !0 - } - return !1 - }(t)), V = t || [], e(j) - } - } - - function Ee(e) { - return void 0 !== j ? Promise.resolve(j) : B ? (j = !1, Promise.resolve(!1)) : new Promise((function (n) { - e(n) - })) - } - - var Te = function () { - Ee((function (e) { - C.subscribe("ACTIVE_PAYMENT_METHODS_IDS_INITIALIZED", Se(e)), C.subscribe("MY_ACCOUNT_ACTIVE_PAYMENT_METHODS_IDS_INITIALIZED", Se(e)) - })).then((function (e) { - !e || (!F && r.isFunction(w.initialize) && (F = !0, w.initialize()), Pe(V)) - })) - }, Pe = function (e) { - var n = -1 !== e.indexOf(U.DATATRANS_APPLE_PAY); - r.isFunction(_.initialize) && n && _.initialize() - }; - return p(p({name: "main", fetchVisitId: se}, Br({ - trackPageUnloadIfNecessary: pe, - trackPageUnload: fe, - unregisterTrackUnload: ge, - isRegisteredTrackUnload: function () { - return M - }, - registerTrackUnload: ve - })), { - externalResourcesDelay: ke, - pageTrack: we, - trackPage: function (e, n) { - return we(e, n) - }, - buildPageTrackParams: ne, - fetchPageViewId: oe, - resetTimer: he, - resetAds: function () { - d.resetAds() - }, - trackAd: function (e, n, t) { - R[e] || (R[e] = {}), R[e][n] = t, q() - }, - init: function () { - if (Nr.isReady || (o.log("DataLayer should be initialized while calling tp.init()"), o.log("DataLayer was initialized by default configs"), Nr.init()), pn.aid && 0 !== pn.aid.length) { - q = o.debounce(J, 3e3), z = { - currentDomain: G(), - lastTrackedVisitId: W().id, - visit: {}, - checkForRefresh: !1 - }, H = { - id: Q(), pageSessionId: "s-" + X(), trackCount: 0, tracked: !1, track: function () { - H.tracked ? H.id = Q() : H.tracked = !0, H.trackCount++ - } - }, Ce() && pn.cxenseSiteId && Nr.set("siteId", pn.cxenseSiteId), ee(), pn.isMockMode || (r.isFunction(d.initialize) && d.initialize(), r.isFunction(u.initialize) && u.initialize(), r.isFunction(l.initialize) && l.initialize()), r.isFunction(v.initialize) && v.initialize(), Te(), r.isFunction(y.__protected__.init) && y.__protected__.init().catch((function () { - })), r.isFunction(s.refreshAccessToken) && s.refreshAccessToken(), ke(); - var e = s.getProvider(); - e.getName() === h.getName() && e.__protected__.extendUserToken(), k.addCaptchaV3(); - var n = "cxTrackingId", t = o.getQueryParamByName(n); - t && (o.removeQueryParamByName(n), S.log.event({ - eventType: wo.LOG_AUTO_MICRO_CONVERSION, - payload: { - trackingId: t, - eventGroupId: "click", - eventType: yo.EXTERNAL_LINK, - customParams: {href: location.href, source: "CX"} - } - })) - } else o.log("Must supply a valid tp.aid before calling tp.init()") - }, - checkToRunWidgetImmediately: function () { - be(), "pianoId" === s.getProvider().name && o.waitCall("offerCreate", (function () { - h.__protected__.checkVerificationCode() - })), h.checkAndShowEmailIsNotConfirmed(), r.isFunction(f.checkThreeDSRedirect) && f.checkThreeDSRedirect() - }, - trackAds: _e, - appHasApplePay: function () { - return j - }, - __private__: p(p({ - VISIT_ID_COOKIE: O, - VOUCHER_QUERY: A, - collectedAds: R, - unloadRegistered: M, - unloadTriggered: N, - getPageView: function () { - return H - }, - getVisitContainer: function () { - return z - }, - track: de, - checkVoucher: be, - setPageViewId: ye, - currentEnvironmentSupportsPageTrack: le, - invalidateLastVisit: function () { - var e = Y(); - t.remove(O, e) - }, - getCurrentDomain: G, - loadLastVisit: W, - setVisitCurrentDomain: ue, - saveVisitCookie: $, - getVisitCookieOptions: Y, - isTimeExpired: K, - refreshVisit: ee, - generatePageViewId: X, - trackCollectedAds: J - }, Br({ - buildPageUnloadParams: te, unloadHandler: function () { - M && me(), J(!0, "beacon_request"), g.__protected__.sendStatisticsExecutedNodes("unload") - }, unloadAction: me - })), {buildPageCustomParams: re, hasExternalReferrer: Z}) - }) - }() - }), pn.main = pn.container.resolve("main"); - var Pa = function () { - var e = null, n = function (n) { - e = n && p(p({}, e), n), Nr.isReady && n && (Nr.set("content", e), e = null) - }; - return { - set: function (e, t) { - var r; - return n(((r = {})[e] = t, r)) - }, get: function (n) { - var t; - return Nr.isReady ? null === (t = Nr.get("content")) || void 0 === t ? void 0 : t[n] : null == e ? void 0 : e[n] - }, init: function () { - return n(e) - } - } - }(), xa = {predefineValues: []}; - window.tp && window.tp.length && (xa.predefineValues = b([], window.tp || [], !0)), pn.tpPredefinedOptions = xa, pn.container.register("tpPredefinedOptions", {useValue: xa}); - var Aa = function () { - function e(e, n, t, r, o, i, a, s) { - this.tpPredefinedOptions = e, this.css = n, this.tinypassErrorHandler = t, this.gaService = r, this.ga4Service = o, this.gaCollectingService = i, this.utilService = a, this.consent = s, this.isDataLayerEnabled = !0, this.fullTPVersion = !1, this.isInitialized = !1, this.aid = "", this.isSensitiveDataProtectionEnabled = !1, this.affiliateTokenName = "affiliateToken", this.cxCdnUrl = "https://cdn.cxense.com", this.c1XLoadCce = !0, this.c1XIntegrationVersion = "v2", this.cxenseLibAwaitingTimeout = 0, this.cxenseLibAwaitingRetryCount = 0, this.trackPages = !0, this.debug = !1, this.userRef = "", this.usePianoIdLiteUserProvider = !1, this.useTinypassAccounts = !1, this.useCondeUserProvider = !1, this.useGigyaUserProvider = !1, this.usePianoIdUserProvider = !1, this.useAidSpecifiedCookies = !1, this.sandbox = !1, this.zIndexes = { - backdrop: 3e5, - modal: 300050, - close: 300100 - }, this.requestUserAuthForLinkedTerm = !0, this.customPreChecks = [], this.customParams = {}, this.externalLibraries = [], this.externalLibrariesCallbacks = [], this.customVariables = {}, this.locale = "", this.trackPageView = !0, this.redirectToFbTimeout = 3, this.isDoubleOptInCheckOnAccessCheckEnabled = !1, this.isMockMode = !1, this.inappBrowserReturn = !1, this.events = [], this.appList = [], this.cacheableShowTemplate = !0, this.initCallbacks = [], this.mainModuleInited = !1, this.restCallbacks = [], this.initTries = 0, this.listOfAddedHandlers = [], this.callbacks = [], n.loadOfferCss() - } - - return Object.defineProperty(e.prototype, "tags", { - get: function () { - var e; - return null === (e = Pa.get("tags")) || void 0 === e ? void 0 : e.join(",") - }, set: function (e) { - var n; - n = Array.isArray(e) ? e : "string" == typeof e ? [e] : null, Pa.set("tags", n) - }, enumerable: !1, configurable: !0 - }), Object.defineProperty(e.prototype, "contentIsNative", { - get: function () { - return Pa.get("isNative") - }, set: function (e) { - Pa.set("isNative", e) - }, enumerable: !1, configurable: !0 - }), Object.defineProperty(e.prototype, "contentId", { - get: function () { - return Pa.get("id") - }, set: function (e) { - Pa.set("id", e) - }, enumerable: !1, configurable: !0 - }), Object.defineProperty(e.prototype, "contentCreated", { - get: function () { - var e; - return (null === (e = Pa.get("createdAt")) || void 0 === e ? void 0 : e.toString()) || "" - }, set: function (e) { - Pa.set("createdAt", e) - }, enumerable: !1, configurable: !0 - }), Object.defineProperty(e.prototype, "contentAuthor", { - get: function () { - var e; - return (null === (e = Pa.get("authors")) || void 0 === e ? void 0 : e.join(",")) || "" - }, set: function (e) { - Pa.set("authors", [e]) - }, enumerable: !1, configurable: !0 - }), Object.defineProperty(e.prototype, "contentSection", { - get: function () { - return Pa.get("section") - }, set: function (e) { - Pa.set("section", e) - }, enumerable: !1, configurable: !0 - }), Object.defineProperty(e.prototype, "zone", { - get: function () { - return Pa.get("zone") - }, set: function (e) { - Pa.set("zone", e) - }, enumerable: !1, configurable: !0 - }), e.prototype.initTp = function () { - var e = this; - try { - var n = this.tpPredefinedOptions.predefineValues; - if (this.tpPredefinedOptions.predefineValues = [], n.forEach((function (n) { - "function" == typeof n[1] ? "init" === n[0] ? e.initCallbacks.push(n[1]) : e.restCallbacks.push(n) : "init" === n[1] && "function" == typeof n[2] ? e.initCallbacks.push(n[2]) : e.push(n) - })), !this.aid && this.initTries < 10) return this.initTries++, void setTimeout((function () { - return e.initTp() - }), 50); - if (!this.aid) return; - for (this.tinypassErrorHandler.initialize(); this.restCallbacks.length;) try { - var t = this.restCallbacks.shift(); - this.push(t) - } catch (e) { - console.error(e), pn.tinypassErrorHandler.addError(e) - } - this._init(), this.externalLibraries.length && this.realizeExternalLibraries(), this.isInitialized = !0, window.___tp = function () { - } - } catch (e) { - pn.tinypassErrorHandler.addError(e, "initTP"), console.error("init PN process error", e) - } - }, e.prototype.realizeExternalLibraries = function () { - var e = this, n = []; - this.externalLibraries.forEach((function (t) { - var r = e.utilService.requireJsFile(t); - n.push(r) - })), Promise.all(n).then((function () { - if (e.externalLibraries = [], e.externalLibrariesCallbacks) for (var n = 0; n < e.externalLibrariesCallbacks.length; ++n) Ma.externalLibrariesCallbacks[n](); - Ma.externalLibrariesCallbacks = [] - })) - }, e.prototype.push = function () { - for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - var t, r, o; - for (t = 0; t < e.length; t++) if ("string" == typeof (r = (o = e[t]).shift()) || r instanceof String) { - if (!this[r]) return void console.error("Undefined method " + r); - this[r].apply(this, o) - } else r.apply(this, o) - }, e.prototype.init = function (e) { - this.isInitialized ? (this.mainModuleInited || (this.mainModuleInited = !0, this.initMainModuleAfterInitCbk()), e && e()) : (e && this.tpPredefinedOptions.predefineValues.push(["init", e]), this.initTp()) - }, e.prototype._init = function () { - var e = {}; - if ((this.cookieDomain || this.cookiePath) && (e.cookieDefault = { - domain: this.cookieDomain, - path: this.cookiePath - }), Nr.init(e), Pa.init(), this.cxenseSiteId && Nr.set("siteId", this.cxenseSiteId), pn.consent.__protected__.init(), pn.util && pn.util.hasQueryParamByName && pn.util.hasQueryParamByName("xpdebug") && pn.setDebug(!0), pn.util.setTpccCookies(), pn.util.isSafariOrIOsUiWebView() && !pn.user.isUserValid() && pn.util.getQueryParamByName("userToken")) { - var n = pn.util.getQueryParamByName("cookieDomain"), t = pn.util.getQueryParamByName("userToken"), - r = pn.util.getQueryParamByName("tokenListValue"); - pn.util.setAccessTokenListCookie({ - cookie_domain: n, - value: r - }, t), pn.util.removeQueryParamByName("userToken"), pn.util.removeQueryParamByName("cookieDomain"), pn.util.removeQueryParamByName("tokenListValue") - } - if (this.mainModuleInited || (this.mainModuleInited = !0, this.initMainModuleAfterInitCbk()), pn.itp.init(), !this.aid) { - var o = new Error("Incorrect aid integration: ".concat(Ma.aid, " url: ").concat(window.location.href)); - this.tinypassErrorHandler.addError(o) - } - pn.logging.setTime("startInit", Math.floor(window.pnInitPerformance)), pn.logging.setTime("completeInit", Math.floor(performance.now() - window.pnInitPerformance)) - }, e.prototype.initMainModuleAfterInitCbk = function () { - for (pn.user.providerInit(), this.appList.indexOf(this.aid) < 0 && (this.appList.push(this.aid), pn.main.init()); this.initCallbacks.length;) try { - this.initCallbacks.shift()() - } catch (e) { - console.error(e), pn.tinypassErrorHandler.addError(e) - } - if (pn.main.checkToRunWidgetImmediately(), this.events) { - for (var e = 0; e < this.events.length; e++) this.events[e](); - this.events = [] - } - }, e.prototype.setAid = function (e) { - this.aid = e - }, e.prototype.enableSensitiveDataProtection = function (e) { - this.isSensitiveDataProtectionEnabled = e - }, e.prototype.reload = function () { - location.href = pn.util.removeVoucherCodeFromUrl(location.href) - }, e.prototype.removeSharedAccountCodeFromUrl = function () { - location.href = pn.util.removeSharedAccountCodeFromUrl(location.href) - }, e.prototype.setGAClientId = function (e) { - this.gaClientId = e, this.gaService.recreateWithClientId(e) - }, e.prototype.getGAClientId = function () { - return this.gaClientId - }, e.prototype.enableGACrossDomainLinking = function (e) { - var n = this; - this.gaCrossDomainLinking = !0; - var t = Date.now(); - !function r() { - var o = window.ga; - if (o && "function" == typeof o) try { - o((function (t) { - if (void 0 !== t && void 0 === e) n.setGAClientId(t.get("clientId")); else if (void 0 !== e) for (var r = o.getAll(), i = 0; i < r.length; i++) { - var a = r[i]; - if (a.get("trackingId") === e) { - n.setGAClientId(a.get("clientId")); - break - } - } - })) - } catch (e) { - } else Date.now() - t < 6e4 && setTimeout(r, 500) - }() - }, e.prototype.setExcludedGAEvents = function (e) { - this.gaCollectingService.setExcludedEvents(e) - }, e.prototype.setGA4Config = function (e) { - this.ga4Service.setGa4Config(e) - }, e.prototype.setTags = function (e) { - this.tags = e instanceof Array ? e.join(",") : e - }, e.prototype.setCookieDomain = function (e) { - "." !== e[0] && (e = "." + e), this.cookieDomain = e - }, e.prototype.setCookiePath = function (e) { - this.cookiePath = e - }, e.prototype.setDontScrollTopModal = function (e) { - this.dontScrollTopModal = e - }, e.prototype.setUseExperience = function (e) { - this.useExperience = e - }, e.prototype.setExperimentalIosModal = function (e) { - this.experimentalIosModal = e - }, e.prototype.setApplePayMerchantId = function (e) { - this.applePayMerchantId = e - }, e.prototype.setContentIsNative = function (e) { - this.contentIsNative = e - }, e.prototype.setComposerHost = function (e) { - this.composerHost = e - }, e.prototype.setEndpoint = function (e) { - this.endpoint = e - }, e.prototype.setAffiliateTokenName = function (e) { - this.affiliateTokenName = e - }, e.prototype.setEspEndpoint = function (e) { - this.espEndpoint = e - }, e.prototype.setCxCdnUrl = function (e) { - this.cxCdnUrl = e - }, e.prototype.setC1XLoadCce = function (e) { - this.c1XLoadCce = e - }, e.prototype.setC1XIntegrationVersion = function (e) { - this.c1XIntegrationVersion = e - }, e.prototype.setDataLayerEnabled = function (e) { - this.isDataLayerEnabled = e - }, e.prototype.setCxenseSiteId = function (e) { - this.cxenseSiteId = e, Nr.set("siteId", e) - }, e.prototype.setCxenseLibAwaitingTimeout = function (e) { - this.cxenseLibAwaitingTimeout = e - }, e.prototype.setCxenseLibAwaitingRetryCount = function (e) { - this.cxenseLibAwaitingRetryCount = e - }, e.prototype.setContentId = function (e) { - this.contentId = e - }, e.prototype.setTrackPages = function (e) { - this.trackPages = e - }, e.prototype.setDebug = function (e) { - this.debug = e - }, e.prototype.setUserRef = function (e) { - this.userRef = e - }, e.prototype.setUsePianoIdLiteUserProvider = function (e) { - this.usePianoIdLiteUserProvider = e - }, e.prototype.setExternalJWT = function (e) { - this.externalJWT = e - }, e.prototype.getExternalJWT = function () { - return this.externalJWT - }, e.prototype.setUseTinypassAccounts = function (e) { - this.useTinypassAccounts = e - }, e.prototype.setUseCondeUserProvider = function (e) { - this.useCondeUserProvider = e - }, e.prototype.setUseGigyaUserProvider = function (e) { - this.useGigyaUserProvider = e - }, e.prototype.setUsePianoIdUserProvider = function (e) { - this.usePianoIdUserProvider = e - }, e.prototype.setPianoIdUrl = function (e) { - this.pianoIdUrl = e - }, e.prototype.setItemId = function (e) { - this.itemId = e - }, e.prototype.setUseAidSpecifiedCookies = function (e) { - this.useAidSpecifiedCookies = e - }, e.prototype.setSandbox = function (e) { - this.sandbox = e - }, e.prototype.setContentCreatedSelector = function (e) { - this.contentCreatedSelector = e - }, e.prototype.setContentCreated = function (e) { - this.contentCreated = e - }, e.prototype.setContentAuthor = function (e) { - this.contentAuthor = e - }, e.prototype.setContentSection = function (e) { - this.contentSection = e - }, e.prototype.setZone = function (e) { - this.zone = e || "" - }, e.prototype.isNonProdEndpoint = function () { - return "sandbox" === this.endpoint || /^https?:\/\/(.*sandbox.*|\d+\.dev)\.(tinypass\.com|piano\.io)/i.test(this.endpoint) - }, e.prototype.setZIndexes = function (e) { - this.zIndexes = e - }, e.prototype.setCustomPreCheck = function (e) { - this.customPreChecks.push(e) - }, e.prototype.setLinkTermSelected = function (e) { - this.linkedTermSelected = e - }, e.prototype.setLinkedTermSelected = function (e) { - this.linkedTermSelected = e - }, e.prototype.setRequestUserAuthForLinkedTerm = function (e) { - this.requestUserAuthForLinkedTerm = e - }, e.prototype.setCustomParam = function (e, n, t, r) { - var o = ["content", "user", "request"]; - if (t || (t = "content"), t = t.toLowerCase(), o.indexOf(t) < 0) throw new Error("Undefined scope " + t + "\nAvailable scopes: " + o.join(", ")); - void 0 === this.customParams[t] && (this.customParams[t] = {}), (void 0 === this.customParams[t][e] || r) && (this.customParams[t][e] = []); - for (var i = [].concat(n), a = 0; a < i.length; a++) { - if ("string" != typeof i[a]) throw new Error("setCustomParam accept only string values or array of strings"); - this.customParams[t][e].push(i[a]) - } - }, e.prototype.resetCustomParam = function (e) { - e || (e = "content"), delete this.customParams[e] - }, e.prototype.addExternalLibrary = function (e, n) { - if ("string" == typeof e) this.externalLibraries.push(e); else for (var t = 0; t < e.length; ++t) this.externalLibraries.push(e[t]); - n && this.externalLibrariesCallbacks.push(n), this.isInitialized && this.realizeExternalLibraries() - }, e.prototype.setCustomVariable = function (e, n) { - this.customVariables[e] = n - }, e.prototype.saveCustomVariablesToLocalStorage = function (e) { - var n = function (e, n) { - pn.consent.__protected__.async((function (t) { - var r; - return null === (r = t.composer) || void 0 === r ? void 0 : r.localStorage.set(e, n) - })) - }, t = "__tp-customVariables"; - n(t, JSON.stringify(this.customVariables)), e && n(t + "-expiration", Math.floor((new Date).getTime() / 1e3) + e + "") - }, e.prototype.restoreCustomVariablesFromLocalstorage = function () { - if ("localStorage" in window && null !== window.localStorage) { - var e = Ma.util.__protected__.getLocalStorageItem("customVariables"); - if (Ma.util.__protected__.removeLocalStorageItem("customVariables"), e) for (var n in e) this.customVariables[n] = e[n] - } - }, e.prototype.handler = function (e, n) { - var t = this.registerPrefixedEvents; - return function () { - for (var r, o = [pn.offer, pn.template, pn.meter, pn.experience, pn.myaccount, pn.pianoId, pn.tinypassLogin, pn.swg, pn.user, pn.credit], i = 0; i < o.length; i++) { - var a = o[i]; - if (a) { - var s = a.registerCallback(e, n); - void 0 !== s && (r = s), void 0 !== (s = t(a, e, n)) && (r = s) - } - } - return r - } - }, e.prototype.registerPrefixedEvents = function (e, n, t) { - for (var r, o, i, a = [{module: "offer", prefix: "checkout"}, { - module: "pianoId", - prefix: "pianoId" - }], s = 0; s < a.length; s++) { - var c = a[s]; - e.name === c.module && n.substring(0, c.prefix.length) === c.prefix && (r = n.substring(c.prefix.length, c.prefix.length + 1).toLowerCase() + n.substring(c.prefix.length + 1, n.length), void 0 !== (o = e.registerCallback(r, t)) && (i = o)) - } - return i - }, e.prototype.addHandler = function (e, n) { - var t = this.handler(e, n); - this.isInitialized ? t() : this.events.push(t), this.listOfAddedHandlers.push(e) - }, e.prototype.getListOfAddedHandlers = function () { - return this.listOfAddedHandlers - }, e.prototype.setTrackPageview = function (e) { - this.trackPageView = e - }, e.prototype.setLocale = function (e) { - var n = this; - this.locale = e, this.utilService.__protected__.setCookie("LANG", this.locale), this.isInitialized ? this.changeLocale(e) : this.initCallbacks.push((function () { - n.changeLocale(e) - })) - }, e.prototype.setPageURL = function (e) { - this.customPageUrl = e - }, e.prototype.setAdblockerCookieName = function (e) { - this.adblockerCookieName = e - }, e.prototype.setMaxCookieExpirationInDays = function (e) { - var n = "string" == typeof e ? parseInt(e, 10) : e; - if (!(isFinite(n) && n > 0)) throw new Error("maxCookieExpirationInDays must be a positive number"); - this.maxCookieExpirationInDays = n - }, e.prototype.getMaxCookieExpirationInDays = function () { - return this.maxCookieExpirationInDays - }, e.prototype.setFbPixelId = function (e) { - this.fbPixelId = e - }, e.prototype.getFbPixelId = function () { - return this.fbPixelId - }, e.prototype.setRedirectToFbTimeout = function (e) { - this.redirectToFbTimeout = e - }, e.prototype.enableDoubleOptInCheckOnAccessCheck = function () { - this.isDoubleOptInCheckOnAccessCheckEnabled = !0 - }, e.prototype.setCloudflareWorkerUrl = function (e) { - this.cloudflareWorkerUrl = e - }, e.prototype.getEndpoint = function (e, n) { - return e.lastIndexOf("/") === e.length - 1 && (e = e.substr(0, e.length - 1)), e.match(/\/v3$/) && (e = e.substr(0, e.lastIndexOf("/v3"))), e.match(/\/api$/) && (e = e.substr(0, e.lastIndexOf("/api"))), e.match(/^(http[s]?:)?\/\//) || (e = "//" + e), void 0 !== n && n && !e.match(/^http[s]?:/) && (e = "https:" + e), e - }, e.prototype._getEndpointRoot = function (e) { - var n = "https://buy.tinypass.com"; - return !0 === this.sandbox && (this.endpoint = "sandbox"), this.endpoint && ("sandbox" === this.endpoint ? n = "https://sandbox.tinypass.com" : "prod" !== this.endpoint && "production" !== this.endpoint && (n = this.endpoint)), this.getEndpoint(n, e) - }, e.prototype._getApiEndpoint = function () { - return this._getEndpointRoot() + "/api/v3" - }, e.prototype._getTrackingEndpoint = function (e) { - void 0 === e && (e = ""); - var n = e || this.endpoint; - return !0 === this.sandbox ? n = "https://sandbox.tinypass.com" : (void 0 === this.endpoint || null === this.endpoint || "" === this.endpoint || "prod" === this.endpoint || "production" === this.endpoint || this.endpoint.match(/(buy|api|api-v3)\.tinypass\.com/)) && (n = e || "https://api-v3.tinypass.com"), this.getEndpoint(n, !0) - }, e.prototype._getExperienceEndpoint = function (e) { - var n = "https://c2.piano.io"; - return this.composerHost ? n = this.composerHost : (!0 === this.sandbox && (this.endpoint = "sandbox"), this.endpoint && ("sandbox" === this.endpoint ? n = "https://c2-sandbox.piano.io" : "prod" !== this.endpoint && "production" !== this.endpoint && (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = this.endpoint).replace("//buy.tinypass.com", "//c2.piano.io")).replace("//api.tinypass.com", "//c2.piano.io")).replace("//buy-au.piano.io", "//c2-au.piano.io")).replace("//api-au.piano.io", "//c2-au.piano.io")).replace("//buy-ap.piano.io", "//c2-ap.piano.io")).replace("//api-ap.piano.io", "//c2-ap.piano.io")).replace("//buy-eu.piano.io", "//c2-eu.piano.io")).replace("//api-eu.piano.io", "//c2-eu.piano.io")).replace("//sandbox.tinypass.com", "//c2-sandbox.piano.io")).replace("//sandbox.piano.io", "//c2-sandbox.piano.io")).replace("//experience-au.piano.io", "//c2-au.piano.io")).replace("//experience-eu.piano.io", "//c2-eu.piano.io")).replace("//experience-ap.piano.io", "//c2-ap.piano.io")).replace("//experience.tinypass.com", "//c2.piano.io")).replace("//buy.piano.io", "//c2.piano.io")).replace("//api.piano.io", "//c2.piano.io")).replace("//experience.piano.io", "//c2.piano.io")))), this.getEndpoint(n, e) - }, e.prototype._isSandbox = function () { - return this.sandbox || "sandbox" === this.endpoint || !!this.endpoint && -1 !== this.endpoint.indexOf("//sandbox.tinypass.com") - }, e.prototype.changeLocale = function (e) { - pn.pianoId.isConfigured() && pn.pianoId.updateLang(e), pn.postmessage.broadcast("langChanged", {lang: e}) - }, e.prototype.pageTrack = function (e, n) { - pn.main.pageTrack(e, n) - }, e.prototype.trackPage = function (e, n) { - pn.main.pageTrack(e, n) - }, e.prototype.trackPageUnload = function () { - pn.main.trackPageUnload() - }, e.prototype.trackAds = function (e) { - pn.main.trackAds(e) - }, e.prototype.trackAd = function (e, n, t) { - pn.main.trackAd(e, n, t) - }, e.prototype.onLoad = function (e) { - this.callbacks.push(e) - },e.prototype.getEndpointRoot = function (e) { - return this._getEndpointRoot(e) - },e.prototype.getExperienceEndpoint = function (e) { - return this._getExperienceEndpoint(e) - },e.prototype.getApiEndpoint = function () { - return this._getApiEndpoint() - },e.prototype.getTrackingEndpoint = function (e) { - return void 0 === e && (e = ""), this._getTrackingEndpoint(e) - },e.prototype.isSandbox = function () { - return this._isSandbox() - },e.prototype.setCacheableShowTemplate = function (e) { - this.cacheableShowTemplate = e - },e.prototype.getCacheableShowTemplate = function () { - return this.cacheableShowTemplate - },e.prototype.setSssAccessToken = function (e) { - this.sssAccessToken = e - },e.prototype.setSssCallbackUrl = function (e) { - this.sssCallbackUrl = e - },e.prototype.setSssMode = function (e) { - this.sssMode = e - },e.prototype.setSssOriginUrl = function (e) { - this.sssOriginUrl = e - },e.prototype.verifySignature = function (e, n, t) { - var r = this.utilService.asUint8Array(window.atob(t)), o = this.utilService.asUint8Array(e), - i = this.utilService.asUint8Array(window.atob(n)), a = { - name: "RSASSA-PKCS1-v1_5", - modulusLength: 2048, - publicExponent: new Uint8Array([1, 0, 1]), - hash: {name: "SHA-256"} - }; - return crypto.subtle.importKey("spki", r, a, !1, ["verify"]).then((function (e) { - return crypto.subtle.verify(a, e, i, o) - })) - },e = function (e, n, t, r) { - var o, i = arguments.length, a = i < 3 ? n : null === r ? r = Object.getOwnPropertyDescriptor(n, t) : r; - if ("object" == ("undefined" == typeof Reflect ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, n, t, r); else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(n, t, a) : o(n, t)) || a); - return i > 3 && a && Object.defineProperty(n, t, a), a - }([pn.singleton(), m(0, pn.inject("tpPredefinedOptions")), m(1, pn.inject("css")), m(2, pn.inject("tinypassErrorHandler")), m(3, pn.inject("gaService")), m(4, pn.inject("ga4Service")), m(5, pn.inject("gaCollectingService")), m(6, pn.inject("util")), m(7, pn.inject("consent")), v("design:paramtypes", [Object, Object, Object, Object, Object, Object, Object, Object])], e),e - }(); - pn.container.registerSingleton("tinypass", Aa); - var Oa = pn.container.resolve("tinypass"); - [{n: "polyfill", hM: !1}, {n: "predefine", hM: !1}, {n: "predefineTinypass", hM: !1}, { - n: "checkTinypass", - hM: !1 - }, {n: "css", hM: !0}, {n: "ajax", hM: !0}, {n: "jqUtils", hM: !0}, {n: "cookie", hM: !0}, { - n: "localStorage", - hM: !0 - }, {n: "versionService", hM: !0}, {n: "itp", hM: !0}, {n: "util", hM: !0}, {n: "api", hM: !0}, { - n: "postmessage", - hM: !0 - }, {n: "eventUtils", hM: !0}, {n: "janrain", hM: !0}, {n: "sha1", hM: !0}, { - n: "containerUtils", - hM: !0 - }, {n: "tinypassLogin", hM: !0}, {n: "tinypassAccounts", hM: !0}, {n: "condeUserProvider", hM: !0}, { - n: "gigya", - hM: !0 - }, {n: "jwtDecode", hM: !0}, {n: "log", hM: !0}, {n: "logging", hM: !0}, { - n: "observer", - hM: !0 - }, {n: "gaCollectingService", hM: !0}, {n: "gaService", hM: !0}, {n: "ga4Service", hM: !0}, { - n: "acp", - hM: !0 - }, {n: "pianoIdLite", hM: !0}, {n: "pianoId", hM: !0}, {n: "user", hM: !0}, { - n: "viewportExit", - hM: !0 - }, {n: "template", hM: !0}, {n: "offer", hM: !0}, {n: "myaccount", hM: !0}, {n: "meter", hM: !0}, { - n: "fingerprint", - hM: !0 - }, {n: "scrollDepth", hM: !0}, {n: "idle", hM: !0}, {n: "interaction", hM: !0}, { - n: "recWidgetService", - hM: !0 - }, {n: "piano", hM: !0}, {n: "pianoEsp", hM: !0}, {n: "swg", hM: !0}, {n: "fbpixel", hM: !0}, { - n: "fbsubscriptions", - hM: !0 - }, {n: "cxense", hM: !0}, {n: "experience", hM: !0}, {n: "ifvisible", hM: !0}, { - n: "activetimer", - hM: !0 - }, {n: "doubleClickForPublisher", hM: !0}, {n: "applePay", hM: !0}, { - n: "goCardlessDropin", - hM: !0 - }, {n: "applePayIntegrationService", hM: !0}, { - n: "datatransApplePayIntegrationService", - hM: !0 - }, {n: "stripeApplePayIntegrationService", hM: !0}, {n: "obi3DSChallenge", hM: !0}, { - n: "amp", - hM: !0 - }, {n: "performanceMetrics", hM: !0}, {n: "doubleOptIn", hM: !0}, {n: "newscycle", hM: !0}, { - n: "captchaV3", - hM: !0 - }, {n: "main", hM: !0}, {n: "tinypassErrorHandler", hM: !0}, {n: "tinypass", hM: !0}, { - n: "postProcessing", - hM: !1 - }, {n: "clientConfiguration", hM: !0}, {n: "microsoftQuickAuth", hM: !0}].forEach((function (e) { - e.hM && !pn.container.isRegistered(e.n) && pn.container.resolve(e.n) - })), Object.assign(pn, Oa), Object.setPrototypeOf(pn, Aa.prototype); - var Ma = window.tp = pn; - pn.initTp() -}(); diff --git a/data/verify b/data/verify deleted file mode 100644 index bace270..0000000 --- a/data/verify +++ /dev/null @@ -1,7 +0,0 @@ -jsonp5216({ - "error" : "access_denied", - "site_cookie_domain" : ".fortune.com", - "email_confirmation_required" : null, - "extend_expired_access_enabled" : false, - "authorized_by_sso" : false -}) \ No newline at end of file diff --git a/data/verify_002 b/data/verify_002 deleted file mode 100644 index b309c88..0000000 --- a/data/verify_002 +++ /dev/null @@ -1,7 +0,0 @@ -jsonp5215({ - "error" : "access_denied", - "site_cookie_domain" : ".fortune.com", - "email_confirmation_required" : null, - "extend_expired_access_enabled" : false, - "authorized_by_sso" : false -}) \ No newline at end of file diff --git a/data/whitecloseicon.png b/data/whitecloseicon.png deleted file mode 100644 index 017250e..0000000 Binary files a/data/whitecloseicon.png and /dev/null differ