"use strict";var _slicedToArray=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(n=(o=c.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){a=!0,i=t}finally{try{!n&&c.return&&c.return()}finally{if(a)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function _asyncToGenerator(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,r){return function n(a,i){try{var o=e[a](i),c=o.value}catch(t){return void r(t)}if(!o.done)return Promise.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}("next")})}}drill.define(function(){var t=_asyncToGenerator(regeneratorRuntime.mark(function t(e){var r,n,a,i,o,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e("util/dataUtil","common/data","util/animationCSSUtil");case 2:return r=t.sent,n=_slicedToArray(r,3),n[0],a=n[1],i=n[2],o=0,t.t0=function(t){if(!o){var e=$('.p_main .page[active="1"]'),r=e.index(),n=$(".p_main .page").eq(t);if(n.length&&r!=t){var c=e.prop("pageData"),u=n.prop("pageData");n.attr("active",2),r>t?(e.css(i.toCSSObj(c.pos1)),n.css(i.toCSSObj(u.pos2))):(e.css(i.toCSSObj(c.pos2_after)),n.css(i.toCSSObj(u.pos1_after))),o=1,a.trigger("changePageStart",{activePage:e,activeId:r,nextPage:n,nextId:t}),setTimeout(function(){o=0,e.attr("active",0),n.attr("active",1),a.trigger("changePageEnd",{activePage:n,activeId:t,oldPage:e,oldId:r})},500)}}},t.t1=function(){var t=$('.p_main .page[active="1"]');this.toPage(t.index()+1)},t.t2=function(){var t=$('.p_main .page[active="1"]').index()-1;t>=0&&this.toPage(t)},c={get isRunAnime(){return o},toPage:t.t0,toNextPage:t.t1,toPrevPage:t.t2},t.abrupt("return",c);case 13:case"end":return t.stop()}},t,void 0)}));return function(e){return t.apply(this,arguments)}}());