title-switcher 2.1.16 → 2.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function t(e,n,r){function i(o,a){if(!n[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e,n){"use strict";t("core-js/modules/esnext.weak-map.delete-all.js");const r=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},i=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};let s,o,a,l,c,u,f,p,y,h;Object.defineProperty(n,"__esModule",{value:!0});class b{constructor(t="",e="typingEffect"){s.set(this,!1),o.set(this,"displayTitle"),a.set(this,0),l.set(this,200),c.set(this,400),u.set(this,!1),f.set(this,[]),p.set(this,""),y.set(this,void 0),h.set(this,void 0),r(this,o,"displayTitle","f"),r(this,y,"string"==typeof e?"function"==typeof this[e]?this[e]:this.typingEffect:e,"f"),r(this,p,t,"f"),r(this,f,[],"f");const n=t?document.querySelectorAll(t):[];n&&n[0]&&(r(this,p,n[0],"f"),r(this,f,n[0].children,"f"))}get active(){return i(this,s,"f")}get currentClass(){return i(this,o,"f")}get currentIndex(){return i(this,a,"f")}get delayEffect(){return i(this,l,"f")}get delaySwitch(){return i(this,c,"f")}get switchStyle(){return i(this,y,"f")}get titles(){return i(this,f,"f")}get typeSurface(){return i(this,h,"f")}startTitles({delaySwitch:t=400,delayEffect:e=200,isRandom:n=!1,immediatePause:b=!1}={}){const d="typeSurface";if(r(this,c,t,"f"),r(this,l,e,"f"),r(this,u,n,"f"),r(this,s,!b,"f"),i(this,a,"f")>=i(this,f,"f").length||"string"==typeof i(this,p,"f"))return r(this,s,!1,"f"),console.warn(`No titles found for '${i(this,p,"f")}'`),this;i(this,u,"f")&&r(this,a,Math.round(Math.random()*(i(this,f,"f").length-2))+1,"f");const m=i(this,f,"f")[i(this,a,"f")];m.classList?m.classList.add(i(this,o,"f")):m.className+=" "+i(this,o,"f");const v=i(this,f,"f")[0].cloneNode(!0);return v.classList?v.classList.add(d):v.className+=" "+d,v.classList?v.classList.remove(i(this,o,"f")):v.className=v.className.replace(new RegExp("(^|\\b)"+v.className.split(" ").join("|")+"(\\b|$)","gi")," "),i(this,p,"f").insertBefore(v,i(this,p,"f").firstChild),r(this,h,i(this,p,"f").querySelectorAll("."+d)[0],"f"),i(this,h,"f").innerHTML="",i(this,h,"f").style.display="block",Array.prototype.forEach.call(i(this,f,"f"),(function(t){t.style.display="none"})),this.switchTitle(m,i(this,y,"f"),this)}pause(){r(this,s,!1,"f")}resume(){i(this,s,"f")||(r(this,s,!0,"f"),this.switchTitle(i(this,f,"f")[i(this,a,"f")],i(this,y,"f"),this))}switchTitle(t,e,n,o=!1){let l=1;const c=i(n=n||this,f,"f").length;for(let e=1;e<c;++e)if(i(n,f,"f")[e]===t){l=e;break}if(!i(n,s,"f"))return r(n,a,l,"f"),n;const p=i(n,f,"f").length-1;let y=1;if(1===p)return e(t,o?()=>n:n.switchTitle,n,o);if(i(n,u,"f")){n.typeSurface.textContent.trim()||(l=-1);do{y=Math.round(Math.random()*(p-1))+1}while(y===l)}else n.typeSurface.textContent.trim()||(l=p),y=l<p?l+1:1;const h=i(n,f,"f")[y];return t.classList?t.classList.remove(n.currentClass):t.className=t.className.replace(new RegExp("(^|\\b)"+t.className.split(" ").join("|")+"(\\b|$)","gi")," "),h.classList?h.classList.add(n.currentClass):h.className+=" "+n.currentClass,e(h,o?()=>n:n.switchTitle,n,o)}}s=new WeakMap,o=new WeakMap,a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,y=new WeakMap,h=new WeakMap,b.prototype.cursorBlink=(t,e)=>(e=e||void 0,t?(e.typeSurface.innerHTML=e.typeSurface.innerHTML.replace(/\||&nbsp;*(<\/span>)?$/,"$1").trim(),e.typeSurface.innerHTML=e.typeSurface.innerHTML+'<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">&#124;</span>'):e.typeSurface.innerHTML=e.typeSurface.innerHTML.replace(/\|(<\/span>)$/,"&nbsp;$1"),e);const d=(t,e)=>{let n="";const r=Array.prototype.slice.call(t.childNodes);for(let t=0;t<r.length&&e>0;++t){const i=r[t];if(3===i.nodeType){const t=i.textContent||"",r=Math.min(e,t.length);n+=t.slice(0,r),e-=r}else if(1===i.nodeType){const t=d(i,e);if(t.html){const e=i.cloneNode(!1);e.innerHTML=t.html,n+=e.outerHTML}e=t.remaining}}return{html:n,remaining:e}};b.prototype.typingEffect=(t,e,n,r=!1)=>{const i=(n=n||void 0).titles.length;let s=0;for(let e=1;e<i;++e)if(n.titles[e]===t){s=e;break}t=t||n.titles[s+1];let o=!0;n.typeSurface.hasAttribute("style")&&n.typeSurface.removeAttribute("style"),t.hasAttribute("style")&&n.typeSurface.setAttribute("style",t.getAttribute("style")),n.typeSurface.innerHTML="",n.typeSurface.style.display="block";for(let t=0;t<4;++t)setTimeout((()=>{n.cursorBlink(o,n),o=!o}),t*n.delaySwitch);return setTimeout((()=>{n.typeSurface.innerHTML="",n.cursorBlink(!0,n);const i=t.textContent.length;for(let s=0;s<i;++s)setTimeout((()=>{if(n.typeSurface.innerHTML=d(t,s+1).html+'<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>',t.textContent+"|"===n.typeSurface.textContent){n.typeSurface.innerHTML=t.innerHTML+'<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>';for(let i=0;i<8;++i)setTimeout((()=>{--i,n.cursorBlink(o,n),0===i&&e(t,r?()=>n:n.switchStyle,n,r)}),i*n.delaySwitch)}}),s*n.delayEffect)}),4*n.delaySwitch),n},n.default=b,"undefined"!=typeof window&&(window.TitleSwitcher=b)},{"core-js/modules/esnext.weak-map.delete-all.js":69}],2:[function(t,e,n){"use strict";var r=t("../internals/is-callable"),i=t("../internals/try-to-string"),s=TypeError;e.exports=function(t){if(r(t))return t;throw new s(i(t)+" is not a function")}},{"../internals/is-callable":32,"../internals/try-to-string":62}],3:[function(t,e,n){"use strict";var r=t("../internals/weak-map-helpers").has;e.exports=function(t){return r(t),t}},{"../internals/weak-map-helpers":67}],4:[function(t,e,n){"use strict";var r=t("../internals/is-object"),i=String,s=TypeError;e.exports=function(t){if(r(t))return t;throw new s(i(t)+" is not an object")}},{"../internals/is-object":35}],5:[function(t,e,n){"use strict";var r=t("../internals/to-indexed-object"),i=t("../internals/to-absolute-index"),s=t("../internals/length-of-array-like"),o=function(t){return function(e,n,o){var a=r(e),l=s(a);if(0===l)return!t&&-1;var c,u=i(o,l);if(t&&n!=n){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":38,"../internals/to-absolute-index":55,"../internals/to-indexed-object":56}],6:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=r({}.toString),s=r("".slice);e.exports=function(t){return s(i(t),8,-1)}},{"../internals/function-uncurry-this":22}],7:[function(t,e,n){"use strict";var r=t("../internals/has-own-property"),i=t("../internals/own-keys"),s=t("../internals/object-get-own-property-descriptor"),o=t("../internals/object-define-property");e.exports=function(t,e,n){for(var a=i(e),l=o.f,c=s.f,u=0;u<a.length;u++){var f=a[u];r(t,f)||n&&r(n,f)||l(t,f,c(e,f))}}},{"../internals/has-own-property":26,"../internals/object-define-property":41,"../internals/object-get-own-property-descriptor":42,"../internals/own-keys":49}],8:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/object-define-property"),s=t("../internals/create-property-descriptor");e.exports=r?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/object-define-property":41}],9:[function(t,e,n){"use strict";e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],10:[function(t,e,n){"use strict";var r=t("../internals/is-callable"),i=t("../internals/object-define-property"),s=t("../internals/make-built-in"),o=t("../internals/define-global-property");e.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(r(n)&&s(n,c,a),a.global)l?t[e]=n:o(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},{"../internals/define-global-property":11,"../internals/is-callable":32,"../internals/make-built-in":39,"../internals/object-define-property":41}],11:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=Object.defineProperty;e.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},{"../internals/global-this":25}],12:[function(t,e,n){"use strict";var r=t("../internals/fails");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":18}],13:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-object"),s=r.document,o=i(s)&&i(s.createElement);e.exports=function(t){return o?s.createElement(t):{}}},{"../internals/global-this":25,"../internals/is-object":35}],14:[function(t,e,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],15:[function(t,e,n){"use strict";var r=t("../internals/global-this").navigator,i=r&&r.userAgent;e.exports=i?String(i):""},{"../internals/global-this":25}],16:[function(t,e,n){"use strict";var r,i,s=t("../internals/global-this"),o=t("../internals/environment-user-agent"),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},{"../internals/environment-user-agent":15,"../internals/global-this":25}],17:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/object-get-own-property-descriptor").f,s=t("../internals/create-non-enumerable-property"),o=t("../internals/define-built-in"),a=t("../internals/define-global-property"),l=t("../internals/copy-constructor-properties"),c=t("../internals/is-forced");e.exports=function(t,e){var n,u,f,p,y,h=t.target,b=t.global,d=t.stat;if(n=b?r:d?r[h]||a(h,{}):r[h]&&r[h].prototype)for(u in e){if(p=e[u],f=t.dontCallGetSet?(y=i(n,u))&&y.value:n[u],!c(b?u:h+(d?".":"#")+u,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&s(p,"sham",!0),o(n,u,p,t)}}},{"../internals/copy-constructor-properties":7,"../internals/create-non-enumerable-property":8,"../internals/define-built-in":10,"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-forced":33,"../internals/object-get-own-property-descriptor":42}],18:[function(t,e,n){"use strict";e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],19:[function(t,e,n){"use strict";var r=t("../internals/fails");e.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},{"../internals/fails":18}],20:[function(t,e,n){"use strict";var r=t("../internals/function-bind-native"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":19}],21:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/has-own-property"),s=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=i(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!r||r&&o(s,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":12,"../internals/has-own-property":26}],22:[function(t,e,n){"use strict";var r=t("../internals/function-bind-native"),i=Function.prototype,s=i.call,o=r&&i.bind.bind(s,s);e.exports=r?o:function(t){return function(){return s.apply(t,arguments)}}},{"../internals/function-bind-native":19}],23:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-callable");e.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},{"../internals/global-this":25,"../internals/is-callable":32}],24:[function(t,e,n){"use strict";var r=t("../internals/a-callable"),i=t("../internals/is-null-or-undefined");e.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},{"../internals/a-callable":2,"../internals/is-null-or-undefined":34}],25:[function(t,e,n){(function(t){(function(){"use strict";var n=function(t){return t&&t.Math===Math&&t};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],26:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/to-object"),s=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(t,e){return s(i(t),e)}},{"../internals/function-uncurry-this":22,"../internals/to-object":59}],27:[function(t,e,n){"use strict";e.exports={}},{}],28:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/fails"),s=t("../internals/document-create-element");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":12,"../internals/document-create-element":13,"../internals/fails":18}],29:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/fails"),s=t("../internals/classof-raw"),o=Object,a=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?a(t,""):o(t)}:o},{"../internals/classof-raw":6,"../internals/fails":18,"../internals/function-uncurry-this":22}],30:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/is-callable"),s=t("../internals/shared-store"),o=r(Function.toString);i(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),e.exports=s.inspectSource},{"../internals/function-uncurry-this":22,"../internals/is-callable":32,"../internals/shared-store":52}],31:[function(t,e,n){"use strict";var r,i,s,o=t("../internals/weak-map-basic-detection"),a=t("../internals/global-this"),l=t("../internals/is-object"),c=t("../internals/create-non-enumerable-property"),u=t("../internals/has-own-property"),f=t("../internals/shared-store"),p=t("../internals/shared-key"),y=t("../internals/hidden-keys"),h="Object already initialized",b=a.TypeError,d=a.WeakMap;if(o||f.state){var m=f.state||(f.state=new d);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new b(h);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},s=function(t){return m.has(t)}}else{var v=p("state");y[v]=!0,r=function(t,e){if(u(t,v))throw new b(h);return e.facade=t,c(t,v,e),e},i=function(t){return u(t,v)?t[v]:{}},s=function(t){return u(t,v)}}e.exports={set:r,get:i,has:s,enforce:function(t){return s(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw new b("Incompatible receiver, "+t+" required");return n}}}},{"../internals/create-non-enumerable-property":8,"../internals/global-this":25,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/is-object":35,"../internals/shared-key":51,"../internals/shared-store":52,"../internals/weak-map-basic-detection":66}],32:[function(t,e,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},{}],33:[function(t,e,n){"use strict";var r=t("../internals/fails"),i=t("../internals/is-callable"),s=/#|\.prototype\./,o=function(t,e){var n=l[a(t)];return n===u||n!==c&&(i(e)?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},{"../internals/fails":18,"../internals/is-callable":32}],34:[function(t,e,n){"use strict";e.exports=function(t){return null==t}},{}],35:[function(t,e,n){"use strict";var r=t("../internals/is-callable");e.exports=function(t){return"object"==typeof t?null!==t:r(t)}},{"../internals/is-callable":32}],36:[function(t,e,n){"use strict";e.exports=!1},{}],37:[function(t,e,n){"use strict";var r=t("../internals/get-built-in"),i=t("../internals/is-callable"),s=t("../internals/object-is-prototype-of"),o=t("../internals/use-symbol-as-uid"),a=Object;e.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&s(e.prototype,a(t))}},{"../internals/get-built-in":23,"../internals/is-callable":32,"../internals/object-is-prototype-of":45,"../internals/use-symbol-as-uid":64}],38:[function(t,e,n){"use strict";var r=t("../internals/to-length");e.exports=function(t){return r(t.length)}},{"../internals/to-length":58}],39:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/fails"),s=t("../internals/is-callable"),o=t("../internals/has-own-property"),a=t("../internals/descriptors"),l=t("../internals/function-name").CONFIGURABLE,c=t("../internals/inspect-source"),u=t("../internals/internal-state"),f=u.enforce,p=u.get,y=String,h=Object.defineProperty,b=r("".slice),d=r("".replace),m=r([].join),v=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=e.exports=function(t,e,n){"Symbol("===b(y(e),0,7)&&(e="["+d(y(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||l&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return o(r,"source")||(r.source=m(g,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return s(this)&&p(this).source||c(this)}),"toString")},{"../internals/descriptors":12,"../internals/fails":18,"../internals/function-name":21,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/inspect-source":30,"../internals/internal-state":31,"../internals/is-callable":32}],40:[function(t,e,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(t){var e=+t;return(e>0?i:r)(e)}},{}],41:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/ie8-dom-define"),s=t("../internals/v8-prototype-define-bug"),o=t("../internals/an-object"),a=t("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",y="writable";n.f=r?s?function(t,e,n){if(o(t),e=a(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&y in n&&!n[y]){var r=u(t,e);r&&r[y]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},{"../internals/an-object":4,"../internals/descriptors":12,"../internals/ie8-dom-define":28,"../internals/to-property-key":61,"../internals/v8-prototype-define-bug":65}],42:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/function-call"),s=t("../internals/object-property-is-enumerable"),o=t("../internals/create-property-descriptor"),a=t("../internals/to-indexed-object"),l=t("../internals/to-property-key"),c=t("../internals/has-own-property"),u=t("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(t,e){if(t=a(t),e=l(e),u)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i(s.f,t,e),t[e])}},{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/function-call":20,"../internals/has-own-property":26,"../internals/ie8-dom-define":28,"../internals/object-property-is-enumerable":47,"../internals/to-indexed-object":56,"../internals/to-property-key":61}],43:[function(t,e,n){"use strict";var r=t("../internals/object-keys-internal"),i=t("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},{"../internals/enum-bug-keys":14,"../internals/object-keys-internal":46}],44:[function(t,e,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],45:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this");e.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":22}],46:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/has-own-property"),s=t("../internals/to-indexed-object"),o=t("../internals/array-includes").indexOf,a=t("../internals/hidden-keys"),l=r([].push);e.exports=function(t,e){var n,r=s(t),c=0,u=[];for(n in r)!i(a,n)&&i(r,n)&&l(u,n);for(;e.length>c;)i(r,n=e[c++])&&(~o(u,n)||l(u,n));return u}},{"../internals/array-includes":5,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/to-indexed-object":56}],47:[function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);n.f=s?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},{}],48:[function(t,e,n){"use strict";var r=t("../internals/function-call"),i=t("../internals/is-callable"),s=t("../internals/is-object"),o=TypeError;e.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!s(a=r(n,t)))return a;if(i(n=t.valueOf)&&!s(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!s(a=r(n,t)))return a;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":20,"../internals/is-callable":32,"../internals/is-object":35}],49:[function(t,e,n){"use strict";var r=t("../internals/get-built-in"),i=t("../internals/function-uncurry-this"),s=t("../internals/object-get-own-property-names"),o=t("../internals/object-get-own-property-symbols"),a=t("../internals/an-object"),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(t){var e=s.f(a(t)),n=o.f;return n?l(e,n(t)):e}},{"../internals/an-object":4,"../internals/function-uncurry-this":22,"../internals/get-built-in":23,"../internals/object-get-own-property-names":43,"../internals/object-get-own-property-symbols":44}],50:[function(t,e,n){"use strict";var r=t("../internals/is-null-or-undefined"),i=TypeError;e.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},{"../internals/is-null-or-undefined":34}],51:[function(t,e,n){"use strict";var r=t("../internals/shared"),i=t("../internals/uid"),s=r("keys");e.exports=function(t){return s[t]||(s[t]=i(t))}},{"../internals/shared":53,"../internals/uid":63}],52:[function(t,e,n){"use strict";var r=t("../internals/is-pure"),i=t("../internals/global-this"),s=t("../internals/define-global-property"),o="__core-js_shared__",a=e.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-pure":36}],53:[function(t,e,n){"use strict";var r=t("../internals/shared-store"),i=Object.create||Object;e.exports=function(t,e){return r[t]||(r[t]=e||i(null))}},{"../internals/shared-store":52}],54:[function(t,e,n){"use strict";var r=t("../internals/environment-v8-version"),i=t("../internals/fails"),s=t("../internals/global-this").String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/environment-v8-version":16,"../internals/fails":18,"../internals/global-this":25}],55:[function(t,e,n){"use strict";var r=t("../internals/to-integer-or-infinity"),i=Math.max,s=Math.min;e.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):s(n,e)}},{"../internals/to-integer-or-infinity":57}],56:[function(t,e,n){"use strict";var r=t("../internals/indexed-object"),i=t("../internals/require-object-coercible");e.exports=function(t){return r(i(t))}},{"../internals/indexed-object":29,"../internals/require-object-coercible":50}],57:[function(t,e,n){"use strict";var r=t("../internals/math-trunc");e.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},{"../internals/math-trunc":40}],58:[function(t,e,n){"use strict";var r=t("../internals/to-integer-or-infinity"),i=Math.min;e.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},{"../internals/to-integer-or-infinity":57}],59:[function(t,e,n){"use strict";var r=t("../internals/require-object-coercible"),i=Object;e.exports=function(t){return i(r(t))}},{"../internals/require-object-coercible":50}],60:[function(t,e,n){"use strict";var r=t("../internals/function-call"),i=t("../internals/is-object"),s=t("../internals/is-symbol"),o=t("../internals/get-method"),a=t("../internals/ordinary-to-primitive"),l=t("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");e.exports=function(t,e){if(!i(t)||s(t))return t;var n,l=o(t,u);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!i(n)||s(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},{"../internals/function-call":20,"../internals/get-method":24,"../internals/is-object":35,"../internals/is-symbol":37,"../internals/ordinary-to-primitive":48,"../internals/well-known-symbol":68}],61:[function(t,e,n){"use strict";var r=t("../internals/to-primitive"),i=t("../internals/is-symbol");e.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},{"../internals/is-symbol":37,"../internals/to-primitive":60}],62:[function(t,e,n){"use strict";var r=String;e.exports=function(t){try{return r(t)}catch(t){return"Object"}}},{}],63:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=0,s=Math.random(),o=r(1.1.toString);e.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+s,36)}},{"../internals/function-uncurry-this":22}],64:[function(t,e,n){"use strict";var r=t("../internals/symbol-constructor-detection");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":54}],65:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/fails");e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":12,"../internals/fails":18}],66:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-callable"),s=r.WeakMap;e.exports=i(s)&&/native code/.test(String(s))},{"../internals/global-this":25,"../internals/is-callable":32}],67:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=WeakMap.prototype;e.exports={WeakMap:WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},{"../internals/function-uncurry-this":22}],68:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/shared"),s=t("../internals/has-own-property"),o=t("../internals/uid"),a=t("../internals/symbol-constructor-detection"),l=t("../internals/use-symbol-as-uid"),c=r.Symbol,u=i("wks"),f=l?c.for||c:c&&c.withoutSetter||o;e.exports=function(t){return s(u,t)||(u[t]=a&&s(c,t)?c[t]:f("Symbol."+t)),u[t]}},{"../internals/global-this":25,"../internals/has-own-property":26,"../internals/shared":53,"../internals/symbol-constructor-detection":54,"../internals/uid":63,"../internals/use-symbol-as-uid":64}],69:[function(t,e,n){"use strict";var r=t("../internals/export"),i=t("../internals/a-weak-map"),s=t("../internals/weak-map-helpers").remove;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=i(this),n=!0,r=0,o=arguments.length;r<o;r++)t=s(e,arguments[r]),n=n&&t;return!!n}})},{"../internals/a-weak-map":3,"../internals/export":17,"../internals/weak-map-helpers":67}]},{},[1]);
1
+ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).titleSwitcher=t()}}((function(){return function t(e,n,r){function i(o,a){if(!n[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e,n){"use strict";t("core-js/modules/esnext.weak-map.delete-all.js");var r,i,s,o,a,l,c,u,f,p,y=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},h=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Object.defineProperty(n,"__esModule",{value:!0});class d{constructor(t="",e="typingEffect"){r.set(this,!1),i.set(this,"displayTitle"),s.set(this,0),o.set(this,200),a.set(this,400),l.set(this,!1),c.set(this,[]),u.set(this,""),f.set(this,void 0),p.set(this,void 0),y(this,i,"displayTitle","f"),y(this,f,"string"==typeof e?"function"==typeof this[e]?this[e]:this.typingEffect:e,"f"),y(this,u,t,"f"),y(this,c,[],"f");const n=t?document.querySelectorAll(t):[];n&&n[0]&&(y(this,u,n[0],"f"),y(this,c,n[0].children,"f"))}get active(){return h(this,r,"f")}get currentClass(){return h(this,i,"f")}get currentIndex(){return h(this,s,"f")}get delayEffect(){return h(this,o,"f")}get delaySwitch(){return h(this,a,"f")}get switchStyle(){return h(this,f,"f")}get titles(){return h(this,c,"f")}get typeSurface(){return h(this,p,"f")}startTitles({delaySwitch:t=400,delayEffect:e=200,isRandom:n=!1,immediatePause:d=!1}={}){const b="typeSurface";if(y(this,a,t,"f"),y(this,o,e,"f"),y(this,l,n,"f"),y(this,r,!d,"f"),h(this,s,"f")>=h(this,c,"f").length||"string"==typeof h(this,u,"f"))return y(this,r,!1,"f"),console.warn(`No titles found for '${h(this,u,"f")}'`),this;h(this,l,"f")&&y(this,s,Math.round(Math.random()*(h(this,c,"f").length-2))+1,"f");const g=h(this,c,"f")[h(this,s,"f")];g.classList?g.classList.add(h(this,i,"f")):g.className+=" "+h(this,i,"f");const m=h(this,c,"f")[0].cloneNode(!0);return m.classList?m.classList.add(b):m.className+=" "+b,m.classList?m.classList.remove(h(this,i,"f")):m.className=m.className.replace(new RegExp("(^|\\b)"+m.className.split(" ").join("|")+"(\\b|$)","gi")," "),h(this,u,"f").insertBefore(m,h(this,u,"f").firstChild),y(this,p,h(this,u,"f").querySelectorAll("."+b)[0],"f"),h(this,p,"f").innerHTML="",h(this,p,"f").style.display="block",Array.prototype.forEach.call(h(this,c,"f"),(function(t){t.style.display="none"})),this.switchTitle(g,h(this,f,"f"),this)}pause(){y(this,r,!1,"f")}resume(){h(this,r,"f")||(y(this,r,!0,"f"),this.switchTitle(h(this,c,"f")[h(this,s,"f")],h(this,f,"f"),this))}switchTitle(t,e,n,i=!1){let o=1;const a=h(n=n||this,c,"f").length;for(let e=1;e<a;++e)if(h(n,c,"f")[e]===t){o=e;break}if(!h(n,r,"f"))return y(n,s,o,"f"),n;const u=h(n,c,"f").length-1;let f=1;if(1===u)return e(t,i?()=>n:n.switchTitle,n,i);if(h(n,l,"f")){n.typeSurface.textContent.trim()||(o=-1);do{f=Math.round(Math.random()*(u-1))+1}while(f===o)}else n.typeSurface.textContent.trim()||(o=u),f=o<u?o+1:1;const p=h(n,c,"f")[f];return t.classList?t.classList.remove(n.currentClass):t.className=t.className.replace(new RegExp("(^|\\b)"+t.className.split(" ").join("|")+"(\\b|$)","gi")," "),p.classList?p.classList.add(n.currentClass):p.className+=" "+n.currentClass,e(p,i?()=>n:n.switchTitle,n,i)}}r=new WeakMap,i=new WeakMap,s=new WeakMap,o=new WeakMap,a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,d.prototype.cursorBlink=(t,e)=>(e=e||void 0,t?(e.typeSurface.innerHTML=e.typeSurface.innerHTML.replace(/\||&nbsp;*(<\/span>)?$/,"$1").trim(),e.typeSurface.innerHTML=e.typeSurface.innerHTML+'<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">&#124;</span>'):e.typeSurface.innerHTML=e.typeSurface.innerHTML.replace(/\|(<\/span>)$/,"&nbsp;$1"),e);const b=t=>{let e=0;return Array.prototype.forEach.call(t.childNodes,(t=>{if(3===t.nodeType){const n=t.textContent||"";let r=0;for(;r<n.length;){if(/\s/.test(n[r]))for(;r<n.length&&/\s/.test(n[r]);)++r;else++r;++e}}else 1===t.nodeType&&(e+=b(t))})),e},g=(t,e)=>{let n="";const r=Array.prototype.slice.call(t.childNodes);for(let t=0;t<r.length&&e>0;++t){const i=r[t];if(3===i.nodeType){const t=i.textContent||"";let r=0,s="";for(;r<t.length&&e>0;){if(/\s/.test(t[r])){const e=r;for(;r<t.length&&/\s/.test(t[r]);)++r;s+=t.slice(e,r)}else s+=t[r],++r;--e}n+=s}else if(1===i.nodeType){const t=g(i,e);if(t.html){const e=i.cloneNode(!1);e.innerHTML=t.html,n+=e.outerHTML}e=t.remaining}}return{html:n,remaining:e}};d.prototype.typingEffect=(t,e,n,r=!1)=>{const i=(n=n||void 0).titles.length;let s=0;for(let e=1;e<i;++e)if(n.titles[e]===t){s=e;break}t=t||n.titles[s+1];let o=!0;n.typeSurface.hasAttribute("style")&&n.typeSurface.removeAttribute("style"),t.hasAttribute("style")&&n.typeSurface.setAttribute("style",t.getAttribute("style")),n.typeSurface.innerHTML="",n.typeSurface.style.display="block";for(let t=0;t<4;++t)setTimeout((()=>{n.cursorBlink(o,n),o=!o}),t*n.delaySwitch);return setTimeout((()=>{n.typeSurface.innerHTML="",n.cursorBlink(!0,n);const i=b(t);for(let s=0;s<i;++s)setTimeout((()=>{if(n.typeSurface.innerHTML=g(t,s+1).html+'<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>',t.textContent+"|"===n.typeSurface.textContent){n.typeSurface.innerHTML=t.innerHTML+'<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>';for(let i=0;i<8;++i)setTimeout((()=>{--i,n.cursorBlink(o,n),0===i&&e(t,r?()=>n:n.switchStyle,n,r)}),i*n.delaySwitch)}}),s*n.delayEffect)}),4*n.delaySwitch),n},n.default=d,"undefined"!=typeof window&&(window.TitleSwitcher=d)},{"core-js/modules/esnext.weak-map.delete-all.js":69}],2:[function(t,e,n){"use strict";var r=t("../internals/is-callable"),i=t("../internals/try-to-string"),s=TypeError;e.exports=function(t){if(r(t))return t;throw new s(i(t)+" is not a function")}},{"../internals/is-callable":32,"../internals/try-to-string":62}],3:[function(t,e,n){"use strict";var r=t("../internals/weak-map-helpers").has;e.exports=function(t){return r(t),t}},{"../internals/weak-map-helpers":67}],4:[function(t,e,n){"use strict";var r=t("../internals/is-object"),i=String,s=TypeError;e.exports=function(t){if(r(t))return t;throw new s(i(t)+" is not an object")}},{"../internals/is-object":35}],5:[function(t,e,n){"use strict";var r=t("../internals/to-indexed-object"),i=t("../internals/to-absolute-index"),s=t("../internals/length-of-array-like"),o=function(t){return function(e,n,o){var a=r(e),l=s(a);if(0===l)return!t&&-1;var c,u=i(o,l);if(t&&n!=n){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":38,"../internals/to-absolute-index":55,"../internals/to-indexed-object":56}],6:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=r({}.toString),s=r("".slice);e.exports=function(t){return s(i(t),8,-1)}},{"../internals/function-uncurry-this":22}],7:[function(t,e,n){"use strict";var r=t("../internals/has-own-property"),i=t("../internals/own-keys"),s=t("../internals/object-get-own-property-descriptor"),o=t("../internals/object-define-property");e.exports=function(t,e,n){for(var a=i(e),l=o.f,c=s.f,u=0;u<a.length;u++){var f=a[u];r(t,f)||n&&r(n,f)||l(t,f,c(e,f))}}},{"../internals/has-own-property":26,"../internals/object-define-property":41,"../internals/object-get-own-property-descriptor":42,"../internals/own-keys":49}],8:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/object-define-property"),s=t("../internals/create-property-descriptor");e.exports=r?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/object-define-property":41}],9:[function(t,e,n){"use strict";e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],10:[function(t,e,n){"use strict";var r=t("../internals/is-callable"),i=t("../internals/object-define-property"),s=t("../internals/make-built-in"),o=t("../internals/define-global-property");e.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(r(n)&&s(n,c,a),a.global)l?t[e]=n:o(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},{"../internals/define-global-property":11,"../internals/is-callable":32,"../internals/make-built-in":39,"../internals/object-define-property":41}],11:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=Object.defineProperty;e.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},{"../internals/global-this":25}],12:[function(t,e,n){"use strict";var r=t("../internals/fails");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":18}],13:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-object"),s=r.document,o=i(s)&&i(s.createElement);e.exports=function(t){return o?s.createElement(t):{}}},{"../internals/global-this":25,"../internals/is-object":35}],14:[function(t,e,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],15:[function(t,e,n){"use strict";var r=t("../internals/global-this").navigator,i=r&&r.userAgent;e.exports=i?String(i):""},{"../internals/global-this":25}],16:[function(t,e,n){"use strict";var r,i,s=t("../internals/global-this"),o=t("../internals/environment-user-agent"),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},{"../internals/environment-user-agent":15,"../internals/global-this":25}],17:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/object-get-own-property-descriptor").f,s=t("../internals/create-non-enumerable-property"),o=t("../internals/define-built-in"),a=t("../internals/define-global-property"),l=t("../internals/copy-constructor-properties"),c=t("../internals/is-forced");e.exports=function(t,e){var n,u,f,p,y,h=t.target,d=t.global,b=t.stat;if(n=d?r:b?r[h]||a(h,{}):r[h]&&r[h].prototype)for(u in e){if(p=e[u],f=t.dontCallGetSet?(y=i(n,u))&&y.value:n[u],!c(d?u:h+(b?".":"#")+u,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&s(p,"sham",!0),o(n,u,p,t)}}},{"../internals/copy-constructor-properties":7,"../internals/create-non-enumerable-property":8,"../internals/define-built-in":10,"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-forced":33,"../internals/object-get-own-property-descriptor":42}],18:[function(t,e,n){"use strict";e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],19:[function(t,e,n){"use strict";var r=t("../internals/fails");e.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},{"../internals/fails":18}],20:[function(t,e,n){"use strict";var r=t("../internals/function-bind-native"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":19}],21:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/has-own-property"),s=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=i(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!r||r&&o(s,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":12,"../internals/has-own-property":26}],22:[function(t,e,n){"use strict";var r=t("../internals/function-bind-native"),i=Function.prototype,s=i.call,o=r&&i.bind.bind(s,s);e.exports=r?o:function(t){return function(){return s.apply(t,arguments)}}},{"../internals/function-bind-native":19}],23:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-callable");e.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},{"../internals/global-this":25,"../internals/is-callable":32}],24:[function(t,e,n){"use strict";var r=t("../internals/a-callable"),i=t("../internals/is-null-or-undefined");e.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},{"../internals/a-callable":2,"../internals/is-null-or-undefined":34}],25:[function(t,e,n){(function(t){(function(){"use strict";var n=function(t){return t&&t.Math===Math&&t};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],26:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/to-object"),s=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(t,e){return s(i(t),e)}},{"../internals/function-uncurry-this":22,"../internals/to-object":59}],27:[function(t,e,n){"use strict";e.exports={}},{}],28:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/fails"),s=t("../internals/document-create-element");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":12,"../internals/document-create-element":13,"../internals/fails":18}],29:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/fails"),s=t("../internals/classof-raw"),o=Object,a=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?a(t,""):o(t)}:o},{"../internals/classof-raw":6,"../internals/fails":18,"../internals/function-uncurry-this":22}],30:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/is-callable"),s=t("../internals/shared-store"),o=r(Function.toString);i(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),e.exports=s.inspectSource},{"../internals/function-uncurry-this":22,"../internals/is-callable":32,"../internals/shared-store":52}],31:[function(t,e,n){"use strict";var r,i,s,o=t("../internals/weak-map-basic-detection"),a=t("../internals/global-this"),l=t("../internals/is-object"),c=t("../internals/create-non-enumerable-property"),u=t("../internals/has-own-property"),f=t("../internals/shared-store"),p=t("../internals/shared-key"),y=t("../internals/hidden-keys"),h="Object already initialized",d=a.TypeError,b=a.WeakMap;if(o||f.state){var g=f.state||(f.state=new b);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new d(h);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},s=function(t){return g.has(t)}}else{var m=p("state");y[m]=!0,r=function(t,e){if(u(t,m))throw new d(h);return e.facade=t,c(t,m,e),e},i=function(t){return u(t,m)?t[m]:{}},s=function(t){return u(t,m)}}e.exports={set:r,get:i,has:s,enforce:function(t){return s(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}},{"../internals/create-non-enumerable-property":8,"../internals/global-this":25,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/is-object":35,"../internals/shared-key":51,"../internals/shared-store":52,"../internals/weak-map-basic-detection":66}],32:[function(t,e,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},{}],33:[function(t,e,n){"use strict";var r=t("../internals/fails"),i=t("../internals/is-callable"),s=/#|\.prototype\./,o=function(t,e){var n=l[a(t)];return n===u||n!==c&&(i(e)?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},{"../internals/fails":18,"../internals/is-callable":32}],34:[function(t,e,n){"use strict";e.exports=function(t){return null==t}},{}],35:[function(t,e,n){"use strict";var r=t("../internals/is-callable");e.exports=function(t){return"object"==typeof t?null!==t:r(t)}},{"../internals/is-callable":32}],36:[function(t,e,n){"use strict";e.exports=!1},{}],37:[function(t,e,n){"use strict";var r=t("../internals/get-built-in"),i=t("../internals/is-callable"),s=t("../internals/object-is-prototype-of"),o=t("../internals/use-symbol-as-uid"),a=Object;e.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&s(e.prototype,a(t))}},{"../internals/get-built-in":23,"../internals/is-callable":32,"../internals/object-is-prototype-of":45,"../internals/use-symbol-as-uid":64}],38:[function(t,e,n){"use strict";var r=t("../internals/to-length");e.exports=function(t){return r(t.length)}},{"../internals/to-length":58}],39:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/fails"),s=t("../internals/is-callable"),o=t("../internals/has-own-property"),a=t("../internals/descriptors"),l=t("../internals/function-name").CONFIGURABLE,c=t("../internals/inspect-source"),u=t("../internals/internal-state"),f=u.enforce,p=u.get,y=String,h=Object.defineProperty,d=r("".slice),b=r("".replace),g=r([].join),m=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=e.exports=function(t,e,n){"Symbol("===d(y(e),0,7)&&(e="["+b(y(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||l&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return o(r,"source")||(r.source=g(v,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return s(this)&&p(this).source||c(this)}),"toString")},{"../internals/descriptors":12,"../internals/fails":18,"../internals/function-name":21,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/inspect-source":30,"../internals/internal-state":31,"../internals/is-callable":32}],40:[function(t,e,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(t){var e=+t;return(e>0?i:r)(e)}},{}],41:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/ie8-dom-define"),s=t("../internals/v8-prototype-define-bug"),o=t("../internals/an-object"),a=t("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",y="writable";n.f=r?s?function(t,e,n){if(o(t),e=a(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&y in n&&!n[y]){var r=u(t,e);r&&r[y]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},{"../internals/an-object":4,"../internals/descriptors":12,"../internals/ie8-dom-define":28,"../internals/to-property-key":61,"../internals/v8-prototype-define-bug":65}],42:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/function-call"),s=t("../internals/object-property-is-enumerable"),o=t("../internals/create-property-descriptor"),a=t("../internals/to-indexed-object"),l=t("../internals/to-property-key"),c=t("../internals/has-own-property"),u=t("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(t,e){if(t=a(t),e=l(e),u)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i(s.f,t,e),t[e])}},{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/function-call":20,"../internals/has-own-property":26,"../internals/ie8-dom-define":28,"../internals/object-property-is-enumerable":47,"../internals/to-indexed-object":56,"../internals/to-property-key":61}],43:[function(t,e,n){"use strict";var r=t("../internals/object-keys-internal"),i=t("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},{"../internals/enum-bug-keys":14,"../internals/object-keys-internal":46}],44:[function(t,e,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],45:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this");e.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":22}],46:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/has-own-property"),s=t("../internals/to-indexed-object"),o=t("../internals/array-includes").indexOf,a=t("../internals/hidden-keys"),l=r([].push);e.exports=function(t,e){var n,r=s(t),c=0,u=[];for(n in r)!i(a,n)&&i(r,n)&&l(u,n);for(;e.length>c;)i(r,n=e[c++])&&(~o(u,n)||l(u,n));return u}},{"../internals/array-includes":5,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/to-indexed-object":56}],47:[function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);n.f=s?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},{}],48:[function(t,e,n){"use strict";var r=t("../internals/function-call"),i=t("../internals/is-callable"),s=t("../internals/is-object"),o=TypeError;e.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!s(a=r(n,t)))return a;if(i(n=t.valueOf)&&!s(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!s(a=r(n,t)))return a;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":20,"../internals/is-callable":32,"../internals/is-object":35}],49:[function(t,e,n){"use strict";var r=t("../internals/get-built-in"),i=t("../internals/function-uncurry-this"),s=t("../internals/object-get-own-property-names"),o=t("../internals/object-get-own-property-symbols"),a=t("../internals/an-object"),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(t){var e=s.f(a(t)),n=o.f;return n?l(e,n(t)):e}},{"../internals/an-object":4,"../internals/function-uncurry-this":22,"../internals/get-built-in":23,"../internals/object-get-own-property-names":43,"../internals/object-get-own-property-symbols":44}],50:[function(t,e,n){"use strict";var r=t("../internals/is-null-or-undefined"),i=TypeError;e.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},{"../internals/is-null-or-undefined":34}],51:[function(t,e,n){"use strict";var r=t("../internals/shared"),i=t("../internals/uid"),s=r("keys");e.exports=function(t){return s[t]||(s[t]=i(t))}},{"../internals/shared":53,"../internals/uid":63}],52:[function(t,e,n){"use strict";var r=t("../internals/is-pure"),i=t("../internals/global-this"),s=t("../internals/define-global-property"),o="__core-js_shared__",a=e.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-pure":36}],53:[function(t,e,n){"use strict";var r=t("../internals/shared-store"),i=Object.create||Object;e.exports=function(t,e){return r[t]||(r[t]=e||i(null))}},{"../internals/shared-store":52}],54:[function(t,e,n){"use strict";var r=t("../internals/environment-v8-version"),i=t("../internals/fails"),s=t("../internals/global-this").String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/environment-v8-version":16,"../internals/fails":18,"../internals/global-this":25}],55:[function(t,e,n){"use strict";var r=t("../internals/to-integer-or-infinity"),i=Math.max,s=Math.min;e.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):s(n,e)}},{"../internals/to-integer-or-infinity":57}],56:[function(t,e,n){"use strict";var r=t("../internals/indexed-object"),i=t("../internals/require-object-coercible");e.exports=function(t){return r(i(t))}},{"../internals/indexed-object":29,"../internals/require-object-coercible":50}],57:[function(t,e,n){"use strict";var r=t("../internals/math-trunc");e.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},{"../internals/math-trunc":40}],58:[function(t,e,n){"use strict";var r=t("../internals/to-integer-or-infinity"),i=Math.min;e.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},{"../internals/to-integer-or-infinity":57}],59:[function(t,e,n){"use strict";var r=t("../internals/require-object-coercible"),i=Object;e.exports=function(t){return i(r(t))}},{"../internals/require-object-coercible":50}],60:[function(t,e,n){"use strict";var r=t("../internals/function-call"),i=t("../internals/is-object"),s=t("../internals/is-symbol"),o=t("../internals/get-method"),a=t("../internals/ordinary-to-primitive"),l=t("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");e.exports=function(t,e){if(!i(t)||s(t))return t;var n,l=o(t,u);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!i(n)||s(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},{"../internals/function-call":20,"../internals/get-method":24,"../internals/is-object":35,"../internals/is-symbol":37,"../internals/ordinary-to-primitive":48,"../internals/well-known-symbol":68}],61:[function(t,e,n){"use strict";var r=t("../internals/to-primitive"),i=t("../internals/is-symbol");e.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},{"../internals/is-symbol":37,"../internals/to-primitive":60}],62:[function(t,e,n){"use strict";var r=String;e.exports=function(t){try{return r(t)}catch(t){return"Object"}}},{}],63:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=0,s=Math.random(),o=r(1.1.toString);e.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+s,36)}},{"../internals/function-uncurry-this":22}],64:[function(t,e,n){"use strict";var r=t("../internals/symbol-constructor-detection");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":54}],65:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/fails");e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":12,"../internals/fails":18}],66:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-callable"),s=r.WeakMap;e.exports=i(s)&&/native code/.test(String(s))},{"../internals/global-this":25,"../internals/is-callable":32}],67:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=WeakMap.prototype;e.exports={WeakMap:WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},{"../internals/function-uncurry-this":22}],68:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/shared"),s=t("../internals/has-own-property"),o=t("../internals/uid"),a=t("../internals/symbol-constructor-detection"),l=t("../internals/use-symbol-as-uid"),c=r.Symbol,u=i("wks"),f=l?c.for||c:c&&c.withoutSetter||o;e.exports=function(t){return s(u,t)||(u[t]=a&&s(c,t)?c[t]:f("Symbol."+t)),u[t]}},{"../internals/global-this":25,"../internals/has-own-property":26,"../internals/shared":53,"../internals/symbol-constructor-detection":54,"../internals/uid":63,"../internals/use-symbol-as-uid":64}],69:[function(t,e,n){"use strict";var r=t("../internals/export"),i=t("../internals/a-weak-map"),s=t("../internals/weak-map-helpers").remove;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=i(this),n=!0,r=0,o=arguments.length;r<o;r++)t=s(e,arguments[r]),n=n&&t;return!!n}})},{"../internals/a-weak-map":3,"../internals/export":17,"../internals/weak-map-helpers":67}]},{},[1])(1)}));
package/dist/main.d.ts CHANGED
@@ -1,80 +1,80 @@
1
- /*********************************************
2
- Title Switcher: to imitate typing and switch to different titles based on DOM.
3
- Requires titles to be listed as elements inside a div, pass the class of the div as an argument to TitleSwitcher.
4
- **********************************************/
5
- type switchTitleCallback = (domObject: HTMLElement | Element, callBackFunction: Function, self?: TitleSwitcher, runOnce?: boolean) => TitleSwitcher;
6
- declare class TitleSwitcher {
7
- #private;
8
- cursorBlink: (blinkOn: boolean, self: TitleSwitcher) => TitleSwitcher;
9
- typingEffect: switchTitleCallback;
10
- /**
11
- * Instantiate this as a class to get an instance of TitleSwitcher
12
- * @param titlesContainer - The selector where titles are stored
13
- * @param switchStyle - The function or function name for the effect to apply
14
- * @constructor
15
- */
16
- constructor(titlesContainer?: string, switchStyle?: switchTitleCallback | keyof TitleSwitcher | string);
17
- /**
18
- * Retrieve active
19
- */
20
- get active(): boolean;
21
- /**
22
- * Retrieve currentClass
23
- */
24
- get currentClass(): string;
25
- /**
26
- * Retrieve currentIndex
27
- */
28
- get currentIndex(): number;
29
- /**
30
- * Retrieve delayEffect
31
- */
32
- get delayEffect(): number;
33
- /**
34
- * Retrieve delaySwitch
35
- */
36
- get delaySwitch(): number;
37
- /**
38
- * Retrieve switchStyle
39
- */
40
- get switchStyle(): Function;
41
- /**
42
- * Retrieve list of titles DOM elements
43
- */
44
- get titles(): Array<HTMLElement> | HTMLCollection;
45
- /**
46
- * Retrieve typeSurface used
47
- */
48
- get typeSurface(): HTMLElement | null;
49
- /**
50
- * This is the function to begin the switching titles
51
- * @param settings
52
- * @param settings.delaySwitch
53
- * @param settings.delayEffect
54
- * @param settings.isRandom
55
- * @param settings.immediatePause
56
- */
57
- startTitles({ delaySwitch, delayEffect, isRandom, immediatePause }?: {
58
- delaySwitch?: number;
59
- delayEffect?: number;
60
- isRandom?: boolean;
61
- immediatePause?: boolean;
62
- }): TitleSwitcher;
63
- /**
64
- * This is the function to pause between switching
65
- */
66
- pause(): void;
67
- /**
68
- * This is the function to resume after a pause.
69
- */
70
- resume(): void;
71
- /**
72
- * This is the core function for switching titles
73
- * @param currentTitle
74
- * @param callBackFunction
75
- * @param self
76
- * @param runOnce
77
- */
78
- switchTitle(currentTitle: Element, callBackFunction: switchTitleCallback, self: this, runOnce?: boolean): TitleSwitcher;
79
- }
80
- export default TitleSwitcher;
1
+ /*********************************************
2
+ Title Switcher: to imitate typing and switch to different titles based on DOM.
3
+ Requires titles to be listed as elements inside a div, pass the class of the div as an argument to TitleSwitcher.
4
+ **********************************************/
5
+ type switchTitleCallback = (domObject: HTMLElement | Element, callBackFunction: Function, self?: TitleSwitcher, runOnce?: boolean) => TitleSwitcher;
6
+ declare class TitleSwitcher {
7
+ #private;
8
+ cursorBlink: (blinkOn: boolean, self: TitleSwitcher) => TitleSwitcher;
9
+ typingEffect: switchTitleCallback;
10
+ /**
11
+ * Instantiate this as a class to get an instance of TitleSwitcher
12
+ * @param titlesContainer - The selector where titles are stored
13
+ * @param switchStyle - The function or function name for the effect to apply
14
+ * @constructor
15
+ */
16
+ constructor(titlesContainer?: string, switchStyle?: switchTitleCallback | keyof TitleSwitcher | string);
17
+ /**
18
+ * Retrieve active
19
+ */
20
+ get active(): boolean;
21
+ /**
22
+ * Retrieve currentClass
23
+ */
24
+ get currentClass(): string;
25
+ /**
26
+ * Retrieve currentIndex
27
+ */
28
+ get currentIndex(): number;
29
+ /**
30
+ * Retrieve delayEffect
31
+ */
32
+ get delayEffect(): number;
33
+ /**
34
+ * Retrieve delaySwitch
35
+ */
36
+ get delaySwitch(): number;
37
+ /**
38
+ * Retrieve switchStyle
39
+ */
40
+ get switchStyle(): Function;
41
+ /**
42
+ * Retrieve list of titles DOM elements
43
+ */
44
+ get titles(): Array<HTMLElement> | HTMLCollection;
45
+ /**
46
+ * Retrieve typeSurface used
47
+ */
48
+ get typeSurface(): HTMLElement | null;
49
+ /**
50
+ * This is the function to begin the switching titles
51
+ * @param settings
52
+ * @param settings.delaySwitch
53
+ * @param settings.delayEffect
54
+ * @param settings.isRandom
55
+ * @param settings.immediatePause
56
+ */
57
+ startTitles({ delaySwitch, delayEffect, isRandom, immediatePause }?: {
58
+ delaySwitch?: number;
59
+ delayEffect?: number;
60
+ isRandom?: boolean;
61
+ immediatePause?: boolean;
62
+ }): TitleSwitcher;
63
+ /**
64
+ * This is the function to pause between switching
65
+ */
66
+ pause(): void;
67
+ /**
68
+ * This is the function to resume after a pause.
69
+ */
70
+ resume(): void;
71
+ /**
72
+ * This is the core function for switching titles
73
+ * @param currentTitle
74
+ * @param callBackFunction
75
+ * @param self
76
+ * @param runOnce
77
+ */
78
+ switchTitle(currentTitle: Element, callBackFunction: switchTitleCallback, self: this, runOnce?: boolean): TitleSwitcher;
79
+ }
80
+ export default TitleSwitcher;