1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{777:function(e,n,t){"use strict";t.d(n,"a",function(){return Ve});var r=function(){function e(){this.keys=[],this.values=[]}var n=e.prototype;return n.get=function(e){return this.values[this.keys.indexOf(e)]},n.set=function(e,n){var t=this.keys,r=this.values,o=t.indexOf(e),c=-1===o?t.length:o;t[c]=e,r[c]=n},e}(),o=function(){function e(){this.object={}}var n=e.prototype;return n.get=function(e){return this.object[e]},n.set=function(e,n){this.object[e]=n},e}(),c="function"==typeof Map,l=function(){function e(){}var n=e.prototype;return n.connect=function(e,n){this.prev=e,this.next=n,e&&(e.next=this),n&&(n.prev=this)},n.disconnect=function(){var e=this.prev,n=this.next;e&&(e.next=n),n&&(n.prev=e)},n.getIndex=function(){for(var link=this,e=-1;link;)link=link.prev,++e;return e},e}();var h=function(){function e(e,n,t,r,o,c,l,h){this.prevList=e,this.list=n,this.added=t,this.removed=r,this.changed=o,this.maintained=c,this.changedBeforeAdded=l,this.fixed=h}var n=e.prototype;return Object.defineProperty(n,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(n,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),n.caculateOrdered=function(){var e=function(e,n){var t=[],r=[];return e.forEach(function(e){var n=e[0],o=e[1],link=new l;t[n]=link,r[o]=link}),t.forEach(function(link,i){link.connect(t[i-1])}),e.filter(function(e,i){return!n[i]}).map(function(e,i){var n=e[0],o=e[1];if(n===o)return[0,0];var c=t[n],l=r[o-1],h=c.getIndex();return c.disconnect(),l?c.connect(l,l.next):c.connect(void 0,t[0]),[h,c.getIndex()]})}(this.changedBeforeAdded,this.fixed),n=this.changed,t=[];this.cacheOrdered=e.filter(function(e,i){var r=e[0],o=e[1],c=n[i],l=c[0],h=c[1];if(r!==o)return t.push([l,h]),!0}),this.cachePureChanged=t},e}();var f=function(){function e(e,n){void 0===e&&(e=[]),this.findKeyCallback=n,this.list=[].slice.call(e)}return e.prototype.update=function(e){var n=[].slice.call(e),t=function(e,n,t){var l=c?Map:t?o:r,f=t||function(e){return e},d=[],v=[],_=[],m=e.map(f),y=n.map(f),P=new l,E=new l,x=[],O=[],w={},R=[],T=0,k=0;return m.forEach(function(e,n){P.set(e,n)}),y.forEach(function(e,n){E.set(e,n)}),m.forEach(function(e,n){var t=E.get(e);void 0===t?(++k,v.push(n)):w[t]=k}),y.forEach(function(e,n){var t=P.get(e);void 0===t?(d.push(n),++T):(_.push([t,n]),k=w[n]||0,x.push([t-k,n-T]),O.push(n===t),t!==n&&R.push([t,n]))}),v.reverse(),new h(e,n,d,v,R,_,x,O)}(this.list,n,this.findKeyCallback);return this.list=n,t},e}(),d=t(11),v=t(878),_=(t(896),function(e,b){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},_(e,b)});var m;function y(e){var s="function"==typeof Symbol&&Symbol.iterator,n=s&&e[s],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),c=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return c}function E(e,n,t){if(t||2===arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}var x=[],O=function(){function e(e){this.active=!0,this.effects=[],this.cleanups=[],this.vm=e}return e.prototype.run=function(e){if(this.active)try{return this.on(),e()}finally{this.off()}else 0},e.prototype.on=function(){this.active&&(x.push(this),m=this)},e.prototype.off=function(){this.active&&(x.pop(),m=x[x.length-1])},e.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEac
2h(function(e){return e.stop()}),this.cleanups.forEach(function(e){return e()}),this.active=!1)},e}();!function(e){function n(n){void 0===n&&(n=!1);var t,r=void 0;return function(e){var n=I;I=!1;try{e()}finally{I=n}}(function(){r=Z(S())}),t=e.call(this,r)||this,n||function(e,n){var t;if((n=n||m)&&n.active)return void n.effects.push(e);var r=null===(t=D())||void 0===t?void 0:t.proxy;r&&r.$on("hook:destroyed",function(){return e.stop()})}(t),t}(function(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function n(){this.constructor=e}_(e,b),e.prototype=null===b?Object.create(b):(n.prototype=b.prototype,new n)})(n,e)}(O);var w=void 0;try{var R=require("vue");R&&C(R)?w=R:R&&"default"in R&&C(R.default)&&(w=R.default)}catch(e){}var T=null,k=null,I=!0,A="__composition_api_installed__";function C(e){return e&&Y(e)&&"Vue"===e.name}function S(){return T}function j(){return T||w}function M(e){if(I){var n=k;null==n||n.scope.off(),null==(k=e)||k.scope.on()}}function D(){return k}var z=new WeakMap;function N(e){if(z.has(e))return z.get(e);var n={proxy:e,update:e.$forceUpdate,type:e.$options,uid:e._uid,emit:e.$emit.bind(e),parent:null,root:null};!function(e){if(!e.scope){var n=new O(e.proxy);e.scope=n,e.proxy.$on("hook:destroyed",function(){return n.stop()})}e.scope}(n);return["data","props","attrs","refs","vnode","slots"].forEach(function(t){H(n,t,{get:function(){return e["$".concat(t)]}})}),H(n,"isMounted",{get:function(){return e._isMounted}}),H(n,"isUnmounted",{get:function(){return e._isDestroyed}}),H(n,"isDeactivated",{get:function(){return e._inactive}}),H(n,"emitted",{get:function(){return e._events}}),z.set(e,n),e.$parent&&(n.parent=N(e.$parent)),e.$root&&(n.root=N(e.$root)),n}function L(e){return"function"==typeof e&&/native code/.test(e.toString())}var F="undefined"!=typeof Symbol&&L(Symbol)&&"undefined"!=typeof Reflect&&L(Reflect.ownKeys),V=function(e){return e};function H(e,n,t){var r=t.get,o=t.set;Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:r||V,set:o||V})}function B(e,n,t,r){Object.defineProperty(e,n,{value:t,enumerable:!!r,writable:!0,configurable:!0})}function G(e,n){return Object.hasOwnProperty.call(e,n)}function U(e){return Array.isArray(e)}Object.prototype.toString;function X(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)&&n<=4294967295}function W(e){return null!==e&&"object"==typeof e}function $(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function Y(e){return"function"==typeof e}function K(e,n){return n=n||D()}function Z(e,n){void 0===n&&(n={});var t=e.config.silent;e.config.silent=!0;var r=new e(n);return e.config.silent=t,r}function Q(e,n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(e.$scopedSlots[n])return e.$scopedSlots[n].apply(e,t)}}function J(e){return F?Symbol.for(e):e}J("composition-api.preFlushQueue"),J("composition-api.postFlushQueue");var ee="composition-api.refKey",ne=new WeakMap,te=(new WeakMap,new WeakMap);var ie=function(e){H(this,"value",{get:e.get,set:e.set})};function re(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!1);var r=new ie(e);t&&(r.effect=!0);var o=Object.seal(r);return n&&te.set(o,!0),o}function oe(e){var n;if(ae(e))return e;var t=ge(((n={})[ee]=e,n));return re({get:function(){return t[ee]},set:function(e){return t[ee]=e}})}function ae(e){return e instanceof ie}function se(object,e){e in object||function(e,n,t){var r=S().util,o=(r.warn,r.defineReactive),c=e.__ob__;function l(){c&&W(t)&&!G(t,"__ob__")&&pe(t)}
2if(U(e)){if(X(n))return e.length=Math.max(e.length,n),e.splice(n,1,t),l(),t;if("length"===n&&t!==e.length)return e.length=t,null==c||c.dep.notify(),t}n in e&&!(n in Object.prototype)?(e[n]=t,l()):e._isVue||c&&c.vmCount||(c?(o(c.value,n,t),fe(e,n,t),l(),c.dep.notify()):e[n]=t)}(object,e,void 0);var n=object[e];return ae(n)?n:re({get:function(){return object[e]},set:function(n){return object[e]=n}})}var ue="__v_skip";function ce(e){var n;return Boolean(e&&G(e,"__ob__")&&"object"==typeof e.__ob__&&(null===(n=e.__ob__)||void 0===n?void 0:n[ue]))}function le(e){var n;return Boolean(e&&G(e,"__ob__")&&"object"==typeof e.__ob__&&!(null===(n=e.__ob__)||void 0===n?void 0:n[ue]))}function he(e){if(!(!$(e)||ce(e)||U(e)||ae(e)||(n=e,t=S(),t&&n instanceof t)||ne.has(e))){var n,t;ne.set(e,!0);for(var r=Object.keys(e),i=0;i<r.length;i++)fe(e,r[i])}}function fe(e,n,t){if("__ob__"!==n&&!ce(e[n])){var r,o,c=Object.getOwnPropertyDescriptor(e,n);if(c){if(!1===c.configurable)return;r=c.get,o=c.set,r&&!o||2!==arguments.length||(t=e[n])}he(t),H(e,n,{get:function(){var o=r?r.call(e):t;return n!==ee&&ae(o)?o.value:o},set:function(c){r&&!o||(n!==ee&&ae(t)&&!ae(c)?t.value=c:o?(o.call(e,c),t=c):t=c,he(c))}})}}function de(e){var n,t=j();t.observable?n=t.observable(e):n=Z(t,{data:{$$state:e}})._data.$$state;return G(n,"__ob__")||pe(n),n}function pe(e,n){var t,r;if(void 0===n&&(n=new Set),!n.has(e)&&!G(e,"__ob__")&&Object.isExtensible(e)){B(e,"__ob__",function(e){void 0===e&&(e={});return{value:e,dep:{notify:V,depend:V,addSub:V,removeSub:V}}}(e)),n.add(e);try{for(var o=y(Object.keys(e)),c=o.next();!c.done;c=o.next()){var l=e[c.value];($(l)||U(l))&&!ce(l)&&Object.isExtensible(l)&&pe(l,n)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}}function ve(){return de({}).__ob__}function ge(e){if(!W(e))return e;if(!$(e)&&!U(e)||ce(e)||!Object.isExtensible(e))return e;var n=de(e);return he(n),n}function _e(e){return function(n,t){var r,o=K("on".concat((r=e)[0].toUpperCase()+r.slice(1)),t);return o&&function(e,n,t,r){var o=n.proxy.$options,c=e.config.optionMergeStrategies[t],l=function(e,n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=D();M(e);try{return n.apply(void 0,E([],P(t),!1))}finally{M(o)}}}(n,r);return o[t]=c(o[t],l),l}(S(),o,e,n)}}_e("beforeMount"),_e("mounted"),_e("beforeUpdate"),_e("updated"),_e("beforeDestroy"),_e("destroyed"),_e("errorCaptured"),_e("activated"),_e("deactivated"),_e("serverPrefetch");var me={set:function(e,n,t){(e.__composition_api_state__=e.__composition_api_state__||{})[n]=t},get:function(e,n){return(e.__composition_api_state__||{})[n]}};function be(e){var n=me.get(e,"rawBindings")||{};if(n&&Object.keys(n).length){for(var t=e.$refs,r=me.get(e,"refs")||[],o=0;o<r.length;o++){var c=n[f=r[o]];!t[f]&&c&&ae(c)&&(c.value=null)}var l=Object.keys(t),h=[];for(o=0;o<l.length;o++){var f;c=n[f=l[o]];t[f]&&c&&ae(c)&&(c.value=t[f],h.push(f))}me.set(e,"refs",h)}}function ye(e){for(var n=[e._vnode];n.length;){var t=n.pop();if(t&&(t.context&&be(t.context),t.children))for(var i=0;i<t.children.length;++i)n.push(t.children[i])}}function Pe(e,n){var t,r;if(e){var o=me.get(e,"attrBindings");if(o||n){if(!o){var c=ge({});o={ctx:n,data:c},me.set(e,"attrBindings",o),H(n,"attrs",{get:function(){return null==o?void 0:o.data},set:function(){}})}var source=e.$attrs,l=function(n){G(o.data,n)||H(o.data,n,{get:function(){return e.$attrs[n]}})};try{for(var h=y(Object.keys(source)),f=h.next();!f.done;f=h.next()){l(f.value)}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(t)throw t.error}}}}}function Ee(e,n){var t=e.$options._parentVnode;if(t){for(var r=me.get(e,"slots")||[],o=function(e,n){var t;if(e){if(e._normalized)return e._normalized;for(var r in t={},e)e[r]&&"$"!==r[0]&&(t[r]=!0)}else t={};for(var r in n)r in t||(t[r]=!0);return t}(t.data.scopedSlots,e.$slots),c=0;c<r.length;c++){o[h=r[c]]||delete n[h]}var l=Object.keys(o);for(c=0;c<l.length;c++){var h;n[h=l[c]]||(n[h]=Q(e,h))}me.set(e,"slots",l)}}function xe(e,n,t){var r=D();M(e);try{return n(e)}catch(e){if(!t)throw e;t(e)}finally{M(r)}}function Oe(e){function n(e,t){if(void 0===t&&(t=new Set),!t.has(e)&&$(e)&&!ae(e)&&!le(e)&&!ce(e)){var r=S().util.defineReactive;Object.keys(e).forEach(function(o){var c=e[o];r(e,o,c),c&&(t.add(c),n(c,t))})}}function t(e,n){return void 0===n&&(n=new Map),n.has(e)?n.get(e):(n.set(e,!1),U(e)&&le(e)?(n.set(e,!0),!0):!(!$(e)||ce(e)||ae(e))&&Object.keys(e).some(function(r){return t(e[r],n)}))}e.mixin({beforeCreate:function(){var e=this,r=e.$options,o=r.setup,c=r.render;c&&(r.render=function(){for(var n=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return xe(N(e),function(){return c.apply(n,t)})});if(!o)return;if(!Y(o))return void 0;var data=r.data;r.data=function(){return function(e,r){void 0===r&&(r={});var o,c=e.$options.setup,l=function(e){var n={slots:{}},t=["emit"];["root","parent","refs","listeners","isServer","ssrContext"].forEach(function(t){var r="$".concat(t);H(n,t,{get:function(){return e[r]},set:function(){}})}),Pe(e,n),t.forEach(function(t){var r="$".concat(t);H(n,t,{get:function(){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];e[r].apply(e,n)}}})}),!1;return n}(e),h=N(e);if(h.setupContext=l,B(r,"__ob__",ve()),Ee(e,l.slots),xe(h,function(){o=c(r,l)}),!o)return;if(Y(o)){var f=o;return void(e.$options.render=function(){return Ee(e,l.slots),xe(h,function(){return f()})})}if(W(o)){le(o)&&(o=function(e){if(!$(e))return e;var n={};for(var t in e)n[t]=se(e,t);return n}(o)),me.set(e,"rawBindings",o);var d=o;
2return void Object.keys(d).forEach(function(r){var o=d[r];if(!ae(o))if(le(o))U(o)&&(o=oe(o));else if(Y(o)){var c=o;o=o.bind(e),Object.keys(c).forEach(function(e){o[e]=c[e]})}else W(o)?t(o)&&n(o):o=oe(o);!function(e,n,t){var r=e.$options.props;n in e||r&&G(r,n)||(ae(t)?H(e,n,{get:function(){return t.value},set:function(e){t.value=e}}):H(e,n,{get:function(){return le(t)&&t.__ob__.dep.depend(),t},set:function(e){t=e}}))}(e,r,o)})}0}(e,e.$props),Y(data)?data.call(e,e):data||{}}},mounted:function(){ye(this)},beforeUpdate:function(){Pe(this)},updated:function(){ye(this)}})}function we(e,n){if(!e)return n;if(!n)return e;for(var t,r,o,c=F?Reflect.ownKeys(e):Object.keys(e),i=0;i<c.length;i++)"__ob__"!==(t=c[i])&&(r=n[t],o=e[t],G(n,t)?r!==o&&$(r)&&!ae(r)&&$(o)&&!ae(o)&&we(o,r):n[t]=o);return n}function Re(e){(function(e){return T&&G(e,A)})(e)||(e.config.optionMergeStrategies.setup=function(e,n){return function(t,r){return we(Y(e)?e(t,r)||{}:void 0,Y(n)?n(t,r)||{}:void 0)}},function(e){T=e,Object.defineProperty(e,A,{configurable:!0,writable:!0,value:!0})}(e),Oe(e))}var Te={install:function(e){return Re(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Te);var ke=function(e,b){return ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},ke(e,b)};var Ie=function(){return Ie=Object.assign||function(e){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},Ie.apply(this,arguments)};function Ae(e,n,t,r){return new(t||(t=Promise))(function(o,c){function l(e){try{f(r.next(e))}catch(e){c(e)}}function h(e){try{f(r.throw(e))}catch(e){c(e)}}function f(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(l,h)}f((r=r.apply(e,n||[])).next())})}function Ce(e,body){var n,t,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=c(0),g.throw=c(1),g.return=c(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(n=1,t&&(r=2&c[0]?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,t=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],t=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}function Se(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),c=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return c}function je(e,n,t){if(t||2===arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var Me=function(e){function n(n){var t=e.call(this,n)||this;return t._vueFlicking=n.vueFlicking,t}!function(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function n(){this.constructor=e}ke(e,b),e.prototype=null===b?Object.create(b):(n.prototype=b.prototype,new n)}(n,e);var t=n.prototype;return t.render=function(){return Ae(this,void 0,void 0,function(){var e,n,t,r=this;return Ce(this,function(o){return e=Object(v.m)(this._flicking),n=this._vueFlicking,(t=this._strategy).updateRenderingPanels(e),t.renderPanels(e),[2,new Promise(function(e){n.$once("render",function(){r._afterRender(),e()}),n.$forceUpdate()})]})})},t.forceRenderAllPanels=function(){return Ae(this,void 0,void 0,function(){var n;return Ce(this,function(t){switch(t.label){case 0:return n=this._vueFlicking,[4,e.prototype.forceRenderAllPanels.call(this)];case 1:return t.sent(),[2,new Promise(function(e){n.$once("render",e),n.$forceUpdate()})]}})})},t._collectPanels=function(){var e=Object(v.m)(this._flicking),n=this._vueFlicking.$children;this._panels=this._strategy.collectPanels(e,n)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},n}
2(v.d),De=d.a.extend({data:function(){return{hide:!1}},render:function(){var e;return this.hide?void 0:null!==(e=this.$slots.default)&&void 0!==e?e:[]},methods:{getElement:function(){return this.$el}}}),ze=function(){function e(e){this._el=e}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._el.getElement()},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return!this._el.hide},enumerable:!1,configurable:!0}),n.show=function(){this._el.hide=!1},n.hide=function(){this._el.hide=!0},e}(),Ne={viewportTag:{type:String,default:"div",required:!1},cameraTag:{type:String,default:"div",required:!1},cameraClass:{type:String,default:"",required:!1},hideBeforeInit:{type:Boolean,default:!1,required:!1},firstPanelSize:{type:String,required:!1},options:{type:Object,default:function(){return{}},required:!1},plugins:{type:Array,default:function(){return[]},required:!1},status:{type:Object,required:!1}},Le=function(component){var e,n;return null!==(n=null===(e=component.$slots.default)||void 0===e?void 0:e.filter(function(slot){return slot.tag}))&&void 0!==n?n:[]}
2,Fe=function(component){Le(component).forEach(function(e,n){null==e.key&&(e.key="$_".concat(n))})},Ve=d.a.extend({props:Ne,components:{Panel:De},data:function(){return{}},created:function(){this.diffResult=null,Object(v.q)(this,"vanillaFlicking")},mounted:function(){var e,n=this,t=this.options,r=this.$el,o={vueFlicking:this,align:t.align,strategy:t.virtual&&(null!==(e=t.panelsPerView)&&void 0!==e?e:-1)>0?new v.h:new v.g({providerCtor:ze})},c=new v.j(r,Ie(Ie({},t),{externalRenderer:new Me(o)}));this.vanillaFlicking=c,c.once(v.c.READY,function(){n.$forceUpdate()});var l=Le(this);this.slotDiffer=new f(l,function(e){return e.key}),this.pluginsDiffer=new f,this._bindEvents(),this._checkPlugins(),this.status&&c.setStatus(this.status)},beforeDestroy:function(){var e;null===(e=this.vanillaFlicking)||void 0===e||e.destroy()},beforeMount:function(){Fe(this)},beforeUpdate:function(){Fe(this),this.diffResult=this.slotDiffer.update(Le(this))},updated:function(){var e=this.vanillaFlicking,n=this.diffResult;this._checkPlugins(),this.$emit("render"),n&&e.initialized&&(Object(v.p)(e,n,this.$children),(n.added.length>0||n.removed.length>0)&&this.$forceUpdate(),this.diffResult=null)},render:function(e){var n,t,r,o=this.vanillaFlicking,c=this.options,l=!!this.diffResult&&o&&o.initialized,h={class:{"flicking-viewport":!0,vertical:!(o?o.horizontal:null===(t=c.horizontal)||void 0===t||t),"flicking-hidden":this.hideBeforeInit&&!l}},f={class:(n={"flicking-camera":!0},n[this.cameraClass]=!!this.cameraClass,n),style:!l&&this.firstPanelSize?{transform:Object(v.l)(c.align,c.horizontal,this.firstPanelSize)}:{}},d=c.virtual&&(null!==(r=c.panelsPerView)&&void 0!==r?r:-1)>0?this._getVirtualPanels(e,l):this._getPanels(e,l);return e(this.viewportTag,h,[e(this.cameraTag,f,d),this.$slots.viewport])},methods:{_getSlots:function(){var e,n;return null!==(n=null===(e=this.$slots.default)||void 0===e?void 0:e.filter(function(slot){return slot.tag}))&&void 0!==n?n:[]}
2,_fillKeys:function(){this._getSlots().forEach(function(e,n){null==e.key&&(e.key="$_".concat(n))})},_bindEvents:function(){var e=this,n=this.vanillaFlicking;Object.keys(v.c).map(function(e){return v.c[e]}).forEach(function(t){n.on(t,function(n){n.currentTarget=e,e.$emit(t.replace(/([A-Z])/g,"-$1").toLowerCase(),n)})})},_checkPlugins:function(){var e,n,t=this.pluginsDiffer.update(this.plugins),r=t.list,o=t.added,c=t.removed,l=t.prevList;(e=this.vanillaFlicking).addPlugins.apply(e,je([],Se(o.map(function(e){return r[e]})),!1)),(n=this.vanillaFlicking).removePlugins.apply(n,je([],Se(c.map(function(e){return l[e]})),!1))},_getPanels:function(e,n){return(n?Object(v.n)(this.vanillaFlicking,this.diffResult):this._getSlots()).map(function(slot){return e("Panel",{key:slot.key},[slot])})},_getVirtualPanels:function(e,n){var t=this.options,r=t.virtual.panelClass,o=void 0===r?"flicking-panel":r,c=t.panelsPerView,l=this.vanillaFlicking,h=n?l.renderer.strategy.getRenderingIndexesByOrder(l):Object(v.o)(c+1),f=l&&l.panels[0],d=f?l.horizontal?{width:f.size}:{height:f.size}:{};return h.map(function(n){return e("div",{key:n,staticClass:o,style:d,domProps:{"data-element-index":n}})})}},watch:{options:{handler:function(e){var n=this.vanillaFlicking;if(n){e.virtual;var t=function(s,e){var n={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(n[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(n[p[i]]=s[p[i]])}return n}(e,["virtual"]);for(var r in t)r in n&&n[r]!==t[r]&&(n[r]=t[r])}},deep:!0,immediate:!0}}})},848:function(e,n,t){"use strict";function r(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),c=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return c}function o(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(r(arguments[i]));return e}t.d(n,"a",function(){return f});var c=function(e){return void 0===e},l=function(){function e(e,n){var t,r;if(this._canceled=!1,n)try{for(var o=function(e){var s="function"==typeof Symbol&&Symbol.iterator,n=s&&e[s],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(n)),c=o.next();!c.done;c=o.next()){var l=c.value;this[l]=n[l]}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this.eventType=e}var n=e.prototype;return n.stop=function(){this._canceled=!0},n.isCanceled=function(){return this._canceled},e}(),h=function(){function e(){this._eventHandler={}}var n=e.prototype;return n.trigger=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=e instanceof l?e.eventType:e,c=o(this._eventHandler[r]||[]);return c.length<=0||(e instanceof l?(e.currentTarget=this,c.forEach(function(n){n(e)})):c.forEach(function(e){e.apply(void 0,o(n))})),this},n.once=function(e,n){var t=this;if("object"==typeof e&&c(n)){var r=e;for(var l in r)this.once(l,r[l]);return this}if("string"==typeof e&&"function"==typeof n){var h=function(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];n.apply(void 0,o(r)),t.off(e,h)};this.on(e,h)}return this},n.hasOn=function(e){return!!this._eventHandler[e]},n.on=function(e,n){if("object"==typeof e&&c(n)){var t=e;for(var r in t)this.on(r,t[r]);return this}if("string"==typeof e&&"function"==typeof n){var o=this._eventHandler[e];c(o)&&(this._eventHandler[e]=[],o=this._eventHandler[e]),o.push(n)}return this},n.off=function(e,n){if(c(e))return this._eventHandler={},this;if(c(n)){if("string"==typeof e)return delete this._eventHandler[e],this;var t=e;for(var r in t)this.off(r,t[r]);return this}var o=this._eventHandler[e];if(o)for(var l=o.length,i=0;i<l;++i)if(o[i]===n){o.splice(i,1),l<=1&&delete this._eventHandler[e];break}return this},e.VERSION="3.0.5",e}(),f=l;n.b=h},878:function(e,n,t){"use strict";t.d(n,"a",function(){return Nn}),t.d(n,"b",function(){return bn}),t.d(n,"c",function(){return jn}),t.d(n,"d",function(){return Ht}),t.d(n,"e",function(){return ft}),t.d(n,"f",function(){return Ln}),t.d(n,"g",function(){return Gt}),t.d(n,"h",function(){return Xt}),t.d(n,"i",function(){return Un}),t.d(n,"j",function(){return Wt}),t.d(n,"k",function(){return si}
2),t.d(n,"l",function(){return Qt}),t.d(n,"m",function(){return Xn}),t.d(n,"n",function(){return Zt}),t.d(n,"o",function(){return ct}),t.d(n,"p",function(){return Yt}),t.d(n,"q",function(){return $t});var r=t(848);function o(e,n){for(var t=e.length,i=0;i<t;++i)if(n(e[i],i))return!0;return!1}function c(e,n){for(var t=e.length,i=0;i<t;++i)if(n(e[i],i))return e[i];return null}function l(e){var n=e;if(void 0===n){if("undefined"==typeof navigator||!navigator)return"";n=navigator.userAgent||""}return n.toLowerCase()}function h(pattern,text){try{return new RegExp(pattern,"g").exec(text)}catch(e){return null}}function f(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,n=e.brands||e.uaList;return!(!n||!n.length)}function d(text){return text.replace(/_/g,".")}function v(e,n){var t=null,r="-1";return o(e,function(e){var o=h("("+e.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",n);return!(!o||e.brand)&&(t=e,r=o[3]||"-1",e.versionAlias?r=e.versionAlias:e.versionTest&&(r=function(e,n){var t=h("("+e+")((?:\\/|\\s|:)([0-9|\\.|_]+))",n);return t?t[3]:""}(e.versionTest.toLowerCase(),n)||r),r=d(r),!0)}),{preset:t,version:r}}function _(e,n){var t={brand:"",version:"-1"};return o(e,function(e){var r=m(n,e);return!!r&&(t.brand=e.id,t.version=e.versionAlias||r.version,"-1"!==t.version)}),t}function m(e,n){return c(e,function(e){var t=e.brand;return h(""+n.test,t.toLowerCase())})}var y=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],P=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],E=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],x=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],O=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function w(e){return!!v(x,e).preset}function R(e){var n=navigator.userAgentData,t=(n.uaList||n.brands).slice(),r=e&&e.fullVersionList,h=n.mobile||!1,f=t[0],v=(e&&e.platform||n.platform||navigator.platform).toLowerCase(),R={name:f.brand,version:f.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!_(x,t).brand||w(l())},T={name:"unknown",version:"-1",majorVersion:-1};R.webkit=!R.chromium&&o(E,function(e){return m(t,e)});var k=_(P,t);if(R.chromium=!!k.brand,R.chromiumVersion=k.version||"-1",!R.chromium){var I=_(E,t);R.webkit=!!I.brand,R.webkitVersion=I.version||"-1"}var A=c(O,function(e){return new RegExp(""+e.test,"g").exec(v)});if(T.name=A?A.id:"",e&&(T.version=e.platformVersion||"-1"),r&&r.length){var C=_(y,r);R.name=C.brand||R.name,R.version=C.version||R.version}else{var S=_(y,t);R.name=S.brand||R.name,R.version=S.brand&&e?e.uaFullVersion:S.version}return R.webkit&&(T.name=h?"ios":"mac"),"ios"===T.name&&R.webview&&(R.version="-1"),T.version=d(T.version),R.version=d(R.version),T.majorVersion=parseInt(T.version,10),R.majorVersion=parseInt(R.version,10),{browser:R,os:T,isMobile:h,isHints:!0}}function T(e){return void 0===e&&f()?R():function(e){var n=l(e),t=!!/mobi/g.exec(n),r={name:"unknown",version:"-1",majorVersion:-1,webview:w(n),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},o={name:"unknown",version:"-1",majorVersion:-1},c=v(y,n),h=c.preset,f=c.version,d=v(O,n),_=d.preset,m=d.version,x=v(P,n);if(r.chromium=!!x.preset,r.chromiumVersion=x.version,!r.chromium){var R=v(E,n);r.webkit=!!R.preset,r.webkitVersion=R.version}return _&&(o.name=_.id,o.version=m,o.majorVersion=parseInt(m,10)),h&&(r.name=h.id,r.version=f,r.webview&&"ios"===o.name&&"safari"!==r.name&&(r.webview=!1)),r.majorVersion=parseInt(r.version,10),{browser:r,os:o,isMobile:t,isHints:!1}}(e)}var k=T,I=t(896),A=function(e,b){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},A(e,b)};function C(e,b){function n(){this.constructor=e}A(e,b),e.prototype=null===b?Object.create(b):(n.prototype=b.prototype,new n)}var S,j=function(){return j=Object.assign||function(e){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},j.apply(this,arguments)};function M(e,n,t,desc){var r,o=arguments.length,c=o<3?n:null===desc?desc=Object.getOwnPropertyDescriptor(n,t):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,n,t,desc);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(c=(o<3?r(c):o>3?r(n,t,c):r(n,t))||c);return o>3&&c&&Object.defineProperty(n,t,c),c}S="undefined"==typeof window?{navigator:{userAgent:""}}:window;var D=24,z="left",N="right",L="middle",F={1:z,2:L,3:N},V="any",H="ontouchstart"in S&&"safari"===k().browser.name,B=function(){if("undefined"==typeof document)return"";for(var e=(document.head||document.getElementsByTagName("head")[0]).style,n=["transform","webkitTransform","msTransform","mozTransform"],i=0,t=n.length;i<t;i++)if(n[i]in e)return n[i];return""}(),G={"-webkit-user-select":"none","-ms-user-select":"none","-moz-user-select":"none","user-select":"none","-webkit-user-drag":"none"},U=function(e){for(var n=[],i=0,t=e.length;i<t;i++)n.push(e[i]);return n},X=function(param,e){var n;if(void 0===e&&(e=!1),"string"==typeof param){if(param.match(/^<([a-z]+)\s*([^>]*)>/)){var t=document.createElement("div");t.innerHTML=param,n=U(t.childNodes)}else n=U(document.querySelectorAll(param));e||(n=n.length>=1?n[0]:void 0)}else param===S?n=param:"value"in param||"current"in param?n=param.value||param.current:!param.nodeName||1!==param.nodeType&&9!==param.nodeType?"jQuery"in S&¶m instanceof jQuery||param.constructor.prototype.jquery?n=e?param.toArray():param.get(0):Array.isArray(param)&&(n=param.map(function(e){return X(e)}),e||(n=n.length>=1?n[0]:void 0)):n=param;return n},W=S.requestAnimationFrame||S.webkitRequestAnimationFrame,$=S.cancelAnimationFrame||S.webkitCancelAnimationFrame;if(W&&!$){var Y={},K=W;W=function(e){var n=K(function(t){Y[n]&&e(t)});return Y[n]=!0,n},$=function(e){delete Y[e]}}else W&&$||(W=function(e){return S.setTimeout(function(){e(S.performance&&S.performance.now&&S.performance.now()||(new Date).getTime())},16)},$=S.clearTimeout);var map=function(e,n){var t={};for(var r in e)r&&(t[r]=n(e[r],r));return t},filter=function(e,n){var t={};for(var r in e)r&&n(e[r],r)&&(t[r]=e[r]);return t},Z=function(e,n){for(var t in e)if(t&&!n(e[t],t))return!1;return!0},Q=function(e,base){return Z(e,function(e,n){return e===base[n]})},J={},ee=function(e,n){return J[n]||(J[n]=ie(n)),J[n](e)},ne=function(e,n){return e&&n?map(e,function(e,t){return ee(e,"number"==typeof n?n:n[t])}):e},te=function(e){if(!isFinite(e))return 0;var n="".concat(e);
2if(n.indexOf("e")>=0){for(var p=0,t=1;Math.round(e*t)/t!==e;)t*=10,p++;return p}return n.indexOf(".")>=0?n.length-n.indexOf(".")-1:0},ie=function(e){var p=e<1?Math.pow(10,te(e)):1;return function(n){return 0===e?0:Math.round(Math.round(n/e)*e*p)/p}},re=function(e,n){return 180*Math.atan2(n,e)/Math.PI},oe=function(e){var n=!0;return Object.keys(G).forEach(function(t){e&&e[t]===G[t]||(n=!1)}),n},ae=function(e,n){return e&&n?30:e?6:n?D:1},se=function(e,n,t){return t?!!(30===n||n&e&&t&e):!!(n&e)},ue=function(element,option,e){var n,t=((n={})[1]="auto",n[30]="none",n[24]="pan-x",n[6]="pan-y",n),r={};if(element&&element.style){var o=option.touchAction?option.touchAction:t[e],c=j(j({},G),{"touch-action":"none"===element.style["touch-action"]?"none":o});Object.keys(c).forEach(function(e){r[e]=element.style[e]}),Object.keys(c).forEach(function(e){element.style[e]=c[e]})}return r},ce=function(element,e){element&&element.style&&e&&Object.keys(e).forEach(function(n){element.style[n]=e[n]})},le=function(){function e(e){this._axes=e,this.holdingCount=0}var n=e.prototype;return n.hold=function(e,option){var n=this._getRoundPos(e).roundPos;this._axes.trigger(new r.a("hold",{pos:n,input:option.input||null,inputEvent:option.event||null,isTrusted:!0}))},n.triggerRelease=function(param){var e=this._getRoundPos(param.destPos,param.depaPos),n=e.roundPos,t=e.roundDepa;param.destPos=n,param.depaPos=t,param.setTo=this._createUserControll(param.destPos,param.duration),this._axes.trigger(new r.a("release",j(j({},param),{bounceRatio:this._getBounceRatio(n)})))},n.triggerChange=function(e,n,option,t){var o=this;void 0===t&&(t=!1);var c=this.animationManager,l=c.axisManager,h=c.getEventInfo(),f=this._getRoundPos(e,n),d=f.roundPos,v=f.roundDepa,_=l.moveTo(d,v),m=(null==option?void 0:option.event)||(null==h?void 0:h.event)||null,param={pos:_.pos,delta:_.delta,bounceRatio:this._getBounceRatio(_.pos),holding:t,inputEvent:m,isTrusted:!!m,input:(null==option?void 0:option.input)||(null==h?void 0:h.input)||null,set:m?this._createUserControll(_.pos):function(){}},y=new r.a("change",param);return this._axes.trigger(y),Object.keys(_.pos).forEach(function(e){var p=_.pos[e];Object(I.f)(o._axes,e,p).current=p}),m&&l.set(param.set().destPos),!y.isCanceled()},n.triggerAnimationStart=function(param){var e=this._getRoundPos(param.destPos,param.depaPos),n=e.roundPos,t=e.roundDepa;param.destPos=n,param.depaPos=t,param.setTo=this._createUserControll(param.destPos,param.duration);var o=new r.a("animationStart",param);return this._axes.trigger(o),!o.isCanceled()},n.triggerAnimationEnd=function(e){void 0===e&&(e=!1),this._axes.trigger(new r.a("animationEnd",{isTrusted:e}))},n.triggerFinish=function(e){void 0===e&&(e=!1),this._axes.trigger(new r.a("finish",{isTrusted:e}))},n.setAnimationManager=function(e){this.animationManager=e},n.destroy=function(){this._axes.off()},n._createUserControll=function(e,n){void 0===n&&(n=0);var t={destPos:j({},e),duration:n};
vendor: 36,775 bytes, line 2
2return function(e,n){return e&&(t.destPos=j({},e)),void 0!==n&&(t.duration=n),t}},n._getRoundPos=function(e,n){var t=this._axes.options.round;return{roundPos:ne(e,t),roundDepa:ne(n,t)}},n._getBounceRatio=function(e){return this._axes.axisManager.map(e,function(e,n){return e<n.range[0]&&0!==n.bounce[0]?(n.range[0]-e)/n.bounce[0]:e>n.range[1]&&0!==n.bounce[1]?(e-n.range[1])/n.bounce[1]:0})},M([I.b],e.prototype,"holdingCount",void 0),e}(),he=function(){function e(e){this._options=e,this._prevented=!1}var n=e.prototype;return n.isInterrupting=function(){return this._options.interruptable||this._prevented},n.isInterrupted=function(){return!this._options.interruptable&&this._prevented},n.setInterrupt=function(e){this._options.interruptable||(this._prevented=e)},e}(),fe=function(e,n,t,r){var o=e,c=[t[0]?n[0]:r?n[0]-r[0]:n[0],t[1]?n[1]:r?n[1]+r[1]:n[1]];return o=Math.max(c[0],o),o=Math.min(c[1],o)},de=function(e,n){return e<n[0]||e>n[1]},pe=function(e,n,t){return t[1]&&e>n[1]||t[0]&&e<n[0]},ve=function(e,n,t){var r=e,o=n[0],c=n[1],l=c-o;return t[1]&&e>c&&(r=(r-c)%l+o),t[0]&&e<o&&(r=(r-o)%l+c),r},ge=function(){function e(e){var n=this;this._axis=e,this._complementOptions(),this._pos=Object.keys(this._axis).reduce(function(e,t){return e[t]=n._axis[t].startPos,e},{})}var n=e.prototype;return n.getDelta=function(e,n){var t=this.get(e);return map(this.get(n),function(e,n){return e-t[n]})},n.get=function(e){var n=this;return e&&Array.isArray(e)?e.reduce(function(e,t){return t&&t in n._pos&&(e[t]=n._pos[t]),e},{}):j(j({},this._pos),e||{})},n.moveTo=function(e,n){void 0===n&&(n=this._pos);var t=map(this._pos,function(t,r){return r in e&&r in n?e[r]-n[r]:0});return this.set(this.map(e,function(e,n){return n?ve(e,n.range,n.circular):0})),{pos:j({},this._pos),delta:t}},n.set=function(e){for(var n in e)n&&n in this._pos&&(this._pos[n]=e[n])},n.every=function(e,n){var t=this._axis;return Z(e,function(e,r){return n(e,t[r],r)})},n.filter=function(e,n){var t=this._axis;return filter(e,function(e,r){return n(e,t[r],r)})},n.map=function(e,n){var t=this._axis;return map(e,function(e,r){return n(e,t[r],r)})},n.isOutside=function(e){return!this.every(e?this.get(e):this._pos,function(e,n){return!de(e,n.range)})},n.getAxisOptions=function(e){return this._axis[e]},n.setAxis=function(e){var n=this;Object.keys(e).forEach(function(t){if(!n._axis[t])throw new Error("Axis ".concat(t," does not exist in Axes instance"));n._axis[t]=j(j({},n._axis[t]),e[t])}),this._complementOptions()},n._complementOptions=function(){var e=this;Object.keys(this._axis).forEach(function(n){e._axis[n]=j({range:[0,100],startPos:e._axis[n].range[0],bounce:[0,0],circular:[!1,!1]},e._axis[n]),["bounce","circular"].forEach(function(t){var r=e._axis,o=r[n][t];/string|number|boolean/.test(typeof o)&&(r[n][t]=[o,o])})})},e}(),_e="ontouchstart"in S,me="PointerEvent"in S,be=me||"MSPointerEvent"in S,ye=function(e,n){return!!(!n||n.indexOf(V)>-1||n.indexOf("none")>-1&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey||n.indexOf("shift")>-1&&e.shiftKey||n.indexOf("ctrl")>-1&&e.ctrlKey||n.indexOf("alt")>-1&&e.altKey||n.indexOf("meta")>-1&&e.metaKey)},Pe=function(){function e(){var e=this;this._stopContextMenu=function(n){n.preventDefault(),S.removeEventListener("contextmenu",e._stopContextMenu)}}var n=e.prototype;return n.extendEvent=function(e){var n,t=this.prevEvent,r=this._getCenter(e),o=t?this._getMovement(e):{x:0,y:0},c=t?this._getScale(e):1,l=t?re(r.x-t.center.x,r.y-t.center.y):0,h=t?t.deltaX+o.x:o.x,f=t?t.deltaY+o.y:o.y,d=o.x,v=o.y,_=this._latestInterval,m=Date.now(),y=_?m-_.timestamp:0,P=t?t.velocityX:0,E=t?t.velocityY:0,x=t?t.directionX:1,O=t?t.directionY:1;return d>0?x=1:d<0&&(x=-1),v>0?O=1:v<0&&(O=-1),(!_||y>=16)&&(_&&(P=(n=[(h-_.deltaX)/y,(f-_.deltaY)/y])[0],E=n[1]),this._latestInterval={timestamp:m,deltaX:h,deltaY:f}),{srcEvent:e,scale:c,angle:l,center:r,deltaX:h,deltaY:f,offsetX:d,offsetY:v,directionX:x,directionY:O,velocityX:P,velocityY:E,preventSystemEvent:!0}},n._getDistance=function(e,n){var t=n.clientX-e.clientX,r=n.clientY-e.clientY;return Math.sqrt(t*t+r*r)},n._getButton=function(e){var n={1:z,2:N,4:L},button=this._isTouchEvent(e)?z:n[e.buttons];return button||null},n._isTouchEvent=function(e){return e.type&&e.type.indexOf("touch")>-1},n._isValidButton=function(button,e){return e.indexOf(button)>-1},n._isValidEvent=function(e,n,t){return(!n||ye(e,n))&&(!t||this._isValidButton(this._getButton(e),t))},n._preventMouseButton=function(e,button){button===N?S.addEventListener("contextmenu",this._stopContextMenu):button===L&&e.preventDefault()},e}(),Ee=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.start=["mousedown"],n.move=["mousemove"],n.end=["mouseup"],n}C(n,e);var t=n.prototype;return t.onEventStart=function(e,n,t){var button=this._getButton(e);return this._isValidEvent(e,n,t)?(this._preventMouseButton(e,button),this.extendEvent(e)):null},t.onEventMove=function(e,n,t){return this._isValidEvent(e,n,t)?this.extendEvent(e):null},t.onEventEnd=function(){},t.onRelease=function(){this.prevEvent=null},t.getTouches=function(e,n){return n&&this._isValidButton(F[e.which],n)&&-1===this.end.indexOf(e.type)?1:0},t._getScale=function(){return 1},t._getCenter=function(e){return{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return{x:e.clientX-n.clientX,y:e.clientY-n.clientY}},n}(Pe),xe=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.start=["touchstart"],n.move=["touchmove"],n.end=["touchend","touchcancel"],n}C(n,e);var t=n.prototype;return t.onEventStart=function(e,n){return this._baseTouches=e.touches,this._isValidEvent(e,n)?this.extendEvent(e):null},t.onEventMove=function(e,n){return this._isValidEvent(e,n)?this.extendEvent(e):null},t.onEventEnd=function(e){this._baseTouches=e.touches},t.onRelease=function(){this.prevEvent=null,this._baseTouches=null},t.getTouches=function(e){return e.touches.length},t._getScale=function(e){return 2!==e.touches.length||this._baseTouches.length<2?null:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1])},t._getCenter=function(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return e.touches[0].identifier!==n.touches[0].identifier?{x:0,y:0}:{x:e.touches[0].clientX-n.touches[0].clientX,y:e.touches[0].clientY-n.touches[0].clientY}},n}(Pe),Oe=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.start=me?["pointerdown"]:["MSPointerDown"],n.move=me?["pointermove"]:["MSPointerMove"],n.end=me?["pointerup","pointercancel"]:["MSPointerUp","MSPointerCancel"],n._firstInputs=[],n._recentInputs=[],n}C(n,e);var t=n.prototype;return t.onEventStart=function(e,n,t){var button=this._getButton(e);return this._isValidEvent(e,n,t)?(this._preventMouseButton(e,button),this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventMove=function(e,n,t){return this._isValidEvent(e,n,t)?(this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventEnd=function(e){this._removePointerEvent(e)},t.onRelease=function(){this.prevEvent=null,this._firstInputs=[],this._recentInputs=[]},t.getTouches=function(){return this._recentInputs.length},t._getScale=function(){return 2!==this._recentInputs.length?null:this._getDistance(this._recentInputs[0],this._recentInputs[1])/this._getDistance(this._firstInputs[0],this._firstInputs[1])},t._getCenter=function(e){return{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return e.pointerId!==n.pointerId?{x:0,y:0}:{x:e.clientX-n.clientX,y:e.clientY-n.clientY}},t._updatePointerEvent=function(e){var n=this,t=!1;this._recentInputs.forEach(function(r,i){r.pointerId===e.pointerId&&(t=!0,n._recentInputs[i]=e)}),t||(this._firstInputs.push(e),this._recentInputs.push(e))},t._removePointerEvent=function(e){this._firstInputs=this._firstInputs.filter(function(n){return n.pointerId!==e.pointerId}),this._recentInputs=this._recentInputs.filter(function(n){return n.pointerId!==e.pointerId})},n}(Pe),we=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.start=["mousedown","touchstart"],n.move=["mousemove","touchmove"],n.end=["mouseup","touchend","touchcancel"],n}C(n,e);var t=n.prototype;return t.onEventStart=function(e,n,t){var button=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,n,t)?(this._preventMouseButton(e,button),this.extendEvent(e)):null},t.onEventMove=function(e,n,t){return this._isValidEvent(e,n,t)?this.extendEvent(e):null},t.onEventEnd=function(e){this._isTouchEvent(e)&&(this._baseTouches=e.touches)},t.onRelease=function(){this.prevEvent=null,this._baseTouches=null},t.getTouches=function(e,n){return this._isTouchEvent(e)?e.touches.length:this._isValidButton(F[e.which],n)&&-1===this.end.indexOf(e.type)?1:0},t._getScale=function(e){return this._isTouchEvent(e)?2!==e.touches.length||this._baseTouches.length<2?1:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1]):this.prevEvent.scale},t._getCenter=function(e){return this._isTouchEvent(e)?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this,t=[e,this.prevEvent.srcEvent].map(function(e){return n._isTouchEvent(e)?{id:e.touches[0].identifier,x:e.touches[0].clientX,y:e.touches[0].clientY}:{id:null,x:e.clientX,y:e.clientY}}),r=t[0],o=t[1];return r.id===o.id?{x:r.x-o.x,y:r.y-o.y}:{x:0,y:0}},n}(Pe),Re=function(source,e){return e.reduce(function(e,n,i){return source[i]&&(e[source[i]]=n),e},{})},Te=function(e){void 0===e&&(e=[]);var n=!1,t=!1,r=!1;return e.forEach(function(e){switch(e){case"mouse":t=!0;break;case"touch":n=_e;break;case"pointer":r=be}}),r?new Oe:n&&t?new we:n?new xe:t?new Ee:null};function ke(e){return e.indexOf("touch")>-1&&{passive:!1}}var Ie=function(){function e(e){var n=e.options,t=e.interruptManager,r=e.eventManager,o=e.axisManager,c=e.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=n,this._interruptManager=t,this._eventManager=r,this._axisManager=o,this._animationManager=c}var n=e.prototype;return n.get=function(input){return this._axisManager.get(input.axes)},n.hold=function(input,e){if(!this._interruptManager.isInterrupted()&&input.axes.length){var n={input:input,event:e};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(n),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),n),this._isOutside=this._axisManager.isOutside(input.axes),this._moveDistance=this._axisManager.get(input.axes)}},n.change=function(input,e,n,t){if(!this._isStopped&&this._interruptManager.isInterrupting()&&!this._axisManager.every(n,function(e){return 0===e})){var r=e.srcEvent?e.srcEvent:e;if(!r.__childrenAxesAlreadyChanged){var o,c=this._moveDistance||this._axisManager.get(input.axes);o=map(c,function(e,t){return e+(n[t]||0)}),this._moveDistance&&(this._moveDistance=this._axisManager.map(o,function(e,n){var t=n.circular,r=n.range;return t&&(t[0]||t[1])?ve(e,r,t):e})),this._isOutside&&this._axisManager.every(c,function(e,n){return!de(e,n.range)})&&(this._isOutside=!1),c=this._atOutside(c),o=this._atOutside(o),this.options.nested&&this._isEndofAxis(n,c,o)||(r.__childrenAxesAlreadyChanged=!0);var l={input:input,event:e};if(t){var h=this._animationManager.getDuration(o,c);this._animationManager.animateTo(o,h,l)}else{!this._eventManager.triggerChange(o,c,l,!0)&&(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}}},n.release=function(input,e,n,t){if(!this._isStopped&&this._interruptManager.isInterrupting()&&this._moveDistance){var r=e.srcEvent?e.srcEvent:e;r.__childrenAxesAlreadyReleased&&(n=n.map(function(){return 0}));var o=this._axisManager.get(input.axes),c=this._axisManager.get(),l=this._animationManager.getDisplacement(n),h=Re(input.axes,l),f=this._axisManager.get(this._axisManager.map(h,function(e,n,t){return n.circular&&(n.circular[0]||n.circular[1])?o[t]+e:fe(o[t]+e,n.range,n.circular,n.bounce)}));r.__childrenAxesAlreadyReleased=!0;var d=this._animationManager.getDuration(f,o,t);0===d&&(f=j({},c));var param={depaPos:c,destPos:f,duration:d,delta:this._axisManager.getDelta(c,f),inputEvent:e,input:input,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(param),0===this._eventManager.holdingCount&&(this._moveDistance=null);var v=this._animationManager.getUserControl(param),_=Q(v.destPos,c),m={input:input,event:e};_||0===v.duration?(_||this._eventManager.triggerChange(v.destPos,c,m,!0),this._interruptManager.setInterrupt(!1),this._axisManager.isOutside()?this._animationManager.restore(m):this._eventManager.triggerFinish(!0)):this._animationManager.animateTo(v.destPos,v.duration,m)}},n._atOutside=function(e){var n=this;return this._isOutside?this._axisManager.map(e,function(e,n){var t=n.range[0]-n.bounce[0],r=n.range[1]+n.bounce[1];return e>r?r:e<t?t:e}):this._axisManager.map(e,function(e,t){var r=t.range[0],o=t.range[1],c=t.bounce,l=t.circular;return l[0]&&e<r||l[1]&&e>o?e:e<r?r-n._animationManager.interpolate(r-e,c[0]):e>o?o+n._animationManager.interpolate(e-o,c[1]):e})},n._isEndofAxis=function(e,n,t){return this._axisManager.every(n,function(r,option,o){return 0===e[o]||n[o]===t[o]&&(c=r,l=option.range,h=option.bounce,!(f=option.circular)[0]&&c===l[0]-h[0]||!f[1]&&c===l[1]+h[1]);var c,l,h,f})},e}(),Ae=function(e,n,t){return Math.max(Math.min(e,t),n)},Ce=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._useDuration=!0,n}C(n,e);var t=n.prototype;return t.interpolate=function(e,n){var t=this._easing(1e-5)/1e-5;return this._easing(e/(n*t))*n},t.updateAnimation=function(e){var n,t=this._animateParam;if(t){var r=(new Date).getTime()-t.startTime,o=(null==e?void 0:e.destPos)||t.destPos,c=null!==(n=null==e?void 0:e.duration)&&void 0!==n?n:t.duration;if((null==e?void 0:e.restart)||c<=r)this.setTo(o,c-r);else{if(null==e?void 0:e.destPos){var l=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,t.delta=this.axisManager.getDelta(l,o),t.destPos=o}if(null==e?void 0:e.duration){var h=(r+this._durationOffset)/t.duration;this._durationOffset=h*c-r,t.duration=c}}}},t._initState=function(e){return this._initialEasingPer=0,this._prevEasingPer=0,this._durationOffset=0,{pos:e.depaPos,easingPer:0,finished:!1}},t._getNextState=function(e){var n=this,t=this._animateParam,r=e.pos,o=t.destPos,c=map(r,function(e,n){return e<=o[n]?1:-1}),l=((new Date).getTime()-t.startTime+this._durationOffset)/t.duration,h=this._easing(l),f=this.axisManager.map(r,function(e,f,d){var v=l>=1?o[d]:e+t.delta[d]*(h-n._prevEasingPer)/(1-n._initialEasingPer),_=ve(v,f.range,f.circular);if(v!==_){var m=c[d]*(f.range[1]-f.range[0]);o[d]-=m,r[d]-=m}return _});return this._prevEasingPer=h,{pos:f,easingPer:h,finished:h>=1}},t._easing=function(p){return p>1?1:this._options.easing(p)},n}(function(){function e(e){var n=e.options,t=e.interruptManager,r=e.eventManager,o=e.axisManager;this._options=n,this.interruptManager=t,this.eventManager=r,this.axisManager=o,this.animationEnd=this.animationEnd.bind(this)}var n=e.prototype;return n.getDuration=function(e,n,t){var r,o=this;if(void 0!==t)r=t;else{var c=map(n,function(n,t){return function(e,n){var t=Math.sqrt(e/n*2);return t<100?0:t}(Math.abs(n-e[t]),o._options.deceleration)});r=Object.keys(c).reduce(function(e,n){return Math.max(e,c[n])},-1/0)}return Ae(r,this._options.minimumDuration,this._options.maximumDuration)},n.getDisplacement=function(e){var n=Math.pow(e.reduce(function(e,n){return e+n*n},0),1/e.length),t=Math.abs(n/-this._options.deceleration);return e.map(function(e){return e/2*t})},n.stopAnimation=function(option){if(this._animateParam){var e=this.axisManager.get(),n=this.axisManager.map(e,function(e,n){return ve(e,n.range,n.circular)});Z(n,function(n,t){return e[t]===n})||this.eventManager.triggerChange(n,e,option,!!option),this._animateParam=null,this._raf&&(t=this._raf,$(t)),this._raf=null,this.eventManager.triggerAnimationEnd(!!(null==option?void 0:option.event))}var t},n.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},n.restore=function(option){var e=this.axisManager.get(),n=this.axisManager.map(e,function(e,n){return Math.min(n.range[1],Math.max(n.range[0],e))});this.stopAnimation(),this.animateTo(n,this.getDuration(e,n),option)},n.animationEnd=function(){var e=this.getEventInfo();this._animateParam=null;var n=this.axisManager.filter(this.axisManager.get(),function(e,n){return pe(e,n.range,n.circular)});Object.keys(n).length>0&&this.setTo(this.axisManager.map(n,function(e,n){return ve(e,n.range,n.circular)})),this.interruptManager.setInterrupt(!1),this.eventManager.triggerAnimationEnd(!!e),this.axisManager.isOutside()?this.restore(e):this.finish(!!e)},n.finish=function(e){this._animateParam=null,this.interruptManager.setInterrupt(!1),this.eventManager.triggerFinish(e)},n.getUserControl=function(param){var e=param.setTo();return e.destPos=this.axisManager.get(e.destPos),e.duration=Ae(e.duration,this._options.minimumDuration,this._options.maximumDuration),e},n.animateTo=function(e,n,option){var t=this;this.stopAnimation();var param=this._createAnimationParam(e,n,option),r=j({},param.depaPos),o=this.eventManager.triggerAnimationStart(param),c=this.getUserControl(param);if(!o&&this.axisManager.every(c.destPos,function(e,n){return pe(e,n.range,n.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),o&&!Q(c.destPos,r)){var l=(null==option?void 0:option.event)||null;this._animateLoop({depaPos:r,destPos:c.destPos,duration:c.duration,delta:this.axisManager.getDelta(r,c.destPos),isTrusted:!!l,inputEvent:l,input:(null==option?void 0:option.input)||null},function(){return t.animationEnd()})}},n.setTo=function(e,n){void 0===n&&(n=0);var t=Object.keys(e),r=this.axisManager.get(t);if(Q(e,r))return this;this.interruptManager.setInterrupt(!0);var o=filter(e,function(e,n){return r[n]!==e});return Object.keys(o).length?(o=this.axisManager.map(o,function(e,n){var t=n.range,r=n.circular;return r&&(r[0]||r[1])?e:fe(e,t,r)}),Q(o,r)||(n>0?this.animateTo(o,n):(this.stopAnimation(),this.eventManager.triggerChange(o),this.finish(!1))),this):this},n.setBy=function(e,n){return void 0===n&&(n=0),this.setTo(map(this.axisManager.get(Object.keys(e)),function(n,t){return n+e[t]}),n)},n.setOptions=function(e){this._options=j(j({},this._options),e)},n._createAnimationParam=function(e,n,option){var t=this.axisManager.get(),r=e,o=(null==option?void 0:option.event)||null;return{depaPos:t,destPos:r,duration:Ae(n,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(t,r),inputEvent:o,input:(null==option?void 0:option.input)||null,isTrusted:!!o,done:this.animationEnd}},n._animateLoop=function(param,e){var n=this;if(param.duration){this._animateParam=j(j({},param),{startTime:(new Date).getTime()});var t=map(param.destPos,function(e){return e}),r=this._initState(this._animateParam),o=function(){n._raf=null;var c=n._animateParam,l=n._getNextState(r),h=!n.eventManager.triggerChange(l.pos,r.pos);if(r=l,l.finished)return c.destPos=n._getFinalPos(c.destPos,t),Q(c.destPos,n.axisManager.get(Object.keys(c.destPos)))||n.eventManager.triggerChange(c.destPos,l.pos),void e();h?n.finish(!1):n._raf=W(o)};o()}else this.eventManager.triggerChange(param.destPos),e()},n._getFinalPos=function(e,n){var t=this,r=1e-6;return map(e,function(e,o){if(e>=n[o]-r&&e<=n[o]+r)return n[o];var c=t._getRoundUnit(e,o);return ee(e,c)})},n._getRoundUnit=function(e,n){var t,r=this._options.round,o=null;if(!r){var c=this.axisManager.getAxisOptions(n);t=Math.max(te(c.range[0]),te(c.range[1]),te(e)),o=1/Math.pow(10,t)}return o||r},e}()),Se=function(e){function n(n,t,r){void 0===n&&(n={}),void 0===t&&(t={}),void 0===r&&(r={});var o=e.call(this)||this;return o.axis=n,o._inputs=[],o.options=j({easing:function(e){return 1-Math.pow(1-e,3)},interruptable:!0,maximumDuration:1/0,minimumDuration:0,deceleration:6e-4,round:null,nested:!1},t),Object.keys(r).forEach(function(e){o.axis[e].startPos=r[e]}),o.interruptManager=new he(o.options),o.axisManager=new ge(o.axis),o.eventManager=new le(o),o.animationManager=new Ce(o),o.inputObserver=new Ie(o),o.eventManager.setAnimationManager(o.animationManager),o.eventManager.triggerChange(o.axisManager.get()),o}C(n,e);var t=n.prototype;return Object.defineProperty(t,"holding",{get:function(){return this.eventManager.holdingCount>0},enumerable:!1,configurable:!0}),t.connect=function(e,n){var t;return t="string"==typeof e?e.split(" "):e.concat(),~this._inputs.indexOf(n)&&this.disconnect(n),n.mapAxes(t),n.connect(this.inputObserver),this._inputs.push(n),this},t.disconnect=function(e){if(e){var n=this._inputs.indexOf(e);n>=0&&(this._inputs[n].disconnect(),this._inputs.splice(n,1))}else this._inputs.forEach(function(e){return e.disconnect()}),this._inputs=[];return this},t.get=function(e){return this.axisManager.get(e)},t.setTo=function(e,n){return void 0===n&&(n=0),this.animationManager.setTo(e,n),this},t.setBy=function(e,n){return void 0===n&&(n=0),this.animationManager.setBy(e,n),this},t.setOptions=function(e){return this.options=j(j({},this.options),e),this.animationManager.setOptions(e),this},t.setAxis=function(e){return this.axisManager.setAxis(e),this},t.stopAnimation=function(){return this.animationManager.stopAnimation(),this.animationManager.finish(!1),this},t.updateAnimation=function(e){return this.animationManager.updateAnimation(e),this},t.isBounceArea=function(e){return this.axisManager.isOutside(e)},t.destroy=function(){this.disconnect(),this.eventManager.destroy()},n.VERSION="3.9.2",n.TRANSFORM=B,n.DIRECTION_NONE=1,n.DIRECTION_LEFT=2,n.DIRECTION_RIGHT=4,n.DIRECTION_UP=8,n.DIRECTION_DOWN=16,n.DIRECTION_HORIZONTAL=6,n.DIRECTION_VERTICAL=D,n.DIRECTION_ALL=30,M([I.a],n.prototype,"holding",null),n=M([I.c],n)}(r.b),je=function(){function e(e,n){var t=this;this.axes=[],this.element=null,this._enabled=!1,this._activeEvent=null,this._atRightEdge=!1,this._rightEdgeTimer=0,this._dragged=!1,this._isOverThreshold=!1,this._preventClickWhenDragged=function(e){t._dragged&&(e.preventDefault(),e.stopPropagation()),t._dragged=!1},this._voidFunction=function(){},this.element=X(e),this.options=j({inputType:["touch","mouse","pointer"],inputKey:[V],inputButton:[z],scale:[1,1],thresholdAngle:45,threshold:0,preventClickOnDrag:!1,preventDefaultOnDrag:!1,iOSEdgeSwipeThreshold:30,releaseOnScroll:!1,touchAction:null},n),this._onPanstart=this._onPanstart.bind(this),this._onPanmove=this._onPanmove.bind(this),this._onPanend=this._onPanend.bind(this)}var n=e.prototype;return n.mapAxes=function(e){this._direction=ae(!!e[0],!!e[1]),this.axes=e},n.connect=function(e){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(e),this},n.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),this._direction=1,this},n.destroy=function(){this.disconnect(),this.element=null},n.enable=function(){if(!Te(this.options.inputType))throw new Error("PanInput cannot be enabled if there is no available input event.");return this._enabled||(this._enabled=!0,this._originalCssProps=ue(this.element,this.options,this._direction)),this},n.disable=function(){return this._enabled&&(this._enabled=!1,oe(this._originalCssProps)||ce(this.element,this._originalCssProps)),this},n.isEnabled=function(){return this._enabled},n.release=function(){var e=this._activeEvent,n=e.prevEvent;return e.onRelease(),this._observer.release(this,n,[0,0]),this._detachWindowEvent(e),this},n._onPanstart=function(e){var n=this.options,t=n.inputKey,r=n.inputButton,o=n.preventDefaultOnDrag,c=this._activeEvent,l=c.onEventStart(e,t,r);if(l&&this._enabled&&!(c.getTouches(e,r)>1)&&!1!==l.srcEvent.cancelable){var h=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,l),this._atRightEdge=H&&l.center.x>window.innerWidth-h,this._attachWindowEvent(c),o&&"touchstart"!==l.srcEvent.type&&l.srcEvent.preventDefault(),c.prevEvent=l}},n._onPanmove=function(e){var n=this,t=this.options,r=t.iOSEdgeSwipeThreshold,o=t.preventClickOnDrag,c=t.releaseOnScroll,l=t.inputKey,h=t.inputButton,f=t.threshold,d=t.thresholdAngle,v=this._activeEvent,_=v.onEventMove(e,l,h),m=v.getTouches(e,h);if(0===m||c&&_&&!_.srcEvent.cancelable)this._onPanend(e);else if(_&&this._enabled&&!(m>1)){var y=function(e,n){if(n<0||n>90)return 1;var t=Math.abs(e);return t>n&&t<180-n?D:6}(_.angle,d),P=se(6,this._direction,y),E=se(D,this._direction,y);if(v.prevEvent&&H){if(_.center.x<0)return void this.release();this._atRightEdge&&(clearTimeout(this._rightEdgeTimer),_.deltaX<-r?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout(function(){return n.release()},100))}var x=this._getDistance([_.deltaX,_.deltaY],[P,E]),O=this._getOffset([_.offsetX,_.offsetY],[P,E]),w=O.some(function(e){return 0!==e});w&&(!1!==_.srcEvent.cancelable&&_.srcEvent.preventDefault(),_.srcEvent.stopPropagation()),_.preventSystemEvent=w,w&&(this._isOverThreshold||x>=f)&&(this._dragged=o,this._isOverThreshold=!0,this._observer.change(this,_,Re(this.axes,O))),v.prevEvent=_}},n._onPanend=function(e){var n=this.options.inputButton,t=this._activeEvent;if(t.onEventEnd(e),this._enabled&&0===t.getTouches(e,n)){this._detachWindowEvent(t),clearTimeout(this._rightEdgeTimer);var r=t.prevEvent,o=this._isOverThreshold?this._getOffset([Math.abs(r.velocityX)*r.directionX,Math.abs(r.velocityY)*r.directionY],[se(6,this._direction),se(D,this._direction)]):[0,0];t.onRelease(),this._observer.release(this,r,o)}},n._attachWindowEvent=function(e){var n=this;null==e||e.move.forEach(function(e){window.addEventListener(e,n._onPanmove,ke(e))}),null==e||e.end.forEach(function(e){window.addEventListener(e,n._onPanend,ke(e))})},n._detachWindowEvent=function(e){var n=this;null==e||e.move.forEach(function(e){window.removeEventListener(e,n._onPanmove)}),null==e||e.end.forEach(function(e){window.removeEventListener(e,n._onPanend)})},n._getOffset=function(e,n){var t=this.options.scale;return[n[0]?e[0]*t[0]:0,n[1]?e[1]*t[1]:0]},n._getDistance=function(e,n){return Math.sqrt(Number(n[0])*Math.pow(e[0],2)+Number(n[1])*Math.pow(e[1],2))},n._attachElementEvent=function(e){var n=this,t=Te(this.options.inputType),element=this.element;if(t){if(!element)throw new Error("Element to connect input does not exist.");this._observer=e,this.enable(),this._activeEvent=t,element.addEventListener("click",this._preventClickWhenDragged,!0),t.start.forEach(function(e){element.addEventListener(e,n._onPanstart)}),t.move.forEach(function(e){element.addEventListener(e,n._voidFunction)})}},n._detachElementEvent=function(){var e=this,n=this._activeEvent,element=this.element;element&&(element.removeEventListener("click",this._preventClickWhenDragged,!0),null==n||n.start.forEach(function(n){element.removeEventListener(n,e._onPanstart)}),null==n||n.move.forEach(function(n){element.removeEventListener(n,e._voidFunction)})),this.disable(),this._observer=null},e}(),Me=Se;var De=function(e,b){return De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},De(e,b)};function ze(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function n(){this.constructor=e}De(e,b),e.prototype=null===b?Object.create(b):(n.prototype=b.prototype,new n)}var Ne=function(){return Ne=Object.assign||function(e){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},Ne.apply(this,arguments)};function Le(){for(var s=0,i=0,e=arguments.length;i<e;i++)s+=arguments[i].length;var n=Array(s),t=0;for(i=0;i<e;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,t++)n[t]=a[r];return n}var Fe="undefined"!=typeof window,Ve=Fe?window.navigator.userAgent:"",He=!!Fe&&!!("getComputedStyle"in window),Be=/MSIE|Trident|Windows Phone|Edge/.test(Ve),Ge=!!Fe&&!!("addEventListener"in document),Ue="width",Xe="height";function We(e,n){return e.getAttribute(n)||""}function $e(e){return[].slice.call(e)}function Ye(e,n){return void 0===n&&(n="data-"),"loading"in e&&"lazy"===e.getAttribute("loading")||!!e.getAttribute(n+"lazy")}function qe(element,e,n){Ge?element.addEventListener(e,n,!1):element.attachEvent?element.attachEvent("on"+e,n):element["on"+e]=n}function Ke(element,e,n){element.removeEventListener?element.removeEventListener(e,n,!1):element.detachEvent?element.detachEvent("on"+e,n):element["on"+e]=null}function Ze(e,n){var t=e["client"+n]||e["offset"+n];return parseFloat(t||function(e){return(He?window.getComputedStyle(e):e.currentStyle)||{}}(e)[n.toLowerCase()])||0}var Qe=[];function Je(element,e){!Qe.length&&qe(window,"resize",nn),element.__PREFIX__=e,Qe.push(element),en(element)}function en(element,e){void 0===e&&(e="data-");var n=element.__PREFIX__||e,t=parseInt(We(element,""+n+Ue),10)||0,r=parseInt(We(element,""+n+Xe),10)||0;if(We(element,n+"fixed")===Xe){var o=Ze(element,"Height")||r;element.style[Ue]=t/r*o+"px"}else{o=function(e){return Ze(e,"Width")}(element)||t;element.style[Xe]=r/t*o+"px"}}function nn(){Qe.forEach(function(element){en(element)})}var tn=function(e){function n(element,n){void 0===n&&(n={});var t=e.call(this)||this;t.isReady=!1,t.isPreReady=!1,t.hasDataSize=!1,t.hasLoading=!1,t.isSkip=!1,t.onCheck=function(e){t.clear(),e&&"error"===e.type&&t.onError(t.element),t.hasLoading&&t.checkElement()||t.onReady()},t.options=Ne({prefix:"data-"},n),t.element=element;var r=t.options.prefix;return t.hasDataSize=function(e,n){return void 0===n&&(n="data-"),!!e.getAttribute(n+"width")}(element,r),t.isSkip=function(e,n){return void 0===n&&(n="data-"),!!e.getAttribute(n+"skip")}(element,r),t.hasLoading=Ye(element,r),t}ze(n,e);var t=n.prototype;return t.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(),!1):(this.hasDataSize&&Je(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},t.addEvents=function(){var e=this,element=this.element;this.constructor.EVENTS.forEach(function(n){qe(element,n,e.onCheck)})},t.clear=function(){var e=this,element=this.element;this.constructor.EVENTS.forEach(function(n){Ke(element,n,e.onCheck)}),this.removeAutoSizer()},t.destroy=function(){this.clear(),this.off()},t.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;!function(element,e){var n=Qe.indexOf(element);if(!(n<0)){var t=We(element,e+"fixed");delete element.__PREFIX__,element.style[t===Xe?Ue:Xe]="",Qe.splice(n,1),!Qe.length&&Ke(window,"resize",nn)}}(this.element,e)}},t.onError=function(e){this.trigger("error",{element:this.element,target:e})},t.onPreReady=function(){this.isPreReady||(this.isPreReady=!0,this.trigger("preReady",{element:this.element,hasLoading:this.hasLoading,isSkip:this.isSkip}))},t.onReady=function(){var e=this.isPreReady;this.isPreReady=!0,this.isReady||(this.removeAutoSizer(),this.isReady=!0,this.trigger("ready",{element:this.element,withPreReady:!e,hasLoading:this.hasLoading,isSkip:this.isSkip}))},t.onAlreadyError=function(e){var n=this;setTimeout(function(){n.onError(e)})},t.onAlreadyPreReady=function(){var e=this;setTimeout(function(){e.onPreReady()})},t.onAlreadyReady=function(){var e=this;setTimeout(function(){e.onReady()})},n.EVENTS=[],n}(r.b),rn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}ze(n,e);var t=n.prototype;return t.setHasLoading=function(e){this.hasLoading=e},t.check=function(){return this.isSkip?(this.onAlreadyReady(),!1):(this.hasDataSize?(Je(this.element,this.options.prefix),this.onAlreadyPreReady()):this.trigger("requestChildren"),!0)},t.checkElement=function(){return!0},t.destroy=function(){this.clear(),this.trigger("requestDestroy"),this.off()},t.onAlreadyPreReady=function(){e.prototype.onAlreadyPreReady.call(this),this.trigger("reqeustReadyChildren")},n.EVENTS=[],n}(tn),on=function(e){function n(n){void 0===n&&(n={});var t=e.call(this)||this;return t.readyCount=0,t.preReadyCount=0,t.totalCount=0,t.totalErrorCount=0,t.isPreReadyOver=!0,t.elementInfos=[],t.options=Ne({loaders:{},prefix:"data-"},n),t}ze(n,e);var t=n.prototype;return t.check=function(e){var n=this,t=this.options.prefix;this.clear(),this.elementInfos=$e(e).map(function(element,e){var r=n.getLoader(element,{prefix:t});return r.check(),r.on("error",function(t){n.onError(e,t.target)}).on("preReady",function(t){var r=n.elementInfos[e];r.hasLoading=t.hasLoading,r.isSkip=t.isSkip;var o=n.checkPreReady(e);n.onPreReadyElement(e),o&&n.onPreReady()}).on("ready",function(t){var r=t.withPreReady,o=t.hasLoading,c=t.isSkip,l=n.elementInfos[e];l.hasLoading=o,l.isSkip=c;var h=r&&n.checkPreReady(e),f=n.checkReady(e);r&&n.onPreReadyElement(e),n.onReadyElement(e),h&&n.onPreReady(),f&&n.onReady()}),{loader:r,element:element,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}});var r=this.elementInfos.length;return this.totalCount=r,r||setTimeout(function(){n.onPreReady(),n.onReady()}),this},t.getTotalCount=function(){return this.totalCount},t.isPreReady=function(){return this.elementInfos.every(function(e){return e.isPreReady})},t.isReady=function(){return this.elementInfos.every(function(e){return e.isReady})},t.hasError=function(){return this.totalErrorCount>0},t.clear=function(){this.isPreReadyOver=!1,this.totalCount=0,this.preReadyCount=0,this.readyCount=0,this.totalErrorCount=0,this.elementInfos.forEach(function(e){e.loader&&e.loader.destroy()}),this.elementInfos=[]},t.destroy=function(){this.clear(),this.off()},t.getLoader=function(element,e){var n=this,t=element.tagName.toLowerCase(),r=this.options.loaders,o=e.prefix,c=Object.keys(r);if(r[t])return new r[t](element,e);var l=new rn(element,e),h=$e(element.querySelectorAll(c.join(", ")));l.setHasLoading(h.some(function(e){return Ye(e,o)}));var f=this.clone().on("error",function(e){l.onError(e.target)}).on("ready",function(){l.onReady()});return l.on("requestChildren",function(){var e=function(element,e,n){var t=$e(element.querySelectorAll(Le(["["+n+"skip] ["+n+"width]"],e.map(function(e){return["["+n+"skip] "+e,e+"["+n+"skip]","["+n+"width] "+e].join(", ")})).join(", ")));return $e(element.querySelectorAll("["+n+"width], "+e.join(", "))).filter(function(e){return-1===t.indexOf(e)})}(element,c,n.options.prefix);f.check(e).on("preReady",function(e){e.isReady||l.onPreReady()})}).on("reqeustReadyChildren",function(){f.check(h)}).on("requestDestroy",function(){f.destroy()}),l},t.clone=function(){return new n(Ne({},this.options))},t.checkPreReady=function(e){return this.elementInfos[e].isPreReady=!0,++this.preReadyCount,!(this.preReadyCount<this.totalCount)},t.checkReady=function(e){return this.elementInfos[e].isReady=!0,++this.readyCount,!(this.readyCount<this.totalCount)},t.onError=function(e,n){var t=this.elementInfos[e];t.hasError=!0,this.trigger(new r.a("error",{element:t.element,index:e,target:n,errorCount:this.getErrorCount(),totalErrorCount:++this.totalErrorCount}))},t.onPreReadyElement=function(e){var n=this.elementInfos[e];this.trigger(new r.a("preReadyElement",{element:n.element,index:e,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:n.hasLoading,isSkip:n.isSkip}))},t.onPreReady=function(){this.isPreReadyOver=!0,this.trigger(new r.a("preReady",{readyCount:this.readyCount,totalCount:this.totalCount,isReady:this.isReady(),hasLoading:this.hasLoading()}))},t.onReadyElement=function(e){var n=this.elementInfos[e];this.trigger(new r.a("readyElement",{index:e,element:n.element,hasError:n.hasError,errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:n.hasLoading,isPreReadyOver:this.isPreReadyOver,isSkip:n.isSkip}))},t.onReady=function(){this.trigger(new r.a("ready",{errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,totalCount:this.totalCount}))},t.getErrorCount=function(){return this.elementInfos.filter(function(e){return e.hasError}).length},t.hasLoading=function(){return this.elementInfos.some(function(e){return e.hasLoading})},n}(r.b),an=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ze(n,e),n.prototype.checkElement=function(){var element=this.element,e=element.getAttribute("src");
2if(element.complete){if(e)return element.naturalWidth||this.onAlreadyError(element),!1;this.onAlreadyPreReady()}return this.addEvents(),Be&&element.setAttribute("src",e),!0},n.EVENTS=["load","error"],n}(tn),sn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ze(n,e),n.prototype.checkElement=function(){var element=this.element;return!(element.readyState>=1)&&(element.error?(this.onAlreadyError(element),!1):(this.addEvents(),!0))},n.EVENTS=["loadedmetadata","error"],n}(tn),un=function(e){function n(n){return void 0===n&&(n={}),e.call(this,Ne({loaders:{img:an,video:sn}},n))||this}return ze(n,e),n}(on),cn=un,ln=function(e,b){return ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},ln(e,b)};function hn(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function n(){this.constructor=e}ln(e,b),e.prototype=null===b?Object.create(b):(n.prototype=b.prototype,new n)}var fn=function(){return fn=Object.assign||function(e){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},fn.apply(this,arguments)};function dn(e,n,t,r){return new(t||(t=Promise))(function(o,c){function l(e){try{f(r.next(e))}catch(e){c(e)}}function h(e){try{f(r.throw(e))}catch(e){c(e)}}function f(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(l,h)}f((r=r.apply(e,n||[])).next())})}function pn(e,body){var n,t,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(n=1,t&&(r=2&c[0]?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,t=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],t=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}function vn(e){var s="function"==typeof Symbol&&Symbol.iterator,n=s&&e[s],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function gn(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),c=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return c}function _n(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(gn(arguments[i]));return e}"function"==typeof SuppressedError&&SuppressedError;var mn,bn={WRONG_TYPE:0,ELEMENT_NOT_FOUND:1,VAL_MUST_NOT_NULL:2,NOT_ATTACHED_TO_FLICKING:3,WRONG_OPTION:4,INDEX_OUT_OF_RANGE:5,POSITION_NOT_REACHABLE:6,TRANSFORM_NOT_SUPPORTED:7,STOP_CALLED_BY_USER:8,ANIMATION_INTERRUPTED:9,ANIMATION_ALREADY_PLAYING:10,NOT_ALLOWED_IN_FRAMEWORK:11,NOT_INITIALIZED:12,NO_ACTIVE:13,NOT_ALLOWED_IN_VIRTUAL:14},yn=function(e,n){return e+"("+typeof e+") is not a "+n.map(function(e){return'"'+e+'"'}).join(" or ")+"."},Pn=function(e){return'Element with selector "'+e+'" not found.'},En=function(e,n){return n+" should be provided. Given: "+e},xn='This module is not attached to the Flicking instance. "init()" should be called first.',On=function(e,n){return'Option "'+e+'" is not in correct format, given: '+n},wn=function(e,n,t){return'Index "'+e+'" is out of range: should be between '+n+" and "+t+"."},Rn=function(e){return'Position "'+e+'" is not reachable.'},Tn="Browser does not support CSS transform.",kn="Event stop() is called by user.",In="Animation is interrupted by user input.",An="Animation is already playing.",Cn="This behavior is not allowed in the frameworks like React, Vue, or Angular.",Sn="Flicking is not initialized yet, call init() first.",jn={READY:"ready",BEFORE_RESIZE:"beforeResize",AFTER_RESIZE:"afterResize",HOLD_START:"holdStart",HOLD_END:"holdEnd",MOVE_START:"moveStart",MOVE:"move",MOVE_END:"moveEnd",WILL_CHANGE:"willChange",CHANGED:"changed",WILL_RESTORE:"willRestore",RESTORED:"restored",SELECT:"select",NEED_PANEL:"needPanel",VISIBLE_CHANGE:"visibleChange",REACH_EDGE:"reachEdge",PANEL_CHANGE:"panelChange"},Mn="prev",Dn="center",zn="next",Nn={PREV:"PREV",NEXT:"NEXT",NONE:null},Ln={SNAP:"snap",FREE_SCROLL:"freeScroll",STRICT:"strict"},Fn={VIEWPORT:"flicking-viewport",CAMERA:"flicking-camera",VERTICAL:"vertical",HIDDEN:"flicking-hidden",DEFAULT_VIRTUAL:"flicking-panel"},Vn="linear",Hn="bound",Bn="ltr",Gn="rtl",Un=function(e,n,t){return Math.max(Math.min(e,t),n)},Xn=function(e){if(!e)throw new ft(xn,bn.NOT_ATTACHED_TO_FLICKING);return e},Wn=function(e){return[].slice.call(e)},$n=function(e,n){var t;if(nt(e))switch(e){case Mn:t=0;break;case Dn:t=.5*n;break;case zn:t=n;break;default:if(null==(t=Yn(e,n)))throw new ft(On("align",e),bn.WRONG_OPTION)}else t=e;return t},Yn=function(e,base){var n=qn(e);return null==n?null:n.percentage*base+n.absolute},qn=function(e){var n=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if("number"==typeof e)return{percentage:0,absolute:e};for(var t={percentage:0,absolute:0},r=0,o=n.exec(e);null!=o;){var c=o[1],l=o[2],h=o[3],f=parseFloat(l);
2if(r<=0&&(c=c||"+"),!c)return null;var d="+"===c?1:-1;"%"===h?t.percentage+=d*(f/100):t.absolute+=d*f,++r,o=n.exec(e)}return 0===r?null:t},Kn=function(e){return"object"==typeof e?e.panel:e},Zn=function(e,n){return e===n?Nn.NONE:e<n?Nn.NEXT:Nn.PREV},Qn=function(element){Array.isArray(element)||(element=[element]);var e=[];return element.forEach(function(n){if(nt(n)){var t=document.createElement("div");for(t.innerHTML=n,e.push.apply(e,_n(Wn(t.children)));t.firstChild;)t.removeChild(t.firstChild)}else{if(!n||n.nodeType!==Node.ELEMENT_NODE)throw new ft(yn(n,["HTMLElement","string"]),bn.WRONG_TYPE);e.push(n)}}),e},Jn=function(e,n){return Un(e<0?e+n:e,0,n)},et=function(e,n){var t,r;try{for(var o=vn(e),c=o.next();!c.done;c=o.next()){if(c.value===n)return!0}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!1},nt=function(e){return"string"==typeof e},tt=function(e,n,t){var r=t-n;if(e<n)e=t-(n-e)%r;else if(e>t){e=n+(e-t)%r}return e},it=function(e,n,t){return(e-n)/(t-n)},ot=function(e){return e?window.getComputedStyle(e)||e.currentStyle:{}},at=function(e,n){var t=n.width,r=n.height;e&&(null!=t&&(nt(t)?e.style.width=t:e.style.width=t+"px"),null!=r&&(nt(r)?e.style.height=r:e.style.height=r+"px"))},st=function(e,n,t){return e>=n&&e<=t},ut=function(e,n){return e>=n?e%n:e<0?Jn((e+1)%n-1,n):e},ct=function(e){for(var n=new Array(e),i=0;i<e;i++)n[i]=i;return n},lt=function(e){var n=e.el,t=e.horizontal,r=e.useFractionalSize,o=e.useOffset,style=e.style,c=0;if(r){var l=parseFloat(t?style.width:style.height)||0,h="border-box"===style.boxSizing,f=t?parseFloat(style.borderLeftWidth||"0")+parseFloat(style.borderRightWidth||"0"):parseFloat(style.borderTopWidth||"0")+parseFloat(style.borderBottomWidth||"0");if(h)c=o?l:l-f;else{var d=t?parseFloat(style.paddingLeft||"0")+parseFloat(style.paddingRight||"0"):parseFloat(style.paddingTop||"0")+parseFloat(style.paddingBottom||"0");c=o?l+d+f:l+d}}else{var v=t?"Width":"Height";c=o?n["offset"+v]:n["client"+v]}return Math.max(c,0)},ht=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},ft=function(e){function n(t,code){var r=e.call(this,t)||this;return ht(r,n.prototype),r.name="FlickingError",r.code=code,r}return hn(n,e),n}(Error),pt=function(){function e(e,n){this._flicking=e,this._el=n,this._width=0,this._height=0,this._padding={left:0,right:0,top:0,bottom:0},this._isBorderBoxSizing=!1}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(n,"width",{get:function(){return this._width-this._padding.left-this._padding.right},enumerable:!1,configurable:!0}),Object.defineProperty(n,"height",{get:function(){return this._height-this._padding.top-this._padding.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(n,"padding",{get:function(){return this._padding},enumerable:!1,configurable:!0}),n.setSize=function(e){var n=e.width,t=e.height,r=this._el,o=this._padding,c=this._isBorderBoxSizing;if(null!=n)if(nt(n))r.style.width=n;else{var l=c?n+o.left+o.right:n;r.style.width=l+"px"}if(null!=t)if(nt(t))r.style.height=t;else{var h=c?t+o.top+o.bottom:t;r.style.height=h+"px"}this.resize()},n.resize=function(){var e=this._el,n=ot(e),t=this._flicking.useFractionalSize;this._width=lt({el:e,horizontal:!0,useFractionalSize:t,useOffset:!1,style:n}),this._height=lt({el:e,horizontal:!1,useFractionalSize:t,useOffset:!1,style:n}),this._padding={left:n.paddingLeft?parseFloat(n.paddingLeft):0,right:n.paddingRight?parseFloat(n.paddingRight):0,top:n.paddingTop?parseFloat(n.paddingTop):0,bottom:n.paddingBottom?parseFloat(n.paddingBottom):0},this._isBorderBoxSizing="border-box"===n.boxSizing},e}(),vt=function(){function e(e){var n,t=this;this._onResizeWrapper=function(){t._onResize([])},this._onResize=function(e){var n=t._flicking,r=n.resizeDebounce,o=n.maxResizeDebounce,c=n.element;if(e.find(function(e){return e.target===n.element})&&1===e.length){var l={width:n.viewport.width,height:n.viewport.height},h={width:lt({el:c,horizontal:!0,useFractionalSize:t._flicking.useFractionalSize,useOffset:!1,style:ot(c)}),height:lt({el:c,horizontal:!1,useFractionalSize:t._flicking.useFractionalSize,useOffset:!1,style:ot(c)})};if(l.height===h.height&&l.width===h.width)return}r<=0?n.resize():(t._maxResizeDebounceTimer<=0&&o>0&&o>=r&&(t._maxResizeDebounceTimer=window.setTimeout(t._doScheduledResize,o)),t._resizeTimer>0&&(clearTimeout(t._resizeTimer),t._resizeTimer=0),t._resizeTimer=window.setTimeout(t._doScheduledResize,r))},this._doScheduledResize=function(){clearTimeout(t._resizeTimer),clearTimeout(t._maxResizeDebounceTimer),t._maxResizeDebounceTimer=-1,t._resizeTimer=-1,t._flicking.resize()},this._skipFirstResize=(n=!0,function(e){n?n=!1:t._onResize(e)}
2),this._flicking=e,this._enabled=!1,this._resizeObserver=null,this._resizeTimer=-1,this._maxResizeDebounceTimer=-1}var n=e.prototype;return Object.defineProperty(n,"enabled",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),n.enable=function(){var e=this._flicking,n=e.viewport;if(this._enabled&&this.disable(),e.useResizeObserver&&window.ResizeObserver){var t=0!==n.width||0!==n.height?new ResizeObserver(this._skipFirstResize):new ResizeObserver(this._onResize);this._resizeObserver=t,this.observe(e.viewport.element),e.observePanelResize&&this.observePanels()}else window.addEventListener("resize",this._onResizeWrapper);return this._enabled=!0,this},n.observePanels=function(){var e=this;return this._flicking.panels.forEach(function(n){e.observe(n.element)}),this},n.unobservePanels=function(){var e=this;return this._flicking.panels.forEach(function(n){e.unobserve(n.element)}),this},n.observe=function(element){var e=this._resizeObserver;return e?(e.observe(element),this):this},n.unobserve=function(element){var e=this._resizeObserver;return e?(e.unobserve(element),this._flicking.observePanelResize&&this.unobservePanels(),this):this},n.disable=function(){if(!this._enabled)return this;var e=this._resizeObserver;return e?(e.disconnect(),this._resizeObserver=null):window.removeEventListener("resize",this._onResizeWrapper),this._enabled=!1,this},e}(),gt=function(){function e(element){this._element=element,this._rendered=!0}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),n.show=function(e){var n=this.element,t=e.camera.element;n.parentElement!==t&&(t.appendChild(n),this._rendered=!0)},n.hide=function(e){var n=this.element,t=e.camera.element;n.parentElement===t&&(t.removeChild(n),this._rendered=!1)},e}(),_t=function(){function e(e){this._flicking=e}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._virtualElement.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._virtualElement.visible},enumerable:!1,configurable:!0}),Object.defineProperty(n,"_virtualElement",{get:function(){var e=this._flicking,n=this._panel.elementIndex;return e.virtual.elements[n]},enumerable:!1,configurable:!0}),n.init=function(e){this._panel=e},n.show=function(){},n.hide=function(){},e}(),mt=function(){function e(e,n){var t,r,o,c;this._flicking=e,this._renderPanel=null!==(t=null==n?void 0:n.renderPanel)&&void 0!==t?t:function(){return""},this._initialPanelCount=null!==(r=null==n?void 0:n.initialPanelCount)&&void 0!==r?r:-1,this._cache=null!==(o=null==n?void 0:n.cache)&&void 0!==o&&o,this._panelClass=null!==(c=null==n?void 0:n.panelClass)&&void 0!==c?c:Fn.DEFAULT_VIRTUAL,this._elements=[]}var n=e.prototype;return Object.defineProperty(n,"elements",{get:function(){return this._elements},enumerable:!1,configurable:!0}),Object.defineProperty(n,"renderPanel",{get:function(){return this._renderPanel},set:function(e){this._renderPanel=e,this._flicking.renderer.panels.forEach(function(e){return e.uncacheRenderResult()})},enumerable:!1,configurable:!0}),Object.defineProperty(n,"initialPanelCount",{get:function(){return this._initialPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(n,"cache",{get:function(){return this._cache},set:function(e){this._cache=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panelClass",{get:function(){return this._panelClass},set:function(e){this._panelClass=e},enumerable:!1,configurable:!0}),n.init=function(){var e=this._flicking;if(e.virtualEnabled){e.externalRenderer||e.renderExternal||this._initVirtualElements();var n=e.camera.children;this._elements=n.map(function(e){return{nativeElement:e,visible:!0}})}},n.show=function(e){var n=this._elements[e],t=n.nativeElement;n.visible=!0,t.style.display&&(t.style.display="")},n.hide=function(e){var n=this._elements[e],t=n.nativeElement;n.visible=!1,t.style.display="none"},n.append=function(e){void 0===e&&(e=1);var n=this._flicking;return this.insert(n.panels.length,e)},n.prepend=function(e){return void 0===e&&(e=1),this.insert(0,e)},n.insert=function(e,n){return void 0===n&&(n=1),n<=0?[]:this._flicking.renderer.batchInsert({index:e,elements:ct(n),hasDOMInElements:!1})},n.remove=function(e,n){return n<=0?[]:this._flicking.renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!1})}
2,n._initVirtualElements=function(){var e=this,n=this._flicking,t=n.camera.element,r=n.panelsPerView,o=document.createDocumentFragment();ct(r+1).map(function(n){var t=document.createElement("div");return t.className=e._panelClass,t.dataset.elementIndex=n.toString(),t}).forEach(function(e){o.appendChild(e)}),t.appendChild(o)},e}(),bt={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},yt="flick";!function(e){e[e.IDLE=0]="IDLE",e[e.HOLDING=1]="HOLDING",e[e.DRAGGING=2]="DRAGGING",e[e.ANIMATING=3]="ANIMATING",e[e.DISABLED=4]="DISABLED"}(mn||(mn={}));var Pt=function(){function e(){this._delta=0,this._targetPanel=null}var n=e.prototype;return Object.defineProperty(n,"delta",{get:function(){return this._delta},enumerable:!1,configurable:!0}),Object.defineProperty(n,"targetPanel",{get:function(){return this._targetPanel},set:function(e){this._targetPanel=e},enumerable:!1,configurable:!0}),n.onEnter=function(e){this._delta=e._delta,this._targetPanel=e._targetPanel},n.onHold=function(e){},n.onChange=function(e){},n.onRelease=function(e){},n.onAnimationEnd=function(e){},n.onFinish=function(e){},n._moveToChangedPosition=function(e){var n=e.flicking,t=e.axesEvent,o=e.transitTo,c=t.delta[yt];if(c){this._delta+=c;var l=n.camera,h=l.position,f=t.pos[yt],d=n.circularEnabled?tt(f,l.range.min,l.range.max):f;l.lookAt(d);var v=new r.a(jn.MOVE,{isTrusted:t.isTrusted,holding:this.holding,direction:Zn(0,t.delta[yt]),axesEvent:t});n.trigger(v),v.isCanceled()&&(l.lookAt(h),o(mn.DISABLED))}},e}(),Et=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!1,n}hn(n,e);var t=n.prototype;return t.onEnter=function(){this._delta=0,this._targetPanel=null},t.onHold=function(e){var n=e.flicking,t=e.axesEvent,o=e.transitTo;if(n.renderer.panelCount<=0)o(mn.DISABLED);else{var c=new r.a(jn.HOLD_START,{axesEvent:t});n.trigger(c),c.isCanceled()?o(mn.DISABLED):o(mn.HOLDING)}},t.onChange=function(e){var n=e.flicking,t=e.axesEvent,o=e.transitTo,c=n.control.controller.animatingContext,l=new r.a(jn.MOVE_START,{isTrusted:t.isTrusted,holding:this.holding,direction:Zn(c.start,c.end),axesEvent:t});n.trigger(l),l.isCanceled()?o(mn.DISABLED):o(mn.ANIMATING).onChange(e)},n}(Pt),xt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!0,n.animating=!1,n._releaseEvent=null,n}hn(n,e);var t=n.prototype;return t.onChange=function(e){var n=e.flicking,t=e.axesEvent,o=e.transitTo,c=t.inputEvent;if(c){var l=n.horizontal?c.offsetX:c.offsetY,h=new r.a(jn.MOVE_START,{isTrusted:t.isTrusted,holding:this.holding,direction:Zn(0,-l),axesEvent:t});n.trigger(h),h.isCanceled()?o(mn.DISABLED):o(mn.DRAGGING).onChange(e)}},t.onRelease=function(e){var n=e.flicking,t=e.axesEvent,o=e.transitTo;if(n.trigger(new r.a(jn.HOLD_END,{axesEvent:t})),0!==t.delta.flick)return t.setTo({flick:n.camera.position},0),void o(mn.IDLE);this._releaseEvent=t},t.onFinish=function(e){var n,t,o=e.flicking;if((0,e.transitTo)(mn.IDLE),this._releaseEvent){var c,l=this._releaseEvent.inputEvent.srcEvent;if("touchend"===l.type){var h=l.changedTouches[0];c=document.elementFromPoint(h.clientX,h.clientY)}else c=l.target;var f=o.renderer.panels,d=null;try{for(var v=vn(f),_=v.next();!_.done;_=v.next()){var m=_.value;if(m.contains(c)){d=m;break}}}catch(e){n={error:e}}finally{try{_&&!_.done&&(t=v.return)&&t.call(v)}finally{if(n)throw n.error}}if(d){var y=o.camera.position,P=d.position;o.trigger(new r.a(jn.SELECT,{index:d.index,panel:d,direction:Zn(y,P)}))}}},n}(Pt),Ot=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!0,n.animating=!0,n}hn(n,e);var t=n.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var n,t=e.flicking,o=e.axesEvent,c=e.transitTo;if(t.trigger(new r.a(jn.HOLD_END,{axesEvent:o})),t.renderer.panelCount<=0)c(mn.IDLE);else{c(mn.ANIMATING);var l=t.control,h=o.destPos[yt],f=Math.max(o.duration,t.duration);try{l.moveToPosition(h,f,o)}catch(e){c(mn.IDLE),o.setTo(((n={})[yt]=t.camera.position,n),0)}}},n}(Pt),wt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!0,n}hn(n,e);var t=n.prototype;return t.onHold=function(e){var n=e.flicking,t=e.axesEvent,o=e.transitTo,c=this._targetPanel,l=n.control;
2this._delta=0,n.control.updateInput(),n.changeOnHold&&c&&l.setActive(c,l.activePanel,t.isTrusted);var h=new r.a(jn.HOLD_START,{axesEvent:t});n.trigger(h),h.isCanceled()?o(mn.DISABLED):o(mn.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var n=e.flicking,t=e.axesEvent,o=e.transitTo,c=n.control,l=c.controller.animatingContext;o(mn.IDLE),n.trigger(new r.a(jn.MOVE_END,{isTrusted:t.isTrusted,direction:Zn(l.start,l.end),axesEvent:t}));var h=this._targetPanel;h&&c.setActive(h,c.activePanel,t.isTrusted)},n}(Pt),Rt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!0,n}hn(n,e);var t=n.prototype;return t.onAnimationEnd=function(e){(0,e.transitTo)(mn.IDLE)},t.onChange=function(e){var n=e.axesEvent,t=e.transitTo;n.stop(),t(mn.IDLE)},t.onRelease=function(e){var n=e.axesEvent,t=e.transitTo;0===n.delta.flick&&t(mn.IDLE)},n}(Pt),Tt=function(){function e(){var e=this;this.transitTo=function(n){var t;switch(n){case mn.IDLE:t=new Et;break;case mn.HOLDING:t=new xt;break;case mn.DRAGGING:t=new Ot;break;case mn.ANIMATING:t=new wt;break;case mn.DISABLED:t=new Rt}return t.onEnter(e._state),e._state=t,e._state},this._state=new Et}var n=e.prototype;return Object.defineProperty(n,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),n.fire=function(e,n){var t=this._state,r=fn(fn({},n),{transitTo:this.transitTo});switch(e){case bt.HOLD:t.onHold(r);break;case bt.CHANGE:t.onChange(r);break;case bt.RELEASE:t.onRelease(r);break;case bt.ANIMATION_END:t.onAnimationEnd(r);break;case bt.FINISH:t.onFinish(r)}},e}(),kt=function(){function e(){var e=this;this._onAxesHold=function(){e._dragged=!1},this._onAxesChange=function(){var n;e._dragged=!!(null===(n=e._panInput)||void 0===n?void 0:n.isEnabled())},this._preventClickWhenDragged=function(n){e._dragged&&(n.preventDefault(),n.stopPropagation()),e._dragged=!1},this._resetInternalValues(),this._stateMachine=new Tt}var n=e.prototype;return Object.defineProperty(n,"axes",{get:function(){return this._axes},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panInput",{get:function(){return this._panInput},enumerable:!1,configurable:!0}),Object.defineProperty(n,"stateMachine",{get:function(){return this._stateMachine},enumerable:!1,configurable:!0}),Object.defineProperty(n,"state",{get:function(){return this._stateMachine.state},enumerable:!1,configurable:!0}),Object.defineProperty(n,"animatingContext",{get:function(){return this._animatingContext},enumerable:!1,configurable:!0}),Object.defineProperty(n,"controlParams",{get:function(){var e=this._axes;if(!e)return{range:{min:0,max:0},position:0,circular:!1};var n=e.axis[yt];return{range:{min:n.range[0],max:n.range[1]},circular:n.circular[0],position:this.position}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"enabled",{get:function(){var e,n;return null!==(n=null===(e=this._panInput)||void 0===e?void 0:e.isEnabled())&&void 0!==n&&n},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){var e,n;return null!==(n=null===(e=this._axes)||void 0===e?void 0:e.get([yt])[yt])&&void 0!==n?n:0},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){var e,n;return null!==(n=null===(e=this._axes)||void 0===e?void 0:e.axis[yt].range)&&void 0!==n?n:[0,0]},enumerable:!1,configurable:!0}),Object.defineProperty(n,"bounce",{get:function(){var e;return null===(e=this._axes)||void 0===e?void 0:e.axis[yt].bounce},enumerable:!1,configurable:!0}),n.init=function(e){var n,t=this;this._flicking=e,this._axes=new Me(((n={})[yt]={range:[0,0],circular:!1,bounce:[0,0]},n),{deceleration:e.deceleration,interruptable:e.interruptable,nested:e.nested,easing:e.easing}),this._panInput=new je(e.viewport.element,{inputType:e.inputType,threshold:e.dragThreshold,iOSEdgeSwipeThreshold:e.iOSEdgeSwipeThreshold,preventDefaultOnDrag:e.preventDefaultOnDrag,scale:e.horizontal?[e.camera.panelOrder===Gn?1:-1,0]:[0,-1],releaseOnScroll:!0});var r=this._axes;r.connect(e.horizontal?[yt,""]:["",yt],this._panInput);var o=function(n){var o=bt[n];r.on(o,function(n){t._stateMachine.fire(o,{flicking:e,axesEvent:n})})};for(var c in bt)o(c);return this},n.destroy=function(){var e;this._axes&&(this.removePreventClickHandler(),this._axes.destroy()),null===(e=this._panInput)||void 0===e||e.destroy(),this._resetInternalValues()},n.enable=function(){var e;return null===(e=this._panInput)||void 0===e||e.enable(),this},n.disable=function(){var e;return null===(e=this._panInput)||void 0===e||e.disable(),this},n.release=function(){var e;return null===(e=this._panInput)||void 0===e||e.release(),this},n.updateAnimation=function(e,n){var t,r;return this._animatingContext=fn(fn({},this._animatingContext),{end:e}),null===(r=this._axes)||void 0===r||r.updateAnimation({destPos:(t={},t[yt]=e,t),duration:n}),this},n.stopAnimation=function(){var e;return null===(e=this._axes)||void 0===e||e.stopAnimation(),this},n.update=function(e){var n,t=Xn(this._flicking),r=t.camera,o=this._axes,c=o.axis[yt];return c.circular=[e.circular,e.circular],c.range=[e.range.min,e.range.max],c.bounce=function(e,n){var t;if(Array.isArray(e))t=e.map(function(e){return Yn(e,n)});else{var r=Yn(e,n);t=[r,r]}return t.map(function(n){if(null==n)throw new ft(On("bounce",e),bn.WRONG_OPTION);return n})}(t.bounce,r.size),o.axisManager.set(((n={})[yt]=e.position,n)),this},n.addPreventClickHandler=function(){var e=Xn(this._flicking),n=this._axes,t=e.camera.element;return n.on(bt.HOLD,this._onAxesHold),n.on(bt.CHANGE,this._onAxesChange),t.addEventListener("click",this._preventClickWhenDragged,!0),this},n.removePreventClickHandler=function(){var e=Xn(this._flicking),n=this._axes,t=e.camera.element;return n.off(bt.HOLD,this._onAxesHold),n.off(bt.CHANGE,this._onAxesChange),t.removeEventListener("click",this._preventClickWhenDragged,!0),this},n.animateTo=function(e,n,t){var r,o=this,c=this._axes,l=this._stateMachine.state;if(!c)return Promise.reject(new ft(xn,bn.NOT_ATTACHED_TO_FLICKING));var h=this.getCurrentPosition();if(h===e){var f=Xn(this._flicking);return f.camera.lookAt(e),l.targetPanel&&f.control.setActive(l.targetPanel,f.control.activePanel,null!==(r=null==t?void 0:t.isTrusted)&&void 0!==r&&r),Promise.resolve()}this._animatingContext={start:h,end:e,offset:0};return new Promise(function(r,l){var h=function(){c.off(bt.HOLD,f),r()},f=function(){c.off(bt.FINISH,h),l(new ft(In,bn.ANIMATION_INTERRUPTED))};c.once(bt.FINISH,h),c.once(bt.HOLD,f),function(){var r,l;c.once(bt.FINISH,function(){o._animatingContext={start:0,end:0,offset:0}}),t?t.setTo(((r={})[yt]=e,r),n):c.setTo(((l={})[yt]=e,l),n)}()})},n.getCurrentPosition=function(){var e,n;return null!==(n=null===(e=this._axes)||void 0===e?void 0:e.get([yt])[yt])&&void 0!==n?n:0},n.updateDirection=function(){var e=Xn(this._flicking),n=this._axes,t=this._panInput;n.disconnect(t),n.connect(e.horizontal?[yt,""]:["",yt],t),t.options.scale=e.horizontal?[e.camera.panelOrder===Gn?1:-1,0]:[0,-1
2]},n._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},e}(),It=function(){function e(){this._flicking=null,this._controller=new kt,this._activePanel=null}var n=e.prototype;return Object.defineProperty(n,"controller",{get:function(){return this._controller},enumerable:!1,configurable:!0}),Object.defineProperty(n,"activeIndex",{get:function(){var e,n;return null!==(n=null===(e=this._activePanel)||void 0===e?void 0:e.index)&&void 0!==n?n:-1},enumerable:!1,configurable:!0}),Object.defineProperty(n,"activePanel",{get:function(){return this._activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(n,"animating",{get:function(){return this._controller.state.animating},enumerable:!1,configurable:!0}),Object.defineProperty(n,"holding",{get:function(){return this._controller.state.holding},enumerable:!1,configurable:!0}),n.init=function(e){return this._flicking=e,this._controller.init(e),this},n.destroy=function(){this._controller.destroy(),this._flicking=null,this._activePanel=null},n.enable=function(){return this._controller.enable(),this},n.disable=function(){return this._controller.disable(),this},n.release=function(){return this._controller.release(),this},n.updateAnimation=function(e,n,t){var r=this._controller.state,o=this._getPosition(e,null!=t?t:Nn.NONE);return r.targetPanel=e,this._controller.updateAnimation(o,n),this},n.stopAnimation=function(){return this._controller.state.targetPanel=null,this._controller.stopAnimation(),this},n.updatePosition=function(e){var n=Xn(this._flicking).camera,t=this._activePanel;t&&n.lookAt(n.clampToReachablePosition(t.position))},n.updateInput=function(){var e=Xn(this._flicking).camera;return this._controller.update(e.controlParams),this},n.resetActive=function(){return this._activePanel=null,this},n.moveToPanel=function(e,n){var t=n.duration,r=n.direction,o=void 0===r?Nn.NONE:r,c=n.axesEvent;return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){return n=this._getPosition(e,o),this._triggerIndexChangeEvent(e,e.position,c,o),[2,this._animateToPosition({position:n,duration:t,newActivePanel:e,axesEvent:c})]})})},n.setActive=function(e,n,t){var o,c=Xn(this._flicking);this._activePanel=e,this._nextPanel=null,c.camera.updateAdaptiveHeight(),e!==n?c.trigger(new r.a(jn.CHANGED,{index:e.index,panel:e,prevIndex:null!==(o=null==n?void 0:n.index)&&void 0!==o?o:-1,prevPanel:n,isTrusted:t,direction:n?Zn(n.position,e.position):Nn.NONE})):c.trigger(new r.a(jn.RESTORED,{isTrusted:t}))},n.copy=function(e){this._flicking=e._flicking,this._activePanel=e._activePanel,this._controller=e._controller},n._triggerIndexChangeEvent=function(e,n,t,o){var c,l=Xn(this._flicking),h=e!==this._activePanel?jn.WILL_CHANGE:jn.WILL_RESTORE,f=l.camera,d=this._activePanel,v=new r.a(h,{index:e.index,panel:e,isTrusted:(null==t?void 0:t.isTrusted)||!1,direction:null!=o?o:Zn(null!==(c=null==d?void 0:d.position)&&void 0!==c?c:f.position,n)});if(this._nextPanel=e,l.trigger(v),v.isCanceled())throw new ft(kn,bn.STOP_CALLED_BY_USER)},n._animateToPosition=function(e){var n=e.position,t=e.duration,r=e.newActivePanel,o=e.axesEvent;return dn(this,void 0,void 0,function(){var e,c,animate,l=this;return pn(this,function(h){return e=Xn(this._flicking),c=t,Math.abs(c-n)<e.animationThreshold&&(c=0),animate=function(){return l._controller.animateTo(n,c,o)},this._controller.state.targetPanel=r,c<=0?[2,animate()]:[2,animate().then(function(){return dn(l,void 0,void 0,function(){return pn(this,function(n){switch(n.label){case 0:return e.initialized?[4,e.renderer.render()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})}).catch(function(e){if(!(o&&e instanceof ft&&e.code===bn.ANIMATION_INTERRUPTED))throw e})]})})},n._getPosition=function(e,n){void 0===n&&(n=Nn.NONE);var t=Xn(this._flicking),r=t.camera,o=e.position,c=r.findNearestAnchor(o);if(e.removed||!c)throw new ft(Rn(e.position),bn.POSITION_NOT_REACHABLE);if(r.canReach(e)){if(t.circularEnabled){var l=this._controller.position,h=r.rangeDiff,f=[o,o+h,o-h].filter(function(e){return n===Nn.NONE||(n===Nn.PREV?e<=l:e>=l)});o=f.reduce(function(e,n){return Math.abs(l-n)<Math.abs(l-e)?n:e},1/0)}}else o=c.position,e=c.panel;return o},e}(),At=function(){function e(e){var n=e.index,t=e.position,r=e.panel;this._index=n,this._pos=t,this._panel=r}var n=e.prototype;return Object.defineProperty(n,"index",{get:function(){return this._index}
2,enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){return this._pos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panel",{get:function(){return this._panel},enumerable:!1,configurable:!0}),e}(),Ct=function(e){function n(n){var t=(void 0===n?{}:n).count,r=void 0===t?1/0:t,o=e.call(this)||this;return o._count=r,o}hn(n,e);var t=n.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.moveToPosition=function(e,n,t){var r=Xn(this._flicking),o=r.camera,c=o.findActiveAnchor(),l=o.findNearestAnchor(o.position),h=this._controller.state;if(!c||!l)return Promise.reject(new ft(Rn(e),bn.POSITION_NOT_REACHABLE));var f,d=this._calcSnapThreshold(r.threshold,e,c),v=r.animating?h.delta:e-o.position,_=Math.abs(v),m=t&&0!==t.delta[yt]?Math.abs(t.delta[yt]):_;if(m>=d&&m>0)f=this._findSnappedAnchor(e,l);else{if(!(_>=r.threshold&&_>0))return this.moveToPanel(l.panel,{duration:n,axesEvent:t});f=this._findAdjacentAnchor(e,v,l)}return this._triggerIndexChangeEvent(f.panel,e,t),this._animateToPosition({position:o.clampToReachablePosition(f.position),duration:n,newActivePanel:f.panel,axesEvent:t})},t._findSnappedAnchor=function(e,n){var t=Xn(this._flicking),r=t.camera,o=this._count,c=r.position,l=r.clampToReachablePosition(e),h=r.findAnchorIncludePosition(l);if(!n||!h)throw new ft(Rn(e),bn.POSITION_NOT_REACHABLE);if(!isFinite(o))return h;var f=t.panelCount,d=r.anchorPoints,v=Math.sign(e-c)*Math.floor(Math.abs(e-c)/r.rangeDiff);e>c&&h.index<n.index||h.position>n.position&&h.index===n.index?v+=1:(e<c&&h.index>n.index||h.position<n.position&&h.index===n.index)&&(v-=1);var _=v*f,m=h.index+_;if(Math.abs(m-n.index)<=o){var y=d[h.index];return new At({index:y.index,position:y.position+v*r.rangeDiff,panel:y.panel})}if(t.circularEnabled){var P=d[ut(n.index+Math.sign(e-c)*o,f)],E=Math.floor(o/f);return e>c&&P.index<n.index?E+=1:e<c&&P.index>n.index&&(E-=1),new At({index:P.index,position:P.position+E*r.rangeDiff,panel:P.panel})}return d[Un(n.index+Math.sign(e-c)*o,0,d.length-1)]},t._findAdjacentAnchor=function(e,n,t){var r,o=Xn(this._flicking).camera;if(o.circularEnabled){var c=o.findAnchorIncludePosition(e);if(c&&c.position!==t.position)return c}return null!==(r=n>0?o.getNextAnchor(t):o.getPrevAnchor(t))&&void 0!==r?r:t},t._calcSnapThreshold=function(e,n,t){var r=n>t.position,o=t.panel,c=o.size,l=o.alignPosition;return Math.max(e,r?c-l+o.margin.next:l+o.margin.prev)},n}(It),St=function(e){function n(n){var t=(void 0===n?{}:n).stopAtEdge,r=void 0===t||t,o=e.call(this)||this;return o._stopAtEdge=r,o}hn(n,e);var t=n.prototype;return Object.defineProperty(t,"stopAtEdge",{get:function(){return this._stopAtEdge},set:function(e){this._stopAtEdge=e},enumerable:!1,configurable:!0}),t.updatePosition=function(e){var n=Xn(this._flicking).camera,t=this._activePanel;if(t){var r=t.range,o=r.min+(r.max-r.min)*e;n.lookAt(n.clampToReachablePosition(o))}},t.moveToPosition=function(e,n,t){var r=Xn(this._flicking).camera,o=r.clampToReachablePosition(e),c=r.findAnchorIncludePosition(o);if(!c)return Promise.reject(new ft(Rn(e),bn.POSITION_NOT_REACHABLE));var l=c.panel;return l!==this._activePanel&&this._triggerIndexChangeEvent(l,e,t),this._animateToPosition({position:this._stopAtEdge?o:e,duration:n,newActivePanel:l,axesEvent:t})},n}(It),jt=function(e){function n(n){var t=(void 0===n?{}:n).count,r=void 0===t?1:t,o=e.call(this)||this;return o.setActive=function(n,t,r){e.prototype.setActive.call(o,n,t,r),o.updateInput()},o._count=r,o._resetIndexRange(),o}hn(n,e);var t=n.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.destroy=function(){e.prototype.destroy.call(this),this._resetIndexRange()},t.updateInput=function(){var e,n=Xn(this._flicking),t=n.camera,r=n.renderer,o=this._controller,c=t.controlParams,l=this._count,h=o.state.animating?null===(e=t.findNearestAnchor(t.position))||void 0===e?void 0:e.panel:this._activePanel;if(!h)return o.update(c),this._resetIndexRange(),this;var f=c.range,d=h.position,v=h.index,_=r.panelCount,m=v-l,y=v+l;m<0&&(m=n.circularEnabled?Jn((m+1)%_-1,_):Un(m,0,_-1)),y>=_&&(y=n.circularEnabled?y%_:Un(y,0,_-1));var P=r.panels[m],E=r.panels[y],x=Math.max(P.position,f.min),O=Math.min(E.position,f.max);return x>d&&(x-=t.rangeDiff),O<d&&(O+=t.rangeDiff),c.range={min:x,max:O},c.circular&&(c.position<x&&(c.position+=t.rangeDiff),c.position>O&&(c.position-=t.rangeDiff)),c.circular=!1,o.update(c),this._indexRange={min:P.index,max:E.index},this},t.moveToPanel=function(n,t){return dn(this,void 0,void 0,function(){var r,o;return pn(this,function(c){return r=Xn(this._flicking),o=r.camera,this._controller.update(o.controlParams),[2,e.prototype.moveToPanel.call(this,n,t)]})})},t.moveToPosition=function(e,n,t){var r,o=Xn(this._flicking),c=o.camera,l=null!==(r=this._nextPanel)&&void 0!==r?r:this._activePanel,h=this._controller.range,f=this._indexRange,d=c.range,v=this._controller.state,_=Un(c.clampToReachablePosition(e),h[0],h[1]),m=c.findAnchorIncludePosition(_);if(!m||!l)return Promise.reject(new ft(Rn(e),bn.POSITION_NOT_REACHABLE));var y,P,E=l.position,x=o.animating?v.delta:e-c.position,O=Math.abs(x)>=o.threshold,w=e>
2E?c.getNextAnchor(m):c.getPrevAnchor(m),R=c.anchorPoints,T=R[0],k=R[R.length-1],I=e<d.min&&st(T.panel.index,f.min,f.max),A=e>d.max&&st(k.panel.index,f.min,f.max),C=w&&(f.min<=f.max?st(w.index,f.min,f.max):w.index>=f.min||w.index<=f.max);if(I||A){var S=e<d.min?T:k;P=S.panel,y=S.position}else if(O&&m.position!==l.position)P=m.panel,y=m.position;else{if(!O||!C){var j=c.findNearestAnchor(c.position);return j?this.moveToPanel(j.panel,{duration:n,axesEvent:t}):Promise.reject(new ft(Rn(e),bn.POSITION_NOT_REACHABLE))}P=w.panel,y=w.position}return this._triggerIndexChangeEvent(P,e,t),this._animateToPosition({position:y,duration:n,newActivePanel:P,axesEvent:t})},t._resetIndexRange=function(){this._indexRange={min:0,max:0}},n}(It),Mt=function(){function e(e){this._flicking=e}var n=e.prototype;return n.getAnchors=function(){return this._flicking.renderer.panels.map(function(e,n){return new At({index:n,position:e.position,panel:e})})},n.findAnchorIncludePosition=function(e){return this._flicking.camera.anchorPoints.filter(function(n){return n.panel.includePosition(e,!0)}).reduce(function(n,t){return n&&Math.abs(n.position-e)<Math.abs(t.position-e)?n:t},null)},n.findNearestAnchor=function(e){var n=this._flicking.camera.anchorPoints;if(n.length<=0)return null;for(var t=1/0,r=0;r<n.length;r++){var o=n[r],c=Math.abs(o.position-e);if(c>t)return n[r-1];t=c}return n[n.length-1]},n.clampToReachablePosition=function(e){var n=this._flicking.camera.range;return Un(e,n.min,n.max)},n.getCircularOffset=function(){return 0},n.canReach=function(e){var n=this._flicking.camera.range;if(e.removed)return!1;var t=e.position;return t>=n.min&&t<=n.max},n.canSee=function(e){var n=this._flicking.camera.visibleRange;return e.isVisibleOnRange(n.min,n.max)},e}(),Dt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}hn(n,e);var t=n.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,n,t=this._flicking.renderer,r=t.getPanel(0),o=t.getPanel(t.panelCount-1);return{min:null!==(e=null==r?void 0:r.position)&&void 0!==e?e:0,max:null!==(n=null==o?void 0:o.position)&&void 0!==n?n:0}},n}(Mt),zt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}hn(n,e);var t=n.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer.panels;if(n.length<=0)return!1;var t=n[0],r=n[n.length-1],o=t.range.min-t.margin.prev,c=r.range.max+r.margin.next,l=e.camera.size,h=c-o;return n.every(function(e){return h-e.size>=l})},t.getRange=function(){var e=this._flicking.renderer.panels;if(e.length<=0)return{min:0,max:0};var n=e[0],t=e[e.length-1];return{min:n.range.min-n.margin.prev,max:t.range.max+t.margin.next}},t.getAnchors=function(){return this._flicking.renderer.panels.map(function(e,n){return new At({index:n,position:e.position,panel:e})})},t.findNearestAnchor=function(e){var n=this._flicking.camera,t=n.anchorPoints;if(t.length<=0)return null;for(var r=n.range,o=1/0,c=-1,l=0;l<t.length;l++){var h=t[l],f=Math.min(Math.abs(h.position-e),Math.abs(h.position-r.min+r.max-e),Math.abs(e-r.min+r.max-h.position));f<o&&(o=f,c=l)}return t[c]},t.findAnchorIncludePosition=function(n){var t=this._flicking.camera,r=t.range,o=t.anchorPoints,c=t.rangeDiff,l=o.length,h=tt(n,r.min,r.max),f=e.prototype.findAnchorIncludePosition.call(this,h);if(l>0&&(n===r.min||n===r.max)){var d=[f,new At({index:0,position:o[0].position+c,panel:o[0].panel}),new At({index:l-1,position:o[l-1].position-c,panel:o[l-1].panel})].filter(function(e){return!!e});f=d.reduce(function(e,t){return e&&Math.abs(e.position-n)<Math.abs(t.position-n)?e:t},null)}if(!f)return null;if(n<r.min){var v=-Math.floor((r.min-n)/c)-1;return new At({index:f.index,position:f.position+c*v,panel:f.panel})}if(n>r.max){v=Math.floor((n-r.max)/c)+1;return new At({index:f.index,position:f.position+c*v,panel:f.panel})}return f},t.getCircularOffset=function(){var e=this._flicking;if(!e.camera.circularEnabled)return 0;var n=e.panels.filter(function(e){return e.toggled}),t=n.filter(function(e){return e.toggleDirection===Nn.PREV}),r=n.filter(function(e){return e.toggleDirection===Nn.NEXT});return this._calcPanelAreaSum(t)-this._calcPanelAreaSum(r)},t.clampToReachablePosition=function(e){return e},t.canReach=function(e){return!e.removed},t.canSee=function(n){var t=this._flicking.camera,r=t.range,o=t.rangeDiff,c=t.visibleRange,l=e.prototype.canSee.call(this,n);return c.min<r.min?l||n.isVisibleOnRange(c.min+o,c.max+o):c.max>r.max?l||n.isVisibleOnRange(c.min-o,c.max-o):l},t._calcPanelAreaSum=function(e){return e.reduce(function(e,n){return e+n.sizeIncludingMargin},0)},n}(Mt),Nt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}hn(n,e);var t=n.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,t=n.getPanel(0),r=n.getPanel(n.panelCount-1);if(!t||!r)return!1;var o=e.camera.size,c=t.range.min;return o<r.range.max-c},t.getRange=function(){var e=this._flicking,n=e.renderer,t=e.camera.alignPosition,r=n.getPanel(0),o=n.getPanel(n.panelCount-1);if(!r||!o)return{min:0,max:0};var c=e.camera.size,l=r.range.min,h=o.range.max,f=l+t,d=h-c+t;if(c<h-l)return{min:f,max:d};var v=e.camera.align,_="object"==typeof v?v.camera:v,m=f+$n(_,d-f);return{min:m,max:m}},t.getAnchors=function(){var e=this._flicking,n=e.camera,t=e.renderer.panels;if(t.length<=0)return[];var r=e.camera.range,o=t.filter(function(e){return n.canReach(e)});if(o.length>0){var c=o[0].position!==r.min,l=o[o.length-1].position!==r.max,h=c?1:0,f=o.map(function(e,n){return new At({index:n+h,position:e.position,panel:e})});return c&&f.splice(0,0,new At({index:0,position:r.min,panel:t[o[0].index-1]}
2)),l&&f.push(new At({index:f.length,position:r.max,panel:t[o[o.length-1].index+1]})),f}if(r.min!==r.max){var d=this._findNearestPanel(r.min,t),v=d.index===t.length-1?d.prev():d,_=v.next();return[new At({index:0,position:r.min,panel:v}),new At({index:1,position:r.max,panel:_})]}return[new At({index:0,position:r.min,panel:this._findNearestPanel(r.min,t)})]},t.findAnchorIncludePosition=function(n){var t=this._flicking.camera,r=t.range,o=t.anchorPoints;return o.length<=0?null:n<=r.min?o[0]:n>=r.max?o[o.length-1]:e.prototype.findAnchorIncludePosition.call(this,n)},t._findNearestPanel=function(e,n){for(var t=1/0,r=0;r<n.length;r++){var o=n[r],c=Math.abs(o.position-e);if(c>t)return n[r-1];t=c}return n[n.length-1]},n}(Mt),Lt=function(){function e(e,n){var t=this,r=(void 0===n?{}:n).align,o=void 0===r?Dn:r;this._lookedOffset=0,this._checkTranslateSupport=function(){var e,n,r=document.documentElement.style,o="";try{for(var c=vn(["webkitTransform","msTransform","MozTransform","OTransform","transform"]),l=c.next();!l.done;l=c.next()){var h=l.value;h in r&&(o=h)}}catch(n){e={error:n}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(!o)throw new ft(Tn,bn.TRANSFORM_NOT_SUPPORTED);t._transform=o},this._flicking=e,this._resetInternalValues(),this._align=o}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(n,"children",{get:function(){return Wn(this._el.children)},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),Object.defineProperty(n,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"offset",{get:function(){return this._offset-this._circularOffset},enumerable:!1,configurable:!0}),Object.defineProperty(n,"circularEnabled",{get:function(){return this._circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(n,"mode",{get:function(){return this._mode},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){return this._range},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rangeDiff",{get:function(){return this._range.max-this._range.min},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visiblePanels",{get:function(){return this._visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visibleRange",{get:function(){return{min:this._position-this._alignPos,max:this._position-this._alignPos+this.size}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"anchorPoints",{get:function(){return this._anchors},enumerable:!1,configurable:!0}),Object.defineProperty(n,"controlParams",{get:function(){return{range:this._range,position:this._position,circular:this._circularEnabled}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"atEdge",{get:function(){return this._position<=this._range.min||this._position>=this._range.max},enumerable:!1,configurable:!0}),Object.defineProperty(n,"size",{get:function(){var e=this._flicking;return e?e.horizontal?e.viewport.width:e.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(n,"progress",{get:function(){var e=this._flicking,n=this._position+this._offset,t=this.findNearestAnchor(this._position);if(!e||!t)return NaN;var r=t.panel,o=r.position+r.offset,c=e.control.controller.bounce,l=this.range,h=l.min,f=l.max,d=this.rangeDiff;if(n===o)return r.index;if(n<o){var v=r.prev(),_=v?v.position+v.offset:h-c[0];return _>o&&(_-=d),r.index-1+it(n,_,o)}var m=r.next(),y=m?m.position+m.offset:f+c[1];return y<o&&(y+=d),r.index+it(n,o,y)},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panelOrder",{get:function(){return this._panelOrder},enumerable:!1,configurable:!0}),Object.defineProperty(n,"align",{get:function(){return this._align},set:function(e){this._align=e},enumerable:!1,configurable:!0}),n.init=function(){var e=this._flicking.viewport.element;return function(e,n){if(null==e)throw new ft(En(e,n),bn.VAL_MUST_NOT_NULL)}(e.firstElementChild,"First element child of the viewport element"),this._el=e.firstElementChild,this._checkTranslateSupport(),this._updateMode(),this.updatePanelOrder(),this},n.destroy=function(){return this._resetInternalValues(),this},n.lookAt=function(e){var n=this,t=this._offset,r=this._lookedOffset!==t,o=Xn(this._flicking),c=this._position;this._position=e;var l=this._togglePanels(c,e);this._refreshVisiblePanels(),this._checkNeedPanel(),this._checkReachEnd(c,e),l?o.renderer.render().then(function(){n.updateOffset(),n._lookedOffset=n._offset}):r?(this.updateOffset(),this._lookedOffset=this._offset):this.applyTransform()},n.getPrevAnchor=function(e){if(this._circularEnabled&&0===e.index){var n=this._anchors,t=this.rangeDiff,r=n[n.length-1];return new At({index:r.index,position:r.position-t,panel:r.panel})}return this._anchors[e.index-1]||null},n.getNextAnchor=function(e){var n=this._anchors;if(this._circularEnabled&&e.index===n.length-1){var t=this.rangeDiff,r=n[0];return new At({index:r.index,position:r.position+t,panel:r.panel})}return n[e.index+1]||null},n.getProgressInPanel=function(e){var n=e.range;return(this._position-n.min)/(n.max-n.min)},n.findAnchorIncludePosition=function(e){return this._mode.findAnchorIncludePosition(e)},n.findNearestAnchor=function(e){return this._mode.findNearestAnchor(e)},n.findActiveAnchor=function(){var e,n=Xn(this._flicking).control.activePanel;return n?null!==(e=function(e,n){var t,r;try{for(var o=vn(e),c=o.next();!c.done;c=o.next()){var l=c.value;if(n(l))return l}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return null}(this._anchors,function(e){return e.panel.index===n.index}))&&void 0!==e?e:this.findNearestAnchor(n.position):null},n.clampToReachablePosition=function(e){return this._mode.clampToReachablePosition(e)},n.canReach=function(e){return this._mode.canReach(e)},n.canSee=function(e){return this._mode.canSee(e)},n.updateRange=function(){var e=Xn(this._flicking).renderer.panels;return this._updateMode(),this._range=this._mode.getRange(),e.forEach(function(e){return e.updateCircularToggleDirection()}),this},n.updateAlignPos=function(){var e=this._align,n="object"==typeof e?e.camera:e;return this._alignPos=$n(n,this.size),this},n.updateAnchors=function(){return this._anchors=this._mode.getAnchors(),this},n.updateAdaptiveHeight=function(){var e=Xn(this._flicking),n=e.control.activePanel,t=_n(e.visiblePanels);if(n&&t.push(n),e.horizontal&&e.adaptive&&t.length){var r=Math.max.apply(Math,_n(t.map(function(e){return e.height})));e.viewport.setSize({height:r})}},n.updateOffset=function(){var e=Xn(this._flicking),n=this._position,t=e.panels.filter(function(e){return!e.rendered});return this._offset=t.filter(function(e){return e.position+e.offset<n}).reduce(function(e,n){return e+n.sizeIncludingMargin},0),this._circularOffset=this._mode.getCircularOffset(),this.applyTransform(),this},n.updatePanelOrder=function(){var e=Xn(this._flicking);if(!e.horizontal)return this;var n=this._el,t=ot(n).direction;return t!==this._panelOrder&&(this._panelOrder=t===Gn?Gn:Bn,e.initialized&&e.control.controller.updateDirection()),this},n.resetNeedPanelHistory=function(){return this._needPanelTriggered={prev:!1,next:!1},this},n.applyTransform=function(){var e=this._el,n=Xn(this._flicking);if(n.renderer.rendering||!n.initialized)return this;var t=this._position-this._alignPos-this._offset+this._circularOffset;return e.style[this._transform]=n.horizontal?"translate("+(this._panelOrder===Gn?t
2:-t)+"px)":"translate(0, "+-t+"px)",this},n._resetInternalValues=function(){this._position=0,this._lookedOffset=0,this._alignPos=0,this._offset=0,this._circularOffset=0,this._circularEnabled=!1,this._range={min:0,max:0},this._visiblePanels=[],this._anchors=[],this._needPanelTriggered={prev:!1,next:!1}},n._refreshVisiblePanels=function(){var e=this,n=Xn(this._flicking),t=n.renderer.panels.filter(function(n){return e.canSee(n)}),o=this._visiblePanels;this._visiblePanels=t;var c=t.filter(function(e){return!et(o,e)}),l=o.filter(function(e){return!et(t,e)});(c.length>0||l.length>0)&&n.renderer.render().then(function(){n.trigger(new r.a(jn.VISIBLE_CHANGE,{added:c,removed:l,visiblePanels:t}))})},n._checkNeedPanel=function(){var e=this._needPanelTriggered;if(!e.prev||!e.next){var n=Xn(this._flicking),t=n.renderer.panels;if(t.length<=0)return e.prev||(n.trigger(new r.a(jn.NEED_PANEL,{direction:Nn.PREV})),e.prev=!0),void(e.next||(n.trigger(new r.a(jn.NEED_PANEL,{direction:Nn.NEXT})),e.next=!0));var o=this._position,c=this.size,l=this._range,h=n.needPanelThreshold,f=o-this._alignPos,d=f+c,v=t[0],_=t[t.length-1];if(!e.prev)(f<=v.range.min+h||o<=l.min+h)&&(n.trigger(new r.a(jn.NEED_PANEL,{direction:Nn.PREV})),e.prev=!0);if(!e.next)(d>=_.range.max-h||o>=l.max-h)&&(n.trigger(new r.a(jn.NEED_PANEL,{direction:Nn.NEXT})),e.next=!0)}},n._checkReachEnd=function(e,n){var t=Xn(this._flicking),o=this._range,c=e>o.min&&e<o.max,l=n>o.min&&n<o.max;if(c&&!l){var h=n<=o.min?Nn.PREV:Nn.NEXT;t.trigger(new r.a(jn.REACH_EDGE,{direction:h}))}},n._updateMode=function(){var e=Xn(this._flicking);if(e.circular){var n=new zt(e),t=n.checkAvailability();if(t)this._mode=n;else{var r=e.circularFallback;this._mode=r===Hn?new Nt(e):new Dt(e)}this._circularEnabled=t}else this._mode=e.bound?new Nt(e):new Dt(e),this._circularEnabled=!1},n._togglePanels=function(e,n){return n!==e&&Xn(this._flicking).renderer.panels.map(function(t){return t.toggle(e,n)}).some(function(e){return e})},e}(),Ft=function(){function e(e){var n=e.align,t=void 0===n?Dn:n,r=e.strategy;this._flicking=null,this._panels=[],this._rendering=!1,this._align=t,this._strategy=r}var n=e.prototype;return Object.defineProperty(n,"panels",{get:function(){return this._panels},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendering",{get:function(){return this._rendering},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panelCount",{get:function(){return this._panels.length},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strategy",{get:function(){return this._strategy},enumerable:!1,configurable:!0}),Object.defineProperty(n,"align",{get:function(){return this._align},set:function(e){this._align=e;var n=Kn(e);this._panels.forEach(function(e){e.align=n})},enumerable:!1,configurable:!0}),n.init=function(e){return this._flicking=e,this._collectPanels(),this},n.destroy=function(){this._flicking=null,this._panels=[]},n.getPanel=function(e){return this._panels[e]||null},n.forceRenderAllPanels=function(){return this._panels.forEach(function(e){return e.markForShow()}),Promise.resolve()},n.getRenderedPanels=function(){return Xn(this._flicking).renderer.panels.filter(function(e){return e.rendered})},n.updatePanelSize=function(){var e=Xn(this._flicking),n=this._panels;if(n.length<=0)return this;if(e.panelsPerView>0){var t=n[0];t.resize(),this._updatePanelSizeByGrid(t,n)}else e.panels.forEach(function(e){return e.resize()});return this},n.batchInsert=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=this.batchInsertDefer.apply(this,_n(e));return t.length<=0?[]:(this.updateAfterPanelChange(t,[]),t)},n.batchInsertDefer=function(){for(var e=this,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this._panels,o=Xn(this._flicking),c=r[0],l=Kn(this._align);return n.reduce(function(n,t){var h,f=Jn(t.index,r.length),d=r.slice(f),v=t.elements.map(function(n,t){return e._createPanel(n,{index:f+t,align:l,flicking:o})});if(r.splice.apply(r,_n([f,0],v)),t.hasDOMInElements&&e._insertPanelElements(v,null!==(h=d[0])&&void 0!==h?h:null),o.panelsPerView>0){var _=c||v[0].resize();e._updatePanelSizeByGrid(_,v)}else v.forEach(function(e){return e.resize()});return d.forEach(function(e){e.increaseIndex(v.length),e.updatePosition()}),_n(n,v)},[])},n.batchRemove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=this.batchRemoveDefer.apply(this,_n(e));return t.length<=0?[]:(this.updateAfterPanelChange([],t),t)},n.batchRemoveDefer=function(){for(var e=this,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this._panels,o=Xn(this._flicking).control,c=o.activePanel;return n.reduce(function(n,t){var l=t.index,h=t.deleteCount,f=Jn(l,r.length),d=r.slice(f+h),v=r.splice(f,h);
2return v.length<=0?[]:(d.forEach(function(e){e.decreaseIndex(v.length),e.updatePosition()}),t.hasDOMInElements&&e._removePanelElements(v),v.forEach(function(e){return e.destroy()}),et(v,c)&&o.resetActive(),_n(n,v))},[])},n.updateAfterPanelChange=function(e,n){var t,o=Xn(this._flicking),c=o.camera,l=o.control,h=this._panels,f=l.activePanel;if(this._updateCameraAndControl(),o.autoResize&&o.useResizeObserver&&(e.forEach(function(e){e.element&&o.autoResizer.observe(e.element)}),n.forEach(function(e){e.element&&o.autoResizer.unobserve(e.element)})),this.render(),!o.animating)if(!f||f.removed)if(h.length<=0)c.lookAt(0);else{var d=null!==(t=null==f?void 0:f.index)&&void 0!==t?t:0;d>h.length-1&&(d=h.length-1),l.moveToPanel(h[d],{duration:0}).catch(function(){})}else l.moveToPanel(f,{duration:0}).catch(function(){});o.camera.updateOffset(),(e.length>0||n.length>0)&&(o.trigger(new r.a(jn.PANEL_CHANGE,{added:e,removed:n})),this.checkPanelContentsReady(_n(e,n)))},n.checkPanelContentsReady=function(e){var n=this,t=Xn(this._flicking),r=t.resizeOnContentsReady,o=this._panels;if(r&&!t.virtualEnabled){if(!((e=e.filter(function(e){return function(e){return e.element&&!!e.element.querySelector("img, video")}(e)})).length<=0)){var c=new cn;e.forEach(function(e){e.loading=!0}),c.on("readyElement",function(r){if(n._flicking){var l=e[r.index],h=t.camera,f=t.control,d=f.activePanel?h.getProgressInPanel(f.activePanel):0;l.loading=!1,l.resize(),o.slice(l.index+1).forEach(function(e){return e.updatePosition()}),t.initialized&&(h.updateRange(),h.updateOffset(),h.updateAnchors(),f.animating||(f.updatePosition(d),f.updateInput()))}else c.destroy()}),c.on("preReady",function(e){n._flicking&&n.render(),e.readyCount===e.totalCount&&c.destroy()}),c.on("ready",function(){n._flicking&&n.render(),c.destroy()}),c.check(e.map(function(e){return e.element}))}}},n._updateCameraAndControl=function(){var e=Xn(this._flicking),n=e.camera,t=e.control;n.updateRange(),n.updateOffset(),n.updateAnchors(),n.resetNeedPanelHistory(),t.updateInput()},n._showOnlyVisiblePanels=function(e){var n=e.renderer.panels,t=e.camera.visiblePanels.reduce(function(e,n){return e[n.index]=!0,e},{});n.forEach(function(n){n.index in t||n.loading?n.markForShow():e.holding||n.markForHide()})},n._updatePanelSizeByGrid=function(e,n){var t=Xn(this._flicking),r=t.panelsPerView;if(r<=0)throw new ft(On("panelsPerView",r),bn.WRONG_OPTION);if(!(n.length<=0)){var o=(t.camera.size-(e.margin.prev+e.margin.next)*(r-1))/r,c=t.horizontal?{width:o}:{height:o},l=fn({size:o,margin:e.margin},!t.horizontal&&{height:e.height});t.noPanelStyleOverride||this._strategy.updatePanelSizes(t,c),t.panels.forEach(function(e){return e.resize(l)})}},n._removeAllChildsFromCamera=function(){for(var e=Xn(this._flicking).camera.element;e.firstChild;)e.removeChild(e.firstChild)},n._insertPanelElements=function(e,n){void 0===n&&(n=null);var t=Xn(this._flicking).camera.element,r=(null==n?void 0:n.element)||null,o=document.createDocumentFragment();e.forEach(function(e){return o.appendChild(e.element)}),t.insertBefore(o,r)},n._removePanelElements=function(e){var n=Xn(this._flicking).camera.element;e.forEach(function(e){n.removeChild(e.element)})},n._afterRender=function(){var e=Xn(this._flicking);if(e.camera.applyTransform(),e.useCSSOrder){var n=e.renderer.panels.filter(function(e){return e.rendered});this._strategy.getRenderingIndexesByOrder(e).forEach(function(e,t){n[e].element&&(n[e].element.style.order=""+t)})}},e}(),Vt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}hn(n,e);var t=n.prototype;return t.render=function(){return dn(this,void 0,void 0,function(){var e,n;return pn(this,function(t){return e=Xn(this._flicking),(n=this._strategy).updateRenderingPanels(e),n.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]})})},t._collectPanels=function(){var e=Xn(this._flicking),n=e.camera;this._removeAllTextNodes(),this._panels=this._strategy.collectPanels(e,n.children)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},t._resetPanelElementOrder=function(){var e=Xn(this._flicking),n=e.camera.element,t=[];(t=e.useCSSOrder?this.getRenderedPanels().map(function(e){return e.element}).reverse():this._strategy.getRenderingElementsByOrder(e).reverse()).forEac
2h(function(e,r){var o=t[r-1]?t[r-1]:null;e.nextElementSibling!==o&&n.insertBefore(e,o)})},t._removeAllTextNodes=function(){var e=Xn(this._flicking).camera.element;Wn(e.childNodes).forEach(function(n){n.nodeType===Node.TEXT_NODE&&e.removeChild(n)})},n}(Ft),Ht=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}hn(n,e);var t=n.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},n}(Ft),Bt=function(){function e(e){var n=e.index,t=e.align,r=e.flicking,o=e.elementProvider;this._index=n,this._flicking=r,this._elProvider=o,this._align=t,this._removed=!1,this._rendered=!0,this._loading=!1,this._resetInternalStates()}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(n,"elementProvider",{get:function(){return this._elProvider},enumerable:!1,configurable:!0}),Object.defineProperty(n,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){return this._pos+this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(n,"sizeIncludingMargin",{get:function(){return this._size+this._margin.prev+this._margin.next},enumerable:!1,configurable:!0}),Object.defineProperty(n,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Object.defineProperty(n,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(n,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"removed",{get:function(){return this._removed},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),Object.defineProperty(n,"loading",{get:function(){return this._loading},set:function(e){this._loading=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){return{min:this._pos,max:this._pos+this._size}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"toggled",{get:function(){return this._toggled},enumerable:!1,configurable:!0}),Object.defineProperty(n,"toggleDirection",{get:function(){return this._toggleDirection},enumerable:!1,configurable:!0}),Object.defineProperty(n,"offset",{get:function(){var e=this._toggleDirection,n=this._flicking.camera.rangeDiff;return e!==Nn.NONE&&this._toggled?e===Nn.PREV?-n:n:0},enumerable:!1,configurable:!0}),Object.defineProperty(n,"progress",{get:function(){var e=this._flicking;return this.index-e.camera.progress},enumerable:!1,configurable:!0}),Object.defineProperty(n,"outsetProgress",{get:function(){var e=this.position+this.offset,n=this._alignPos,t=this._flicking.camera,r=t.position;if(r===e)return 0;if(r<e){var o=e+(t.size-t.alignPosition)+n;return-it(r,e,o)}var c=e-(t.alignPosition+this._size-n);return 1-it(r,c,e)},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visibleRatio",{get:function(){var e=this.range,n=this._size,t=this.offset,r=this._flicking.camera.visibleRange,o=e.min+t,c=e.max+t;if(c<=r.min||o>=r.max)return 0;var l=n;return r.min>o&&(l-=r.min-o),r.max<c&&(l-=c-r.max),l/n},enumerable:!1,configurable:!0}),Object.defineProperty(n,"align",{get:function(){return this._align},set:function(e){this._align=e,this._updateAlignPos()},enumerable:!1,configurable:!0}),n.markForShow=function(){this._rendered=!0,this._elProvider.show(this._flicking)},n.markForHide=function(){this._rendered=!1,this._elProvider.hide(this._flicking)},n.resize=function(e){var n,t=this.element,r=this._flicking,o=r.horizontal,c=r.useFractionalSize;if(!t)return this;if(e)this._size=e.size,this._margin=fn({},e.margin),this._height=null!==(n=e.height)&&void 0!==n?n:lt({el:t,horizontal:!1,useFractionalSize:c,useOffset:!0,style:ot(t)});else{var l=ot(t);this._size=lt({el:t,horizontal:o,useFractionalSize:c,useOffset:!0,style:l}),this._margin=o?{prev:parseFloat(l.marginLeft||"0"),next:parseFloat(l.marginRight||"0")}:{prev:parseFloat(l.marginTop||"0"),next:parseFloat(l.marginBottom||"0")},this._height=o?lt({el:t,horizontal:!1,useFractionalSize:c,useOffset:!0,style:l}):this._size}return this.updatePosition(),this._updateAlignPos(),this},n.setSize=function(e){return at(this.element,e),this},n.contains=function(element){var e;return!!(null===(e=this.element)||void 0===e?void 0:e.contains(element))},n.destroy=function(){this._resetInternalStates(),this._removed=!0},n.includePosition=function(e,n){return void 0===n&&(n=!1),this.includeRange(e,e,n)},n.includeRange=function(e,n,t){void 0===t&&(t=!1);var r=this._margin,o=this.range;return t&&(o.min-=r.prev,o.max+=r.next),n>=o.min&&e<=o.max},n.isVisibleOnRange=function(e,n){var t=this.range;return n>t.min&&e<t.max},n.focus=function(e){return this._flicking.moveTo(this._index,e)},n.prev=function(){var e=this._index,n=this._flicking,t=n.renderer,r=t.panelCount;return 1===r?null:n.circularEnabled?t.getPanel(0===e?r-1:e-1):t.getPanel(e-1)},n.next=function(){var e=this._index,n=this._flicking,t=n.renderer,r=t.panelCount;return 1===r?null:n.circularEnabled?t.getPanel(e===r-1?0:e+1):t.getPanel(e+1)},n.increaseIndex=function(e){return this._index+=Math.max(e,0),this},n.decreaseIndex=function(e){return this._index-=Math.max(e,0),this},n.updatePosition=function(){var e=this._flicking.renderer.panels[this._index-1];return this._pos=e?e.range.max+e.margin.next+this._margin.prev:this._margin.prev,this},n.toggle=function(e,n){var t=this._toggleDirection,r=this._togglePosition;if(t===Nn.NONE||n===e)return!1;var o=this._toggled;return n>e?r>=e&&r<=n&&(this._toggled=t===Nn.NEXT):r<=e&&r>=n&&(this._toggled=t!==Nn.NEXT),o!==this._toggled},n.updateCircularToggleDirection=function(){var e=this._flicking;if(!e.circularEnabled)return this._toggleDirection=Nn.NONE,this._togglePosition=0,this._toggled=!1,this;var n=e.camera,t=n.range,r=n.alignPosition,o=n.visibleRange,c=o.max-o.min,l=t.min-r,h=t.max-r+c,f=this.includeRange(h-c,h,!1),d=this.includeRange(l,l+c,!1);return this._toggled=!1,f?(this._toggleDirection=Nn.PREV,this._togglePosition=this.range.max+t.min-t.max+r,this.toggle(1/0,n.position)):d?(this._toggleDirection=Nn.NEXT,this._togglePosition=this.range.min+t.max-c+r,this.toggle(-1/0,n.position)):(this._toggleDirection=Nn.NONE,this._togglePosition=0),this},n._updateAlignPos=function(){this._alignPos=$n(this._align,this._size)},n._resetInternalStates=function(){this._size=0,this._pos=0,this._margin={prev:0,next:0},this._height=0,this._alignPos=0,this._toggled=!1,this._togglePosition=0,this._toggleDirection=Nn.NONE},e}(),Gt=function(){function e(e){var n=e.providerCtor;this._providerCtor=n}var n=e.prototype;return n.renderPanels=function(){},n.getRenderingIndexesByOrder=function(e){var n=e.renderer.panels.filter(function(e){return e.rendered}),t=n.filter(function(e){return e.toggled&&e.toggleDirection===Nn.PREV}),r=n.filter(function(e){return e.toggled&&e.toggleDirection===Nn.NEXT});return _n(t,n.filter(function(e){return!e.toggled}),r).map(function(e){return e.index})},n.getRenderingElementsByOrder=function(e){var n=e.panels;return this.getRenderingIndexesByOrder(e).map(function(e){return n[e].element})},n.updateRenderingPanels=function(e){e.renderOnlyVisible?this._showOnlyVisiblePanels(e):e.panels.forEac
2h(function(e){return e.markForShow()})},n.collectPanels=function(e,n){var t=this,r=Kn(e.renderer.align);return n.map(function(n,o){return new Bt({index:o,elementProvider:new t._providerCtor(n),align:r,flicking:e})})},n.createPanel=function(element,e){return new Bt(fn(fn({},e),{elementProvider:new this._providerCtor(element)}))},n.updatePanelSizes=function(e,n){e.panels.forEach(function(e){return e.setSize(n)})},n._showOnlyVisiblePanels=function(e){var n=e.renderer.panels,t=e.camera,r=t.visiblePanels.reduce(function(e,n){return e[n.index]=!0,e},{});n.forEach(function(n){n.index in r||n.loading?n.markForShow():e.holding||n.markForHide()}),t.updateOffset()},e}(),Ut=function(e){function n(n){var t=e.call(this,n)||this;return n.elementProvider.init(t),t._elProvider=n.elementProvider,t._cachedInnerHTML=null,t}hn(n,e);var t=n.prototype;return Object.defineProperty(t,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cachedInnerHTML",{get:function(){return this._cachedInnerHTML},enumerable:!1,configurable:!0}),Object.defineProperty(t,"elementIndex",{get:function(){var e=this._flicking,n=e.panelsPerView+1,t=e.panelCount,r=this._index;return this._toggled&&(r=this._toggleDirection===Nn.NEXT?r+t:r-t),ut(r,n)},enumerable:!1,configurable:!0}),t.cacheRenderResult=function(e){this._cachedInnerHTML=e},t.uncacheRenderResult=function(){this._cachedInnerHTML=null},t.render=function(){var e=this._flicking.virtual,n=e.renderPanel,t=e.cache,element=this._elProvider.element,r=this._cachedInnerHTML||n(this,this._index);r!==element.innerHTML&&(element.innerHTML=r,t&&this.cacheRenderResult(r))},t.increaseIndex=function(n){return this.uncacheRenderResult(),e.prototype.increaseIndex.call(this,n)},t.decreaseIndex=function(n){return this.uncacheRenderResult(),e.prototype.decreaseIndex.call(this,n)},n}(Bt),Xt=function(){function e(){}var n=e.prototype;return n.renderPanels=function(e){var n=e.virtual,t=e.visiblePanels,r=ct(e.panelsPerView+1);t.forEach(function(e){var t=e.elementIndex;e.render(),n.show(t),r[t]=-1}),r.filter(function(e){return e>=0}).forEach(function(e){n.hide(e)})},n.getRenderingIndexesByOrder=function(e){var n=e.virtual,t=_n(e.visiblePanels).filter(function(e){return e.rendered}).sort(function(e,n){return e.position+e.offset-(n.position+n.offset)});return t.length<=0?n.elements.map(function(e,n){return n}):_n(t.map(function(e){return e.elementIndex}),n.elements.map(function(e,n){return fn(fn({},e),{idx:n})}).filter(function(e){return!e.visible}).map(function(e){return e.idx}))},n.getRenderingElementsByOrder=function(e){var n=e.virtual.elements;return this.getRenderingIndexesByOrder(e).map(function(e){return n[e].nativeElement})},n.updateRenderingPanels=function(e){var n=e.renderer.panels,t=e.camera,r=t.visiblePanels.reduce(function(e,n){return e[n.index]=!0,e},{});n.forEach(function(e){e.index in r||e.loading?e.markForShow():e.markForHide()}),t.updateOffset()},n.collectPanels=function(e){var n=Kn(e.renderer.align);return ct(e.virtual.initialPanelCount).map(function(t){return new Ut({index:t,elementProvider:new _t(e),align:n,flicking:e})})},n.createPanel=function(e,n){return new Ut(fn(fn({},n),{elementProvider:new _t(n.flicking)}))},n.updatePanelSizes=function(e,n){e.virtual.elements.forEach(function(e){at(e.nativeElement,n)}),e.panels.forEach(function(e){return e.setSize(n)})},e}(),Wt=function(e){function n(n,t){var r=void 0===t?{}:t,o=r.align,c=void 0===o?Dn:o,l=r.defaultIndex,h=void 0===l?0:l,f=r.horizontal,d=void 0===f||f,v=r.circular,_=void 0!==v&&v,m=r.circularFallback,y=void 0===m?Vn:m,P=r.bound,E=void 0!==P&&P,x=r.adaptive,O=void 0!==x&&x,w=r.panelsPerView,R=void 0===w?-1:w,T=r.noPanelStyleOverride,k=void 0!==T&&T,I=r.resizeOnContentsReady,A=void 0!==I&&I,C=r.nested,S=void 0!==C&&C,j=r.needPanelThreshold,M=void 0===j?0:j,D=r.preventEventsBeforeInit,z=void 0===D||D,N=r.deceleration,L=void 0===N?.0075:N,F=r.duration,V=void 0===F?500:F,H=r.easing,B=void 0===H?function(e){return 1-Math.pow(1-e,3)}:H,G=r.inputType,U=void 0===G?["mouse","touch"]:G,X=r.moveType,W=void 0===X?"snap":X,$=r.threshold,Y=void 0===$?40:$,K=r.dragThreshold,Z=void 0===K?1:K,Q=r.interruptable,J=void 0===Q||Q,ee=r.bounce,ne=void 0===ee?"20%":ee,te=r.iOSEdgeSwipeThreshold,ie=void 0===te?30:te,re=r.preventClickOnDrag,oe=void 0===re||re,ae=r.preventDefaultOnDrag,se=void 0!==ae&&ae,ue=r.disableOnInit,ce=void 0!==ue&&ue,le=r.changeOnHold,he=void 0!==le&&le,fe=r.renderOnlyVisible,de=void 0!==fe&&fe,pe=r.virtual,ve=void 0===pe?null:pe,ge=r.autoInit,_e=void 0===ge||ge,me=r.autoResize,be=void 0===me||me,ye=r.useResizeObserver,Pe=void 0===ye||ye,Ee=r.resizeDebounce,xe=void 0===Ee?0:Ee,Oe=r.observePanelResize,we=void 0!==Oe&&Oe,Re=r.maxResizeDebounce,Te=void 0===Re?100:Re,ke=r.useFractionalSize,Ie=void 0!==ke&&ke,Ae=r.externalRenderer,Ce=void 0===Ae?null:Ae,Se=r.renderExternal,je=void 0===Se?null:Se,Me=r.optimizeSizeUpdate,De=void 0!==Me&&Me,ze=r.animationThreshold,Ne=void 0===ze?.5:ze,Le=r.useCSSOrder,Fe=void 0!==Le&&Le,Ve=e.call(this)||this;return Ve._scheduleResize=!1,Ve._initialized=!1,Ve._plugins=[],Ve._isResizing=!1,Ve._align=c,Ve._defaultIndex=h,Ve._horizontal=d,Ve._circular=_,Ve._
2circularFallback=y,Ve._bound=E,Ve._adaptive=O,Ve._panelsPerView=R,Ve._noPanelStyleOverride=k,Ve._resizeOnContentsReady=A,Ve._nested=S,Ve._virtual=ve,Ve._needPanelThreshold=M,Ve._preventEventsBeforeInit=z,Ve._deceleration=L,Ve._duration=V,Ve._easing=B,Ve._inputType=U,Ve._moveType=W,Ve._threshold=Y,Ve._dragThreshold=Z,Ve._interruptable=J,Ve._bounce=ne,Ve._iOSEdgeSwipeThreshold=ie,Ve._preventClickOnDrag=oe,Ve._preventDefaultOnDrag=se,Ve._disableOnInit=ce,Ve._changeOnHold=he,Ve._renderOnlyVisible=de,Ve._autoInit=_e,Ve._autoResize=be,Ve._useResizeObserver=Pe,Ve._resizeDebounce=xe,Ve._maxResizeDebounce=Te,Ve._observePanelResize=we,Ve._useFractionalSize=Ie,Ve._externalRenderer=Ce,Ve._renderExternal=je,Ve._optimizeSizeUpdate=De,Ve._animationThreshold=Ne,Ve._useCSSOrder=Fe,Ve._viewport=new pt(Ve,function(e,n){var t=null;if(nt(e)){var r=(n||document).querySelector(e);if(!r)throw new ft(Pn(e),bn.ELEMENT_NOT_FOUND);t=r}else e&&e.nodeType===Node.ELEMENT_NODE&&(t=e);if(!t)throw new ft(yn(e,["HTMLElement","string"]),bn.WRONG_TYPE);return t}(n)),Ve._autoResizer=new vt(Ve),Ve._renderer=Ve._createRenderer(),Ve._camera=Ve._createCamera(),Ve._control=Ve._createControl(),Ve._virtualManager=new mt(Ve,ve),Ve._autoInit&&Ve.init(),Ve}hn(n,e);var t=n.prototype;return Object.defineProperty(t,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),Object.defineProperty(t,"camera",{get:function(){return this._camera},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderer",{get:function(){return this._renderer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"viewport",{get:function(){return this._viewport},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoResizer",{get:function(){return this._autoResizer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularEnabled",{get:function(){return this._camera.circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtualEnabled",{get:function(){return this._panelsPerView>0&&null!=this._virtual},enumerable:!1,configurable:!0}),Object.defineProperty(t,"index",{get:function(){return this._control.activeIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t,"element",{get:function(){return this._viewport.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentPanel",{get:function(){return this._control.activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panels",{get:function(){return this._renderer.panels},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panelCount",{get:function(){return this._renderer.panelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t,"visiblePanels",{get:function(){return this._camera.visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(t,"animating",{get:function(){return this._control.animating},enumerable:!1,configurable:!0}),Object.defineProperty(t,"holding",{get:function(){return this._control.holding},enumerable:!1,configurable:!0}),Object.defineProperty(t,"activePlugins",{get:function(){return this._plugins},enumerable:!1,configurable:!0}),Object.defineProperty(t,"align",{get:function(){return this._align},set:function(e){this._align=e,this._renderer.align=e,this._camera.align=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultIndex",{get:function(){return this._defaultIndex},set:function(e){this._defaultIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"horizontal",{get:function(){return this._horizontal},set:function(e){this._horizontal=e,this._control.controller.updateDirection(),this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circular",{get:function(){return this._circular},set:function(e){this._circular=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularFallback",{get:function(){return this._circularFallback},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bound",{get:function(){return this._bound},set:function(e){this._bound=e,this.resize()}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t,"adaptive",{get:function(){return this._adaptive},set:function(e){this._adaptive=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panelsPerView",{get:function(){return this._panelsPerView},set:function(e){this._panelsPerView=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"noPanelStyleOverride",{get:function(){return this._noPanelStyleOverride},set:function(e){this._noPanelStyleOverride=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"resizeOnContentsReady",{get:function(){return this._resizeOnContentsReady},set:function(e){this._resizeOnContentsReady=e,e&&this._renderer.checkPanelContentsReady(this._renderer.panels)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"nested",{get:function(){return this._nested},set:function(e){this._nested=e;var n=this._control.controller.axes;n&&(n.options.nested=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needPanelThreshold",{get:function(){return this._needPanelThreshold},set:function(e){this._needPanelThreshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventEventsBeforeInit",{get:function(){return this._preventEventsBeforeInit},set:function(e){this._preventEventsBeforeInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"deceleration",{get:function(){return this._deceleration},set:function(e){this._deceleration=e;var n=this._control.controller.axes;n&&(n.options.deceleration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"easing",{get:function(){return this._easing},set:function(e){this._easing=e;var n=this._control.controller.axes;n&&(n.options.easing=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"inputType",{get:function(){return this._inputType},set:function(e){this._inputType=e;var n=this._control.controller.panInput;n&&(n.options.inputType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"moveType",{get:function(){return this._moveType},set:function(e){this._moveType=e;var n=this._control,t=this._createControl(),r=n.activePanel;t.copy(n);var o=r?this._camera.getProgressInPanel(r):0;this._control=t,this._control.updatePosition(o),this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"threshold",{get:function(){return this._threshold},set:function(e){this._threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"dragThreshold",{get:function(){return this._dragThreshold},set:function(e){this._dragThreshold=e;var n=this._control.controller.panInput;n&&(n.options.threshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"animationThreshold",{get:function(){return this._animationThreshold},set:function(e){this._animationThreshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useCSSOrder",{get:function(){return this._useCSSOrder},set:function(e){this._useCSSOrder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"interruptable",{get:function(){return this._interruptable},set:function(e){this._interruptable=e;var n=this._control.controller.axes;n&&(n.options.interruptable=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bounce",{get:function(){return this._bounce},set:function(e){this._bounce=e,this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"iOSEdgeSwipeThreshold",{get:function(){return this._iOSEdgeSwipeThreshold},set:function(e){this._iOSEdgeSwipeThreshold=e;var n=this._control.controller.panInput;n&&(n.options.iOSEdgeSwipeThreshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventClickOnDrag",{get:function(){return this._preventClickOnDrag},set:function(e){if(e!==this._preventClickOnDrag){var n=this._control.controller;e?n.addPreventClickHandler():n.removePreventClickHandler(),this._preventClickOnDrag=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventDefaultOnDrag",{get:function(){return this._preventDefaultOnDrag},set:function(e){this._preventDefaultOnDrag=e;var n=this._control.controller.panInput;n&&(n.options.preventDefaultOnDrag=e)}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t,"disableOnInit",{get:function(){return this._disableOnInit},set:function(e){this._disableOnInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"changeOnHold",{get:function(){return this._changeOnHold},set:function(e){this._changeOnHold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderOnlyVisible",{get:function(){return this._renderOnlyVisible},set:function(e){this._renderOnlyVisible=e,this._renderer.render()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtual",{get:function(){return this._virtualManager},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoInit",{get:function(){return this._autoInit},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoResize",{get:function(){return this._autoResize},set:function(e){this._autoResize=e,this._initialized&&(e?this._autoResizer.enable():this._autoResizer.disable())},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useResizeObserver",{get:function(){return this._useResizeObserver},set:function(e){this._useResizeObserver=e,this._initialized&&this._autoResize&&this._autoResizer.enable()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"observePanelResize",{get:function(){return this._observePanelResize},set:function(e){this._observePanelResize=e,this._initialized&&this._autoResize&&(e?this._autoResizer.observePanels():this._autoResizer.unobservePanels())},enumerable:!1,configurable:!0}),Object.defineProperty(t,"resizeDebounce",{get:function(){return this._resizeDebounce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"maxResizeDebounce",{get:function(){return this._maxResizeDebounce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useFractionalSize",{get:function(){return this._useFractionalSize},enumerable:!1,configurable:!0}),Object.defineProperty(t,"externalRenderer",{get:function(){return this._externalRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderExternal",{get:function(){return this._renderExternal},enumerable:!1,configurable:!0}),Object.defineProperty(t,"optimizeSizeUpdate",{get:function(){return this._optimizeSizeUpdate},set:function(e){this._optimizeSizeUpdate=e},enumerable:!1,configurable:!0}),t.init=function(){var e=this;if(this._initialized)return Promise.resolve();var n=this._camera,t=this._renderer,o=this._control,c=this._virtualManager,l=this.trigger,h=this._preventEventsBeforeInit;return n.init(),c.init(),t.init(this),o.init(this),h&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&o.controller.addPreventClickHandler(),this._disableOnInit&&this.disableInput(),t.checkPanelContentsReady(t.panels),this._initialized=!0,t.render().then(function(){e._plugins.forEach(function(n){return n.init(e)}),h&&(e.trigger=l),e.trigger(new r.a(jn.READY))})},t.destroy=function(){this.off(),this._autoResizer.disable(),this._control.destroy(),this._camera.destroy(),this._renderer.destroy(),this._plugins.forEach(function(e){return e.destroy()}),this._scheduleResize=!1,this._initialized=!1,this._isResizing=!1},t.prev=function(e){var n,t,r;return void 0===e&&(e=this._duration),this.moveTo(null!==(r=null===(t=null===(n=this._control.activePanel)||void 0===n?void 0:n.prev())||void 0===t?void 0:t.index)&&void 0!==r?r:-1,e,Nn.PREV)},t.next=function(e){var n,t,r;return void 0===e&&(e=this._duration),this.moveTo(null!==(r=null===(t=null===(n=this._control.activePanel)||void 0===n?void 0:n.next())||void 0===t?void 0:t.index)&&void 0!==r?r:this._renderer.panelCount,e,Nn.NEXT)},t.moveTo=function(e,n,t){void 0===n&&(n=this._duration),void 0===t&&(t=Nn.NONE);var r=this._renderer,o=r.panelCount,c=r.getPanel(e);return c?this._control.animating?Promise.reject(new ft(An,bn.ANIMATION_ALREADY_PLAYING)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(c,{duration:n,direction:t})):Promise.reject(new ft(wn(e,0,o-1),bn.INDEX_OUT_OF_RANGE))},t.updateAnimation=function(e,n,t){if(this._control.animating){var r=this._renderer,o=r.panelCount,c=r.getPanel(e);
2if(!c)throw new ft(wn(e,0,o-1),bn.INDEX_OUT_OF_RANGE);this._control.updateAnimation(c,n,t)}},t.stopAnimation=function(){this._control.animating&&this._control.stopAnimation()},t.getPanel=function(e){return this._renderer.getPanel(e)},t.enableInput=function(){return this._control.enable(),this},t.disableInput=function(){return this._control.disable(),this},t.getStatus=function(e){var n,t,r=void 0===e?{}:e,o=r.index,c=void 0===o||o,l=r.position,h=void 0===l||l,f=r.includePanelHTML,d=void 0!==f&&f,v=r.visiblePanelsOnly,_=void 0!==v&&v,m=this._camera,y={panels:(_?this.visiblePanels:this.panels).map(function(e){var n={index:e.index};return d&&(n.html=e.element.outerHTML),n})};if(c&&(y.index=this.index),h){var P=m.findNearestAnchor(m.position);P&&(y.position={panel:P.panel.index,progressInPanel:m.getProgressInPanel(P.panel)})}if(_){var E=this.visiblePanels;y.visibleOffset=null!==(t=null===(n=E[0])||void 0===n?void 0:n.index)&&void 0!==t?t:0}return y},t.setStatus=function(e){var n;if(!this._initialized)throw new ft(Sn,bn.NOT_INITIALIZED);var t=e.index,r=e.position,o=e.visibleOffset,c=e.panels,l=this._renderer,h=this._control;if((null===(n=c[0])||void 0===n?void 0:n.html)&&!this._renderExternal&&(l.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),l.batchInsert({index:0,elements:Qn(c.map(function(e){return e.html})),hasDOMInElements:!0})),null!=t){var f=o?t-o:t;this.moveTo(f,0).catch(function(){})}if(r&&this._moveType===Ln.FREE_SCROLL){var d=r.panel,v=r.progressInPanel,_=(f=o?d-o:d,l.panels[f].range),m=_.min+(_.max-_.min)*v;h.moveToPosition(m,0).catch(function(){})}},t.addPlugins=function(){for(var e,n=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this._initialized&&t.forEach(function(e){return e.init(n)}),(e=this._plugins).push.apply(e,_n(t)),this},t.removePlugins=function(){for(var e=this,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.forEach(function(n){var t=function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t;return-1}(e._plugins,function(e){return e===n});t>=0&&(n.destroy(),e._plugins.splice(t,1))}),this},t.resize=function(){return dn(this,void 0,void 0,function(){var e,n,t,o,c,l,h,f,d,v,_;return pn(this,function(m){switch(m.label){case 0:return this._initialized?this._isResizing?(this._scheduleResize=!0,[2]):(this._scheduleResize=!1,this._isResizing=!0,e=this._viewport,n=this._renderer,t=this._camera,o=this._control,c=o.activePanel,l=e.width,h=e.height,f=c?t.getProgressInPanel(c):0,this.trigger(new r.a(jn.BEFORE_RESIZE,{width:l,height:h,element:e.element})),e.resize(),this._optimizeSizeUpdate?this.horizontal&&e.width!==l||!this.horizontal&&e.height!==h?[4,n.forceRenderAllPanels()]:[3,2]:[3,3]):[2];case 1:m.sent(),m.label=2;case 2:return[3,5];case 3:return[4,n.forceRenderAllPanels()];case 4:m.sent(),m.label=5;case 5:return this._initialized?(n.updatePanelSize(),t.updateAlignPos(),t.updateRange(),t.updateAnchors(),t.updateAdaptiveHeight(),t.updatePanelOrder(),t.updateOffset(),[4,n.render()]):[2];case 6:return m.sent(),this._initialized?(o.animating||(o.updatePosition(f),o.updateInput()),d=e.width,v=e.height,_=d!==l||v!==h,this.trigger(new r.a(jn.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:l,height:h},sizeChanged:_,element:e.element})),this._isResizing=!1,this._scheduleResize&&this.resize(),[2]):[2]}})})},t.append=function(element){return this.insert(this._renderer.panelCount,element)},t.prepend=function(element){return this.insert(0,element)},t.insert=function(e,element){if(this._renderExternal)throw new ft(Cn,bn.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchInsert({index:e,elements:Qn(element),hasDOMInElements:!0})},t.remove=function(e,n){if(void 0===n&&(n=1),this._renderExternal)throw new ft(Cn,bn.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!0})},t._createControl=function(){var e,n=this._moveType,t=Object.keys(Ln).map(function(e){return Ln[e]}),r=Array.isArray(n)?n[0]:n,o=Array.isArray(n)&&null!==(e=n[1])&&void 0!==e?e:{};if(!et(t,r))throw new ft(On("moveType",JSON.stringify(n)),bn.WRONG_OPTION);switch(r){case Ln.SNAP:return new Ct(o);case Ln.FREE_SCROLL:return new St(o);case Ln.STRICT:return new jt(o)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new Lt(this,{align:this._align})},t._createRenderer=function(){var e=this._externalRenderer;
2return this._virtual&&this._panelsPerView<=0&&console.warn('"virtual" and "panelsPerView" option should be used together, ignoring virtual.'),e||(this._renderExternal?this._createExternalRenderer():this._createVanillaRenderer())},t._createExternalRenderer=function(){var e=this._renderExternal,n=e.renderer,t=e.rendererOptions;return new n(fn({align:this._align},t))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new Vt({align:this._align,strategy:e?new Xt:new Gt({providerCtor:gt})})},t._moveToInitialPanel=function(){var e=this._renderer,n=this._control,t=this._camera,r=e.getPanel(this._defaultIndex)||e.getPanel(0);if(r){var o=t.findNearestAnchor(r.position),c=o&&r.position!==o.panel.position&&r.index!==o.panel.index?o.panel:r;if(n.setActive(c,null,!1),!o)throw new ft(Rn(c.position),bn.POSITION_NOT_REACHABLE);var l=c.position;t.canReach(c)||(l=o.position),t.lookAt(l),n.updateInput(),t.updateOffset()}},t._initialResize=function(){var e=this._viewport,n=this._renderer,t=this._camera,o=this._control;this.trigger(new r.a(jn.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),n.updatePanelSize(),t.updateAlignPos(),t.updateRange(),t.updateAnchors(),t.updateOffset(),o.updateInput();var c=e.width,l=e.height,h=0!==c||0!==l;this.trigger(new r.a(jn.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:h,element:e.element}))},n.VERSION="4.15.0",n}(r.b),$t=function(e,n){[r.b.prototype,Wt.prototype].forEach(function(t){Object.getOwnPropertyNames(t).filter(function(n){return!e[n]&&0!==n.indexOf("_")&&"constructor"!==n}).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value)Object.defineProperty(e,r,{value:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=o.value).call.apply(e,_n([this[n]],t))}});else{var c={};o.get&&(c.get=function(){var e,t=this[n];return t&&(null===(e=o.get)||void 0===e?void 0:e.call(t))}),o.set&&(c.set=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return null===(e=o.set)||void 0===e?void 0:e.call.apply(e,_n([this[n]],t))}),Object.defineProperty(e,r,c)}})})},Yt=function(e,n,t){var r=e.renderer,o=r.panels,c=_n(n.prevList),l=[],h=[];if(n.removed.length>0){var f=-1,d=-1;n.removed.forEach(function(e){f<0&&(f=e),d>=0&&e!==d-1?(h.push.apply(h,_n(Kt(r,d,f+1))),f=e,d=e):d=e,c.splice(e,1)}),h.push.apply(h,_n(Kt(r,d,f+1)))}if(n.ordered.forEach(function(e){var n=gn(e,2),t=n[0],r=n[1],c=o.splice(t,1)[0];o.splice(r,0,c)}),n.ordered.length>0&&(o.forEach(function(e,n){var t=n-e.index;t>0?e.increaseIndex(t):e.decreaseIndex(-t)}),o.sort(function(e,n){return e.index-n.index}),o.forEach(function(e){e.updatePosition()})),n.added.length>0){var v=-1,_=-1,m=t.slice(c.length);n.added.forEach(function(e,t){v<0&&(v=t),_>=0&&e!==_+1?(l.push.apply(l,_n(qt(r,n,m,v,t+1))),v=-1,_=-1):_=e}),v>=0&&l.push.apply(l,_n(qt(r,n,m,v)))}if(n.added.length>0||n.removed.length>0)r.updateAfterPanelChange(l,h);else if(n.ordered.length>0){var y=e.camera;y.updateRange(),y.updateOffset(),y.updateAnchors(),y.resetNeedPanelHistory()}},qt=function(e,n,t,r,o){return e.batchInsertDefer.apply(e,_n(n.added.slice(r,o).map(function(e,n){return{index:e,elements:[t[n]],hasDOMInElements:!1}})))},Kt=function(e,n,t){var r=e.panels.slice(n,t);return e.batchRemoveDefer({index:n,deleteCount:r.length,hasDOMInElements:!1})},Zt=function(e,n){var t=n.removed.reduce(function(map,e){return map[e]=!0,map},{}),r=n.maintained.reduce(function(map,e){var n=gn(e,2),t=n[0],r=n[1];return map[t]=r,map},{}),o=e.panels.filter(function(e){return!t[e.index]});return e.useCSSOrder||o.sort(function(e,n){return e.position+e.offset-(n.position+n.offset)}),_n(o.map(function(e){return n.list[r[e.index]]}),n.added.map(function(e){return n.list[e]}))},Qt=function(e,n,t){void 0===e&&(e=Dn),void 0===n&&(n=!0);var r=Jt(e),o=ei(e);if(null==o)return"";var c="calc("+r+" - ("+(t||"0px")+" * "+o.percentage+") - "+o.absolute+"px)";return n?"translate("+c+")":"translate(0, "+c+")"},Jt=function(e){var n="object"==typeof e?e.camera:e;return ni(n)},ei=function(e){var n="object"==typeof e?e.panel:e;return qn(ni(n))},ni=function(e){if("number"==typeof e)return e+"px";switch(e){case Dn:return"50%";case zn:return"100%";case Mn:return"0%";default:return e}},ti=function(e){return!e.circular&&0===e.index},ii=function(e){return!e.circular&&e.index===e.panelCount-1},ri=function(e){return e.panelCount},oi=function(e){return e.index},ai=function(e){var n=e.camera,t=(n.position-n.range.min)/(n.range.max-n.range.min);return 100*Math.min(Math.max(t,0),1)},si=function(e){var n,t,r,o,c=e.onInit,l=e.onDestroy,h=e.setMethods,f=e.getProps;h(["moveTo"]);var d=f().options,v=Object(I.g)({isReachStart:!(null==d?void 0:d.defaultIndex)||0===(null==d?void 0:d.defaultIndex),isReachEnd:!(!(null==d?void 0:d.totalPanelCount)||!(null==d?void 0:d.defaultIndex))&&d.defaultIndex===d.totalPanelCount-1,totalPanelCount:null!==(n=null==d?void 0:d.totalPanelCount)&&void 0!==n?n:0,currentPanelIndex:null!==(t=null==d?void 0:d.defaultIndex)&&void 0!==t?t:0,progress:0,indexProgress:null!==(r=null==d?void 0:d.defaultIndex)&&void 0!==r?r:0,moveTo:function(i){return null==o?Promise.reject(new Error("Flicking instance is not available")):(null==o?void 0:o.animating)?Promise.resolve():o.moveTo(i)}}),_=function(){void 0!==o&&(v.isReachStart=ti(o),v.isReachEnd=ii(o),v.currentPanelIndex=oi(o))},m=function(){void 0!==o&&(_(),v.totalPanelCount=ri(o))},y=function(){void 0!==o&&(v.progress=ai(o),v.indexProgress=function(e){var n=e.camera,t=n.anchorPoints,r=t.length,o=n.position,c=e.circularEnabled,l=0,h=n.range,f=h.min,d=h.max,v=t[0],_=d-t[r-1].position+(v.position-f);return t.some(function(e,n){var h=e.position,f=t[n+1];if(0===n&&o<=h)l=c?(o-h)/_:(o-h)/e.panel.size;else if(n===r-1&&o>=h)l=c?n+(o-h)/_:n+(o-h)/e.panel.size;else{if(!(f&&h<=o&&o<=f.position))return!1;l=n+(o-h)/(f.position-h)}return!0}),l}(o))};return c(function(e,data){void 0!==(o=data.flicking)&&(v.isReachStart=ti(o),v.isReachEnd=ii(o),v.currentPanelIndex=oi(o),v.progress=ai(o),v.totalPanelCount=ri(o),null==o||o.on("changed",_),null==o||o.on("panelChange",m),null==o||o.on("move",y))}
vendor: 6,217 bytes, line 2
2),l(function(){null==o||o.off("changed",_),null==o||o.off("panelChange",m),null==o||o.off("move",y)}),v}},896:function(e,n,t){"use strict";t.d(n,"a",function(){return D}),t.d(n,"b",function(){return x}),t.d(n,"c",function(){return w}),t.d(n,"d",function(){return M}),t.d(n,"e",function(){return c}),t.d(n,"f",function(){return C}),t.d(n,"g",function(){return T});var r=t(848);function o(e){return Object.keys(e)}function c(e){return e.replace(/[\s-_]([a-z])/g,function(e,n){return n.toUpperCase()})}function l(e){return"function"==typeof e}var h="__observers__",f="__computed__",d="__CFCS_DETECTED_DEPENDENCIES__",v=function(e,b){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},v(e,b)};function _(e,n,t){if(t||2===arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function m(){Object[d]=Object[d]||{};var e=Object[d];return e[1]=e[1]||[],e[1]}var y=function(){function e(e){this._emitter=new r.b,this._current=e}var n=e.prototype;return Object.defineProperty(n,"current",{get:function(){var e,n=(e=m())[e.length-1];return null==n||n.push(this),this._current},set:function(e){this._setCurrent(e)},enumerable:!1,configurable:!0}),n.subscribe=function(e){return this.current,this._emitter.on("update",e),this},n.unsubscribe=function(e){return this._emitter.off("update",e),this},n._setCurrent=function(e){var n=this._current,t=e!==n;this._current=e,t&&this._emitter.trigger("update",e,n)},n.toString=function(){return"".concat(this.current)},n.valueOf=function(){return this.current},e}(),P=function(e){function n(n){var t=e.call(this)||this;return t._computedCallback=n,t._registered=[],t._onCheckUpdate=function(){t._setCurrent(t.current)},t._current=t.current,t}!function(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function n(){this.constructor=e}v(e,b),e.prototype=null===b?Object.create(b):(n.prototype=b.prototype,new n)}(n,e);var t=n.prototype;return Object.defineProperty(t,"current",{get:function(){var e,n,t,r,o=this;e=this,n=m(),r={host:e,observers:t=[],push:function(n){e!==n&&-1===t.indexOf(n)&&t.push(n)}},n.push(r);var c=this._computedCallback(),l=m().pop();return this._registered.forEach(function(e){e.unsubscribe(o._onCheckUpdate)}),l.observers.forEach(function(e){e.subscribe(o._onCheckUpdate)}),this._registered=l.observers,c},enumerable:!1,configurable:!0}),n}(y);function E(e,n,t){void 0===t&&(t=n);var r={configurable:!0,get:function(){return C(this,t).current},set:function(e){C(this,t,e).current=e}};Object.defineProperty(e,n,r),t!==n&&Object.defineProperty(e,t,{configurable:!0,get:function(){return C(this,t).current}})}function x(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length>1?E(e[0],e[1]):function(n,t){return E(n,t,e[0])}}function O(object){object.subscribe=function(e,n){this[e],C(this,e).subscribe(n)},object.unsubscribe=function(e,n){var t=this;e?e in this&&C(this,e).unsubscribe(n):o(A(this)).forEach(function(e){t.unsubscribe(e)})}}function w(e){O(e.prototype)}function R(e,n){var t=l(e)?e():e,r={};return I(r),o(t).forEach(function(e){var n=t[e];j(n)?S(r,e,n):S(r,e,k(n)),x(e)(r,e)}),O(r),r}function T(e){return R(e)}function k(e){return new y(e)}function I(e){var n={};return Object.defineProperty(e,h,{get:function(){return n}}),n}function A(e,n){var t,r;e[h]||I(e);var o=e[h];if(!n){var c=null===(r=null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.prototype)||void 0===r?void 0:r[f];c&&c.forEach(function(n){!(n in o)&&n in e&&e[n]})}return o}function C(e,n,t){var r=A(e);return r[n]||(r[n]=k(t)),r[n]}function S(e,n,t){A(e)[n]=t}function j(e){return e&&function(e){return"object"==typeof e}(e)&&"current"in e&&"subscribe"in e&&"unsubscribe"in e}function M(e,n){var t=l(e)?{setup:e}:e;function c(){var e,r,o,c,l;return null!==(l=null!==(o=null!==(e=null==n?void 0:n())&&void 0!==e?e:null===(r=t.props)||void 0===r?void 0:r.call(t))&&void 0!==o?o:null===(c=t.data)||void 0===c?void 0:c.call(t))&&void 0!==l?l:{}}var h=new r.b,f=[],d=[],v=[],m=[],y={current:null},P=[],E=null,x=[],O=[],w=function(e){f.push(e)},R=function(e){E=e},T=function(e){x=e},k=function(e){O=e};return t.setup&&(y.current=t.setup({getProps:c,setInitialState:R,setEvents:T,setMethods:k,onMounted:w,onDestroy:function(e){v.push(e)},onInit:function(e){d.push(e)},emit:function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];h.trigger.apply(h,_([e],n,!1))},on:function(e){m.push(e)}})||null),t.created&&(y.current=t.created(c())||null),t.events&&T(t.events),t.state&&R(t.state),t.methods&&k(t.methods),t.mounted&&w(t.mounted),t.destroy&&v.push(t.destroy),t.init&&d.push(t.init),t.on&&m.push(function(e,n,r){var o=t.on(e,n,r);return function(){var c;o&&o(),null===(c=t.off)||void 0===c||c.call(t,e,n,r)}}),{events:function(){return x},state:function(){var e=y.current;if(E)return E;if(e){var n=A(e);R(o(n).reduce(function(e,t){return e[t]=n[t].current,e},{}))}return E||{}},instance:function(){return y.current},mounted:function(){var e=c();f.forEach(function(n){y.current=n(e,y.current)||y.current})},init:function(){var e=y.current,n=c();P=x.map(function(e){var n=function(){for(var n,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(n=h).trigger.apply(n,_([e],t,!1))},t=y.current;return m.map(function(r){return r(t,e,n)}).filter(Boolean)}),d.forEach(function(t){t(e,n)})},destroy:function(){P.forEach(function(e){e.forEach(function(e){e()})}),h.off();var e=y.current,n=c();v.forEach(function(t){t(e,n)})},methods:function(){return e=y,t={},(n=O)?(n.forEach(function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=e.current||e.value;return o[n].apply(o,t)}}),t):t;var e,n,t},on:function(e,n){h.on(e,n)},off:function(e,n){h.off(e,n)}}}function D(e,n,t){var r=t.get;var o={configurable:!0,get:function(){var e,t=A(this,!0);return n in t||(t[n]=(e=r.bind(this),new P(e))),C(this,n).current}};e[f]||(e[f]=[]);var c=e[f];return-1===c.indexOf(n)&&c.push(n),Object.defineProperty(e,n,o),o}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.