UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

15 lines (14 loc) 47 kB
import{g as gt}from"../sdk.js";function mt(it,ut){for(var r=0;r<ut.length;r++){const l=ut[r];if(typeof l!="string"&&!Array.isArray(l)){for(const t in l)if(t!=="default"&&!(t in it)){const e=Object.getOwnPropertyDescriptor(l,t);e&&Object.defineProperty(it,t,e.get?e:{enumerable:!0,get:()=>l[t]})}}}return Object.freeze(Object.defineProperty(it,Symbol.toStringTag,{value:"Module"}))}var dt={exports:{}};(function(it,ut){(function(r,l){it.exports=l()})(window,function(){return function(r){var l={};function t(e){if(l[e])return l[e].exports;var i=l[e]={i:e,l:!1,exports:{}};return r[e].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=r,t.c=l,t.d=function(e,i,a){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:a})},t.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i||4&i&&typeof e=="object"&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&i&&typeof e!="string")for(var u in e)t.d(a,u,(function(s){return e[s]}).bind(null,u));return a},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="/dist/",t(t.s=57)}([function(r,l,t){var e=t(2),i=t(11),a=t(4),u=t(13),s=t(22),f=function(h,v,b){var d,O,P,j,C=h&f.F,L=h&f.G,F=h&f.S,G=h&f.P,H=h&f.B,T=L?e:F?e[v]||(e[v]={}):(e[v]||{}).prototype,B=L?i:i[v]||(i[v]={}),I=B.prototype||(B.prototype={});for(d in L&&(b=v),b)P=((O=!C&&T&&T[d]!==void 0)?T:b)[d],j=H&&O?s(P,e):G&&typeof P=="function"?s(Function.call,P):P,T&&u(T,d,P,h&f.U),B[d]!=P&&a(B,d,j),G&&I[d]!=P&&(I[d]=P)};e.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,r.exports=f},function(r,l,t){var e=t(17)("wks"),i=t(14),a=t(2).Symbol,u=typeof a=="function";(r.exports=function(s){return e[s]||(e[s]=u&&a[s]||(u?a:i)("Symbol."+s))}).store=e},function(r,l){var t=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=t)},function(r,l){r.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},function(r,l,t){var e=t(5),i=t(16);r.exports=t(6)?function(a,u,s){return e.f(a,u,i(1,s))}:function(a,u,s){return a[u]=s,a}},function(r,l,t){var e=t(12),i=t(35),a=t(21),u=Object.defineProperty;l.f=t(6)?Object.defineProperty:function(s,f,h){if(e(s),f=a(f,!0),e(h),i)try{return u(s,f,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported!");return"value"in h&&(s[f]=h.value),s}},function(r,l,t){r.exports=!t(7)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(r,l){r.exports=function(t){try{return!!t()}catch{return!0}}},function(r,l){var t={}.hasOwnProperty;r.exports=function(e,i){return t.call(e,i)}},function(r,l,t){var e=t(39),i=t(24);r.exports=function(a){return e(i(a))}},function(r,l,t){var e=t(0);e(e.S+e.F*!t(6),"Object",{defineProperty:t(5).f})},function(r,l){var t=r.exports={version:"2.6.9"};typeof __e=="number"&&(__e=t)},function(r,l,t){var e=t(3);r.exports=function(i){if(!e(i))throw TypeError(i+" is not an object!");return i}},function(r,l,t){var e=t(2),i=t(4),a=t(8),u=t(14)("src"),s=t(59),f=(""+s).split("toString");t(11).inspectSource=function(h){return s.call(h)},(r.exports=function(h,v,b,d){var O=typeof b=="function";O&&(a(b,"name")||i(b,"name",v)),h[v]!==b&&(O&&(a(b,u)||i(b,u,h[v]?""+h[v]:f.join(String(v)))),h===e?h[v]=b:d?h[v]?h[v]=b:i(h,v,b):(delete h[v],i(h,v,b)))})(Function.prototype,"toString",function(){return typeof this=="function"&&this[u]||s.call(this)})},function(r,l){var t=0,e=Math.random();r.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++t+e).toString(36))}},function(r,l,t){var e=t(45),i=t(28);r.exports=Object.keys||function(a){return e(a,i)}},function(r,l){r.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(r,l,t){var e=t(11),i=t(2),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(r.exports=function(u,s){return a[u]||(a[u]=s!==void 0?s:{})})("versions",[]).push({version:e.version,mode:t(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(r,l){r.exports=!1},function(r,l,t){var e=t(24);r.exports=function(i){return Object(e(i))}},function(r,l,t){var e=t(2),i=t(8),a=t(6),u=t(0),s=t(13),f=t(62).KEY,h=t(7),v=t(17),b=t(26),d=t(14),O=t(1),P=t(43),j=t(44),C=t(63),L=t(42),F=t(12),G=t(3),H=t(19),T=t(9),B=t(21),I=t(16),W=t(30),X=t(67),R=t(49),D=t(47),V=t(5),$=t(15),U=R.f,Y=V.f,Z=X.f,M=e.Symbol,tt=e.JSON,Q=tt&&tt.stringify,z=O("_hidden"),nt=O("toPrimitive"),ct={}.propertyIsEnumerable,y=v("symbol-registry"),c=v("symbols"),g=v("op-symbols"),o=Object.prototype,n=typeof M=="function"&&!!D.f,p=e.QObject,w=!p||!p.prototype||!p.prototype.findChild,x=a&&h(function(){return W(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a!=7})?function(m,S,N){var A=U(o,S);A&&delete o[S],Y(m,S,N),A&&m!==o&&Y(o,S,A)}:Y,k=function(m){var S=c[m]=W(M.prototype);return S._k=m,S},E=n&&typeof M.iterator=="symbol"?function(m){return typeof m=="symbol"}:function(m){return m instanceof M},_=function(m,S,N){return m===o&&_(g,S,N),F(m),S=B(S,!0),F(N),i(c,S)?(N.enumerable?(i(m,z)&&m[z][S]&&(m[z][S]=!1),N=W(N,{enumerable:I(0,!1)})):(i(m,z)||Y(m,z,I(1,{})),m[z][S]=!0),x(m,S,N)):Y(m,S,N)},q=function(m,S){F(m);for(var N,A=C(S=T(S)),J=0,ot=A.length;ot>J;)_(m,N=A[J++],S[N]);return m},K=function(m){var S=ct.call(this,m=B(m,!0));return!(this===o&&i(c,m)&&!i(g,m))&&(!(S||!i(this,m)||!i(c,m)||i(this,z)&&this[z][m])||S)},et=function(m,S){if(m=T(m),S=B(S,!0),m!==o||!i(c,S)||i(g,S)){var N=U(m,S);return!N||!i(c,S)||i(m,z)&&m[z][S]||(N.enumerable=!0),N}},rt=function(m){for(var S,N=Z(T(m)),A=[],J=0;N.length>J;)i(c,S=N[J++])||S==z||S==f||A.push(S);return A},st=function(m){for(var S,N=m===o,A=Z(N?g:T(m)),J=[],ot=0;A.length>ot;)!i(c,S=A[ot++])||N&&!i(o,S)||J.push(c[S]);return J};n||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var m=d(arguments.length>0?arguments[0]:void 0),S=function(N){this===o&&S.call(g,N),i(this,z)&&i(this[z],m)&&(this[z][m]=!1),x(this,m,I(1,N))};return a&&w&&x(o,m,{configurable:!0,set:S}),k(m)}).prototype,"toString",function(){return this._k}),R.f=et,V.f=_,t(48).f=X.f=rt,t(29).f=K,D.f=st,a&&!t(18)&&s(o,"propertyIsEnumerable",K,!0),P.f=function(m){return k(O(m))}),u(u.G+u.W+u.F*!n,{Symbol:M});for(var lt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ht=0;lt.length>ht;)O(lt[ht++]);for(var ft=$(O.store),pt=0;ft.length>pt;)j(ft[pt++]);u(u.S+u.F*!n,"Symbol",{for:function(m){return i(y,m+="")?y[m]:y[m]=M(m)},keyFor:function(m){if(!E(m))throw TypeError(m+" is not a symbol!");for(var S in y)if(y[S]===m)return S},useSetter:function(){w=!0},useSimple:function(){w=!1}}),u(u.S+u.F*!n,"Object",{create:function(m,S){return S===void 0?W(m):q(W(m),S)},defineProperty:_,defineProperties:q,getOwnPropertyDescriptor:et,getOwnPropertyNames:rt,getOwnPropertySymbols:st});var yt=h(function(){D.f(1)});u(u.S+u.F*yt,"Object",{getOwnPropertySymbols:function(m){return D.f(H(m))}}),tt&&u(u.S+u.F*(!n||h(function(){var m=M();return Q([m])!="[null]"||Q({a:m})!="{}"||Q(Object(m))!="{}"})),"JSON",{stringify:function(m){for(var S,N,A=[m],J=1;arguments.length>J;)A.push(arguments[J++]);if(N=S=A[1],(G(S)||m!==void 0)&&!E(m))return L(S)||(S=function(ot,at){if(typeof N=="function"&&(at=N.call(this,ot,at)),!E(at))return at}),A[1]=S,Q.apply(tt,A)}}),M.prototype[nt]||t(4)(M.prototype,nt,M.prototype.valueOf),b(M,"Symbol"),b(Math,"Math",!0),b(e.JSON,"JSON",!0)},function(r,l,t){var e=t(3);r.exports=function(i,a){if(!e(i))return i;var u,s;if(a&&typeof(u=i.toString)=="function"&&!e(s=u.call(i))||typeof(u=i.valueOf)=="function"&&!e(s=u.call(i))||!a&&typeof(u=i.toString)=="function"&&!e(s=u.call(i)))return s;throw TypeError("Can't convert object to primitive value")}},function(r,l,t){var e=t(37);r.exports=function(i,a,u){if(e(i),a===void 0)return i;switch(u){case 1:return function(s){return i.call(a,s)};case 2:return function(s,f){return i.call(a,s,f)};case 3:return function(s,f,h){return i.call(a,s,f,h)}}return function(){return i.apply(a,arguments)}}},function(r,l){var t={}.toString;r.exports=function(e){return t.call(e).slice(8,-1)}},function(r,l){r.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(r,l,t){var e=t(7);r.exports=function(i,a){return!!i&&e(function(){a?i.call(null,function(){},1):i.call(null)})}},function(r,l,t){var e=t(5).f,i=t(8),a=t(1)("toStringTag");r.exports=function(u,s,f){u&&!i(u=f?u:u.prototype,a)&&e(u,a,{configurable:!0,value:s})}},function(r,l,t){var e=t(17)("keys"),i=t(14);r.exports=function(a){return e[a]||(e[a]=i(a))}},function(r,l){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(r,l){l.f={}.propertyIsEnumerable},function(r,l,t){var e=t(12),i=t(65),a=t(28),u=t(27)("IE_PROTO"),s=function(){},f=function(){var h,v=t(36)("iframe"),b=a.length;for(v.style.display="none",t(66).appendChild(v),v.src="javascript:",(h=v.contentWindow.document).open(),h.write("<script>document.F=Object<\/script>"),h.close(),f=h.F;b--;)delete f.prototype[a[b]];return f()};r.exports=Object.create||function(h,v){var b;return h!==null?(s.prototype=e(h),b=new s,s.prototype=null,b[u]=h):b=f(),v===void 0?b:i(b,v)}},function(r,l,t){var e=t(68),i=t(69),a=t(32),u=t(9);r.exports=t(70)(Array,"Array",function(s,f){this._t=u(s),this._i=0,this._k=f},function(){var s=this._t,f=this._k,h=this._i++;return!s||h>=s.length?(this._t=void 0,i(1)):i(0,f=="keys"?h:f=="values"?s[h]:[h,s[h]])},"values"),a.Arguments=a.Array,e("keys"),e("values"),e("entries")},function(r,l){r.exports={}},function(r,l,t){t(44)("asyncIterator")},function(r,l,t){var e=t(0),i=t(38)(0),a=t(25)([].forEach,!0);e(e.P+e.F*!a,"Array",{forEach:function(u){return i(this,u,arguments[1])}})},function(r,l,t){r.exports=!t(6)&&!t(7)(function(){return Object.defineProperty(t(36)("div"),"a",{get:function(){return 7}}).a!=7})},function(r,l,t){var e=t(3),i=t(2).document,a=e(i)&&e(i.createElement);r.exports=function(u){return a?i.createElement(u):{}}},function(r,l){r.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}},function(r,l,t){var e=t(22),i=t(39),a=t(19),u=t(40),s=t(60);r.exports=function(f,h){var v=f==1,b=f==2,d=f==3,O=f==4,P=f==6,j=f==5||P,C=h||s;return function(L,F,G){for(var H,T,B=a(L),I=i(B),W=e(F,G,3),X=u(I.length),R=0,D=v?C(L,X):b?C(L,0):void 0;X>R;R++)if((j||R in I)&&(T=W(H=I[R],R,B),f)){if(v)D[R]=T;else if(T)switch(f){case 3:return!0;case 5:return H;case 6:return R;case 2:D.push(H)}else if(O)return!1}return P?-1:d||O?O:D}}},function(r,l,t){var e=t(23);r.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return e(i)=="String"?i.split(""):Object(i)}},function(r,l,t){var e=t(41),i=Math.min;r.exports=function(a){return a>0?i(e(a),9007199254740991):0}},function(r,l){var t=Math.ceil,e=Math.floor;r.exports=function(i){return isNaN(i=+i)?0:(i>0?e:t)(i)}},function(r,l,t){var e=t(23);r.exports=Array.isArray||function(i){return e(i)=="Array"}},function(r,l,t){l.f=t(1)},function(r,l,t){var e=t(2),i=t(11),a=t(18),u=t(43),s=t(5).f;r.exports=function(f){var h=i.Symbol||(i.Symbol=a?{}:e.Symbol||{});f.charAt(0)=="_"||f in h||s(h,f,{value:u.f(f)})}},function(r,l,t){var e=t(8),i=t(9),a=t(46)(!1),u=t(27)("IE_PROTO");r.exports=function(s,f){var h,v=i(s),b=0,d=[];for(h in v)h!=u&&e(v,h)&&d.push(h);for(;f.length>b;)e(v,h=f[b++])&&(~a(d,h)||d.push(h));return d}},function(r,l,t){var e=t(9),i=t(40),a=t(64);r.exports=function(u){return function(s,f,h){var v,b=e(s),d=i(b.length),O=a(h,d);if(u&&f!=f){for(;d>O;)if((v=b[O++])!=v)return!0}else for(;d>O;O++)if((u||O in b)&&b[O]===f)return u||O||0;return!u&&-1}}},function(r,l){l.f=Object.getOwnPropertySymbols},function(r,l,t){var e=t(45),i=t(28).concat("length","prototype");l.f=Object.getOwnPropertyNames||function(a){return e(a,i)}},function(r,l,t){var e=t(29),i=t(16),a=t(9),u=t(21),s=t(8),f=t(35),h=Object.getOwnPropertyDescriptor;l.f=t(6)?h:function(v,b){if(v=a(v),b=u(b,!0),f)try{return h(v,b)}catch{}if(s(v,b))return i(!e.f.call(v,b),v[b])}},function(r,l,t){for(var e=t(31),i=t(15),a=t(13),u=t(2),s=t(4),f=t(32),h=t(1),v=h("iterator"),b=h("toStringTag"),d=f.Array,O={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},P=i(O),j=0;j<P.length;j++){var C,L=P[j],F=O[L],G=u[L],H=G&&G.prototype;if(H&&(H[v]||s(H,v,d),H[b]||s(H,b,L),f[L]=d,F))for(C in e)H[C]||a(H,C,e[C],!0)}},function(r,l,t){var e=t(73),i={};i[t(1)("toStringTag")]="z",i+""!="[object z]"&&t(13)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(r,l,t){var e=t(19),i=t(15);t(74)("keys",function(){return function(a){return i(e(a))}})},function(r,l,t){var e=t(0),i=t(38)(2);e(e.P+e.F*!t(25)([].filter,!0),"Array",{filter:function(a){return i(this,a,arguments[1])}})},function(r,l,t){var e=t(0);e(e.P,"Function",{bind:t(75)})},function(r,l,t){var e=t(0);e(e.S,"Object",{create:t(30)})},function(r,l,t){var e=t(0);e(e.S,"Object",{setPrototypeOf:t(81).set})},function(r,l,t){t(58),r.exports=t(82)},function(r,l){},function(r,l,t){r.exports=t(17)("native-function-to-string",Function.toString)},function(r,l,t){var e=t(61);r.exports=function(i,a){return new(e(i))(a)}},function(r,l,t){var e=t(3),i=t(42),a=t(1)("species");r.exports=function(u){var s;return i(u)&&(typeof(s=u.constructor)!="function"||s!==Array&&!i(s.prototype)||(s=void 0),e(s)&&(s=s[a])===null&&(s=void 0)),s===void 0?Array:s}},function(r,l,t){var e=t(14)("meta"),i=t(3),a=t(8),u=t(5).f,s=0,f=Object.isExtensible||function(){return!0},h=!t(7)(function(){return f(Object.preventExtensions({}))}),v=function(d){u(d,e,{value:{i:"O"+ ++s,w:{}}})},b=r.exports={KEY:e,NEED:!1,fastKey:function(d,O){if(!i(d))return typeof d=="symbol"?d:(typeof d=="string"?"S":"P")+d;if(!a(d,e)){if(!f(d))return"F";if(!O)return"E";v(d)}return d[e].i},getWeak:function(d,O){if(!a(d,e)){if(!f(d))return!0;if(!O)return!1;v(d)}return d[e].w},onFreeze:function(d){return h&&b.NEED&&f(d)&&!a(d,e)&&v(d),d}}},function(r,l,t){var e=t(15),i=t(47),a=t(29);r.exports=function(u){var s=e(u),f=i.f;if(f)for(var h,v=f(u),b=a.f,d=0;v.length>d;)b.call(u,h=v[d++])&&s.push(h);return s}},function(r,l,t){var e=t(41),i=Math.max,a=Math.min;r.exports=function(u,s){return(u=e(u))<0?i(u+s,0):a(u,s)}},function(r,l,t){var e=t(5),i=t(12),a=t(15);r.exports=t(6)?Object.defineProperties:function(u,s){i(u);for(var f,h=a(s),v=h.length,b=0;v>b;)e.f(u,f=h[b++],s[f]);return u}},function(r,l,t){var e=t(2).document;r.exports=e&&e.documentElement},function(r,l,t){var e=t(9),i=t(48).f,a={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(s){return u&&a.call(s)=="[object Window]"?function(f){try{return i(f)}catch{return u.slice()}}(s):i(e(s))}},function(r,l,t){var e=t(1)("unscopables"),i=Array.prototype;i[e]==null&&t(4)(i,e,{}),r.exports=function(a){i[e][a]=!0}},function(r,l){r.exports=function(t,e){return{value:e,done:!!t}}},function(r,l,t){var e=t(18),i=t(0),a=t(13),u=t(4),s=t(32),f=t(71),h=t(26),v=t(72),b=t(1)("iterator"),d=!([].keys&&"next"in[].keys()),O=function(){return this};r.exports=function(P,j,C,L,F,G,H){f(C,j,L);var T,B,I,W=function(M){if(!d&&M in V)return V[M];switch(M){case"keys":case"values":return function(){return new C(this,M)}}return function(){return new C(this,M)}},X=j+" Iterator",R=F=="values",D=!1,V=P.prototype,$=V[b]||V["@@iterator"]||F&&V[F],U=$||W(F),Y=F?R?W("entries"):U:void 0,Z=j=="Array"&&V.entries||$;if(Z&&(I=v(Z.call(new P)))!==Object.prototype&&I.next&&(h(I,X,!0),e||typeof I[b]=="function"||u(I,b,O)),R&&$&&$.name!=="values"&&(D=!0,U=function(){return $.call(this)}),e&&!H||!d&&!D&&V[b]||u(V,b,U),s[j]=U,s[X]=O,F)if(T={values:R?U:W("values"),keys:G?U:W("keys"),entries:Y},H)for(B in T)B in V||a(V,B,T[B]);else i(i.P+i.F*(d||D),j,T);return T}},function(r,l,t){var e=t(30),i=t(16),a=t(26),u={};t(4)(u,t(1)("iterator"),function(){return this}),r.exports=function(s,f,h){s.prototype=e(u,{next:i(1,h)}),a(s,f+" Iterator")}},function(r,l,t){var e=t(8),i=t(19),a=t(27)("IE_PROTO"),u=Object.prototype;r.exports=Object.getPrototypeOf||function(s){return s=i(s),e(s,a)?s[a]:typeof s.constructor=="function"&&s instanceof s.constructor?s.constructor.prototype:s instanceof Object?u:null}},function(r,l,t){var e=t(23),i=t(1)("toStringTag"),a=e(function(){return arguments}())=="Arguments";r.exports=function(u){var s,f,h;return u===void 0?"Undefined":u===null?"Null":typeof(f=function(v,b){try{return v[b]}catch{}}(s=Object(u),i))=="string"?f:a?e(s):(h=e(s))=="Object"&&typeof s.callee=="function"?"Arguments":h}},function(r,l,t){var e=t(0),i=t(11),a=t(7);r.exports=function(u,s){var f=(i.Object||{})[u]||Object[u],h={};h[u]=s(f),e(e.S+e.F*a(function(){f(1)}),"Object",h)}},function(r,l,t){var e=t(37),i=t(3),a=t(76),u=[].slice,s={};r.exports=Function.bind||function(f){var h=e(this),v=u.call(arguments,1),b=function(){var d=v.concat(u.call(arguments));return this instanceof b?function(O,P,j){if(!(P in s)){for(var C=[],L=0;L<P;L++)C[L]="a["+L+"]";s[P]=Function("F,a","return new F("+C.join(",")+")")}return s[P](O,j)}(h,d.length,d):a(h,d,f)};return i(h.prototype)&&(b.prototype=h.prototype),b}},function(r,l){r.exports=function(t,e,i){var a=i===void 0;switch(e.length){case 0:return a?t():t.call(i);case 1:return a?t(e[0]):t.call(i,e[0]);case 2:return a?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return a?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return a?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},function(r,l,t){t(78)("trim",function(e){return function(){return e(this,3)}})},function(r,l,t){var e=t(0),i=t(24),a=t(7),u=t(79),s="["+u+"]",f=RegExp("^"+s+s+"*"),h=RegExp(s+s+"*$"),v=function(d,O,P){var j={},C=a(function(){return!!u[d]()||"​…"[d]()!="​…"}),L=j[d]=C?O(b):u[d];P&&(j[P]=L),e(e.P+e.F*C,"String",j)},b=v.trim=function(d,O){return d=String(i(d)),1&O&&(d=d.replace(f,"")),2&O&&(d=d.replace(h,"")),d};r.exports=v},function(r,l){r.exports=` \v\f\r   ᠎              \u2028\u2029\uFEFF`},function(r,l,t){var e=t(0),i=t(46)(!1),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!t(25)(a)),"Array",{indexOf:function(s){return u?a.apply(this,arguments)||0:i(this,s,arguments[1])}})},function(r,l,t){var e=t(3),i=t(12),a=function(u,s){if(i(u),!e(s)&&s!==null)throw TypeError(s+": can't set as prototype!")};r.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(u,s,f){try{(f=t(22)(Function.call,t(49).f(Object.prototype,"__proto__").set,2))(u,[]),s=!(u instanceof Array)}catch{s=!0}return function(h,v){return a(h,v),s?h.__proto__=v:f(h,v),h}}({},!1):void 0),check:a}},function(r,l,t){t.r(l),t(34),t(20),t(50),t(31),t(51),t(52),t(10),t(53),t(54);var e=.75,i=10,a=!0,u=!0,s=!0,f=!1,h="driver-highlighted-element-stage",v='<div id="'.concat("driver-page-overlay",'"></div>'),b='<div id="'.concat(h,'"></div>');t(33),t(77);function d(y){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(y)}var O=function(y){var c=document.createElement("div");return c.innerHTML=y.trim(),c.firstChild},P=function y(c,g){if(arguments.length>2&&arguments[2]!==void 0&&arguments[2]){for(var o=["","-webkit-","-ms-","moz-","-o-"],n=0;n<o.length;n++){var p=y(c,o[n]+g);if(p)return p}return""}var w="";return c.currentStyle?w=c.currentStyle[g]:document.defaultView&&document.defaultView.getComputedStyle&&(w=document.defaultView.getComputedStyle(c,null).getPropertyValue(g)),w&&w.toLowerCase?w.toLowerCase():w},j=function(y){return y&&d(y)==="object"&&"nodeType"in y};function C(y,c){for(var g=0;g<c.length;g++){var o=c[g];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(y,o.key,o)}}var L=function(){function y(o,n,p){(function(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")})(this,y),this.options=o,this.highlightedElement=null,this.lastHighlightedElement=null,this.hideTimer=null,this.window=n,this.document=p,this.removeNode=this.removeNode.bind(this)}var c,g;return c=y,(g=[{key:"attachNode",value:function(){var o=this.document.getElementById("driver-page-overlay");o||(o=O(v),document.body.appendChild(o)),this.node=o,this.node.style.opacity="0",this.options.animate||this.node.parentElement&&this.node.parentElement.removeChild(this.node)}},{key:"highlight",value:function(o){o&&o.node?o.isSame(this.highlightedElement)||(this.window.clearTimeout(this.hideTimer),o.onHighlightStarted(),this.highlightedElement&&!this.highlightedElement.isSame(this.lastHighlightedElement)&&this.highlightedElement.onDeselected(),o.getCalculatedPosition().canHighlight()&&(this.lastHighlightedElement=this.highlightedElement,this.highlightedElement=o,this.show(),this.highlightedElement.onHighlighted())):console.warn("Invalid element to highlight. Must be an instance of `Element`")}},{key:"show",value:function(){var o=this;this.node&&this.node.parentElement||(this.attachNode(),window.setTimeout(function(){o.node.style.opacity="".concat(o.options.opacity),o.node.style.position="fixed",o.node.style.left="0",o.node.style.top="0",o.node.style.bottom="0",o.node.style.right="0"}))}},{key:"getHighlightedElement",value:function(){return this.highlightedElement}},{key:"getLastHighlightedElement",value:function(){return this.lastHighlightedElement}},{key:"clear",value:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.options.onReset&&this.options.onReset(this.highlightedElement),this.highlightedElement&&this.highlightedElement.onDeselected(!0),this.highlightedElement=null,this.lastHighlightedElement=null,this.node&&(this.window.clearTimeout(this.hideTimer),this.options.animate&&!o?(this.node.style.opacity="0",this.hideTimer=this.window.setTimeout(this.removeNode,300)):this.removeNode())}},{key:"removeNode",value:function(){this.node&&this.node.parentElement&&this.node.parentElement.removeChild(this.node)}},{key:"refresh",value:function(){this.highlightedElement&&(this.highlightedElement.showPopover(),this.highlightedElement.showStage())}}])&&C(c.prototype,g),y}();t(80);function F(y,c){for(var g=0;g<c.length;g++){var o=c[g];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(y,o.key,o)}}var G=function(){function y(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=o.left,p=n===void 0?0:n,w=o.top,x=w===void 0?0:w,k=o.right,E=k===void 0?0:k,_=o.bottom,q=_===void 0?0:_;(function(K,et){if(!(K instanceof et))throw new TypeError("Cannot call a class as a function")})(this,y),this.left=p,this.right=E,this.top=x,this.bottom=q}var c,g;return c=y,(g=[{key:"canHighlight",value:function(){return this.left<this.right&&this.top<this.bottom}}])&&F(c.prototype,g),y}();function H(y,c){for(var g=0;g<c.length;g++){var o=c[g];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(y,o.key,o)}}var T=function(){function y(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=o.node,p=o.options,w=o.popover,x=o.stage,k=o.overlay,E=o.window,_=o.document;(function(q,K){if(!(q instanceof K))throw new TypeError("Cannot call a class as a function")})(this,y),this.node=n,this.document=_,this.window=E,this.options=p,this.overlay=k,this.popover=w,this.stage=x,this.animationTimeout=null}var c,g;return c=y,(g=[{key:"isInView",value:function(){for(var o=this.node.offsetTop,n=this.node.offsetLeft,p=this.node.offsetWidth,w=this.node.offsetHeight,x=this.node;x.offsetParent;)o+=(x=x.offsetParent).offsetTop,n+=x.offsetLeft;return o>=this.window.pageYOffset&&n>=this.window.pageXOffset&&o+w<=this.window.pageYOffset+this.window.innerHeight&&n+p<=this.window.pageXOffset+this.window.innerWidth}},{key:"scrollManually",value:function(){var o=this.node.getBoundingClientRect().top+this.window.pageYOffset-this.window.innerHeight/2;this.window.scrollTo(0,o)}},{key:"bringInView",value:function(){if(this.node&&!this.isInView())if(this.node.scrollIntoView)try{this.node.scrollIntoView(this.options.scrollIntoViewOptions||{behavior:"instant",block:"center"})}catch{this.scrollManually()}else this.scrollManually()}},{key:"getCalculatedPosition",value:function(){var o=this.document.body,n=this.document.documentElement,p=this.window,w=this.window.pageYOffset||n.scrollTop||o.scrollTop,x=p.pageXOffset||n.scrollLeft||o.scrollLeft,k=this.node.getBoundingClientRect();return new G({top:k.top+w,left:k.left+x,right:k.left+x+k.width,bottom:k.top+w+k.height})}},{key:"getPopover",value:function(){return this.popover}},{key:"onDeselected",value:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.hidePopover(),o&&this.hideStage(),this.removeHighlightClasses(),this.window.clearTimeout(this.animationTimeout),this.options.onDeselected&&this.options.onDeselected(this)}},{key:"isSame",value:function(o){return!(!o||!o.node)&&o.node===this.node}},{key:"onHighlightStarted",value:function(){this.options.onHighlightStarted&&this.options.onHighlightStarted(this)}},{key:"onHighlighted",value:function(){this.isInView()||this.bringInView(),this.showPopover(),this.showStage(),this.addHighlightClasses(),this.options.onHighlighted&&this.options.onHighlighted(this)}},{key:"removeHighlightClasses",value:function(){this.node.classList.remove("driver-highlighted-element"),this.node.classList.remove("driver-position-relative");for(var o=this.document.querySelectorAll(".".concat("driver-fix-stacking")),n=0;n<o.length;n++)o[n].classList.remove("driver-fix-stacking")}},{key:"addHighlightClasses",value:function(){this.node.classList.add("driver-highlighted-element"),this.canMakeRelative()&&this.node.classList.add("driver-position-relative"),this.fixStackingContext()}},{key:"fixStackingContext",value:function(){for(var o=this.node.parentNode;o&&o.tagName&&o.tagName.toLowerCase()!=="body";){var n=P(o,"z-index"),p=parseFloat(P(o,"opacity")),w=P(o,"transform",!0),x=P(o,"transform-style",!0),k=P(o,"transform-box",!0),E=P(o,"filter",!0),_=P(o,"perspective",!0);(/[0-9]+/.test(n)||p<1||w&&w!=="none"||x&&x!=="flat"||k&&k!=="border-box"||E&&E!=="none"||_&&_!=="none")&&o.classList.add("driver-fix-stacking"),o=o.parentNode}}},{key:"canMakeRelative",value:function(){var o=this.getStyleProperty("position");return["absolute","fixed","relative"].indexOf(o)===-1}},{key:"getStyleProperty",value:function(o){return P(this.node,o)}},{key:"showStage",value:function(){this.stage.show(this.getCalculatedPosition())}},{key:"getNode",value:function(){return this.node}},{key:"hideStage",value:function(){this.stage.hide()}},{key:"hidePopover",value:function(){this.popover&&this.popover.hide()}},{key:"showPopover",value:function(){var o=this;if(this.popover){var n=this.getCalculatedPosition(),p=300;this.options.animate&&this.overlay.lastHighlightedElement||(p=0),this.animationTimeout=this.window.setTimeout(function(){o.popover.show(n)},p)}}},{key:"getFullPageSize",value:function(){var o=this.document.body,n=this.document.documentElement;return{height:Math.max(o.scrollHeight,o.offsetHeight,n.scrollHeight,n.offsetHeight),width:Math.max(o.scrollWidth,o.offsetWidth,n.scrollWidth,n.offsetWidth)}}},{key:"getSize",value:function(){return{height:Math.max(this.node.scrollHeight,this.node.offsetHeight),width:Math.max(this.node.scrollWidth,this.node.offsetWidth)}}}])&&H(c.prototype,g),y}();t(55),t(56);function B(y){return(B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(y)}function I(y,c,g){return c in y?Object.defineProperty(y,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[c]=g,y}function W(y,c){for(var g=0;g<c.length;g++){var o=c[g];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(y,o.key,o)}}function X(y,c){return!c||B(c)!=="object"&&typeof c!="function"?function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(y):c}function R(y){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)})(y)}function D(y,c){return(D=Object.setPrototypeOf||function(g,o){return g.__proto__=o,g})(y,c)}var V=function(y){function c(n,p,w){var x;return function(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")}(this,c),(x=X(this,R(c).call(this))).options=function(k){for(var E=1;E<arguments.length;E++){var _=arguments[E]!=null?arguments[E]:{},q=Object.keys(_);typeof Object.getOwnPropertySymbols=="function"&&(q=q.concat(Object.getOwnPropertySymbols(_).filter(function(K){return Object.getOwnPropertyDescriptor(_,K).enumerable}))),q.forEach(function(K){I(k,K,_[K])})}return k}({isFirst:!0,isLast:!0,totalCount:1,currentIndex:0,offset:0,showButtons:!0,closeBtnText:"Close",doneBtnText:"Done",startBtnText:"Next &rarr;",nextBtnText:"Next &rarr;",prevBtnText:"&larr; Previous"},n),x.window=p,x.document=w,x}var g,o;return function(n,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(p&&p.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),p&&D(n,p)}(c,T),g=c,(o=[{key:"attachNode",value:function(){var n=this.document.getElementById("driver-popover-item");n&&n.parentElement.removeChild(n),n=O(function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return` <div id="`.concat("driver-popover-item",'" class="').concat(p,`"> <div class="`).concat("driver-popover-tip",`"></div> <div class="`).concat("driver-popover-title",`">Popover Title</div> <div class="`).concat("driver-popover-description",`">Popover Description</div> <div class="driver-clearfix `).concat("driver-popover-footer",`"> <button class="`).concat("driver-close-btn",`">Close</button> <span class="driver-btn-group `).concat("driver-navigation-btns",`"> <button class="`).concat("driver-prev-btn",`">&larr; Previous</button> <button class="`).concat("driver-next-btn",`">Next &rarr;</button> </span> </div> </div>`)}(this.options.className)),document.body.appendChild(n),this.node=n,this.tipNode=n.querySelector(".".concat("driver-popover-tip")),this.titleNode=n.querySelector(".".concat("driver-popover-title")),this.descriptionNode=n.querySelector(".".concat("driver-popover-description")),this.footerNode=n.querySelector(".".concat("driver-popover-footer")),this.nextBtnNode=n.querySelector(".".concat("driver-next-btn")),this.prevBtnNode=n.querySelector(".".concat("driver-prev-btn")),this.closeBtnNode=n.querySelector(".".concat("driver-close-btn"))}},{key:"getTitleNode",value:function(){return this.titleNode}},{key:"getDescriptionNode",value:function(){return this.descriptionNode}},{key:"hide",value:function(){this.node&&(this.node.style.display="none")}},{key:"setInitialState",value:function(){this.node.style.display="block",this.node.style.left="0",this.node.style.top="0",this.node.style.bottom="",this.node.style.right="",this.node.querySelector(".".concat("driver-popover-tip")).className="driver-popover-tip"}},{key:"show",value:function(n){switch(this.attachNode(),this.setInitialState(),this.titleNode.innerHTML=this.options.title,this.descriptionNode.innerHTML=this.options.description||"",this.renderFooter(),this.options.position){case"left":case"left-top":this.positionOnLeft(n);break;case"left-center":this.positionOnLeftCenter(n);break;case"left-bottom":this.positionOnLeftBottom(n);break;case"right":case"right-top":this.positionOnRight(n);break;case"right-center":this.positionOnRightCenter(n);break;case"right-bottom":this.positionOnRightBottom(n);break;case"top":case"top-left":this.positionOnTop(n);break;case"top-center":this.positionOnTopCenter(n);break;case"top-right":this.positionOnTopRight(n);break;case"bottom":case"bottom-left":this.positionOnBottom(n);break;case"bottom-center":this.positionOnBottomCenter(n);break;case"bottom-right":this.positionOnBottomRight(n);break;case"mid-center":this.positionOnMidCenter(n);break;case"auto":default:this.autoPosition(n)}this.bringInView()}},{key:"renderFooter",value:function(){this.nextBtnNode.innerHTML=this.options.nextBtnText,this.prevBtnNode.innerHTML=this.options.prevBtnText,this.closeBtnNode.innerHTML=this.options.closeBtnText;var n=this.options.totalCount&&this.options.totalCount!==1;this.options.showButtons?(n?(this.nextBtnNode.style.display="inline-block",this.prevBtnNode.style.display="inline-block",this.closeBtnNode.classList.remove("driver-close-only-btn")):(this.nextBtnNode.style.display="none",this.prevBtnNode.style.display="none",this.closeBtnNode.classList.add("driver-close-only-btn")),this.footerNode.style.display="block",this.options.isFirst?(this.prevBtnNode.classList.add("driver-disabled"),this.nextBtnNode.innerHTML=this.options.startBtnText):this.prevBtnNode.classList.remove("driver-disabled"),this.options.isLast?this.nextBtnNode.innerHTML=this.options.doneBtnText:this.nextBtnNode.innerHTML=this.options.nextBtnText):this.footerNode.style.display="none"}},{key:"positionOnLeft",value:function(n){var p=this.getSize().width,w=this.options.padding+10;this.node.style.left="".concat(n.left-p-w,"px"),this.node.style.top="".concat(n.top+this.options.offset-this.options.padding,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("right")}},{key:"positionOnLeftBottom",value:function(n){var p=this.getSize(),w=p.width,x=this.options.padding+10;this.node.style.left="".concat(n.left-w-x,"px"),this.node.style.top="".concat(n.bottom+this.options.padding+this.options.offset-p.height,"px"),this.node.style.bottom="",this.node.style.right="",this.tipNode.classList.add("right","position-bottom")}},{key:"positionOnLeftCenter",value:function(n){var p=this.getSize(),w=p.width,x=p.height/2,k=this.options.padding+10,E=(n.bottom-n.top)/2,_=n.top-x+E+this.options.offset;this.node.style.left="".concat(n.left-w-k,"px"),this.node.style.top="".concat(_,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("right","position-center")}},{key:"positionOnRight",value:function(n){var p=this.options.padding+10;this.node.style.left="".concat(n.right+p,"px"),this.node.style.top="".concat(n.top+this.options.offset-this.options.padding,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("left")}},{key:"positionOnRightCenter",value:function(n){var p=this.getSize(),w=this.options.padding+10,x=p.height/2,k=(n.bottom-n.top)/2,E=n.top-x+k+this.options.offset;this.node.style.left="".concat(n.right+w,"px"),this.node.style.top="".concat(E,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("left","position-center")}},{key:"positionOnRightBottom",value:function(n){var p=this.options.padding+10,w=this.getSize();this.node.style.left="".concat(n.right+p,"px"),this.node.style.top="".concat(n.bottom+this.options.padding+this.options.offset-w.height,"px"),this.node.style.bottom="",this.node.style.right="",this.tipNode.classList.add("left","position-bottom")}},{key:"positionOnTop",value:function(n){var p=this.getSize().height,w=this.options.padding+10;this.node.style.top="".concat(n.top-p-w,"px"),this.node.style.left="".concat(n.left-this.options.padding+this.options.offset,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("bottom")}},{key:"positionOnTopCenter",value:function(n){var p=this.getSize(),w=p.height,x=p.width/2,k=this.options.padding+10,E=this.options.offset+n.left+(n.right-n.left)/2;this.node.style.top="".concat(n.top-w-k,"px"),this.node.style.left="".concat(E-x-this.options.padding,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("bottom","position-center")}},{key:"positionOnTopRight",value:function(n){var p=this.getSize(),w=p.height,x=this.options.padding+10;this.node.style.top="".concat(n.top-w-x,"px"),this.node.style.left="".concat(n.right+this.options.padding+this.options.offset-p.width,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("bottom","position-right")}},{key:"positionOnBottom",value:function(n){var p=this.options.padding+10;this.node.style.top="".concat(n.bottom+p,"px"),this.node.style.left="".concat(n.left-this.options.padding+this.options.offset,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("top")}},{key:"positionOnBottomCenter",value:function(n){var p=this.getSize().width/2,w=this.options.padding+10,x=this.options.offset+n.left+(n.right-n.left)/2;this.node.style.top="".concat(n.bottom+w,"px"),this.node.style.left="".concat(x-p-this.options.padding,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("top","position-center")}},{key:"positionOnBottomRight",value:function(n){var p=this.getSize(),w=this.options.padding+10;this.node.style.top="".concat(n.bottom+w,"px"),this.node.style.left="".concat(n.right+this.options.padding+this.options.offset-p.width,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("top","position-right")}},{key:"positionOnMidCenter",value:function(n){var p=this.getSize(),w=p.height,x=p.width/2,k=w/2,E=(n.bottom-n.top)/2,_=n.top-k+E+this.options.offset,q=this.options.offset+n.left+(n.right-n.left)/2;this.node.style.top="".concat(_,"px"),this.node.style.left="".concat(q-x-this.options.padding,"px"),this.node.style.right="",this.node.style.bottom="",this.tipNode.classList.add("mid-center")}},{key:"autoPosition",value:function(n){var p=this.getFullPageSize(),w=this.getSize(),x=p.height,k=w.height,E=this.options.padding+10;n.bottom+k+E>=x?this.positionOnTop(n):this.positionOnBottom(n)}}])&&W(g.prototype,o),c}();function $(y){return($=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(y)}function U(y,c){for(var g=0;g<c.length;g++){var o=c[g];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(y,o.key,o)}}function Y(y,c){return!c||$(c)!=="object"&&typeof c!="function"?function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(y):c}function Z(y){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)})(y)}function M(y,c){return(M=Object.setPrototypeOf||function(g,o){return g.__proto__=o,g})(y,c)}var tt=function(y){function c(n,p,w){var x;return function(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")}(this,c),(x=Y(this,Z(c).call(this))).options=n,x.window=p,x.document=w,x}var g,o;return function(n,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(p&&p.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),p&&M(n,p)}(c,T),g=c,(o=[{key:"attachNode",value:function(){var n=this.document.getElementById(h);n||(n=O(b),document.body.appendChild(n)),this.node=n,this.options.animate?this.node.classList.remove("driver-stage-no-animation"):this.node.classList.add("driver-stage-no-animation")}},{key:"hide",value:function(){this.node&&this.node.parentElement&&this.node.parentElement.removeChild(this.node)}},{key:"setInitialStyle",value:function(){this.node.style.display="block",this.node.style.left="0",this.node.style.top="0",this.node.style.bottom="",this.node.style.right=""}},{key:"show",value:function(n){this.attachNode(),this.setInitialStyle();var p=2*this.options.padding,w=n.right-n.left+p,x=n.bottom-n.top+p;this.node.style.display="block",this.node.style.position="absolute",this.node.style.width="".concat(w,"px"),this.node.style.height="".concat(x,"px"),this.node.style.top="".concat(n.top-p/2,"px"),this.node.style.left="".concat(n.left-p/2,"px"),this.node.style.backgroundColor=this.options.stageBackground}}])&&U(g.prototype,o),c}();function Q(y){for(var c=1;c<arguments.length;c++){var g=arguments[c]!=null?arguments[c]:{},o=Object.keys(g);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(g).filter(function(n){return Object.getOwnPropertyDescriptor(g,n).enumerable}))),o.forEach(function(n){z(y,n,g[n])})}return y}function z(y,c,g){return c in y?Object.defineProperty(y,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[c]=g,y}function nt(y,c){for(var g=0;g<c.length;g++){var o=c[g];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(y,o.key,o)}}t.d(l,"default",function(){return ct});var ct=function(){function y(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(n,p){if(!(n instanceof p))throw new TypeError("Cannot call a class as a function")})(this,y),this.options=Q({animate:a,opacity:e,padding:i,scrollIntoViewOptions:null,allowClose:u,keyboardControl:s,overlayClickNext:f,stageBackground:"#ffffff",onHighlightStarted:function(){return null},onHighlighted:function(){return null},onDeselected:function(){return null},onReset:function(){return null},onNext:function(){return null},onPrevious:function(){return null}},o),this.document=document,this.window=window,this.isActivated=!1,this.steps=[],this.currentStep=0,this.currentMovePrevented=!1,this.overlay=new L(this.options,window,document),this.onResize=this.onResize.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onClick=this.onClick.bind(this),this.moveNext=this.moveNext.bind(this),this.movePrevious=this.movePrevious.bind(this),this.preventMove=this.preventMove.bind(this),this.bind()}var c,g;return c=y,(g=[{key:"getSteps",value:function(){return this.steps}},{key:"setSteps",value:function(o){this.steps=o}},{key:"bind",value:function(){this.window.addEventListener("resize",this.onResize,!1),this.window.addEventListener("keyup",this.onKeyUp,!1),"ontouchstart"in document.documentElement?this.window.addEventListener("touchstart",this.onClick,!1):this.window.addEventListener("click",this.onClick,!1)}},{key:"onClick",value:function(o){if(this.isActivated&&this.hasHighlightedElement()){o.stopPropagation();var n=this.overlay.getHighlightedElement(),p=this.document.getElementById("driver-popover-item"),w=n.node.contains(o.target),x=p&&p.contains(o.target);if(w||x||!this.options.overlayClickNext)if(w||x||!this.options.allowClose){var k=o.target.classList.contains("driver-next-btn"),E=o.target.classList.contains("driver-prev-btn");o.target.classList.contains("driver-close-btn")?this.reset():k?this.handleNext():E&&this.handlePrevious()}else this.reset();else this.handleNext()}}},{key:"onResize",value:function(){this.isActivated&&this.refresh()}},{key:"refresh",value:function(){this.overlay.refresh()}},{key:"onKeyUp",value:function(o){if(this.isActivated&&this.options.keyboardControl)if(o.keyCode!==27){var n=this.getHighlightedElement();n&&n.popover&&(o.keyCode===39?this.handleNext():o.keyCode===37&&this.handlePrevious())}else this.reset()}},{key:"movePrevious",value:function(){var o=this.steps[this.currentStep-1];o?(this.overlay.highlight(o),this.currentStep-=1):this.reset()}},{key:"preventMove",value:function(){this.currentMovePrevented=!0}},{key:"handleNext",value:function(){this.currentMovePrevented=!1;var o=this.steps[this.currentStep];o&&o.options&&o.options.onNext&&o.options.onNext(this.overlay.highlightedElement),this.currentMovePrevented||this.moveNext()}},{key:"handlePrevious",value:function(){this.currentMovePrevented=!1;var o=this.steps[this.currentStep];o&&o.options&&o.options.onPrevious&&o.options.onPrevious(this.overlay.highlightedElement),this.currentMovePrevented||this.movePrevious()}},{key:"moveNext",value:function(){var o=this.steps[this.currentStep+1];o?(this.overlay.highlight(o),this.currentStep+=1):this.reset()}},{key:"hasNextStep",value:function(){return!!this.steps[this.currentStep+1]}},{key:"hasPreviousStep",value:function(){return!!this.steps[this.currentStep-1]}},{key:"reset",value:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.currentStep=0,this.isActivated=!1,this.overlay.clear(o)}},{key:"hasHighlightedElement",value:function(){var o=this.overlay.getHighlightedElement();return o&&o.node}},{key:"getHighlightedElement",value:function(){return this.overlay.getHighlightedElement()}},{key:"getLastHighlightedElement",value:function(){return this.overlay.getLastHighlightedElement()}},{key:"defineSteps",value:function(o){this.steps=[];for(var n=0;n<o.length;n++){var p=this.prepareElementFromStep(o[n],o,n);p&&this.steps.push(p)}}},{key:"prepareElementFromStep",value:function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=Q({},this.options),x=o,k=typeof o!="string"&&!j(o);if(!o||k&&!o.element)throw new Error("Element is required in step ".concat(p));k&&(x=o.element,w=Q({},this.options,o));var E=j(x)?x:this.document.querySelector(x);if(!E)return console.warn("Element to highlight ".concat(x," not found")),null;var _=null;if(w.popover&&w.popover.title){var q=[this.options.className,w.popover.className].filter(function(st){return st}).join(" "),K=Q({},w,w.popover,{className:q,totalCount:n.length,currentIndex:p,isFirst:p===0,isLast:n.length===0||p===n.length-1});_=new V(K,this.window,this.document)}var et=Q({},w),rt=new tt(et,this.window,this.document);return new T({node:E,options:w,popover:_,stage:rt,overlay:this.overlay,window:this.window,document:this.document})}},{key:"start",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;if(!this.steps||this.steps.length===0)throw new Error("There are no steps defined to iterate");this.isActivated=!0,this.currentStep=o,this.overlay.highlight(this.steps[o])}},{key:"highlight",value:function(o){this.isActivated=!0;var n=this.prepareElementFromStep(o);n&&this.overlay.highlight(n)}}])&&nt(c.prototype,g),y}()}]).default})})(dt);var vt=dt.exports;const bt=gt(vt),xt=mt({__proto__:null,default:bt},[vt]);export{xt as d};