UNPKG

vue-stripe-menu

Version:

Creating a navigation menu with animations like on Stripe

2 lines 55.1 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-stripe-menu"]=e(require("vue")):t["vue-stripe-menu"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(e){return c.slice()}};t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?a(t):o(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),c=n("fc6a"),a=n("a04b"),u=n("5135"),s=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=c(t),e=a(e),s)try{return f(t,e)}catch(n){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},"0b42":function(t,e,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),c=i("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)?r(e)&&(e=e[c],null===e&&(e=void 0)):e=void 0),void 0===e?Array:e}},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"159b":function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),c=n("9112");for(var a in o){var u=r[a],s=u&&u.prototype;if(s&&s.forEach!==i)try{c(s,"forEach",i)}catch(f){s.forEach=i}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=o("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),o=r("iterator"),i=!1;try{var c=0,a={next:function(){return{done:!!c++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),o=n("b622"),i=n("2d00"),c=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[],n=e.constructor={};return n[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1e53":function(t,e,n){"use strict";var r=n("8bbf"),o=Object(r["createVNode"])("div",{class:"vsm-mob__hamburger"},[Object(r["createVNode"])("div",{class:"vsm-mob-line"}),Object(r["createVNode"])("div",{class:"vsm-mob-line"}),Object(r["createVNode"])("div",{class:"vsm-mob-line"})],-1),i={class:"vsm-mob-content"},c={class:"vsm-mob-content__wrap"};function a(t,e,n,a,u,s){return Object(r["openBlock"])(),Object(r["createBlock"])("li",{class:["vsm-mob-container","vsm-mob-show",{"vsm-open":u.active}]},[Object(r["createVNode"])("div",{class:"vsm-mob",onClick:e[1]||(e[1]=function(){return s.onClickHamburger&&s.onClickHamburger.apply(s,arguments)})},[Object(r["renderSlot"])(t.$slots,"hamburger",{},(function(){return[o]}))]),Object(r["createVNode"])("div",i,[Object(r["createVNode"])(r["Transition"],{name:"vsm-mob-anim"},{default:Object(r["withCtx"])((function(){return[Object(r["withDirectives"])(Object(r["createVNode"])("div",c,[Object(r["renderSlot"])(t.$slots,"close",{},(function(){return[Object(r["createVNode"])("div",{class:"vsm-mob-close",onClick:e[2]||(e[2]=function(){return s.onClickHamburger&&s.onClickHamburger.apply(s,arguments)})})]})),Object(r["renderSlot"])(t.$slots,"default")],512),[[r["vShow"],u.active]])]})),_:3})])],2)}var u={name:"VsmMob",props:{value:{type:Boolean,default:!1}},emits:["input","update:modelValue"],data:function(){return{active:this.value}},watch:{value:function(t){this.active!==t&&(this.active=t)},active:function(t){t?this.registerEvent():this.unregisterEvent()}},mounted:function(){var t="ontouchstart"in window||navigator.maxTouchPoints;this._touchEvent=t?"touchend":"click"},beforeUnmount:function(){this.unregisterEvent()},methods:{closeDropdown:function(){this.emitValue(!1)},onClickHamburger:function(){this.emitValue(!this.active)},registerEvent:function(){document.body.addEventListener(this._touchEvent,this.eventEndHandler)},unregisterEvent:function(){document.body.removeEventListener(this._touchEvent,this.eventEndHandler)},emitValue:function(t){this.active=t,this.$emit("input",t),this.$emit("update:modelValue",t)},eventEndHandler:function(t){this.$el===t.target||this.$el.contains(t.target)||this.emitValue(!1)}}};u.render=a;e["a"]=u},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),c=n("6eeb"),a=n("ce4e"),u=n("e893"),s=n("94ca");t.exports=function(t,e){var n,f,l,d,p,v,h=t.target,m=t.global,b=t.stat;if(f=m?r:b?r[h]||a(h,{}):(r[h]||{}).prototype,f)for(l in e){if(p=e[l],t.noTargetGet?(v=o(f,l),d=v&&v.value):d=f[l],n=s(m?l:h+(b?".":"#")+l,t.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;u(p,d)}(t.sham||d&&d.sham)&&i(p,"sham",!0),c(f,l,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"2a62":function(t,e,n){var r=n("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}},"2d00":function(t,e,n){var r,o,i=n("da84"),c=n("342f"),a=i.process,u=i.Deno,s=a&&a.versions||u&&u.version,f=s&&s.v8;f?(r=f.split("."),o=r[0]<4?1:r[0]+r[1]):c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),c=i("iterator");t.exports=function(t){if(void 0!=t)return t[c]||t["@@iterator"]||o[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),c=n("df75");t.exports=r?Object.defineProperties:function(t,e){i(t);var n,r=c(e),a=r.length,u=0;while(a>u)o.f(t,n=r[u++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,o=n("577e"),i=n("69f3"),c=n("7dd0"),a="String Iterator",u=i.set,s=i.getterFor(a);c(String,"String",(function(t){u(this,{type:a,string:o(t),index:0})}),(function(){var t,e=s(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),c=r("unscopables"),a=Array.prototype;void 0==a[c]&&i.f(a,c,{configurable:!0,value:o(null)}),t.exports=function(t){a[c][t]=!0}},"485a":function(t,e,n){var r=n("861d");t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},4930:function(t,e,n){var r=n("2d00"),o=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),c=function(t){return function(e,n,c){var a,u=r(e),s=o(u.length),f=i(c,s);if(t&&n!=n){while(s>f)if(a=u[f++],a!=a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),c=i("filter");r({target:"Array",proto:!0,forced:!c},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),o=n("7b0b"),i=n("9bdd"),c=n("e95a"),a=n("50c4"),u=n("8418"),s=n("35a1");t.exports=function(t){var e,n,f,l,d,p,v=o(t),h="function"==typeof this?this:Array,m=arguments.length,b=m>1?arguments[1]:void 0,y=void 0!==b,g=s(v),w=0;if(y&&(b=r(b,m>2?arguments[2]:void 0,2)),void 0==g||h==Array&&c(g))for(e=a(v.length),n=new h(e);e>w;w++)p=y?b(v[w],w):v[w],u(n,w,p);else for(l=g.call(v),d=l.next,n=new h;!(f=d.call(l)).done;w++)p=y?i(l,b,[f.value,w],!0):f.value,u(n,w,p);return n.length=w,n}},"4fad":function(t,e,n){var r=n("23e7"),o=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e,n){var r=n("7b0b"),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56d7":function(t,e,n){"use strict";(function(t){var r=n("fb62");n.d(e,"a",(function(){return r["a"]}));var o=n("1e53");n.d(e,"b",(function(){return o["a"]}));n("8594");var i={install:function(t){i.installed||(i.installed=!0,t.component("VsmMenu",r["a"]),t.component("VsmMob",o["a"]))}},c=null;"undefined"!==typeof window?c=window.Vue:"undefined"!==typeof t&&(c=t.Vue),c&&c.use(i),e["c"]=i}).call(this,n("c8ba"))},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),i=n("7418"),c=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},"577e":function(t,e,n){var r=n("d9b5");t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),o=n("577e"),i=n("5899"),c="["+i+"]",a=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),s=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6547:function(t,e,n){var r=n("a691"),o=n("577e"),i=n("1d80"),c=function(t){return function(e,n){var c,a,u=o(i(e)),s=r(n),f=u.length;return s<0||s>=f?t?"":void 0:(c=u.charCodeAt(s),c<55296||c>56319||s+1===f||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):c:t?u.slice(s,s+2):a-56320+(c-55296<<10)+65536)}};t.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(t,e,n){var r=n("0b42");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},"69f3":function(t,e,n){var r,o,i,c=n("7f9a"),a=n("da84"),u=n("861d"),s=n("9112"),f=n("5135"),l=n("c6cd"),d=n("f772"),p=n("d012"),v="Object already initialized",h=a.WeakMap,m=function(t){return i(t)?o(t):r(t,{})},b=function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(c||l.state){var y=l.state||(l.state=new h),g=y.get,w=y.has,x=y.set;r=function(t,e){if(w.call(y,t))throw new TypeError(v);return e.facade=t,x.call(y,t,e),e},o=function(t){return g.call(y,t)||{}},i=function(t){return w.call(y,t)}}else{var O=d("state");p[O]=!0,r=function(t,e){if(f(t,O))throw new TypeError(v);return e.facade=t,s(t,O,e),e},o=function(t){return f(t,O)?t[O]:{}},i=function(t){return f(t,O)}}t.exports={set:r,get:o,has:i,enforce:m,getterFor:b}},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),i=n("5135"),c=n("ce4e"),a=n("8925"),u=n("69f3"),s=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,n,a){var u,s=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),u=f(n),u.source||(u.source=l.join("string"==typeof e?e:""))),t!==r?(s?!p&&t[e]&&(d=!0):delete t[e],d?t[e]=n:o(t,e,n)):d?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||a(this)}))},"6f53":function(t,e,n){var r=n("83ab"),o=n("df75"),i=n("fc6a"),c=n("d1e7").f,a=function(t){return function(e){var n,a=i(e),u=o(a),s=u.length,f=0,l=[];while(s>f)n=u[f++],r&&!c.call(a,n)||l.push(t?[n,a[n]]:a[n]);return l}};t.exports={entries:a(!0),values:a(!1)}},7156:function(t,e,n){var r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var i,c;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(c=i.prototype)&&c!==n.prototype&&o(t,c),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),o=n("5135"),i=n("e538"),c=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||c(e,t,{value:i.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,o=n("825a"),i=n("37e8"),c=n("7839"),a=n("d012"),u=n("1be4"),s=n("cc12"),f=n("f772"),l=">",d="<",p="prototype",v="script",h=f("IE_PROTO"),m=function(){},b=function(t){return d+v+l+t+d+"/"+v+l},y=function(t){t.write(b("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){var t,e=s("iframe"),n="java"+v+":";if(e.style)return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(b("document.F=Object")),t.close(),t.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}w=document.domain&&r?y(r):g()||y(r);var t=c.length;while(t--)delete w[p][c[t]];return w()};a[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[p]=o(t),n=new m,m[p]=null,n[h]=t):n=w(),void 0===e?n:i(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),c=n("d2bb"),a=n("d44e"),u=n("9112"),s=n("6eeb"),f=n("b622"),l=n("c430"),d=n("3f8c"),p=n("ae93"),v=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,m=f("iterator"),b="keys",y="values",g="entries",w=function(){return this};t.exports=function(t,e,n,f,p,x,O){o(n,e,f);var E,S,j,T=function(t){if(t===p&&k)return k;if(!h&&t in A)return A[t];switch(t){case b:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",L=!1,A=t.prototype,D=A[m]||A["@@iterator"]||p&&A[p],k=!h&&D||T(p),C="Array"==e&&A.entries||D;if(C&&(E=i(C.call(new t)),v!==Object.prototype&&E.next&&(l||i(E)===v||(c?c(E,v):"function"!=typeof E[m]&&u(E,m,w)),a(E,_,!0,!0),l&&(d[_]=w))),p==y&&D&&D.name!==y&&(L=!0,k=function(){return D.call(this)}),l&&!O||A[m]===k||u(A,m,k),d[e]=k,p)if(S={values:T(y),keys:x?k:T(b),entries:T(g)},O)for(j in S)(h||L||!(j in A))&&s(A,j,S[j]);else r({target:e,proto:!0,forced:h||L},S);return S}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("a04b"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){var c=r(e);c in t?o.f(t,c,i(0,n)):t[c]=n}},8594:function(t,e,n){},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,o,i;(function(n,c){o=[],r=c,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(p.stack)||c.exec(p.stack),u=a&&a[1]||!1,s=a&&a[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<l.length;d++){if("interactive"===l[d].readyState)return l[d];if(l[d].src===u)return l[d];if(u===f&&l[d].innerHTML&&l[d].innerHTML.trim()===o)return l[d]}return null}}return t}))},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"8bbf":function(e,n){e.exports=t},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,i=function(t,e){var n=a[c(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(C){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),c=new A(r||[]);return i._invoke=j(t,n,c),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(C){return{type:"throw",arg:C}}}t.wrap=s;var l="suspendedStart",d="suspendedYield",p="executing",v="completed",h={};function m(){}function b(){}function y(){}var g={};u(g,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(D([])));x&&x!==n&&r.call(x,i)&&(g=x);var O=y.prototype=m.prototype=Object.create(g);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,c,a){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"===typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,c,a)}),(function(t){n("throw",t,c,a)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,a)}))}a(u.arg)}var o;function i(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function j(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return k()}n.method=o,n.arg=i;while(1){var c=n.delegate;if(c){var a=T(c,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=f(t,e,n);if("normal"===u.type){if(r=n.done?v:d,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=v,n.method="throw",n.arg=u.arg)}}}function T(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function D(t){if(t){var n=t[i];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){while(++o<t.length)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return c.next=c}}return{next:k}}function k(){return{value:e,done:!0}}return b.prototype=y,u(O,"constructor",y),u(y,"constructor",b),b.displayName=u(y,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,a,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},E(S.prototype),u(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var c=new S(s(e,n,r,o),i);return t.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},E(O),u(O,a,"Generator"),u(O,i,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=D,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"99af":function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("e8b5"),c=n("861d"),a=n("7b0b"),u=n("50c4"),s=n("8418"),f=n("65f0"),l=n("1dde"),d=n("b622"),p=n("2d00"),v=d("isConcatSpreadable"),h=9007199254740991,m="Maximum allowed index exceeded",b=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=l("concat"),g=function(t){if(!c(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)},w=!b||!y;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,o,i,c=a(this),l=f(c,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?c:arguments[e],g(i)){if(o=u(i.length),d+o>h)throw TypeError(m);for(n=0;n<o;n++,d++)n in i&&s(l,d,i[n])}else{if(d>=h)throw TypeError(m);s(l,d++,i)}return l.length=d,l}})},"9bdd":function(t,e,n){var r=n("825a"),o=n("2a62");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(c){throw o(t),c}}},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),c=n("a04b"),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(i(t),e=c(e),i(n),o)try{return a(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),c=n("d44e"),a=n("3f8c"),u=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),c(t,s,!1,!0),a[s]=u,t}},a04b:function(t,e,n){var r=n("c04e"),o=n("d9b5");t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},a4d3:function(t,e,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("d066"),c=n("c430"),a=n("83ab"),u=n("4930"),s=n("d039"),f=n("5135"),l=n("e8b5"),d=n("861d"),p=n("d9b5"),v=n("825a"),h=n("7b0b"),m=n("fc6a"),b=n("a04b"),y=n("577e"),g=n("5c6c"),w=n("7c73"),x=n("df75"),O=n("241c"),E=n("057f"),S=n("7418"),j=n("06cf"),T=n("9bf2"),_=n("d1e7"),L=n("9112"),A=n("6eeb"),D=n("5692"),k=n("f772"),C=n("d012"),N=n("90e3"),P=n("b622"),M=n("e538"),I=n("746f"),V=n("d44e"),$=n("69f3"),H=n("b727").forEach,F=k("hidden"),R="Symbol",G="prototype",B=P("toPrimitive"),W=$.set,z=$.getterFor(R),Y=Object[G],U=o.Symbol,q=i("JSON","stringify"),X=j.f,J=T.f,K=E.f,Q=_.f,Z=D("symbols"),tt=D("op-symbols"),et=D("string-to-symbol-registry"),nt=D("symbol-to-string-registry"),rt=D("wks"),ot=o.QObject,it=!ot||!ot[G]||!ot[G].findChild,ct=a&&s((function(){return 7!=w(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(Y,e);r&&delete Y[e],J(t,e,n),r&&t!==Y&&J(Y,e,r)}:J,at=function(t,e){var n=Z[t]=w(U[G]);return W(n,{type:R,tag:t,description:e}),a||(n.description=e),n},ut=function(t,e,n){t===Y&&ut(tt,e,n),v(t);var r=b(e);return v(n),f(Z,r)?(n.enumerable?(f(t,F)&&t[F][r]&&(t[F][r]=!1),n=w(n,{enumerable:g(0,!1)})):(f(t,F)||J(t,F,g(1,{})),t[F][r]=!0),ct(t,r,n)):J(t,r,n)},st=function(t,e){v(t);var n=m(e),r=x(n).concat(vt(n));return H(r,(function(e){a&&!lt.call(n,e)||ut(t,e,n[e])})),t},ft=function(t,e){return void 0===e?w(t):st(w(t),e)},lt=function(t){var e=b(t),n=Q.call(this,e);return!(this===Y&&f(Z,e)&&!f(tt,e))&&(!(n||!f(this,e)||!f(Z,e)||f(this,F)&&this[F][e])||n)},dt=function(t,e){var n=m(t),r=b(e);if(n!==Y||!f(Z,r)||f(tt,r)){var o=X(n,r);return!o||!f(Z,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},pt=function(t){var e=K(m(t)),n=[];return H(e,(function(t){f(Z,t)||f(C,t)||n.push(t)})),n},vt=function(t){var e=t===Y,n=K(e?tt:m(t)),r=[];return H(n,(function(t){!f(Z,t)||e&&!f(Y,t)||r.push(Z[t])})),r};if(u||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=N(t),n=function(t){this===Y&&n.call(tt,t),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),ct(this,e,g(1,t))};return a&&it&&ct(Y,e,{configurable:!0,set:n}),at(e,t)},A(U[G],"toString",(function(){return z(this).tag})),A(U,"withoutSetter",(function(t){return at(N(t),t)})),_.f=lt,T.f=ut,j.f=dt,O.f=E.f=pt,S.f=vt,M.f=function(t){return at(P(t),t)},a&&(J(U[G],"description",{configurable:!0,get:function(){return z(this).description}}),c||A(Y,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),H(x(rt),(function(t){I(t)})),r({target:R,stat:!0,forced:!u},{for:function(t){var e=y(t);if(f(et,e))return et[e];var n=U(e);return et[e]=n,nt[n]=e,n},keyFor:function(t){if(!p(t))throw TypeError(t+" is not a symbol");if(f(nt,t))return nt[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!a},{create:ft,defineProperty:ut,defineProperties:st,getOwnPropertyDescriptor:dt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:vt}),r({target:"Object",stat:!0,forced:s((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(h(t))}}),q){var ht=!u||s((function(){var t=U();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}));r({target:"JSON",stat:!0,forced:ht},{stringify:function(t,e,n){var r,o=[t],i=1;while(arguments.length>i)o.push(arguments[i++]);if(r=e,(d(e)||void 0!==t)&&!p(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!p(e))return e}),o[1]=e,q.apply(null,o)}})}U[G][B]||L(U[G],B,U[G].valueOf),V(U,R),C[F]=!0},a630:function(t,e,n){var r=n("23e7"),o=n("4df4"),i=n("1c7e"),c=!i((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:c},{from:o})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),o=n("da84"),i=n("94ca"),c=n("6eeb"),a=n("5135"),u=n("c6b6"),s=n("7156"),f=n("d9b5"),l=n("c04e"),d=n("d039"),p=n("7c73"),v=n("241c").f,h=n("06cf").f,m=n("9bf2").f,b=n("58a8").trim,y="Number",g=o[y],w=g.prototype,x=u(p(w))==y,O=function(t){if(f(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,o,i,c,a,u,s=l(t,"number");if("string"==typeof s&&s.length>2)if(s=b(s),e=s.charCodeAt(0),43===e||45===e){if(n=s.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(i=s.slice(2),c=i.length,a=0;a<c;a++)if(u=i.charCodeAt(a),u<48||u>o)return NaN;return parseInt(i,r)}return+s};if(i(y,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var E,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(x?d((function(){w.valueOf.call(n)})):u(n)!=y)?s(new g(O(e)),n,S):O(e)},j=r?v(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),T=0;j.length>T;T++)a(g,E=j[T])&&!a(S,E)&&m(S,E,h(g,E));S.prototype=w,w.constructor=S,c(o,y,S)}},ae93:function(t,e,n){"use strict";var r,o,i,c=n("d039"),a=n("e163"),u=n("9112"),s=n("5135"),f=n("b622"),l=n("c430"),d=f("iterator"),p=!1,v=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=a(a(i)),o!==Object.prototype&&(r=o)):p=!0);var h=void 0==r||c((function(){var t={};return r[d].call(t)!==t}));h&&(r={}),l&&!h||s(r,d)||u(r,d,v),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},b041:function(t,e,n){"use strict";var r=n("00ee"),o=n("f5df");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),o=n("9bf2").f,i=Function.prototype,c=i.toString,a=/^\s*function ([^ (]*)/,u="name";r&&!(u in i)&&o(i,u,{configurable:!0,get:function(){try{return c.call(this).match(a)[1]}catch(t){return""}}})},b622:function(t,e,n){var r=n("da84"),o=n("5692"),i=n("5135"),c=n("90e3"),a=n("4930"),u=n("fdbf"),s=o("wks"),f=r.Symbol,l=u?f:f&&f.withoutSetter||c;t.exports=function(t){return i(s,t)&&(a||"string"==typeof s[t])||(a&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},b727:function(t,e,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),c=n("50c4"),a=n("65f0"),u=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,f=4==t,l=6==t,d=7==t,p=5==t||l;return function(v,h,m,b){for(var y,g,w=i(v),x=o(w),O=r(h,m,3),E=c(x.length),S=0,j=b||a,T=e?j(v,E):n||d?j(v,0):void 0;E>S;S++)if((p||S in x)&&(y=x[S],g=O(y,S,w),t))if(e)T[S]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:u.call(T,y)}else switch(t){case 4:return!1;case 7:u.call(T,y)}return l?-1:s||f?f:T}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},c04e:function(t,e,n){var r=n("861d"),o=n("d9b5"),i=n("485a"),c=n("b622"),a=c("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=t[a];if(void 0!==c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",c=r[i]||o(i,{});t.exports=c},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,c=n("d012");t.exports=function(t,e){var n,a=o(t),u=0,s=[];for(n in a)!r(c,n)&&r(a,n)&&s.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},caad:function(t,e,n){"use strict";var r=n("23e7"),o=n("4d64").includes,i=n("44d2");r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},ce4e:function(t,e,n){var r=n("da84");t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,o=n("5135"),i=n("b622"),c=i("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,c)&&r(t,c,{configurable:!0,value:e})}},d81d:function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").map,i=n("1dde"),c=i("map");r({target:"Array",proto:!0,forced:!c},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},d9b5:function(t,e,n){var r=n("d066"),o=n("fdbf");t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},ddb0:function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),c=n("9112"),a=n("b622"),u=a("iterator"),s=a("toStringTag"),f=i.values;for(var l in o){var d=r[l],p=d&&d.prototype;if(p){if(p[u]!==f)try{c(p,u,f)}catch(h){p[u]=f}if(p[s]||c(p,s,l),o[l])for(var v in i)if(p[v]!==i[v])try{c(p,v,i[v])}catch(h){p[v]=i[v]}}}},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},e01a:function(t,e,n){"use strict";var r=n("23e7"),o=n("83ab"),i=n("da84"),c=n("5135"),a=n("861d"),u=n("9bf2").f,s=n("e893"),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(d,f);var p=d.prototype=f.prototype;p.constructor=d;var v=p.toString,h="Symbol(test)"==String(f("test")),m=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=v.call(t);if(c(l,t))return"";var n=h?e.slice(7,-1):e.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e163:function(t,e,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),c=n("e177"),a=i("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),c=n("69f3"),a=n("7dd0"),u="Array Iterator",s=c.set,f=c.getterFor(u);t.exports=a(Array,"Array",(function(t,e){s(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e538:function(t,e,n){var r=n("b622");e.f=r},e893:function(t,e,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),c=n("9bf2");t.exports=function(t,e){for(var n=o(e),a=c.f,u=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||a(t,f,u(e,f))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},f5df:function(t,e,n){var r=n("00ee"),o=n("c6b6"),i=n("b622"),c=i("toStringTag"),a="Arguments"==o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),c))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"VsmMenu",(function(){return c["a"]})),n.d(e,"VsmMob",(function(){return c["b"]})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var c=n("56d7");e["default"]=c["c"]},fb62:function(t,e,n){"use strict";var r=n("8bbf"),o={class:"vsm-nav"},i={ref:"root",class:"vsm-root"},c={ref:"linkContainer",class:"vsm-link-container vsm-mob-hide"},a={class:"vsm-dropdown vsm-mob-hide"},u={ref:"background",class:"vsm-background"},s={ref:"backgroundAlt",class:"vsm-background-alt"},f={ref:"arrow",class:"vsm-arrow"},l={ref:"dropdownContainer",class:"vsm-dropdown-container"},d={class:"vsm-dropdown-content"};function p(t,e,n,p,v,h){return Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(n.element),{class:"vsm-menu vsm-no-transition"},{default:Object(r["withCtx"])((function(){return[Object(r["createVNode"])("nav",o,[Object(r["createVNode"])("ul",i,[Object(r["renderSlot"])(t.$slots,"before-nav"),Object(r["createVNode"])("li",c,[(Object(r["openBlock"])(!0),Object(r["createBlock"])(r["Fragment"],null,Object(r["renderList"])(n.menu,(function(e,n){return Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.element||(e.dropdown?"button":"a")),Object(r["mergeProps"])({key:n,class:["vsm-link",e.attributes?e.attributes.class:null,{"vsm-has-dropdown":e.dropdown}],"data-dropdown":e.dropdown,"data-align":e.align,"aria-haspopup":e.dropdown&&"true","aria-expanded":e.dropdown&&"false",tabindex:"0"},e.attributes,Object(r["toHandlers"])(e.listeners||{})),{default:Object(r["withCtx"])((function(){return[Object(r["renderSlot"])(t.$slots,"title",{item:e,index:n},(function(){return[Object(r["createVNode"])("span",null,Object(r["toDisplayString"])(e.title),1)]}))]})),_:2},1040,["class","data-dropdown","data-align","aria-haspopup","aria-expanded"])})),128))],512),Object(r["renderSlot"])(t.$slots,"after-nav")],512)]),Object(r["createVNode"])("div",a,[Object(r["createVNode"])("div",u,[Object(r["createVNode"])("div",s,null,512)],512),Object(r["createVNode"])("div",f,null,512),Object(r["createVNode"])("div",l,[(Object(r["openBlock"])(!0),Object(r["createBlock"])(r["Fragment"],null,Object(r["renderList"])(h.itemsWithDropdown,(function(e,n){return Object(r["openBlock"])(),Object(r["createBlock"])("div",{key:n,class:"vsm-dropdown-section","data-dropdown":e.dropdown,"data-align":e.align,"aria-hidden":"false"},[Object(r["createVNode"])("div",d,[Object(r["renderSlot"])(t.$slots,"default",{item:e,index:n})])],8,["data-dropdown","data-align"])})),128))],512)])]})),_:3})}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){if(Array.isArray(t))return t}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function m(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done);c=!0)if(i.push(r.value),e&&i.length===e)break}catch(u){a=!0,o=u}finally{try{c||null==n["return"]||n["return"]()}finally{if(a)throw o}}return i}}n("fb6a"),n("b0c0"),n("a630");function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){if(t){if("string"===typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(t,e){return h(t)||m(t,e)||y(t,e)||g()}function x(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void n(s)}a.done?e(u):Promise.resolve(u).then(r,o)}function O(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){x(i,r,o,c,a,"next",t)}function a(t){x(i,r,o,c,a,"throw",t)}c(void 0)}))}}n("96cf"),n("a9e3"),n("caad"),n("4de4"),n("159b"),n("99af"),n("4fad"),n("d81d");var E=380,S=400,j={name:"VsmMenu",props:{menu:{type:Array,required:!0},element:{type:String,default:"header",validator:function(t){return!!t}},screenOffset:{type:[Number,String],default:10,validator:function(t){return+t>=0}},dropdownOffset:{type:[Number,String],default:0,validator:function(t){return+t>=0}},handler:{type:String,default:"hover",validator:function(t){return["hover","click"].includes(t)}},transitionTimeout:{type:[Number,String],default:250},align:{type:String,default:"center",validator:function(t){return["left","center","right"].includes(t)}}},emits:["open-dropdown","close-dropdown"],data:function(){return{elementsWithDropdown:[],dropdownContainerItems:[]}},computed:{itemsWithDropdown:function(){return this.menu.filter((function(t){return t.dropdown}))}},watch:{element:function(){var t=this;return O(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$nextTick();case 2:t.updateDataElements(),t.registerDropdownElementsEvents();case 4:case"end":return e.stop()}}),e)})))()},handler:function(){this.registerDropdownElementsEvents(!0),this.registerDropdownContainerEvents(!0)},menu:{handler:function(){var t=this;return O(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$nextTick();case 2:t.updateDataElements(),t.registerDropdownElementsEvents();case 4:case"end":return e.stop()}}),e)})))()},deep:!0}},mounted:function(){this.identifyPointerEvents(),this.registerGlobalListeners(),this.updateDataElements(),this.registerDropdownElementsEvents(),this.registerDropdownContainerEvents()},beforeUnmount:function(){this.removeGlobalListeners()},methods:{toggleDropdown:function(t){this._activeDropdown===t?this.closeDropdown():this.openDropdown(t)},openDropdown:function(t){var e=this;if(this._activeDropdown!==t){this.$emit("open-dropdown",t),this.$el.classList.add("vsm-overlay-active","vsm-dropdown-active"),this._activeDropdown=t,this._activeDropdown.setAttribute("aria-expanded","true"),this.elementsWithDropdown.forEach((function(t){return t.classList.remove("vsm-active")})),t.classList.add("vsm-active");var n=t.getAttribute("data-dropdown"),r="vsm-left";this.dropdownContainerItems.forEach((function(t){t.el.classList.remove("vsm-active","vsm-left","vsm-right"),t.name===n?(t.el.setAttribute("aria-hidden","false"),t.el.classList.add("vsm-active"),r="vsm-right",e._activeContainerItem=t):(t.el.setAttribute("aria-hidden","true"),t.el.classList.add(r))})),this.resizeDropdown()}},closeDropdown:function(){this._activeDropdown&&(this.$emit("close-dropdown",this._activeDropdown),this.elementsWithDropdown.forEach((function(t){return t.classList.remove("vsm-active")})),this._activeContainerItem.el.setAttribute("aria-hidden","true"),this.clearEnableTransitionTimeout(),this.startDisableTransitionTimeout(),this.$el.classList.remove("vsm-overlay-active","vsm-dropdown-active"),this._activeDropdown.setAttribute("aria-expanded","false"),this._activeContainerItem=void 0,this._activeDropdown=void 0)},resizeDropdown:function(){if(this._activeContainerItem){var t=document.documentElement.offsetWidth,e=this.$el.getBoundingClientRect(),n=this._activeDropdown.getBoundingClientRect(),r=this._activeContainerItem.content,o=r.offsetHeight,i=r.offsetWidth,c=n.left-e.left,a=null;switch(this._activeContainerItem.align||this.align){case"left":a=c;break;case"right":a=c-i+n.width;break;default:a=c-i/2+n.width/2}a+e.left<+this.screenOffset&&(a=+this.screenOffset-e.left);var u=a+e.left+i;u>t-+this.screenOffset&&(a-=u-t+ +this.screenOffset,a<+this.screenOffset-e.left&&(a=+this.screenOffset-e.left,i=t-2*+this.screenOffset)),a=Math.round(a);var s=+this.dropdownOffset+this._activeDropdown.offsetTop,f=i/E,l=o/S;this.clearDisableTransitionTimeout(),this.startEnableTransitionTimeout(),this.$refs.dropdownContainer.style.transform="translate(".concat(a,"px, ").concat(s,"px)"),this.$refs.dropdownContainer.style.width="".concat(i,"px"),this.$refs.dropdownContainer.style.height="".concat(o,"px"),this.$refs.arrow.style.transform="translate(".concat(c+n.width/2,"px, ").concat(s,"px) rotate(45deg)"),this.$refs.background.style.transform="translate(".concat(a,"px, ").concat(s,"px) scaleX(").concat(f,") scaleY(").concat(l,")"),this.$refs.backgroundAlt.style.transform="translateY(".concat(this._activeContainerItem.content.firstElementChild.offsetHeight/l,"px)")}},startCloseDropdownTimeout:function(){var t=this;this._closeDropdownTimeout=setTimeout((function(){return t.closeDropdown()}),50)},clearCloseDropdownTimeout:function(){clearTimeout(this._closeDropdownTimeout)},startEnableTransitionTimeout:function(){var t=this;this._enableTransitionTimeout=setTimeout((function(){return t.$el.classList.remove("vsm-no-transition")}),50)},clearEnableTransitionTimeout:function(){clearTimeout(this._enableTransitionTimeout)},startDisableTransitionTimeout:function(){var t=this;this._disableTransitionTimeout=setTimeout((function(){return t.$el.classList.add("vsm-no-transition")}),+this.transitionTimeout)},clearDisableTransitionTimeout:function(){clearTimeout(this._disableTransitionTimeout)},registerDropdownElementsEvents:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.elementsWithDropdown.forEach((function(n){if(!n._vsmMenu||e){var r;if(n._vsmMenuHandlers&&Object.entries(n._vsmMenuHandlers).forEach((function(t){var e=w(t,2),r=e[0],o=e[1];n.removeEventListener(r,o)})),"hover"===t.handler)n._vsmMenuHandlers=(r={focusin:function(){t.clearCloseDropdownTimeout(),t.openDropdown(n)}},v(r,t._pointerEvent.enter,(function(e){"touch"!==e.pointerType&&(t.clearCloseDropdownTimeout(),t.openDropdown(n))})),v(r,t._pointerEvent.leave,(function(e){"touch"!==e.pointerType&&t.startCloseDropdownTimeout()})),r);else n._vsmMenuHandlers={};n._vsmMenuHandlers[t._pointerEvent.end]=function(e){e.preventDefault(),e.stopPropagation(),t.toggleDropdown(n)},Object.entries(n._vsmMenuHandlers).forEach((function(t){var e=w(t,2),r=e[0],o=e[1];n.addEventListener(r,o)})),n._vsmMenu=!0}}))},registerDropdownContainerEvents:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.$refs.dropdownContainer;if(!n._vsmMenu||e){var r;if(n._vsmMenuHandlers&&Object.entries(n._vsmMenuHandlers).forEach((function(t){var e=w(t,2),r=e[0],o=e[1];n.removeEventListener(r,o)})),"hover"===this.handler)n._vsmMenuHandlers=(r={},v(r,this._pointerEvent.enter,(function(e){"touch"!==e.pointerType&&t.clearCloseDropdownTimeout()})),v(r,this._pointerEvent.leave,(function(e){"touch"!==e.pointerType&&t.startCloseDropdownTimeout()})),r);else n._vsmMenuHandlers={};n._vsmMenuHandlers[this._pointerEvent.end]=function(t){t.stopPropagation()},Object.entries(n._vsmMenuHandlers).forEach((function(t){var e=w(t,2),r=e[0],o=e[1];n.addEventListener(r,o)})),n._vsmMenu=!0}},registerGlobalListeners:function(){window.addEventListener("resize",this.windowResizeHandler),document.addEventListener("touchmove",this.documentTouchMoveHandler),document.addEventListener("touchstart",this.documentTouchStartHandler),document.body.addEventListener(this._pointerEvent.end,this.documentEventEndHandler)},removeGlobalListeners:function(){window.removeEventListener("resize",this.windowResizeHandler),document.removeEventListener("touchmove",this.documentTouchMoveHandler),document.removeEventListener("touchstart",this.documentTouchStartHandler),document.body.removeEventListener(this._pointerEvent.end,this.documentEventEndHandler)},windowResizeHandler:function(){var t=this;if(this._lastWindowWidth!==window.innerWidth){if(this._lastWindowWidth=window.innerWidth,this._activeDropdown)return this.$el.classList.add("vsm-no-transition"),void this.resizeDropdown();this.$refs.background.getAttribute("style")&&(this.$el.classList.add("vsm-no-transition","vsm-no-transition_dropdown"),setTimeout((function(){return t.$el.classList.remove("vsm-no-transition_dropdown")})),this.closeDropdown(),this.clearAllStyles())}},documentTouchMoveHandler:function(){this._isDragging=!0},documentTouchStartHandler:function(){this._isDragging=!1},documentEventEndHandler:function(){this._isDragging||this.closeDropdown()},identifyPointerEvents:function(){this._pointerEvent=window.PointerEvent?{end:"pointerup",enter:"pointerenter",leave:"pointerleave"}:{end:"touchend",enter:"mouseenter",leave:"mouseleave"}},updateDataElements:function(){this.elementsWithDropdown=Array.from(this.$refs.linkContainer.children).filter((function(t){return t.classList.contains("vsm-has-dropdown")})),this.dropdownContainerItems=Array.from(this.$refs.dropdownContainer.children).map((function(t){return{el:t,name:t.getAttribute("data-dropdown"),align:t.getAttribute("data-align"),content:t.firstElementChild}}))},clearAllStyles:function(){this.$refs.dropdownContainer.removeAttribute("style"),this.$refs.arrow.removeAttribute("style"),this.$refs.background.removeAttribute("style"),this.$refs.backgroundAlt.removeAttribute("style")}}};j.render=p;e["a"]=j},fb6a:function(t,e,n){"use strict";var r=n("23e7"),o=n("861d"),i=n("e8b5"),c=n("23cb"),a=n("50c4"),u=n("fc6a"),s=n("8418"),f=n("b622"),l=n("1dde"),d=l("slice"),p=f("species"),v=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,r,f,l=u(this),d=a(l.length),m=c(t,d),b=c(void 0===e?d:e,d);if(i(l)&&(n=l.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?o(n)&&(n=n[p],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return v.call(l,m,b);for(r=new(void 0===n?Array:n)(h(b-m,0)),f=0;m<b;m++,f++)m in l&&s(r,f,l[m]);return r.length=f,r}})},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
//# sourceMappingURL=vue-stripe-menu.umd.min.js.map