tsg-web/public/popmotion.xl.min.js

1 line
51 KiB
JavaScript
Raw Normal View History

2024-09-20 15:02:50 +08:00
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=37)}([function(t,e,n){"use strict";function r(t){var e=t.length;return function(n){for(var r={},o=s(f(n)),i=0;i<e;i++)r[t[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}}e.__esModule=!0;var o="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.splitColorValues=r;var i=function(t){return Object.prototype.toString.call(t).slice(8,-1)},a=/([a-z])([A-Z])/g,s=(e.camelToDash=function(t){return t.replace(a,"$1-$2").toLowerCase()},e.setDOMAttrs=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])},e.splitCommaDelimited=function(t){return l(t)?t.split(/,\s*/):[t]}),u=e.contains=function(t){return function(e){return l(t)&&-1!==e.indexOf(t)}},c=e.isFirstChars=function(t){return function(e){return l(t)&&0===e.indexOf(t)}},f=(e.createUnitType=function(t,e){return{test:u(t),parse:parseFloat,transform:e}},e.getValueFromFunctionString=function(t){return t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))}),l=(e.isArray=function(t){return"Array"===i(t)},e.isFunc=function(t){return"Function"===i(t)},e.isNum=function(t){return"number"==typeof t},e.isObj=function(t){return"object"===(void 0===t?"undefined":o(t))},e.isString=function(t){return"string"==typeof t}),p=e.isHex=c("#"),h=e.isRgb=c("rgb"),d=e.isHsl=c("hsl");e.isColor=function(t){return p(t)||h(t)||d(t)}},function(t,e,n){"use strict";function r(){u||(u=!0,i.default(o))}function o(t){u=!1,l=Math.max(Math.min(t-f,c),1)*p,f=t,h.process(),d.process(),v.process(),y.process()}Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),a=n(20),s="undefined"!=typeof performance&&performance.now;e.currentTime=s?function(){return performance.now()}:function(){return(new Date).getTime()};var u=!1,c=20,f=e.currentTime(),l=0,p=1,h=a.default(r),d=a.default(r),v=a.default(r),y=a.default(r);e.onFrameStart=h.schedule,e.onFrameUpdate=d.schedule,e.onFrameRender=v.schedule,e.onFrameEnd=y.schedule,e.cancelOnFrameStart=h.cancel,e.cancelOnFrameUpdate=d.cancel,e.cancelOnFrameRender=v.cancel,e.cancelOnFrameEnd=y.cancel,e.timeSinceLastFrame=function(){return l},e.currentFrameTime=function(){return f}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(1),s=n(3),u=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this.scheduledUpdate=function(){e.lastUpdated=(0,a.timeSinceLastFrame)(),e.prev=e.current;var t=e.props,n=t.onUpdate,r=t.passive;return e.update&&(e.current=e.update(e.current)),n&&(n.registerAction?n.set(e.get()):n(e.get(),e)),e.fireListeners(),!r&&e._isActive&&(0,a.onFrameUpdate)(e.scheduledUpdate),e.isActionComplete&&e.isActionComplete()&&e.complete(),e},this.props=i({},this.constructor.defaultProps),this.setProps(n),this.lastUpdated=0,this.prev=this.current=n.current||n.from||0}return t.prototype.start=function(){var t=this.props,e=t.onStart,n=t._onStart;return t.passive||(this._isActive=!0,(0,a.onFrameUpdate)(this.scheduledUpdate)),this.onStart&&this.onStart(),e&&e(this),n&&n(this),this},t.prototype.stop=function(){var t=this.props,e=t.onStop,n=t._onStop;return t.passive||(this._isActive=!1,(0,a.cancelOnFrameUpdate)(this.scheduledUpdate)),this.onStop&&th