@everymatrix/cashier-verifications 1.74.0 → 1.74.2

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.
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./CashierVerifications-NK1qxaYe.cjs");function b(r){return typeof r=="function"}function U(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var S=U(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(i,o){return o+1+") "+i.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function E(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var w=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var l=n.__values(u),c=l.next();!c.done;c=l.next()){var a=c.value;a.remove(this)}}catch(h){t={error:h}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else u.remove(this);var f=this.initialTeardown;if(b(f))try{f()}catch(h){s=h instanceof S?h.errors:[h]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var v=n.__values(d),y=v.next();!y.done;y=v.next()){var g=y.value;try{x(g)}catch(h){s=s!=null?s:[],h instanceof S?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(h.errors)):s.push(h)}}}catch(h){i={error:h}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}if(s)throw new S(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)x(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&E(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&E(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),B=w.EMPTY;function D(r){return r instanceof w||r&&"closed"in r&&b(r.remove)&&b(r.add)&&b(r.unsubscribe)}function x(r){b(r)?r():r.unsubscribe()}var z={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},G={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,n.__spreadArray([r,t],n.__read(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function J(r){G.setTimeout(function(){throw r})}function k(){}function _(r){r()}var F=function(r){n.__extends(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,D(e)&&e.add(i)):i.destination=N,i}return t.create=function(e,i,o){return new L(e,i,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(w),K=Function.prototype.bind;function C(r,t){return K.call(r,t)}var Q=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){m(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){m(i)}else m(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){m(e)}},r}(),L=function(r){n.__extends(t,r);function t(e,i,o){var s=r.call(this)||this,u;if(b(e)||!e)u={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0};else{var l;s&&z.useDeprecatedNextContext?(l=Object.create(e),l.unsubscribe=function(){return s.unsubscribe()},u={next:e.next&&C(e.next,l),error:e.error&&C(e.error,l),complete:e.complete&&C(e.complete,l)}):u=e}return s.destination=new Q(u),s}return t}(F);function m(r){J(r)}function X(r){throw r}var N={closed:!0,next:k,error:X,complete:k},$=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ee(r){return r}function te(r){return r.length===0?ee:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var P=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=ie(t)?t:new L(t,e,i);return _(function(){var u=o,l=u.operator,c=u.source;s.add(l?l.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=T(e),new e(function(o,s){var u=new L({next:function(l){try{t(l)}catch(c){s(c),u.unsubscribe()}},error:s,complete:o});i.subscribe(u)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[$]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return te(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=T(t),new t(function(i,o){var s;e.subscribe(function(u){return s=u},function(u){return o(u)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function T(r){var t;return(t=r!=null?r:z.Promise)!==null&&t!==void 0?t:Promise}function re(r){return r&&b(r.next)&&b(r.error)&&b(r.complete)}function ie(r){return r&&r instanceof F||re(r)&&D(r)}var ne=U(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),H=function(r){n.__extends(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new j(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ne},t.prototype.next=function(e){var i=this;_(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=n.__values(i.currentObservers),l=u.next();!l.done;l=u.next()){var c=l.value;c.next(e)}}catch(a){o={error:a}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;_(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;_(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,o=this,s=o.hasError,u=o.isStopped,l=o.observers;return s||u?B:(this.currentObservers=null,l.push(e),new w(function(){i.currentObservers=null,E(l,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,u=i.isStopped;o?e.error(s):u&&e.complete()},t.prototype.asObservable=function(){var e=new P;return e.source=this,e},t.create=function(e,i){return new j(e,i)},t}(P),j=function(r){n.__extends(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:B},t}(H),R={now:function(){return(R.delegate||Date).now()},delegate:void 0},oe=function(r){n.__extends(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=R);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,u=i._infiniteTimeWindow,l=i._timestampProvider,c=i._windowTime;o||(s.push(e),!u&&s.push(l.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,u=o._buffer,l=u.slice(),c=0;c<l.length&&!e.closed;c+=s?1:2)e.next(l[c]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,u=e._infiniteTimeWindow,l=(u?1:2)*i;if(i<1/0&&l<s.length&&s.splice(0,s.length-l),!u){for(var c=o.now(),a=0,f=1;f<s.length&&s[f]<=c;f+=2)a=f;a&&s.splice(0,a+1)}},t}(H);const M=[],O={},se=(r,t=0)=>{if(M.indexOf(r)==-1){const e=new oe(t);O[r]=e,M.push(r)}return O[r]};window.emWidgets={topic:se};const V=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function ue(r){n.append_styles(r,"svelte-1d17c9c",".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}")}function I(r){let t,e,i,o,s,u,l,c=!r[2]&&A(r),a=r[2]&&W(r);return{c(){t=n.element("div"),c&&c.c(),e=n.space(),i=n.element("div"),a&&a.c(),o=n.space(),s=n.element("video"),u=n.element("source"),n.src_url_equal(u.src,l=r[0])||n.attr(u,"src",l),s.autoplay=!0,s.controls=!0,n.attr(s,"controlslist","nodownload"),n.attr(s,"disablepictureinpicture",""),n.attr(i,"class","CashierVideo"),n.attr(t,"class","CashierVideoWrapper"),n.toggle_class(t,"CashierVideoWrapperDesktop",r[2])},m(f,d){n.insert(f,t,d),c&&c.m(t,null),n.append(t,e),n.append(t,i),a&&a.m(i,null),n.append(i,o),n.append(i,s),n.append(s,u),r[11](t)},p(f,d){f[2]?c&&(c.d(1),c=null):c?c.p(f,d):(c=A(f),c.c(),c.m(t,e)),f[2]?a?a.p(f,d):(a=W(f),a.c(),a.m(i,o)):a&&(a.d(1),a=null),d&1&&!n.src_url_equal(u.src,l=f[0])&&n.attr(u,"src",l),d&4&&n.toggle_class(t,"CashierVideoWrapperDesktop",f[2])},d(f){f&&n.detach(t),c&&c.d(),a&&a.d(),r[11](null)}}}function A(r){let t,e,i,o,s;return{c(){t=n.element("div"),e=n.svg_element("svg"),i=n.svg_element("path"),n.attr(i,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),n.attr(i,"fill","#111111"),n.attr(e,"xmlns","http://www.w3.org/2000/svg"),n.attr(e,"width","13"),n.attr(e,"height","13"),n.attr(e,"viewBox","0 0 13 13"),n.attr(e,"fill","none"),n.attr(t,"class","CashierVideoHeader")},m(u,l){n.insert(u,t,l),n.append(t,e),n.append(e,i),o||(s=n.listen(e,"click",r[9]),o=!0)},p:n.noop,d(u){u&&n.detach(t),o=!1,s()}}}function W(r){let t,e,i,o;return{c(){t=n.svg_element("svg"),e=n.svg_element("path"),n.attr(e,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),n.attr(e,"fill","#111111"),n.attr(t,"xmlns","http://www.w3.org/2000/svg"),n.attr(t,"width","13"),n.attr(t,"height","13"),n.attr(t,"viewBox","0 0 13 13"),n.attr(t,"fill","none")},m(s,u){n.insert(s,t,u),n.append(t,e),i||(o=n.listen(t,"click",r[10]),i=!0)},p:n.noop,d(s){s&&n.detach(t),i=!1,o()}}}function le(r){let t,e=r[3]&&I(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,[o]){i[3]?e?e.p(i,o):(e=I(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:n.noop,o:n.noop,d(i){i&&n.detach(t),e&&e.d(i)}}}function ce(r,t,e){let{clientstyling:i=""}=t,{clientstylingurl:o=""}=t,{ismobileview:s}=t,{videosrc:u}=t,{mbsource:l=""}=t,c=window.navigator.userAgent,a=!0,f=!1,d;const v=()=>{e(3,f=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},y=p=>{p.data.type=="ShowCashierVideoModal"&&(e(3,f=!0),window.postMessage({type:"DisableScroll"},window.location.href)),p.data.type=="HideCashierVideoModal"&&v()},g=()=>{e(2,a=!V(c))};n.onMount(()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));const h=()=>v(),Y=()=>v();function Z(p){n.binding_callbacks[p?"unshift":"push"](()=>{d=p,e(1,d)})}return r.$$set=p=>{"clientstyling"in p&&e(5,i=p.clientstyling),"clientstylingurl"in p&&e(6,o=p.clientstylingurl),"ismobileview"in p&&e(7,s=p.ismobileview),"videosrc"in p&&e(0,u=p.videosrc),"mbsource"in p&&e(8,l=p.mbsource)},r.$$.update=()=>{r.$$.dirty&34&&i&&d&&n.setClientStyling(d,i),r.$$.dirty&66&&o&&d&&n.setClientStylingURL(d,o),r.$$.dirty&258&&l&&d&&n.setStreamStyling(d,`${l}.Style`)},V(c)&&g(),[u,d,a,f,v,i,o,s,l,h,Y,Z]}class q extends n.SvelteComponent{constructor(t){super(),n.init(this,t,ce,le,n.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0,mbsource:8},ue)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),n.flush()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),n.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}}n.create_custom_element(q,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{},mbsource:{}},[],[],!0);exports.default=q;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-CxzuhF7y.cjs")).then(e=>e.CashierVerifications_ce).then(({default:e})=>{!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-NK1qxaYe.cjs")).then(e=>e.CashierVerifications_ce).then(({default:e})=>{!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierVerifications-CNVgxinr.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierVerifications-DcwRBRJJ.js").then((e) => e.C).then(({ default: e }) => {
14
14
  !customElements.get("cashier-verifications") && customElements.define("cashier-verifications", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as i } from "../components/CashierVerifications-BAf8u9ns.js";
1
+ import { C as i } from "../components/CashierVerifications-b9si2iM4.js";
2
2
  function n(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-verifications",
3
- "version": "1.74.0",
3
+ "version": "1.74.2",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-verifications.cjs",
6
6
  "module": "esnext/cashier-verifications.js",
@@ -1,5 +0,0 @@
1
- "use strict";var qr=Object.defineProperty,Yr=Object.defineProperties;var Zr=Object.getOwnPropertyDescriptors;var Pt=Object.getOwnPropertySymbols;var Jr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable;var it=(e,t,r)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,At=(e,t)=>{for(var r in t||(t={}))Jr.call(t,r)&&it(e,r,t[r]);if(Pt)for(var r of Pt(t))Qr.call(t,r)&&it(e,r,t[r]);return e},$t=(e,t)=>Yr(e,Zr(t));var Q=(e,t,r)=>(it(e,typeof t!="symbol"?t+"":t,r),r);var Bt=(e,t,r)=>new Promise((i,n)=>{var s=a=>{try{l(r.next(a))}catch(u){n(u)}},o=a=>{try{l(r.throw(a))}catch(u){n(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,o);l((r=r.apply(e,t)).next())});function te(){}function ir(e){return e()}function Mt(){return Object.create(null)}function Re(e){e.forEach(ir)}function xt(e){return typeof e=="function"}function Et(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ge;function Kr(e,t){return e===t?!0:(Ge||(Ge=document.createElement("a")),Ge.href=t,e===Ge.href)}function ei(e){return Object.keys(e).length===0}function nr(e,...t){if(e==null){for(const i of t)i(void 0);return te}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Ct(e,t,r){e.$$.on_destroy.push(nr(t,r))}function ie(e,t){e.appendChild(t)}function sr(e,t,r){const i=ti(e);if(!i.getElementById(t)){const n=q("style");n.id=t,n.textContent=r,ri(i,n)}}function ti(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ri(e,t){return ie(e.head||e,t),t.sheet}function ne(e,t,r){e.insertBefore(t,r||null)}function ee(e){e.parentNode&&e.parentNode.removeChild(e)}function ii(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function q(e){return document.createElement(e)}function ni(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function wt(e){return document.createTextNode(e)}function be(){return wt(" ")}function si(){return wt("")}function Ke(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function re(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function K(e,t,r){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:re(e,t,r)}function oi(e){return Array.from(e.childNodes)}function ai(e,t){t=""+t,e.data!==t&&(e.data=t)}function ye(e,t,r){e.classList.toggle(t,!!r)}function ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let De;function Le(e){De=e}function li(){if(!De)throw new Error("Function called outside component initialization");return De}function or(e){li().$$.on_mount.push(e)}const Se=[],qe=[];let Te=[];const Lt=[],hi=Promise.resolve();let ft=!1;function fi(){ft||(ft=!0,hi.then(Z))}function ct(e){Te.push(e)}const nt=new Set;let Ee=0;function Z(){if(Ee!==0)return;const e=De;do{try{for(;Ee<Se.length;){const t=Se[Ee];Ee++,Le(t),ci(t.$$)}}catch(t){throw Se.length=0,Ee=0,t}for(Le(null),Se.length=0,Ee=0;qe.length;)qe.pop()();for(let t=0;t<Te.length;t+=1){const r=Te[t];nt.has(r)||(nt.add(r),r())}Te.length=0}while(Se.length);for(;Lt.length;)Lt.pop()();ft=!1,nt.clear(),Le(e)}function ci(e){if(e.fragment!==null){e.update(),Re(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ct)}}function di(e){const t=[],r=[];Te.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),Te=t}const mi=new Set;function pi(e,t){e&&e.i&&(mi.delete(e),e.i(t))}function Dt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function gi(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),ct(()=>{const s=e.$$.on_mount.map(ir).filter(xt);e.$$.on_destroy?e.$$.on_destroy.push(...s):Re(s),e.$$.on_mount=[]}),n.forEach(ct)}function vi(e,t){const r=e.$$;r.fragment!==null&&(di(r.after_update),Re(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function bi(e,t){e.$$.dirty[0]===-1&&(Se.push(e),fi(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ar(e,t,r,i,n,s,o=null,l=[-1]){const a=De;Le(e);const u=e.$$={fragment:null,ctx:[],props:s,update:te,not_equal:n,bound:Mt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:Mt(),dirty:l,skip_bound:!1,root:t.target||a.$$.root};o&&o(u.root);let h=!1;if(u.ctx=r?r(e,t.props||{},(c,p,..._)=>{const S=_.length?_[0]:p;return u.ctx&&n(u.ctx[c],u.ctx[c]=S)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](S),h&&bi(e,c)),p}):[],u.update(),h=!0,Re(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const c=oi(t.target);u.fragment&&u.fragment.l(c),c.forEach(ee)}else u.fragment&&u.fragment.c();t.intro&&pi(e.$$.fragment),gi(e,t.target,t.anchor),Z()}Le(a)}let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{constructor(t,r,i){super();Q(this,"$$ctor");Q(this,"$$s");Q(this,"$$c");Q(this,"$$cn",!1);Q(this,"$$d",{});Q(this,"$$r",!1);Q(this,"$$p_d",{});Q(this,"$$l",{});Q(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return Bt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=q("slot"),s!=="default"&&re(o,"name",s)},m:function(u,h){ne(u,o,h)},d:function(u){u&&ee(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=ui(this);for(const s of this.$$s)s in i&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=ze(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:$t(At({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=ze(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const s in this.$$l)for(const o of this.$$l[s]){const l=this.$$c.$on(s,o);this.$$l_u.set(o,l)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ze(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function ze(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function lr(e,t,r,i,n,s){let o=class extends ur{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){var u;a=ze(l,a,t),this.$$d[l]=a,(u=this.$$c)==null||u.$set({[l]:a})}})}),i.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var a;return(a=this.$$c)==null?void 0:a[l]}})}),e.element=o,o}class hr{constructor(){Q(this,"$$");Q(this,"$$set")}$destroy(){vi(this,1),this.$destroy=te}$on(t,r){if(!xt(r))return te;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(r),()=>{const n=i.indexOf(r);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!ei(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const yi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yi);const we=[];function _i(e,t){return{subscribe:ke(e,t).subscribe}}function ke(e,t=te){let r;const i=new Set;function n(l){if(Et(e,l)&&(e=l,r)){const a=!we.length;for(const u of i)u[1](),we.push(u,e);if(a){for(let u=0;u<we.length;u+=2)we[u][0](we[u+1]);we.length=0}}}function s(l){n(l(e))}function o(l,a=te){const u=[l,a];return i.add(u),i.size===1&&(r=t(n,s)||te),l(e),()=>{i.delete(u),i.size===0&&r&&(r(),r=null)}}return{set:n,update:s,subscribe:o}}function $e(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return _i(r,(o,l)=>{let a=!1;const u=[];let h=0,c=te;const p=()=>{if(h)return;c();const S=t(i?u[0]:u,o,l);s?o(S):c=xt(S)?S:te},_=n.map((S,v)=>nr(S,B=>{u[v]=B,h&=~(1<<v),a&&p()},()=>{h|=1<<v}));return a=!0,p(),function(){Re(_),c(),a=!1}})}var fr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function St(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xi=function(t){return Ei(t)&&!wi(t)};function Ei(e){return!!e&&typeof e=="object"}function wi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Hi(e)}var Si=typeof Symbol=="function"&&Symbol.for,Ti=Si?Symbol.for("react.element"):60103;function Hi(e){return e.$$typeof===Ti}function Oi(e){return Array.isArray(e)?[]:{}}function Ie(e,t){return t.clone!==!1&&t.isMergeableObject(e)?He(Oi(e),e,t):e}function Pi(e,t,r){return e.concat(t).map(function(i){return Ie(i,r)})}function Ai(e,t){if(!t.customMerge)return He;var r=t.customMerge(e);return typeof r=="function"?r:He}function $i(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function It(e){return Object.keys(e).concat($i(e))}function cr(e,t){try{return t in e}catch(r){return!1}}function Bi(e,t){return cr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Mi(e,t,r){var i={};return r.isMergeableObject(e)&&It(e).forEach(function(n){i[n]=Ie(e[n],r)}),It(t).forEach(function(n){Bi(e,n)||(cr(e,n)&&r.isMergeableObject(t[n])?i[n]=Ai(n,r)(e[n],t[n],r):i[n]=Ie(t[n],r))}),i}function He(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Pi,r.isMergeableObject=r.isMergeableObject||xi,r.cloneUnlessOtherwiseSpecified=Ie;var i=Array.isArray(t),n=Array.isArray(e),s=i===n;return s?i?r.arrayMerge(e,t,r):Mi(e,t,r):Ie(t,r)}He.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return He(i,n,r)},{})};var Ci=He,Li=Ci;const Di=St(Li);var dt=function(e,t){return dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},dt(e,t)};function et(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ae=function(){return ae=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ae.apply(this,arguments)};function Ii(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function st(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,s;i<n;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function ot(e,t){var r=t&&t.cache?t.cache:Gi,i=t&&t.serializer?t.serializer:Vi,n=t&&t.strategy?t.strategy:ki;return n(e,{cache:r,serializer:i})}function Ni(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ri(e,t,r,i){var n=Ni(i)?i:r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.call(this,i),t.set(n,s)),s}function dr(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.apply(this,i),t.set(n,s)),s}function mr(e,t,r,i,n){return r.bind(t,e,i,n)}function ki(e,t){var r=e.length===1?Ri:dr;return mr(e,this,r,t.cache.create(),t.serializer)}function Ui(e,t){return mr(e,this,dr,t.cache.create(),t.serializer)}var Vi=function(){return JSON.stringify(arguments)},Fi=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Gi={create:function(){return new Fi}},at={variadic:Ui},Ye=function(){return Ye=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ye.apply(this,arguments)};var T;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var C;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(C||(C={}));var Oe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Oe||(Oe={}));function Nt(e){return e.type===C.literal}function ji(e){return e.type===C.argument}function pr(e){return e.type===C.number}function gr(e){return e.type===C.date}function vr(e){return e.type===C.time}function br(e){return e.type===C.select}function yr(e){return e.type===C.plural}function zi(e){return e.type===C.pound}function _r(e){return e.type===C.tag}function xr(e){return!!(e&&typeof e=="object"&&e.type===Oe.number)}function mt(e){return!!(e&&typeof e=="object"&&e.type===Oe.dateTime)}var Er=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Xi=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Wi(e){var t={};return e.replace(Xi,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var D=function(){return D=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},D.apply(this,arguments)};var qi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Yi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(qi).filter(function(p){return p.length>0}),r=[],i=0,n=t;i<n.length;i++){var s=n[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],a=o.slice(1),u=0,h=a;u<h.length;u++){var c=h[u];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:a})}return r}function Zi(e){return e.replace(/^(.*?)-/,"")}var Rt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,wr=/^(@+)?(\+|#+)?[rs]?$/g,Ji=/(\*)(0+)|(#+)(0+)|(0+)/g,Sr=/^(0+)$/;function kt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(wr,function(r,i,n){return typeof n!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):n==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),t}function Tr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Qi(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Sr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ut(e){var t={},r=Tr(e);return r||t}function Ki(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Zi(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=D(D(D({},t),{notation:"scientific"}),n.options.reduce(function(a,u){return D(D({},a),Ut(u))},{}));continue;case"engineering":t=D(D(D({},t),{notation:"engineering"}),n.options.reduce(function(a,u){return D(D({},a),Ut(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Ji,function(a,u,h,c,p,_){if(u)t.minimumIntegerDigits=h.length;else{if(c&&p)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sr.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Rt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Rt,function(a,u,h,c,p,_){return h==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:p&&_?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+_.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=n.options[0];s==="w"?t=D(D({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=D(D({},t),kt(s)));continue}if(wr.test(n.stem)){t=D(D({},t),kt(n.stem));continue}var o=Tr(n.stem);o&&(t=D(D({},t),o));var l=Qi(n.stem);l&&(t=D(D({},t),l))}return t}var je={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function en(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(s&1),l=s<2?1:3+(s>>1),a="a",u=tn(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=a;for(;o-- >0;)r=u+r}else n==="J"?r+="H":r+=n}return r}function tn(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=je[i||""]||je[r||""]||je["".concat(r,"-001")]||je["001"];return n[0]}var ut,rn=new RegExp("^".concat(Er.source,"*")),nn=new RegExp("".concat(Er.source,"*$"));function O(e,t){return{start:e,end:t}}var sn=!!String.prototype.startsWith&&"_a".startsWith("a",1),on=!!String.fromCodePoint,an=!!Object.fromEntries,un=!!String.prototype.codePointAt,ln=!!String.prototype.trimStart,hn=!!String.prototype.trimEnd,fn=!!Number.isSafeInteger,cn=fn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pt=!0;try{var dn=Or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pt=((ut=dn.exec("a"))===null||ut===void 0?void 0:ut[0])==="a"}catch(e){pt=!1}var Vt=sn?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},gt=on?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,s=0,o;n>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},Ft=an?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var s=n[i],o=s[0],l=s[1];r[o]=l}return r},Hr=un?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),s;return n<55296||n>56319||r+1===i||(s=t.charCodeAt(r+1))<56320||s>57343?n:(n-55296<<10)+(s-56320)+65536}},mn=ln?function(t){return t.trimStart()}:function(t){return t.replace(rn,"")},pn=hn?function(t){return t.trimEnd()}:function(t){return t.replace(nn,"")};function Or(e,t){return new RegExp(e,t)}var vt;if(pt){var Gt=Or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vt=function(t,r){var i;Gt.lastIndex=r;var n=Gt.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else vt=function(t,r){for(var i=[];;){var n=Hr(t,r);if(n===void 0||Pr(n)||yn(n))break;i.push(n),r+=n>=65536?2:1}return gt.apply(void 0,i)};var gn=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,i){for(var n=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;n.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),n.push({type:C.pound,location:O(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(T.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&bt(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;n.push(o.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:C.literal,value:"<".concat(n,"/>"),location:O(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!bt(this.char()))return this.error(T.INVALID_TAG,O(l,this.clonePosition()));var a=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(T.UNMATCHED_CLOSING_TAG,O(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:C.tag,value:n,children:o,location:O(i,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,O(l,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,O(i,this.clonePosition()))}else return this.error(T.INVALID_TAG,O(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var s=this.tryParseQuote(r);if(s){n+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){n+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){n+=l;continue}break}var a=O(i,this.clonePosition());return{val:{type:C.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!vn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return gt.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),gt(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,O(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(T.MALFORMED_ARGUMENT,O(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:C.argument,value:n,location:O(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(T.MALFORMED_ARGUMENT,O(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=vt(this.message,r),n=r+i.length;this.bumpTo(n);var s=this.clonePosition(),o=O(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,r,i,n){var s,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(l){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,O(o,a));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var p=pn(c.val);if(p.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var _=O(h,this.clonePosition());u={style:p,styleLocation:_}}var S=this.tryParseArgumentClose(n);if(S.err)return S;var v=O(n,this.clonePosition());if(u&&Vt(u==null?void 0:u.style,"::",0)){var B=mn(u.style.slice(2));if(l==="number"){var c=this.parseNumberSkeletonFromString(B,u.styleLocation);return c.err?c:{val:{type:C.number,value:i,location:v,style:c.val},err:null}}else{if(B.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,v);var G=B;this.locale&&(G=en(B,this.locale));var p={type:Oe.dateTime,pattern:G,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Wi(G):{}},R=l==="date"?C.date:C.time;return{val:{type:R,value:i,location:v,style:p},err:null}}}return{val:{type:l==="number"?C.number:l==="date"?C.date:C.time,value:i,location:v,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,O(A,Ye({},A)));this.bumpSpace();var X=this.parseIdentifierIfPossible(),I=0;if(l!=="select"&&X.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),X=this.parseIdentifierIfPossible(),I=c.val}var V=this.tryParsePluralOrSelectOptions(t,l,r,X);if(V.err)return V;var S=this.tryParseArgumentClose(n);if(S.err)return S;var Y=O(n,this.clonePosition());return l==="select"?{val:{type:C.select,value:i,options:Ft(V.val),location:Y},err:null}:{val:{type:C.plural,value:i,options:Ft(V.val),offset:I,pluralType:l==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,O(o,a))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=Yi(t)}catch(n){return this.error(T.INVALID_NUMBER_SKELETON,r)}return{val:{type:Oe.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?Ki(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var s,o=!1,l=[],a=new Set,u=n.value,h=n.location;;){if(u.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;h=O(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(a.has(u))return this.error(r==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(o=!0),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var S=this.parseMessage(t+1,r,i);if(S.err)return S;var v=this.tryParseArgumentClose(_);if(v.err)return v;l.push([u,{value:S.val,location:O(_,this.clonePosition())}]),a.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,h=s.location}return l.length===0?this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(T.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,o=o*10+(l-48),this.bump();else break}var a=O(n,this.clonePosition());return s?(o*=i,cn(o)?{val:o,err:null}:this.error(r,a)):this.error(t,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Hr(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Vt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function bt(e){return e>=97&&e<=122||e>=65&&e<=90}function vn(e){return bt(e)||e===47}function bn(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Pr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function yn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function yt(e){e.forEach(function(t){if(delete t.location,br(t)||yr(t))for(var r in t.options)delete t.options[r].location,yt(t.options[r].value);else pr(t)&&xr(t.style)||(gr(t)||vr(t))&&mt(t.style)?delete t.style.location:_r(t)&&yt(t.children)})}function _n(e,t){t===void 0&&(t={}),t=Ye({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new gn(e,t).parse();if(r.err){var i=SyntaxError(T[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||yt(r.val),r.val}var Pe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Pe||(Pe={}));var tt=function(e){et(t,e);function t(r,i,n){var s=e.call(this,r)||this;return s.code=i,s.originalMessage=n,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),jt=function(e){et(t,e);function t(r,i,n,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Pe.INVALID_VALUE,s)||this}return t}(tt),xn=function(e){et(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Pe.INVALID_VALUE,n)||this}return t}(tt),En=function(e){et(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Pe.MISSING_VALUE,i)||this}return t}(tt),z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(z||(z={}));function wn(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==z.literal||r.type!==z.literal?t.push(r):i.value+=r.value,t},[])}function Sn(e){return typeof e=="function"}function Xe(e,t,r,i,n,s,o){if(e.length===1&&Nt(e[0]))return[{type:z.literal,value:e[0].value}];for(var l=[],a=0,u=e;a<u.length;a++){var h=u[a];if(Nt(h)){l.push({type:z.literal,value:h.value});continue}if(zi(h)){typeof s=="number"&&l.push({type:z.literal,value:r.getNumberFormat(t).format(s)});continue}var c=h.value;if(!(n&&c in n))throw new En(c,o);var p=n[c];if(ji(h)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?z.literal:z.object,value:p});continue}if(gr(h)){var _=typeof h.style=="string"?i.date[h.style]:mt(h.style)?h.style.parsedOptions:void 0;l.push({type:z.literal,value:r.getDateTimeFormat(t,_).format(p)});continue}if(vr(h)){var _=typeof h.style=="string"?i.time[h.style]:mt(h.style)?h.style.parsedOptions:i.time.medium;l.push({type:z.literal,value:r.getDateTimeFormat(t,_).format(p)});continue}if(pr(h)){var _=typeof h.style=="string"?i.number[h.style]:xr(h.style)?h.style.parsedOptions:void 0;_&&_.scale&&(p=p*(_.scale||1)),l.push({type:z.literal,value:r.getNumberFormat(t,_).format(p)});continue}if(_r(h)){var S=h.children,v=h.value,B=n[v];if(!Sn(B))throw new xn(v,"function",o);var G=Xe(S,t,r,i,n,s),R=B(G.map(function(I){return I.value}));Array.isArray(R)||(R=[R]),l.push.apply(l,R.map(function(I){return{type:typeof I=="string"?z.literal:z.object,value:I}}))}if(br(h)){var A=h.options[p]||h.options.other;if(!A)throw new jt(h.value,p,Object.keys(h.options),o);l.push.apply(l,Xe(A.value,t,r,i,n));continue}if(yr(h)){var A=h.options["=".concat(p)];if(!A){if(!Intl.PluralRules)throw new tt(`Intl.PluralRules is not available in this environment.
2
- Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,Pe.MISSING_INTL_API,o);var X=r.getPluralRules(t,{type:h.pluralType}).select(p-(h.offset||0));A=h.options[X]||h.options.other}if(!A)throw new jt(h.value,p,Object.keys(h.options),o);l.push.apply(l,Xe(A.value,t,r,i,n,p-(h.offset||0)));continue}}return wn(l)}function Tn(e,t){return t?ae(ae(ae({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=ae(ae({},e[i]),t[i]||{}),r},{})):e}function Hn(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=Tn(e[i],t[i]),r},ae({},e)):e}function lt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function On(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ot(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,st([void 0],r,!1)))},{cache:lt(e.number),strategy:at.variadic}),getDateTimeFormat:ot(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,st([void 0],r,!1)))},{cache:lt(e.dateTime),strategy:at.variadic}),getPluralRules:ot(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,st([void 0],r,!1)))},{cache:lt(e.pluralRules),strategy:at.variadic})}}var Ar=function(){function e(t,r,i,n){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(a){var u=s.formatToParts(a);if(u.length===1)return u[0].value;var h=u.reduce(function(c,p){return!c.length||p.type!==z.literal||typeof c[c.length-1]!="string"?c.push(p.value):c[c.length-1]+=p.value,c},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(a){return Xe(s.ast,s.locales,s.formatters,s.formats,a,void 0,s.message)},this.resolvedOptions=function(){var a;return{locale:((a=s.resolvedLocale)===null||a===void 0?void 0:a.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=n||{};o.formatters;var l=Ii(o,["formatters"]);this.ast=e.__parse(t,ae(ae({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Hn(e.formats,i),this.formatters=n&&n.formatters||On(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=_n,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Pn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const s=r.slice(n,r.length).join(".");if(s in i){i=i[s];break}}i=i[r[n]]}else i=void 0;return i}const me={},An=(e,t,r)=>r&&(t in me||(me[t]={}),e in me[t]||(me[t][e]=r),r),$r=(e,t)=>{if(t==null)return;if(t in me&&e in me[t])return me[t][e];const r=Ve(t);for(let i=0;i<r.length;i++){const n=r[i],s=Bn(n,e);if(s)return An(e,t,s)}};let Tt;const Ue=ke({});function $n(e){return Tt[e]||null}function Br(e){return e in Tt}function Bn(e,t){if(!Br(e))return null;const r=$n(e);return Pn(r,t)}function Mn(e){if(e==null)return;const t=Ve(e);for(let r=0;r<t.length;r++){const i=t[r];if(Br(i))return i}}function Mr(e,...t){delete me[e],Ue.update(r=>(r[e]=Di.all([r[e]||{},...t]),r))}$e([Ue],([e])=>Object.keys(e));Ue.subscribe(e=>Tt=e);const We={};function Cn(e,t){We[e].delete(t),We[e].size===0&&delete We[e]}function Cr(e){return We[e]}function Ln(e){return Ve(e).map(t=>{const r=Cr(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ze(e){return e==null?!1:Ve(e).some(t=>{var r;return(r=Cr(t))==null?void 0:r.size})}function Dn(e,t){return Promise.all(t.map(i=>(Cn(e,i),i().then(n=>n.default||n)))).then(i=>Mr(e,...i))}const Me={};function Lr(e){if(!Ze(e))return e in Me?Me[e]:Promise.resolve();const t=Ln(e);return Me[e]=Promise.all(t.map(([r,i])=>Dn(r,i))).then(()=>{if(Ze(e))return Lr(e);delete Me[e]}),Me[e]}var zt=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,Rn=(e,t)=>{var r={};for(var i in e)In.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&zt)for(var i of zt(e))t.indexOf(i)<0&&Nn.call(e,i)&&(r[i]=e[i]);return r};const kn={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Un({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Ve(e).join('", "')}".${Ze(pe())?`
4
-
5
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Vn={fallbackLocale:null,loadingDelay:200,formats:kn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ce=Vn;function Ae(){return Ce}function Fn(e){const t=e,{formats:r}=t,i=Rn(t,["formats"]);let n=e.fallbackLocale;if(e.initialLocale)try{Ar.resolveLocale(e.initialLocale)&&(n=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,i.handleMissingMessage==null?i.handleMissingMessage=Un:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ce,i,{initialLocale:n}),r&&("number"in r&&Object.assign(Ce.formats.number,r.number),"date"in r&&Object.assign(Ce.formats.date,r.date),"time"in r&&Object.assign(Ce.formats.time,r.time)),_e.set(n)}const ht=ke(!1);var Gn=Object.defineProperty,jn=Object.defineProperties,zn=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,Wt=(e,t,r)=>t in e?Gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qn=(e,t)=>{for(var r in t||(t={}))Xn.call(t,r)&&Wt(e,r,t[r]);if(Xt)for(var r of Xt(t))Wn.call(t,r)&&Wt(e,r,t[r]);return e},Yn=(e,t)=>jn(e,zn(t));let _t;const Je=ke(null);function qt(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function Ve(e,t=Ae().fallbackLocale){const r=qt(e);return t?[...new Set([...r,...qt(t)])]:r}function pe(){return _t!=null?_t:void 0}Je.subscribe(e=>{_t=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Zn=e=>{if(e&&Mn(e)&&Ze(e)){const{loadingDelay:t}=Ae();let r;return typeof window!="undefined"&&pe()!=null&&t?r=window.setTimeout(()=>ht.set(!0),t):ht.set(!0),Lr(e).then(()=>{Je.set(e)}).finally(()=>{clearTimeout(r),ht.set(!1)})}return Je.set(e)},_e=Yn(qn({},Je),{set:Zn}),rt=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var Jn=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Yt=(e,t,r)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ht=(e,t)=>{for(var r in t||(t={}))Dr.call(t,r)&&Yt(e,r,t[r]);if(Qe)for(var r of Qe(t))Ir.call(t,r)&&Yt(e,r,t[r]);return e},Be=(e,t)=>{var r={};for(var i in e)Dr.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Qe)for(var i of Qe(e))t.indexOf(i)<0&&Ir.call(e,i)&&(r[i]=e[i]);return r};const Ne=(e,t)=>{const{formats:r}=Ae();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qn=rt(e=>{var t=e,{locale:r,format:i}=t,n=Be(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=Ne("number",i)),new Intl.NumberFormat(r,n)}),Kn=rt(e=>{var t=e,{locale:r,format:i}=t,n=Be(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=Ne("date",i):Object.keys(n).length===0&&(n=Ne("date","short")),new Intl.DateTimeFormat(r,n)}),es=rt(e=>{var t=e,{locale:r,format:i}=t,n=Be(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=Ne("time",i):Object.keys(n).length===0&&(n=Ne("time","short")),new Intl.DateTimeFormat(r,n)}),ts=(e={})=>{var t=e,{locale:r=pe()}=t,i=Be(t,["locale"]);return Qn(Ht({locale:r},i))},rs=(e={})=>{var t=e,{locale:r=pe()}=t,i=Be(t,["locale"]);return Kn(Ht({locale:r},i))},is=(e={})=>{var t=e,{locale:r=pe()}=t,i=Be(t,["locale"]);return es(Ht({locale:r},i))},ns=rt((e,t=pe())=>new Ar(e,t,Ae().formats,{ignoreTag:Ae().ignoreTag})),ss=(e,t={})=>{var r,i,n,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:a=pe(),default:u}=o;if(a==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=$r(e,a);if(!h)h=(s=(n=(i=(r=Ae()).handleMissingMessage)==null?void 0:i.call(r,{locale:a,id:e,defaultValue:u}))!=null?n:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!l)return h;let c=h;try{c=ns(h,a).format(l)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return c},os=(e,t)=>is(t).format(e),as=(e,t)=>rs(t).format(e),us=(e,t)=>ts(t).format(e),ls=(e,t=pe())=>$r(e,t),hs=$e([_e,Ue],()=>ss);$e([_e],()=>os);$e([_e],()=>as);$e([_e],()=>us);$e([_e,Ue],()=>ls);function Zt(e,t){Mr(e,t)}function fs(e){Fn({fallbackLocale:"en"}),_e.set(e)}const Jt={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-Bix664Mn.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}let cs=ke(null);function Nr(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Rr(e,t){const r=new URL(t);fetch(r.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function kr(e,t,r){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,n=>{i.innerHTML=n,e&&e.appendChild(i)})}}var Ur={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(fr,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",o="second",l="minute",a="hour",u="day",h="week",c="month",p="quarter",_="year",S="date",v="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,G=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var g=["th","st","nd","rd"],d=x%100;return"["+x+(g[(d-20)%10]||g[d]||g[0])+"]"}},A=function(x,g,d){var b=String(x);return!b||b.length>=g?x:""+Array(g+1-b.length).join(d)+x},X={s:A,z:function(x){var g=-x.utcOffset(),d=Math.abs(g),b=Math.floor(d/60),m=d%60;return(g<=0?"+":"-")+A(b,2,"0")+":"+A(m,2,"0")},m:function x(g,d){if(g.date()<d.date())return-x(d,g);var b=12*(d.year()-g.year())+(d.month()-g.month()),m=g.clone().add(b,c),E=d-m<0,w=g.clone().add(b+(E?-1:1),c);return+(-(b+(d-m)/(E?m-w:w-m))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:c,y:_,w:h,d:u,D:S,h:a,m:l,s:o,ms:s,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},I="en",V={};V[I]=R;var Y="$isDayjsObject",ue=function(x){return x instanceof k||!(!x||!x[Y])},J=function x(g,d,b){var m;if(!g)return I;if(typeof g=="string"){var E=g.toLowerCase();V[E]&&(m=E),d&&(V[E]=d,m=E);var w=g.split("-");if(!m&&w.length>1)return x(w[0])}else{var $=g.name;V[$]=g,m=$}return!b&&m&&(I=m),m||!b&&I},M=function(x,g){if(ue(x))return x.clone();var d=typeof g=="object"?g:{};return d.date=x,d.args=arguments,new k(d)},P=X;P.l=J,P.i=ue,P.w=function(x,g){return M(x,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var k=function(){function x(d){this.$L=J(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[Y]=!0}var g=x.prototype;return g.parse=function(d){this.$d=function(b){var m=b.date,E=b.utc;if(m===null)return new Date(NaN);if(P.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var w=m.match(B);if(w){var $=w[2]-1||0,L=(w[7]||"0").substring(0,3);return E?new Date(Date.UTC(w[1],$,w[3]||1,w[4]||0,w[5]||0,w[6]||0,L)):new Date(w[1],$,w[3]||1,w[4]||0,w[5]||0,w[6]||0,L)}}return new Date(m)}(d),this.init()},g.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},g.$utils=function(){return P},g.isValid=function(){return this.$d.toString()!==v},g.isSame=function(d,b){var m=M(d);return this.startOf(b)<=m&&m<=this.endOf(b)},g.isAfter=function(d,b){return M(d)<this.startOf(b)},g.isBefore=function(d,b){return this.endOf(b)<M(d)},g.$g=function(d,b,m){return P.u(d)?this[b]:this.set(m,d)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(d,b){var m=this,E=!!P.u(b)||b,w=P.p(d),$=function(le,j){var oe=P.w(m.$u?Date.UTC(m.$y,j,le):new Date(m.$y,j,le),m);return E?oe:oe.endOf(u)},L=function(le,j){return P.w(m.toDate()[le].apply(m.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(j)),m)},N=this.$W,F=this.$M,W=this.$D,ce="set"+(this.$u?"UTC":"");switch(w){case _:return E?$(1,0):$(31,11);case c:return E?$(1,F):$(0,F+1);case h:var se=this.$locale().weekStart||0,ge=(N<se?N+7:N)-se;return $(E?W-ge:W+(6-ge),F);case u:case S:return L(ce+"Hours",0);case a:return L(ce+"Minutes",1);case l:return L(ce+"Seconds",2);case o:return L(ce+"Milliseconds",3);default:return this.clone()}},g.endOf=function(d){return this.startOf(d,!1)},g.$set=function(d,b){var m,E=P.p(d),w="set"+(this.$u?"UTC":""),$=(m={},m[u]=w+"Date",m[S]=w+"Date",m[c]=w+"Month",m[_]=w+"FullYear",m[a]=w+"Hours",m[l]=w+"Minutes",m[o]=w+"Seconds",m[s]=w+"Milliseconds",m)[E],L=E===u?this.$D+(b-this.$W):b;if(E===c||E===_){var N=this.clone().set(S,1);N.$d[$](L),N.init(),this.$d=N.set(S,Math.min(this.$D,N.daysInMonth())).$d}else $&&this.$d[$](L);return this.init(),this},g.set=function(d,b){return this.clone().$set(d,b)},g.get=function(d){return this[P.p(d)]()},g.add=function(d,b){var m,E=this;d=Number(d);var w=P.p(b),$=function(F){var W=M(E);return P.w(W.date(W.date()+Math.round(F*d)),E)};if(w===c)return this.set(c,this.$M+d);if(w===_)return this.set(_,this.$y+d);if(w===u)return $(1);if(w===h)return $(7);var L=(m={},m[l]=i,m[a]=n,m[o]=r,m)[w]||1,N=this.$d.getTime()+d*L;return P.w(N,this)},g.subtract=function(d,b){return this.add(-1*d,b)},g.format=function(d){var b=this,m=this.$locale();if(!this.isValid())return m.invalidDate||v;var E=d||"YYYY-MM-DDTHH:mm:ssZ",w=P.z(this),$=this.$H,L=this.$m,N=this.$M,F=m.weekdays,W=m.months,ce=m.meridiem,se=function(j,oe,he,xe){return j&&(j[oe]||j(b,E))||he[oe].slice(0,xe)},ge=function(j){return P.s($%12||12,j,"0")},le=ce||function(j,oe,he){var xe=j<12?"AM":"PM";return he?xe.toLowerCase():xe};return E.replace(G,function(j,oe){return oe||function(he){switch(he){case"YY":return String(b.$y).slice(-2);case"YYYY":return P.s(b.$y,4,"0");case"M":return N+1;case"MM":return P.s(N+1,2,"0");case"MMM":return se(m.monthsShort,N,W,3);case"MMMM":return se(W,N);case"D":return b.$D;case"DD":return P.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return se(m.weekdaysMin,b.$W,F,2);case"ddd":return se(m.weekdaysShort,b.$W,F,3);case"dddd":return F[b.$W];case"H":return String($);case"HH":return P.s($,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return le($,L,!0);case"A":return le($,L,!1);case"m":return String(L);case"mm":return P.s(L,2,"0");case"s":return String(b.$s);case"ss":return P.s(b.$s,2,"0");case"SSS":return P.s(b.$ms,3,"0");case"Z":return w}return null}(j)||w.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(d,b,m){var E,w=this,$=P.p(b),L=M(d),N=(L.utcOffset()-this.utcOffset())*i,F=this-L,W=function(){return P.m(w,L)};switch($){case _:E=W()/12;break;case c:E=W();break;case p:E=W()/3;break;case h:E=(F-N)/6048e5;break;case u:E=(F-N)/864e5;break;case a:E=F/n;break;case l:E=F/i;break;case o:E=F/r;break;default:E=F}return m?E:P.a(E)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return V[this.$L]},g.locale=function(d,b){if(!d)return this.$L;var m=this.clone(),E=J(d,b,!0);return E&&(m.$L=E),m},g.clone=function(){return P.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},x}(),fe=k.prototype;return M.prototype=fe,[["$ms",s],["$s",o],["$m",l],["$H",a],["$W",u],["$M",c],["$y",_],["$D",S]].forEach(function(x){fe[x[1]]=function(g){return this.$g(g,x[0],x[1])}}),M.extend=function(x,g){return x.$i||(x(g,k,M),x.$i=!0),M},M.locale=J,M.isDayjs=ue,M.unix=function(x){return M(1e3*x)},M.en=V[I],M.Ls=V,M.p={},M})})(Ur);var ds=Ur.exports;const Qt=St(ds);var Vr={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(fr,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(s,o,l){var a=o.prototype;l.utc=function(v){var B={date:v,utc:!0,args:arguments};return new o(B)},a.utc=function(v){var B=l(this.toDate(),{locale:this.$L,utc:!0});return v?B.add(this.utcOffset(),r):B},a.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=a.parse;a.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),u.call(this,v)};var h=a.init;a.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else h.call(this)};var c=a.utcOffset;a.utcOffset=function(v,B){var G=this.$utils().u;if(G(v))return this.$u?0:G(this.$offset)?c.call(this):this.$offset;if(typeof v=="string"&&(v=function(I){I===void 0&&(I="");var V=I.match(i);if(!V)return null;var Y=(""+V[0]).match(n)||["-",0,0],ue=Y[0],J=60*+Y[1]+ +Y[2];return J===0?0:ue==="+"?J:-J}(v),v===null))return this;var R=Math.abs(v)<=16?60*v:v,A=this;if(B)return A.$offset=R,A.$u=v===0,A;if(v!==0){var X=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(R+X,r)).$offset=R,A.$x.$localOffset=X}else A=this.utc();return A};var p=a.format;a.format=function(v){var B=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,B)},a.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var _=a.toDate;a.toDate=function(v){return v==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():_.call(this)};var S=a.diff;a.diff=function(v,B,G){if(v&&this.$u===v.$u)return S.call(this,v,B,G);var R=this.local(),A=l(v).local();return S.call(R,A,B,G)}}})})(Vr);var ms=Vr.exports;const ps=St(ms);function gs(e){sr(e,"svelte-3ui5us","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function Kt(e,t,r){const i=e.slice();return i[54]=t[r],i[56]=r,i}function vs(e){let t,r,i,n,s=Dt(e[4]),o=[];for(let a=0;a<s.length;a+=1)o[a]=tr(Kt(e,s,a));let l=e[7]&&rr(e);return{c(){t=q("div");for(let a=0;a<o.length;a+=1)o[a].c();r=be(),l&&l.c(),i=be(),n=q("cashier-video-modal"),re(t,"class","CashierVerificationsWrapper"),K(n,"clientstylingurl",e[1]),K(n,"clientstyling",e[0]),K(n,"ismobileview",e[2]),K(n,"videosrc",e[8])},m(a,u){ne(a,t,u);for(let h=0;h<o.length;h+=1)o[h]&&o[h].m(t,null);ne(a,r,u),l&&l.m(a,u),ne(a,i,u),ne(a,n,u)},p(a,u){if(u[0]&2096){s=Dt(a[4]);let h;for(h=0;h<s.length;h+=1){const c=Kt(a,s,h);o[h]?o[h].p(c,u):(o[h]=tr(c),o[h].c(),o[h].m(t,null))}for(;h<o.length;h+=1)o[h].d(1);o.length=s.length}a[7]?l?l.p(a,u):(l=rr(a),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null),u[0]&2&&K(n,"clientstylingurl",a[1]),u[0]&1&&K(n,"clientstyling",a[0]),u[0]&4&&K(n,"ismobileview",a[2]),u[0]&256&&K(n,"videosrc",a[8])},d(a){a&&(ee(t),ee(r),ee(i),ee(n)),ii(o,a),l&&l.d(a)}}}function bs(e){let t;return{c(){t=q("cashier-spinner"),K(t,"clientstylingurl",e[1]),K(t,"clientstyling",e[0])},m(r,i){ne(r,t,i)},p(r,i){i[0]&2&&K(t,"clientstylingurl",r[1]),i[0]&1&&K(t,"clientstyling",r[0])},d(r){r&&ee(t)}}}function er(e){let t,r,i;function n(...s){return e[21](e[56],...s)}return{c(){t=q("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',re(t,"class","CashierVerificationChevron")},m(s,o){ne(s,t,o),r||(i=Ke(t,"click",n),r=!0)},p(s,o){e=s},d(s){s&&ee(t),r=!1,i()}}}function tr(e){let t,r,i,n,s=e[54]+"",o,l,a,u,h=e[4].length>1&&e[56]===0&&er(e);function c(...p){return e[22](e[56],...p)}return{c(){t=q("div"),r=q("div"),r.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',i=be(),n=q("p"),o=be(),h&&h.c(),l=be(),re(r,"class","IconVerification"),re(n,"class","text"),re(t,"class","CashierVerificationMessage"),ye(t,"ShowAll",e[5])},m(p,_){ne(p,t,_),ie(t,r),ie(t,i),ie(t,n),n.innerHTML=s,ie(t,o),h&&h.m(t,null),ie(t,l),a||(u=Ke(t,"click",c),a=!0)},p(p,_){e=p,_[0]&16&&s!==(s=e[54]+"")&&(n.innerHTML=s),e[4].length>1&&e[56]===0?h?h.p(e,_):(h=er(e),h.c(),h.m(t,l)):h&&(h.d(1),h=null),_[0]&32&&ye(t,"ShowAll",e[5])},d(p){p&&ee(t),h&&h.d(),a=!1,u()}}}function rr(e){let t,r,i,n,s=e[10]("verification.video.how-to")+"",o,l,a;return{c(){t=q("div"),r=q("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',i=be(),n=q("div"),o=wt(s),re(r,"class","IconVideo"),re(n,"class","CashierVerificationVideoLink"),ye(n,"CashierVerificationVideoLinkDesktop",e[6]),re(t,"class","CashierVerificationVideo")},m(u,h){ne(u,t,h),ie(t,r),ie(t,i),ie(t,n),ie(n,o),l||(a=Ke(n,"click",e[23]),l=!0)},p(u,h){h[0]&1024&&s!==(s=u[10]("verification.video.how-to")+"")&&ai(o,s),h[0]&64&&ye(n,"CashierVerificationVideoLinkDesktop",u[6])},d(u){u&&ee(t),l=!1,a()}}}function ys(e){let t;function r(s,o){if(s[9])return bs;if(s[4])return vs}let i=r(e),n=i&&i(e);return{c(){t=q("div"),n&&n.c(),re(t,"class","CashierVerifications"),ye(t,"CashierVerificationsDesktop",e[6])},m(s,o){ne(s,t,o),n&&n.m(t,null),e[24](t)},p(s,o){i===(i=r(s))&&n?n.p(s,o):(n&&n.d(1),n=i&&i(s),n&&(n.c(),n.m(t,null))),o[0]&64&&ye(t,"CashierVerificationsDesktop",s[6])},i:te,o:te,d(s){s&&ee(t),n&&n.d(),e[24](null)}}}const _s="verification_explanation_video_widgets.MP4";function xs(e,t,r){let i,n;Ct(e,hs,f=>r(10,i=f)),Ct(e,cs,f=>r(30,n=f)),Qt.extend(ps);let{endpoint:s}=t,{lang:o="en"}=t,{translationurl:l=""}=t,{clientstyling:a=""}=t,{clientstylingurl:u=""}=t,{session:h=""}=t,{customerid:c=""}=t,{ismobileview:p=""}=t,{playersession:_=""}=t,{mbsource:S=""}=t,v,B=new Set,G=new Set,R,A,X,I=!0,V=!0,Y=!1,ue="",J=!1;var M;(function(f){f.Manual="Manual",f.ShuftiPro="ShuftiPro"})(M||(M={}));var P;(function(f){f.Requested="Requested"})(P||(P={}));var k;(function(f){f.Unknown="Unknown",f.Unverified="Unverified",f.InProgress="InProgress",f.Failed="Failed",f.Verified="Verified",f.Referred="Referred",f.True="True",f.False="False",f.AwaitingForResponse="AwaitingForResponse"})(k||(k={}));var fe;(function(f){f.Unknown="Unknown",f.Documents="Documents",f.Age="Age",f.Pep="Pep",f.Sanction="Sanction",f.Aml="Aml",f.ProofOfAddress="ProofOfAddress",f.SourceOfWealth="SourceOfWealth",f.SocialMedia="SocialMedia",f.Biometric="Biometric"})(fe||(fe={})),or(()=>()=>{});const x=[k.InProgress,k.Referred,k.AwaitingForResponse],g=()=>{let f=l;if(f)return fetch(f).then(y=>y.json()).then(y=>{Object.keys(y).forEach(H=>{Zt(H,y[H])})}).catch(y=>{console.log(y)})};Object.keys(Jt).forEach(f=>{Zt(f,Jt[f])});const d=()=>{fs(o)},b=()=>{r(20,A=w());const f=new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${o}`),y=new Headers;y.append("accept","application/json"),y.append("Content-Type","application/json"),y.append("x-sessionid",`${_}`),y.append("X-Client-Request-Timestamp",Qt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const H={method:"POST",headers:y,body:JSON.stringify({})};r(9,J=!0),fetch(f,H).then(U=>U.json()).then(U=>{const de=m(U==null?void 0:U.Verifications);R=$(de),R.VerificationStatuses.forEach(Fe=>{Fe.VerificationUrlType!=="Widget"&&B.add(Fe.Vendor)}),r(4,X=se())}).finally(()=>r(9,J=!1))},m=f=>f?f.sort((y,H)=>new Date(H.Created).getTime()-new Date(y.Created).getTime()):[],E=()=>{n&&b()},w=()=>{let f=(h||n).split(".")[1];if(f){let y=JSON.parse(atob(f));return y.cdn+"/cashier/operator-assets/"+(y==null?void 0:y.mid)}return""},$=f=>{var H;if(!f||!f.length)return{VerificationSummaryStatus:k.Unverified,VerificationStatuses:[]};const y=F(f);if(y&&y.length){const U=L(y);return{VerificationSummaryStatus:U.Status,VerificationUrl:(H=U.Flags)==null?void 0:H.DeferredUrlKey,VerificationStatuses:N(y,U.Status)}}else return{VerificationSummaryStatus:f.some(de=>de.Status===k.Failed)?k.Failed:k.Verified,VerificationStatuses:N(f,[k.Failed])}},L=f=>f.reduce((y,H)=>y?new Date(y)<new Date(H)?H:y:H,0),N=(f,y)=>f.filter(H=>y.includes(H.Status)).map(H=>{var U,de;return{Type:H.Type,Vendor:H.VendorName,VerificationDocuments:H.Documents?[...H.Documents]:[],VerificationUrlType:(U=H.FlowInfo)==null?void 0:U.Type,VerificationUrl:(de=H.FlowInfo)==null?void 0:de.Url}}),F=f=>f.filter(y=>x.includes(y.Status)?y.FlowInfo&&y.FlowInfo.Url||W(y)||ce(y):!1),W=f=>{const y=f.Documents&&f.VendorName===M.Manual,H=f.Documents&&f.Documents.some(U=>U.Status===P.Requested);return y&&H},ce=f=>f.VendorName===M.ShuftiPro&&f.Status===k.Referred,se=()=>{switch(R.VerificationSummaryStatus){case k.InProgress:const f=[];return B.forEach(y=>{f.push(ge(y))}),f;case k.Referred:return[i("verification.idenfy.referred-awaiting")];case k.Failed:return[i("verification.message.failed")]}},ge=f=>{const y=R.VerificationStatuses.filter(H=>H.Vendor===f);if(f===M.ShuftiPro)return le(y);{const H=i("verification.idenfy.link-name"),U={link:`<a href="${y[0].VerificationUrl}" target="_blank">${H}</a>`};return i("verification.idenfy.in-progress",{values:U})}},le=f=>{const y=[],H={},U=[fe.Biometric,fe.Documents,fe.ProofOfAddress];f.forEach(ve=>{U.includes(ve.Type)&&(y.push(ve.Type),H[ve.Type]=j(ve,oe(ve.Type)))});let de=y.every(ve=>G.has(ve)),Fe=`verification.shuftipro.in-progress.${y.sort().join(".")}`;return de?i("verification.shuftipro.validations-started"):i(Fe,{values:H})},j=(f,y)=>`<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`,oe=f=>i(`verification.shuftipro.link-name.${f}`),he=(f,y)=>{if(f.stopPropagation(),f.target&&(f.target.href||f.target.closest("a"))){if(f.target.closest(".verificationLink")){const H=f.target.className.split(" ")[1];G.add(H),r(4,X=se())}return}y===0&&r(5,I=!I)},xe=()=>{r(6,V=p==="false")},Gr=()=>{r(8,ue=A+"/"+o+"/"+_s);try{fetch(ue,{method:"HEAD"}).then(f=>{r(7,Y=f.ok)})}catch(f){r(7,Y=!1)}},Ot=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},jr=(f,y)=>he(y,f),zr=(f,y)=>he(y,f),Xr=()=>Ot();function Wr(f){qe[f?"unshift":"push"](()=>{v=f,r(3,v)})}return e.$$set=f=>{"endpoint"in f&&r(13,s=f.endpoint),"lang"in f&&r(14,o=f.lang),"translationurl"in f&&r(15,l=f.translationurl),"clientstyling"in f&&r(0,a=f.clientstyling),"clientstylingurl"in f&&r(1,u=f.clientstylingurl),"session"in f&&r(16,h=f.session),"customerid"in f&&r(17,c=f.customerid),"ismobileview"in f&&r(2,p=f.ismobileview),"playersession"in f&&r(18,_=f.playersession),"mbsource"in f&&r(19,S=f.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&16384&&o&&d(),e.$$.dirty[0]&335872&&s&&h&&_&&b(),e.$$.dirty[0]&335872&&s&&!h&&_&&E(),e.$$.dirty[0]&32768&&l&&g(),e.$$.dirty[0]&9&&a&&v&&Nr(),e.$$.dirty[0]&10&&u&&v&&Rr(),e.$$.dirty[0]&4&&p&&xe(),e.$$.dirty[0]&1048576&&A&&Gr(),e.$$.dirty[0]&524296&&S&&v&&kr(v,`${S}.Style`)},[a,u,p,v,X,I,V,Y,ue,J,i,he,Ot,s,o,l,h,c,_,S,A,jr,zr,Xr,Wr]}class Fr extends hr{constructor(t){super(),ar(this,t,xs,ys,Et,{endpoint:13,lang:14,translationurl:15,clientstyling:0,clientstylingurl:1,session:16,customerid:17,ismobileview:2,playersession:18,mbsource:19},gs,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),Z()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),Z()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),Z()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),Z()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),Z()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),Z()}get playersession(){return this.$$.ctx[18]}set playersession(t){this.$$set({playersession:t}),Z()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),Z()}}lr(Fr,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{},mbsource:{}},[],[],!0);const Es=Object.freeze(Object.defineProperty({__proto__:null,default:Fr},Symbol.toStringTag,{value:"Module"}));exports.CashierVerifications_ce=Es;exports.SvelteComponent=hr;exports.append=ie;exports.append_styles=sr;exports.attr=re;exports.binding_callbacks=qe;exports.create_custom_element=lr;exports.detach=ee;exports.element=q;exports.empty=si;exports.flush=Z;exports.init=ar;exports.insert=ne;exports.listen=Ke;exports.noop=te;exports.onMount=or;exports.safe_not_equal=Et;exports.setClientStyling=Nr;exports.setClientStylingURL=Rr;exports.setStreamStyling=kr;exports.space=be;exports.src_url_equal=Kr;exports.svg_element=ni;exports.toggle_class=ye;
@@ -1,16 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./CashierVerifications-CxzuhF7y.cjs");/*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var E=function(r,e){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},E(r,e)};function m(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");E(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function x(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function L(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,o=[],l;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(u){l={error:u}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(l)throw l.error}}return o}function O(r,e,t){if(arguments.length===2)for(var i=0,n=e.length,o;i<n;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return r.concat(o||e)}function b(r){return typeof r=="function"}function F(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var C=F(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
15
- `+t.map(function(i,n){return n+1+") "+i.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=t}});function P(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var g=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,n,o;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=x(l),c=u.next();!c.done;c=u.next()){var a=c.value;a.remove(this)}}catch(d){e={error:d}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this);var f=this.initialTeardown;if(b(f))try{f()}catch(d){o=d instanceof C?d.errors:[d]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var v=x(p),y=v.next();!y.done;y=v.next()){var S=y.value;try{T(S)}catch(d){o=o!=null?o:[],d instanceof C?o=O(O([],L(o)),L(d.errors)):o.push(d)}}}catch(d){i={error:d}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(i)throw i.error}}}if(o)throw new C(o)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)T(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&P(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&P(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),H=g.EMPTY;function D(r){return r instanceof g||r&&"closed"in r&&b(r.remove)&&b(r.add)&&b(r.unsubscribe)}function T(r){b(r)?r():r.unsubscribe()}var Q={Promise:void 0},X={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,O([r,e],L(t)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function N(r){X.setTimeout(function(){throw r})}function j(){}function w(r){r()}var q=function(r){m(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,D(t)&&t.add(i)):i.destination=et,i}return e.create=function(t,i,n){return new k(t,i,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(g),$=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){_(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){_(i)}else _(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){_(t)}},r}(),k=function(r){m(e,r);function e(t,i,n){var o=r.call(this)||this,l;return b(t)||!t?l={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:l=t,o.destination=new $(l),o}return e}(q);function _(r){N(r)}function tt(r){throw r}var et={closed:!0,next:j,error:tt,complete:j},rt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function it(r){return r}function nt(r){return r.length===0?it:r.length===1?r[0]:function(t){return r.reduce(function(i,n){return n(i)},t)}}var M=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var n=this,o=st(e)?e:new k(e,t,i);return w(function(){var l=n,u=l.operator,c=l.source;o.add(u?u.call(o,c):c?n._subscribe(o):n._trySubscribe(o))}),o},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=V(t),new t(function(n,o){var l=new k({next:function(u){try{e(u)}catch(c){o(c),l.unsubscribe()}},error:o,complete:n});i.subscribe(l)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[rt]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return nt(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=V(e),new e(function(i,n){var o;t.subscribe(function(l){return o=l},function(l){return n(l)},function(){return i(o)})})},r.create=function(e){return new r(e)},r}();function V(r){var e;return(e=r!=null?r:Q.Promise)!==null&&e!==void 0?e:Promise}function ot(r){return r&&b(r.next)&&b(r.error)&&b(r.complete)}function st(r){return r&&r instanceof q||ot(r)&&D(r)}var lt=F(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Y=function(r){m(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new I(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new lt},e.prototype.next=function(t){var i=this;w(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=x(i.currentObservers),u=l.next();!u.done;u=l.next()){var c=u.value;c.next(t)}}catch(a){n={error:a}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var i=this;w(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var n=i.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;w(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,n=this,o=n.hasError,l=n.isStopped,u=n.observers;return o||l?H:(this.currentObservers=null,u.push(t),new g(function(){i.currentObservers=null,P(u,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,n=i.hasError,o=i.thrownError,l=i.isStopped;n?t.error(o):l&&t.complete()},e.prototype.asObservable=function(){var t=new M;return t.source=this,t},e.create=function(t,i){return new I(t,i)},e}(M),I=function(r){m(e,r);function e(t,i){var n=r.call(this)||this;return n.destination=t,n.source=i,n}return e.prototype.next=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,t)},e.prototype.error=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&n!==void 0?n:H},e}(Y),Z={now:function(){return(Z.delegate||Date).now()},delegate:void 0},ut=function(r){m(e,r);function e(t,i,n){t===void 0&&(t=1/0),i===void 0&&(i=1/0),n===void 0&&(n=Z);var o=r.call(this)||this;return o._bufferSize=t,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,i),o}return e.prototype.next=function(t){var i=this,n=i.isStopped,o=i._buffer,l=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;n||(o.push(t),!l&&o.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),n=this,o=n._infiniteTimeWindow,l=n._buffer,u=l.slice(),c=0;c<u.length&&!t.closed;c+=o?1:2)t.next(u[c]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,n=t._timestampProvider,o=t._buffer,l=t._infiniteTimeWindow,u=(l?1:2)*i;if(i<1/0&&u<o.length&&o.splice(0,o.length-u),!l){for(var c=n.now(),a=0,f=1;f<o.length&&o[f]<=c;f+=2)a=f;a&&o.splice(0,a+1)}},e}(Y);const A=[],W={},ct=(r,e=0)=>{if(A.indexOf(r)==-1){const t=new ut(e);W[r]=t,A.push(r)}return W[r]};window.emWidgets={topic:ct};const U=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function at(r){s.append_styles(r,"svelte-1d17c9c",".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}")}function B(r){let e,t,i,n,o,l,u,c=!r[2]&&z(r),a=r[2]&&R(r);return{c(){e=s.element("div"),c&&c.c(),t=s.space(),i=s.element("div"),a&&a.c(),n=s.space(),o=s.element("video"),l=s.element("source"),s.src_url_equal(l.src,u=r[0])||s.attr(l,"src",u),o.autoplay=!0,o.controls=!0,s.attr(o,"controlslist","nodownload"),s.attr(o,"disablepictureinpicture",""),s.attr(i,"class","CashierVideo"),s.attr(e,"class","CashierVideoWrapper"),s.toggle_class(e,"CashierVideoWrapperDesktop",r[2])},m(f,p){s.insert(f,e,p),c&&c.m(e,null),s.append(e,t),s.append(e,i),a&&a.m(i,null),s.append(i,n),s.append(i,o),s.append(o,l),r[11](e)},p(f,p){f[2]?c&&(c.d(1),c=null):c?c.p(f,p):(c=z(f),c.c(),c.m(e,t)),f[2]?a?a.p(f,p):(a=R(f),a.c(),a.m(i,n)):a&&(a.d(1),a=null),p&1&&!s.src_url_equal(l.src,u=f[0])&&s.attr(l,"src",u),p&4&&s.toggle_class(e,"CashierVideoWrapperDesktop",f[2])},d(f){f&&s.detach(e),c&&c.d(),a&&a.d(),r[11](null)}}}function z(r){let e,t,i,n,o;return{c(){e=s.element("div"),t=s.svg_element("svg"),i=s.svg_element("path"),s.attr(i,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),s.attr(i,"fill","#111111"),s.attr(t,"xmlns","http://www.w3.org/2000/svg"),s.attr(t,"width","13"),s.attr(t,"height","13"),s.attr(t,"viewBox","0 0 13 13"),s.attr(t,"fill","none"),s.attr(e,"class","CashierVideoHeader")},m(l,u){s.insert(l,e,u),s.append(e,t),s.append(t,i),n||(o=s.listen(t,"click",r[9]),n=!0)},p:s.noop,d(l){l&&s.detach(e),n=!1,o()}}}function R(r){let e,t,i,n;return{c(){e=s.svg_element("svg"),t=s.svg_element("path"),s.attr(t,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),s.attr(t,"fill","#111111"),s.attr(e,"xmlns","http://www.w3.org/2000/svg"),s.attr(e,"width","13"),s.attr(e,"height","13"),s.attr(e,"viewBox","0 0 13 13"),s.attr(e,"fill","none")},m(o,l){s.insert(o,e,l),s.append(e,t),i||(n=s.listen(e,"click",r[10]),i=!0)},p:s.noop,d(o){o&&s.detach(e),i=!1,n()}}}function ft(r){let e,t=r[3]&&B(r);return{c(){t&&t.c(),e=s.empty()},m(i,n){t&&t.m(i,n),s.insert(i,e,n)},p(i,[n]){i[3]?t?t.p(i,n):(t=B(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:s.noop,o:s.noop,d(i){i&&s.detach(e),t&&t.d(i)}}}function pt(r,e,t){let{clientstyling:i=""}=e,{clientstylingurl:n=""}=e,{ismobileview:o}=e,{videosrc:l}=e,{mbsource:u=""}=e,c=window.navigator.userAgent,a=!0,f=!1,p;const v=()=>{t(3,f=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},y=h=>{h.data.type=="ShowCashierVideoModal"&&(t(3,f=!0),window.postMessage({type:"DisableScroll"},window.location.href)),h.data.type=="HideCashierVideoModal"&&v()},S=()=>{t(2,a=!U(c))};s.onMount(()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));const d=()=>v(),J=()=>v();function K(h){s.binding_callbacks[h?"unshift":"push"](()=>{p=h,t(1,p)})}return r.$$set=h=>{"clientstyling"in h&&t(5,i=h.clientstyling),"clientstylingurl"in h&&t(6,n=h.clientstylingurl),"ismobileview"in h&&t(7,o=h.ismobileview),"videosrc"in h&&t(0,l=h.videosrc),"mbsource"in h&&t(8,u=h.mbsource)},r.$$.update=()=>{r.$$.dirty&34&&i&&p&&s.setClientStyling(p,i),r.$$.dirty&66&&n&&p&&s.setClientStylingURL(p,n),r.$$.dirty&258&&u&&p&&s.setStreamStyling(p,`${u}.Style`)},U(c)&&S(),[l,p,a,f,v,i,n,o,u,d,J,K]}class G extends s.SvelteComponent{constructor(e){super(),s.init(this,e,pt,ft,s.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0,mbsource:8},at)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),s.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),s.flush()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(e){this.$$set({ismobileview:e}),s.flush()}get videosrc(){return this.$$.ctx[0]}set videosrc(e){this.$$set({videosrc:e}),s.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(e){this.$$set({mbsource:e}),s.flush()}}s.create_custom_element(G,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{},mbsource:{}},[],[],!0);exports.default=G;