@bigcommerce/checkout-sdk 1.213.1 → 1.214.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +3 -3
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +10 -0
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +6 -6
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/dist/embedded-checkout.js +1 -1
- package/dist/embedded-checkout.umd.js +3 -3
- package/dist/embedded-checkout.umd.js.map +1 -1
- package/dist/hosted-form.js +1 -1
- package/dist/hosted-form.umd.js +2 -2
- package/dist/hosted-form.umd.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/interfaces/browserinfo.md +54 -0
- package/docs/interfaces/creditcardinstrument.md +7 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=209)}({0:function(t,e){t.exports=require("tslib")},100:function(t,e,n){"use strict";var r=n(0);function o(t,e,n){if("function"!=typeof n.value)return n;var o=n.value;return{get:function(){var t=o.bind(this);return Object.defineProperty(this,e,Object(r.__assign)(Object(r.__assign)({},n),{value:t})),t},set:function(t){o=t}}}e.a=function(t,e,n){return e&&n?o(t,e,n):function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(t);return Object.getOwnPropertyNames(t.prototype).forEach((function(n){var r=Object.getOwnPropertyDescriptor(t.prototype,n);r&&"constructor"!==n&&Object.defineProperty(e.prototype,n,o(t.prototype,n,r))})),e}(t)}},109:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.StyleConfigured="STYLE_CONFIGURED"}(r||(r={}))},116:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(54);function o(t){return Object(r.a)(0===t.hostname.indexOf("www")?t.href:t.href.replace(t.hostname,"www."+t.hostname))}},133:function(t,e){t.exports=require("iframe-resizer")},134:function(t,e){t.exports=require("iframe-resizer/js/iframeResizer.contentWindow")},154:function(t,e,n){"use strict";var r=n(3),o=n(8),i=n(54),s=n(59),a=function(){function t(t,e){this._targetWindow=e,this._targetOrigin="*"===t?"*":Object(i.a)(t).origin}return t.prototype.post=function(t,e){var n=this,i=this._targetWindow;if(window!==i){if(!i)throw new Error("Unable to post message because target window is not set.");var a=e&&Object(r.fromEvent)(window,"message").pipe(Object(o.filter)((function(t){return t.origin===n._targetOrigin&&Object(s.a)(t.data,t.data.type)&&-1!==[e.successType,e.errorType].indexOf(t.data.type)})),Object(o.map)((function(t){if(e.errorType===t.data.type)throw t.data;return t.data})),Object(o.take)(1)).toPromise();return i.postMessage(t,this._targetOrigin),a}},t.prototype.setTarget=function(t){this._targetWindow=t},t}();e.a=a},155:function(t,e,n){"use strict";var r=n(0),o=n(54),i=n(116),s=n(100),a=n(59),c=function(){function t(t){this._sourceOrigins=[Object(o.a)(t).origin,Object(i.a)(Object(o.a)(t)).origin],this._isListening=!1,this._listeners={}}return t.prototype.listen=function(){this._isListening||(this._isListening=!0,window.addEventListener("message",this._handleMessage))},t.prototype.stopListen=function(){this._isListening&&(this._isListening=!1,window.removeEventListener("message",this._handleMessage))},t.prototype.addListener=function(t,e){var n=this._listeners[t];n||(this._listeners[t]=n=[]),-1===n.indexOf(e)&&n.push(e)},t.prototype.removeListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);r>=0&&n.splice(r,1)}},t.prototype.trigger=function(t){var e=this._listeners[t.type];e&&e.forEach((function(e){return e(t)}))},t.prototype._handleMessage=function(t){-1!==this._sourceOrigins.indexOf(t.origin)&&Object(a.a)(t.data,t.data.type)&&this.trigger(t.data)},Object(r.__decorate)([s.a],t.prototype,"_handleMessage",null),t}();e.a=c},157:function(t,e,n){"use strict";var r,o=n(49),i=n(155),s=n(154),a=n(205),c=n(206),u=n(54),d=n(0),p=n(100),l=n(26),h=function(t){function e(e){var n=t.call(this,e,{message:e.body.title})||this;return n.name="InvalidLoginTokenError",n.type="invalid_login_token",n}return Object(d.__extends)(e,t),e}(n(36).a),f=n(23);!function(t){t.MissingContainer="missing_container",t.MissingContent="missing_content",t.UnknownError="unknown_error"}(r||(r={}));var m=function(t){function e(e,n){void 0===n&&(n=r.UnknownError);var o=t.call(this,e||"Unable to embed the checkout form.")||this;return o.subtype=n,o.name="NotEmbeddableError",o.type="not_embeddable",o}return Object(d.__extends)(e,t),e}(f.a),y=n(109),_=function(){function t(t,e,n,r,o,i,s,a){var c=this;this._iframeCreator=t,this._messageListener=e,this._messagePoster=n,this._loadingIndicator=r,this._requestSender=o,this._storage=i,this._location=s,this._options=a,this._isAttached=!1,this._options.onComplete&&this._messageListener.addListener(l.a.CheckoutComplete,this._options.onComplete),this._options.onError&&this._messageListener.addListener(l.a.CheckoutError,this._options.onError),this._options.onLoad&&this._messageListener.addListener(l.a.CheckoutLoaded,this._options.onLoad),this._options.onFrameLoad&&this._messageListener.addListener(l.a.FrameLoaded,this._options.onFrameLoad),this._options.onSignOut&&this._messageListener.addListener(l.a.SignedOut,this._options.onSignOut),this._messageListener.addListener(l.a.FrameLoaded,(function(){return c._configureStyles()}))}return t.prototype.attach=function(){var t=this;return this._isAttached?Promise.resolve(this):(this._isAttached=!0,this._messageListener.listen(),this._loadingIndicator.show(this._options.containerId),this._allowCookie().then((function(){return t._attemptLogin()})).then((function(e){return t._iframeCreator.createFrame(e,t._options.containerId)})).then((function(e){t._iframe=e,t._configureStyles(),t._loadingIndicator.hide()})).catch((function(e){return t._isAttached=!1,t._retryAllowCookie(e).catch((function(){throw t._messageListener.trigger({type:l.a.FrameError,payload:e}),t._loadingIndicator.hide(),e}))})).then((function(){return t})))},t.prototype.detach=function(){this._isAttached&&(this._isAttached=!1,this._messageListener.stopListen(),this._iframe&&this._iframe.parentNode&&(this._iframe.parentNode.removeChild(this._iframe),this._iframe.iFrameResizer.close()))},t.prototype._configureStyles=function(){this._iframe&&this._iframe.contentWindow&&this._options.styles&&(this._messagePoster.setTarget(this._iframe.contentWindow),this._messagePoster.post({type:y.a.StyleConfigured,payload:this._options.styles}))},t.prototype._attemptLogin=function(){return/^\/login\/token/.test(Object(u.a)(this._options.url).pathname)?this._requestSender.post(this._options.url).then((function(t){return t.body.redirectUrl})).catch((function(t){return Promise.reject(new h(t))})):Promise.resolve(this._options.url)},t.prototype._allowCookie=function(){if(this._storage.getItem("isCookieAllowed"))return Promise.resolve();this._storage.setItem("isCookieAllowed",!0),this._storage.setItem("lastAllowCookieAttempt",Date.now());var t=Object(u.a)(this._options.url).origin+"/embedded-checkout/allow-cookie?returnUrl="+encodeURIComponent(this._location.href);return document.body.style.visibility="hidden",this._location.replace(t),new Promise((function(){}))},t.prototype._retryAllowCookie=function(t){var e=Number(this._storage.getItem("lastAllowCookieAttempt"));return(!e||Date.now()-e>6e5)&&t instanceof m&&t.subtype===r.MissingContent?(this._storage.removeItem("lastAllowCookieAttempt"),this._storage.removeItem("isCookieAllowed"),this._allowCookie()):Promise.reject()},t=Object(d.__decorate)([p.a],t)}(),g=n(59),b=n(207),v=function(){function t(t){this._options=t}return t.prototype.createFrame=function(t,e){var n=document.getElementById(e),o=(this._options||{}).timeout,i=void 0===o?6e4:o;if(!n)throw new m("Unable to embed the iframe because the container element could not be found.",r.MissingContainer);var s=document.createElement("iframe");return s.src=t,s.style.border="none",s.style.display="none",s.style.width="100%",s.allowPaymentRequest=!0,n.appendChild(s),this._toResizableFrame(s,i).catch((function(t){throw n.removeChild(s),t}))},t.prototype._toResizableFrame=function(t,e){return new Promise((function(n,o){var i=window.setTimeout((function(){o(new m("Unable to embed the iframe because the content could not be loaded."))}),e),s=function(e){if(e.origin===Object(u.a)(t.src).origin&&(Object(g.a)(e.data,l.a.FrameError)&&(a(),o(new m(e.data.payload.message,r.MissingContent))),Object(g.a)(e.data,l.a.FrameLoaded))){t.style.display="";var i=e.data.payload&&e.data.payload.contentId,s=Object(b.a)({scrolling:!1,sizeWidth:!1,heightCalculationMethod:i?"taggedElement":"lowestElement"},t);a(),n(s[s.length-1])}},a=function(){window.removeEventListener("message",s),window.clearTimeout(i)};window.addEventListener("message",s)}))},t}();n.d(e,"a",(function(){return O}));var w="BigCommerce.EmbeddedCheckout";function O(t){var e=Object(u.a)(t.url).origin;return new _(new v,new i.a(e),new s.a(e),new a.a({styles:t.styles&&t.styles.loadingIndicator}),Object(o.createRequestSender)(),new c.a(w),window.location,t).attach()}},158:function(t,e,n){"use strict";var r=n(207),o=n(155),i=n(154),s=n(26);function a(t){if(t.payload&&t.payload.contentId){var e=document.getElementById(t.payload.contentId);e&&!e.hasAttribute("data-iframe-height")&&e.setAttribute("data-iframe-height","")}}var c=n(0);function u(t){return"string"==typeof t.message&&"string"==typeof t.type&&("string"==typeof t.subtype||!t.subtype)&&t instanceof Error}var d=n(100),p=n(109),l=function(){function t(t,e,n,r){void 0===r&&(r={}),this._messageListener=t,this._messagePoster=e,this._untargetedMessagePoster=n,this._messageHandlers=r,this._messageListener.listen()}return t.prototype.postComplete=function(){var t={type:s.a.CheckoutComplete};this._postMessage(t)},t.prototype.postError=function(t){var e={type:s.a.CheckoutError,payload:this._transformError(t)};this._postMessage(e)},t.prototype.postFrameError=function(t){var e={type:s.a.FrameError,payload:this._transformError(t)};this._postMessage(e,{untargeted:!0})},t.prototype.postFrameLoaded=function(t){var e={type:s.a.FrameLoaded,payload:t};this._postMessage(e)},t.prototype.postLoaded=function(){var t={type:s.a.CheckoutLoaded};this._postMessage(t)},t.prototype.postSignedOut=function(){var t={type:s.a.SignedOut};this._postMessage(t)},t.prototype.receiveStyles=function(t){this._messageListener.addListener(p.a.StyleConfigured,(function(e){var n=e.payload;t(n)}))},t.prototype._postMessage=function(t,e){if(this._notifyMessageHandlers(t),e&&e.untargeted)return this._untargetedMessagePoster.post(t);this._messagePoster.post(t)},t.prototype._notifyMessageHandlers=function(t){var e=this;Object.keys(this._messageHandlers).forEach((function(n){if(t.type===n){var r=e._messageHandlers[n];r&&r.call(null,t)}}))},t.prototype._transformError=function(t){return{message:t.message,type:u(t)?t.type:void 0,subtype:u(t)?t.subtype:void 0}},t=Object(c.__decorate)([d.a],t)}(),h=function(){function t(){}return t.prototype.postComplete=function(){},t.prototype.postError=function(){},t.prototype.postFrameError=function(){},t.prototype.postFrameLoaded=function(){},t.prototype.postLoaded=function(){},t.prototype.postSignedOut=function(){},t.prototype.receiveStyles=function(){},t=Object(c.__decorate)([d.a],t)}();function f(t){var e;Object(r.b)();var n=t.parentWindow||window.parent;return window===n?new h:new l(new o.a(t.parentOrigin),new i.a(t.parentOrigin,n),new i.a("*",n),((e={})[s.a.FrameLoaded]=a,e))}n.d(e,"a",(function(){return f}))},205:function(t,e,n){"use strict";var r=n(0),o={size:70,color:"#d9d9d9",backgroundColor:"#ffffff"},i="embedded-checkout-loading-indicator-rotation",s=function(){function t(t){this._styles=Object(r.__assign)(Object(r.__assign)({},o),t&&t.styles),this._defineAnimation(),this._container=this._buildContainer(),this._indicator=this._buildIndicator(),this._container.appendChild(this._indicator)}return t.prototype.show=function(t){if(t){var e=document.getElementById(t);if(!e)throw new Error("Unable to attach the loading indicator because the parent ID is not valid.");e.appendChild(this._container)}this._container.style.visibility="visible",this._container.style.opacity="1"},t.prototype.hide=function(){var t=this,e=function(){t._container.style.visibility="hidden",t._container.removeEventListener("transitionend",e)};this._container.addEventListener("transitionend",e),this._container.style.opacity="0"},t.prototype._buildContainer=function(){var t=document.createElement("div");return t.style.display="block",t.style.bottom="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.position="absolute",t.style.right="0",t.style.top="0",t.style.transition="all 250ms ease-out",t.style.opacity="0",t},t.prototype._buildIndicator=function(){var t=document.createElement("div");return t.style.display="block",t.style.width=this._styles.size+"px",t.style.height=this._styles.size+"px",t.style.borderRadius=this._styles.size+"px",t.style.border="solid 1px",t.style.borderColor=this._styles.backgroundColor+" "+this._styles.backgroundColor+" "+this._styles.color+" "+this._styles.color,t.style.margin="0 auto",t.style.position="absolute",t.style.left="0",t.style.right="0",t.style.top="50%",t.style.transform="translateY(-50%) rotate(0deg)",t.style.transformStyle="preserve-3d",t.style.animation=i+" 500ms infinite cubic-bezier(0.69, 0.31, 0.56, 0.83)",t},t.prototype._defineAnimation=function(){if(!document.getElementById(i)){var t=document.createElement("style");t.id=i,document.head.appendChild(t),t.sheet instanceof CSSStyleSheet&&t.sheet.insertRule("\n @keyframes "+i+" {\n 0% { transform: translateY(-50%) rotate(0deg); }\n 100% { transform: translateY(-50%) rotate(360deg); }\n }\n ",0)}},t}();e.a=s},206:function(t,e,n){"use strict";var r=n(68),o=n.n(r),i=function(){function t(t){this._namespace=t}return t.prototype.getItem=function(t){var e=o.a.getItem(this.withNamespace(t));if(null===e)return null;try{return JSON.parse(e)}catch(e){return this.removeItem(this.withNamespace(t)),null}},t.prototype.getItemOnce=function(t){var e=this.getItem(t);return this.removeItem(t),e},t.prototype.setItem=function(t,e){return o.a.setItem(this.withNamespace(t),JSON.stringify(e))},t.prototype.removeItem=function(t){return o.a.removeItem(this.withNamespace(t))},t.prototype.withNamespace=function(t){return this._namespace+"."+t},t}();e.a=i},207:function(t,e,n){"use strict";function r(t,e){return(0,n(133).iframeResizer)(t,e)}function o(){n(134)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}))},209:function(t,e,n){"use strict";n.r(e);var r=n(157);n.d(e,"embedCheckout",(function(){return r.a}));var o=n(158);n.d(e,"createEmbeddedCheckoutMessenger",(function(){return o.a}))},23:function(t,e,n){"use strict";var r=n(0);var o=function(t){function e(e){var n,r,o=this.constructor,i=t.call(this,e||"An unexpected error has occurred.")||this;return i.name="StandardError",i.type="standard",n=i,r=o.prototype,Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(i,o):i.stack=new Error(i.message).stack,i}return Object(r.__extends)(e,t),e}(Error);e.a=o},26:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.CheckoutComplete="CHECKOUT_COMPLETE",t.CheckoutError="CHECKOUT_ERROR",t.CheckoutLoaded="CHECKOUT_LOADED",t.FrameError="FRAME_ERROR",t.FrameLoaded="FRAME_LOADED",t.SignedOut="SIGNED_OUT"}(r||(r={}))},3:function(t,e){t.exports=require("rxjs")},36:function(t,e,n){"use strict";var r=n(0),o=n(23),i={body:{},headers:{},status:0},s=function(t){function e(e,n){var r=void 0===n?{}:n,o=r.message,s=r.errors,a=this,c=e||i,u=c.body,d=c.headers,p=c.status;return(a=t.call(this,o||"An unexpected error has occurred.")||this).name="RequestError",a.type="request",a.body=u,a.headers=d,a.status=p,a.errors=s||[],a}return Object(r.__extends)(e,t),e}(o.a);e.a=s},49:function(t,e){t.exports=require("@bigcommerce/request-sender")},54:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(56);function o(t){if(!/^(https?:)?\/\//.test(t))throw new r.a("The provided URL must be absolute.");var e=document.createElement("a");e.href=t;var n=e.port&&-1!==t.indexOf(e.hostname+":"+e.port)?e.port:"";return{hash:e.hash,hostname:e.hostname,href:e.href,origin:e.protocol+"//"+e.hostname+(n?":"+n:""),pathname:e.pathname,port:n,protocol:e.protocol,search:e.search}}},56:function(t,e,n){"use strict";var r=n(0),o=function(t){function e(e){var n=t.call(this,e||"Invalid arguments have been provided.")||this;return n.name="InvalidArgumentError",n.type="invalid_argument",n}return Object(r.__extends)(e,t),e}(n(23).a);e.a=o},59:function(t,e,n){"use strict";function r(t,e){return t.type===e}n.d(e,"a",(function(){return r}))},68:function(t,e){t.exports=require("local-storage-fallback")},8:function(t,e){t.exports=require("rxjs/operators")}});
|
|
1
|
+
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=209)}({0:function(t,e){t.exports=require("tslib")},100:function(t,e,n){"use strict";var r=n(0);function o(t,e,n){if("function"!=typeof n.value)return n;var o=n.value;return{get:function(){var t=o.bind(this);return Object.defineProperty(this,e,Object(r.__assign)(Object(r.__assign)({},n),{value:t})),t},set:function(t){o=t}}}e.a=function(t,e,n){return e&&n?o(t,e,n):function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(t);return Object.getOwnPropertyNames(t.prototype).forEach((function(n){var r=Object.getOwnPropertyDescriptor(t.prototype,n);r&&"constructor"!==n&&Object.defineProperty(e.prototype,n,o(t.prototype,n,r))})),e}(t)}},109:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.StyleConfigured="STYLE_CONFIGURED"}(r||(r={}))},116:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(54);function o(t){return Object(r.a)(0===t.hostname.indexOf("www")?t.href:t.href.replace(t.hostname,"www."+t.hostname))}},134:function(t,e){t.exports=require("iframe-resizer")},135:function(t,e){t.exports=require("iframe-resizer/js/iframeResizer.contentWindow")},154:function(t,e,n){"use strict";var r=n(3),o=n(8),i=n(54),s=n(59),a=function(){function t(t,e){this._targetWindow=e,this._targetOrigin="*"===t?"*":Object(i.a)(t).origin}return t.prototype.post=function(t,e){var n=this,i=this._targetWindow;if(window!==i){if(!i)throw new Error("Unable to post message because target window is not set.");var a=e&&Object(r.fromEvent)(window,"message").pipe(Object(o.filter)((function(t){return t.origin===n._targetOrigin&&Object(s.a)(t.data,t.data.type)&&-1!==[e.successType,e.errorType].indexOf(t.data.type)})),Object(o.map)((function(t){if(e.errorType===t.data.type)throw t.data;return t.data})),Object(o.take)(1)).toPromise();return i.postMessage(t,this._targetOrigin),a}},t.prototype.setTarget=function(t){this._targetWindow=t},t}();e.a=a},155:function(t,e,n){"use strict";var r=n(0),o=n(54),i=n(116),s=n(100),a=n(59),c=function(){function t(t){this._sourceOrigins=[Object(o.a)(t).origin,Object(i.a)(Object(o.a)(t)).origin],this._isListening=!1,this._listeners={}}return t.prototype.listen=function(){this._isListening||(this._isListening=!0,window.addEventListener("message",this._handleMessage))},t.prototype.stopListen=function(){this._isListening&&(this._isListening=!1,window.removeEventListener("message",this._handleMessage))},t.prototype.addListener=function(t,e){var n=this._listeners[t];n||(this._listeners[t]=n=[]),-1===n.indexOf(e)&&n.push(e)},t.prototype.removeListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);r>=0&&n.splice(r,1)}},t.prototype.trigger=function(t){var e=this._listeners[t.type];e&&e.forEach((function(e){return e(t)}))},t.prototype._handleMessage=function(t){-1!==this._sourceOrigins.indexOf(t.origin)&&Object(a.a)(t.data,t.data.type)&&this.trigger(t.data)},Object(r.__decorate)([s.a],t.prototype,"_handleMessage",null),t}();e.a=c},157:function(t,e,n){"use strict";var r,o=n(49),i=n(155),s=n(154),a=n(205),c=n(206),u=n(54),d=n(0),p=n(100),l=n(26),h=function(t){function e(e){var n=t.call(this,e,{message:e.body.title})||this;return n.name="InvalidLoginTokenError",n.type="invalid_login_token",n}return Object(d.__extends)(e,t),e}(n(36).a),f=n(23);!function(t){t.MissingContainer="missing_container",t.MissingContent="missing_content",t.UnknownError="unknown_error"}(r||(r={}));var m=function(t){function e(e,n){void 0===n&&(n=r.UnknownError);var o=t.call(this,e||"Unable to embed the checkout form.")||this;return o.subtype=n,o.name="NotEmbeddableError",o.type="not_embeddable",o}return Object(d.__extends)(e,t),e}(f.a),y=n(109),_=function(){function t(t,e,n,r,o,i,s,a){var c=this;this._iframeCreator=t,this._messageListener=e,this._messagePoster=n,this._loadingIndicator=r,this._requestSender=o,this._storage=i,this._location=s,this._options=a,this._isAttached=!1,this._options.onComplete&&this._messageListener.addListener(l.a.CheckoutComplete,this._options.onComplete),this._options.onError&&this._messageListener.addListener(l.a.CheckoutError,this._options.onError),this._options.onLoad&&this._messageListener.addListener(l.a.CheckoutLoaded,this._options.onLoad),this._options.onFrameLoad&&this._messageListener.addListener(l.a.FrameLoaded,this._options.onFrameLoad),this._options.onSignOut&&this._messageListener.addListener(l.a.SignedOut,this._options.onSignOut),this._messageListener.addListener(l.a.FrameLoaded,(function(){return c._configureStyles()}))}return t.prototype.attach=function(){var t=this;return this._isAttached?Promise.resolve(this):(this._isAttached=!0,this._messageListener.listen(),this._loadingIndicator.show(this._options.containerId),this._allowCookie().then((function(){return t._attemptLogin()})).then((function(e){return t._iframeCreator.createFrame(e,t._options.containerId)})).then((function(e){t._iframe=e,t._configureStyles(),t._loadingIndicator.hide()})).catch((function(e){return t._isAttached=!1,t._retryAllowCookie(e).catch((function(){throw t._messageListener.trigger({type:l.a.FrameError,payload:e}),t._loadingIndicator.hide(),e}))})).then((function(){return t})))},t.prototype.detach=function(){this._isAttached&&(this._isAttached=!1,this._messageListener.stopListen(),this._iframe&&this._iframe.parentNode&&(this._iframe.parentNode.removeChild(this._iframe),this._iframe.iFrameResizer.close()))},t.prototype._configureStyles=function(){this._iframe&&this._iframe.contentWindow&&this._options.styles&&(this._messagePoster.setTarget(this._iframe.contentWindow),this._messagePoster.post({type:y.a.StyleConfigured,payload:this._options.styles}))},t.prototype._attemptLogin=function(){return/^\/login\/token/.test(Object(u.a)(this._options.url).pathname)?this._requestSender.post(this._options.url).then((function(t){return t.body.redirectUrl})).catch((function(t){return Promise.reject(new h(t))})):Promise.resolve(this._options.url)},t.prototype._allowCookie=function(){if(this._storage.getItem("isCookieAllowed"))return Promise.resolve();this._storage.setItem("isCookieAllowed",!0),this._storage.setItem("lastAllowCookieAttempt",Date.now());var t=Object(u.a)(this._options.url).origin+"/embedded-checkout/allow-cookie?returnUrl="+encodeURIComponent(this._location.href);return document.body.style.visibility="hidden",this._location.replace(t),new Promise((function(){}))},t.prototype._retryAllowCookie=function(t){var e=Number(this._storage.getItem("lastAllowCookieAttempt"));return(!e||Date.now()-e>6e5)&&t instanceof m&&t.subtype===r.MissingContent?(this._storage.removeItem("lastAllowCookieAttempt"),this._storage.removeItem("isCookieAllowed"),this._allowCookie()):Promise.reject()},t=Object(d.__decorate)([p.a],t)}(),g=n(59),b=n(207),v=function(){function t(t){this._options=t}return t.prototype.createFrame=function(t,e){var n=document.getElementById(e),o=(this._options||{}).timeout,i=void 0===o?6e4:o;if(!n)throw new m("Unable to embed the iframe because the container element could not be found.",r.MissingContainer);var s=document.createElement("iframe");return s.src=t,s.style.border="none",s.style.display="none",s.style.width="100%",s.allowPaymentRequest=!0,n.appendChild(s),this._toResizableFrame(s,i).catch((function(t){throw n.removeChild(s),t}))},t.prototype._toResizableFrame=function(t,e){return new Promise((function(n,o){var i=window.setTimeout((function(){o(new m("Unable to embed the iframe because the content could not be loaded."))}),e),s=function(e){if(e.origin===Object(u.a)(t.src).origin&&(Object(g.a)(e.data,l.a.FrameError)&&(a(),o(new m(e.data.payload.message,r.MissingContent))),Object(g.a)(e.data,l.a.FrameLoaded))){t.style.display="";var i=e.data.payload&&e.data.payload.contentId,s=Object(b.a)({scrolling:!1,sizeWidth:!1,heightCalculationMethod:i?"taggedElement":"lowestElement"},t);a(),n(s[s.length-1])}},a=function(){window.removeEventListener("message",s),window.clearTimeout(i)};window.addEventListener("message",s)}))},t}();n.d(e,"a",(function(){return O}));var w="BigCommerce.EmbeddedCheckout";function O(t){var e=Object(u.a)(t.url).origin;return new _(new v,new i.a(e),new s.a(e),new a.a({styles:t.styles&&t.styles.loadingIndicator}),Object(o.createRequestSender)(),new c.a(w),window.location,t).attach()}},158:function(t,e,n){"use strict";var r=n(207),o=n(155),i=n(154),s=n(26);function a(t){if(t.payload&&t.payload.contentId){var e=document.getElementById(t.payload.contentId);e&&!e.hasAttribute("data-iframe-height")&&e.setAttribute("data-iframe-height","")}}var c=n(0);function u(t){return"string"==typeof t.message&&"string"==typeof t.type&&("string"==typeof t.subtype||!t.subtype)&&t instanceof Error}var d=n(100),p=n(109),l=function(){function t(t,e,n,r){void 0===r&&(r={}),this._messageListener=t,this._messagePoster=e,this._untargetedMessagePoster=n,this._messageHandlers=r,this._messageListener.listen()}return t.prototype.postComplete=function(){var t={type:s.a.CheckoutComplete};this._postMessage(t)},t.prototype.postError=function(t){var e={type:s.a.CheckoutError,payload:this._transformError(t)};this._postMessage(e)},t.prototype.postFrameError=function(t){var e={type:s.a.FrameError,payload:this._transformError(t)};this._postMessage(e,{untargeted:!0})},t.prototype.postFrameLoaded=function(t){var e={type:s.a.FrameLoaded,payload:t};this._postMessage(e)},t.prototype.postLoaded=function(){var t={type:s.a.CheckoutLoaded};this._postMessage(t)},t.prototype.postSignedOut=function(){var t={type:s.a.SignedOut};this._postMessage(t)},t.prototype.receiveStyles=function(t){this._messageListener.addListener(p.a.StyleConfigured,(function(e){var n=e.payload;t(n)}))},t.prototype._postMessage=function(t,e){if(this._notifyMessageHandlers(t),e&&e.untargeted)return this._untargetedMessagePoster.post(t);this._messagePoster.post(t)},t.prototype._notifyMessageHandlers=function(t){var e=this;Object.keys(this._messageHandlers).forEach((function(n){if(t.type===n){var r=e._messageHandlers[n];r&&r.call(null,t)}}))},t.prototype._transformError=function(t){return{message:t.message,type:u(t)?t.type:void 0,subtype:u(t)?t.subtype:void 0}},t=Object(c.__decorate)([d.a],t)}(),h=function(){function t(){}return t.prototype.postComplete=function(){},t.prototype.postError=function(){},t.prototype.postFrameError=function(){},t.prototype.postFrameLoaded=function(){},t.prototype.postLoaded=function(){},t.prototype.postSignedOut=function(){},t.prototype.receiveStyles=function(){},t=Object(c.__decorate)([d.a],t)}();function f(t){var e;Object(r.b)();var n=t.parentWindow||window.parent;return window===n?new h:new l(new o.a(t.parentOrigin),new i.a(t.parentOrigin,n),new i.a("*",n),((e={})[s.a.FrameLoaded]=a,e))}n.d(e,"a",(function(){return f}))},205:function(t,e,n){"use strict";var r=n(0),o={size:70,color:"#d9d9d9",backgroundColor:"#ffffff"},i="embedded-checkout-loading-indicator-rotation",s=function(){function t(t){this._styles=Object(r.__assign)(Object(r.__assign)({},o),t&&t.styles),this._defineAnimation(),this._container=this._buildContainer(),this._indicator=this._buildIndicator(),this._container.appendChild(this._indicator)}return t.prototype.show=function(t){if(t){var e=document.getElementById(t);if(!e)throw new Error("Unable to attach the loading indicator because the parent ID is not valid.");e.appendChild(this._container)}this._container.style.visibility="visible",this._container.style.opacity="1"},t.prototype.hide=function(){var t=this,e=function(){t._container.style.visibility="hidden",t._container.removeEventListener("transitionend",e)};this._container.addEventListener("transitionend",e),this._container.style.opacity="0"},t.prototype._buildContainer=function(){var t=document.createElement("div");return t.style.display="block",t.style.bottom="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.position="absolute",t.style.right="0",t.style.top="0",t.style.transition="all 250ms ease-out",t.style.opacity="0",t},t.prototype._buildIndicator=function(){var t=document.createElement("div");return t.style.display="block",t.style.width=this._styles.size+"px",t.style.height=this._styles.size+"px",t.style.borderRadius=this._styles.size+"px",t.style.border="solid 1px",t.style.borderColor=this._styles.backgroundColor+" "+this._styles.backgroundColor+" "+this._styles.color+" "+this._styles.color,t.style.margin="0 auto",t.style.position="absolute",t.style.left="0",t.style.right="0",t.style.top="50%",t.style.transform="translateY(-50%) rotate(0deg)",t.style.transformStyle="preserve-3d",t.style.animation=i+" 500ms infinite cubic-bezier(0.69, 0.31, 0.56, 0.83)",t},t.prototype._defineAnimation=function(){if(!document.getElementById(i)){var t=document.createElement("style");t.id=i,document.head.appendChild(t),t.sheet instanceof CSSStyleSheet&&t.sheet.insertRule("\n @keyframes "+i+" {\n 0% { transform: translateY(-50%) rotate(0deg); }\n 100% { transform: translateY(-50%) rotate(360deg); }\n }\n ",0)}},t}();e.a=s},206:function(t,e,n){"use strict";var r=n(68),o=n.n(r),i=function(){function t(t){this._namespace=t}return t.prototype.getItem=function(t){var e=o.a.getItem(this.withNamespace(t));if(null===e)return null;try{return JSON.parse(e)}catch(e){return this.removeItem(this.withNamespace(t)),null}},t.prototype.getItemOnce=function(t){var e=this.getItem(t);return this.removeItem(t),e},t.prototype.setItem=function(t,e){return o.a.setItem(this.withNamespace(t),JSON.stringify(e))},t.prototype.removeItem=function(t){return o.a.removeItem(this.withNamespace(t))},t.prototype.withNamespace=function(t){return this._namespace+"."+t},t}();e.a=i},207:function(t,e,n){"use strict";function r(t,e){return(0,n(134).iframeResizer)(t,e)}function o(){n(135)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}))},209:function(t,e,n){"use strict";n.r(e);var r=n(157);n.d(e,"embedCheckout",(function(){return r.a}));var o=n(158);n.d(e,"createEmbeddedCheckoutMessenger",(function(){return o.a}))},23:function(t,e,n){"use strict";var r=n(0);var o=function(t){function e(e){var n,r,o=this.constructor,i=t.call(this,e||"An unexpected error has occurred.")||this;return i.name="StandardError",i.type="standard",n=i,r=o.prototype,Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(i,o):i.stack=new Error(i.message).stack,i}return Object(r.__extends)(e,t),e}(Error);e.a=o},26:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.CheckoutComplete="CHECKOUT_COMPLETE",t.CheckoutError="CHECKOUT_ERROR",t.CheckoutLoaded="CHECKOUT_LOADED",t.FrameError="FRAME_ERROR",t.FrameLoaded="FRAME_LOADED",t.SignedOut="SIGNED_OUT"}(r||(r={}))},3:function(t,e){t.exports=require("rxjs")},36:function(t,e,n){"use strict";var r=n(0),o=n(23),i={body:{},headers:{},status:0},s=function(t){function e(e,n){var r=void 0===n?{}:n,o=r.message,s=r.errors,a=this,c=e||i,u=c.body,d=c.headers,p=c.status;return(a=t.call(this,o||"An unexpected error has occurred.")||this).name="RequestError",a.type="request",a.body=u,a.headers=d,a.status=p,a.errors=s||[],a}return Object(r.__extends)(e,t),e}(o.a);e.a=s},49:function(t,e){t.exports=require("@bigcommerce/request-sender")},54:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(56);function o(t){if(!/^(https?:)?\/\//.test(t))throw new r.a("The provided URL must be absolute.");var e=document.createElement("a");e.href=t;var n=e.port&&-1!==t.indexOf(e.hostname+":"+e.port)?e.port:"";return{hash:e.hash,hostname:e.hostname,href:e.href,origin:e.protocol+"//"+e.hostname+(n?":"+n:""),pathname:e.pathname,port:n,protocol:e.protocol,search:e.search}}},56:function(t,e,n){"use strict";var r=n(0),o=function(t){function e(e){var n=t.call(this,e||"Invalid arguments have been provided.")||this;return n.name="InvalidArgumentError",n.type="invalid_argument",n}return Object(r.__extends)(e,t),e}(n(23).a);e.a=o},59:function(t,e,n){"use strict";function r(t,e){return t.type===e}n.d(e,"a",(function(){return r}))},68:function(t,e){t.exports=require("local-storage-fallback")},8:function(t,e){t.exports=require("rxjs/operators")}});
|
|
2
2
|
//# sourceMappingURL=embedded-checkout.js.map
|
|
@@ -31,18 +31,18 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
31
31
|
object-assign
|
|
32
32
|
(c) Sindre Sorhus
|
|
33
33
|
@license MIT
|
|
34
|
-
*/n(10),n(33),n(19),n(150),n(209),n(27),n(50);var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function u(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,c=u(t),s=1;s<arguments.length;s++){for(var f in n=Object(arguments[s]))o.call(n,f)&&(c[f]=n[f]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(c[a[l]]=n[a[l]])}}return c}},function(t,e,n){var r=n(377),o=n(378),i=n(379),u=n(380),a=n(381);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(210);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(387),o=n(392);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(197)(Object,"create");t.exports=r},function(t,e,n){n(19);var r=n(401);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n(10),n(12),n(16),n(5),n(3),n(8),n(6);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return null!==t&&"object"===r(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);function o(t){for(;t;){var e=t,n=e.closed,o=e.destination,i=e.isStopped;if(n||i)return!1;t=o&&o instanceof r.a?o:null}return!0}},,,,function(t,e,n){var r=n(32),o=n(265),i=n(29),u=n(104),a=n(244),c=n(278),s={};(t.exports=function(t,e,n,f,l){var p,d,h,y,v,m=u(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(d=a(t)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,y=i(t.length);y>h;h++)if((f?m(r(v=t[h])[0],v[1]):m(t[h]))===s)return s;return}p=d.call(t)}for(;!(v=p.next()).done;)if(c(p,m,v.value,f)===s)return s}).BREAK=s},function(t,e,n){var r=n(14).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(28),o=n(63),i=n(20)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(250).f,o=n(15)((function(){return!Object.getOwnPropertyNames(1)}));n(7)({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:r})},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(47),o=n(149),i=n(243),u=n(15)((function(){o(1)}));n(7)({target:"Object",stat:!0,forced:u,sham:!i},{getPrototypeOf:function(t){return o(r(t))}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),o=n(4),i=n(115),u=n(65);function a(t){return function(e){return 0===t?Object(u.b)():e.lift(new c(t))}}var c=function(){function t(t){if(this.total=t,this.total<0)throw new i.a}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)},,,function(t,e,n){"use strict";var r=n(7),o=n(297),i=n(149),u=n(144),a=n(91),c=n(46),s=n(56),f=n(102),l=n(20)("iterator"),p=n(113),d=n(242),h=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,v=function(){return this};t.exports=function(t,e,n,d,m,g,b){o(n,e,d);var w,_,x,S=function(t){if(t===m&&I)return I;if(!y&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",j=!1,E=t.prototype,T=E[l]||E["@@iterator"]||m&&E[m],I=!y&&T||S(m),k="Array"==e&&E.entries||T;if(k&&(w=i(k.call(new t)),h!==Object.prototype&&w.next&&(f||i(w)===h||(u?u(w,h):"function"!=typeof w[l]&&c(w,l,v)),a(w,O,!0,!0),f&&(p[O]=v))),"values"==m&&T&&"values"!==T.name&&(j=!0,I=function(){return T.call(this)}),f&&!b||E[l]===I||c(E,l,I),p[e]=I,m)if(_={values:S("values"),keys:g?I:S("keys"),entries:S("entries")},b)for(x in _)!y&&!j&&x in E||s(E,x,_[x]);else r({target:e,proto:!0,forced:y||j},_);return _}},function(t,e,n){var r=n(15),o=n(152);t.exports=function(t){return r((function(){return!!o[t]()||"
"!="
"[t]()||o[t].name!==t}))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n(25),n(287);var r=n(223);function o(t){if(!/^(https?:)?\/\//.test(t))throw new r.a("The provided URL must be absolute.");var e=document.createElement("a");e.href=t;var n=e.port&&-1!==t.indexOf(e.hostname+":"+e.port)?e.port:"";return{hash:e.hash,hostname:e.hostname,href:e.href,origin:e.protocol+"//"+e.hostname+(n?":"+n:""),pathname:e.pathname,port:n,protocol:e.protocol,search:e.search}}},,function(t,e,n){var r=n(28),o=n(144);t.exports=function(t,e,n){var i,u=e.constructor;return u!==n&&"function"==typeof u&&(i=u.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){var r=n(299);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},,function(t,e,n){"use strict";n(18);var r=n(0),o=function(t){function e(e){var n=t.call(this,e||"Invalid arguments have been provided.")||this;return n.name="InvalidArgumentError",n.type="invalid_argument",n}return Object(r.__extends)(e,t),e}(n(74).a);e.a=o},,function(t,e,n){var r=n(20)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r=n(66),o=n(53);t.exports=function(t,e,n){var i,u,a=String(o(t)),c=r(e),s=a.length;return c<0||c>=s?n?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?n?a.charAt(c):i:n?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}},function(t,e,n){var r=n(98).Symbol;t.exports=r},function(t,e,n){var r=n(248),o=n(268);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},,,,,,function(t,e,n){var r=n(39),o=n(15),i=n(184);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){t.exports=n(108)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(41),o=n(295),i=n(85),u=n(40);t.exports=function(t,e){for(var n=o(e),a=u.f,c=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||a(t,f,c(e,f))}}},function(t,e,n){var r=n(41),o=n(59),i=n(181)(!1),u=n(121);t.exports=function(t,e){var n,a=o(t),c=0,s=[];for(n in a)!r(u,n)&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(15);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){e.f=n(20)},function(t,e,n){var r=n(14).document;t.exports=r&&r.documentElement},function(t,e,n){n(187)("asyncIterator")},function(t,e,n){"use strict";var r,o,i,u=n(149),a=n(46),c=n(41),s=n(102),f=n(20)("iterator"),l=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):l=!0),null==r&&(r={}),s||c(r,f)||a(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:l}},function(t,e,n){t.exports=!n(15)((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(190),o=n(20)("iterator"),i=n(113);t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r,o,i,u=n(14),a=n(15),c=n(63),s=n(104),f=n(240),l=n(184),p=u.location,d=u.setImmediate,h=u.clearImmediate,y=u.process,v=u.MessageChannel,m=u.Dispatch,g=0,b={},w=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},_=function(t){return function(){w(t)}},x=function(t){w(t.data)},S=function(t){u.postMessage(t+"",p.protocol+"//"+p.host)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++g]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(g),g},h=function(t){delete b[t]},"process"==c(y)?r=function(t){y.nextTick(_(t))}:m&&m.now?r=function(t){m.now(_(t))}:v?(i=(o=new v).port2,o.port1.onmessage=x,r=s(i.postMessage,i,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||a(S)?r="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),w(t)}}:function(t){setTimeout(_(t),0)}:(r=S,u.addEventListener("message",x,!1))),t.exports={set:d,clear:h}},function(t,e,n){"use strict";var r=n(92),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(166),o=n(106),i="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=r(t);return e==u||e==a||e==i||e==c}},function(t,e,n){"use strict";function r(t,e){return t.type===e}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(59),o=n(90).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},,,,,,,,,,,,,,function(t,e,n){var r=n(235),o=n(14).WeakMap;t.exports="function"==typeof o&&/native code/.test(r.call(o))},function(t,e,n){var r=n(113),o=n(20)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(197)(n(98),"Map");t.exports=r},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o=n(98),i=n(412),u="object"==r(e)&&e&&!e.nodeType&&e,a=u&&"object"==r(t)&&t&&!t.nodeType&&t,c=a&&a.exports===u?o.Buffer:void 0,s=(c?c.isBuffer:void 0)||i;t.exports=s}).call(this,n(161)(t))},function(t,e,n){var r=n(359),o=n(415),i=n(228);t.exports=function(t){return i(t)?r(t,!0):o(t)}},,,,,,,,function(t,e,n){var r=n(32);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){(function(e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o="object"==(void 0===e?"undefined":r(e))&&e&&e.Object===Object&&e;t.exports=o}).call(this,n(180))},function(t,e,n){n(211);var r=n(356)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(411),o=n(131),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){var r=n(413),o=n(324),i=n(325),u=i&&i.isTypedArray,a=u?o(u):r;t.exports=a},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=r(t);return!!(e=null==e?o:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){"use strict";n(3),n(13),Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){var e=this;this._delay=t,this._resolve=function(){},this._promise=new Promise((function(t){e._resolve=t}))}return t.prototype.onComplete=function(t){this._promise.then(t)},t.prototype.complete=function(){this._resolve(),this._timeoutToken&&window.clearTimeout(this._timeoutToken)},t.prototype.start=function(){var t=this;this._delay&&(this._timeoutToken=window.setTimeout((function(){return t.complete()}),this._delay))},t}();e.default=r},,,function(t,e,n){"use strict";var r=n(32),o=n(53),i=n(329),u=n(145);n(146)("search",1,(function(t,e,n){return[function(e){var n=o(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var o=n(e,t,this);if(o.done)return o.value;var a=r(t),c=String(this),s=a.lastIndex;i(s,0)||(a.lastIndex=0);var f=u(a,c);return i(a.lastIndex,s)||(a.lastIndex=s),null===f?-1:f.index}]}))},,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MemoryStorage=e.CookieStorage=e.isSupported=e.storage=void 0;var r=u(n(632)),o=u(n(515)),i=u(n(634));function u(t){return t&&t.__esModule?t:{default:t}}var a=null;(0,r.default)("localStorage")?e.storage=a=window.localStorage:(0,r.default)("sessionStorage")?e.storage=a=window.sessionStorage:(0,r.default)("cookieStorage")?e.storage=a=new o.default:e.storage=a=new i.default,e.default=a,e.storage=a,e.isSupported=r.default,e.CookieStorage=o.default,e.MemoryStorage=i.default},,function(t,e,n){var r=n(90),o=n(143),i=n(32),u=n(14).Reflect;t.exports=u&&u.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(39),o=n(40),i=n(32),u=n(110);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),a=r.length,c=0;a>c;)o.f(t,n=r[c++],e[n]);return t}},function(t,e,n){"use strict";var r=n(242).IteratorPrototype,o=n(122),i=n(103),u=n(91),a=n(113),c=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,s,!1,!0),a[s]=c,t}},function(t,e,n){"use strict";var r=n(39),o=n(15),i=n(110),u=n(143),a=n(140),c=n(47),s=n(141),f=Object.assign;t.exports=!f||o((function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=c(t),o=arguments.length,f=1,l=u.f,p=a.f;o>f;)for(var d,h=s(arguments[f++]),y=l?i(h).concat(l(h)):i(h),v=y.length,m=0;v>m;)d=y[m++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:f},function(t,e,n){var r=n(197),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(358),o=n(221);t.exports=function(t,e,n,i){var u=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var s=e[a],f=i?i(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),u?o(n,s,f):r(n,s,f)}return n}},function(t,e){t.exports=function(t){return t}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n(42),n(3),n(30);var r=n(11),o=n(45),i=n(81),u=n(55);function a(t,e,n,c){return Object(i.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(u.a)((function(t){return Object(o.a)(t)?c.apply(void 0,t):c(t)}))):new r.a((function(r){!function t(e,n,r,o,i){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,i),u=function(){return a.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,r),u=function(){return c.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var s=e;e.addListener(n,r),u=function(){return s.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,o,i)}o.add(u)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},,,,,,,function(t,e,n){var r=n(110),o=n(143),i=n(140);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),c=i.f,s=0;a.length>s;)c.call(t,u=a[s++])&&e.push(u);return e}},function(t,e,n){var r=n(28),o=n(32);t.exports=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}},function(t,e,n){"use strict";var r=n(190),o={};o[n(20)("toStringTag")]="z",t.exports="[object z]"!==String(o)?function(){return"[object "+r(this)+"]"}:o.toString},function(t,e,n){var r,o,i,u,a,c,s,f=n(14),l=n(85).f,p=n(63),d=n(245).set,h=n(207),y=f.MutationObserver||f.WebKitMutationObserver,v=f.process,m=f.Promise,g="process"==p(v),b=l(f,"queueMicrotask"),w=b&&b.value;w||(r=function(){var t,e;for(g&&(t=v.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},g?u=function(){v.nextTick(r)}:y&&!/(iphone|ipod|ipad).*applewebkit/i.test(h)?(a=!0,c=document.createTextNode(""),new y(r).observe(c,{characterData:!0}),u=function(){c.data=a=!a}):m&&m.resolve?(s=m.resolve(void 0),u=function(){s.then(r)}):u=function(){d.call(f,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,u()),i=e}},function(t,e,n){var r=n(32),o=n(28),i=n(246);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(14);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r=n(188),o=n(14),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){"use strict";var r=[].forEach,o=n(82)(0),i=n(118)("forEach");t.exports=i?function(t){return o(this,t,arguments[1])}:r},function(t,e,n){var r=n(195),o=n(382),i=n(383),u=n(384),a=n(385),c=n(386);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=u,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e,n){var r=n(393),o=n(400),i=n(402),u=n(403),a=n(404);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(354);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o=n(279),i="object"==r(e)&&e&&!e.nodeType&&e,u=i&&"object"==r(t)&&t&&!t.nodeType&&t,a=u&&u.exports===i&&o.process,c=function(){try{var t=u&&u.require&&u.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(this,n(161)(t))},,,function(t,e,n){var r=n(14).parseInt,o=n(105),i=n(152),u=/^[+-]?0[Xx]/,a=8!==r(i+"08")||22!==r(i+"0x16");t.exports=a?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(u.test(n)?16:10))}:r},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(49),n(57),n(25),n(5),n(33),n(19),n(42),n(164),n(60),n(27),n(3),n(8),n(31),n(50),n(114),n(34),n(6);var o=n(375),i=n(194),u=n(350);function a(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}function c(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function s(t,e){var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return function(t,n,r){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=i({arrayFormat:"none"},e)),o=Object.create(null);return"string"!=typeof t?o:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),r=e.shift(),i=e.length>0?e.join("="):void 0;i=void 0===i?null:u(i),n(u(r),i,o)})),Object.keys(o).sort().reduce((function(t,e){var n=o[e];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"===r(e)?t(Object.keys(e)).sort((function(t,e){return Number(t)-Number(e)})).map((function(t){return e[t]})):e}(n):t[e]=n,t}),Object.create(null))):o}e.extract=c,e.parse=s,e.stringify=function(t,e){!1===(e=i({encode:!0,strict:!0,arrayFormat:"none"},e)).sort&&(e.sort=function(){});var n=function(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[a(e,t),"[",r,"]"].join(""):[a(e,t),"[",a(r,t),"]=",a(n,t)].join("")};case"bracket":return function(e,n){return null===n?a(e,t):[a(e,t),"[]=",a(n,t)].join("")};default:return function(e,n){return null===n?a(e,t):[a(e,t),"=",a(n,t)].join("")}}}(e);return t?Object.keys(t).sort(e.sort).map((function(r){var o=t[r];if(void 0===o)return"";if(null===o)return a(r,e);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(t){void 0!==t&&i.push(n(r,t,i.length))})),i.join("&")}return a(r,e)+"="+a(o,e)})).filter((function(t){return t.length>0})).join("&"):""},e.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:s(c(t),e)}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(49),n(5),n(33),n(42),n(27),n(3),n(93),n(30),n(8),n(165),n(31),n(6);var o=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function u(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],u(n),u(r))}function a(t){try{return decodeURIComponent(t)}catch(r){for(var e=t.match(o),n=1;n<e.length;n++)e=(t=u(e,n).join("")).match(o);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+r(t)+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var r=a(n[0]);r!==n[0]&&(e[n[0]]=r)}n=i.exec(t)}e["%C2"]="�";for(var o=Object.keys(e),u=0;u<o.length;u++){var c=o[u];t=t.replace(new RegExp(c,"g"),e[c])}return t}(t)}}},function(t,e,n){"use strict";n(3),n(13),n(31),n(50),Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),o=r.__importDefault(n(376)),i=n(484),u=r.__importDefault(n(485)),a=r.__importDefault(n(284)),c=function(){function t(t,e,n,r){void 0===r&&(r={}),this._requestFactory=t,this._payloadTransformer=e,this._cookie=n,this._options=r,this._cache=this._options.cache||new i.DefaultCache}return t.prototype.sendRequest=function(t,e){var n=this,r=this._mergeDefaultOptions(t,e),o=this._getCachedRequest(t,r);if(o)return Promise.resolve(o);var i=this._requestFactory.createRequest(this._prependHost(t),r);return new Promise((function(e,o){var c=function(){var u=n._payloadTransformer.toResponse(i);u.status>=200&&u.status<300?(n._cacheRequest(t,r,u),e(u)):o(u)};i.onload=c,i.onerror=c,i.onabort=c,i.ontimeout=c,r.timeout instanceof a.default&&(r.timeout.onComplete((function(){return i.abort()})),r.timeout.start()),u.default(r.timeout)&&r.timeout.then((function(){return i.abort()})),i.send(n._payloadTransformer.toRequestBody(r))}))},t.prototype.get=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"GET"}))},t.prototype.post=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"POST"}))},t.prototype.put=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"PUT"}))},t.prototype.patch=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"PATCH"}))},t.prototype.delete=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"DELETE"}))},t.prototype._mergeDefaultOptions=function(t,e){var n={credentials:!0,encodeParams:!0,headers:{Accept:"application/json, text/plain, */*"},method:"GET"},r=this._cookie.get("XSRF-TOKEN");return r&&n.headers&&!this._isAssetRequest(t,e)&&(n.headers["X-XSRF-TOKEN"]=r),e&&e.body&&n.headers&&(n.headers["Content-Type"]="application/json"),o.default({},n,e)},t.prototype._prependHost=function(t){return!this._options.host||/^https?:\/\//.test(t)?t:this._options.host.replace(/\/$/,"")+"/"+t.replace(/^\//,"")},t.prototype._shouldCacheRequest=function(t){return"GET"===(t.method||"GET").toUpperCase()&&Boolean(t.cache)},t.prototype._getCachedRequest=function(t,e){return this._shouldCacheRequest(e)?this._cache.read(t,e):null},t.prototype._cacheRequest=function(t,e,n){this._shouldCacheRequest(e)&&this._cache.write(t,e,n)},t.prototype._isAssetRequest=function(t,e){return(!e||!e.method||"GET"===e.method.toUpperCase())&&/\.(png|gif|jpe?g|css|js|json|svg|html?)$/.test(t.split("?")[0])},t}();e.default=c},function(t,e,n){n(3),n(30);var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(221),o=n(210);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(98).Uint8Array;t.exports=r},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){var r=n(221),o=n(210),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var u=t[e];i.call(t,e)&&o(u,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(414),o=n(281),i=n(200),u=n(269),a=n(283),c=n(282),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),f=!n&&o(t),l=!n&&!f&&u(t),p=!n&&!f&&!l&&c(t),d=n||f||l||p,h=d?r(t.length,String):[],y=h.length;for(var v in t)!e&&!s.call(t,v)||d&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,y))||h.push(v);return h}},,,,,,,,,,,,,,,function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
|
|
34
|
+
*/n(10),n(33),n(19),n(150),n(209),n(27),n(50);var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function u(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,c=u(t),s=1;s<arguments.length;s++){for(var f in n=Object(arguments[s]))o.call(n,f)&&(c[f]=n[f]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(c[a[l]]=n[a[l]])}}return c}},function(t,e,n){var r=n(377),o=n(378),i=n(379),u=n(380),a=n(381);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(210);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(387),o=n(392);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(197)(Object,"create");t.exports=r},function(t,e,n){n(19);var r=n(401);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n(10),n(12),n(16),n(5),n(3),n(8),n(6);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return null!==t&&"object"===r(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);function o(t){for(;t;){var e=t,n=e.closed,o=e.destination,i=e.isStopped;if(n||i)return!1;t=o&&o instanceof r.a?o:null}return!0}},,,,function(t,e,n){var r=n(32),o=n(265),i=n(29),u=n(104),a=n(244),c=n(278),s={};(t.exports=function(t,e,n,f,l){var p,d,h,y,v,m=u(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(d=a(t)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,y=i(t.length);y>h;h++)if((f?m(r(v=t[h])[0],v[1]):m(t[h]))===s)return s;return}p=d.call(t)}for(;!(v=p.next()).done;)if(c(p,m,v.value,f)===s)return s}).BREAK=s},function(t,e,n){var r=n(14).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(28),o=n(63),i=n(20)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(250).f,o=n(15)((function(){return!Object.getOwnPropertyNames(1)}));n(7)({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:r})},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(47),o=n(149),i=n(243),u=n(15)((function(){o(1)}));n(7)({target:"Object",stat:!0,forced:u,sham:!i},{getPrototypeOf:function(t){return o(r(t))}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),o=n(4),i=n(115),u=n(65);function a(t){return function(e){return 0===t?Object(u.b)():e.lift(new c(t))}}var c=function(){function t(t){if(this.total=t,this.total<0)throw new i.a}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)},,,function(t,e,n){"use strict";var r=n(7),o=n(297),i=n(149),u=n(144),a=n(91),c=n(46),s=n(56),f=n(102),l=n(20)("iterator"),p=n(113),d=n(242),h=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,v=function(){return this};t.exports=function(t,e,n,d,m,g,b){o(n,e,d);var w,_,x,S=function(t){if(t===m&&I)return I;if(!y&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",j=!1,E=t.prototype,T=E[l]||E["@@iterator"]||m&&E[m],I=!y&&T||S(m),k="Array"==e&&E.entries||T;if(k&&(w=i(k.call(new t)),h!==Object.prototype&&w.next&&(f||i(w)===h||(u?u(w,h):"function"!=typeof w[l]&&c(w,l,v)),a(w,O,!0,!0),f&&(p[O]=v))),"values"==m&&T&&"values"!==T.name&&(j=!0,I=function(){return T.call(this)}),f&&!b||E[l]===I||c(E,l,I),p[e]=I,m)if(_={values:S("values"),keys:g?I:S("keys"),entries:S("entries")},b)for(x in _)!y&&!j&&x in E||s(E,x,_[x]);else r({target:e,proto:!0,forced:y||j},_);return _}},function(t,e,n){var r=n(15),o=n(152);t.exports=function(t){return r((function(){return!!o[t]()||"
"!="
"[t]()||o[t].name!==t}))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n(25),n(287);var r=n(223);function o(t){if(!/^(https?:)?\/\//.test(t))throw new r.a("The provided URL must be absolute.");var e=document.createElement("a");e.href=t;var n=e.port&&-1!==t.indexOf(e.hostname+":"+e.port)?e.port:"";return{hash:e.hash,hostname:e.hostname,href:e.href,origin:e.protocol+"//"+e.hostname+(n?":"+n:""),pathname:e.pathname,port:n,protocol:e.protocol,search:e.search}}},,function(t,e,n){var r=n(28),o=n(144);t.exports=function(t,e,n){var i,u=e.constructor;return u!==n&&"function"==typeof u&&(i=u.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){var r=n(299);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},,function(t,e,n){"use strict";n(18);var r=n(0),o=function(t){function e(e){var n=t.call(this,e||"Invalid arguments have been provided.")||this;return n.name="InvalidArgumentError",n.type="invalid_argument",n}return Object(r.__extends)(e,t),e}(n(74).a);e.a=o},,function(t,e,n){var r=n(20)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r=n(66),o=n(53);t.exports=function(t,e,n){var i,u,a=String(o(t)),c=r(e),s=a.length;return c<0||c>=s?n?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?n?a.charAt(c):i:n?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}},function(t,e,n){var r=n(98).Symbol;t.exports=r},function(t,e,n){var r=n(248),o=n(268);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},,,,,,function(t,e,n){var r=n(39),o=n(15),i=n(184);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){t.exports=n(108)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(41),o=n(295),i=n(85),u=n(40);t.exports=function(t,e){for(var n=o(e),a=u.f,c=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||a(t,f,c(e,f))}}},function(t,e,n){var r=n(41),o=n(59),i=n(181)(!1),u=n(121);t.exports=function(t,e){var n,a=o(t),c=0,s=[];for(n in a)!r(u,n)&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(15);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){e.f=n(20)},function(t,e,n){var r=n(14).document;t.exports=r&&r.documentElement},function(t,e,n){n(187)("asyncIterator")},function(t,e,n){"use strict";var r,o,i,u=n(149),a=n(46),c=n(41),s=n(102),f=n(20)("iterator"),l=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):l=!0),null==r&&(r={}),s||c(r,f)||a(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:l}},function(t,e,n){t.exports=!n(15)((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(190),o=n(20)("iterator"),i=n(113);t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r,o,i,u=n(14),a=n(15),c=n(63),s=n(104),f=n(240),l=n(184),p=u.location,d=u.setImmediate,h=u.clearImmediate,y=u.process,v=u.MessageChannel,m=u.Dispatch,g=0,b={},w=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},_=function(t){return function(){w(t)}},x=function(t){w(t.data)},S=function(t){u.postMessage(t+"",p.protocol+"//"+p.host)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++g]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(g),g},h=function(t){delete b[t]},"process"==c(y)?r=function(t){y.nextTick(_(t))}:m&&m.now?r=function(t){m.now(_(t))}:v?(i=(o=new v).port2,o.port1.onmessage=x,r=s(i.postMessage,i,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||a(S)?r="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),w(t)}}:function(t){setTimeout(_(t),0)}:(r=S,u.addEventListener("message",x,!1))),t.exports={set:d,clear:h}},function(t,e,n){"use strict";var r=n(92),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(166),o=n(106),i="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=r(t);return e==u||e==a||e==i||e==c}},function(t,e,n){"use strict";function r(t,e){return t.type===e}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(59),o=n(90).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},,,,,,,,,,,,,,function(t,e,n){var r=n(235),o=n(14).WeakMap;t.exports="function"==typeof o&&/native code/.test(r.call(o))},function(t,e,n){var r=n(113),o=n(20)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(197)(n(98),"Map");t.exports=r},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o=n(98),i=n(412),u="object"==r(e)&&e&&!e.nodeType&&e,a=u&&"object"==r(t)&&t&&!t.nodeType&&t,c=a&&a.exports===u?o.Buffer:void 0,s=(c?c.isBuffer:void 0)||i;t.exports=s}).call(this,n(161)(t))},function(t,e,n){var r=n(359),o=n(415),i=n(228);t.exports=function(t){return i(t)?r(t,!0):o(t)}},,,,,,,,function(t,e,n){var r=n(32);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){(function(e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o="object"==(void 0===e?"undefined":r(e))&&e&&e.Object===Object&&e;t.exports=o}).call(this,n(180))},function(t,e,n){n(211);var r=n(356)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(411),o=n(131),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){var r=n(413),o=n(324),i=n(325),u=i&&i.isTypedArray,a=u?o(u):r;t.exports=a},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=r(t);return!!(e=null==e?o:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){"use strict";n(3),n(13),Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){var e=this;this._delay=t,this._resolve=function(){},this._promise=new Promise((function(t){e._resolve=t}))}return t.prototype.onComplete=function(t){this._promise.then(t)},t.prototype.complete=function(){this._resolve(),this._timeoutToken&&window.clearTimeout(this._timeoutToken)},t.prototype.start=function(){var t=this;this._delay&&(this._timeoutToken=window.setTimeout((function(){return t.complete()}),this._delay))},t}();e.default=r},,,function(t,e,n){"use strict";var r=n(32),o=n(53),i=n(329),u=n(145);n(146)("search",1,(function(t,e,n){return[function(e){var n=o(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var o=n(e,t,this);if(o.done)return o.value;var a=r(t),c=String(this),s=a.lastIndex;i(s,0)||(a.lastIndex=0);var f=u(a,c);return i(a.lastIndex,s)||(a.lastIndex=s),null===f?-1:f.index}]}))},,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MemoryStorage=e.CookieStorage=e.isSupported=e.storage=void 0;var r=u(n(633)),o=u(n(515)),i=u(n(635));function u(t){return t&&t.__esModule?t:{default:t}}var a=null;(0,r.default)("localStorage")?e.storage=a=window.localStorage:(0,r.default)("sessionStorage")?e.storage=a=window.sessionStorage:(0,r.default)("cookieStorage")?e.storage=a=new o.default:e.storage=a=new i.default,e.default=a,e.storage=a,e.isSupported=r.default,e.CookieStorage=o.default,e.MemoryStorage=i.default},,function(t,e,n){var r=n(90),o=n(143),i=n(32),u=n(14).Reflect;t.exports=u&&u.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(39),o=n(40),i=n(32),u=n(110);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),a=r.length,c=0;a>c;)o.f(t,n=r[c++],e[n]);return t}},function(t,e,n){"use strict";var r=n(242).IteratorPrototype,o=n(122),i=n(103),u=n(91),a=n(113),c=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,s,!1,!0),a[s]=c,t}},function(t,e,n){"use strict";var r=n(39),o=n(15),i=n(110),u=n(143),a=n(140),c=n(47),s=n(141),f=Object.assign;t.exports=!f||o((function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=c(t),o=arguments.length,f=1,l=u.f,p=a.f;o>f;)for(var d,h=s(arguments[f++]),y=l?i(h).concat(l(h)):i(h),v=y.length,m=0;v>m;)d=y[m++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:f},function(t,e,n){var r=n(197),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(358),o=n(221);t.exports=function(t,e,n,i){var u=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var s=e[a],f=i?i(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),u?o(n,s,f):r(n,s,f)}return n}},function(t,e){t.exports=function(t){return t}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n(42),n(3),n(30);var r=n(11),o=n(45),i=n(81),u=n(55);function a(t,e,n,c){return Object(i.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(u.a)((function(t){return Object(o.a)(t)?c.apply(void 0,t):c(t)}))):new r.a((function(r){!function t(e,n,r,o,i){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,i),u=function(){return a.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,r),u=function(){return c.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var s=e;e.addListener(n,r),u=function(){return s.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,o,i)}o.add(u)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},,,,,,,function(t,e,n){var r=n(110),o=n(143),i=n(140);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),c=i.f,s=0;a.length>s;)c.call(t,u=a[s++])&&e.push(u);return e}},function(t,e,n){var r=n(28),o=n(32);t.exports=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}},function(t,e,n){"use strict";var r=n(190),o={};o[n(20)("toStringTag")]="z",t.exports="[object z]"!==String(o)?function(){return"[object "+r(this)+"]"}:o.toString},function(t,e,n){var r,o,i,u,a,c,s,f=n(14),l=n(85).f,p=n(63),d=n(245).set,h=n(207),y=f.MutationObserver||f.WebKitMutationObserver,v=f.process,m=f.Promise,g="process"==p(v),b=l(f,"queueMicrotask"),w=b&&b.value;w||(r=function(){var t,e;for(g&&(t=v.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},g?u=function(){v.nextTick(r)}:y&&!/(iphone|ipod|ipad).*applewebkit/i.test(h)?(a=!0,c=document.createTextNode(""),new y(r).observe(c,{characterData:!0}),u=function(){c.data=a=!a}):m&&m.resolve?(s=m.resolve(void 0),u=function(){s.then(r)}):u=function(){d.call(f,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,u()),i=e}},function(t,e,n){var r=n(32),o=n(28),i=n(246);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(14);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r=n(188),o=n(14),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){"use strict";var r=[].forEach,o=n(82)(0),i=n(118)("forEach");t.exports=i?function(t){return o(this,t,arguments[1])}:r},function(t,e,n){var r=n(195),o=n(382),i=n(383),u=n(384),a=n(385),c=n(386);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=u,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e,n){var r=n(393),o=n(400),i=n(402),u=n(403),a=n(404);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(354);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o=n(279),i="object"==r(e)&&e&&!e.nodeType&&e,u=i&&"object"==r(t)&&t&&!t.nodeType&&t,a=u&&u.exports===i&&o.process,c=function(){try{var t=u&&u.require&&u.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(this,n(161)(t))},,,function(t,e,n){var r=n(14).parseInt,o=n(105),i=n(152),u=/^[+-]?0[Xx]/,a=8!==r(i+"08")||22!==r(i+"0x16");t.exports=a?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(u.test(n)?16:10))}:r},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(49),n(57),n(25),n(5),n(33),n(19),n(42),n(164),n(60),n(27),n(3),n(8),n(31),n(50),n(114),n(34),n(6);var o=n(375),i=n(194),u=n(350);function a(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}function c(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function s(t,e){var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return function(t,n,r){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=i({arrayFormat:"none"},e)),o=Object.create(null);return"string"!=typeof t?o:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),r=e.shift(),i=e.length>0?e.join("="):void 0;i=void 0===i?null:u(i),n(u(r),i,o)})),Object.keys(o).sort().reduce((function(t,e){var n=o[e];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"===r(e)?t(Object.keys(e)).sort((function(t,e){return Number(t)-Number(e)})).map((function(t){return e[t]})):e}(n):t[e]=n,t}),Object.create(null))):o}e.extract=c,e.parse=s,e.stringify=function(t,e){!1===(e=i({encode:!0,strict:!0,arrayFormat:"none"},e)).sort&&(e.sort=function(){});var n=function(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[a(e,t),"[",r,"]"].join(""):[a(e,t),"[",a(r,t),"]=",a(n,t)].join("")};case"bracket":return function(e,n){return null===n?a(e,t):[a(e,t),"[]=",a(n,t)].join("")};default:return function(e,n){return null===n?a(e,t):[a(e,t),"=",a(n,t)].join("")}}}(e);return t?Object.keys(t).sort(e.sort).map((function(r){var o=t[r];if(void 0===o)return"";if(null===o)return a(r,e);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(t){void 0!==t&&i.push(n(r,t,i.length))})),i.join("&")}return a(r,e)+"="+a(o,e)})).filter((function(t){return t.length>0})).join("&"):""},e.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:s(c(t),e)}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(49),n(5),n(33),n(42),n(27),n(3),n(93),n(30),n(8),n(165),n(31),n(6);var o=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function u(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],u(n),u(r))}function a(t){try{return decodeURIComponent(t)}catch(r){for(var e=t.match(o),n=1;n<e.length;n++)e=(t=u(e,n).join("")).match(o);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+r(t)+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var r=a(n[0]);r!==n[0]&&(e[n[0]]=r)}n=i.exec(t)}e["%C2"]="�";for(var o=Object.keys(e),u=0;u<o.length;u++){var c=o[u];t=t.replace(new RegExp(c,"g"),e[c])}return t}(t)}}},function(t,e,n){"use strict";n(3),n(13),n(31),n(50),Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),o=r.__importDefault(n(376)),i=n(484),u=r.__importDefault(n(485)),a=r.__importDefault(n(284)),c=function(){function t(t,e,n,r){void 0===r&&(r={}),this._requestFactory=t,this._payloadTransformer=e,this._cookie=n,this._options=r,this._cache=this._options.cache||new i.DefaultCache}return t.prototype.sendRequest=function(t,e){var n=this,r=this._mergeDefaultOptions(t,e),o=this._getCachedRequest(t,r);if(o)return Promise.resolve(o);var i=this._requestFactory.createRequest(this._prependHost(t),r);return new Promise((function(e,o){var c=function(){var u=n._payloadTransformer.toResponse(i);u.status>=200&&u.status<300?(n._cacheRequest(t,r,u),e(u)):o(u)};i.onload=c,i.onerror=c,i.onabort=c,i.ontimeout=c,r.timeout instanceof a.default&&(r.timeout.onComplete((function(){return i.abort()})),r.timeout.start()),u.default(r.timeout)&&r.timeout.then((function(){return i.abort()})),i.send(n._payloadTransformer.toRequestBody(r))}))},t.prototype.get=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"GET"}))},t.prototype.post=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"POST"}))},t.prototype.put=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"PUT"}))},t.prototype.patch=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"PATCH"}))},t.prototype.delete=function(t,e){return this.sendRequest(t,r.__assign(r.__assign({},e),{method:"DELETE"}))},t.prototype._mergeDefaultOptions=function(t,e){var n={credentials:!0,encodeParams:!0,headers:{Accept:"application/json, text/plain, */*"},method:"GET"},r=this._cookie.get("XSRF-TOKEN");return r&&n.headers&&!this._isAssetRequest(t,e)&&(n.headers["X-XSRF-TOKEN"]=r),e&&e.body&&n.headers&&(n.headers["Content-Type"]="application/json"),o.default({},n,e)},t.prototype._prependHost=function(t){return!this._options.host||/^https?:\/\//.test(t)?t:this._options.host.replace(/\/$/,"")+"/"+t.replace(/^\//,"")},t.prototype._shouldCacheRequest=function(t){return"GET"===(t.method||"GET").toUpperCase()&&Boolean(t.cache)},t.prototype._getCachedRequest=function(t,e){return this._shouldCacheRequest(e)?this._cache.read(t,e):null},t.prototype._cacheRequest=function(t,e,n){this._shouldCacheRequest(e)&&this._cache.write(t,e,n)},t.prototype._isAssetRequest=function(t,e){return(!e||!e.method||"GET"===e.method.toUpperCase())&&/\.(png|gif|jpe?g|css|js|json|svg|html?)$/.test(t.split("?")[0])},t}();e.default=c},function(t,e,n){n(3),n(30);var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(221),o=n(210);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(98).Uint8Array;t.exports=r},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){var r=n(221),o=n(210),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var u=t[e];i.call(t,e)&&o(u,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(414),o=n(281),i=n(200),u=n(269),a=n(283),c=n(282),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),f=!n&&o(t),l=!n&&!f&&u(t),p=!n&&!f&&!l&&c(t),d=n||f||l||p,h=d?r(t.length,String):[],y=h.length;for(var v in t)!e&&!s.call(t,v)||d&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,y))||h.push(v);return h}},,,,,,,,,,,,,,,function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
|
|
35
35
|
/*!
|
|
36
36
|
* JavaScript Cookie v2.2.1
|
|
37
37
|
* https://github.com/js-cookie/js-cookie
|
|
38
38
|
*
|
|
39
39
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
40
40
|
* Released under the MIT license
|
|
41
|
-
*/n(10),n(12),n(16),n(5),n(33),n(42),n(3),n(8),n(31),n(50),n(6),function(n){var o;if("function"==typeof define&&define.amd&&(define(n),o=!0),"object"===r(e)&&(t.exports=n(),o=!0),!o){var i=window.Cookies,u=window.Cookies=n();u.noConflict=function(){return window.Cookies=i,u}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var u=JSON.stringify(n);/^[\{\[]/.test(u)&&(n=u)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=e+"="+n+a}}function u(t,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],u=0;u<i.length;u++){var a=i[u].split("="),c=a.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var s=e(a[0]);if(c=(r.read||r)(c,s)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(o[s]=c,t===s)break}catch(t){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return u(t,!1)},o.getJSON=function(t){return u(t,!0)},o.remove=function(e,n){i(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(t,e,n){"use strict";n(3),n(30),n(31),t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t,e,n){var r=n(470),o=n(475)((function(t,e,n){r(t,e,n)}));t.exports=o},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){n(61);var r=n(196),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(196);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(196);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(196);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(195);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(195),o=n(266),i=n(322),u=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<u-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){n(3),n(93),n(30),n(31);var r=n(248),o=n(390),i=n(106),u=n(352),a=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,p=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:a).test(u(t))}},function(t,e,n){n(3),n(30);var r=n(227),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[a]=n:delete t[a]),o}},function(t,e,n){n(3),n(30);var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,n){n(5),n(3),n(6);var r,o=n(391),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(98)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(394),o=n(195),i=n(266);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(395),o=n(396),i=n(397),u=n(398),a=n(399);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(198);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(198),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(198),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(198),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}},function(t,e,n){var r=n(199);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6),t.exports=function(t){var e=r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(199);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(199);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(199);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(406)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(42),n(3),n(8),n(6);var o=n(98),i="object"==r(e)&&e&&!e.nodeType&&e,u=i&&"object"==r(t)&&t&&!t.nodeType&&t,a=u&&u.exports===i?o.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(161)(t))},function(t,e,n){var r=n(323);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(410),o=n(280),i=n(267);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(106),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var r=n(166),o=n(131),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(166),o=n(268),i=n(131),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[r(t)]}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(106),o=n(267),i=n(416),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var a in t)("constructor"!=a||!e&&u.call(t,a))&&n.push(a);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(158),n(209),n(34);var r=n(0);function o(t,e,n){if("function"!=typeof n.value)return n;var o=n.value;return{get:function(){var t=o.bind(this);return Object.defineProperty(this,e,Object(r.__assign)(Object(r.__assign)({},n),{value:t})),t},set:function(t){o=t}}}e.a=function(t,e,n){return e&&n?o(t,e,n):function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(t);return Object.getOwnPropertyNames(t.prototype).forEach((function(n){var r=Object.getOwnPropertyDescriptor(t.prototype,n);r&&"constructor"!==n&&Object.defineProperty(e.prototype,n,o(t.prototype,n,r))})),e}(t)}},,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),o=r.__importStar(n(374)),i=r.__importDefault(n(467)),u=r.__importDefault(n(469)),a=r.__importDefault(n(351));e.default=function(t){return new a.default(new u.default,new i.default,o,t)}},function(t,e,n){"use strict";n(33),n(31),n(50),n(114),Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),o=r.__importDefault(n(468)),i=/application\/(\w+\+)?json/,u=/application\/x-www-form-urlencoded/,a=function(){function t(){}return t.prototype.toRequestBody=function(t){var e=t.headers?this._getHeader(t.headers,"Content-Type"):"";if(t.body){if(i.test(e))return JSON.stringify(t.body);if(u.test(e))return o.default(t.body)}return t.body},t.prototype.toResponse=function(t){var e=this._parseResponseHeaders(t.getAllResponseHeaders());return{body:this._parseResponseBody("response"in t?t.response:t.responseText,e),headers:e,status:t.status,statusText:t.statusText}},t.prototype._parseResponseBody=function(t,e){var n=this._getHeader(e,"Content-Type");return t&&i.test(n)?JSON.parse(t):t},t.prototype._parseResponseHeaders=function(t){return(t?t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/):[]).reduce((function(t,e){var n,o=e.split(":"),i=(o.shift()||"").trim();return i?r.__assign(r.__assign({},t),((n={})[i.toLowerCase()]=o.join(":").trim(),n)):t}),{})},t.prototype._getHeader=function(t,e){return t&&e&&(t[e]||t[e.toLowerCase()])||""},t}();e.default=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(57),n(5),n(33),n(19),n(27),n(3),n(8),n(6),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"object"!==r(t)||null===t?t:Object.keys(t).filter((function(e){return void 0!==t[e]})).map((function(e){var n=t[e];return"string"==typeof n?e+"="+encodeURIComponent(n):e+"="+encodeURIComponent(JSON.stringify(n)||"")})).join("&")}},function(t,e,n){"use strict";n(57),n(27),n(34),Object.defineProperty(e,"__esModule",{value:!0});var r=n(179).__importStar(n(349)),o=function(){function t(){}return t.prototype.createRequest=function(t,e){var n=new XMLHttpRequest;return this._configureRequest(n,t,e),n},t.prototype._configureRequest=function(t,e,n){void 0===n&&(n={}),t.open(n.method||"GET",this._formatUrl(e,n.params,n.encodeParams),!0),n.headers&&this._configureRequestHeaders(t,n.headers),"boolean"==typeof n.credentials&&(t.withCredentials=n.credentials),"number"==typeof n.timeout&&(t.timeout=n.timeout)},t.prototype._configureRequestHeaders=function(t,e){Object.keys(e).filter((function(t){return null!==e[t]})).forEach((function(n){t.setRequestHeader(n,e[n])}))},t.prototype._formatUrl=function(t,e,n){return void 0===n&&(n=!0),e&&0!==Object.keys(e).length?t+"?"+r.stringify(e,{encode:n}):t},t}();e.default=o},function(t,e,n){var r=n(321),o=n(353),i=n(405),u=n(471),a=n(106),c=n(270),s=n(357);t.exports=function t(e,n,f,l,p){e!==n&&i(n,(function(i,c){if(p||(p=new r),a(i))u(e,n,c,f,t,l,p);else{var d=l?l(s(e,c),i,c+"",e,n,p):void 0;void 0===d&&(d=i),o(e,c,d)}}),c)}},function(t,e,n){var r=n(353),o=n(407),i=n(408),u=n(355),a=n(409),c=n(281),s=n(200),f=n(472),l=n(269),p=n(248),d=n(106),h=n(473),y=n(282),v=n(357),m=n(474);t.exports=function(t,e,n,g,b,w,_){var x=v(t,n),S=v(e,n),O=_.get(S);if(O)r(t,n,O);else{var j=w?w(x,S,n+"",t,e,_):void 0,E=void 0===j;if(E){var T=s(S),I=!T&&l(S),k=!T&&!I&&y(S);j=S,T||I||k?s(x)?j=x:f(x)?j=u(x):I?(E=!1,j=o(S,!0)):k?(E=!1,j=i(S,!0)):j=[]:h(S)||c(S)?(j=x,c(x)?j=m(x):d(x)&&!p(x)||(j=a(S))):E=!1}E&&(_.set(S,j),b(j,S,g,w,_),_.delete(S)),r(t,n,j)}}},function(t,e,n){var r=n(228),o=n(131);t.exports=function(t){return o(t)&&r(t)}},function(t,e,n){n(3),n(30);var r=n(166),o=n(280),i=n(131),u="[object Object]",a=Function.prototype,c=Object.prototype,s=a.toString,f=c.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!i(t)||r(t)!=u)return!1;var e=o(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},function(t,e,n){var r=n(300),o=n(270);t.exports=function(t){return r(t,o(t))}},function(t,e,n){var r=n(476),o=n(483);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,u=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,a&&o(n[0],n[1],a)&&(u=i<3?void 0:u,i=1),e=Object(e);++r<i;){var c=n[r];c&&t(e,c,r,u)}return e}))}},function(t,e,n){var r=n(301),o=n(477),i=n(479);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e,n){var r=n(478),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),c=Array(a);++u<a;)c[u]=i[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=i[u];return s[e]=n(c),r(t,this,s)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(480),o=n(482)(r);t.exports=o},function(t,e,n){var r=n(481),o=n(299),i=n(301),u=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=u},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=800,r=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var u=o(),a=r-(u-i);if(i=u,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o=n(210),i=n(228),u=n(283),a=n(106);t.exports=function(t,e,n){if(!a(n))return!1;var c=r(e);return!!("number"==c?i(n)&&u(e,n.length):"string"==c&&e in n)&&o(n[e],t)}},function(t,e,n){"use strict";n(27),Object.defineProperty(e,"__esModule",{value:!0});var r=n(179).__importStar(n(349)),o=function(){function t(){this._cache={}}return t.prototype.read=function(t,e){var n=this.getKey(t,e.params);return this._cache[n]||null},t.prototype.write=function(t,e,n){var r=this.getKey(t,e.params);this._cache[r]=n},t.prototype.getKey=function(t,e){return void 0===e&&(e={}),0===Object.keys(e).length?t:t+"?"+r.stringify(e)},t}();e.DefaultCache=o},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return!!t&&("object"===r(t)||"function"==typeof t)&&"function"==typeof t.then}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179).__importDefault(n(284));e.default=function(t){return new r.default(t)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(25),n(150),Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.hasCookies=function(){var t=new c;try{t.setItem("__test","1");var e=t.getItem("__test");return t.removeItem("__test"),"1"===e}catch(t){return!1}};var o,i=n(633),u=(o=i)&&o.__esModule?o:{default:o};var a="lS_",c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.cookieOptions=Object.assign({path:"/"},e),a=void 0===e.prefix?a:e.prefix}return r(t,[{key:"getItem",value:function(t){var e=u.default.parse(document.cookie);return e&&e.hasOwnProperty(a+t)?e[a+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=u.default.serialize(a+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=u.default.serialize(a+t,"",e),null}},{key:"clear",value:function(){var t=u.default.parse(document.cookie);for(var e in t)0===e.indexOf(a)&&this.removeItem(e.substr(a.length));return null}}]),t}();e.default=c},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(25),n(5),n(19),n(42),n(61),n(60),n(3),n(147),n(8),n(50),n(34),n(6),function(e){"use strict";if("undefined"!=typeof window){var n=!0,o=10,i="",u=0,a="",c=null,s="",f=!1,l={resize:1,click:1},p=128,d=!0,h=1,y="bodyOffset",v=y,m=!0,g="",b={},w=32,_=null,x=!1,S="[iFrameSizer]",O=S.length,j="",E={max:1,min:1,bodyScroll:1,documentElementScroll:1},T="child",I=!0,k=window.parent,P="*",C=0,R=!1,A=null,M=16,L=1,F="scroll",N=F,z=window,D=function(){st("MessageCallback function not defined")},U=function(){},q=function(){},H={height:function(){return st("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return st("Custom width calculation function not defined"),document.body.scrollWidth}},B={},W=!1;try{var V=Object.create({},{passive:{get:function(){W=!0}},once:{get:function(){!0}}});window.addEventListener("test",rt,V),window.removeEventListener("test",rt,V)}catch(t){}var G,$,J,K,Y,X,Q,Z=Date.now||function(){return(new Date).getTime()},tt={bodyOffset:function(){return document.body.offsetHeight+wt("marginTop")+wt("marginBottom")},offset:function(){return tt.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return H.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,xt(tt))},min:function(){return Math.min.apply(null,xt(tt))},grow:function(){return tt.max()},lowestElement:function(){return Math.max(tt.bodyOffset()||tt.documentElementOffset(),_t("bottom",Ot()))},taggedElement:function(){return St("bottom","data-iframe-height")}},et={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return H.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(et.bodyScroll(),et.documentElementScroll())},max:function(){return Math.max.apply(null,xt(et))},min:function(){return Math.min.apply(null,xt(et))},rightMostElement:function(){return _t("right",Ot())},taggedElement:function(){return St("right","data-iframe-width")}},nt=(G=jt,Y=null,X=0,Q=function(){X=Z(),Y=null,K=G.apply($,J),Y||($=J=null)},function(){var t=Z();X||(X=t);var e=M-(t-X);return $=this,J=arguments,e<=0||e>M?(Y&&(clearTimeout(Y),Y=null),X=t,K=G.apply($,J),Y||($=J=null)):Y||(Y=setTimeout(Q,e)),K});ot(window,"message",Ct),ot(window,"readystatechange",Rt),Rt()}function rt(){}function ot(t,e,n,r){"addEventListener"in window?t.addEventListener(e,n,!!W&&(r||{})):"attachEvent"in window&&t.attachEvent("on"+e,n)}function it(t,e,n){"removeEventListener"in window?t.removeEventListener(e,n,!1):"detachEvent"in window&&t.detachEvent("on"+e,n)}function ut(t){return t.charAt(0).toUpperCase()+t.slice(1)}function at(t){return S+"["+j+"] "+t}function ct(t){x&&"object"===r(window.console)&&console.log(at(t))}function st(t){"object"===r(window.console)&&console.warn(at(t))}function ft(){var t;!function(){function t(t){return"true"===t}var r=g.substr(O).split(":");j=r[0],u=e!==r[1]?Number(r[1]):u,f=e!==r[2]?t(r[2]):f,x=e!==r[3]?t(r[3]):x,w=e!==r[4]?Number(r[4]):w,n=e!==r[6]?t(r[6]):n,a=r[7],v=e!==r[8]?r[8]:v,i=r[9],s=r[10],C=e!==r[11]?Number(r[11]):C,b.enable=e!==r[12]&&t(r[12]),T=e!==r[13]?r[13]:T,N=e!==r[14]?r[14]:N}(),ct("Initialising iFrame ("+location.href+")"),function(){function t(t,e){return"function"==typeof t&&(ct("Setup custom "+e+"CalcMethod"),H[e]=t,t="custom"),t}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e=window.iFrameResizer,ct("Reading data from page: "+JSON.stringify(e)),D="messageCallback"in e?e.messageCallback:D,U="readyCallback"in e?e.readyCallback:U,P="targetOrigin"in e?e.targetOrigin:P,v="heightCalculationMethod"in e?e.heightCalculationMethod:v,N="widthCalculationMethod"in e?e.widthCalculationMethod:N,v=t(v,"height"),N=t(N,"width"));var e;ct("TargetOrigin for parent set to: "+P)}(),function(){e===a&&(a=u+"px");lt("margin",function(t,e){-1!==e.indexOf("-")&&(st("Negative CSS value ignored for "+t),e="");return e}("margin",a))}(),lt("background",i),lt("padding",s),(t=document.createElement("div")).style.clear="both",t.style.display="block",document.body.appendChild(t),yt(),vt(),document.documentElement.style.height="",document.body.style.height="",ct('HTML & body height set to "auto"'),ct("Enable public methods"),z.parentIFrame={autoResize:function(t){return!0===t&&!1===n?(n=!0,mt()):!1===t&&!0===n&&(n=!1,gt()),n},close:function(){Pt(0,0,"close"),ct("Disable outgoing messages"),I=!1,ct("Remove event listener: Message"),it(window,"message",Ct),!0===n&>()},getId:function(){return j},getPageInfo:function(t){"function"==typeof t?(q=t,Pt(0,0,"pageInfo")):(q=function(){},Pt(0,0,"pageInfoStop"))},moveToAnchor:function(t){b.findTarget(t)},reset:function(){kt("parentIFrame.reset")},scrollTo:function(t,e){Pt(e,t,"scrollTo")},scrollToOffset:function(t,e){Pt(e,t,"scrollToOffset")},sendMessage:function(t,e){Pt(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){v=t,yt()},setWidthCalculationMethod:function(t){N=t,vt()},setTargetOrigin:function(t){ct("Set targetOrigin: "+t),P=t},size:function(t,e){Et("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},mt(),b=function(){function t(t){var n=t.getBoundingClientRect(),r={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function n(n){var r=n.split("#")[1]||n,o=decodeURIComponent(r),i=document.getElementById(o)||document.getElementsByName(o)[0];e!==i?function(e){var n=t(e);ct("Moving to in page link (#"+r+") at x: "+n.x+" y: "+n.y),Pt(n.y,n.x,"scrollToOffset")}(i):(ct("In page link (#"+r+") not found in iFrame, so sending to parent"),Pt(0,0,"inPageLink","#"+r))}function r(){""!==location.hash&&"#"!==location.hash&&n(location.href)}b.enable?Array.prototype.forEach&&document.querySelectorAll?(ct("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(t){"#"!==t.getAttribute("href")&&ot(t,"click",(function(t){t.preventDefault(),n(this.getAttribute("href"))}))})),ot(window,"hashchange",r),setTimeout(r,p)):st("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):ct("In page linking not enabled");return{findTarget:n}}(),Et("init","Init message from host page"),U()}function lt(t,n){e!==n&&""!==n&&"null"!==n&&(document.body.style[t]=n,ct("Body "+t+' set to "'+n+'"'))}function pt(t){var e={add:function(e){function n(){Et(t.eventName,t.eventType)}B[e]=n,ot(window,e,n,{passive:!0})},remove:function(t){var e=B[t];delete B[t],it(window,t,e)}};t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(e[t.method])):e[t.method](t.eventName),ct(ut(t.method)+" event listener: "+t.eventType)}function dt(t){pt({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),pt({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),pt({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),pt({method:t,eventType:"Input",eventName:"input"}),pt({method:t,eventType:"Mouse Up",eventName:"mouseup"}),pt({method:t,eventType:"Mouse Down",eventName:"mousedown"}),pt({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),pt({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),pt({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),pt({method:t,eventType:"Touch Start",eventName:"touchstart"}),pt({method:t,eventType:"Touch End",eventName:"touchend"}),pt({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),pt({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),pt({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),pt({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===T&&pt({method:t,eventType:"IFrame Resized",eventName:"resize"})}function ht(t,e,n,r){return e!==t&&(t in n||(st(t+" is not a valid option for "+r+"CalculationMethod."),t=e),ct(r+' calculation method set to "'+t+'"')),t}function yt(){v=ht(v,y,tt,"height")}function vt(){N=ht(N,F,et,"width")}function mt(){var t;!0===n?(dt("add"),t=0>w,window.MutationObserver||window.WebKitMutationObserver?t?bt():c=function(){function t(t){function e(t){!1===t.complete&&(ct("Attach listeners to "+t.src),t.addEventListener("load",o,!1),t.addEventListener("error",i,!1),a.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function n(t){ct("Remove listeners from "+t.src),t.removeEventListener("load",o,!1),t.removeEventListener("error",i,!1),function(t){a.splice(a.indexOf(t),1)}(t)}function r(t,r,o){n(t.target),Et(r,o+": "+t.target.src,e,e)}function o(t){r(t,"imageLoad","Image loaded")}function i(t){r(t,"imageLoadFailed","Image load failed")}function u(e){Et("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}var a=[],c=window.MutationObserver||window.WebKitMutationObserver,s=function(){var t=document.querySelector("body");return s=new c(u),ct("Create body MutationObserver"),s.observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),s}();return{disconnect:function(){"disconnect"in s&&(ct("Disconnect body MutationObserver"),s.disconnect(),a.forEach(n))}}}():(ct("MutationObserver not supported in this browser!"),bt())):ct("Auto Resize disabled")}function gt(){dt("remove"),null!==c&&c.disconnect(),clearInterval(_)}function bt(){0!==w&&(ct("setInterval: "+w+"ms"),_=setInterval((function(){Et("interval","setInterval: "+w)}),Math.abs(w)))}function wt(t,e){var n=0;return e=e||document.body,n="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(n=document.defaultView.getComputedStyle(e,null))?n[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,o);var n=e.style.left,r=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft,e.style.left=n,e.runtimeStyle.left=r,t}(e.currentStyle[t]),parseInt(n,o)}function _t(t,e){for(var n=e.length,r=0,o=0,i=ut(t),u=Z(),a=0;a<n;a++)(r=e[a].getBoundingClientRect()[t]+wt("margin"+i,e[a]))>o&&(o=r);return u=Z()-u,ct("Parsed "+n+" HTML elements"),ct("Element position calculated in "+u+"ms"),function(t){t>M/2&&ct("Event throttle increased to "+(M=2*t)+"ms")}(u),o}function xt(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function St(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length&&(st("No tagged elements ("+e+") found on page"),document.querySelectorAll("body *")),_t(t,n)}function Ot(){return document.querySelectorAll("body *")}function jt(t,n,r,o){var i,u;!function(){function t(t,e){return!(Math.abs(t-e)<=C)}return i=e!==r?r:tt[v](),u=e!==o?o:et[N](),t(h,i)||f&&t(L,u)}()&&"init"!==t?t in{init:1,interval:1,size:1}||!(v in E||f&&N in E)?t in{interval:1}||ct("No change in size detected"):kt(n):(Tt(),Pt(h=i,L=u,t))}function Et(t,e,n,r){R&&t in l?ct("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||ct("Trigger event: "+e),"init"===t?jt(t,e,n,r):nt(t,e,n,r))}function Tt(){R||(R=!0,ct("Trigger event lock on")),clearTimeout(A),A=setTimeout((function(){R=!1,ct("Trigger event lock off"),ct("--")}),p)}function It(t){h=tt[v](),L=et[N](),Pt(h,L,t)}function kt(t){var e=v;v=y,ct("Reset trigger event: "+t),Tt(),It("reset"),v=e}function Pt(t,n,r,o,i){var u;!0===I&&(e===i?i=P:ct("Message targetOrigin: "+i),ct("Sending message to host page ("+(u=j+":"+t+":"+n+":"+r+(e!==o?":"+o:""))+")"),k.postMessage(S+u,i))}function Ct(e){var n={init:function(){g=e.data,k=e.source,ft(),d=!1,setTimeout((function(){m=!1}),p)},reset:function(){m?ct("Page reset ignored by init"):(ct("Page size reset by host page"),It("resetPage"))},resize:function(){Et("resizeParent","Parent window requested size check")},moveToAnchor:function(){b.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var t=o();ct("PageInfoFromParent called from parent: "+t),q(JSON.parse(t)),ct(" --")},message:function(){var t=o();ct("MessageCallback called from parent: "+t),D(JSON.parse(t)),ct(" --")}};function r(){return e.data.split("]")[1].split(":")[0]}function o(){return e.data.substr(e.data.indexOf(":")+1)}function i(){return e.data.split(":")[2]in{true:1,false:1}}function u(){var o=r();o in n?n[o]():!t.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||i()||st("Unexpected message ("+e.data+")")}S===(""+e.data).substr(0,O)&&(!1===d?u():i()?n.init():ct('Ignored message of type "'+r()+'". Received before initialization.'))}function Rt(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},,,,,,,function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.StyleConfigured="STYLE_CONFIGURED"}(r||(r={}))},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n(25),n(31);var r=n(218);function o(t){return Object(r.a)(0===t.hostname.indexOf("www")?t.href:t.href.replace(t.hostname,"www."+t.hostname))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(31),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if("local"===e)return i("localStorage");if("session"===e)return i("sessionStorage");if("cookie"===e)return(0,r.hasCookies)();if("memory"===e)return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")};var r=n(515),o="__test";function i(t){try{var e=window[t];return e.setItem(o,"1"),e.removeItem(o),!0}catch(t){return!1}}},function(t,e,n){"use strict";
|
|
41
|
+
*/n(10),n(12),n(16),n(5),n(33),n(42),n(3),n(8),n(31),n(50),n(6),function(n){var o;if("function"==typeof define&&define.amd&&(define(n),o=!0),"object"===r(e)&&(t.exports=n(),o=!0),!o){var i=window.Cookies,u=window.Cookies=n();u.noConflict=function(){return window.Cookies=i,u}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var u=JSON.stringify(n);/^[\{\[]/.test(u)&&(n=u)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=e+"="+n+a}}function u(t,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],u=0;u<i.length;u++){var a=i[u].split("="),c=a.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var s=e(a[0]);if(c=(r.read||r)(c,s)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(o[s]=c,t===s)break}catch(t){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return u(t,!1)},o.getJSON=function(t){return u(t,!0)},o.remove=function(e,n){i(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(t,e,n){"use strict";n(3),n(30),n(31),t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t,e,n){var r=n(470),o=n(475)((function(t,e,n){r(t,e,n)}));t.exports=o},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){n(61);var r=n(196),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(196);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(196);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(196);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(195);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(195),o=n(266),i=n(322),u=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<u-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){n(3),n(93),n(30),n(31);var r=n(248),o=n(390),i=n(106),u=n(352),a=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,p=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:a).test(u(t))}},function(t,e,n){n(3),n(30);var r=n(227),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[a]=n:delete t[a]),o}},function(t,e,n){n(3),n(30);var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,n){n(5),n(3),n(6);var r,o=n(391),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(98)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(394),o=n(195),i=n(266);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(395),o=n(396),i=n(397),u=n(398),a=n(399);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(198);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(198),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(198),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(198),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}},function(t,e,n){var r=n(199);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6),t.exports=function(t){var e=r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(199);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(199);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(199);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(406)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(42),n(3),n(8),n(6);var o=n(98),i="object"==r(e)&&e&&!e.nodeType&&e,u=i&&"object"==r(t)&&t&&!t.nodeType&&t,a=u&&u.exports===i?o.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(161)(t))},function(t,e,n){var r=n(323);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(410),o=n(280),i=n(267);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(106),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var r=n(166),o=n(131),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(166),o=n(268),i=n(131),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[r(t)]}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(106),o=n(267),i=n(416),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var a in t)("constructor"!=a||!e&&u.call(t,a))&&n.push(a);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(158),n(209),n(34);var r=n(0);function o(t,e,n){if("function"!=typeof n.value)return n;var o=n.value;return{get:function(){var t=o.bind(this);return Object.defineProperty(this,e,Object(r.__assign)(Object(r.__assign)({},n),{value:t})),t},set:function(t){o=t}}}e.a=function(t,e,n){return e&&n?o(t,e,n):function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(t);return Object.getOwnPropertyNames(t.prototype).forEach((function(n){var r=Object.getOwnPropertyDescriptor(t.prototype,n);r&&"constructor"!==n&&Object.defineProperty(e.prototype,n,o(t.prototype,n,r))})),e}(t)}},,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),o=r.__importStar(n(374)),i=r.__importDefault(n(467)),u=r.__importDefault(n(469)),a=r.__importDefault(n(351));e.default=function(t){return new a.default(new u.default,new i.default,o,t)}},function(t,e,n){"use strict";n(33),n(31),n(50),n(114),Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),o=r.__importDefault(n(468)),i=/application\/(\w+\+)?json/,u=/application\/x-www-form-urlencoded/,a=function(){function t(){}return t.prototype.toRequestBody=function(t){var e=t.headers?this._getHeader(t.headers,"Content-Type"):"";if(t.body){if(i.test(e))return JSON.stringify(t.body);if(u.test(e))return o.default(t.body)}return t.body},t.prototype.toResponse=function(t){var e=this._parseResponseHeaders(t.getAllResponseHeaders());return{body:this._parseResponseBody("response"in t?t.response:t.responseText,e),headers:e,status:t.status,statusText:t.statusText}},t.prototype._parseResponseBody=function(t,e){var n=this._getHeader(e,"Content-Type");return t&&i.test(n)?JSON.parse(t):t},t.prototype._parseResponseHeaders=function(t){return(t?t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/):[]).reduce((function(t,e){var n,o=e.split(":"),i=(o.shift()||"").trim();return i?r.__assign(r.__assign({},t),((n={})[i.toLowerCase()]=o.join(":").trim(),n)):t}),{})},t.prototype._getHeader=function(t,e){return t&&e&&(t[e]||t[e.toLowerCase()])||""},t}();e.default=a},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(57),n(5),n(33),n(19),n(27),n(3),n(8),n(6),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"object"!==r(t)||null===t?t:Object.keys(t).filter((function(e){return void 0!==t[e]})).map((function(e){var n=t[e];return"string"==typeof n?e+"="+encodeURIComponent(n):e+"="+encodeURIComponent(JSON.stringify(n)||"")})).join("&")}},function(t,e,n){"use strict";n(57),n(27),n(34),Object.defineProperty(e,"__esModule",{value:!0});var r=n(179).__importStar(n(349)),o=function(){function t(){}return t.prototype.createRequest=function(t,e){var n=new XMLHttpRequest;return this._configureRequest(n,t,e),n},t.prototype._configureRequest=function(t,e,n){void 0===n&&(n={}),t.open(n.method||"GET",this._formatUrl(e,n.params,n.encodeParams),!0),n.headers&&this._configureRequestHeaders(t,n.headers),"boolean"==typeof n.credentials&&(t.withCredentials=n.credentials),"number"==typeof n.timeout&&(t.timeout=n.timeout)},t.prototype._configureRequestHeaders=function(t,e){Object.keys(e).filter((function(t){return null!==e[t]})).forEach((function(n){t.setRequestHeader(n,e[n])}))},t.prototype._formatUrl=function(t,e,n){return void 0===n&&(n=!0),e&&0!==Object.keys(e).length?t+"?"+r.stringify(e,{encode:n}):t},t}();e.default=o},function(t,e,n){var r=n(321),o=n(353),i=n(405),u=n(471),a=n(106),c=n(270),s=n(357);t.exports=function t(e,n,f,l,p){e!==n&&i(n,(function(i,c){if(p||(p=new r),a(i))u(e,n,c,f,t,l,p);else{var d=l?l(s(e,c),i,c+"",e,n,p):void 0;void 0===d&&(d=i),o(e,c,d)}}),c)}},function(t,e,n){var r=n(353),o=n(407),i=n(408),u=n(355),a=n(409),c=n(281),s=n(200),f=n(472),l=n(269),p=n(248),d=n(106),h=n(473),y=n(282),v=n(357),m=n(474);t.exports=function(t,e,n,g,b,w,_){var x=v(t,n),S=v(e,n),O=_.get(S);if(O)r(t,n,O);else{var j=w?w(x,S,n+"",t,e,_):void 0,E=void 0===j;if(E){var T=s(S),I=!T&&l(S),k=!T&&!I&&y(S);j=S,T||I||k?s(x)?j=x:f(x)?j=u(x):I?(E=!1,j=o(S,!0)):k?(E=!1,j=i(S,!0)):j=[]:h(S)||c(S)?(j=x,c(x)?j=m(x):d(x)&&!p(x)||(j=a(S))):E=!1}E&&(_.set(S,j),b(j,S,g,w,_),_.delete(S)),r(t,n,j)}}},function(t,e,n){var r=n(228),o=n(131);t.exports=function(t){return o(t)&&r(t)}},function(t,e,n){n(3),n(30);var r=n(166),o=n(280),i=n(131),u="[object Object]",a=Function.prototype,c=Object.prototype,s=a.toString,f=c.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!i(t)||r(t)!=u)return!1;var e=o(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},function(t,e,n){var r=n(300),o=n(270);t.exports=function(t){return r(t,o(t))}},function(t,e,n){var r=n(476),o=n(483);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,u=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,a&&o(n[0],n[1],a)&&(u=i<3?void 0:u,i=1),e=Object(e);++r<i;){var c=n[r];c&&t(e,c,r,u)}return e}))}},function(t,e,n){var r=n(301),o=n(477),i=n(479);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e,n){var r=n(478),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),c=Array(a);++u<a;)c[u]=i[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=i[u];return s[e]=n(c),r(t,this,s)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(480),o=n(482)(r);t.exports=o},function(t,e,n){var r=n(481),o=n(299),i=n(301),u=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=u},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=800,r=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var u=o(),a=r-(u-i);if(i=u,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6);var o=n(210),i=n(228),u=n(283),a=n(106);t.exports=function(t,e,n){if(!a(n))return!1;var c=r(e);return!!("number"==c?i(n)&&u(e,n.length):"string"==c&&e in n)&&o(n[e],t)}},function(t,e,n){"use strict";n(27),Object.defineProperty(e,"__esModule",{value:!0});var r=n(179).__importStar(n(349)),o=function(){function t(){this._cache={}}return t.prototype.read=function(t,e){var n=this.getKey(t,e.params);return this._cache[n]||null},t.prototype.write=function(t,e,n){var r=this.getKey(t,e.params);this._cache[r]=n},t.prototype.getKey=function(t,e){return void 0===e&&(e={}),0===Object.keys(e).length?t:t+"?"+r.stringify(e)},t}();e.DefaultCache=o},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(5),n(3),n(8),n(6),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return!!t&&("object"===r(t)||"function"==typeof t)&&"function"==typeof t.then}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179).__importDefault(n(284));e.default=function(t){return new r.default(t)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(25),n(150),Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.hasCookies=function(){var t=new c;try{t.setItem("__test","1");var e=t.getItem("__test");return t.removeItem("__test"),"1"===e}catch(t){return!1}};var o,i=n(634),u=(o=i)&&o.__esModule?o:{default:o};var a="lS_",c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.cookieOptions=Object.assign({path:"/"},e),a=void 0===e.prefix?a:e.prefix}return r(t,[{key:"getItem",value:function(t){var e=u.default.parse(document.cookie);return e&&e.hasOwnProperty(a+t)?e[a+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=u.default.serialize(a+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=u.default.serialize(a+t,"",e),null}},{key:"clear",value:function(){var t=u.default.parse(document.cookie);for(var e in t)0===e.indexOf(a)&&this.removeItem(e.substr(a.length));return null}}]),t}();e.default=c},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(25),n(5),n(19),n(42),n(61),n(60),n(3),n(147),n(8),n(50),n(34),n(6),function(e){"use strict";if("undefined"!=typeof window){var n=!0,o=10,i="",u=0,a="",c=null,s="",f=!1,l={resize:1,click:1},p=128,d=!0,h=1,y="bodyOffset",v=y,m=!0,g="",b={},w=32,_=null,x=!1,S="[iFrameSizer]",O=S.length,j="",E={max:1,min:1,bodyScroll:1,documentElementScroll:1},T="child",I=!0,k=window.parent,P="*",C=0,R=!1,A=null,M=16,L=1,F="scroll",N=F,z=window,D=function(){st("MessageCallback function not defined")},U=function(){},q=function(){},H={height:function(){return st("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return st("Custom width calculation function not defined"),document.body.scrollWidth}},B={},W=!1;try{var V=Object.create({},{passive:{get:function(){W=!0}},once:{get:function(){!0}}});window.addEventListener("test",rt,V),window.removeEventListener("test",rt,V)}catch(t){}var G,$,J,K,Y,X,Q,Z=Date.now||function(){return(new Date).getTime()},tt={bodyOffset:function(){return document.body.offsetHeight+wt("marginTop")+wt("marginBottom")},offset:function(){return tt.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return H.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,xt(tt))},min:function(){return Math.min.apply(null,xt(tt))},grow:function(){return tt.max()},lowestElement:function(){return Math.max(tt.bodyOffset()||tt.documentElementOffset(),_t("bottom",Ot()))},taggedElement:function(){return St("bottom","data-iframe-height")}},et={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return H.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(et.bodyScroll(),et.documentElementScroll())},max:function(){return Math.max.apply(null,xt(et))},min:function(){return Math.min.apply(null,xt(et))},rightMostElement:function(){return _t("right",Ot())},taggedElement:function(){return St("right","data-iframe-width")}},nt=(G=jt,Y=null,X=0,Q=function(){X=Z(),Y=null,K=G.apply($,J),Y||($=J=null)},function(){var t=Z();X||(X=t);var e=M-(t-X);return $=this,J=arguments,e<=0||e>M?(Y&&(clearTimeout(Y),Y=null),X=t,K=G.apply($,J),Y||($=J=null)):Y||(Y=setTimeout(Q,e)),K});ot(window,"message",Ct),ot(window,"readystatechange",Rt),Rt()}function rt(){}function ot(t,e,n,r){"addEventListener"in window?t.addEventListener(e,n,!!W&&(r||{})):"attachEvent"in window&&t.attachEvent("on"+e,n)}function it(t,e,n){"removeEventListener"in window?t.removeEventListener(e,n,!1):"detachEvent"in window&&t.detachEvent("on"+e,n)}function ut(t){return t.charAt(0).toUpperCase()+t.slice(1)}function at(t){return S+"["+j+"] "+t}function ct(t){x&&"object"===r(window.console)&&console.log(at(t))}function st(t){"object"===r(window.console)&&console.warn(at(t))}function ft(){var t;!function(){function t(t){return"true"===t}var r=g.substr(O).split(":");j=r[0],u=e!==r[1]?Number(r[1]):u,f=e!==r[2]?t(r[2]):f,x=e!==r[3]?t(r[3]):x,w=e!==r[4]?Number(r[4]):w,n=e!==r[6]?t(r[6]):n,a=r[7],v=e!==r[8]?r[8]:v,i=r[9],s=r[10],C=e!==r[11]?Number(r[11]):C,b.enable=e!==r[12]&&t(r[12]),T=e!==r[13]?r[13]:T,N=e!==r[14]?r[14]:N}(),ct("Initialising iFrame ("+location.href+")"),function(){function t(t,e){return"function"==typeof t&&(ct("Setup custom "+e+"CalcMethod"),H[e]=t,t="custom"),t}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e=window.iFrameResizer,ct("Reading data from page: "+JSON.stringify(e)),D="messageCallback"in e?e.messageCallback:D,U="readyCallback"in e?e.readyCallback:U,P="targetOrigin"in e?e.targetOrigin:P,v="heightCalculationMethod"in e?e.heightCalculationMethod:v,N="widthCalculationMethod"in e?e.widthCalculationMethod:N,v=t(v,"height"),N=t(N,"width"));var e;ct("TargetOrigin for parent set to: "+P)}(),function(){e===a&&(a=u+"px");lt("margin",function(t,e){-1!==e.indexOf("-")&&(st("Negative CSS value ignored for "+t),e="");return e}("margin",a))}(),lt("background",i),lt("padding",s),(t=document.createElement("div")).style.clear="both",t.style.display="block",document.body.appendChild(t),yt(),vt(),document.documentElement.style.height="",document.body.style.height="",ct('HTML & body height set to "auto"'),ct("Enable public methods"),z.parentIFrame={autoResize:function(t){return!0===t&&!1===n?(n=!0,mt()):!1===t&&!0===n&&(n=!1,gt()),n},close:function(){Pt(0,0,"close"),ct("Disable outgoing messages"),I=!1,ct("Remove event listener: Message"),it(window,"message",Ct),!0===n&>()},getId:function(){return j},getPageInfo:function(t){"function"==typeof t?(q=t,Pt(0,0,"pageInfo")):(q=function(){},Pt(0,0,"pageInfoStop"))},moveToAnchor:function(t){b.findTarget(t)},reset:function(){kt("parentIFrame.reset")},scrollTo:function(t,e){Pt(e,t,"scrollTo")},scrollToOffset:function(t,e){Pt(e,t,"scrollToOffset")},sendMessage:function(t,e){Pt(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){v=t,yt()},setWidthCalculationMethod:function(t){N=t,vt()},setTargetOrigin:function(t){ct("Set targetOrigin: "+t),P=t},size:function(t,e){Et("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},mt(),b=function(){function t(t){var n=t.getBoundingClientRect(),r={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function n(n){var r=n.split("#")[1]||n,o=decodeURIComponent(r),i=document.getElementById(o)||document.getElementsByName(o)[0];e!==i?function(e){var n=t(e);ct("Moving to in page link (#"+r+") at x: "+n.x+" y: "+n.y),Pt(n.y,n.x,"scrollToOffset")}(i):(ct("In page link (#"+r+") not found in iFrame, so sending to parent"),Pt(0,0,"inPageLink","#"+r))}function r(){""!==location.hash&&"#"!==location.hash&&n(location.href)}b.enable?Array.prototype.forEach&&document.querySelectorAll?(ct("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(t){"#"!==t.getAttribute("href")&&ot(t,"click",(function(t){t.preventDefault(),n(this.getAttribute("href"))}))})),ot(window,"hashchange",r),setTimeout(r,p)):st("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):ct("In page linking not enabled");return{findTarget:n}}(),Et("init","Init message from host page"),U()}function lt(t,n){e!==n&&""!==n&&"null"!==n&&(document.body.style[t]=n,ct("Body "+t+' set to "'+n+'"'))}function pt(t){var e={add:function(e){function n(){Et(t.eventName,t.eventType)}B[e]=n,ot(window,e,n,{passive:!0})},remove:function(t){var e=B[t];delete B[t],it(window,t,e)}};t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(e[t.method])):e[t.method](t.eventName),ct(ut(t.method)+" event listener: "+t.eventType)}function dt(t){pt({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),pt({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),pt({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),pt({method:t,eventType:"Input",eventName:"input"}),pt({method:t,eventType:"Mouse Up",eventName:"mouseup"}),pt({method:t,eventType:"Mouse Down",eventName:"mousedown"}),pt({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),pt({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),pt({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),pt({method:t,eventType:"Touch Start",eventName:"touchstart"}),pt({method:t,eventType:"Touch End",eventName:"touchend"}),pt({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),pt({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),pt({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),pt({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===T&&pt({method:t,eventType:"IFrame Resized",eventName:"resize"})}function ht(t,e,n,r){return e!==t&&(t in n||(st(t+" is not a valid option for "+r+"CalculationMethod."),t=e),ct(r+' calculation method set to "'+t+'"')),t}function yt(){v=ht(v,y,tt,"height")}function vt(){N=ht(N,F,et,"width")}function mt(){var t;!0===n?(dt("add"),t=0>w,window.MutationObserver||window.WebKitMutationObserver?t?bt():c=function(){function t(t){function e(t){!1===t.complete&&(ct("Attach listeners to "+t.src),t.addEventListener("load",o,!1),t.addEventListener("error",i,!1),a.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function n(t){ct("Remove listeners from "+t.src),t.removeEventListener("load",o,!1),t.removeEventListener("error",i,!1),function(t){a.splice(a.indexOf(t),1)}(t)}function r(t,r,o){n(t.target),Et(r,o+": "+t.target.src,e,e)}function o(t){r(t,"imageLoad","Image loaded")}function i(t){r(t,"imageLoadFailed","Image load failed")}function u(e){Et("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}var a=[],c=window.MutationObserver||window.WebKitMutationObserver,s=function(){var t=document.querySelector("body");return s=new c(u),ct("Create body MutationObserver"),s.observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),s}();return{disconnect:function(){"disconnect"in s&&(ct("Disconnect body MutationObserver"),s.disconnect(),a.forEach(n))}}}():(ct("MutationObserver not supported in this browser!"),bt())):ct("Auto Resize disabled")}function gt(){dt("remove"),null!==c&&c.disconnect(),clearInterval(_)}function bt(){0!==w&&(ct("setInterval: "+w+"ms"),_=setInterval((function(){Et("interval","setInterval: "+w)}),Math.abs(w)))}function wt(t,e){var n=0;return e=e||document.body,n="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(n=document.defaultView.getComputedStyle(e,null))?n[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,o);var n=e.style.left,r=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft,e.style.left=n,e.runtimeStyle.left=r,t}(e.currentStyle[t]),parseInt(n,o)}function _t(t,e){for(var n=e.length,r=0,o=0,i=ut(t),u=Z(),a=0;a<n;a++)(r=e[a].getBoundingClientRect()[t]+wt("margin"+i,e[a]))>o&&(o=r);return u=Z()-u,ct("Parsed "+n+" HTML elements"),ct("Element position calculated in "+u+"ms"),function(t){t>M/2&&ct("Event throttle increased to "+(M=2*t)+"ms")}(u),o}function xt(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function St(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length&&(st("No tagged elements ("+e+") found on page"),document.querySelectorAll("body *")),_t(t,n)}function Ot(){return document.querySelectorAll("body *")}function jt(t,n,r,o){var i,u;!function(){function t(t,e){return!(Math.abs(t-e)<=C)}return i=e!==r?r:tt[v](),u=e!==o?o:et[N](),t(h,i)||f&&t(L,u)}()&&"init"!==t?t in{init:1,interval:1,size:1}||!(v in E||f&&N in E)?t in{interval:1}||ct("No change in size detected"):kt(n):(Tt(),Pt(h=i,L=u,t))}function Et(t,e,n,r){R&&t in l?ct("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||ct("Trigger event: "+e),"init"===t?jt(t,e,n,r):nt(t,e,n,r))}function Tt(){R||(R=!0,ct("Trigger event lock on")),clearTimeout(A),A=setTimeout((function(){R=!1,ct("Trigger event lock off"),ct("--")}),p)}function It(t){h=tt[v](),L=et[N](),Pt(h,L,t)}function kt(t){var e=v;v=y,ct("Reset trigger event: "+t),Tt(),It("reset"),v=e}function Pt(t,n,r,o,i){var u;!0===I&&(e===i?i=P:ct("Message targetOrigin: "+i),ct("Sending message to host page ("+(u=j+":"+t+":"+n+":"+r+(e!==o?":"+o:""))+")"),k.postMessage(S+u,i))}function Ct(e){var n={init:function(){g=e.data,k=e.source,ft(),d=!1,setTimeout((function(){m=!1}),p)},reset:function(){m?ct("Page reset ignored by init"):(ct("Page size reset by host page"),It("resetPage"))},resize:function(){Et("resizeParent","Parent window requested size check")},moveToAnchor:function(){b.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var t=o();ct("PageInfoFromParent called from parent: "+t),q(JSON.parse(t)),ct(" --")},message:function(){var t=o();ct("MessageCallback called from parent: "+t),D(JSON.parse(t)),ct(" --")}};function r(){return e.data.split("]")[1].split(":")[0]}function o(){return e.data.substr(e.data.indexOf(":")+1)}function i(){return e.data.split(":")[2]in{true:1,false:1}}function u(){var o=r();o in n?n[o]():!t.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||i()||st("Unexpected message ("+e.data+")")}S===(""+e.data).substr(0,O)&&(!1===d?u():i()?n.init():ct('Ignored message of type "'+r()+'". Received before initialization.'))}function Rt(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},,,,,,,function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.StyleConfigured="STYLE_CONFIGURED"}(r||(r={}))},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n(25),n(31);var r=n(218);function o(t){return Object(r.a)(0===t.hostname.indexOf("www")?t.href:t.href.replace(t.hostname,"www."+t.hostname))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(31),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if("local"===e)return i("localStorage");if("session"===e)return i("sessionStorage");if("cookie"===e)return(0,r.hasCookies)();if("memory"===e)return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")};var r=n(515),o="__test";function i(t){try{var e=window[t];return e.setItem(o,"1"),e.removeItem(o),!0}catch(t){return!1}}},function(t,e,n){"use strict";
|
|
42
42
|
/*!
|
|
43
43
|
* cookie
|
|
44
44
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
45
45
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
46
46
|
* MIT Licensed
|
|
47
|
-
*/n(25),n(42),n(50),n(114),e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},o=e||{},u=t.split(i),c=o.decode||r,s=0;s<u.length;s++){var f=u[s],l=f.indexOf("=");if(!(l<0)){var p=f.substr(0,l).trim(),d=f.substr(++l,f.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),null==n[p]&&(n[p]=a(d,c))}}return n},e.serialize=function(t,e,n){var r=n||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!u.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!u.test(a))throw new TypeError("argument val is invalid");var c=t+"="+a;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s))throw new Error("maxAge should be a Number");c+="; Max-Age="+Math.floor(s)}if(r.domain){if(!u.test(r.domain))throw new TypeError("option domain is invalid");c+="; Domain="+r.domain}if(r.path){if(!u.test(r.path))throw new TypeError("option path is invalid");c+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(c+="; HttpOnly");r.secure&&(c+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return c};var r=decodeURIComponent,o=encodeURIComponent,i=/; */,u=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(t,e){try{return e(t)}catch(e){return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._data={}}return r(t,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,e){return this._data[t]=String(e)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),t}();e.default=o},function(t,e,n){"use strict";t.exports=n(636)},function(t,e,n){e.iframeResizer=n(637),e.iframeResizerContentWindow=n(516)},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(57),n(25),n(5),n(33),n(42),n(60),n(3),n(147),n(8),n(50),n(34),n(6),function(n){"use strict";if("undefined"!=typeof window){var r,o=0,i=!1,u=!1,a="message".length,c="[iFrameSizer]",s=c.length,f=null,l=window.requestAnimationFrame,p={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},d={},h=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){S("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},v={};window.jQuery&&((r=window.jQuery).fn?r.fn.iFrameResize||(r.fn.iFrameResize=function(t){return this.filter("iframe").each((function(e,n){N(n,t)})).end()}):x("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],H):"object"===e(t)&&"object"===e(t.exports)?t.exports=H():window.iFrameResize=window.iFrameResize||H()}function m(t,e,n){"addEventListener"in window?t.addEventListener(e,n,!1):"attachEvent"in window&&t.attachEvent("on"+e,n)}function g(t,e,n){"removeEventListener"in window?t.removeEventListener(e,n,!1):"detachEvent"in window&&t.detachEvent("on"+e,n)}function b(t){return c+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}function w(t){return d[t]?d[t].log:i}function _(t,e){O("log",t,e,w(t))}function x(t,e){O("info",t,e,w(t))}function S(t,e){O("warn",t,e,!0)}function O(t,n,r,o){!0===o&&"object"===e(window.console)&&console[t](b(n),r)}function j(t){function e(){n("Height"),n("Width"),M((function(){A(O),P(j),p("resizedCallback",O)}),O,"init")}function n(t){var e=Number(d[j]["max"+t]),n=Number(d[j]["min"+t]),r=t.toLowerCase(),o=Number(O[r]);_(j,"Checking "+r+" is in range "+n+"-"+e),o<n&&(o=n,_(j,"Set "+r+" to min value")),o>e&&(o=e,_(j,"Set "+r+" to max value")),O[r]=""+o}function r(t){return w.substr(w.indexOf(":")+a+t)}function o(t,e){var n,r,o;n=function(){var n,r;L("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=O.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})),t,e)},r=32,v[o=e]||(v[o]=setTimeout((function(){v[o]=null,n()}),r))}function i(t){var e=t.getBoundingClientRect();return k(j),{x:Math.floor(Number(e.left)+Number(f.x)),y:Math.floor(Number(e.top)+Number(f.y))}}function u(t){var e=t?i(O.iframe):{x:0,y:0},n={x:Number(O.width)+e.x,y:Number(O.height)+e.y};_(j,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](n.x,n.y):S(j,"Unable to scroll to requested position, window.parentIFrame not found"):(f=n,l(),_(j,"--"))}function l(){!1!==p("scrollCallback",f)?P(j):C()}function p(t,e){return E(j,t,e)}var h,y,b,w=t.data,O={},j=null;"[iFrameResizerChild]Ready"===w?function(){for(var t in d)L("iFrame requested init",F(t),document.getElementById(t),t)}():c===(""+w).substr(0,s)&&w.substr(s).split(":")[0]in d?(b=w.substr(s).split(":"),O={iframe:d[b[0]]&&d[b[0]].iframe,id:b[0],height:b[1],width:b[2],type:b[3]},j=O.id,d[j]&&(d[j].loaded=!0),(y=O.type in{true:1,false:1,undefined:1})&&_(j,"Ignoring init message from meta parent page"),!y&&function(t){var e=!0;return d[t]||(e=!1,S(O.type+" No settings for "+t+". Message was: "+w)),e}(j)&&(_(j,"Received: "+w),h=!0,null===O.iframe&&(S(j,"IFrame ("+O.id+") not found"),h=!1),h&&function(){var e,n=t.origin,r=d[j]&&d[j].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var t=0,e=!1;for(_(j,"Checking connection is from allowed list of origins: "+r);t<r.length;t++)if(r[t]===n){e=!0;break}return e}():(e=d[j]&&d[j].remoteHost,_(j,"Checking connection is from: "+e),n===e)))throw new Error("Unexpected message received from: "+n+" for "+O.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(d[j]&&d[j].firstRun&&d[j]&&(d[j].firstRun=!1),O.type){case"close":d[j].closeRequestCallback?E(j,"closeRequestCallback",d[j].iframe):I(O.iframe);break;case"message":t=r(6),_(j,"MessageCallback passed: {iframe: "+O.iframe.id+", message: "+t+"}"),p("messageCallback",{iframe:O.iframe,message:JSON.parse(t)}),_(j,"--");break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":o(d[j]&&d[j].iframe,j),function(){function t(t,r){function i(){d[n]?o(d[n].iframe,n):e()}["scroll","resize"].forEach((function(e){_(n,t+e+" listener for sendPageInfo"),r(window,e,i)}))}function e(){t("Remove ",g)}var n=j;t("Add ",m),d[n]&&(d[n].stopPageInfo=e)}();break;case"pageInfoStop":d[j]&&d[j].stopPageInfo&&(d[j].stopPageInfo(),delete d[j].stopPageInfo);break;case"inPageLink":!function(t){var e,n=t.split("#")[1]||"",r=decodeURIComponent(n),o=document.getElementById(r)||document.getElementsByName(r)[0];o?(e=i(o),_(j,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),f={x:e.x,y:e.y},l(),_(j,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):_(j,"In page link #"+n+" not found and window.parentIFrame not found"):_(j,"In page link #"+n+" not found")}(r(9));break;case"reset":R(O);break;case"init":e(),p("initCallback",O.iframe);break;default:e()}var t}())):x(j,"Ignored: "+w)}function E(t,e,n){var r=null,o=null;if(d[t]){if("function"!=typeof(r=d[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");o=r(n)}return o}function T(t){var e=t.id;delete d[e]}function I(t){var e=t.id;_(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){}E(e,"closedCallback",e),_(e,"--"),T(t)}function k(t){null===f&&_(t,"Get page position: "+(f={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop}).x+","+f.y)}function P(t){null!==f&&(window.scrollTo(f.x,f.y),_(t,"Set page position: "+f.x+","+f.y),C())}function C(){f=null}function R(t){_(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),k(t.id),M((function(){A(t),L("reset","reset",t.iframe,t.id)}),t,"reset")}function A(t){function e(e){u||"0"!==t[e]||(u=!0,_(r,"Hidden iFrame detected, creating visibility listener"),function(){function t(){function t(t){function e(e){return"0px"===(d[t]&&d[t].iframe.style[e])}d[t]&&null!==d[t].iframe.offsetParent&&(e("height")||e("width"))&&L("Visibility change","resize",d[t].iframe,t)}for(var e in d)t(e)}function e(e){_("window","Mutation observed: "+e[0].target+" "+e[0].type),z(t,16)}var n=window.MutationObserver||window.WebKitMutationObserver;n&&(r=document.querySelector("body"),new n(e).observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var r}())}function n(n){!function(e){t.iframe.style[e]=t[e]+"px",_(t.id,"IFrame ("+r+") "+e+" set to "+t[e]+"px")}(n),e(n)}var r=t.iframe.id;d[r]&&(d[r].sizeHeight&&n("height"),d[r].sizeWidth&&n("width"))}function M(t,e,n){n!==e.type&&l?(_(e.id,"Requesting animation frame"),l(t)):t()}function L(t,e,n,r,o){var i,u=!1;r=r||n.id,d[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=d[r]&&d[r].targetOrigin,_(r,"["+t+"] Sending msg to iframe["+r+"] ("+e+") targetOrigin: "+i),n.contentWindow.postMessage(c+e,i)):S(r,"["+t+"] IFrame("+r+") not found"),o&&d[r]&&d[r].warningTimeout&&(d[r].msgTimeout=setTimeout((function(){!d[r]||d[r].loaded||u||(u=!0,S(r,"IFrame has not responded within "+d[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),d[r].warningTimeout)))}function F(t){return t+":"+d[t].bodyMarginV1+":"+d[t].sizeWidth+":"+d[t].log+":"+d[t].interval+":"+d[t].enablePublicMethods+":"+d[t].autoResize+":"+d[t].bodyMargin+":"+d[t].heightCalculationMethod+":"+d[t].bodyBackground+":"+d[t].bodyPadding+":"+d[t].tolerance+":"+d[t].inPageLinks+":"+d[t].resizeFrom+":"+d[t].widthCalculationMethod}function N(t,r){var u,a=function(e){var n;return e,""===e&&(t.id=(n=r&&r.id||y.id+o++,null!==document.getElementById(n)&&(n+=o++),e=n),i=(r||{}).log,e,_(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);a in d&&"iFrameResizer"in t?S(a,"Ignored iFrame, already setup."):(!function(n){var r;n=n||{},d[a]={firstRun:!0,iframe:t,remoteHost:t.src.split("/").slice(0,3).join("/")},function(t){if("object"!==e(t))throw new TypeError("Options is not an object")}(n),function(t){for(var e in y)y.hasOwnProperty(e)&&(d[a][e]=t.hasOwnProperty(e)?t[e]:y[e])}(n),d[a]&&(d[a].targetOrigin=!0===d[a].checkOrigin?""===(r=d[a].remoteHost)||"file://"===r?"*":r:"*")}(r),function(){switch(_(a,"IFrame scrolling "+(d[a]&&d[a].scrolling?"enabled":"disabled")+" for "+a),t.style.overflow=!1===(d[a]&&d[a].scrolling)?"hidden":"auto",d[a]&&d[a].scrolling){case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=d[a]?d[a].scrolling:"no"}}(),function(){function e(e){1/0!==d[a][e]&&0!==d[a][e]&&(t.style[e]=d[a][e]+"px",_(a,"Set "+e+" = "+d[a][e]+"px"))}function n(t){if(d[a]["min"+t]>d[a]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(d[a]&&d[a].bodyMargin)&&"0"!==(d[a]&&d[a].bodyMargin)||(d[a].bodyMarginV1=d[a].bodyMargin,d[a].bodyMargin=d[a].bodyMargin+"px"),u=F(a),m(t,"load",(function(){var e,r;L("iFrame.onload",u,t,n,!0),e=d[a]&&d[a].firstRun,r=d[a]&&d[a].heightCalculationMethod in p,!e&&r&&R({iframe:t,height:0,width:0,type:"init"})})),L("init",u,t,n,!0),Function.prototype.bind&&d[a]&&(d[a].iframe.iFrameResizer={close:I.bind(null,d[a].iframe),removeListeners:T.bind(null,d[a].iframe),resize:L.bind(null,"Window resize","resize",d[a].iframe),moveToAnchor:function(t){L("Move to anchor","moveToAnchor:"+t,d[a].iframe,a)},sendMessage:function(t){L("Send Message","message:"+(t=JSON.stringify(t)),d[a].iframe,a)}}))}function z(t,e){null===h&&(h=setTimeout((function(){h=null,t()}),e))}function D(t){_("window","Trigger event: "+t),z((function(){q("Window "+t,"resize")}),16)}function U(){"hidden"!==document.visibilityState&&(_("document","Trigger event: Visiblity change"),z((function(){q("Tab Visable","resize")}),16))}function q(t,e){function n(t){return d[t]&&"parent"===d[t].resizeFrom&&d[t].autoResize&&!d[t].firstRun}for(var r in d)n(r)&&L(t,e,document.getElementById(r),r)}function H(){function t(t,e){e&&(!function(){if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==e.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+e.tagName+">")}(),N(e,t),r.push(e))}var r;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!l;t+=1)l=window[e[t]+"RequestAnimationFrame"];l||_("setup","RequestAnimationFrame not supported")}(),m(window,"message",j),m(window,"resize",(function(){D("resize")})),m(document,"visibilitychange",U),m(document,"-webkit-visibilitychange",U),m(window,"focusin",(function(){D("focus")})),m(window,"focus",(function(){D("focus")})),function(o,i){switch(r=[],function(t){t&&t.enablePublicMethods&&S("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(o),e(i)){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),t.bind(n,o));break;case"object":t(o,i);break;default:throw new TypeError("Unexpected data type ("+e(i)+")")}return r}}}()}).call(this,n(161)(t))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(25);var r=n(305),o=n(89),i=n(55),u=n(212),a=n(218),c=n(249),s=function(){function t(t,e){this._targetWindow=e,this._targetOrigin="*"===t?"*":Object(a.a)(t).origin}return t.prototype.post=function(t,e){var n=this,a=this._targetWindow;if(window!==a){if(!a)throw new Error("Unable to post message because target window is not set.");var s=e&&Object(r.a)(window,"message").pipe(Object(o.a)((function(t){return t.origin===n._targetOrigin&&Object(c.a)(t.data,t.data.type)&&-1!==[e.successType,e.errorType].indexOf(t.data.type)})),Object(i.a)((function(t){if(e.errorType===t.data.type)throw t.data;return t.data})),Object(u.a)(1)).toPromise();return a.postMessage(t,this._targetOrigin),s}},t.prototype.setTarget=function(t){this._targetWindow=t},t}();e.a=s},function(t,e,n){"use strict";n(25),n(61),n(34);var r=n(0),o=n(218),i=n(530),u=n(460),a=n(249),c=function(){function t(t){this._sourceOrigins=[Object(o.a)(t).origin,Object(i.a)(Object(o.a)(t)).origin],this._isListening=!1,this._listeners={}}return t.prototype.listen=function(){this._isListening||(this._isListening=!0,window.addEventListener("message",this._handleMessage))},t.prototype.stopListen=function(){this._isListening&&(this._isListening=!1,window.removeEventListener("message",this._handleMessage))},t.prototype.addListener=function(t,e){var n=this._listeners[t];n||(this._listeners[t]=n=[]),-1===n.indexOf(e)&&n.push(e)},t.prototype.removeListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);r>=0&&n.splice(r,1)}},t.prototype.trigger=function(t){var e=this._listeners[t.type];e&&e.forEach((function(e){return e(t)}))},t.prototype._handleMessage=function(t){-1!==this._sourceOrigins.indexOf(t.origin)&&Object(a.a)(t.data,t.data.type)&&this.trigger(t.data)},Object(r.__decorate)([u.a],t.prototype,"_handleMessage",null),t}();e.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r,o=n(183),i=n(668),u=n(667),a=n(765),c=n(766),s=n(218),f=(n(60),n(3),n(13),n(31),n(0)),l=n(460),p=n(78),d=(n(18),function(t){function e(e){var n=t.call(this,e,{message:e.body.title})||this;return n.name="InvalidLoginTokenError",n.type="invalid_login_token",n}return Object(f.__extends)(e,t),e}(n(132).a)),h=n(74);!function(t){t.MissingContainer="missing_container",t.MissingContent="missing_content",t.UnknownError="unknown_error"}(r||(r={}));var y=function(t){function e(e,n){void 0===n&&(n=r.UnknownError);var o=t.call(this,e||"Unable to embed the checkout form.")||this;return o.subtype=n,o.name="NotEmbeddableError",o.type="not_embeddable",o}return Object(f.__extends)(e,t),e}(h.a),v=n(523),m=function(){function t(t,e,n,r,o,i,u,a){var c=this;this._iframeCreator=t,this._messageListener=e,this._messagePoster=n,this._loadingIndicator=r,this._requestSender=o,this._storage=i,this._location=u,this._options=a,this._isAttached=!1,this._options.onComplete&&this._messageListener.addListener(p.a.CheckoutComplete,this._options.onComplete),this._options.onError&&this._messageListener.addListener(p.a.CheckoutError,this._options.onError),this._options.onLoad&&this._messageListener.addListener(p.a.CheckoutLoaded,this._options.onLoad),this._options.onFrameLoad&&this._messageListener.addListener(p.a.FrameLoaded,this._options.onFrameLoad),this._options.onSignOut&&this._messageListener.addListener(p.a.SignedOut,this._options.onSignOut),this._messageListener.addListener(p.a.FrameLoaded,(function(){return c._configureStyles()}))}return t.prototype.attach=function(){var t=this;return this._isAttached?Promise.resolve(this):(this._isAttached=!0,this._messageListener.listen(),this._loadingIndicator.show(this._options.containerId),this._allowCookie().then((function(){return t._attemptLogin()})).then((function(e){return t._iframeCreator.createFrame(e,t._options.containerId)})).then((function(e){t._iframe=e,t._configureStyles(),t._loadingIndicator.hide()})).catch((function(e){return t._isAttached=!1,t._retryAllowCookie(e).catch((function(){throw t._messageListener.trigger({type:p.a.FrameError,payload:e}),t._loadingIndicator.hide(),e}))})).then((function(){return t})))},t.prototype.detach=function(){this._isAttached&&(this._isAttached=!1,this._messageListener.stopListen(),this._iframe&&this._iframe.parentNode&&(this._iframe.parentNode.removeChild(this._iframe),this._iframe.iFrameResizer.close()))},t.prototype._configureStyles=function(){this._iframe&&this._iframe.contentWindow&&this._options.styles&&(this._messagePoster.setTarget(this._iframe.contentWindow),this._messagePoster.post({type:v.a.StyleConfigured,payload:this._options.styles}))},t.prototype._attemptLogin=function(){return/^\/login\/token/.test(Object(s.a)(this._options.url).pathname)?this._requestSender.post(this._options.url).then((function(t){return t.body.redirectUrl})).catch((function(t){return Promise.reject(new d(t))})):Promise.resolve(this._options.url)},t.prototype._allowCookie=function(){if(this._storage.getItem("isCookieAllowed"))return Promise.resolve();this._storage.setItem("isCookieAllowed",!0),this._storage.setItem("lastAllowCookieAttempt",Date.now());var t=Object(s.a)(this._options.url).origin+"/embedded-checkout/allow-cookie?returnUrl="+encodeURIComponent(this._location.href);return document.body.style.visibility="hidden",this._location.replace(t),new Promise((function(){}))},t.prototype._retryAllowCookie=function(t){var e=Number(this._storage.getItem("lastAllowCookieAttempt"));return(!e||Date.now()-e>6e5)&&t instanceof y&&t.subtype===r.MissingContent?(this._storage.removeItem("lastAllowCookieAttempt"),this._storage.removeItem("isCookieAllowed"),this._allowCookie()):Promise.reject()},t=Object(f.__decorate)([l.a],t)}(),g=n(249),b=n(767),w=function(){function t(t){this._options=t}return t.prototype.createFrame=function(t,e){var n=document.getElementById(e),o=(this._options||{}).timeout,i=void 0===o?6e4:o;if(!n)throw new y("Unable to embed the iframe because the container element could not be found.",r.MissingContainer);var u=document.createElement("iframe");return u.src=t,u.style.border="none",u.style.display="none",u.style.width="100%",u.allowPaymentRequest=!0,n.appendChild(u),this._toResizableFrame(u,i).catch((function(t){throw n.removeChild(u),t}))},t.prototype._toResizableFrame=function(t,e){return new Promise((function(n,o){var i=window.setTimeout((function(){o(new y("Unable to embed the iframe because the content could not be loaded."))}),e),u=function(e){if(e.origin===Object(s.a)(t.src).origin&&(Object(g.a)(e.data,p.a.FrameError)&&(a(),o(new y(e.data.payload.message,r.MissingContent))),Object(g.a)(e.data,p.a.FrameLoaded))){t.style.display="";var i=e.data.payload&&e.data.payload.contentId,u=Object(b.a)({scrolling:!1,sizeWidth:!1,heightCalculationMethod:i?"taggedElement":"lowestElement"},t);a(),n(u[u.length-1])}},a=function(){window.removeEventListener("message",u),window.clearTimeout(i)};window.addEventListener("message",u)}))},t}();n.d(e,"a",(function(){return x}));var _="BigCommerce.EmbeddedCheckout";function x(t){var e=Object(s.a)(t.url).origin;return new m(new w,new i.a(e),new u.a(e),new a.a({styles:t.styles&&t.styles.loadingIndicator}),Object(o.createRequestSender)(),new c.a(_),window.location,t).attach()}},function(t,e,n){"use strict";var r=n(767),o=n(668),i=n(667),u=n(78);function a(t){if(t.payload&&t.payload.contentId){var e=document.getElementById(t.payload.contentId);e&&!e.hasAttribute("data-iframe-height")&&e.setAttribute("data-iframe-height","")}}n(27),n(34);var c=n(0);function s(t){return"string"==typeof t.message&&"string"==typeof t.type&&("string"==typeof t.subtype||!t.subtype)&&t instanceof Error}var f=n(460),l=n(523),p=function(){function t(t,e,n,r){void 0===r&&(r={}),this._messageListener=t,this._messagePoster=e,this._untargetedMessagePoster=n,this._messageHandlers=r,this._messageListener.listen()}return t.prototype.postComplete=function(){var t={type:u.a.CheckoutComplete};this._postMessage(t)},t.prototype.postError=function(t){var e={type:u.a.CheckoutError,payload:this._transformError(t)};this._postMessage(e)},t.prototype.postFrameError=function(t){var e={type:u.a.FrameError,payload:this._transformError(t)};this._postMessage(e,{untargeted:!0})},t.prototype.postFrameLoaded=function(t){var e={type:u.a.FrameLoaded,payload:t};this._postMessage(e)},t.prototype.postLoaded=function(){var t={type:u.a.CheckoutLoaded};this._postMessage(t)},t.prototype.postSignedOut=function(){var t={type:u.a.SignedOut};this._postMessage(t)},t.prototype.receiveStyles=function(t){this._messageListener.addListener(l.a.StyleConfigured,(function(e){var n=e.payload;t(n)}))},t.prototype._postMessage=function(t,e){if(this._notifyMessageHandlers(t),e&&e.untargeted)return this._untargetedMessagePoster.post(t);this._messagePoster.post(t)},t.prototype._notifyMessageHandlers=function(t){var e=this;Object.keys(this._messageHandlers).forEach((function(n){if(t.type===n){var r=e._messageHandlers[n];r&&r.call(null,t)}}))},t.prototype._transformError=function(t){return{message:t.message,type:s(t)?t.type:void 0,subtype:s(t)?t.subtype:void 0}},t=Object(c.__decorate)([f.a],t)}(),d=function(){function t(){}return t.prototype.postComplete=function(){},t.prototype.postError=function(){},t.prototype.postFrameError=function(){},t.prototype.postFrameLoaded=function(){},t.prototype.postLoaded=function(){},t.prototype.postSignedOut=function(){},t.prototype.receiveStyles=function(){},t=Object(c.__decorate)([f.a],t)}();function h(t){var e;Object(r.b)();var n=t.parentWindow||window.parent;return window===n?new d:new p(new o.a(t.parentOrigin),new i.a(t.parentOrigin,n),new i.a("*",n),((e={})[u.a.FrameLoaded]=a,e))}n.d(e,"a",(function(){return h}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(0),o={size:70,color:"#d9d9d9",backgroundColor:"#ffffff"},i="embedded-checkout-loading-indicator-rotation",u=function(){function t(t){this._styles=Object(r.__assign)(Object(r.__assign)({},o),t&&t.styles),this._defineAnimation(),this._container=this._buildContainer(),this._indicator=this._buildIndicator(),this._container.appendChild(this._indicator)}return t.prototype.show=function(t){if(t){var e=document.getElementById(t);if(!e)throw new Error("Unable to attach the loading indicator because the parent ID is not valid.");e.appendChild(this._container)}this._container.style.visibility="visible",this._container.style.opacity="1"},t.prototype.hide=function(){var t=this;this._container.addEventListener("transitionend",(function e(){t._container.style.visibility="hidden",t._container.removeEventListener("transitionend",e)})),this._container.style.opacity="0"},t.prototype._buildContainer=function(){var t=document.createElement("div");return t.style.display="block",t.style.bottom="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.position="absolute",t.style.right="0",t.style.top="0",t.style.transition="all 250ms ease-out",t.style.opacity="0",t},t.prototype._buildIndicator=function(){var t=document.createElement("div");return t.style.display="block",t.style.width=this._styles.size+"px",t.style.height=this._styles.size+"px",t.style.borderRadius=this._styles.size+"px",t.style.border="solid 1px",t.style.borderColor=this._styles.backgroundColor+" "+this._styles.backgroundColor+" "+this._styles.color+" "+this._styles.color,t.style.margin="0 auto",t.style.position="absolute",t.style.left="0",t.style.right="0",t.style.top="50%",t.style.transform="translateY(-50%) rotate(0deg)",t.style.transformStyle="preserve-3d",t.style.animation=i+" 500ms infinite cubic-bezier(0.69, 0.31, 0.56, 0.83)",t},t.prototype._defineAnimation=function(){if(!document.getElementById(i)){var t=document.createElement("style");t.id=i,document.head.appendChild(t),t.sheet instanceof CSSStyleSheet&&t.sheet.insertRule("\n @keyframes "+i+" {\n 0% { transform: translateY(-50%) rotate(0deg); }\n 100% { transform: translateY(-50%) rotate(360deg); }\n }\n ",0)}},t}();e.a=u},function(t,e,n){"use strict";var r=n(293),o=n.n(r),i=function(){function t(t){this._namespace=t}return t.prototype.getItem=function(t){var e=o.a.getItem(this.withNamespace(t));if(null===e)return null;try{return JSON.parse(e)}catch(e){return this.removeItem(this.withNamespace(t)),null}},t.prototype.getItemOnce=function(t){var e=this.getItem(t);return this.removeItem(t),e},t.prototype.setItem=function(t,e){return o.a.setItem(this.withNamespace(t),JSON.stringify(e))},t.prototype.removeItem=function(t){return o.a.removeItem(this.withNamespace(t))},t.prototype.withNamespace=function(t){return this._namespace+"."+t},t}();e.a=i},function(t,e,n){"use strict";function r(t,e){return(0,n(635).iframeResizer)(t,e)}function o(){n(516)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(700);n.d(e,"embedCheckout",(function(){return r.a}));var o=n(701);n.d(e,"createEmbeddedCheckoutMessenger",(function(){return o.a}))}])}));
|
|
47
|
+
*/n(25),n(42),n(50),n(114),e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},o=e||{},u=t.split(i),c=o.decode||r,s=0;s<u.length;s++){var f=u[s],l=f.indexOf("=");if(!(l<0)){var p=f.substr(0,l).trim(),d=f.substr(++l,f.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),null==n[p]&&(n[p]=a(d,c))}}return n},e.serialize=function(t,e,n){var r=n||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!u.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!u.test(a))throw new TypeError("argument val is invalid");var c=t+"="+a;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s))throw new Error("maxAge should be a Number");c+="; Max-Age="+Math.floor(s)}if(r.domain){if(!u.test(r.domain))throw new TypeError("option domain is invalid");c+="; Domain="+r.domain}if(r.path){if(!u.test(r.path))throw new TypeError("option path is invalid");c+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(c+="; HttpOnly");r.secure&&(c+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return c};var r=decodeURIComponent,o=encodeURIComponent,i=/; */,u=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(t,e){try{return e(t)}catch(e){return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._data={}}return r(t,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,e){return this._data[t]=String(e)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),t}();e.default=o},function(t,e,n){"use strict";t.exports=n(637)},function(t,e,n){e.iframeResizer=n(638),e.iframeResizerContentWindow=n(516)},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(10),n(12),n(16),n(57),n(25),n(5),n(33),n(42),n(60),n(3),n(147),n(8),n(50),n(34),n(6),function(n){"use strict";if("undefined"!=typeof window){var r,o=0,i=!1,u=!1,a="message".length,c="[iFrameSizer]",s=c.length,f=null,l=window.requestAnimationFrame,p={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},d={},h=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){S("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},v={};window.jQuery&&((r=window.jQuery).fn?r.fn.iFrameResize||(r.fn.iFrameResize=function(t){return this.filter("iframe").each((function(e,n){N(n,t)})).end()}):x("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],H):"object"===e(t)&&"object"===e(t.exports)?t.exports=H():window.iFrameResize=window.iFrameResize||H()}function m(t,e,n){"addEventListener"in window?t.addEventListener(e,n,!1):"attachEvent"in window&&t.attachEvent("on"+e,n)}function g(t,e,n){"removeEventListener"in window?t.removeEventListener(e,n,!1):"detachEvent"in window&&t.detachEvent("on"+e,n)}function b(t){return c+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}function w(t){return d[t]?d[t].log:i}function _(t,e){O("log",t,e,w(t))}function x(t,e){O("info",t,e,w(t))}function S(t,e){O("warn",t,e,!0)}function O(t,n,r,o){!0===o&&"object"===e(window.console)&&console[t](b(n),r)}function j(t){function e(){n("Height"),n("Width"),M((function(){A(O),P(j),p("resizedCallback",O)}),O,"init")}function n(t){var e=Number(d[j]["max"+t]),n=Number(d[j]["min"+t]),r=t.toLowerCase(),o=Number(O[r]);_(j,"Checking "+r+" is in range "+n+"-"+e),o<n&&(o=n,_(j,"Set "+r+" to min value")),o>e&&(o=e,_(j,"Set "+r+" to max value")),O[r]=""+o}function r(t){return w.substr(w.indexOf(":")+a+t)}function o(t,e){var n,r,o;n=function(){var n,r;L("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=O.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})),t,e)},r=32,v[o=e]||(v[o]=setTimeout((function(){v[o]=null,n()}),r))}function i(t){var e=t.getBoundingClientRect();return k(j),{x:Math.floor(Number(e.left)+Number(f.x)),y:Math.floor(Number(e.top)+Number(f.y))}}function u(t){var e=t?i(O.iframe):{x:0,y:0},n={x:Number(O.width)+e.x,y:Number(O.height)+e.y};_(j,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](n.x,n.y):S(j,"Unable to scroll to requested position, window.parentIFrame not found"):(f=n,l(),_(j,"--"))}function l(){!1!==p("scrollCallback",f)?P(j):C()}function p(t,e){return E(j,t,e)}var h,y,b,w=t.data,O={},j=null;"[iFrameResizerChild]Ready"===w?function(){for(var t in d)L("iFrame requested init",F(t),document.getElementById(t),t)}():c===(""+w).substr(0,s)&&w.substr(s).split(":")[0]in d?(b=w.substr(s).split(":"),O={iframe:d[b[0]]&&d[b[0]].iframe,id:b[0],height:b[1],width:b[2],type:b[3]},j=O.id,d[j]&&(d[j].loaded=!0),(y=O.type in{true:1,false:1,undefined:1})&&_(j,"Ignoring init message from meta parent page"),!y&&function(t){var e=!0;return d[t]||(e=!1,S(O.type+" No settings for "+t+". Message was: "+w)),e}(j)&&(_(j,"Received: "+w),h=!0,null===O.iframe&&(S(j,"IFrame ("+O.id+") not found"),h=!1),h&&function(){var e,n=t.origin,r=d[j]&&d[j].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var t=0,e=!1;for(_(j,"Checking connection is from allowed list of origins: "+r);t<r.length;t++)if(r[t]===n){e=!0;break}return e}():(e=d[j]&&d[j].remoteHost,_(j,"Checking connection is from: "+e),n===e)))throw new Error("Unexpected message received from: "+n+" for "+O.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(d[j]&&d[j].firstRun&&d[j]&&(d[j].firstRun=!1),O.type){case"close":d[j].closeRequestCallback?E(j,"closeRequestCallback",d[j].iframe):I(O.iframe);break;case"message":t=r(6),_(j,"MessageCallback passed: {iframe: "+O.iframe.id+", message: "+t+"}"),p("messageCallback",{iframe:O.iframe,message:JSON.parse(t)}),_(j,"--");break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":o(d[j]&&d[j].iframe,j),function(){function t(t,r){function i(){d[n]?o(d[n].iframe,n):e()}["scroll","resize"].forEach((function(e){_(n,t+e+" listener for sendPageInfo"),r(window,e,i)}))}function e(){t("Remove ",g)}var n=j;t("Add ",m),d[n]&&(d[n].stopPageInfo=e)}();break;case"pageInfoStop":d[j]&&d[j].stopPageInfo&&(d[j].stopPageInfo(),delete d[j].stopPageInfo);break;case"inPageLink":!function(t){var e,n=t.split("#")[1]||"",r=decodeURIComponent(n),o=document.getElementById(r)||document.getElementsByName(r)[0];o?(e=i(o),_(j,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),f={x:e.x,y:e.y},l(),_(j,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):_(j,"In page link #"+n+" not found and window.parentIFrame not found"):_(j,"In page link #"+n+" not found")}(r(9));break;case"reset":R(O);break;case"init":e(),p("initCallback",O.iframe);break;default:e()}var t}())):x(j,"Ignored: "+w)}function E(t,e,n){var r=null,o=null;if(d[t]){if("function"!=typeof(r=d[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");o=r(n)}return o}function T(t){var e=t.id;delete d[e]}function I(t){var e=t.id;_(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){}E(e,"closedCallback",e),_(e,"--"),T(t)}function k(t){null===f&&_(t,"Get page position: "+(f={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop}).x+","+f.y)}function P(t){null!==f&&(window.scrollTo(f.x,f.y),_(t,"Set page position: "+f.x+","+f.y),C())}function C(){f=null}function R(t){_(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),k(t.id),M((function(){A(t),L("reset","reset",t.iframe,t.id)}),t,"reset")}function A(t){function e(e){u||"0"!==t[e]||(u=!0,_(r,"Hidden iFrame detected, creating visibility listener"),function(){function t(){function t(t){function e(e){return"0px"===(d[t]&&d[t].iframe.style[e])}d[t]&&null!==d[t].iframe.offsetParent&&(e("height")||e("width"))&&L("Visibility change","resize",d[t].iframe,t)}for(var e in d)t(e)}function e(e){_("window","Mutation observed: "+e[0].target+" "+e[0].type),z(t,16)}var n=window.MutationObserver||window.WebKitMutationObserver;n&&(r=document.querySelector("body"),new n(e).observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var r}())}function n(n){!function(e){t.iframe.style[e]=t[e]+"px",_(t.id,"IFrame ("+r+") "+e+" set to "+t[e]+"px")}(n),e(n)}var r=t.iframe.id;d[r]&&(d[r].sizeHeight&&n("height"),d[r].sizeWidth&&n("width"))}function M(t,e,n){n!==e.type&&l?(_(e.id,"Requesting animation frame"),l(t)):t()}function L(t,e,n,r,o){var i,u=!1;r=r||n.id,d[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=d[r]&&d[r].targetOrigin,_(r,"["+t+"] Sending msg to iframe["+r+"] ("+e+") targetOrigin: "+i),n.contentWindow.postMessage(c+e,i)):S(r,"["+t+"] IFrame("+r+") not found"),o&&d[r]&&d[r].warningTimeout&&(d[r].msgTimeout=setTimeout((function(){!d[r]||d[r].loaded||u||(u=!0,S(r,"IFrame has not responded within "+d[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),d[r].warningTimeout)))}function F(t){return t+":"+d[t].bodyMarginV1+":"+d[t].sizeWidth+":"+d[t].log+":"+d[t].interval+":"+d[t].enablePublicMethods+":"+d[t].autoResize+":"+d[t].bodyMargin+":"+d[t].heightCalculationMethod+":"+d[t].bodyBackground+":"+d[t].bodyPadding+":"+d[t].tolerance+":"+d[t].inPageLinks+":"+d[t].resizeFrom+":"+d[t].widthCalculationMethod}function N(t,r){var u,a=function(e){var n;return e,""===e&&(t.id=(n=r&&r.id||y.id+o++,null!==document.getElementById(n)&&(n+=o++),e=n),i=(r||{}).log,e,_(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);a in d&&"iFrameResizer"in t?S(a,"Ignored iFrame, already setup."):(!function(n){var r;n=n||{},d[a]={firstRun:!0,iframe:t,remoteHost:t.src.split("/").slice(0,3).join("/")},function(t){if("object"!==e(t))throw new TypeError("Options is not an object")}(n),function(t){for(var e in y)y.hasOwnProperty(e)&&(d[a][e]=t.hasOwnProperty(e)?t[e]:y[e])}(n),d[a]&&(d[a].targetOrigin=!0===d[a].checkOrigin?""===(r=d[a].remoteHost)||"file://"===r?"*":r:"*")}(r),function(){switch(_(a,"IFrame scrolling "+(d[a]&&d[a].scrolling?"enabled":"disabled")+" for "+a),t.style.overflow=!1===(d[a]&&d[a].scrolling)?"hidden":"auto",d[a]&&d[a].scrolling){case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=d[a]?d[a].scrolling:"no"}}(),function(){function e(e){1/0!==d[a][e]&&0!==d[a][e]&&(t.style[e]=d[a][e]+"px",_(a,"Set "+e+" = "+d[a][e]+"px"))}function n(t){if(d[a]["min"+t]>d[a]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(d[a]&&d[a].bodyMargin)&&"0"!==(d[a]&&d[a].bodyMargin)||(d[a].bodyMarginV1=d[a].bodyMargin,d[a].bodyMargin=d[a].bodyMargin+"px"),u=F(a),m(t,"load",(function(){var e,r;L("iFrame.onload",u,t,n,!0),e=d[a]&&d[a].firstRun,r=d[a]&&d[a].heightCalculationMethod in p,!e&&r&&R({iframe:t,height:0,width:0,type:"init"})})),L("init",u,t,n,!0),Function.prototype.bind&&d[a]&&(d[a].iframe.iFrameResizer={close:I.bind(null,d[a].iframe),removeListeners:T.bind(null,d[a].iframe),resize:L.bind(null,"Window resize","resize",d[a].iframe),moveToAnchor:function(t){L("Move to anchor","moveToAnchor:"+t,d[a].iframe,a)},sendMessage:function(t){L("Send Message","message:"+(t=JSON.stringify(t)),d[a].iframe,a)}}))}function z(t,e){null===h&&(h=setTimeout((function(){h=null,t()}),e))}function D(t){_("window","Trigger event: "+t),z((function(){q("Window "+t,"resize")}),16)}function U(){"hidden"!==document.visibilityState&&(_("document","Trigger event: Visiblity change"),z((function(){q("Tab Visable","resize")}),16))}function q(t,e){function n(t){return d[t]&&"parent"===d[t].resizeFrom&&d[t].autoResize&&!d[t].firstRun}for(var r in d)n(r)&&L(t,e,document.getElementById(r),r)}function H(){function t(t,e){e&&(!function(){if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==e.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+e.tagName+">")}(),N(e,t),r.push(e))}var r;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!l;t+=1)l=window[e[t]+"RequestAnimationFrame"];l||_("setup","RequestAnimationFrame not supported")}(),m(window,"message",j),m(window,"resize",(function(){D("resize")})),m(document,"visibilitychange",U),m(document,"-webkit-visibilitychange",U),m(window,"focusin",(function(){D("focus")})),m(window,"focus",(function(){D("focus")})),function(o,i){switch(r=[],function(t){t&&t.enablePublicMethods&&S("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(o),e(i)){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),t.bind(n,o));break;case"object":t(o,i);break;default:throw new TypeError("Unexpected data type ("+e(i)+")")}return r}}}()}).call(this,n(161)(t))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(25);var r=n(305),o=n(89),i=n(55),u=n(212),a=n(218),c=n(249),s=function(){function t(t,e){this._targetWindow=e,this._targetOrigin="*"===t?"*":Object(a.a)(t).origin}return t.prototype.post=function(t,e){var n=this,a=this._targetWindow;if(window!==a){if(!a)throw new Error("Unable to post message because target window is not set.");var s=e&&Object(r.a)(window,"message").pipe(Object(o.a)((function(t){return t.origin===n._targetOrigin&&Object(c.a)(t.data,t.data.type)&&-1!==[e.successType,e.errorType].indexOf(t.data.type)})),Object(i.a)((function(t){if(e.errorType===t.data.type)throw t.data;return t.data})),Object(u.a)(1)).toPromise();return a.postMessage(t,this._targetOrigin),s}},t.prototype.setTarget=function(t){this._targetWindow=t},t}();e.a=s},function(t,e,n){"use strict";n(25),n(61),n(34);var r=n(0),o=n(218),i=n(530),u=n(460),a=n(249),c=function(){function t(t){this._sourceOrigins=[Object(o.a)(t).origin,Object(i.a)(Object(o.a)(t)).origin],this._isListening=!1,this._listeners={}}return t.prototype.listen=function(){this._isListening||(this._isListening=!0,window.addEventListener("message",this._handleMessage))},t.prototype.stopListen=function(){this._isListening&&(this._isListening=!1,window.removeEventListener("message",this._handleMessage))},t.prototype.addListener=function(t,e){var n=this._listeners[t];n||(this._listeners[t]=n=[]),-1===n.indexOf(e)&&n.push(e)},t.prototype.removeListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);r>=0&&n.splice(r,1)}},t.prototype.trigger=function(t){var e=this._listeners[t.type];e&&e.forEach((function(e){return e(t)}))},t.prototype._handleMessage=function(t){-1!==this._sourceOrigins.indexOf(t.origin)&&Object(a.a)(t.data,t.data.type)&&this.trigger(t.data)},Object(r.__decorate)([u.a],t.prototype,"_handleMessage",null),t}();e.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r,o=n(183),i=n(668),u=n(667),a=n(765),c=n(766),s=n(218),f=(n(60),n(3),n(13),n(31),n(0)),l=n(460),p=n(78),d=(n(18),function(t){function e(e){var n=t.call(this,e,{message:e.body.title})||this;return n.name="InvalidLoginTokenError",n.type="invalid_login_token",n}return Object(f.__extends)(e,t),e}(n(132).a)),h=n(74);!function(t){t.MissingContainer="missing_container",t.MissingContent="missing_content",t.UnknownError="unknown_error"}(r||(r={}));var y=function(t){function e(e,n){void 0===n&&(n=r.UnknownError);var o=t.call(this,e||"Unable to embed the checkout form.")||this;return o.subtype=n,o.name="NotEmbeddableError",o.type="not_embeddable",o}return Object(f.__extends)(e,t),e}(h.a),v=n(523),m=function(){function t(t,e,n,r,o,i,u,a){var c=this;this._iframeCreator=t,this._messageListener=e,this._messagePoster=n,this._loadingIndicator=r,this._requestSender=o,this._storage=i,this._location=u,this._options=a,this._isAttached=!1,this._options.onComplete&&this._messageListener.addListener(p.a.CheckoutComplete,this._options.onComplete),this._options.onError&&this._messageListener.addListener(p.a.CheckoutError,this._options.onError),this._options.onLoad&&this._messageListener.addListener(p.a.CheckoutLoaded,this._options.onLoad),this._options.onFrameLoad&&this._messageListener.addListener(p.a.FrameLoaded,this._options.onFrameLoad),this._options.onSignOut&&this._messageListener.addListener(p.a.SignedOut,this._options.onSignOut),this._messageListener.addListener(p.a.FrameLoaded,(function(){return c._configureStyles()}))}return t.prototype.attach=function(){var t=this;return this._isAttached?Promise.resolve(this):(this._isAttached=!0,this._messageListener.listen(),this._loadingIndicator.show(this._options.containerId),this._allowCookie().then((function(){return t._attemptLogin()})).then((function(e){return t._iframeCreator.createFrame(e,t._options.containerId)})).then((function(e){t._iframe=e,t._configureStyles(),t._loadingIndicator.hide()})).catch((function(e){return t._isAttached=!1,t._retryAllowCookie(e).catch((function(){throw t._messageListener.trigger({type:p.a.FrameError,payload:e}),t._loadingIndicator.hide(),e}))})).then((function(){return t})))},t.prototype.detach=function(){this._isAttached&&(this._isAttached=!1,this._messageListener.stopListen(),this._iframe&&this._iframe.parentNode&&(this._iframe.parentNode.removeChild(this._iframe),this._iframe.iFrameResizer.close()))},t.prototype._configureStyles=function(){this._iframe&&this._iframe.contentWindow&&this._options.styles&&(this._messagePoster.setTarget(this._iframe.contentWindow),this._messagePoster.post({type:v.a.StyleConfigured,payload:this._options.styles}))},t.prototype._attemptLogin=function(){return/^\/login\/token/.test(Object(s.a)(this._options.url).pathname)?this._requestSender.post(this._options.url).then((function(t){return t.body.redirectUrl})).catch((function(t){return Promise.reject(new d(t))})):Promise.resolve(this._options.url)},t.prototype._allowCookie=function(){if(this._storage.getItem("isCookieAllowed"))return Promise.resolve();this._storage.setItem("isCookieAllowed",!0),this._storage.setItem("lastAllowCookieAttempt",Date.now());var t=Object(s.a)(this._options.url).origin+"/embedded-checkout/allow-cookie?returnUrl="+encodeURIComponent(this._location.href);return document.body.style.visibility="hidden",this._location.replace(t),new Promise((function(){}))},t.prototype._retryAllowCookie=function(t){var e=Number(this._storage.getItem("lastAllowCookieAttempt"));return(!e||Date.now()-e>6e5)&&t instanceof y&&t.subtype===r.MissingContent?(this._storage.removeItem("lastAllowCookieAttempt"),this._storage.removeItem("isCookieAllowed"),this._allowCookie()):Promise.reject()},t=Object(f.__decorate)([l.a],t)}(),g=n(249),b=n(767),w=function(){function t(t){this._options=t}return t.prototype.createFrame=function(t,e){var n=document.getElementById(e),o=(this._options||{}).timeout,i=void 0===o?6e4:o;if(!n)throw new y("Unable to embed the iframe because the container element could not be found.",r.MissingContainer);var u=document.createElement("iframe");return u.src=t,u.style.border="none",u.style.display="none",u.style.width="100%",u.allowPaymentRequest=!0,n.appendChild(u),this._toResizableFrame(u,i).catch((function(t){throw n.removeChild(u),t}))},t.prototype._toResizableFrame=function(t,e){return new Promise((function(n,o){var i=window.setTimeout((function(){o(new y("Unable to embed the iframe because the content could not be loaded."))}),e),u=function(e){if(e.origin===Object(s.a)(t.src).origin&&(Object(g.a)(e.data,p.a.FrameError)&&(a(),o(new y(e.data.payload.message,r.MissingContent))),Object(g.a)(e.data,p.a.FrameLoaded))){t.style.display="";var i=e.data.payload&&e.data.payload.contentId,u=Object(b.a)({scrolling:!1,sizeWidth:!1,heightCalculationMethod:i?"taggedElement":"lowestElement"},t);a(),n(u[u.length-1])}},a=function(){window.removeEventListener("message",u),window.clearTimeout(i)};window.addEventListener("message",u)}))},t}();n.d(e,"a",(function(){return x}));var _="BigCommerce.EmbeddedCheckout";function x(t){var e=Object(s.a)(t.url).origin;return new m(new w,new i.a(e),new u.a(e),new a.a({styles:t.styles&&t.styles.loadingIndicator}),Object(o.createRequestSender)(),new c.a(_),window.location,t).attach()}},function(t,e,n){"use strict";var r=n(767),o=n(668),i=n(667),u=n(78);function a(t){if(t.payload&&t.payload.contentId){var e=document.getElementById(t.payload.contentId);e&&!e.hasAttribute("data-iframe-height")&&e.setAttribute("data-iframe-height","")}}n(27),n(34);var c=n(0);function s(t){return"string"==typeof t.message&&"string"==typeof t.type&&("string"==typeof t.subtype||!t.subtype)&&t instanceof Error}var f=n(460),l=n(523),p=function(){function t(t,e,n,r){void 0===r&&(r={}),this._messageListener=t,this._messagePoster=e,this._untargetedMessagePoster=n,this._messageHandlers=r,this._messageListener.listen()}return t.prototype.postComplete=function(){var t={type:u.a.CheckoutComplete};this._postMessage(t)},t.prototype.postError=function(t){var e={type:u.a.CheckoutError,payload:this._transformError(t)};this._postMessage(e)},t.prototype.postFrameError=function(t){var e={type:u.a.FrameError,payload:this._transformError(t)};this._postMessage(e,{untargeted:!0})},t.prototype.postFrameLoaded=function(t){var e={type:u.a.FrameLoaded,payload:t};this._postMessage(e)},t.prototype.postLoaded=function(){var t={type:u.a.CheckoutLoaded};this._postMessage(t)},t.prototype.postSignedOut=function(){var t={type:u.a.SignedOut};this._postMessage(t)},t.prototype.receiveStyles=function(t){this._messageListener.addListener(l.a.StyleConfigured,(function(e){var n=e.payload;t(n)}))},t.prototype._postMessage=function(t,e){if(this._notifyMessageHandlers(t),e&&e.untargeted)return this._untargetedMessagePoster.post(t);this._messagePoster.post(t)},t.prototype._notifyMessageHandlers=function(t){var e=this;Object.keys(this._messageHandlers).forEach((function(n){if(t.type===n){var r=e._messageHandlers[n];r&&r.call(null,t)}}))},t.prototype._transformError=function(t){return{message:t.message,type:s(t)?t.type:void 0,subtype:s(t)?t.subtype:void 0}},t=Object(c.__decorate)([f.a],t)}(),d=function(){function t(){}return t.prototype.postComplete=function(){},t.prototype.postError=function(){},t.prototype.postFrameError=function(){},t.prototype.postFrameLoaded=function(){},t.prototype.postLoaded=function(){},t.prototype.postSignedOut=function(){},t.prototype.receiveStyles=function(){},t=Object(c.__decorate)([f.a],t)}();function h(t){var e;Object(r.b)();var n=t.parentWindow||window.parent;return window===n?new d:new p(new o.a(t.parentOrigin),new i.a(t.parentOrigin,n),new i.a("*",n),((e={})[u.a.FrameLoaded]=a,e))}n.d(e,"a",(function(){return h}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(0),o={size:70,color:"#d9d9d9",backgroundColor:"#ffffff"},i="embedded-checkout-loading-indicator-rotation",u=function(){function t(t){this._styles=Object(r.__assign)(Object(r.__assign)({},o),t&&t.styles),this._defineAnimation(),this._container=this._buildContainer(),this._indicator=this._buildIndicator(),this._container.appendChild(this._indicator)}return t.prototype.show=function(t){if(t){var e=document.getElementById(t);if(!e)throw new Error("Unable to attach the loading indicator because the parent ID is not valid.");e.appendChild(this._container)}this._container.style.visibility="visible",this._container.style.opacity="1"},t.prototype.hide=function(){var t=this;this._container.addEventListener("transitionend",(function e(){t._container.style.visibility="hidden",t._container.removeEventListener("transitionend",e)})),this._container.style.opacity="0"},t.prototype._buildContainer=function(){var t=document.createElement("div");return t.style.display="block",t.style.bottom="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.position="absolute",t.style.right="0",t.style.top="0",t.style.transition="all 250ms ease-out",t.style.opacity="0",t},t.prototype._buildIndicator=function(){var t=document.createElement("div");return t.style.display="block",t.style.width=this._styles.size+"px",t.style.height=this._styles.size+"px",t.style.borderRadius=this._styles.size+"px",t.style.border="solid 1px",t.style.borderColor=this._styles.backgroundColor+" "+this._styles.backgroundColor+" "+this._styles.color+" "+this._styles.color,t.style.margin="0 auto",t.style.position="absolute",t.style.left="0",t.style.right="0",t.style.top="50%",t.style.transform="translateY(-50%) rotate(0deg)",t.style.transformStyle="preserve-3d",t.style.animation=i+" 500ms infinite cubic-bezier(0.69, 0.31, 0.56, 0.83)",t},t.prototype._defineAnimation=function(){if(!document.getElementById(i)){var t=document.createElement("style");t.id=i,document.head.appendChild(t),t.sheet instanceof CSSStyleSheet&&t.sheet.insertRule("\n @keyframes "+i+" {\n 0% { transform: translateY(-50%) rotate(0deg); }\n 100% { transform: translateY(-50%) rotate(360deg); }\n }\n ",0)}},t}();e.a=u},function(t,e,n){"use strict";var r=n(293),o=n.n(r),i=function(){function t(t){this._namespace=t}return t.prototype.getItem=function(t){var e=o.a.getItem(this.withNamespace(t));if(null===e)return null;try{return JSON.parse(e)}catch(e){return this.removeItem(this.withNamespace(t)),null}},t.prototype.getItemOnce=function(t){var e=this.getItem(t);return this.removeItem(t),e},t.prototype.setItem=function(t,e){return o.a.setItem(this.withNamespace(t),JSON.stringify(e))},t.prototype.removeItem=function(t){return o.a.removeItem(this.withNamespace(t))},t.prototype.withNamespace=function(t){return this._namespace+"."+t},t}();e.a=i},function(t,e,n){"use strict";function r(t,e){return(0,n(636).iframeResizer)(t,e)}function o(){n(516)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(700);n.d(e,"embedCheckout",(function(){return r.a}));var o=n(701);n.d(e,"createEmbeddedCheckoutMessenger",(function(){return o.a}))}])}));
|
|
48
48
|
//# sourceMappingURL=embedded-checkout.umd.js.map
|