mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
11 lines
62 KiB
JavaScript
11 lines
62 KiB
JavaScript
/*!
|
||
* Intro.js v8.3.1
|
||
* https://introjs.com
|
||
*
|
||
* Copyright (C) 2012-2025 Afshin Mehrabani (@afshinmeh).
|
||
* https://introjs.com
|
||
*
|
||
* Date: Sun, 06 Jul 2025 09:03:05 GMT
|
||
*/
|
||
function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e(t){if(Array.isArray(t))return t}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=w(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function a(t){var e=u();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function s(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function f(){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 h(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(){d=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=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(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new j(r||[]);return i(a,"_invoke",{value:O(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",v="executing",p="completed",g={};function b(){}function m(){}function y(){}var w={};u(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(L([])));x&&x!==n&&r.call(x,a)&&(w=x);var S=y.prototype=b.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(i,o,a,s){var l=f(t[i],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function O(e,n,r){var i=h;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=f(e,n,r);if("normal"===u.type){if(i=r.done?p:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=p,r.method="throw",r.arg=u.arg)}}}function E(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=y,i(S,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},C(_.prototype),u(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=L,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),g},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),P(n),g}},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 i=r.arg;P(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function p(t,n){return e(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,n)||w(t,n)||f()}function g(t){return e(t)||c(t)||w(t)||f()}function b(e){return function(e){if(Array.isArray(e))return t(e)}(e)||c(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function w(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function k(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function x(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function S(t){if(null===t||"object"!==y(t)||"nodeType"in t)return t;var e={};for(var n in t)"jQuery"in window&&window.jQuery&&t[n]instanceof window.jQuery?e[n]=t[n]:e[n]=S(t[n]);return e}"function"==typeof SuppressedError&&SuppressedError;var C=function(t,e){return(null!=e?e:document).querySelector(t)},_=function(t,e){return(null!=e?e:document).querySelectorAll(t)},O=function(t){t.setHints([]);var e=t.getTargetElement(),n=t.getOption("hints");if(n&&n.length>0){var r,i=o(n);try{for(i.s();!(r=i.n()).done;){var a=S(r.value);"string"==typeof a.element&&(a.element=C(a.element)),a.hintPosition=a.hintPosition||t.getOption("hintPosition"),a.hintAnimation=a.hintAnimation||t.getOption("hintAnimation"),null!==a.element&&t.addHint(a)}}catch(t){i.e(t)}finally{i.f()}}else{var s=Array.from(_("*[".concat("data-hint","]"),e));if(!s||!s.length)return!1;for(var l=0,u=s;l<u.length;l++){var c=u[l],f=c.getAttribute("data-hint-position"),h=t.getOption("hintAnimation");f&&(h="true"===f),t.addHint({element:c,hint:c.getAttribute("data-hint")||"",hintPosition:c.getAttribute("data-hint-position")||t.getOption("hintPosition"),hintAnimation:h,tooltipClass:c.getAttribute("data-tooltip-class")||void 0,position:c.getAttribute("data-position")||t.getOption("tooltipPosition")})}}return!0};function E(t,e,n){return t[e]=n,t}function A(t,e){for(var n=0,r=Object.entries(e);n<r.length;n++){var i=p(r[n],2);t=E(t,i[0],i[1])}return t}var P=function(t){return"function"==typeof t};var j,L,N,H,T,R=new(function(){function t(){n(this,t)}return i(t,[{key:"on",value:function(t,e,n,r){"addEventListener"in t?t.addEventListener(e,n,r):"attachEvent"in t&&t.attachEvent("on".concat(e),n)}},{key:"off",value:function(t,e,n,r){"removeEventListener"in t?t.removeEventListener(e,n,r):"detachEvent"in t&&t.detachEvent("on".concat(e),n)}}]),t}()),B=function(t){return t?"string"==typeof t?function(t,e){var n=C(t,e);if(!n)throw new Error("Element with selector ".concat(t," not found"));return n}(t):t:document.body};function D(t,e){var n;return x(this,void 0,void 0,d().mark((function r(){var i;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:(i=e.isActive)&&(i.val=!1),t.hideHintDialog(),null===(n=t.callback("hintClose"))||void 0===n||n.call(t,e);case 4:case"end":return r.stop()}}),r)})))}function I(t){return x(this,void 0,void 0,d().mark((function e(){var n,r,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=o(t.getHints()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return i=r.value,e.next=7,D(t,i);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})))}function V(t){return x(this,void 0,void 0,d().mark((function e(){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isRendered()){e.next=5;break}n=o(t.getHints());try{for(n.s();!(r=n.n()).done;)F(r.value)}catch(t){n.e(t)}finally{n.f()}e.next=7;break;case 5:return e.next=7,t.render();case 7:case"end":return e.stop()}}),e)})))}function F(t){var e=t.isActive;e&&(e.val=!0)}var z=Object,G=document,W=z.getPrototypeOf,M={isConnected:1},J={},K=W(M),Y=Function.prototype,Q=function(t,e,n,r){return void 0===t&&(setTimeout(n,r),t=new Set),t.add(e),t},q=function(t,e,n){var r=N;N=e;try{return t(n)}catch(t){return console.error(t),n}finally{N=r}},U=function(t){return t.filter((function(t){var e;return null===(e=t._dom)||void 0===e?void 0:e.isConnected}))},X=function(t){T=Q(T,t,(function(){if(T){var t,e=o(T);try{for(e.s();!(t=e.n()).done;){var n=t.value;n._bindings=U(n._bindings),n._listeners=U(n._listeners)}}catch(t){e.e(t)}finally{e.f()}T=undefined}}),1e3)},Z={get val(){var t;return null===(t=null==N?void 0:N._getters)||void 0===t||t.add(this),this.rawVal},get oldVal(){var t;return null===(t=null==N?void 0:N._getters)||void 0===t||t.add(this),this._oldVal},set val(t){var e,n=this;null===(e=null==N?void 0:N._setters)||void 0===e||e.add(n),t!==n.rawVal&&(n.rawVal=t,n._bindings.length+n._listeners.length?(null==L||L.add(n),j=Q(j,n,lt)):n._oldVal=t)}},$=function(t){return{writable:!0,configurable:!0,enumerable:!0,value:t}},tt=function(t){return z.create(Z,{rawVal:$(t),_oldVal:$(t),_bindings:$([]),_listeners:$([])})},et=function(t,e){var n={_getters:new Set,_setters:new Set},r={f:t},i=H;H=[];var a=q(t,n,e);a=(null!=a?a:G).nodeType?a:new Text(a);var s,l=o(n._getters);try{for(l.s();!(s=l.n()).done;){var u=s.value;n._setters.has(u)||(X(u),u._bindings.push(r))}}catch(t){l.e(t)}finally{l.f()}var c,f=o(H);try{for(f.s();!(c=f.n()).done;){c.value._dom=a}}catch(t){f.e(t)}finally{f.f()}return H=i,r._dom=a},nt=function(t,e,n){var r;e=null!=e?e:tt();var i={_getters:new Set,_setters:new Set},a={f:t,s:e};a._dom=null!==(r=null!=n?n:null==H?void 0:H.push(a))&&void 0!==r?r:M,e.val=q(t,i,e.rawVal);var s,l=o(i._getters);try{for(l.s();!(s=l.n()).done;){var u=s.value;i._setters.has(u)||(X(u),u._listeners.push(a))}}catch(t){l.e(t)}finally{l.f()}return e},rt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i,a=o(n.flat(1/0));try{var s=function(){var e=i.value,n=W(null!=e?e:0),r=n===Z?et((function(){return e.val})):n===Y?et(e):e;null!=r&&t.append(r)};for(a.s();!(i=a.n()).done;)s()}catch(t){a.e(t)}finally{a.f()}return t},it=function(t,e){for(var n,r,i,a,s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];var c,f=W(null!==(n=l[0])&&void 0!==n?n:0)===K?l:[{}].concat(l),h=g(f),d=h[0],v=h.slice(1),m=t?G.createElementNS(t,e):G.createElement(e),y=o(z.entries(d));try{var w=function(){var t=p(c.value,2),n=t[0],o=t[1],s="".concat(e,",").concat(n),l=null!==(r=J[s])&&void 0!==r?r:J[s]=null!==(a=null===(i=function t(e){var r;return e?null!==(r=z.getOwnPropertyDescriptor(e,n))&&void 0!==r?r:t(W(e)):undefined}(W(m)))||void 0===i?void 0:i.set)&&void 0!==a?a:0,u=n.startsWith("on")?function(t,e){var r=n.slice(2);e&&m.removeEventListener(r,e),m.addEventListener(r,t)}:l?l.bind(m):m.setAttribute.bind(m,n),f=W(null!=o?o:0);n.startsWith("on")||f===Y&&(o=nt(o),f=Z),f===Z?et((function(){return u(o.val,o._oldVal),m})):u(o)};for(y.s();!(c=y.n()).done;)w()}catch(t){y.e(t)}finally{y.f()}return rt.apply(void 0,[m].concat(b(v)))},ot=function(t){return{get:function(e,n){return it.bind(undefined,null!=t?t:null,n)}}},at=new Proxy((function(t){return new Proxy(it,ot(t))}),ot()),st=function(t,e){e?e!==t&&t.replaceWith(e):t.remove()},lt=function(){var t=0,e=j?b(j).filter((function(t){return t.rawVal!==t._oldVal})):[];do{L=new Set;var n,r=o(new Set(e.flatMap((function(t){return t._listeners=U(t._listeners)}))));try{for(r.s();!(n=r.n()).done;){var i=n.value;nt(i.f,i.s,i._dom),i._dom=undefined}}catch(t){r.e(t)}finally{r.f()}}while(++t<100&&(e=b(L)).length);var a=j?b(j).filter((function(t){return t.rawVal!==t._oldVal})):[];j=undefined;var s,l=o(new Set(a.flatMap((function(t){return t._bindings=U(t._bindings)}))));try{for(l.s();!(s=l.n()).done;){var u=s.value;u._dom&&st(u._dom,et(u.f,u._dom)),u._dom=undefined}}catch(t){l.e(t)}finally{l.f()}var c,f=o(a);try{for(f.s();!(c=f.n()).done;){var h=c.value;h._oldVal=h.rawVal}}catch(t){f.e(t)}finally{f.f()}},ut={add:rt,tags:at,state:tt,derive:nt,hydrate:function(t,e){return st(t,et(e,t))}},ct="introjs-hints";function ft(t,e){var n="";return"currentStyle"in t?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function ht(t){var e=t.parentElement;return!(!e||"HTML"===e.nodeName)&&("fixed"===ft(t,"position")||ht(e))}function dt(t,e){var n=document.body,r=document.documentElement,i=window.pageYOffset||r.scrollTop||n.scrollTop,o=window.pageXOffset||r.scrollLeft||n.scrollLeft;e=e||n;var a=t.getBoundingClientRect(),s=e.getBoundingClientRect(),l=ft(e,"position"),u={top:0,left:0};return u="body"!==e.tagName.toLowerCase()&&"relative"===l||"sticky"===l?Object.assign(u,{top:a.top-s.top,left:a.left-s.left}):ht(t)?Object.assign(u,{top:a.top,left:a.left}):Object.assign(u,{top:a.top+i,left:a.left+o}),Object.assign(Object.assign({},u),{width:a.width,height:a.height,bottom:u.top+a.height,right:u.left+a.width,absoluteTop:a.top,absoluteLeft:a.left,absoluteBottom:a.bottom,absoluteRight:a.right})}var vt=ut.tags,pt=vt.a,gt=vt.div,bt=function(t){var e,n=t.index,r=t.hintItem,i=t.onClick,o=t.refreshesSignal,a=pt((s(e={},"data-step",n.toString()),s(e,"className",(function(){return function(t){var e,n=["introjs-hint"];return t.hintAnimation||n.push("introjs-hint-no-anim"),ht(t.element)&&n.push("introjs-fixedhint"),(null===(e=t.isActive)||void 0===e?void 0:e.val)||n.push("introjs-hidehint"),n.join(" ")}(r)})),s(e,"role","button"),s(e,"tabindex",0),s(e,"onclick",i),e),gt({className:"introjs-hint-dot"}),gt({className:"introjs-hint-pulse"}));return ut.derive((function(){void 0!==o.val&&function(t,e,n){if(void 0!==n){var r=dt(n),i=20,o=20;switch(t){default:case"top-left":e.style.left="".concat(r.left,"px"),e.style.top="".concat(r.top,"px");break;case"top-right":e.style.left="".concat(r.left+r.width-i,"px"),e.style.top="".concat(r.top,"px");break;case"bottom-left":e.style.left="".concat(r.left,"px"),e.style.top="".concat(r.top+r.height-o,"px");break;case"bottom-right":e.style.left="".concat(r.left+r.width-i,"px"),e.style.top="".concat(r.top+r.height-o,"px");break;case"middle-left":e.style.left="".concat(r.left,"px"),e.style.top="".concat(r.top+(r.height-o)/2,"px");break;case"middle-right":e.style.left="".concat(r.left+r.width-i,"px"),e.style.top="".concat(r.top+(r.height-o)/2,"px");break;case"middle-middle":e.style.left="".concat(r.left+(r.width-i)/2,"px"),e.style.top="".concat(r.top+(r.height-o)/2,"px");break;case"bottom-middle":e.style.left="".concat(r.left+(r.width-i)/2,"px"),e.style.top="".concat(r.top+r.height-o,"px");break;case"top-middle":e.style.left="".concat(r.left+(r.width-i)/2,"px"),e.style.top="".concat(r.top,"px")}}}(r.hintPosition,a,r.element)})),a},mt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(t instanceof SVGElement){var s=t.getAttribute("class")||"";s.match(a)||yt(t,s,a)}else void 0!==t.classList?t.classList.add(a):t.className.match(a)||yt(t,t.className,a)}},yt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=n.filter(Boolean).join(" ");t instanceof SVGElement?t.setAttribute("class",i):void 0!==t.classList?t.classList.value=i:t.className=i},wt=function(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n.replace(e,"").replace(/\s\s+/g," ").trim())}else t.className=t.className.replace(e,"").replace(/\s\s+/g," ").trim()},kt=function(t){var e="";for(var n in t)e+="".concat(n,":").concat(t[n],";");return e};var xt=function(t,e,n,r){var i=function(t,e,n,r){if(e&&t&&n){n instanceof Element&&ht(n)?mt(e,"introjs-fixedTooltip"):wt(e,"introjs-fixedTooltip");var i=dt(n,t);return{width:"".concat(i.width+r,"px"),height:"".concat(i.height+r,"px"),top:"".concat(i.top-r/2,"px"),left:"".concat(i.left-r/2,"px")}}}(t,e,n,r);i&&function(t,e){var n="";t.style.cssText&&(n+=t.style.cssText),n+="string"==typeof e?e:kt(e),t.style.cssText=n}(e,i)};function St(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function Ct(t,e){t.includes(e)&&t.splice(t.indexOf(e),1)}function _t(t,e,n,r,i,o){var a=t.slice();r+=10,n+=20;var s="floating";if(e.absoluteBottom+r>o.height&&Ct(a,"bottom"),e.absoluteTop-r<0&&Ct(a,"top"),e.absoluteRight+n>o.width&&Ct(a,"right"),e.absoluteLeft-n<0&&Ct(a,"left"),i&&(i=i.split("-")[0]),a.length&&(s=a[0],a.includes(i)&&(s=i)),"top"===s||"bottom"===s){var l,u=[];"top"===s?(l="top-middle-aligned",u=["top-left-aligned","top-middle-aligned","top-right-aligned"]):(l="bottom-middle-aligned",u=["bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned"]),s=function(t,e,n,r){var i=e/2,o=Math.min(n,window.screen.width);return o-t<e&&(Ct(r,"top-left-aligned"),Ct(r,"bottom-left-aligned")),(t<i||o-t<i)&&(Ct(r,"top-middle-aligned"),Ct(r,"bottom-middle-aligned")),t<e&&(Ct(r,"top-right-aligned"),Ct(r,"bottom-right-aligned")),r.length?r[0]:null}(e.absoluteLeft,n,o.width,u)||l}return s}var Ot=ut.tags.div;function Et(t,e,n,r,i){return t.left+t.width-e-n<0?(r.val="-".concat(t.left,"px"),!1):(i.val="".concat(e,"px"),!0)}function At(t,e,n,r,i){return t.left+n+r>e.width?(i.val="".concat(e.width-r-t.left,"px"),!1):(i.val="".concat(n,"px"),!0)}var Pt=function(t,e){var n=t.position,r=t.element,i=t.refreshes,o=t.hintMode,a=void 0!==o&&o,s=t.showStepNumbers,l=void 0!==s&&s,u=t.transitionDuration,c=void 0===u?0:u,f=t.positionPrecedence,h=void 0===f?[]:f,d=t.className,v=t.autoPosition,p=void 0===v||v,g=t.onClick,b=ut.state("auto"),m=ut.state("auto"),y=ut.state("auto"),w=ut.state("auto"),k=ut.state("0"),x=ut.state("0"),S=ut.state(0),C=ut.state(250),_=ut.state(300),O=ut.state(n),E=ut.state(St()),A=ut.state(dt(r)),P=ut.derive((function(){return A.val.top+C.val>E.val.height}));ut.derive((function(){void 0!==i.val&&(E.val=St(),A.val=dt(r))})),ut.derive((function(){void 0!==O.val&&"floating"!==n&&p&&_.val&&C.val&&A.val&&E.val&&(O.val=_t(h,A.val,_.val,C.val,n,E.val))})),ut.derive((function(){void 0!==_.val&&void 0!==C.val&&void 0!==P.val&&void 0!==O.val&&void 0!==A.val&&void 0!==E.val&&function(t,e,n,r,i,o,a,s,l,u,c,f,h,d){o.val="auto",a.val="auto",s.val="auto",l.val="auto",u.val="0",c.val="0";var v=e.width/2-r/2;switch(t){case"top-right-aligned":var p=0;Et(e,p,r,s,l),a.val="".concat(e.height+20,"px");break;case"top-middle-aligned":d&&(v+=5),Et(e,v,r,s,l)&&(l.val=void 0,At(e,n,v,r,s)),a.val="".concat(e.height+20,"px");break;case"top-left-aligned":case"top":At(e,n,d?0:15,r,s),a.val="".concat(e.height+20,"px");break;case"right":s.val="".concat(e.width+20,"px"),f.val&&(o.val="-".concat(i-e.height-20,"px"));break;case"left":d||!0!==h||(o.val="15px"),f.val&&(o.val="-".concat(i-e.height-20,"px")),l.val="".concat(e.width+20,"px");break;case"floating":s.val="50%",o.val="50%",u.val="-".concat(r/2,"px"),c.val="-".concat(i/2,"px");break;case"bottom-right-aligned":Et(e,p=0,r,s,l),o.val="".concat(e.height+20,"px");break;case"bottom-middle-aligned":d&&(v+=5),Et(e,v,r,s,l)&&(l.val="",At(e,n,v,r,s)),o.val="".concat(e.height+20,"px");break;default:At(e,n,0,r,s),o.val="".concat(e.height+20,"px")}}(O.val,A.val,E.val,_.val,C.val,b,y,w,m,k,x,P,l,a)}));var j,L,N=Ot({style:function(){return"top: ".concat(b.val,"; right: ").concat(m.val,"; bottom: ").concat(y.val,"; left: ").concat(w.val,"; margin-left: ").concat(k.val,"; margin-top: ").concat(x.val,";opacity: ").concat(S.val)},className:function(){return"".concat("introjs-tooltip"," introjs-").concat(O.val," ").concat(d||"")},role:"dialog",onclick:null!=g?g:null},[(j={tooltipPosition:O,tooltipBottomOverflow:P},L=ut.derive((function(){var t=["introjs-arrow"];switch(j.tooltipPosition.val){case"top-right-aligned":t.push("bottom-right");break;case"top-middle-aligned":t.push("bottom-middle");break;case"top-left-aligned":case"top":t.push("bottom");break;case"right":j.tooltipBottomOverflow.val?t.push("left-bottom"):t.push("left");break;case"left":j.tooltipBottomOverflow.val?t.push("right-bottom"):t.push("right");break;case"floating":break;case"bottom-right-aligned":t.push("top-right");break;case"bottom-middle-aligned":t.push("top-middle");break;default:t.push("top")}return t})),Ot({className:function(){var t;return null===(t=L.val)||void 0===t?void 0:t.filter(Boolean).join(" ")},style:function(){return"display: ".concat("floating"===j.tooltipPosition.val?"none":"block",";")}})),[e]]);return setTimeout((function(){S.val=1}),c),setTimeout((function(){C.val=N.offsetHeight,_.val=N.offsetWidth}),1),N},jt=ut.tags.div,Lt=function(t){var e=t.text,n=t.tooltipRenderAsHtml,r=t.className,i=jt({className:r});return ut.derive((function(){var t=i;if(t)if(t.innerHTML="",n&&e){var r=document.createRange().createContextualFragment(e);t.appendChild(r)}else t.textContent=e})),i},Nt=ut.tags,Ht=Nt.a,Tt=Nt.div,Rt=ut.tags.div,Bt=function(t){var e=t.activeHintSignal,n=t.targetElement,r=t.helperElementPadding,i=k(t,["activeHintSignal","targetElement","helperElementPadding"]),o=e.val;return function(){var t;if(null==e.val)return null;if(o!==e.val)return null;var a=Rt((s(t={},"data-step",e.val),s(t,"className","".concat("introjs-tooltipReferenceLayer"," ").concat("introjs-hintReference")),t),function(t){var e=t.hintItem,n=t.closeButtonEnabled,r=t.closeButtonOnClick,i=t.closeButtonLabel,o=t.closeButtonClassName,a=t.className,s=t.renderAsHtml,l=k(t,["hintItem","closeButtonEnabled","closeButtonOnClick","closeButtonLabel","closeButtonClassName","className","renderAsHtml"]),u=e.hint;return Pt(Object.assign(Object.assign({},l),{element:e.hintTooltipElement,position:e.position,hintMode:!0,onClick:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}}),[Tt({className:"".concat("introjs-tooltiptext"," ").concat(a||"")},Lt({text:u||"",tooltipRenderAsHtml:s,className:"introjs-tooltiptext"}),n?Ht({className:o,role:"button",onclick:function(){return r(e)}},i):null)])}(i));return setTimeout((function(){xt(n,a,i.hintItem.hintTooltipElement,r)}),1),a}},Dt=ut.tags.div,It=function(t,e){return function(n){var r=n||window.event;r&&r.stopPropagation&&r.stopPropagation(),r&&null!==r.cancelBubble&&(r.cancelBubble=!0),t.showHintDialog(e)}},Vt=function(){function t(e,r){n(this,t),this._hints=[],this._activeHintSignal=ut.state(void 0),this._refreshesSignal=ut.state(0),this.callbacks={},this._targetElement=B(e),this._options=r?A(this._options,r):{hints:[],isActive:!0,tooltipPosition:"bottom",tooltipClass:"",hintPosition:"top-middle",hintButtonLabel:"Got it",hintShowButton:!0,hintAutoRefreshInterval:10,hintAnimation:!0,buttonClass:"introjs-button",helperElementPadding:10,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],tooltipRenderAsHtml:!0}}return i(t,[{key:"callback",value:function(t){var e=this.callbacks[t];if(P(e))return e}},{key:"getTargetElement",value:function(){return this._targetElement}},{key:"getHints",value:function(){return this._hints}},{key:"getHint",value:function(t){return this._hints[t]}},{key:"setHints",value:function(t){return this._hints=t,this}},{key:"addHint",value:function(t){return t.isActive=ut.state(!0),this._hints.push(t),this}},{key:"getActiveHintSignal",value:function(){return this._activeHintSignal}},{key:"getRefreshesSignal",value:function(){return this._refreshesSignal}},{key:"isRendered",value:function(){return void 0!==this._root}},{key:"createRoot",value:function(){this._root=function(t){var e,n=t.hint,r=[],i=o(n.getHints().entries());try{for(i.s();!(e=i.n()).done;){var a=p(e.value,2),s=a[0],l=a[1],u=bt({index:s,hintItem:l,onClick:It(n,s),refreshesSignal:n.getRefreshesSignal()});l.hintTooltipElement=u,r.push(u)}}catch(t){i.e(t)}finally{i.f()}var c=Dt.apply(void 0,[{className:ct}].concat(r));return ut.derive((function(){var t=n.getActiveHintSignal();if(void 0!==t.val){var e=t.val,r=n.getHints()[e];if(r){var i=Bt({activeHintSignal:t,hintItem:r,helperElementPadding:n.getOption("helperElementPadding"),targetElement:n.getTargetElement(),refreshes:n.getRefreshesSignal(),showStepNumbers:!1,autoPosition:n.getOption("autoPosition"),positionPrecedence:n.getOption("positionPrecedence"),closeButtonEnabled:n.getOption("hintShowButton"),closeButtonLabel:n.getOption("hintButtonLabel"),closeButtonClassName:n.getOption("buttonClass"),closeButtonOnClick:function(t){return D(n,t)},className:n.getOption("tooltipClass")});ut.add(c,i)}}})),c}({hint:this}),ut.add(this._targetElement,this._root)}},{key:"recreateRoot",value:function(){this._root&&(this._root.remove(),this.createRoot())}},{key:"render",value:function(){var t;return x(this,void 0,void 0,d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isActive()){e.next=2;break}return e.abrupt("return",this);case 2:if(!this.isRendered()){e.next=4;break}return e.abrupt("return",this);case 4:return O(this),this.createRoot(),null===(t=this.callback("hintsAdded"))||void 0===t||t.call(this),this.enableHintAutoRefresh(),this.enableCloseDialogOnWindowClick(),e.abrupt("return",this);case 10:case"end":return e.stop()}}),e,this)})))}},{key:"enableCloseDialogOnWindowClick",value:function(){var t=this;this._windowClickFunction=function(){t._activeHintSignal.val=void 0},R.on(document,"click",this._windowClickFunction,!1)}},{key:"disableCloseDialogOnWindowClick",value:function(){this._windowClickFunction&&R.off(document,"click",this._windowClickFunction,!1)}},{key:"addHints",value:function(){return x(this,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.render());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"hideHint",value:function(t){return x(this,void 0,void 0,d().mark((function e(){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.getHint(t))){e.next=4;break}return e.next=4,D(this,n);case 4:return e.abrupt("return",this);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"hideHints",value:function(){return x(this,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I(this);case 2:return t.abrupt("return",this);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"showHint",value:function(t){var e=this.getHint(t);return e&&F(e),this}},{key:"showHints",value:function(){return x(this,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,V(this);case 2:return t.abrupt("return",this);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"destroy",value:function(){return this._root&&(this._root.remove(),this._root=void 0),this.disableHintAutoRefresh(),this.disableCloseDialogOnWindowClick(),this}},{key:"removeHints",value:function(){return this.destroy(),this}},{key:"removeHint",value:function(t){return this._hints=this._hints.filter((function(e,n){return n!==t})),this.recreateRoot(),this}},{key:"showHintDialog",value:function(t){var e;return x(this,void 0,void 0,d().mark((function n(){var r;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=this.getHint(t)){n.next=3;break}return n.abrupt("return");case 3:if(this._activeHintSignal.val===t){n.next=9;break}return this._activeHintSignal.val=t,n.next=7,null===(e=this.callback("hintClick"))||void 0===e?void 0:e.call(this,r);case 7:n.next=10;break;case 9:this._activeHintSignal.val=void 0;case 10:return n.abrupt("return",this);case 11:case"end":return n.stop()}}),n,this)})))}},{key:"hideHintDialog",value:function(){return this._activeHintSignal.val=void 0,this}},{key:"refresh",value:function(){return this.isRendered()?(void 0!==this._refreshesSignal.val&&(this._refreshesSignal.val+=1),this):this}},{key:"enableHintAutoRefresh",value:function(){var t,e,n,r=this,i=this.getOption("hintAutoRefreshInterval");return i>=0&&(this._hintsAutoRefreshFunction=(t=function(){return r.refresh()},e=i,function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];window.clearTimeout(n),n=window.setTimeout((function(){t(i)}),e)}),R.on(window,"scroll",this._hintsAutoRefreshFunction,!0),R.on(window,"resize",this._hintsAutoRefreshFunction,!0)),this}},{key:"disableHintAutoRefresh",value:function(){return this._hintsAutoRefreshFunction&&(R.off(window,"scroll",this._hintsAutoRefreshFunction,!0),R.on(window,"resize",this._hintsAutoRefreshFunction,!0),this._hintsAutoRefreshFunction=void 0),this}},{key:"getOption",value:function(t){return this._options[t]}},{key:"setOptions",value:function(t){return this._options=A(this._options,t),this}},{key:"setOption",value:function(t,e){return this._options=E(this._options,t,e),this}},{key:"clone",value:function(){return new t(this._targetElement,this._options)}},{key:"isActive",value:function(){return this.getOption("isActive")}},{key:"onHintsAdded",value:function(t){if(!P(t))throw new Error("Provided callback for onhintsadded was not a function.");return this.callbacks.hintsAdded=t,this}},{key:"onhintsadded",value:function(t){this.onHintsAdded(t)}},{key:"onHintClick",value:function(t){if(!P(t))throw new Error("Provided callback for onhintclick was not a function.");return this.callbacks.hintClick=t,this}},{key:"onhintclick",value:function(t){this.onHintClick(t)}},{key:"onHintClose",value:function(t){if(!P(t))throw new Error("Provided callback for onhintclose was not a function.");return this.callbacks.hintClose=t,this}},{key:"onhintclose",value:function(t){this.onHintClose(t)}}]),t}();function Ft(t){mt(t,"introjs-showElement");var e=ft(t,"position");"absolute"!==e&&"relative"!==e&&"sticky"!==e&&"fixed"!==e&&mt(t,"introjs-relativePosition")}function zt(t,e){var n,r;return x(this,void 0,void 0,d().mark((function i(){return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return null===(n=t.callback("change"))||void 0===n||n.call(t,e.element),Gt(),Ft(e.element),i.next=5,null===(r=t.callback("afterChange"))||void 0===r?void 0:r.call(t,e.element);case 5:case"end":return i.stop()}}),i)})))}function Gt(){for(var t,e=0,n=Array.from(_(".".concat("introjs-showElement"),t));e<n.length;e++){var r=n[e];wt(r,/introjs-[a-zA-Z]+/g)}}function Wt(t){var e,n;return x(this,void 0,void 0,d().mark((function r(){var i,o;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.incrementCurrentStep(),void 0!==(i=t.getCurrentStep())){r.next=4;break}return r.abrupt("return",!1);case 4:return o=t.getStep(i),!0,r.next=8,null===(e=t.callback("beforeChange"))||void 0===e?void 0:e.call(t,o&&o.element,t.getCurrentStep(),t.getDirection());case 8:if(!1!==r.sent){r.next=12;break}return t.decrementCurrentStep(),r.abrupt("return",!1);case 12:if(!t.isEnd()){r.next=18;break}return r.next=15,null===(n=t.callback("complete"))||void 0===n?void 0:n.call(t,t.getCurrentStep(),"end");case 15:return r.next=17,t.exit();case 17:return r.abrupt("return",!1);case 18:return r.next=20,zt(t,o);case 20:return r.abrupt("return",!0);case 21:case"end":return r.stop()}}),r)})))}function Mt(t){var e;return x(this,void 0,void 0,d().mark((function n(){var r,i;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(void 0===(r=t.getCurrentStep())||r<=0)){n.next=3;break}return n.abrupt("return",!1);case 3:if(t.decrementCurrentStep(),void 0!==(r=t.getCurrentStep())){n.next=7;break}return n.abrupt("return",!1);case 7:return i=t.getStep(r),!0,n.next=11,null===(e=t.callback("beforeChange"))||void 0===e?void 0:e.call(t,i&&i.element,t.getCurrentStep(),t.getDirection());case 11:if(!1!==n.sent){n.next=15;break}return t.incrementCurrentStep(),n.abrupt("return",!1);case 15:return n.next=17,zt(t,i);case 17:return n.abrupt("return",!0);case 18:case"end":return n.stop()}}),n)})))}var Jt=function(t){var e,n=[];if(null===(e=t.getOption("steps"))||void 0===e?void 0:e.length){var r,i=o(t.getOption("steps"));try{for(i.s();!(r=i.n()).done;){var a=S(r.value);a.step=n.length+1,a.title=a.title||"","string"==typeof a.element&&(a.element=C(a.element)||void 0),a.element||(a.element=t.appendFloatingElement(),a.position="floating"),a.position=a.position||t.getOption("tooltipPosition"),a.scrollTo=a.scrollTo||t.getOption("scrollTo"),void 0===a.disableInteraction&&(a.disableInteraction=t.getOption("disableInteraction")),null!==a.element&&n.push(a)}}catch(t){i.e(t)}finally{i.f()}}else{var s=Array.from(_("*[".concat("data-intro","]"),t.getTargetElement()));if(s.length<1)return[];for(var l=[],u=0,c=s;u<c.length;u++){var f=c[u];if((!t.getOption("group")||f.getAttribute("data-intro-group")===t.getOption("group"))&&"none"!==f.style.display){var h=parseInt(f.getAttribute("data-step")||"0",10),d=t.getOption("disableInteraction");f.hasAttribute("data-disable-interaction")&&(d=!!f.getAttribute("data-disable-interaction"));var v={step:h,element:f,title:f.getAttribute("data-title")||"",intro:f.getAttribute("data-intro")||"",tooltipClass:f.getAttribute("data-tooltip-class")||void 0,highlightClass:f.getAttribute("data-highlight-class")||void 0,position:f.getAttribute("data-position")||t.getOption("tooltipPosition"),scrollTo:f.getAttribute("data-scroll-to")||t.getOption("scrollTo"),disableInteraction:d};h>0?n[h-1]=v:l.push(v)}}for(var p=0;l.length>0;p++)if(void 0===n[p]){var g=l.shift();if(!g)break;g.step=p+1,n[p]=g}}return(n=n.filter((function(t){return t}))).sort((function(t,e){return t.step-e.step})),n};var Kt=function(t){return x(void 0,void 0,void 0,d().mark((function e(){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isActive()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!t.hasStarted()){e.next=4;break}return e.abrupt("return",!1);case 4:return e.next=6,null===(n=t.callback("start"))||void 0===n?void 0:n.call(t,t.getTargetElement());case 6:if(0!==(r=Jt(t)).length){e.next=9;break}return e.abrupt("return",!1);case 9:return t.setSteps(r),e.next=12,Wt(t);case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})))};function Yt(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return x(this,void 0,void 0,d().mark((function i(){var o,a;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=t.getTargetElement(),a=!0,i.next=4,null===(e=t.callback("beforeExit"))||void 0===e?void 0:e.call(t,o);case 4:if(a=i.sent,r||!1!==a){i.next=7;break}return i.abrupt("return",!1);case 7:return Gt(),i.next=10,null===(n=t.callback("exit"))||void 0===n?void 0:n.call(t);case 10:return t.resetCurrentStep(),i.abrupt("return",!0);case 12:case"end":return i.stop()}}),i)})))}function Qt(t,e,n){var r,i=(s(r={},t,e),s(r,"path","/"),s(r,"expires",void 0),r);if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),i.expires=o.toUTCString()}var a=[];for(var l in i)a.push("".concat(l,"=").concat(i[l]));return document.cookie=a.join("; "),qt(t)}function qt(t){return(e={},document.cookie.split(";").forEach((function(t){var n=p(t.split("="),2),r=n[0],i=n[1];e[r.trim()]=i})),e)[t];var e}function Ut(t,e,n){t?Qt(e,"true",n):Qt(e,"",-1)}var Xt=function(t,e,n,r){xt(t,e,n.element,"floating"===n.position?0:r)};function Zt(t,e){if(t){var n=function(t){var e=window.getComputedStyle(t),n="absolute"===e.position,r=/(auto|scroll)/;if("fixed"===e.position)return document.body;for(var i=t;i=i.parentElement;)if(e=window.getComputedStyle(i),(!n||"static"!==e.position)&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.body}(e);n!==document.body&&(n.scrollTop=e.offsetTop-n.offsetTop)}}function $t(t,e,n,r,i){var o;if("off"!==e&&(t&&(o="tooltip"===e?i.getBoundingClientRect():r.getBoundingClientRect(),!function(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}(r)))){var a=St().height;o.bottom-(o.bottom-o.top)<0||r.clientHeight>a?window.scrollBy(0,o.top-(a/2-o.height/2)-n):window.scrollBy(0,o.top-(a/2-o.height/2)+n)}}var te=ut.tags,ee=te.h1,ne=te.div,re=te.input,ie=te.label,oe=te.ul,ae=te.li,se=te.a,le=function(t){var e=t.label,n=t.onClick,r=t.disabled,i=t.className;return se({role:"button",tabIndex:0,ariaDisabled:null!=r&&r,onclick:n,className:null!=i?i:""},[e])},ue=function(t){var e=t.steps,n=t.currentStep,r=t.buttonClass,i=t.nextToDone,o=t.doneLabel,a=t.hideNext,s=t.nextLabel,l=t.onNextClick,u=t.hidePrev,c=t.prevLabel,f=t.onPrevClick;return ne({className:"introjs-tooltipbuttons"},e.length>1?function(t){var e=t.label,n=t.steps,r=t.currentStep,i=t.hidePrev,o=t.hideNext,a=t.onClick,s=t.buttonClass,l=0===r&&n.length>1,u=l&&!i,c=l&&i,f=(r===n.length-1||1===n.length)&&o;return le({label:e,onClick:a,disabled:u,className:function(){var t=[s,"introjs-prevbutton"];return f&&t.push("introjs-fullbutton"),u&&t.push("introjs-disabled"),c&&t.push("introjs-hidden"),t.filter(Boolean).join(" ")}})}({label:c,steps:e,currentStep:n,hidePrev:u,hideNext:a,onClick:f,buttonClass:r}):null,function(t){var e=t.steps,n=t.currentStep,r=t.nextLabel,i=t.doneLabel,o=t.hideNext,a=t.hidePrev,s=t.nextToDone,l=t.onClick,u=t.buttonClass,c=0===n&&e.length>1&&a,f=n===e.length-1||1===e.length,h=ut.derive((function(){return f&&!o&&!s})),d=ut.derive((function(){return f&&!o&&s})),v=le({label:d.val?i:r,onClick:l,className:function(){var t=[u,"introjs-nextbutton"];return d.val&&t.push("introjs-donebutton"),h.val&&t.push("introjs-disabled"),c&&t.push("introjs-fullbutton"),t.filter(Boolean).join(" ")}});return setTimeout((function(){v.focus()}),1),v}({currentStep:n,steps:e,doneLabel:o,nextLabel:s,onClick:l,hideNext:a,hidePrev:u,nextToDone:i,buttonClass:r}))},ce=function(t){var e=t.step,n=t.currentStep,r=t.steps,i=t.onBulletClick,o=t.bullets,a=t.buttons,l=t.nextLabel,u=t.onNextClick,c=t.prevLabel,f=t.onPrevClick,h=t.skipLabel,d=t.onSkipClick,v=t.buttonClass,p=t.nextToDone,g=t.doneLabel,m=t.hideNext,y=t.hidePrev,w=t.progress,x=t.progressBarAdditionalClass,S=t.stepNumbers,C=t.stepNumbersOfLabel,_=t.scrollToElement,O=t.scrollPadding,E=t.dontShowAgain,A=t.onDontShowAgainChange,P=t.dontShowAgainLabel,j=t.renderAsHtml,L=k(t,["step","currentStep","steps","onBulletClick","bullets","buttons","nextLabel","onNextClick","prevLabel","onPrevClick","skipLabel","onSkipClick","buttonClass","nextToDone","doneLabel","hideNext","hidePrev","progress","progressBarAdditionalClass","stepNumbers","stepNumbersOfLabel","scrollToElement","scrollPadding","dontShowAgain","onDontShowAgainChange","dontShowAgainLabel","renderAsHtml"]),N=[],H=e.title,T=e.intro,R=e.position;N.push(function(t){var e=t.title,n=t.skipLabel,r=t.onSkipClick;return ne({className:"introjs-tooltip-header"},[ee({className:"introjs-tooltip-title"},e),le({className:"introjs-skipbutton",label:n,onClick:r})])}({title:H,skipLabel:h,onSkipClick:d})),N.push(Lt({text:T,tooltipRenderAsHtml:j,className:"introjs-tooltiptext"})),E&&N.push(function(t){var e=t.dontShowAgainLabel,n=t.onDontShowAgainChange;return ne({className:"introjs-dontShowAgain"},[re({type:"checkbox",id:"introjs-dontShowAgain",name:"introjs-dontShowAgain",onchange:function(t){n(t.target.checked)}}),ie({for:"introjs-dontShowAgain"},e)])}({dontShowAgainLabel:P,onDontShowAgainChange:A})),o&&N.push(function(t){var e=t.step,n=t.steps,r=t.onBulletClick;return ne({className:"introjs-bullets"},[oe({role:"tablist"},b(n.map((function(t){var n=t.step;return ae({role:"presentation"},[se(s({role:"tab",className:function(){return"".concat(e.step===n?"active":"")},onclick:function(t){var e=t.target.getAttribute("data-step-number");e&&r(parseInt(e,10))},innerHTML:" "},"data-step-number",n))])}))))])}({step:e,steps:r,onBulletClick:i})),w&&N.push(function(t){var e=t.steps,n=t.currentStep,r=t.progressBarAdditionalClass,i=(n+1)/e.length*100;return ne({className:"introjs-progress"},[ne({className:"".concat("introjs-progressbar"," ").concat(r||""),role:"progress","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":function(){return i.toString()},style:"width:".concat(i,"%;")})])}({steps:r,currentStep:n,progressBarAdditionalClass:x})),S&&N.push(function(t){var e=t.step,n=t.steps,r=t.stepNumbersOfLabel;return ne({className:"introjs-helperNumberLayer"},["".concat(e.step," ").concat(r," ").concat(n.length)])}({step:e,steps:r,stepNumbersOfLabel:C})),a&&N.push(ue({steps:r,currentStep:n,nextLabel:l,onNextClick:u,prevLabel:c,onPrevClick:f,buttonClass:v,nextToDone:p,doneLabel:g,hideNext:m,hidePrev:y}));var B=Pt(Object.assign(Object.assign({},L),{element:e.element,hintMode:!1,position:R}),N);return function(t){var e=t.step,n=t.tooltip,r=t.scrollToElement,i=t.scrollPadding;Zt(r,e.element),$t(r,e.scrollTo,i,e.element,n)}({step:e,tooltip:B,scrollToElement:_,scrollPadding:O}),B},fe=ut.tags.div,he=ut.tags.div,de=ut.tags.div,ve=ut.tags.div,pe=ut.tags.div,ge=function(t){var e=t.tour,n=e.getCurrentStepSignal(),r=e.getRefreshesSignal(),i=e.getSteps(),o=function(t){var e=t.currentStep,n=t.steps,r=t.refreshes,i=t.targetElement,o=t.tourHighlightClass,a=t.overlayOpacity,s=t.helperLayerPadding,l=ut.derive((function(){return void 0!==e.val?n[e.val]:null})),u=he({className:function(){return function(t){var e=t.step,n=t.tourHighlightClass,r="introjs-helperLayer";return e.val&&"string"==typeof e.val.highlightClass&&(r+=" ".concat(e.val.highlightClass)),"string"==typeof n&&(r+=" ".concat(n)),r}({step:l,tourHighlightClass:o})},style:kt({"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(a.toString(),") 0 0 0 5000px")})});return ut.derive((function(){l.val&&void 0!==r.val&&Xt(i,u,l.val,s)})),u}({currentStep:n,steps:i,refreshes:r,targetElement:e.getTargetElement(),tourHighlightClass:e.getOption("highlightClass"),overlayOpacity:e.getOption("overlayOpacity"),helperLayerPadding:e.getOption("helperElementPadding")}),a=ut.state(0),s=0,l=pe({className:"introjs-tour",style:function(){return kt({opacity:"".concat(a.val)})}},o,(function(){if(void 0===n.val)return null;var t=ut.derive((function(){return void 0!==n.val?i[n.val]:null}));if(!t.val)return null;var o=function(t){var e=t.exitOnOverlayClick,n=t.onExitTour,r=ve({className:"introjs-overlay",style:kt({top:0,bottom:0,left:0,right:0,position:"fixed",cursor:e?"pointer":"auto"})});return e&&(r.onclick=function(){return x(void 0,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:case"end":return t.stop()}}),t)})))}),r}({exitOnOverlayClick:!0===e.getOption("exitOnOverlayClick"),onExitTour:function(){return x(void 0,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.exit());case 1:case"end":return t.stop()}}),t)})))}}),a=function(t){var e=t.targetElement,n=t.helperElementPadding,r=k(t,["targetElement","helperElementPadding"]),i=fe({className:"introjs-tooltipReferenceLayer"},ce(r));return ut.derive((function(){null!=r.refreshes.val&&Xt(e,i,r.step,n)})),i}({step:t.val,targetElement:e.getTargetElement(),refreshes:r,helperElementPadding:e.getOption("helperElementPadding"),transitionDuration:s,positionPrecedence:e.getOption("positionPrecedence"),autoPosition:e.getOption("autoPosition"),showStepNumbers:e.getOption("showStepNumbers"),steps:e.getSteps(),currentStep:n.val,onBulletClick:function(t){e.goToStep(t)},bullets:e.getOption("showBullets"),buttons:e.getOption("showButtons"),nextLabel:e.getOption("nextLabel"),onNextClick:function(t){return x(void 0,void 0,void 0,d().mark((function n(){var r;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.isLastStep()){n.next=5;break}return n.next=3,Wt(e);case 3:n.next=10;break;case 5:if(!new RegExp("introjs-donebutton","gi").test(t.target.className)){n.next=10;break}return n.next=8,null===(r=e.callback("complete"))||void 0===r?void 0:r.call(e,e.getCurrentStep(),"done");case 8:return n.next=10,e.exit();case 10:case"end":return n.stop()}}),n)})))},prevLabel:e.getOption("prevLabel"),onPrevClick:function(){return x(void 0,void 0,void 0,d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(void 0!==(n=e.getCurrentStep())&&n>0)){t.next=4;break}return t.next=4,Mt(e);case 4:case"end":return t.stop()}}),t)})))},skipLabel:e.getOption("skipLabel"),onSkipClick:function(){return x(void 0,void 0,void 0,d().mark((function t(){var n,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isLastStep()){t.next=3;break}return t.next=3,null===(n=e.callback("complete"))||void 0===n?void 0:n.call(e,e.getCurrentStep(),"skip");case 3:return t.next=5,null===(r=e.callback("skip"))||void 0===r?void 0:r.call(e,e.getCurrentStep());case 5:return t.next=7,e.exit();case 7:case"end":return t.stop()}}),t)})))},buttonClass:e.getOption("buttonClass"),nextToDone:e.getOption("nextToDone"),doneLabel:e.getOption("doneLabel"),hideNext:e.getOption("hideNext"),hidePrev:e.getOption("hidePrev"),className:e.getOption("tooltipClass"),progress:e.getOption("showProgress"),progressBarAdditionalClass:e.getOption("progressBarAdditionalClass"),stepNumbers:e.getOption("showStepNumbers"),stepNumbersOfLabel:e.getOption("stepNumbersOfLabel"),scrollToElement:e.getOption("scrollToElement"),scrollPadding:e.getOption("scrollPadding"),dontShowAgain:e.getOption("dontShowAgain"),onDontShowAgainChange:function(t){e.setDontShowAgain(t)},dontShowAgainLabel:e.getOption("dontShowAgainLabel"),renderAsHtml:e.getOption("tooltipRenderAsHtml")}),l=t.val.disableInteraction?function(t){var e=t.currentStep,n=t.steps,r=t.refreshes,i=t.targetElement,o=t.helperElementPadding,a=ut.derive((function(){return void 0!==e.val?n[e.val]:null}));return function(){if(!a.val)return null;var t=de({className:"introjs-disableInteraction"});return ut.derive((function(){a.val&&null!=r.val&&Xt(i,t,a.val,o)})),t}}({currentStep:n,steps:e.getSteps(),refreshes:r,targetElement:e.getTargetElement(),helperElementPadding:e.getOption("helperElementPadding")}):null;return s=300,pe(o,a,l)}));return ut.derive((function(){void 0===n.val&&(a.val=0,setTimeout((function(){l.remove()}),250))})),setTimeout((function(){a.val=1}),1),l},be=ut.tags.div,me=function(){function t(e,r){n(this,t),this._steps=[],this._currentStepSignal=ut.state(void 0),this._refreshesSignal=ut.state(0),this.callbacks={},this._targetElement=B(e),this._options=r?A(this._options,r):{steps:[],isActive:!0,nextLabel:"Next",prevLabel:"Back",skipLabel:"×",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,stepNumbersOfLabel:"of",keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,dontShowAgain:!1,dontShowAgainLabel:"Don't show this again",dontShowAgainCookie:"introjs-dontShowAgain",dontShowAgainCookieDays:365,helperElementPadding:10,buttonClass:"introjs-button",progressBarAdditionalClass:"",tooltipRenderAsHtml:!0}}return i(t,[{key:"callback",value:function(t){var e=this.callbacks[t];if(P(e))return e}},{key:"goToStep",value:function(t){return x(this,void 0,void 0,d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setCurrentStep(t-2),e.next=3,Wt(this);case 3:return e.abrupt("return",this);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"goToStepNumber",value:function(t){return x(this,void 0,void 0,d().mark((function e(){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this._steps.length)){e.next=9;break}if(this._steps[n].step!==t){e.next=6;break}return this.setCurrentStep(n-1),e.abrupt("break",9);case 6:n++,e.next=1;break;case 9:return e.next=11,Wt(this);case 11:return e.abrupt("return",this);case 12:case"end":return e.stop()}}),e,this)})))}},{key:"addStep",value:function(t){return this._options.steps||(this._options.steps=[]),this._options.steps.push(t),this}},{key:"addSteps",value:function(t){if(!t.length)return this;var e,n=o(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.addStep(r)}}catch(t){n.e(t)}finally{n.f()}return this}},{key:"setSteps",value:function(t){return this._steps=t,this}},{key:"getSteps",value:function(){return this._steps}},{key:"getStep",value:function(t){return this._steps[t]}},{key:"getCurrentStepSignal",value:function(){return this._currentStepSignal}},{key:"getRefreshesSignal",value:function(){return this._refreshesSignal}},{key:"getCurrentStep",value:function(){return this._currentStepSignal.val}},{key:"currentStep",value:function(){return this._currentStepSignal.val}},{key:"resetCurrentStep",value:function(){this._currentStepSignal.val=void 0}},{key:"setCurrentStep",value:function(t){return void 0===this._currentStepSignal.val||t>=this._currentStepSignal.val?this._direction="forward":this._direction="backward",this._currentStepSignal.val=t,this}},{key:"incrementCurrentStep",value:function(){var t=this.getCurrentStep();return void 0===t?this.setCurrentStep(0):this.setCurrentStep(t+1),this}},{key:"decrementCurrentStep",value:function(){var t=this.getCurrentStep();return void 0!==t&&t>0&&this.setCurrentStep(t-1),this}},{key:"getDirection",value:function(){return this._direction}},{key:"nextStep",value:function(){return x(this,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Wt(this);case 2:return t.abrupt("return",this);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"previousStep",value:function(){return x(this,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Mt(this);case 2:return t.abrupt("return",this);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"isEnd",value:function(){var t=this.getCurrentStep();return void 0!==t&&t>=this._steps.length}},{key:"isLastStep",value:function(){return this.getCurrentStep()===this._steps.length-1}},{key:"getTargetElement",value:function(){return this._targetElement}},{key:"setOptions",value:function(t){return this._options=A(this._options,t),this}},{key:"setOption",value:function(t,e){return this._options=E(this._options,t,e),this}},{key:"getOption",value:function(t){return this._options[t]}},{key:"clone",value:function(){return new t(this._targetElement,this._options)}},{key:"isActive",value:function(){return(!this.getOption("dontShowAgain")||(t=this.getOption("dontShowAgainCookie"),""===(e=qt(t))||"true"!==e))&&this.getOption("isActive");var t,e}},{key:"hasStarted",value:function(){return void 0!==this.getCurrentStep()}},{key:"setDontShowAgain",value:function(t){return Ut(t,this.getOption("dontShowAgainCookie"),this.getOption("dontShowAgainCookieDays")),this}},{key:"enableKeyboardNavigation",value:function(){var t=this;return this.getOption("keyboardNavigation")&&(this._keyboardNavigationHandler=function(e){return function(t,e){var n;return x(this,void 0,void 0,d().mark((function r(){var i,o;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null===(i=void 0===e.code?e.which:e.code)&&(i=null===e.charCode?e.keyCode:e.charCode),"Escape"!==i&&27!==i||!0!==t.getOption("exitOnEsc")){r.next=7;break}return r.next=5,t.exit();case 5:r.next=39;break;case 7:if("ArrowLeft"!==i&&37!==i){r.next=12;break}return r.next=10,Mt(t);case 10:r.next=39;break;case 12:if("ArrowRight"!==i&&39!==i){r.next=17;break}return r.next=15,Wt(t);case 15:r.next=39;break;case 17:if("Enter"!==i&&"NumpadEnter"!==i&&13!==i){r.next=39;break}if(!(o=e.target||e.srcElement)||!o.className.match("introjs-prevbutton")){r.next=24;break}return r.next=22,Mt(t);case 22:r.next=38;break;case 24:if(!o||!o.className.match("introjs-skipbutton")){r.next=32;break}if(!t.isEnd()){r.next=28;break}return r.next=28,null===(n=t.callback("complete"))||void 0===n?void 0:n.call(t,t.getCurrentStep(),"skip");case 28:return r.next=30,t.exit();case 30:r.next=38;break;case 32:if(!o||!o.getAttribute("data-step-number")){r.next=36;break}o.click(),r.next=38;break;case 36:return r.next=38,Wt(t);case 38:e.preventDefault?e.preventDefault():e.returnValue=!1;case 39:case"end":return r.stop()}}),r)})))}(t,e)},R.on(window,"keydown",this._keyboardNavigationHandler,!0)),this}},{key:"disableKeyboardNavigation",value:function(){return this._keyboardNavigationHandler&&(R.off(window,"keydown",this._keyboardNavigationHandler,!0),this._keyboardNavigationHandler=void 0),this}},{key:"enableRefreshOnResize",value:function(){var t=this;this._refreshOnResizeHandler=function(e){return t.refresh()},R.on(window,"resize",this._refreshOnResizeHandler,!0)}},{key:"disableRefreshOnResize",value:function(){this._refreshOnResizeHandler&&(R.off(window,"resize",this._refreshOnResizeHandler,!0),this._refreshOnResizeHandler=void 0)}},{key:"appendFloatingElement",value:function(){var t,e,n;return this._floatingElement||(this._floatingElement=(t={currentStep:this.getCurrentStepSignal()},e=t.currentStep,n=be({className:"introjsFloatingElement"}),ut.derive((function(){void 0===e.val&&n.remove()})),n),ut.add(this.getTargetElement(),this._floatingElement)),this._floatingElement}},{key:"createRoot",value:function(){this._root||(this._root=ge({tour:this}),ut.add(this.getTargetElement(),this._root))}},{key:"recreateRoot",value:function(){this._root&&(this._root.remove(),this._root=void 0,this.createRoot())}},{key:"start",value:function(){return x(this,void 0,void 0,d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Kt(this);case 2:if(!t.sent){t.next=6;break}this.createRoot(),this.enableKeyboardNavigation(),this.enableRefreshOnResize();case 6:return t.abrupt("return",this);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"exit",value:function(t){return x(this,void 0,void 0,d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yt(this,null!=t&&t);case 2:if(!e.sent){e.next=5;break}this.disableKeyboardNavigation(),this.disableRefreshOnResize();case 5:return e.abrupt("return",this);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"refresh",value:function(t){return void 0===this.getCurrentStep()||(void 0!==this._refreshesSignal.val&&(this._refreshesSignal.val+=1),t&&(this.setSteps(Jt(this)),this.recreateRoot())),this}},{key:"onbeforechange",value:function(t){return this.onBeforeChange(t)}},{key:"onBeforeChange",value:function(t){if(!P(t))throw new Error("Provided callback for onBeforeChange was not a function");return this.callbacks.beforeChange=t,this}},{key:"onchange",value:function(t){this.onChange(t)}},{key:"onChange",value:function(t){if(!P(t))throw new Error("Provided callback for onChange was not a function.");return this.callbacks.change=t,this}},{key:"onafterchange",value:function(t){this.onAfterChange(t)}},{key:"onAfterChange",value:function(t){if(!P(t))throw new Error("Provided callback for onAfterChange was not a function");return this.callbacks.afterChange=t,this}},{key:"oncomplete",value:function(t){return this.onComplete(t)}},{key:"onComplete",value:function(t){if(!P(t))throw new Error("Provided callback for oncomplete was not a function.");return this.callbacks.complete=t,this}},{key:"onstart",value:function(t){return this.onStart(t)}},{key:"onStart",value:function(t){if(!P(t))throw new Error("Provided callback for onstart was not a function.");return this.callbacks.start=t,this}},{key:"onexit",value:function(t){return this.onExit(t)}},{key:"onExit",value:function(t){if(!P(t))throw new Error("Provided callback for onexit was not a function.");return this.callbacks.exit=t,this}},{key:"onskip",value:function(t){return this.onSkip(t)}},{key:"onSkip",value:function(t){if(!P(t))throw new Error("Provided callback for onskip was not a function.");return this.callbacks.skip=t,this}},{key:"onbeforeexit",value:function(t){return this.onBeforeExit(t)}},{key:"onBeforeExit",value:function(t){if(!P(t))throw new Error("Provided callback for onbeforeexit was not a function.");return this.callbacks.beforeExit=t,this}}]),t}(),ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(r,me);var e=a(r);function r(){return n(this,r),e.apply(this,arguments)}return i(r,[{key:"addHints",value:function(){console.error("introJs().addHints() is deprecated, please use introJs.hint.addHints() instead.")}},{key:"addHint",value:function(){console.error("introJs().addHint() is deprecated, please use introJs.hint.addHint() instead.")}},{key:"removeHints",value:function(){console.error("introJs().removeHints() is deprecated, please use introJs.hint.removeHints() instead.")}}]),r}(),we=function(t){return console.warn("introJs() is deprecated. Please use introJs.tour() or introJs.hint() instead."),new ye(t)};we.tour=function(t){return new me(t)},we.hint=function(t){return new Vt(t)},we.version="8.3.1";export{we as default};
|
||
//# sourceMappingURL=intro.module.js.map
|