(()=>{"use strict";var t={};function e(t){return e="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},e(t)}function n(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}function r(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const u=gutenverseCoreFrontend,a=window.animejs;var c=t.n(a);function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var s=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),t=this,i=arguments,r=o(r=n),function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)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)}(t,f()?Reflect.construct(r,i||[],o(t).constructor):r.apply(t,i));var t,r,i}return 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&&i(t,e)}(n,t),a=n,(s=[{key:"init",value:function(){var t=this;this._elements.map(function(e){t._addAnimations(e)})}},{key:"playOnScreen",value:function(t,e){new IntersectionObserver(function(t){t[0].isIntersecting?e.forEach(function(t){return t.play()}):e.forEach(function(t){t.pause(),t.seek(0)})},{threshold:[.5]}).observe(t)}},{key:"_addAnimations",value:function(t){var e=(0,u.u)(t),n=e.find(".number-percentage"),r=e.find(".skill-track"),o=r.data("width"),i=r.data("duration"),a=c()({targets:r.first(),width:"".concat(o,"%"),easing:"easeInOutQuart",duration:i,autoplay:!1}),f=c()({targets:n.first(),innerHTML:"".concat(o,"%"),easing:"easeInOutQuart",round:1,duration:i,autoplay:!1});this.playOnScreen(t,[a,f])}}])&&r(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),a;var a,s}(u.Default),l=(0,u.u)(".guten-progress-bar");l&&new s(l)})();