1/*! For license information please see 206.js.LICENSE.txt */ 2(self.webpackChunkoneshot=self.webpackChunkoneshot||[]).push([[206],{6348:(e,n,t)=>{"use strict";t.d(n,{il:()=>r});var i=t(7191),r=function(){function e(e){var n=this,t=void 0===e?{}:e,r=t.duration,o=void 0===r?2e3:r,a=t.animationDuration,s=void 0===a?void 0:a,u=t.direction,l=void 0===u?i.JR.NEXT:u,c=t.stopOnHover,h=void 0!==c&&c,f=t.delayAfterHover;this._flicking=null,this._timerId=0,this._mouseEntered=!1,this._playing=!1,this.play=function(){n._movePanel(n._duration)},this.stop=function(){n._playing=!1,clearTimeout(n._timerId)},this._onMouseEnter=function(){n._mouseEntered=!0,n.stop()},this._onMouseLeave=function(){n._mouseEntered=!1,n._movePanel(n._delayAfterHover)},this._duration=o,this._animationDuration=s,this._direction=l,this._stopOnHover=h,this._delayAfterHover=null!=f?f:o}var n=e.prototype;return Object.defineProperty(n,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"animationDuration",{get:function(){return this._animationDuration},set:function(e){this._animationDuration=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"direction",{get:function(){return this._direction},set:function(e){this._direction=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"stopOnHover",{get:function(){return this._stopOnHover},set:function(e){this._stopOnHover=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"delayAfterHover",{get:function(){return this._delayAfterHover},set:function(e){this._delayAfterHover=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),n.init=function(e){var n;if(this._flicking&&this.destroy(),e.on(((n={})[i.FP.MOVE_START]=this.stop,n[i.FP.HOLD_START]=this.stop,n[i.FP.MOVE_END]=this.play,n[i.FP.SELECT]=this.play,n)),this._flicking=e,this._stopOnHover){var t=this._flicking.element;t.addEventListener("mouseenter",this._onMouseEnter,!1),t.addEventListener("mouseleave",this._onMouseLeave,!1)}this.play()},n.destroy=function(){var e=this._flicking;if(this._mouseEntered=!1,this.stop(),e){e.off(i.FP.MOVE_START,this.stop),e.off(i.FP.HOLD_START,this.stop),e.off(i.FP.MOVE_END,this.play),e.off(i.FP.SELECT,this.play);var n=e.element;n.removeEventListener("mouseenter",this._onMouseEnter,!1),n.removeEventListener("mouseleave",this._onMouseLeave,!1),this._flicking=null}},n.update=function(){},n._movePanel=function(e){var n=this,t=this._flicking,r=this._direction;t&&(this.stop(),this._mouseEntered||t.animating||(this._playing=!0,this._timerId=window.setTimeout((function(){var e,o,a=n._animationDuration||t.duration,s=t.moveType;if(s===i.lS.FREE_SCROLL||(null==s?void 0:s[0])===i.lS.FREE_SCROLL){var u=t.camera.range,l=t.camera.position,c=t.currentPanel,h=c.prev(),f=c.next(),d=c.position,p=null!==(e=null==f?void 0:f.position)&&void 0!==e?e:u.max,g=null!==(o=null==h?void 0:h.position)&&void 0!==o?o:u.min;if(g>d&&(g=u.min-(u.max-g)),p<d&&(p+=u.max),r===i.JR.NEXT){var v=p-l;l<d&&(v=p-l),a*=v/(p-d)}else v=l-g,l>d&&(v=l-g),a*=v/(d-g)}r===i.JR.NEXT?t.next(a).catch((function(){})):t.prev(a).catch((function(){})),n.play()}),e)))},e}()},7191:(e,n,t)=>{"use strict";function i(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var i,r,o=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return a}function r(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(i(arguments[n]));return e}t.d(n,{JR:()=>wn,FP:()=>Pn,vx:()=>Ot,lS:()=>kn,J9:()=>kt,Cc:()=>Tt,Co:()=>Ct,Xx:()=>jt,Gi:()=>Cn,Wn:()=>St,w6:()=>qn,Z_:()=>It,UY:()=>At});var o=function(e){return void 0===e},a=function(){function e(e,n){var t,i;if(this._canceled=!1,n)try{for(var r=function(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}
vendor: 5,160 bytes, line 2
2(Object.keys(n)),o=r.next();!o.done;o=r.next()){var a=o.value;this[a]=n[a]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}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}(),s=a;const u=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 i=e instanceof a?e.eventType:e,o=r(this._eventHandler[i]||[]);return o.length<=0||(e instanceof a?(e.currentTarget=this,o.forEach((function(n){n(e)}))):o.forEach((function(e){e.apply(void 0,r(n))}))),this},n.once=function(e,n){var t=this;if("object"==typeof e&&o(n)){var i=e;for(var a in i)this.once(a,i[a]);return this}if("string"==typeof e&&"function"==typeof n){var s=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.apply(void 0,r(i)),t.off(e,s)};this.on(e,s)}return this},n.hasOn=function(e){return!!this._eventHandler[e]},n.on=function(e,n){if("object"==typeof e&&o(n)){var t=e;for(var i in t)this.on(i,t[i]);return this}if("string"==typeof e&&"function"==typeof n){var r=this._eventHandler[e];o(r)&&(this._eventHandler[e]=[],r=this._eventHandler[e]),r.push(n)}return this},n.off=function(e,n){if(o(e))return this._eventHandler={},this;if(o(n)){if("string"==typeof e)return delete this._eventHandler[e],this;var t=e;for(var i in t)this.off(i,t[i]);return this}var r=this._eventHandler[e];if(r)for(var a=r.length,s=0;s<a;++s)if(r[s]===n){r.splice(s,1),a<=1&&delete this._eventHandler[e];break}return this},e.VERSION="3.0.5",e}();function l(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 h(e){var n=e;if(void 0===n){if("undefined"==typeof navigator||!navigator)return"";n=navigator.userAgent||""}return n.toLowerCase()}function f(e,n){try{return new RegExp(e,"g").exec(n)}catch(e){return null}}function d(e){return e.replace(/_/g,".")}function p(e,n){var t=null,i="-1";return l(e,(function(e){var r=f("("+e.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",n);return!(!r||e.brand||(t=e,i=r[3]||"-1",e.versionAlias?i=e.versionAlias:e.versionTest&&(i=function(e,n){var t=f("("+e+")((?:\\/|\\s|:)([0-9|\\.|_]+))",n);return t?t[3]:""}(e.versionTest.toLowerCase(),n)||i),i=d(i),0))})),{preset:t,version:i}}function g(e,n){var t={brand:"",version:"-1"};return l(e,(function(e){var i=v(n,e);return!!i&&(t.brand=e.id,t.version=e.versionAlias||i.version,"-1"!==t.version)})),t}function v(e,n){return c(e,(function(e){var t=e.brand;return f(""+n.test,t.toLowerCase())}))}var _=[{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"}],m=[{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}],b=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],y=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],P=[{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 E(e){return!!p(y,e).preset}const x=function(e){return void 0===e&&function(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,n=e.brands||e.uaList;return!(!n||!n.length)}()?function(e){var n=navigator.userAgentData,t=(n.uaList||n.brands).slice(),i=e&&e.fullVersionList,r=n.mobile||!1,o=t[0],a=(e&&e.platform||n.platform||navigator.platform).toLowerCase(),s={name:o.brand,version:o.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!g(y,t).brand||E(h())},u={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&l(b,(function(e){return v(t,e)}));var f=g(m,t);if(s.chromium=!!f.brand,s.chromiumVersion=f.version,!s.chromium){var p=g(b,t);s.webkit=!!p.brand,s.webkitVersion=p.version}var x=c(P,(function(e){return new RegExp(""+e.test,"g").exec(a)}));if(u.name=x?x.id:"",e&&(u.version=e.platformVersion),i&&i.length){var O=g(_,i);s.name=O.brand||s.name,s.version=O.version||s.version}else{var w=g(_,t);s.name=w.brand||s.name,s.version=w.brand&&e?e.uaFullVersion:w.version}return s.webkit&&(u.name=r?"ios":"mac"),"ios"===u.name&&s.webview&&(s.version="-1"),u.ver
2sion=d(u.version),s.version=d(s.version),u.majorVersion=parseInt(u.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:u,isMobile:r,isHints:!0}}():function(e){var n=h(e),t=!!/mobi/g.exec(n),i={name:"unknown",version:"-1",majorVersion:-1,webview:E(n),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},o=p(_,n),a=o.preset,s=o.version,u=p(P,n),l=u.preset,c=u.version,f=p(m,n);if(i.chromium=!!f.preset,i.chromiumVersion=f.version,!i.chromium){var d=p(b,n);i.webkit=!!d.preset,i.webkitVersion=d.version}return l&&(r.name=l.id,r.version=c,r.majorVersion=parseInt(c,10)),a&&(i.name=a.id,i.version=s,i.webview&&"ios"===r.name&&"safari"!==i.name&&(i.webview=!1)),i.majorVersion=parseInt(i.version,10),{browser:i,os:r,isMobile:t,isHints:!1}}(e)};var O="__CFCS_DETECTED_DEPENDENCIES__",w=function(e,n){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)};function k(){Object[O]=Object[O]||{};var e=Object[O];return e[1]=e[1]||[],e[1]}var R=function(){function e(e){this._emitter=new u,this._current=e}var n=e.prototype;return Object.defineProperty(n,"current",{get:function(){var e,n=(e=k())[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}(),T=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,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}w(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}(n,e);var t=n.prototype;return Object.defineProperty(t,"current",{get:function(){var e,n,t,i,r=this;e=this,n=k(),i={host:e,observers:t=[],push:function(n){e!==n&&-1===t.indexOf(n)&&t.push(n)}},n.push(i);var o=this._computedCallback(),a=k().pop();return this._registered.forEach((function(e){e.unsubscribe(r._onCheckUpdate)})),a.observers.forEach((function(e){e.subscribe(r._onCheckUpdate)})),this._registered=a.observers,o},enumerable:!1,configurable:!0}),n}(R);function C(e,n,t){void 0===t&&(t=n);var i={configurable:!0,get:function(){return S(this,t).current},set:function(e){S(this,t,e).current=e}};Object.defineProperty(e,n,i),t!==n&&Object.defineProperty(e,t,{configurable:!0,get:function(){return S(this,t).current}})}function A(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length>1?C(e[0],e[1]):function(n,t){return C(n,t,e[0])}}function I(e){e.subscribe=function(e,n){this[e],S(this,e).subscribe(n)},e.unsubscribe=function(e,n){var t,i=this;e?e in this&&S(this,e).unsubscribe(n):(t=M(this),Object.keys(t)).forEach((function(e){i.unsubscribe(e)}))}}function D(e){I(e.prototype)}function M(e,n){var t,i;e.__observers__||function(e){var n={};Object.defineProperty(e,"__observers__",{get:function(){return n}})}(e);var r=e.__observers__;if(!n){var o=null===(i=null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.prototype)||void 0===i?void 0:i.__computed__;o&&o.forEach((function(n){!(n in r)&&n in e&&e[n]}))}return r}function S(e,n,t){var i=M(e);return i[n]||(i[n]=function(e){return new R(e)}(t)),i[n]}function j(e,n,t){var i=t.get,r={configurable:!0,get:function(){var e,t=M(this,!0);return n in t||(t[n]=(e=i.bind(this),new T(e))),S(this,n).current}};e.__computed__||(e.__computed__=[]);var o=e.__computed__;return-1===o.indexOf(n)&&o.push(n),Object.defineProperty(e,n,r),r}var z=function(e,n){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function N(e,n){function t(){this.constructor=e}z(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var L,F=function(){return(F=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};function V(e,n,t,i){var r,o=arguments.length,a=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(n,t,a):r(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a}L="undefined"==typeof window?{navigator:{userAgent:""}}:window;var H="left",B="right",X="middle",G={1:H,2:X,3:B},Y="ontouchstart"in L&&"safari"===x().browser.name,W=function(){if("undefined"==typeof document)return"";for(var e=(document.head||document.getElementsByTagName("head")[0]).style,n=["transform","webkitTransform","msTransform","mozTransform"],t=0,i=n.length;t<i;t++)if(n[t]in e)return n[t];return""}(),q={"-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=[],t=0,i=e.length;t<i;t++)n.push(e[t]);return n},$=function(e,n){var t;if(void 0===n&&(n=!1),"string"==typeof e){if(e.match(/^<([a-z]+)\s*([^>]*)>/)){var i=document.createElement("div");i.innerHTML=e,t=U(i.childNodes)}else t=U(document.querySelectorAll(e));n||(t=t.length>=1?t[0]:void 0)}else e===L?t=e:"value"in e||"current"in e?t=e.value||e.current:!e.nodeName||1!==e.nodeType&&9!==e.nodeType?"jQuery"in L&&e instanceof jQuery||e.constructor.prototype.jquery?t=n?e.toArray():e.get(0):Array.isArray(e)&&(t=e.map((function(e){return $(e)})),n||(t=t.length>=1?t[0]:void 0)):t=e;return t},K=L.requestAnimationFrame||L.webkitRequestAnimationFrame,Z=L.cancelAnimationFrame||L.webkitCancelAnimationFrame;if(K&&!Z){var J={},Q=K;K=function(e){var n=Q((function(t){J[n]&&e(t)}));return J[n]=!0,n},Z=function(e){delete J[e]}}else K&&Z||(K=function(e){return L.setTimeout((function(){e(L.performance&&L.performance.now&&L.performance.now()||(new Date).getTime())}),16)},Z=L.clearTimeout);var ee=function(e,n){var t={};for(var i in e)i&&(t[i]=n(e[i],i));return t},ne=function(e,n){var t={};for(var i in e)i&&n(e[i],i)&&(t[i]=e[i]);return t},te=function(e,n){for(var t in e)if(t&&!n(e[t],t))return!1;return!0},ie=function(e,n){return te(e,(function(e,t){return e===n[t]}))},re={},oe=function(e,n){return re[n]||(re[n]=ue(n)),re[n](e)},ae=function(e,n){return e&&n?ee(e,(function(e,t){return oe(e,"number"==typeof n?n:n[t])})):e},se=function(e){if(!isFinite(e))return 0;var n="".concat(e);
vendor: 2,127 bytes, line 2
2if(n.indexOf("e")>=0){for(var t=0,i=1;Math.round(e*i)/i!==e;)i*=10,t++;return t}return n.indexOf(".")>=0?n.length-n.indexOf(".")-1:0},ue=function(e){var n=e<1?Math.pow(10,se(e)):1;return function(t){return 0===e?0:Math.round(Math.round(t/e)*e*n)/n}},le=function(e,n,t){return t?!!(30===n||n&e&&t&e):!!(n&e)},ce=function(){function e(e){this._axes=e,this.holdingCount=0}var n=e.prototype;return n.hold=function(e,n){var t=this._getRoundPos(e).roundPos;this._axes.trigger(new s("hold",{pos:t,input:n.input||null,inputEvent:n.event||null,isTrusted:!0}))},n.triggerRelease=function(e){var n=this._getRoundPos(e.destPos,e.depaPos),t=n.roundPos,i=n.roundDepa;e.destPos=t,e.depaPos=i,e.setTo=this._createUserControll(e.destPos,e.duration),this._axes.trigger(new s("release",F(F({},e),{bounceRatio:this._getBounceRatio(t)})))},n.triggerChange=function(e,n,t,i){var r=this;void 0===i&&(i=!1);var o=this.animationManager,a=o.axisManager,u=o.getEventInfo(),l=this._getRoundPos(e,n),c=l.roundPos,h=l.roundDepa,f=a.moveTo(c,h),d=(null==t?void 0:t.event)||(null==u?void 0:u.event)||null,p={pos:f.pos,delta:f.delta,bounceRatio:this._getBounceRatio(f.pos),holding:i,inputEvent:d,isTrusted:!!d,input:(null==t?void 0:t.input)||(null==u?void 0:u.input)||null,set:d?this._createUserControll(f.pos):function(){}},g=new s("change",p);return this._axes.trigger(g),Object.keys(f.pos).forEach((function(e){var n=f.pos[e];S(r._axes,e,n).current=n})),d&&a.set(p.set().destPos),!g.isCanceled()},n.triggerAnimationStart=function(e){var n=this._getRoundPos(e.destPos,e.depaPos),t=n.roundPos,i=n.roundDepa;e.destPos=t,e.depaPos=i,e.setTo=this._createUserControll(e.destPos,e.duration);var r=new s("animationStart",e);return this._axes.trigger(r),!r.isCanceled()},n.triggerAnimationEnd=function(e){void 0===e&&(e=!1),this._axes.trigger(new s("animationEnd",{isTrusted:e}))},n.triggerFinish=function(e){void 0===e&&(e=!1),this._axes.trigger(new s("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:F({},e),duration:n};
vendor: 19,740 bytes, line 2
2return function(e,n){return e&&(t.destPos=F({},e)),void 0!==n&&(t.duration=n),t}},n._getRoundPos=function(e,n){var t=this._axes.options.round;return{roundPos:ae(e,t),roundDepa:ae(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}))},V([A],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,i){var r=e,o=[t[0]?n[0]:i?n[0]-i[0]:n[0],t[1]?n[1]:i?n[1]+i[1]:n[1]];return r=Math.max(o[0],r),Math.min(o[1],r)},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]},ge=function(e,n,t){var i=e,r=n[0],o=n[1],a=o-r;return t[1]&&e>o&&(i=(i-o)%a+r),t[0]&&e<r&&(i=(i-r)%a+o),i},ve=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 ee(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}),{}):F(F({},this._pos),e||{})},n.moveTo=function(e,n){void 0===n&&(n=this._pos);var t=ee(this._pos,(function(t,i){return i in e&&i in n?e[i]-n[i]:0}));return this.set(this.map(e,(function(e,n){return n?ge(e,n.range,n.circular):0}))),{pos:F({},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 te(e,(function(e,i){return n(e,t[i],i)}))},n.filter=function(e,n){var t=this._axis;return ne(e,(function(e,i){return n(e,t[i],i)}))},n.map=function(e,n){var t=this._axis;return ee(e,(function(e,i){return n(e,t[i],i)}))},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]=F(F({},n._axis[t]),e[t])})),this._complementOptions()},n._complementOptions=function(){var e=this;Object.keys(this._axis).forEach((function(n){e._axis[n]=F({range:[0,100],startPos:e._axis[n].range[0],bounce:[0,0],circular:[!1,!1]},e._axis[n]),["bounce","circular"].forEach((function(t){var i=e._axis,r=i[n][t];/string|number|boolean/.test(typeof r)&&(i[n][t]=[r,r])}))}))},e}(),_e="ontouchstart"in L,me="PointerEvent"in L,be=me||"MSPointerEvent"in L,ye=function(){function e(){var e=this;this._stopContextMenu=function(n){n.preventDefault(),L.removeEventListener("contextmenu",e._stopContextMenu)}}var n=e.prototype;return n.extendEvent=function(e){var n,t,i,r=this.prevEvent,o=this._getCenter(e),a=r?this._getMovement(e):{x:0,y:0},s=r?this._getScale(e):1,u=r?(t=o.x-r.center.x,i=o.y-r.center.y,180*Math.atan2(i,t)/Math.PI):0,l=r?r.deltaX+a.x:a.x,c=r?r.deltaY+a.y:a.y,h=a.x,f=a.y,d=this._latestInterval,p=Date.now(),g=d?p-d.timestamp:0,v=r?r.velocityX:0,_=r?r.velocityY:0;return(!d||g>=16)&&(d&&(v=(n=[(l-d.deltaX)/g,(c-d.deltaY)/g])[0],_=n[1]),this._latestInterval={timestamp:p,deltaX:l,deltaY:c}),{srcEvent:e,scale:s,angle:u,center:o,deltaX:l,deltaY:c,offsetX:h,offsetY:f,velocityX:v,velocityY:_,preventSystemEvent:!0}},n._getDistance=function(e,n){var t=n.clientX-e.clientX,i=n.clientY-e.clientY;return Math.sqrt(t*t+i*i)},n._getButton=function(e){var n={1:H,2:B,4:X};return(this._isTouchEvent(e)?H:n[e.buttons])||null},n._isTouchEvent=function(e){return e.type&&e.type.indexOf("touch")>-1},n._isValidButton=function(e,n){return n.indexOf(e)>-1},n._isValidEvent=function(e,n,t){return(!n||function(e,n){return!!(!n||n.indexOf("any")>-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)}(e,n))&&(!t||this._isValidButton(this._getButton(e),t))},n._preventMouseButton=function(e,n){n===B?L.addEventListener("contextmenu",this._stopContextMenu):n===X&&e.preventDefault()},e}(),Pe=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.start=["mousedown"],n.move=["mousemove"],n.end=["mouseup"],n}N(n,e);var t=n.prototype;return t.onEventStart=function(e,n,t){var i=this._getButton(e);return this._isValidEvent(e,n,t)?(this._preventMouseButton(e,i),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(G[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}(ye),Ee=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}N(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}(ye),xe=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}N(n,e);var t=n.prototype;return t.onEventStart=function(e,n,t){var i=this._getButton(e);return this._isValidEvent(e,n,t)?(this._preventMouseButton(e,i),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(i,r){i.pointerId===e.pointerId&&(t=!0,n._recentInputs[r]=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}(ye),Oe=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}N(n,e);var t=n.prototype;return t.onEventStart=function(e,n,t){var i=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,n,t)?(this._preventMouseButton(e,i),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(G[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}})),i=t[0],r=t[1];return i.id===r.id?{x:i.x-r.x,y:i.y-r.y}:{x:0,y:0}},n}(ye),we=function(e,n){return n.reduce((function(n,t,i){return e[i]&&(n[e[i]]=t),n}),{})};function ke(e){return e.indexOf("touch")>-1&&{passive:!1}}var Re=function(){function e(e){var n=e.options,t=e.interruptManager,i=e.eventManager,r=e.axisManager,o=e.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=n,this._interruptManager=t,this._eventManager=i,this._axisManager=r,this._animationManager=o}var n=e.prototype;return n.get=function(e){return this._axisManager.get(e.axes)},n.hold=function(e,n){if(!this._interruptManager.isInterrupted()&&e.axes.length){var t={input:e,event:n};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(t),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),t),this._isOutside=this._axisManager.isOutside(e.axes),this._moveDistance=this._axisManager.get(e.axes)}},n.change=function(e,n,t,i){if(!this._isStopped&&this._interruptManager.isInterrupting()&&!this._axisManager.every(t,(function(e){return 0===e}))){var r=n.srcEvent?n.srcEvent:n;if(!r.__childrenAxesAlreadyChanged){var o,a=this._moveDistance||this._axisManager.get(e.axes);o=ee(a,(function(e,n){return e+(t[n]||0)})),this._moveDistance&&(this._moveDistance=this._axisManager.map(o,(function(e,n){var t=n.circular,i=n.range;return t&&(t[0]||t[1])?ge(e,i,t):e}))),this._isOutside&&this._axisManager.every(a,(function(e,n){return!de(e,n.range)}))&&(this._isOutside=!1),a=this._atOutside(a),o=this._atOutside(o),this.options.nested&&this._isEndofAxis(t,a,o)||(r.__childrenAxesAlreadyChanged=!0);var s={input:e,event:n};if(i){var u=this._animationManager.getDuration(o,a);this._animationManager.animateTo(o,u,s)}else!this._eventManager.triggerChange(o,a,s,!0)&&(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}},n.release=function(e,n,t,i){if(!this._isStopped&&this._interruptManager.isInterrupting()&&this._moveDistance){var r=n.srcEvent?n.srcEvent:n;r.__childrenAxesAlreadyReleased&&(t=t.map((function(){return 0})));var o=this._axisManager.get(e.axes),a=this._axisManager.get(),s=this._animationManager.getDisplacement(t),u=we(e.axes,s),l=this._axisManager.get(this._axisManager.map(u,(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 c=this._animationManager.getDuration(l,o,i);0===c&&(l=F({},a));var h={depaPos:a,destPos:l,duration:c,delta:this._axisManager.getDelta(a,l),inputEvent:n,input:e,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(h),0===this._eventManager.holdingCount&&(this._moveDistance=null);var f=this._animationManager.getUserControl(h),d=ie(f.destPos,a),p={input:e,event:n};d||0===f.duration?(d||this._eventManager.triggerChange(f.destPos,a,p,!0),this._interruptManager.setInterrupt(!1),this._axisManager.isOutside()?this._animationManager.restore(p):this._eventManager.triggerFinish(!0)):this._animationManager.animateTo(f.destPos,f.duration,p)}},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],i=n.range[1]+n.bounce[1];return e>i?i:e<t?t:e})):this._axisManager.map(e,(function(e,t){var i=t.range[0],r=t.range[1],o=t.bounce,a=t.circular;return a[0]&&e<i||a[1]&&e>r?e:e<i?i-n._animationManager.interpolate(i-e,o[0]):e>r?r+n._animationManager.interpolate(e-r,o[1]):e}))},n._isEndofAxis=function(e,n,t){return this._axisManager.every(n,(function(i,r,o){return 0===e[o]||n[o]===t[o]&&function(e,n,t,i){return!i[0]&&e===n[0]-t[0]||!i[1]&&e===n[1]+t[1]}(i,r.range,r.bounce,r.circular)}))},e}(),Te=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}N(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 i=(new Date).getTime()-t.startTime,r=(null==e?void 0:e.destPos)||t.destPos,o=null!==(n=null==e?void 0:e.duration)&&void 0!==n?n:t.duration;if((null==e?void 0:e.restart)||o<=i)this.setTo(r,o-i);else{if(null==e?void 0:e.destPos){var a=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,t.delta=this.axisManager.getDelta(a,r),t.destPos=r}if(null==e?void 0:e.duration){var s=(i+this._durationOffset)/t.duration;this._durationOffset=s*o-i,t.duration=o}}}},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,i=e.pos,r=t.destPos,o=ee(i,(function(e,n){return e<=r[n]?1:-1})),a=((new Date).getTime()-t.startTime+this._durationOffset)/t.duration,s=this._easing(a),u=this.axisManager.map(i,(function(e,u,l){var c=a>=1?r[l]:e+t.delta[l]*(s-n._prevEasingPer)/(1-n._initialEasingPer),h=ge(c,u.range,u.circular);if(c!==h){var f=o[l]*(u.range[1]-u.range[0]);r[l]-=f,i[l]-=f}return h}));return this._prevEasingPer=s,{pos:u,easingPer:s,finished:s>=1}},t._easing=function(e){return e>1?1:this._options.easing(e)},n}(function(){function e(e){var n=e.options,t=e.interruptManager,i=e.eventManager,r=e.axisManager;this._options=n,this.interruptManager=t,this.eventManager=i,this.axisManager=r,this.animationEnd=this.animationEnd.bind(this)}var n=e.prototype;return n.getDuration=function(e,n,t){var i,r=this;if(void 0!==t)i=t;else{var o=ee(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]),r._options.deceleration)}));i=Object.keys(o).reduce((function(e,n){return Math.max(e,o[n])}),-1/0)}return Te(i,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(e){if(this._animateParam){var n=this.axisManager.get(),t=this.axisManager.map(n,(function(e,n){return ge(e,n.range,n.circular)}));te(t,(function(e,t){return n[t]===e}))||this.eventManager.triggerChange(t,n,e,!!e),this._animateParam=null,this._raf&&(i=this._raf,Z(i)),this._raf=null,this.eventManager.triggerAnimationEnd(!!(null==e?void 0:e.event))}var i},n.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},n.restore=function(e){var n=this.axisManager.get(),t=this.axisManager.map(n,(function(e,n){return Math.min(n.range[1],Math.max(n.range[0],e))}));this.stopAnimation(),this.animateTo(t,this.getDuration(n,t),e)},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 ge(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(e){var n=e.setTo();return n.destPos=this.axisManager.get(n.destPos),n.duration=Te(n.duration,this._options.minimumDuration,this._options.maximumDuration),n},n.animateTo=function(e,n,t){var i=this;this.stopAnimation();var r=this._createAnimationParam(e,n,t),o=F({},r.depaPos),a=this.eventManager.triggerAnimationStart(r),s=this.getUserControl(r);if(!a&&this.axisManager.every(s.destPos,(function(e,n){return pe(e,n.range,n.circular)}))&&console.warn("You can't stop the 'animation' event when 'circular' is true."),a&&!ie(s.destPos,o)){var u=(null==t?void 0:t.event)||null;this._animateLoop({depaPos:o,destPos:s.destPos,duration:s.duration,delta:this.axisManager.getDelta(o,s.destPos),isTrusted:!!u,inputEvent:u,input:(null==t?void 0:t.input)||null},(function(){return i.animationEnd()}))}},n.setTo=function(e,n){void 0===n&&(n=0);var t=Object.keys(e),i=this.axisManager.get(t);if(ie(e,i))return this;this.interruptManager.setInterrupt(!0);var r=ne(e,(function(e,n){return i[n]!==e}));return Object.keys(r).length?(r=this.axisManager.map(r,(function(e,n){var t=n.range,i=n.circular;return i&&(i[0]||i[1])?e:fe(e,t,i)})),ie(r,i)||(n>0?this.animateTo(r,n):(this.stopAnimation(),this.eventManager.triggerChange(r),this.finish(!1))),this):this},n.setBy=function(e,n){return void 0===n&&(n=0),this.setTo(ee(this.axisManager.get(Object.keys(e)),(function(n,t){return n+e[t]})),n)},n.setOptions=function(e){this._options=F(F({},this._options),e)},n._createAnimationParam=function(e,n,t){var i=this.axisManager.get(),r=e,o=(null==t?void 0:t.event)||null;return{depaPos:i,destPos:r,duration:Te(n,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(i,r),inputEvent:o,input:(null==t?void 0:t.input)||null,isTrusted:!!o,done:this.animationEnd}},n._animateLoop=function(e,n){var t=this;if(e.duration){this._animateParam=F(F({},e),{startTime:(new Date).getTime()});var i=ee(e.destPos,(function(e){return e})),r=this._initState(this._animateParam),o=function(){t._raf=null;var e=t._animateParam,a=t._getNextState(r),s=!t.eventManager.triggerChange(a.pos,r.pos);if(r=a,a.finished)return e.destPos=t._getFinalPos(e.destPos,i),ie(e.destPos,t.axisManager.get(Object.keys(e.destPos)))||t.eventManager.triggerChange(e.destPos,a.pos),void n();s?t.finish(!1):t._raf=K(o)};o()}else this.eventManager.triggerChange(e.destPos),n()},n._getFinalPos=function(e,n){var t=this,i=1e-6;return ee(e,(function(e,r){if(e>=n[r]-i&&e<=n[r]+i)return n[r];var o=t._getRoundUnit(e,r);return oe(e,o)}))},n._getRoundUnit=function(e,n){var t,i=this._options.round,r=null;if(!i){var o=this.axisManager.getAxisOptions(n);t=Math.max(se(o.range[0]),se(o.range[1]),se(e)),r=1/Math.pow(10,t)}return r||i},e}()),Ae=function(e){function n(n,t,i){void 0===n&&(n={}),void 0===t&&(t={}),void 0===i&&(i={});var r=e.call(this)||this;return r.axis=n,r._inputs=[],r.options=F({easing:function(e){return 1-Math.pow(1-e,3)},interruptable:!0,maximumDuration:1/0,minimumDuration:0,deceleration:6e-4,round:null,nested:!1}
2,t),Object.keys(i).forEach((function(e){r.axis[e].startPos=i[e]})),r.interruptManager=new he(r.options),r.axisManager=new ve(r.axis),r.eventManager=new ce(r),r.animationManager=new Ce(r),r.inputObserver=new Re(r),r.eventManager.setAnimationManager(r.animationManager),r.eventManager.triggerChange(r.axisManager.get()),r}N(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=F(F({},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.0",n.TRANSFORM=W,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=24,n.DIRECTION_ALL=30,V([j],n.prototype,"holding",null),V([D],n)}(u),Ie=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=$(e),this.options=F({inputType:["touch","mouse","pointer"],inputKey:["any"],inputButton:[H],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){var n,t;this._direction=(n=!!e[0],t=!!e[1],n&&t?30:n?6:t?24:1),this.axes=e},n.connect=function(e){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(e),this._originalCssProps=function(e,n,t){var i,r=((i={})[1]="auto",i[30]="none",i[24]="pan-x",i[6]="pan-y",i),o={};if(e&&e.style){var a=n.touchAction?n.touchAction:r[t],s=F(F({},q),{"touch-action":"none"===e.style["touch-action"]?"none":a});Object.keys(s).forEach((function(n){o[n]=e.style[n],e.style[n]=s[n]}))}return o}(this.element,this.options,this._direction),this},n.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),e=this._originalCssProps,n=!0,Object.keys(q).forEach((function(t){e&&e[t]===q[t]||(n=!1)})),n||function(e,n){e&&e.style&&n&&Object.keys(n).forEach((function(t){e.style[t]=n[t]}))}(this.element,this._originalCssProps),this._direction=1,this;var e,n},n.destroy=function(){this.disconnect(),this.element=null},n.enable=function(){return this._enabled=!0,this},n.disable=function(){return this._enabled=!1,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,i=n.inputButton,r=n.preventDefaultOnDrag,o=this._activeEvent,a=o.onEventStart(e,t,i);if(a&&this._enabled&&!(o.getTouches(e,i)>1)&&!1!==a.srcEvent.cancelable){var s=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,a),this._atRightEdge=Y&&a.center.x>window.innerWidth-s,this._attachWindowEvent(o),r&&"touchstart"!==a.srcEvent.type&&a.srcEvent.preventDefault(),o.prevEvent=a}},n._onPanmove=function(e){var n=this,t=this.options,i=t.iOSEdgeSwipeThreshold,r=t.preventClickOnDrag,o=t.releaseOnScroll,a=t.inputKey,s=t.inputButton,u=t.threshold,l=t.thresholdAngle,c=this._activeEvent,h=c.onEventMove(e,a,s),f=c.getTouches(e,s);if(0===f||o&&h&&!h.srcEvent.cancelable)this._onPanend(e);else if(h&&this._enabled&&!(f>1)){var d=function(e,n){if(n<0||n>90)return 1;var t=Math.abs(e);return t>n&&t<180-n?24:6}(h.angle,l),p=le(6,this._direction,d),g=le(24,this._direction,d);if(c.prevEvent&&Y){if(h.center.x<0)return void this.release();this._atRightEdge&&(clearTimeout(this._rightEdgeTimer),h.deltaX<-i?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout((function(){return n.release()}),100))}var v=this._getDistance([h.deltaX,h.deltaY],[p,g]),_=this._getOffset([h.offsetX,h.offsetY],[p,g]),m=_.some((function(e){return 0!==e}));m&&(!1!==h.srcEvent.cancelable&&h.srcEvent.preventDefault(),h.srcEvent.stopPropagation()),h.preventSystemEvent=m,m&&(this._isOverThreshold||v>=u)&&(this._dragged=r,this._isOverThreshold=!0,this._observer.change(this,h,we(this.axes,_))),c.prevEvent=h}},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 i=t.prevEvent,r=this._isOverThreshold?this._getOffset([Math.abs(i.velocityX)*(i.offsetX<0?-1:1),Math.abs(i.velocityY)*(i.offsetY<0?-1:1)],[le(6,this._direction),le(24,this._direction)]):[0,0];t.onRelease(),this._observer.release(this,i,r)}},n._attachWindowEvent=function(e){var n=this;null==e||e.move.forEach((function(e){window.addEventListener(e,n._onPanmove,ke(e))}
vendor: 10,715 bytes, line 2
2)),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=function(e){void 0===e&&(e=[]);var n=!1,t=!1,i=!1;return e.forEach((function(e){switch(e){case"mouse":t=!0;break;case"touch":n=_e;break;case"pointer":i=be}})),i?new xe:n&&t?new Oe:n?new Ee:t?new Pe:null}(this.options.inputType),i=this.element;if(t){if(!i)throw new Error("Element to connect input does not exist.");this._observer=e,this._enabled=!0,this._activeEvent=t,i.addEventListener("click",this._preventClickWhenDragged,!0),t.start.forEach((function(e){i.addEventListener(e,n._onPanstart)})),t.move.forEach((function(e){i.addEventListener(e,n._voidFunction)}))}},n._detachElementEvent=function(){var e=this,n=this._activeEvent,t=this.element;t&&(t.removeEventListener("click",this._preventClickWhenDragged,!0),null==n||n.start.forEach((function(n){t.removeEventListener(n,e._onPanstart)})),null==n||n.move.forEach((function(n){t.removeEventListener(n,e._voidFunction)}))),this._enabled=!1,this._observer=null},e}();const De=Ae;var Me=function(e,n){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)};function Se(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}Me(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var je=function(){return(je=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};var ze="undefined"!=typeof window,Ne=ze?window.navigator.userAgent:"",Le=!!ze&&!!("getComputedStyle"in window),Fe=/MSIE|Trident|Windows Phone|Edge/.test(Ne),Ve=!!ze&&!!("addEventListener"in document),He="width",Be="height";function Xe(e,n){return e.getAttribute(n)||""}function Ge(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 We(e,n,t){Ve?e.addEventListener(n,t,!1):e.attachEvent?e.attachEvent("on"+n,t):e["on"+n]=t}function qe(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent?e.detachEvent("on"+n,t):e["on"+n]=null}function Ue(e,n){var t=e["client"+n]||e["offset"+n];return parseFloat(t||function(e){return(Le?window.getComputedStyle(e):e.currentStyle)||{}}(e)[n.toLowerCase()])||0}var $e=[];function Ke(e,n){!$e.length&&We(window,"resize",Je),e.__PREFIX__=n,$e.push(e),Ze(e)}function Ze(e,n){void 0===n&&(n="data-");var t=e.__PREFIX__||n,i=parseInt(Xe(e,""+t+He),10)||0,r=parseInt(Xe(e,""+t+Be),10)||0;if(Xe(e,t+"fixed")===Be){var o=Ue(e,"Height")||r;e.style.width=i/r*o+"px"}else o=Ue(e,"Width")||i,e.style.height=r/i*o+"px"}function Je(){$e.forEach((function(e){Ze(e)}))}var Qe=function(e){function n(n,t){void 0===t&&(t={});var i=e.call(this)||this;i.isReady=!1,i.isPreReady=!1,i.hasDataSize=!1,i.hasLoading=!1,i.isSkip=!1,i.onCheck=function(e){if(i.clear(),e&&"error"===e.type&&i.onError(i.element),!i.hasLoading||!i.checkElement()){var n=!i.hasDataSize&&!i.hasLoading;i.onReady(n)}},i.options=je({prefix:"data-"},t),i.element=n;var r=i.options.prefix;return i.hasDataSize=function(e,n){return void 0===n&&(n="data-"),!!e.getAttribute(n+"width")}(n,r),i.isSkip=function(e,n){return void 0===n&&(n="data-"),!!e.getAttribute(n+"skip")}(n,r),i.hasLoading=Ye(n,r),i}Se(n,e);var t=n.prototype;return t.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(!0),!1):(this.hasDataSize&&Ke(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},t.addEvents=function(){var e=this,n=this.element;this.constructor.EVENTS.forEach((function(t){We(n,t,e.onCheck)}))},t.clear=function(){var e=this,n=this.element;this.constructor.EVENTS.forEach((function(t){qe(n,t,e.onCheck)})),this.removeAutoSizer()},t.destroy=function(){this.clear(),this.off()},t.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;!function(e,n){var t=$e.indexOf(e);if(!(t<0)){var i=Xe(e,n+"fixed");delete e.__PREFIX__,e.style[i===Be?He:Be]="",$e.splice(t,1),!$e.length&&qe(window,"resize",Je)}}(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(e){this.isReady||((e=!this.isPreReady&&e)&&(this.isPreReady=!0),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(e){var n=this;setTimeout((function(){n.onReady(e)}))},n.EVENTS=[],n}(u),en=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}Se(n,e);var t=n.prototype;return t.setHasLoading=function(e){this.hasLoading=e},t.check=function(){return this.isSkip?(this.onAlreadyReady(!0),!1):(this.hasDataSize?(Ke(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}(Qe),nn=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=je({loaders:{},prefix:"data-"},n),t}Se(n,e);var t=n.prototype;return t.check=function(e){var n=this,t=this.options.prefix;this.clear(),this.elementInfos=Ge(e).map((function(e,i){var r=n.getLoader(e,{prefix:t});return r.check(),r.on("error",(function(e){n.onError(i,e.target)})).on("preReady",(function(e){var t=n.elementInfos[i];t.hasLoading=e.hasLoading,t.isSkip=e.isSkip;var r=n.checkPreReady(i);n.onPreReadyElement(i),r&&n.onPreReady()})).on("ready",(function(e){var t=e.withPreReady,r=e.hasLoading,o=e.isSkip,a=n.elementInfos[i];a.hasLoading=r,a.isSkip=o;var s=t&&n.checkPreReady(i),u=n.checkReady(i);t&&n.onPreReadyElement(i),n.onReadyElement(i),s&&n.onPreReady(),u&&n.onReady()})),{loader:r,element:e,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}}));var i=this.elementInfos.length;return this.totalCount=i,i||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(e,n){var t=this,i=e.tagName.toLowerCase(),r=this.options.loaders,o=n.prefix,a=Object.keys(r);if(r[i])return new r[i](e,n);var s=new en(e,n),u=Ge(e.querySelectorAll(a.join(", ")));s.setHasLoading(u.some((function(e){return Ye(e,o)})));var l=!1,c=this.clone().on("error",(function(e){s.onError(e.target)})).on("ready",(function(){s.onReady(l)}));return s.on("requestChildren",(function(){var n=function(e,n,t){var i=Ge(e.querySelectorAll(function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var i=Array(e),r=0;for(n=0;n<t;n++)for(var o=arguments[n],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}(["["+t+"skip] ["+t+"width]"],n.map((function(e){return["["+t+"skip] "+e,e+"["+t+"skip]","["+t+"width] "+e].join(", ")}))).join(", ")));return Ge(e.querySelectorAll("["+t+"width], "+n.join(", "))).filter((function(e){return-1===i.indexOf(e)}))}(e,a,t.options.prefix);c.check(n).on("preReady",(function(e){(l=e.isReady)||s.onPreReady()}))})).on("reqeustReadyChildren",(function(){c.check(u)})).on("requestDestroy",(function(){c.destroy()})),s},t.clone=function(){return new n(je({},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 s("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 s("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 s("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 s("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 s("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}(u),tn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Se(n,e),n.prototype.checkElement=function(){var e=this.element,n=e.getAttribute("src");
2if(e.complete){if(n)return e.naturalWidth||this.onAlreadyError(e),!1;this.onAlreadyPreReady()}return this.addEvents(),Fe&&e.setAttribute("src",n),!0},n.EVENTS=["load","error"],n}(Qe),rn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Se(n,e),n.prototype.checkElement=function(){var e=this.element;return!(e.readyState>=1||(e.error?(this.onAlreadyError(e),1):(this.addEvents(),0)))},n.EVENTS=["loadedmetadata","error"],n}(Qe);const on=function(e){function n(n){return void 0===n&&(n={}),e.call(this,je({loaders:{img:tn,video:rn}},n))||this}return Se(n,e),n}(nn);var an=function(e,n){return(an=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)};function sn(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}an(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var un=function(){return(un=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};function ln(e,n,t,i){return new(t||(t=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((i=i.apply(e,n||[])).next())}))}function cn(e,n){var t,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],i=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function hn(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function fn(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var i,r,o=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return a}function dn(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(fn(arguments[n]));return e}var pn,gn=function(e,n){return e+"("+typeof e+") is not a "+n.map((function(e){return'"'+e+'"'})).join(" or ")+"."},vn='This module is not attached to the Flicking instance. "init()" should be called first.',_n=function(e,n){return'Option "'+e+'" is not in correct format, given: '+n},mn=function(e,n,t){return'Index "'+e+'" is out of range: should be between '+n+" and "+t+"."},bn=function(e){return'Position "'+e+'" is not reachable.'},yn="This behavior is not allowed in the frameworks like React, Vue, or Angular.",Pn={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"},En="prev",xn="center",On="next",wn={PREV:"PREV",NEXT:"NEXT",NONE:null},kn={SNAP:"snap",FREE_SCROLL:"freeScroll",STRICT:"strict"},Rn="rtl",Tn=function(e,n,t){return Math.max(Math.min(e,t),n)},Cn=function(e){if(!e)throw new Kn(vn,3);return e},An=function(e){return[].slice.call(e)},In=function(e,n){var t;if(Fn(e))switch(e){case En:t=0;break;case xn:t=.5*n;break;case On:t=n;break;default:if(null==(t=Dn(e,n)))throw new Kn(_n("align",e),4)}else t=e;return t},Dn=function(e,n){var t=Mn(e);return null==t?null:t.percentage*n+t.absolute},Mn=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},i=0,r=n.exec(e);null!=r;){var o=r[1],a=r[2],s=r[3],u=parseFloat(a);if(i<=0&&(o=o||"+"),!o)return null;var l="+"===o?1:-1;"%"===s?t.percentage+=l*(u/100):t.absolute+=l*u,++i,r=n.exec(e)}return 0===i?null:t},Sn=function(e){return"object"==typeof e?e.panel:e},jn=function(e,n){return e===n?wn.NONE:e<n?wn.NEXT:wn.PREV},zn=function(e){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){if(Fn(e)){var t=document.createElement("div");for(t.innerHTML=e,n.push.apply(n,dn(An(t.children)));t.firstChild;)t.removeChild(t.firstChild)}else{if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new Kn(gn(e,["HTMLElement","string"]),0);n.push(e)}})),n},Nn=function(e,n){return Tn(e<0?e+n:e,0,n)},Ln=function(e,n){var t,i;try{for(var r=hn(e),o=r.next();!o.done;o=r.next())if(o.value===n)return!0}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}return!1},Fn=function(e){return"string"==typeof e},Vn=function(e,n,t){var i=t-n;return e<n?e=t-(n-e)%i:e>t&&(e=n+(e-t)%i),e},Hn=function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t;return-1},Bn=function(e,n,t){return(e-n)/(t-n)},Xn=function(e){return window.getComputedStyle(e)||e.currentStyle},Gn=function(e,n){var t=n.width,i=n.height;
2null!=t&&(Fn(t)?e.style.width=t:e.style.width=t+"px"),null!=i&&(Fn(i)?e.style.height=i:e.style.height=i+"px")},Yn=function(e,n,t){return e>=n&&e<=t},Wn=function(e,n){return e>=n?e%n:e<0?Nn((e+1)%n-1,n):e},qn=function(e){for(var n=new Array(e),t=0;t<e;t++)n[t]=t;return n},Un=function(e){var n=e.el,t=e.horizontal,i=e.useFractionalSize,r=e.useOffset,o=e.style,a=0;if(i){var s=parseFloat(t?o.width:o.height)||0,u="border-box"===o.boxSizing,l=t?parseFloat(o.borderLeftWidth||"0")+parseFloat(o.borderRightWidth||"0"):parseFloat(o.borderTopWidth||"0")+parseFloat(o.borderBottomWidth||"0");if(u)a=r?s:s-l;else{var c=t?parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"):parseFloat(o.paddingTop||"0")+parseFloat(o.paddingBottom||"0");a=r?s+c+l:s+c}}else{var h=t?"Width":"Height";a=r?n["offset"+h]:n["client"+h]}return Math.max(a,0)},$n=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Kn=function(e){function n(t,i){var r=e.call(this,t)||this;return $n(r,n.prototype),r.name="FlickingError",r.code=i,r}return sn(n,e),n}(Error),Zn=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,i=this._el,r=this._padding,o=this._isBorderBoxSizing;if(null!=n)if(Fn(n))i.style.width=n;else{var a=o?n+r.left+r.right:n;i.style.width=a+"px"}if(null!=t)if(Fn(t))i.style.height=t;else{var s=o?t+r.top+r.bottom:t;i.style.height=s+"px"}this.resize()},n.resize=function(){var e=this._el,n=Xn(e),t=this._flicking.useFractionalSize;this._width=Un({el:e,horizontal:!0,useFractionalSize:t,useOffset:!1,style:n}),this._height=Un({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}(),Jn=function(){function e(e){var n,t=this;this._onResize=function(){var e=t._flicking,n=e.resizeDebounce,i=e.maxResizeDebounce;n<=0?e.resize():(t._maxResizeDebounceTimer<=0&&i>0&&i>=n&&(t._maxResizeDebounceTimer=window.setTimeout(t._doScheduledResize,i)),t._resizeTimer>0&&(clearTimeout(t._resizeTimer),t._resizeTimer=0),t._resizeTimer=window.setTimeout(t._doScheduledResize,n))},this._doScheduledResize=function(){clearTimeout(t._resizeTimer),clearTimeout(t._maxResizeDebounceTimer),t._maxResizeDebounceTimer=-1,t._resizeTimer=-1,t._flicking.resize()},this._skipFirstResize=(n=!0,function(){n?n=!1:t._onResize()}),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);t.observe(e.viewport.element),this._resizeObserver=t}else window.addEventListener("resize",this._onResize);return this._enabled=!0,this},n.disable=function(){if(!this._enabled)return this;var e=this._resizeObserver;return e?(e.disconnect(),this._resizeObserver=null):window.removeEventListener("resize",this._onResize),this._enabled=!1,this},e}(),Qn=function(){function e(e){this._element=e,this._rendered=!0}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._element}
2,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}(),et=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}(),nt=function(){function e(e,n){var t,i,r,o;this._flicking=e,this._renderPanel=null!==(t=null==n?void 0:n.renderPanel)&&void 0!==t?t:function(){return""},this._initialPanelCount=null!==(i=null==n?void 0:n.initialPanelCount)&&void 0!==i?i:-1,this._cache=null!==(r=null==n?void 0:n.cache)&&void 0!==r&&r,this._panelClass=null!==(o=null==n?void 0:n.panelClass)&&void 0!==o?o:"flicking-panel",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:qn(n),hasDOMInElements:!1})},n.remove=function(e,n){return n<=0?[]:this._flicking.renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!1})},n._initVirtualElements=function(){var e=this,n=this._flicking,t=n.camera.element,i=n.panelsPerView,r=document.createDocumentFragment();qn(i+1).map((function(n){var t=document.createElement("div");return t.className=e._panelClass,t.dataset.elementIndex=n.toString(),t})).forEach((function(e){r.appendChild(e)})),t.appendChild(r)},e}(),tt={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},it="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"}(pn||(pn={}));var rt=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,i=e.transitTo,r=t.delta.flick;if(r){this._delta+=r;var o=n.camera,a=o.position,u=t.pos.flick,l=n.circularEnabled?Vn(u,o.range.min,o.range.max):u;o.lookAt(l);var c=new s(Pn.MOVE,{isTrusted:t.isTrusted,holding:this.holding,direction:jn(0,t.delta.flick),axesEvent:t});n.trigger(c),c.isCanceled()&&(o.lookAt(a),i(pn.DISABLED))}},e}(),ot=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!1,n}sn(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,i=e.transitTo;if(n.renderer.panelCount<=0)i(pn.DISABLED);else{var r=new s(Pn.HOLD_START,{axesEvent:t});n.trigger(r),r.isCanceled()?i(pn.DISABLED):i(pn.HOLDING)}},t.onChange=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,r=n.control.controller.animatingContext,o=new s(Pn.MOVE_START,{isTrusted:t.isTrusted,holding:this.holding,direction:jn(r.start,r.end),axesEvent:t});n.trigger(o),o.isCanceled()?i(pn.DISABLED):i(pn.ANIMATING).onChange(e)},n}(rt),at=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!0,n.animating=!1,n._releaseEvent=null,n}sn(n,e);var t=n.prototype;return t.onChange=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,r=t.inputEvent,o=n.horizontal?r.offsetX:r.offsetY,a=new s(Pn.MOVE_START,{isTrusted:t.isTrusted,holding:this.holding,direction:jn(0,-o),axesEvent:t});n.trigger(a),a.isCanceled()?i(pn.DISABLED):i(pn.DRAGGING).onChange(e)},t.onRelease=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo;if(n.trigger(new s(Pn.HOLD_END,{axesEvent:t})),0!==t.delta.flick)return t.setTo({flick:n.camera.position},0),void i(pn.IDLE);this._releaseEvent=t},t.onFinish=function(e){var n,t,i=e.flicking;if((0,e.transitTo)(pn.IDLE),this._releaseEvent){var r,o=this._releaseEvent.inputEvent.
2srcEvent;if("touchend"===o.type){var a=o.changedTouches[0];r=document.elementFromPoint(a.clientX,a.clientY)}else r=o.target;var u=i.renderer.panels,l=null;try{for(var c=hn(u),h=c.next();!h.done;h=c.next()){var f=h.value;if(f.contains(r)){l=f;break}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(t=c.return)&&t.call(c)}finally{if(n)throw n.error}}if(l){var d=i.camera.position,p=l.position;i.trigger(new s(Pn.SELECT,{index:l.index,panel:l,direction:jn(d,p)}))}}},n}(rt),st=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!0,n.animating=!0,n}sn(n,e);var t=n.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var n,t=e.flicking,i=e.axesEvent,r=e.transitTo;if(t.trigger(new s(Pn.HOLD_END,{axesEvent:i})),t.renderer.panelCount<=0)r(pn.IDLE);else{r(pn.ANIMATING);var o=t.control,a=i.destPos.flick,u=Math.max(i.duration,t.duration);try{o.moveToPosition(a,u,i)}catch(e){r(pn.IDLE),i.setTo(((n={}).flick=t.camera.position,n),0)}}},n}(rt),ut=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!0,n}sn(n,e);var t=n.prototype;return t.onHold=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,r=this._targetPanel,o=n.control;this._delta=0,n.control.updateInput(),n.changeOnHold&&r&&o.setActive(r,o.activePanel,t.isTrusted);var a=new s(Pn.HOLD_START,{axesEvent:t});n.trigger(a),a.isCanceled()?i(pn.DISABLED):i(pn.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,r=n.control,o=r.controller.animatingContext;i(pn.IDLE),n.trigger(new s(Pn.MOVE_END,{isTrusted:t.isTrusted,direction:jn(o.start,o.end),axesEvent:t}));var a=this._targetPanel;a&&r.setActive(a,r.activePanel,t.isTrusted)},n}(rt),lt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!0,n}sn(n,e);var t=n.prototype;return t.onAnimationEnd=function(e){(0,e.transitTo)(pn.IDLE)},t.onChange=function(e){var n=e.axesEvent,t=e.transitTo;n.stop(),t(pn.IDLE)},t.onRelease=function(e){var n=e.axesEvent,t=e.transitTo;0===n.delta.flick&&t(pn.IDLE)},n}(rt),ct=function(){function e(){var e=this;this.transitTo=function(n){var t;switch(n){case pn.IDLE:t=new ot;break;case pn.HOLDING:t=new at;break;case pn.DRAGGING:t=new st;break;case pn.ANIMATING:t=new ut;break;case pn.DISABLED:t=new lt}return t.onEnter(e._state),e._state=t,e._state},this._state=new ot}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,i=un(un({},n),{transitTo:this.transitTo});switch(e){case tt.HOLD:t.onHold(i);break;case tt.CHANGE:t.onChange(i);break;case tt.RELEASE:t.onRelease(i);break;case tt.ANIMATION_END:t.onAnimationEnd(i);break;case tt.FINISH:t.onFinish(i)}},e}(),ht=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 ct}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.flick;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}
2,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([it]).flick)&&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.flick.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.flick.bounce},enumerable:!1,configurable:!0}),n.init=function(e){var n,t=this;this._flicking=e,this._axes=new De(((n={}).flick={range:[0,0],circular:!1,bounce:[0,0]},n),{deceleration:e.deceleration,interruptable:e.interruptable,nested:e.nested,easing:e.easing}),this._panInput=new Ie(e.viewport.element,{inputType:e.inputType,threshold:1,iOSEdgeSwipeThreshold:e.iOSEdgeSwipeThreshold,preventDefaultOnDrag:e.preventDefaultOnDrag,scale:e.horizontal?[e.camera.panelOrder===Rn?1:-1,0]:[0,-1],releaseOnScroll:!0});var i=this._axes;i.connect(e.horizontal?[it,""]:["",it],this._panInput);var r=function(n){var r=tt[n];i.on(r,(function(n){t._stateMachine.fire(r,{flicking:e,axesEvent:n})}))};for(var o in tt)r(o);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,i;return this._animatingContext=un(un({},this._animatingContext),{end:e}),null===(i=this._axes)||void 0===i||i.updateAnimation({destPos:(t={},t.flick=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=Cn(this._flicking),i=t.camera,r=this._axes,o=r.axis.flick;return o.circular=[e.circular,e.circular],o.range=[e.range.min,e.range.max],o.bounce=function(e,n){var t;if(Array.isArray(e))t=e.map((function(e){return Dn(e,n)}));else{var i=Dn(e,n);t=[i,i]}return t.map((function(n){if(null==n)throw new Kn(_n("bounce",e),4);return n}))}(t.bounce,i.size),r.axisManager.set(((n={}).flick=e.position,n)),this},n.addPreventClickHandler=function(){var e=Cn(this._flicking),n=this._axes,t=e.camera.element;return n.on(tt.HOLD,this._onAxesHold),n.on(tt.CHANGE,this._onAxesChange),t.addEventListener("click",this._preventClickWhenDragged,!0),this},n.removePreventClickHandler=function(){var e=Cn(this._flicking),n=this._axes,t=e.camera.element;return n.off(tt.HOLD,this._onAxesHold),n.off(tt.CHANGE,this._onAxesChange),t.removeEventListener("click",this._preventClickWhenDragged,!0),this},n.animateTo=function(e,n,t){var i,r=this,o=this._axes,a=this._stateMachine.state;if(!o)return Promise.reject(new Kn(vn,3));var s=o.get([it]).flick;if(s===e){var u=Cn(this._flicking);return u.camera.lookAt(e),a.targetPanel&&u.control.setActive(a.targetPanel,u.control.activePanel,null!==(i=null==t?void 0:t.isTrusted)&&void 0!==i&&i),Promise.resolve()}return this._animatingContext={start:s,end:e,offset:0},new Promise((function(i,a){var s=function(){o.off(tt.HOLD,u),i()},u=function(){o.off(tt.FINISH,s),a(new Kn("Animation is interrupted by user input.",9))};o.once(tt.FINISH,s),o.once(tt.HOLD,u),function(){var i,a;o.once(tt.FINISH,(function(){r._animatingContext={start:0,end:0,offset:0}})),t?t.setTo(((i={}).flick=e,i),n):o.setTo(((a={}).flick=e,a),n)}()}))},n.updateDirection=function(){var e=Cn(this._flicking),n=this._axes,t=this._panInput;n.disconnect(t),n.connect(e.horizontal?[it,""]:["",it],t),t.options.scale=e.horizontal?[e.camera.panelOrder===Rn?1:-1,0]:[0,-1]},n._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},e}(),ft=function(){function e(){this._flicking=null,this._controller=new ht,this._activePanel=null}var n=e.prototype;return Object.defineProperty(n,"controller",{get:function(){return this._controller}
2,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 i=this._controller.state,r=this._getPosition(e,null!=t?t:wn.NONE);return i.targetPanel=e,this._controller.updateAnimation(r,n),this},n.stopAnimation=function(){return this._controller.state.targetPanel=null,this._controller.stopAnimation(),this},n.updatePosition=function(e){var n=Cn(this._flicking).camera,t=this._activePanel;t&&n.lookAt(n.clampToReachablePosition(t.position))},n.updateInput=function(){var e=Cn(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,i=n.direction,r=void 0===i?wn.NONE:i,o=n.axesEvent;return ln(this,void 0,void 0,(function(){var n;return cn(this,(function(i){return n=this._getPosition(e,r),this._triggerIndexChangeEvent(e,e.position,o),[2,this._animateToPosition({position:n,duration:t,newActivePanel:e,axesEvent:o})]}))}))},n.setActive=function(e,n,t){var i,r=Cn(this._flicking);this._activePanel=e,this._nextPanel=null,r.camera.updateAdaptiveHeight(),e!==n?r.trigger(new s(Pn.CHANGED,{index:e.index,panel:e,prevIndex:null!==(i=null==n?void 0:n.index)&&void 0!==i?i:-1,prevPanel:n,isTrusted:t,direction:n?jn(n.position,e.position):wn.NONE})):r.trigger(new s(Pn.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){var i,r=Cn(this._flicking),o=e!==this._activePanel?Pn.WILL_CHANGE:Pn.WILL_RESTORE,a=r.camera,u=this._activePanel,l=new s(o,{index:e.index,panel:e,isTrusted:(null==t?void 0:t.isTrusted)||!1,direction:jn(null!==(i=null==u?void 0:u.position)&&void 0!==i?i:a.position,n)});if(this._nextPanel=e,r.trigger(l),l.isCanceled())throw new Kn("Event stop() is called by user.",8)},n._animateToPosition=function(e){var n=e.position,t=e.duration,i=e.newActivePanel,r=e.axesEvent;return ln(this,void 0,void 0,(function(){var e,o,a=this;return cn(this,(function(s){return e=Cn(this._flicking),o=function(){return a._controller.animateTo(n,t,r)},this._controller.state.targetPanel=i,t<=0?[2,o()]:[2,o().then((function(){return ln(a,void 0,void 0,(function(){return cn(this,(function(n){switch(n.label){case 0:return[4,e.renderer.render()];case 1:return n.sent(),[2]}}))}))})).catch((function(e){if(!(r&&e instanceof Kn&&9===e.code))throw e}))]}))}))},n._getPosition=function(e,n){void 0===n&&(n=wn.NONE);var t=Cn(this._flicking),i=t.camera,r=e.position,o=i.findNearestAnchor(r);if(e.removed||!o)throw new Kn(bn(e.position),6);if(i.canReach(e)){if(t.circularEnabled){var a=this._controller.position,s=i.rangeDiff,u=[r,r+s,r-s].filter((function(e){return n===wn.NONE||(n===wn.PREV?e<=a:e>=a)}));r=u.reduce((function(e,n){return Math.abs(a-n)<Math.abs(a-e)?n:e}),1/0)}}else r=o.position,e=o.panel;return r},e}(),dt=function(){function e(e){var n=e.index,t=e.position,i=e.panel;this._index=n,this._pos=t,this._panel=i}var n=e.prototype;return Object.defineProperty(n,"index",{get:function(){return this._index},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}
2,enumerable:!1,configurable:!0}),e}(),pt=function(e){function n(n){var t=(void 0===n?{}:n).count,i=void 0===t?1/0:t,r=e.call(this)||this;return r._count=i,r}sn(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 i=Cn(this._flicking),r=i.camera,o=r.findActiveAnchor(),a=r.findNearestAnchor(r.position),s=this._controller.state;if(!o||!a)return Promise.reject(new Kn(bn(e),6));var u,l=this._calcSnapThreshold(e,o),c=i.animating?s.delta:e-r.position,h=Math.abs(c),f=t&&0!==t.delta.flick?Math.abs(t.delta.flick):h;if(f>=l&&f>0)u=this._findSnappedAnchor(e,a);else{if(!(h>=i.threshold&&h>0))return this.moveToPanel(a.panel,{duration:n,axesEvent:t});u=this._findAdjacentAnchor(e,c,a)}return this._triggerIndexChangeEvent(u.panel,e,t),this._animateToPosition({position:r.clampToReachablePosition(u.position),duration:n,newActivePanel:u.panel,axesEvent:t})},t._findSnappedAnchor=function(e,n){var t=Cn(this._flicking),i=t.camera,r=this._count,o=i.position,a=i.clampToReachablePosition(e),s=i.findAnchorIncludePosition(a);if(!n||!s)throw new Kn(bn(e),6);if(!isFinite(r))return s;var u=t.panelCount,l=i.anchorPoints,c=Math.sign(e-o)*Math.floor(Math.abs(e-o)/i.rangeDiff);e>o&&s.index<n.index||s.position>n.position&&s.index===n.index?c+=1:(e<o&&s.index>n.index||s.position<n.position&&s.index===n.index)&&(c-=1);var h=c*u,f=s.index+h;if(Math.abs(f-n.index)<=r){var d=l[s.index];return new dt({index:d.index,position:d.position+c*i.rangeDiff,panel:d.panel})}if(t.circularEnabled){var p=l[Wn(n.index+Math.sign(e-o)*r,u)],g=Math.floor(r/u);return e>o&&p.index<n.index?g+=1:e<o&&p.index>n.index&&(g-=1),new dt({index:p.index,position:p.position+g*i.rangeDiff,panel:p.panel})}return l[Tn(n.index+Math.sign(e-o)*r,0,l.length-1)]},t._findAdjacentAnchor=function(e,n,t){var i,r=Cn(this._flicking).camera;if(r.circularEnabled){var o=r.findAnchorIncludePosition(e);if(o&&o.position!==t.position)return o}return null!==(i=n>0?r.getNextAnchor(t):r.getPrevAnchor(t))&&void 0!==i?i:t},t._calcSnapThreshold=function(e,n){var t=e>n.position,i=n.panel,r=i.size,o=i.alignPosition;return t?r-o+i.margin.next:o+i.margin.prev},n}(ft),gt=function(e){function n(n){var t=(void 0===n?{}:n).stopAtEdge,i=void 0===t||t,r=e.call(this)||this;return r._stopAtEdge=i,r}sn(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=Cn(this._flicking).camera,t=this._activePanel;if(t){var i=t.range,r=i.min+(i.max-i.min)*e;n.lookAt(n.clampToReachablePosition(r))}},t.moveToPosition=function(e,n,t){var i=Cn(this._flicking).camera,r=i.clampToReachablePosition(e),o=i.findAnchorIncludePosition(r);if(!o)return Promise.reject(new Kn(bn(e),6));var a=o.panel;return a!==this._activePanel&&this._triggerIndexChangeEvent(a,e,t),this._animateToPosition({position:this._stopAtEdge?r:e,duration:n,newActivePanel:a,axesEvent:t})},n}(ft),vt=function(e){function n(n){var t=(void 0===n?{}:n).count,i=void 0===t?1:t,r=e.call(this)||this;return r.setActive=function(n,t,i){e.prototype.setActive.call(r,n,t,i),r.updateInput()},r._count=i,r._resetIndexRange(),r}sn(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=Cn(this._flicking),t=n.camera,i=n.renderer,r=this._controller,o=t.controlParams,a=this._count,s=r.state.animating?null===(e=t.findNearestAnchor(t.position))||void 0===e?void 0:e.panel:this._activePanel;if(!s)return r.update(o),this._resetIndexRange(),this;var u=o.range,l=s.position,c=s.index,h=i.panelCount,f=c-a,d=c+a;f<0&&(f=n.circularEnabled?Nn((f+1)%h-1,h):Tn(f,0,h-1)),d>=h&&(d=n.circularEnabled?d%h:Tn(d,0,h-1));var p=i.panels[f],g=i.panels[d],v=Math.max(p.position,u.min),_=Math.min(g.position,u.max);return v>l&&(v-=t.rangeDiff),_<l&&(_+=t.rangeDiff),o.range={min:v,max:_},o.circular&&(o.position<v&&(o.position+=t.rangeDiff),o.position>_&&(o.position-=t.rangeDiff)),o.circular=!1,r.update(o),this._indexRange={min:p.index,max:g.index},this},t.moveToPanel=function(n,t){return ln(this,void 0,void 0,(function(){var i,r;return cn(this,(function(o){return i=Cn(this._flicking),r=i.camera,this._controller.update(r.controlParams),[2,e.prototype.moveToPanel.call(this,n,t)]}))}))},t.moveToPosition=function(e,n,t){var i,r=Cn(this._flicking),o=r.camera,a=null!==(i=this._nextPanel)&&void 0!==i?i:this._activePanel,s=this._controller.range,u=this._indexRange,l=o.range,c=this._controller.state,h=Tn(o.clampToReachablePosition(e),s[0],s[1]),f=o.findAnchorIncludePosition(h);if(!f||!a)return Promise.reject(new Kn(bn(e),6));var d,p,g=a.position,v=r.animating?c.delta:e-o.position,_=Math.abs(v)>=r.threshold,m=e>g?o.getNextAnchor(f):o.getPrevAnchor(f),b=o.anchorPoints,y=b[0],P=b[b.length-1],E=e<=l.min&&Yn(y.panel.index,u.min,u.max),x=e>=l.max&&Yn(P.panel.index,u.min,u.max),O=m&&(u.min<=u.max?Yn(m.index,u.min,u.max):m.index>
2=u.min||m.index<=u.max);if(E||x){var w=e<l.min?y:P;p=w.panel,d=w.position}else if(_&&f.position!==a.position)p=f.panel,d=f.position;else{if(!_||!O){var k=o.findNearestAnchor(o.position);return k?this.moveToPanel(k.panel,{duration:n,axesEvent:t}):Promise.reject(new Kn(bn(e),6))}p=m.panel,d=m.position}return this._triggerIndexChangeEvent(p,e,t),this._animateToPosition({position:d,duration:n,newActivePanel:p,axesEvent:t})},t._resetIndexRange=function(){this._indexRange={min:0,max:0}},n}(ft),_t=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 dt({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,i=0;i<n.length;i++){var r=n[i],o=Math.abs(r.position-e);if(o>t)return n[i-1];t=o}return n[n.length-1]},n.clampToReachablePosition=function(e){var n=this._flicking.camera.range;return Tn(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}(),mt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}sn(n,e);var t=n.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,n,t=this._flicking.renderer,i=t.getPanel(0),r=t.getPanel(t.panelCount-1);return{min:null!==(e=null==i?void 0:i.position)&&void 0!==e?e:0,max:null!==(n=null==r?void 0:r.position)&&void 0!==n?n:0}},n}(_t),bt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}sn(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],i=n[n.length-1],r=t.range.min-t.margin.prev,o=i.range.max+i.margin.next,a=e.camera.size,s=o-r;return n.every((function(e){return s-e.size>=a}))},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 dt({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 i=n.range,r=1/0,o=-1,a=0;a<t.length;a++){var s=t[a],u=Math.min(Math.abs(s.position-e),Math.abs(s.position-i.min+i.max-e),Math.abs(e-i.min+i.max-s.position));u<r&&(r=u,o=a)}return t[o]},t.findAnchorIncludePosition=function(n){var t=this._flicking.camera,i=t.range,r=t.anchorPoints,o=t.rangeDiff,a=r.length,s=Vn(n,i.min,i.max),u=e.prototype.findAnchorIncludePosition.call(this,s);if(a>0&&(n===i.min||n===i.max)){var l=[u,new dt({index:0,position:r[0].position+o,panel:r[0].panel}),new dt({index:a-1,position:r[a-1].position-o,panel:r[a-1].panel})].filter((function(e){return!!e}));u=l.reduce((function(e,t){return e&&Math.abs(e.position-n)<Math.abs(t.position-n)?e:t}),null)}if(!u)return null;if(n<i.min){var c=-Math.floor((i.min-n)/o)-1;return new dt({index:u.index,position:u.position+o*c,panel:u.panel})}return n>i.max?(c=Math.floor((n-i.max)/o)+1,new dt({index:u.index,position:u.position+o*c,panel:u.panel})):u},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===wn.PREV})),i=n.filter((function(e){return e.toggleDirection===wn.NEXT}));return this._calcPanelAreaSum(t)-this._calcPanelAreaSum(i)},t.clampToReachablePosition=function(e){return e},t.canReach=function(e){return!e.removed},t.canSee=function(n){var t=this._flicking.camera,i=t.range,r=t.rangeDiff,o=t.visibleRange,a=e.prototype.canSee.call(this,n);return o.min<i.min?a||n.isVisibleOnRange(o.min+r,o.max+r):o.max>i.max?a||n.isVisibleOnRange(o.min-r,o.max-r):a},t._calcPanelAreaSum=function(e){return e.reduce((function(e,n){return e+n.sizeIncludingMargin}),0)},n}(_t),yt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}sn(n,e);var t=n.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,t=n.getPanel(0),i=n.getPanel(n.panelCount-1);if(!t||!i)return!1;var r=e.camera.size,o=t.range.min;return r<i.range.max-o},t.getRange=function(){var e=this._flicking,n=e.renderer,t=e.camera.alignPosition,i=n.getPanel(0),r=n.getPanel(n.panelCount-1);if(!i||!r)return{min:0,max:0};var o=e.camera.size,a=i.range.min,s=r.range.max,u=a+t,l=s-o+t;if(o<s-a)return{min:u,max:l};var c=e.camera.align,h="object"==typeof c?c.camera:c,f=u+In(h,l-u);return{min:f,max:f}},t.getAnchors=function(){var e=this._flicking,n=e.camera,t=e.renderer.panels;if(t.length<=0)return[];var i=e.camera.range,r=t.filter((function(e){return n.canReach(e)}));if(r.length>0){var o=r[0].position!==i.min,a=r[r.length-1].position!==i.max,s=o?1:0,u=r.map((function(e,n){return new dt({index:n+s,position:e.position,panel:e})}));return o&&u.splice(0,0,new dt({index:0,position:i.min,panel:t[r[0].index-1]})),a&&u.push(new dt({index:u.length,position:i.max,panel:t[r[r.length-1].index+1]})),u}if(i.min!==i.max){var l=this._findNearestPanel(i.min,t),c=l.index===t.length-1?l.prev():l,h=c.next();return[new dt({index:0,position:i.min,panel:c}),new dt({index:1,position:i.max,panel:h})]}return[new dt({index:0,position:i.min,panel:this._findNearestPanel(i.min,t)})]},t.findAnchorIncludePosition=function(n){var t=this._flicking.camera,i=t.range,r=t.anchorPoints;return r.length<=0?null:n<=i.min?r[0]:n>=i.max?r[r.length-1]:e.prototype.findAnchorIncludePosition.call(this,n)},t._findNearestPanel=function(e,n){for(var t=1/0,i=0;i<n.length;i++){var r=n[i],o=Math.abs(r.position-e);if(o>t)return n[i-1];t=o}return n[n.length-1]},n}(_t),Pt=function(){function e(e,n){var t=this,i=(void 0===n?{}:n).align,r=void 0===i?xn:i;this._checkTranslateSupport=function(){var e,n,i=document.documentElement.style,r="";try{for(var o=hn(["webkitTransform","msTransform","MozTransform","OTransform","transform"]),a=o.next();!a.done;a=o.next()){var s=a.value;s in i&&(r=s)}}catch(n){e={error:n}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}if(!r)throw new Kn("Browser does not support CSS transform.",7);t._transform=r},this._flicking=e,this._resetInternalValues(),this._align=r}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._el}
2,enumerable:!1,configurable:!0}),Object.defineProperty(n,"children",{get:function(){return An(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 i=t.panel,r=i.position+i.offset,o=e.control.controller.bounce,a=this.range,s=a.min,u=a.max,l=this.rangeDiff;if(n===r)return i.index;if(n<r){var c=i.prev(),h=c?c.position+c.offset:s-o[0];return h>r&&(h-=l),i.index-1+Bn(n,h,r)}var f=i.next(),d=f?f.position+f.offset:u+o[1];return d<r&&(d+=l),i.index+Bn(n,r,d)},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 Kn("First element child of the viewport element"+" should be provided. Given: "+e,2)}(e.firstElementChild),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=Cn(this._flicking),i=this._position;this._position=e;var r=this._togglePanels(i,e);this._refreshVisiblePanels(),this._checkNeedPanel(),this._checkReachEnd(i,e),r?t.renderer.render().then((function(){n.updateOffset()})):this.applyTransform()},n.getPrevAnchor=function(e){if(this._circularEnabled&&0===e.index){var n=this._anchors,t=this.rangeDiff,i=n[n.length-1];return new dt({index:i.index,position:i.position-t,panel:i.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,i=n[0];return new dt({index:i.index,position:i.position+t,panel:i.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=Cn(this._flicking).control.activeIndex;return function(n,t){var i,r;try{for(var o=hn(n),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.panel.index===e)return s}}catch(e){i={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return null}(this._anchors)},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=Cn(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=In(n,this.size),this},n.updateAnchors=function(){return this._anchors=this._mode.getAnchors(),this},n.updateAdaptiveHeight=function(){var e=Cn(this._flicking),n=e.control.activePanel;e.horizontal&&e.adaptive&&n&&e.viewport.setSize({height:n.height})},n.updateOffset=function(){var e=Cn(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=Cn(this._flicking);if(!e.horizontal)return this;var n=this._el,t=Xn(n).direction;return t!==this._panelOrder&&(this._panelOrder=t===Rn?Rn:"ltr",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=Cn(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===Rn?t:-t)+"px)":"translate(0, "+-t+"px)",this},n._resetInternalValues=function(){this._position=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=Cn(this._flicking),t=n.renderer.panels.filter((function(n){return e.canSee(n)})),i=this._visiblePanels;this._visiblePanels=t;var r=t.filter((function(e){return!Ln(i,e)})),o=i.filter((function(e){return!Ln(t,e)}));(r.length>0||o.length>0)&&n.renderer.render().then((function(){n.trigger(new s(Pn.VISIBLE_CHANGE,{added:r,removed:o,visiblePanels:t}))}))},n._checkNeedPanel=function(){var e=this._needPanelTriggered;if(!e.prev||!e.next){var n=Cn(this._flicking),t=n.renderer.panels;if(t.length<=0)return e.prev||(n.trigger(new s(Pn.NEED_PANEL,{direction:wn.PREV})),e.prev=!0),void(e.next||(n.trigger(new s(Pn.NEED_PANEL,{direction:wn.NEXT})),e.next=!0));var i=this._position,r=this.size,o=this._range,a=n.needPanelThreshold,u=i-this._alignPos,l=u+r,c=t[0],h=t[t.length-1];e.prev||(u<=c.range.min+a||i<=o.min+a)&&(n.trigger(new s(Pn.NEED_PANEL,{direction:wn.PREV})),e.prev=!0),e.next||(l>=h.range.max-a||i>=o.max-a)&&(n.trigger(new s(Pn.NEED_PANEL,{direction:wn.NEXT})),e.next=!0)}},n._checkReachEnd=function(e,n){var t=Cn(this._flicking),i=this._range,r=e>i.min&&e<i.max,o=n>i.min&&n<i.max;if(r&&!o){var a=n<=i.min?wn.PREV:wn.NEXT;t.trigger(new s(Pn.REACH_EDGE,{direction:a}))}},n._updateMode=function(){var e=Cn(this._flicking);if(e.circular){var n=new bt(e),t=n.checkAvailability();if(t)this._mode=n;else{var i=e.circularFallback;this._mode="bound"===i?new yt(e):new mt(e)}this._circularEnabled=t}else this._mode=e.bound?new yt(e):new mt(e),this._circularEnabled=!1},n._togglePanels=function(e,n){return n!==e&&Cn(this._flicking).renderer.panels.map((function(t){return t.toggle(e,n)})).some((function(e){return e}))},e}(),Et=function(){function e(e){var n=e.align,t=void 0===n?xn:n,i=e.strategy;this._flicking=null,this._panels=[],this._rendering=!1,this._align=t,this._strategy=i}var n=e.prototype;return Object.defineProperty(n,"panels",{get:function(){return this._panels}
2,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=Sn(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.updatePanelSize=function(){var e=Cn(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,dn(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 i=this._panels,r=Cn(this._flicking),o=i[0],a=Sn(this._align),s=n.reduce((function(n,t){var s,u=Nn(t.index,i.length),l=i.slice(u),c=t.elements.map((function(n,t){return e._createPanel(n,{index:u+t,align:a,flicking:r})}));if(i.splice.apply(i,dn([u,0],c)),t.hasDOMInElements&&e._insertPanelElements(c,null!==(s=l[0])&&void 0!==s?s:null),r.panelsPerView>0){var h=o||c[0].resize();e._updatePanelSizeByGrid(h,c)}else c.forEach((function(e){return e.resize()}));return l.forEach((function(e){e.increaseIndex(c.length),e.updatePosition()})),dn(n,c)}),[]);return s},n.batchRemove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=this.batchRemoveDefer.apply(this,dn(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 i=this._panels,r=Cn(this._flicking),o=r.control,a=o.activePanel,s=n.reduce((function(n,t){var r=t.index,s=t.deleteCount,u=Nn(r,i.length),l=i.slice(u+s),c=i.splice(u,s);return c.length<=0?[]:(l.forEach((function(e){e.decreaseIndex(c.length),e.updatePosition()})),t.hasDOMInElements&&e._removePanelElements(c),c.forEach((function(e){return e.destroy()})),Ln(c,a)&&o.resetActive(),dn(n,c))}),[]);return s},n.updateAfterPanelChange=function(e,n){var t,i=Cn(this._flicking),r=i.camera,o=i.control,a=this._panels,u=o.activePanel;if(this._updateCameraAndControl(),this.render(),!i.animating)if(!u||u.removed)if(a.length<=0)r.lookAt(0);else{var l=null!==(t=null==u?void 0:u.index)&&void 0!==t?t:0;l>a.length-1&&(l=a.length-1),o.moveToPanel(a[l],{duration:0}).catch((function(){}))}else o.moveToPanel(u,{duration:0}).catch((function(){}));i.camera.updateOffset(),(e.length>0||n.length>0)&&(i.trigger(new s(Pn.PANEL_CHANGE,{added:e,removed:n})),this.checkPanelContentsReady(dn(e,n)))},n.checkPanelContentsReady=function(e){var n=this,t=Cn(this._flicking),i=t.resizeOnContentsReady,r=this._panels;if(i&&!t.virtualEnabled&&!((e=e.filter((function(e){return function(e){return e.element&&!!e.element.querySelector("img, video")}(e)}))).length<=0)){var o=new on;e.forEach((function(e){e.loading=!0})),o.on("readyElement",(function(i){if(n._flicking){var a=e[i.index],s=t.camera,u=t.control,l=u.activePanel?s.getProgressInPanel(u.activePanel):0;a.loading=!1,a.resize(),r.slice(a.index+1).forEach((function(e){return e.updatePosition()})),t.initialized&&(s.updateRange(),s.updateOffset(),s.updateAnchors(),u.animating||(u.updatePosition(l),u.updateInput()))}else o.destroy()})),o.on("preReady",(function(e){n._flicking&&n.render(),e.readyCount===e.totalCount&&o.destroy()})),o.on("ready",(function(){n._flicking&&n.render(),o.destroy()})),o.check(e.map((function(e){return e.element})))}},n._updateCameraAndControl=function(){var e=Cn(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}),{});
2n.forEach((function(n){n.index in t||n.loading?n.markForShow():e.holding||n.markForHide()}))},n._updatePanelSizeByGrid=function(e,n){var t=Cn(this._flicking),i=t.panelsPerView;if(i<=0)throw new Kn(_n("panelsPerView",i),4);if(!(n.length<=0)){var r=(t.camera.size-(e.margin.prev+e.margin.next)*(i-1))/i,o=t.horizontal?{width:r}:{height:r},a=un({size:r,margin:e.margin},!t.horizontal&&{height:e.height});t.noPanelStyleOverride||this._strategy.updatePanelSizes(t,o),t.panels.forEach((function(e){return e.resize(a)}))}},n._removeAllChildsFromCamera=function(){for(var e=Cn(this._flicking).camera.element;e.firstChild;)e.removeChild(e.firstChild)},n._insertPanelElements=function(e,n){void 0===n&&(n=null);var t=Cn(this._flicking).camera.element,i=(null==n?void 0:n.element)||null,r=document.createDocumentFragment();e.forEach((function(e){return r.appendChild(e.element)})),t.insertBefore(r,i)},n._removePanelElements=function(e){var n=Cn(this._flicking).camera.element;e.forEach((function(e){n.removeChild(e.element)}))},n._afterRender=function(){Cn(this._flicking).camera.applyTransform()},e}(),xt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}sn(n,e);var t=n.prototype;return t.render=function(){return ln(this,void 0,void 0,(function(){var e,n;return cn(this,(function(t){return e=Cn(this._flicking),(n=this._strategy).updateRenderingPanels(e),n.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]}))}))},t._collectPanels=function(){var e=Cn(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=Cn(this._flicking),n=e.camera.element,t=this._strategy.getRenderingElementsByOrder(e).reverse();t.forEach((function(e,i){var r=t[i-1]?t[i-1]:null;e.nextElementSibling!==r&&n.insertBefore(e,r)}))},t._removeAllTextNodes=function(){var e=Cn(this._flicking).camera.element;An(e.childNodes).forEach((function(n){n.nodeType===Node.TEXT_NODE&&e.removeChild(n)}))},n}(Et),Ot=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}sn(n,e);var t=n.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},n}(Et),wt=function(){function e(e){var n=e.index,t=e.align,i=e.flicking,r=e.elementProvider;this._index=n,this._flicking=i,this._elProvider=r,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}
2,enumerable:!1,configurable:!0}),Object.defineProperty(n,"offset",{get:function(){var e=this._toggleDirection,n=this._flicking.camera.rangeDiff;return e!==wn.NONE&&this._toggled?e===wn.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,i=t.position;if(i===e)return 0;if(i<e){var r=e+(t.size-t.alignPosition)+n;return-Bn(i,e,r)}var o=e-(t.alignPosition+this._size-n);return 1-Bn(i,o,e)},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visibleRatio",{get:function(){var e=this.range,n=this._size,t=this.offset,i=this._flicking.camera.visibleRange,r=e.min+t,o=e.max+t;if(o<=i.min||r>=i.max)return 0;var a=n;return i.min>r&&(a-=i.min-r),i.max<o&&(a-=o-i.max),a/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,i=this._flicking,r=i.horizontal,o=i.useFractionalSize;if(e)this._size=e.size,this._margin=un({},e.margin),this._height=null!==(n=e.height)&&void 0!==n?n:Un({el:t,horizontal:!1,useFractionalSize:o,useOffset:!0,style:Xn(t)});else{var a=Xn(t);this._size=Un({el:t,horizontal:r,useFractionalSize:o,useOffset:!0,style:a}),this._margin=r?{prev:parseFloat(a.marginLeft||"0"),next:parseFloat(a.marginRight||"0")}:{prev:parseFloat(a.marginTop||"0"),next:parseFloat(a.marginBottom||"0")},this._height=r?Un({el:t,horizontal:!1,useFractionalSize:o,useOffset:!0,style:a}):this._size}return this.updatePosition(),this._updateAlignPos(),this},n.setSize=function(e){return Gn(this.element,e),this},n.contains=function(e){var n;return!!(null===(n=this.element)||void 0===n?void 0:n.contains(e))},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 i=this._margin,r=this.range;return t&&(r.min-=i.prev,r.max+=i.next),n>=r.min&&e<=r.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,i=t.panelCount;return 1===i?null:n.circularEnabled?t.getPanel(0===e?i-1:e-1):t.getPanel(e-1)},n.next=function(){var e=this._index,n=this._flicking,t=n.renderer,i=t.panelCount;return 1===i?null:n.circularEnabled?t.getPanel(e===i-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,i=this._togglePosition;if(t===wn.NONE||n===e)return!1;var r=this._toggled;return n>e?i>=e&&i<=n&&(this._toggled=t===wn.NEXT):i<=e&&i>=n&&(this._toggled=t!==wn.NEXT),r!==this._toggled},n.updateCircularToggleDirection=function(){var e=this._flicking;if(!e.circularEnabled)return this._toggleDirection=wn.NONE,this._togglePosition=0,this._toggled=!1,this;var n=e.camera,t=n.range,i=n.alignPosition,r=n.visibleRange,o=r.max-r.min,a=t.min-i,s=t.max-i+o,u=this.includeRange(s-o,s,!1),l=this.includeRange(a,a+o,!1);return this._toggled=!1,u?(this._toggleDirection=wn.PREV,this._togglePosition=this.range.max+t.min-t.max+i,this.toggle(1/0,n.position)):l?(this._toggleDirection=wn.NEXT,this._togglePosition=this.range.min+t.max-o+i,this.toggle(-1/0,n.position)):(this._toggleDirection=wn.NONE,this._togglePosition=0),this},n._updateAlignPos=function(){this._alignPos=In(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=wn.NONE},e}(),kt=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===wn.PREV})),i=n.filter((function(e){return e.toggled&&e.toggleDirection===wn.NEXT}));return dn(t,n.filter((function(e){return!e.toggled})),i).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,i=Sn(e.renderer.align);return n.map((function(n,r){return new wt({index:r,elementProvider:new t._providerCtor(n),align:i,flicking:e})}))},n.createPanel=function(e,n){return new wt(un(un({},n),{elementProvider:new this._providerCtor(e)}))},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,i=t.visiblePanels.reduce((function(e,n){return e[n.index]=!0,e}),{});n.forEach((function(n){n.index in i||n.loading?n.markForShow():e.holding||n.markForHide()})),t.updateOffset()},e}(),Rt=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}sn(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,i=this._index;return this._toggled&&(i=this._toggleDirection===wn.NEXT?i+t:i-t),Wn(i,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,i=this._elProvider.element,r=this._cachedInnerHTML||n(this,this._index);r!==i.innerHTML&&(i.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}(wt),Tt=function(){function e(){}var n=e.prototype;return n.renderPanels=function(e){var n=e.virtual,t=e.visiblePanels,i=qn(e.panelsPerView+1);t.forEach((function(e){var t=e.elementIndex;e.render(),n.show(t),i[t]=-1})),i.filter((function(e){return e>=0})).forEach((function(e){n.hide(e)}))},n.getRenderingIndexesByOrder=function(e){var n=e.virtual,t=dn(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})):dn(t.map((function(e){return e.elementIndex})),n.elements.map((function(e,n){return un(un({},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,i=t.visiblePanels.reduce((function(e,n){return e[n.index]=!0,e}),{});n.forEach((function(e){e.index in i||e.loading?e.markForShow():e.markForHide()})),t.updateOffset()},n.collectPanels=function(e){var n=Sn(e.renderer.align);return qn(e.virtual.initialPanelCount).map((function(t){return new Rt({index:t,elementProvider:new et(e),align:n,flicking:e})}))},n.createPanel=function(e,n){return new Rt(un(un({},n),{elementProvider:new et(n.flicking)}))},n.updatePanelSizes=function(e,n){e.virtual.elements.forEach((function(e){Gn(e.nativeElement,n)})),e.panels.forEach((function(e){return e.setSize(n)}))},e}(),Ct=function(e){function n(n,t){var i=void 0===t?{}:t,r=i.align,o=void 0===r?xn:r,a=i.defaultIndex,s=void 0===a?0:a,u=i.horizontal,l=void 0===u||u,c=i.circular,h=void 0!==c&&c,f=i.circularFallback,d=void 0===f?"linear":f,p=i.bound,g=void 0!==p&&p,v=i.adaptive,_=void 0!==v&&v,m=i.panelsPerView,b=void 0===m?-1:m,y=i.noPanelStyleOverride,P=void 0!==y&&y,E=i.resizeOnContentsReady,x=void 0!==E&&E,O=i.nested,w=void 0!==O&&O,k=i.needPanelThreshold,R=void 0===k?0:k,T=i.preventEventsBeforeInit,C=void 0===T||T,A=i.deceleration,I=void 0===A?.0075:A,D=i.duration,M=void 0===D?500:D,S=i.easing,j=void 0===S?function(e){return 1-Math.pow(1-e,3)}:S,z=i.inputType,N=void 0===z?["mouse","touch"]:z,L=i.moveType,F=void 0===L?"
2snap":L,V=i.threshold,H=void 0===V?40:V,B=i.interruptable,X=void 0===B||B,G=i.bounce,Y=void 0===G?"20%":G,W=i.iOSEdgeSwipeThreshold,q=void 0===W?30:W,U=i.preventClickOnDrag,$=void 0===U||U,K=i.preventDefaultOnDrag,Z=void 0!==K&&K,J=i.disableOnInit,Q=void 0!==J&&J,ee=i.changeOnHold,ne=void 0!==ee&&ee,te=i.renderOnlyVisible,ie=void 0!==te&&te,re=i.virtual,oe=void 0===re?null:re,ae=i.autoInit,se=void 0===ae||ae,ue=i.autoResize,le=void 0===ue||ue,ce=i.useResizeObserver,he=void 0===ce||ce,fe=i.resizeDebounce,de=void 0===fe?0:fe,pe=i.maxResizeDebounce,ge=void 0===pe?100:pe,ve=i.useFractionalSize,_e=void 0!==ve&&ve,me=i.externalRenderer,be=void 0===me?null:me,ye=i.renderExternal,Pe=void 0===ye?null:ye,Ee=e.call(this)||this;return Ee._initialized=!1,Ee._plugins=[],Ee._align=o,Ee._defaultIndex=s,Ee._horizontal=l,Ee._circular=h,Ee._circularFallback=d,Ee._bound=g,Ee._adaptive=_,Ee._panelsPerView=b,Ee._noPanelStyleOverride=P,Ee._resizeOnContentsReady=x,Ee._nested=w,Ee._virtual=oe,Ee._needPanelThreshold=R,Ee._preventEventsBeforeInit=C,Ee._deceleration=I,Ee._duration=M,Ee._easing=j,Ee._inputType=N,Ee._moveType=F,Ee._threshold=H,Ee._interruptable=X,Ee._bounce=Y,Ee._iOSEdgeSwipeThreshold=q,Ee._preventClickOnDrag=$,Ee._preventDefaultOnDrag=Z,Ee._disableOnInit=Q,Ee._changeOnHold=ne,Ee._renderOnlyVisible=ie,Ee._autoInit=se,Ee._autoResize=le,Ee._useResizeObserver=he,Ee._resizeDebounce=de,Ee._maxResizeDebounce=ge,Ee._useFractionalSize=_e,Ee._externalRenderer=be,Ee._renderExternal=Pe,Ee._viewport=new Zn(Ee,function(e,n){var t=null;if(Fn(e)){var i=document.querySelector(e);if(!i)throw new Kn('Element with selector "'+e+'" not found.',1);t=i}else e&&e.nodeType===Node.ELEMENT_NODE&&(t=e);if(!t)throw new Kn(gn(e,["HTMLElement","string"]),0);return t}(n)),Ee._autoResizer=new Jn(Ee),Ee._renderer=Ee._createRenderer(),Ee._camera=Ee._createCamera(),Ee._control=Ee._createControl(),Ee._virtualManager=new nt(Ee,oe),Ee._autoInit&&Ee.init(),Ee}sn(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,"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}
2,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()},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(),i=n.activePanel;t.copy(n);var r=i?this._camera.getProgressInPanel(i):0;this._control=t,this._control.updatePosition(r),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,"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}}
2,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)},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,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._autoResize&&this._autoResizer.enable()},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}),t.init=function(){var e=this;if(this._initialized)return Promise.resolve();var n=this._camera,t=this._renderer,i=this._control,r=this._virtualManager,o=this.trigger,a=this._preventEventsBeforeInit;return n.init(),r.init(),t.init(this),i.init(this),a&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&i.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)})),a&&(e.trigger=o),e.trigger(new s(Pn.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._initialized=!1},t.prev=function(e){var n,t,i;return void 0===e&&(e=this._duration),this.moveTo(null!==(i=null===(t=null===(n=this._control.activePanel)||void 0===n?void 0:n.prev())||void 0===t?void 0:t.index)&&void 0!==i?i:-1,e,wn.PREV)},t.next=function(e){var n,t,i;return void 0===e&&(e=this._duration),this.moveTo(null!==(i=null===(t=null===(n=this._control.activePanel)||void 0===n?void 0:n.next())||void 0===t?void 0:t.index)&&void 0!==i?i:this._renderer.panelCount,e,wn.NEXT)},t.moveTo=function(e,n,t){void 0===n&&(n=this._duration),void 0===t&&(t=wn.NONE);var i=this._renderer,r=i.panelCount,o=i.getPanel(e);return o?this._control.animating?Promise.reject(new Kn("Animation is already playing.",10)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(o,{duration:n,direction:t})):Promise.reject(new Kn(mn(e,0,r-1),5))},t.updateAnimation=function(e,n,t){if(this._control.animating){var i=this._renderer,r=i.panelCount,o=i.getPanel(e);if(!o)throw new Kn(mn(e,0,r-1),5);this._control.updateAnimation(o,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,i=void 0===e?{}:e,r=i.index,o=void 0===r||r,a=i.position,s=void 0===a||a,u=i.includePanelHTML,l=void 0!==u&&u,c=i.visiblePanelsOnly,h=void 0!==c&&c,f=this._camera,d={panels:(h?this.visiblePanels:this.panels).map((function(e){var n={index:e.index};return l&&(n.html=e.element.outerHTML),n}))};if(o&&(d.index=this.index),s){var p=f.findNearestAnchor(f.position);p&&(d.position={panel:p.panel.index,progressInPanel:f.getProgressInPanel(p.panel)})}if(h){var g=this.visiblePanels;d.visibleOffset=null!==(t=null===(n=g[0])||void 0===n?void 0:n.index)&&void 0!==t?t:0}return d},t.setStatus=function(e){var n;if(!this._initialized)throw new Kn("Flicking is not initialized yet, call init() first.",12);var t=e.index,i=e.position,r=e.visibleOffset,o=e.panels,a=this._renderer,s=this._control;if((null===(n=o[0])||void 0===n?void 0:n.html)&&!this._renderExternal&&(a.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),a.batchInsert({index:0,elements:zn(o.map((function(e){return e.html}
2))),hasDOMInElements:!0})),null!=t){var u=r?t-r:t;this.moveTo(u,0).catch((function(){}))}if(i&&this._moveType===kn.FREE_SCROLL){var l=i.panel,c=i.progressInPanel,h=(u=r?l-r:l,a.panels[u].range),f=h.min+(h.max-h.min)*c;s.moveToPosition(f,0).catch((function(){}))}},t.addPlugins=function(){for(var e,n=this,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return this._initialized&&t.forEach((function(e){return e.init(n)})),(e=this._plugins).push.apply(e,dn(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=Hn(e._plugins,(function(e){return e===n}));t>=0&&(n.destroy(),e._plugins.splice(t,1))})),this},t.resize=function(){return ln(this,void 0,void 0,(function(){var e,n,t,i,r,o,a,u,l,c,h;return cn(this,(function(f){switch(f.label){case 0:return e=this._viewport,n=this._renderer,t=this._camera,i=this._control,r=i.activePanel,o=e.width,a=e.height,u=r?t.getProgressInPanel(r):0,this.trigger(new s(Pn.BEFORE_RESIZE,{width:o,height:a,element:e.element})),e.resize(),[4,n.forceRenderAllPanels()];case 1:return f.sent(),n.updatePanelSize(),t.updateAlignPos(),t.updateRange(),t.updateAnchors(),t.updateAdaptiveHeight(),t.updatePanelOrder(),t.updateOffset(),[4,n.render()];case 2:return f.sent(),i.animating||(i.updatePosition(u),i.updateInput()),l=e.width,c=e.height,h=l!==o||c!==a,this.trigger(new s(Pn.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:o,height:a},sizeChanged:h,element:e.element})),[2]}}))}))},t.append=function(e){return this.insert(this._renderer.panelCount,e)},t.prepend=function(e){return this.insert(0,e)},t.insert=function(e,n){if(this._renderExternal)throw new Kn(yn,11);return this._renderer.batchInsert({index:e,elements:zn(n),hasDOMInElements:!0})},t.remove=function(e,n){if(void 0===n&&(n=1),this._renderExternal)throw new Kn(yn,11);return this._renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!0})},t._createControl=function(){var e,n=this._moveType,t=Object.keys(kn).map((function(e){return kn[e]})),i=Array.isArray(n)?n[0]:n,r=Array.isArray(n)&&null!==(e=n[1])&&void 0!==e?e:{};if(!Ln(t,i))throw new Kn(_n("moveType",JSON.stringify(n)),4);switch(i){case kn.SNAP:return new pt(r);case kn.FREE_SCROLL:return new gt(r);case kn.STRICT:return new vt(r)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new Pt(this,{align:this._align})},t._createRenderer=function(){var e=this._externalRenderer;return 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(un({align:this._align},t))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new xt({align:this._align,strategy:e?new Tt:new kt({providerCtor:Qn})})},t._moveToInitialPanel=function(){var e=this._renderer,n=this._control,t=this._camera,i=e.getPanel(this._defaultIndex)||e.getPanel(0);if(i){var r=t.findNearestAnchor(i.position),o=r&&i.index!==r.panel.index?r.panel:i;if(n.setActive(o,null,!1),!r)throw new Kn(bn(o.position),6);var a=o.position;t.canReach(o)||(a=r.position),t.lookAt(a),n.updateInput(),t.updateOffset()}},t._initialResize=function(){var e=this._viewport,n=this._renderer,t=this._camera,i=this._control;this.trigger(new s(Pn.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),n.updatePanelSize(),t.updateAlignPos(),t.updateRange(),t.updateAnchors(),t.updateOffset(),i.updateInput();var r=e.width,o=e.height,a=0!==r||0!==o;this.trigger(new s(Pn.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:a,element:e.element}))},n.VERSION="4.11.2",n}(u),At=function(e,n){[u.prototype,Ct.prototype].forEach((function(t){Object.getOwnPropertyNames(t).filter((function(n){return!e[n]&&0!==n.indexOf("_")&&"constructor"!==n})).forEach((function(i){var r=Object.getOwnPropertyDescriptor(t,i);if(r.value)Object.defineProperty(e,i,{value:function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return(e=r.value).call.apply(e,dn([this[n]],t))}});else{var o={};r.get&&(o.get=function(){var e,t=this[n];return t&&(null===(e=r.get)||void 0===e?void 0:e.call(t))}
2),r.set&&(o.set=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null===(e=r.set)||void 0===e?void 0:e.call.apply(e,dn([this[n]],t))}),Object.defineProperty(e,i,o)}}))}))},It=function(e,n,t){var i=e.renderer,r=i.panels,o=dn(n.prevList),a=[],s=[];if(n.removed.length>0){var u=-1,l=-1;n.removed.forEach((function(e){u<0&&(u=e),l>=0&&e!==l-1?(s.push.apply(s,dn(Mt(i,l,u+1))),u=e,l=e):l=e,o.splice(e,1)})),s.push.apply(s,dn(Mt(i,l,u+1)))}if(n.ordered.forEach((function(e){var n=fn(e,2),t=n[0],i=n[1],o=r.splice(t,1)[0];r.splice(i,0,o)})),n.ordered.length>0&&(r.forEach((function(e,n){var t=n-e.index;t>0?e.increaseIndex(t):e.decreaseIndex(-t)})),r.sort((function(e,n){return e.index-n.index})),r.forEach((function(e){e.updatePosition()}))),n.added.length>0){var c=-1,h=-1,f=t.slice(o.length);n.added.forEach((function(e,t){c<0&&(c=t),h>=0&&e!==h+1?(a.push.apply(a,dn(Dt(i,n,f,c,t+1))),c=-1,h=-1):h=e})),c>=0&&a.push.apply(a,dn(Dt(i,n,f,c)))}(n.added.length>0||n.removed.length>0)&&i.updateAfterPanelChange(a,s)},Dt=function(e,n,t,i,r){return e.batchInsertDefer.apply(e,dn(n.added.slice(i,r).map((function(e,n){return{index:e,elements:[t[n]],hasDOMInElements:!1}}))))},Mt=function(e,n,t){var i=e.panels.slice(n,t);return e.batchRemoveDefer({index:n,deleteCount:i.length,hasDOMInElements:!1})},St=function(e,n){var t=n.removed.reduce((function(e,n){return e[n]=!0,e}),{}),i=n.maintained.reduce((function(e,n){var t=fn(n,2),i=t[0],r=t[1];return e[i]=r,e}),{});return dn(e.panels.filter((function(e){return!t[e.index]})).sort((function(e,n){return e.position+e.offset-(n.position+n.offset)})).map((function(e){return n.list[i[e.index]]})),n.added.map((function(e){return n.list[e]})))},jt=function(e,n,t){void 0===e&&(e=xn),void 0===n&&(n=!0);var i=zt(e),r=Nt(e);if(null==r)return"";var o="calc("+i+" - ("+(t||"0px")+" * "+r.percentage+") - "+r.absolute+"px)";return n?"translate("+o+")":"translate(0, "+o+")"},zt=function(e){var n="object"==typeof e?e.camera:e;return Lt(n)},Nt=function(e){var n="object"==typeof e?e.panel:e;return Mn(Lt(n))},Lt=function(e){if("number"==typeof e)return e+"px";switch(e){case xn:return"50%";case On:return"100%";case En:return"0%";default:return e}}},380:(e,n,t)=>{"use strict";t.d(n,{m:()=>x});var i=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,i=this.values,r=t.indexOf(e),o=-1===r?t.length:r;t[o]=e,i[o]=n},e}(),r=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}(),o="function"==typeof Map,a=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 e=this,n=-1;e;)e=e.prev,++n;return n},e}(),s=function(){function e(e,n,t,i,r,o,a,s){this.prevList=e,this.list=n,this.added=t,this.removed=i,this.changed=r,this.maintained=o,this.changedBeforeAdded=a,this.fixed=s}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=[],i=[];return e.forEach((function(e){var n=e[0],r=e[1],o=new a;t[n]=o,i[r]=o})),t.forEach((function(e,n){e.connect(t[n-1])})),e.filter((function(e,t){return!n[t]})).map((function(e,n){var r=e[0],o=e[1];if(r===o)return[0,0];var a=t[r],s=i[o-1],u=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,t[0]),[u,a.getIndex()]}))}(this.changedBeforeAdded,this.fixed),n=this.changed,t=[];this.cacheOrdered=e.filter((function(e,i){var r=e[0],o=e[1],a=n[i],s=a[0],u=a[1];if(r!==o)return t.push([s,u]),!0})),this.cachePureChanged=t},e}();const u=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 a=o?Map:t?r:i,u=t||function(e){return e},l=[],c=[],h=[],f=e.map(u),d=n.map(u),p=new a,g=new a,v=[],_=[],m={},b=[],y=0,P=0;return f.forEach((function(e,n){p.set(e,n)})),d.forEach((function(e,n){g.set(e,n)})),f.forEach((function(e,n){var t=g.get(e);void 0===t?(++P,c.push(n)):m[t]=P})),d.forEach((function(e,n){var t=p.get(e);void 0===t?(l.push(n),++y):(h.push([t,n]),P=m[n]||0,v.push([t-P,n-y]),_.push(n===t),t!==n&&b.push([t,n]))})),c.reverse(),new s(e,n,l,c,b,h,v,_)}(this.list,n,this.findKeyCallback);return this.list=n,t},e}();
2var l=t(144),c=t(7191),h=function(e,n){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)},f=function(){return(f=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};function d(e,n,t,i){return new(t||(t=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((i=i.apply(e,n||[])).next())}))}function p(e,n){var t,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(t=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=n.call(e,a)}catch(e){s=[6,e],i=0}finally{t=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function g(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var i,r,o=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return a}function v(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}var _=function(e){function n(n){var t=e.call(this,n)||this;return t._vueFlicking=n.vueFlicking,t}!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}h(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}(n,e);var t=n.prototype;return t.render=function(){return d(this,void 0,void 0,(function(){var e,n,t,i=this;return p(this,(function(r){return e=(0,c.Gi)(this._flicking),n=this._vueFlicking,(t=this._strategy).updateRenderingPanels(e),t.renderPanels(e),[2,new Promise((function(e){n.$once("render",(function(){i._afterRender(),e()})),n.$forceUpdate()}))]}))}))},t.forceRenderAllPanels=function(){return d(this,void 0,void 0,(function(){var n;return p(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=(0,c.Gi)(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}(c.vx),m=l.default.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}}}),b=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}(),y={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}},P=function(e){var n,t;return null!==(t=null===(n=e.$slots.default)||void 0===n?void 0:n.filter((function(e){return e.tag})))&&void 0!==t?t:[]}
2,E=function(e){P(e).forEach((function(e,n){null==e.key&&(e.key="$_".concat(n))}))},x=l.default.extend({props:y,components:{Panel:m},data:function(){return{}},created:function(){this.diffResult=null,(0,c.UY)(this,"vanillaFlicking")},mounted:function(){var e,n=this,t=this.options,i=this.$el,r={vueFlicking:this,align:t.align,strategy:t.virtual&&(null!==(e=t.panelsPerView)&&void 0!==e?e:-1)>0?new c.Cc:new c.J9({providerCtor:b})},o=new c.Co(i,f(f({},t),{externalRenderer:new _(r)}));this.vanillaFlicking=o,o.once(c.FP.READY,(function(){n.$forceUpdate()}));var a=P(this);this.slotDiffer=new u(a,(function(e){return e.key})),this.pluginsDiffer=new u,this._bindEvents(),this._checkPlugins(),this.status&&o.setStatus(this.status)},beforeDestroy:function(){var e;null===(e=this.vanillaFlicking)||void 0===e||e.destroy()},beforeMount:function(){E(this)},beforeUpdate:function(){E(this),this.diffResult=this.slotDiffer.update(P(this))},updated:function(){var e=this.vanillaFlicking,n=this.diffResult;this._checkPlugins(),this.$emit("render"),n&&e.initialized&&((0,c.Z_)(e,n,this.$children),(n.added.length>0||n.removed.length>0)&&this.$forceUpdate(),this.diffResult=null)},render:function(e){var n,t,i,r=this.vanillaFlicking,o=this.options,a=!!this.diffResult&&r&&r.initialized,s={class:{"flicking-viewport":!0,vertical:!(r?r.horizontal:null===(t=o.horizontal)||void 0===t||t),"flicking-hidden":this.hideBeforeInit&&!a}},u={class:(n={"flicking-camera":!0},n[this.cameraClass]=!!this.cameraClass,n),style:!a&&this.firstPanelSize?{transform:(0,c.Xx)(o.align,o.horizontal,this.firstPanelSize)}:{}},l=o.virtual&&(null!==(i=o.panelsPerView)&&void 0!==i?i:-1)>0?this._getVirtualPanels(e,a):this._getPanels(e,a);return e(this.viewportTag,s,[e(this.cameraTag,u,l),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(e){return e.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(c.FP).map((function(e){return c.FP[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),i=t.list,r=t.added,o=t.removed,a=t.prevList;(e=this.vanillaFlicking).addPlugins.apply(e,v([],g(r.map((function(e){return i[e]}))),!1)),(n=this.vanillaFlicking).removePlugins.apply(n,v([],g(o.map((function(e){return a[e]}))),!1))},_getPanels:function(e,n){return(n?(0,c.Wn)(this.vanillaFlicking,this.diffResult):this._getSlots()).map((function(n){return e("Panel",{key:n.key},[n])}))},_getVirtualPanels:function(e,n){var t=this.options,i=t.virtual.panelClass,r=void 0===i?"flicking-panel":i,o=t.panelsPerView,a=this.vanillaFlicking,s=n?a.renderer.strategy.getRenderingIndexesByOrder(a):(0,c.w6)(o+1),u=a&&a.panels[0],l=u?a.horizontal?{width:u.size}:{height:u.size}:{};return s.map((function(n){return e("div",{key:n,staticClass:r,style:l,domProps:{"data-element-index":n}})}))}},watch:{options:{handler:function(e){var n=this.vanillaFlicking;if(n){e.virtual;var t=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["virtual"]);for(var i in t)i in n&&n[i]!==t[i]&&(n[i]=t[i])}},deep:!0,immediate:!0}}})},2834:(e,n,t)=>{(e.exports=t(3645)(!1)).push([e.id,".flicking-viewport {\n position: relative;\n overflow: hidden;\n}\n\n.flicking-viewport.vertical {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n\n.flicking-viewport.vertical > .flicking-camera {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.flicking-viewport.flicking-hidden > .flicking-camera > * {\n visibility: hidden;\n}\n\n.flicking-camera {\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n z-index: 1;\n will-change: transform;\n}\n\n.flicking-camera > * {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n",""])}}]);
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.