PageSourceSearch

https://thewichitan.com/wp-content/plugins/sno-pdf-flipbook/dist/assets/frontend-e2851975.js

js thewichitan.com collected 2026-09-25 07:06:15 UTC 35,318 bytes, 2 lines download raw bytes

1(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"[email protected]"};var C=new n.Error().stack;C&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[C]="e4c484c0-ec81-4945-ba91-ea01871d25e6",n._sentryDebugIdIdentifier="sentry-dbid-e4c484c0-ec81-4945-ba91-ea01871d25e6")}catch{}})();(function(n){var C,it,O="",K="4.1.0",x=Math.PI,I=x/2,S="ontouchstart"in window,T=S?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},y={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},U=["single","double"],rt=["ltr","rtl"],lt={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},ft={cornerSize:100},ut=6,d={init:function(t){C="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,it=Mt(),O=xt();var e,a=0,i=this.data(),r=this.children();if(t=n.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},lt,t),i.opts=t,i.pageObjs={},i.pages={},i.pageWrap={},i.pageZoom={},i.pagePlace={},i.pageMv=[],i.zoom=1,i.totalPages=t.pages||0,i.eventHandlers={touchStart:n.proxy(d._touchStart,this),touchMove:n.proxy(d._touchMove,this),touchEnd:n.proxy(d._touchEnd,this),start:n.proxy(d._eventStart,this)},t.when)for(e in t.when)_(e,t.when)&&this.bind(e,t.when[e]);for(this.css({position:"relative",width:t.width,height:t.height}),this.turn("display",t.display),t.direction!==""&&this.turn("direction",t.direction),C&&!S&&t.acceleration&&this.transform(V(0,0,!0)),e=0;e<r.length;e++)n(r[e]).attr("ignore")!="1"&&this.turn("addPage",r[e],++a);return n(this).bind(T.down,i.eventHandlers.touchStart).bind("end",d._eventEnd).bind("pressed",d._eventPressed).bind("released",d._eventReleased).bind("flip",d._flip),n(this).parent().bind("start",i.eventHandlers.start),n(document).bind(T.move,i.eventHandlers.touchMove).bind(T.up,i.eventHandlers.touchEnd),this.turn("page",t.page),i.done=!0,this},addPage:function(t,e){var a,i,r=!1,s=this.data(),o=s.totalPages+1;if(s.destroying)return!1;if((a=/\bp([0-9]+)\b/.exec(n(t).attr("class")))&&(e=parseInt(a[1],10)),e){if(e==o)r=!0;else if(e>o)throw A('Page "'+e+'" cannot be inserted')}else e=o,r=!0;return e>=1&&e<=o&&(s.display=="double"?i=e%2?" odd":" even":i="",s.done&&this.turn("stop"),e in s.pageObjs&&d._movePages.call(this,e,1),r&&(s.totalPages=o),s.pageObjs[e]=n(t).css({float:"left"}
1).addClass("page p"+e+i),!kt()&&s.pageObjs[e].hasClass("hard")&&s.pageObjs[e].removeClass("hard"),d._addPage.call(this,e),d._removeFromDOM.call(this)),this},_addPage:function(t){var e=this.data(),a=e.pageObjs[t];if(a)if(d._necessPage.call(this,t)){if(!e.pageWrap[t]){e.pageWrap[t]=n("<div/>",{class:"page-wrapper",page:t,css:{position:"absolute",overflow:"hidden"}}),this.append(e.pageWrap[t]),e.pagePlace[t]||(e.pagePlace[t]=t,e.pageObjs[t].appendTo(e.pageWrap[t]));var i=d._pageSize.call(this,t,!0);a.css({width:i.width,height:i.height}),e.pageWrap[t].css(i)}e.pagePlace[t]==t&&d._makeFlip.call(this,t)}else e.pagePlace[t]=0,e.pageObjs[t]&&e.pageObjs[t].remove()},hasPage:function(t){return _(t,this.data().pageObjs)},center:function(t){var e=this.data(),a=n(this).turn("size"),i=0;if(!e.noCenter){if(e.display=="double"){var r=this.turn("view",t||e.tpage||e.page);e.direction=="ltr"?r[0]?r[1]||(i+=a.width/4):i-=a.width/4:r[0]?r[1]||(i-=a.width/4):i+=a.width/4}n(this).css({marginLeft:i})}return this},destroy:function(){var t=this,e=this.data(),a=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(X("destroying",this)!="prevented"){for(e.destroying=!0,n.each(a,function(i,r){t.unbind(r)}),this.parent().unbind("start",e.eventHandlers.start),n(document).unbind(T.move,e.eventHandlers.touchMove).unbind(T.up,e.eventHandlers.touchEnd);e.totalPages!==0;)this.turn("removePage",e.totalPages);return e.fparent&&e.fparent.remove(),e.shadow&&e.shadow.remove(),this.removeData(),e=null,this}},is:function(){return typeof this.data().pages=="object"},zoom:function(t){var e=this.data();if(typeof t=="number"){if(t<.001||t>100)throw A(t+" is not a value for zoom");if(X("zooming",this,[t,e.zoom])=="prevented")return this;var a=this.turn("size"),i=this.turn("view"),r=1/e.zoom,s=Math.round(a.width*r*t),o=Math.round(a.height*r*t);e.zoom=t,n(this).turn("stop").turn("size",s,o),e.opts.autoCenter&&this.turn("center"),d._updateShadow.call(this);for(var h=0;h<i.length;h++)i[h]&&e.pageZoom[i[h]]!=e.zoom&&(this.trigger("zoomed",[i[h],i,e.pageZoom[i[h]],e.zoom]),e.pageZoom[i[h]]=e.zoom);return this}else return e.zoom},_pageSize:function(t,e){var a=this.data(),i={};if(a.display=="single")i.width=this.width(),i.height=this.height(),e&&(i.top=0,i.left=0,i.right="auto");else{var r=this.width()/2,s=this.height();if(a.pageObjs[t].hasClass("own-size")?(i.width=a.pageObjs[t].width(),i.height=a.pageObjs[t].height()):(i.width=r,i.height=s),e){var o=t%2;i.top=(s-i.height)/2,a.direction=="ltr"?(i[o?"right":"left"]=r-i.width,i[o?"left":"right"]="auto"):(i[o?"left":"right"]=r-i.width,i[o?"right":"left"]="auto")}}return i},_makeFlip:function(t){var e=this.data();if(!e.pages[t]&&e.pagePlace[t]==t){var a=e.display=="single",i=t%2;e.pages[t]=e.pageObjs[t].css(d._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),d._setPageLoc.call(this,t),e.pageZoom[t]=e.zoom}return e.pages[t]},_makeRange:function(){var t,e,a=this.data();if(!(a.totalPages<1))for(e=this.turn("range"),t=e[0];t<=e[1];t++)d._addPage.call(this,t)},range:function(t){var e,a,i,r,s=this.data();if(t=t||s.tpage||s.page||1,r=d._view.call(this,t),t<1||t>s.totalPages)throw A('"'+t+'" is not a valid page');return r[1]=r[1]||r[0],r[0]>=1&&r[1]<=s.totalPages?(e=Math.floor((ut-2)/2),s.totalPages-r[1]>r[0]?(a=Math.min(r[0]-1,e),i=2*e-a):(i=Math.min(s.totalPages-r[1],e),a=2*e-i)):(a=ut-1,i=ut-1),[Math.max(1,r[0]-a),Math.min(s.totalPages,r[1]+i)]},_necessPage:function(t){if(t===0)return!0;var e=this.turn("range");return this.data().pageObjs[t].hasClass("fixed")||t>=e[0]&&t<=e[1]},_removeFromDOM:function(){var t,e=this.data();for(t in e.pageWrap)_(t,e.pageWrap)&&!d._necessPage.call(this,t)&&d._removePageFromDOM.call(this,t)},_removePageFromDOM:function(t){var e=this.data();if(e.pages[t]){var a=e.pages[t].data();l._moveFoldingPage.call(e.pages[t],!1),a.f&&a.f.fwrapper&&a.f.fwrapper.remove(),e.pages[t].removeData(),e.pages[t].remove(),delete e.pages[t]}e.pageObjs[t]&&e.pageObjs[t].remove(),e.pageWrap[t]&&(e.pageWrap[t].remove(),delete e.pageWrap[t]),d._removeMv.call(this,t),delete e.pagePlace[t],delete e.pageZoom[t]},removePage:function(t){var e=this.data();if(t=="*")for(;e.totalPages!==0;)this.turn("removePage",e.totalPages);
1else{if(t<1||t>e.totalPages)throw A("The page "+t+" doesn't exist");e.pageObjs[t]&&(this.turn("stop"),d._removePageFromDOM.call(this,t),delete e.pageObjs[t]),d._movePages.call(this,t,-1),e.totalPages=e.totalPages-1,e.page>e.totalPages?(e.page=null,d._fitPage.call(this,e.totalPages)):(d._makeRange.call(this),this.turn("update"))}return this},_movePages:function(t,e){var a,i=this,r=this.data(),s=r.display=="single",o=function(h){var f=h+e,c=f%2,g=c?" odd ":" even ";r.pageObjs[h]&&(r.pageObjs[f]=r.pageObjs[h].removeClass("p"+h+" odd even").addClass("p"+f+g)),r.pagePlace[h]&&r.pageWrap[h]&&(r.pagePlace[f]=f,r.pageObjs[f].hasClass("fixed")?r.pageWrap[f]=r.pageWrap[h].attr("page",f):r.pageWrap[f]=r.pageWrap[h].css(d._pageSize.call(i,f,!0)).attr("page",f),r.pages[h]&&(r.pages[f]=r.pages[h].flip("options",{page:f,next:s||c?f+1:f-1})),e&&(delete r.pages[h],delete r.pagePlace[h],delete r.pageZoom[h],delete r.pageObjs[h],delete r.pageWrap[h]))};if(e>0)for(a=r.totalPages;a>=t;a--)o(a);else for(a=t;a<=r.totalPages;a++)o(a)},display:function(t){var e=this.data(),a=e.display;if(t===void 0)return a;if(n.inArray(t,U)==-1)throw A('"'+t+'" is not a value for display');switch(t){case"single":e.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),e.pageObjs[0]=n("<div />",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":e.pageObjs[0]&&(this.turn("stop").css({overflow:""}),e.pageObjs[0].remove(),delete e.pageObjs[0]),this.removeClass("shadow");break}if(e.display=t,a){var i=this.turn("size");d._movePages.call(this,1,0),this.turn("size",i.width,i.height).turn("update")}return this},direction:function(t){var e=this.data();if(t===void 0)return e.direction;if(t=t.toLowerCase(),n.inArray(t,rt)==-1)throw A('"'+t+'" is not a value for direction');return t=="rtl"&&n(this).attr("dir","ltr").css({direction:"ltr"}),e.direction=t,e.done&&this.turn("size",n(this).width(),n(this).height()),this},animating:function(){return this.data().pageMv.length>0},corner:function(){var t,e,a=this.data();for(e in a.pages)if(_(e,a.pages)&&(t=a.pages[e].flip("corner")))return t;return!1},data:function(){return this.data()},disable:function(t){var e,a=this.data(),i=this.turn("view");a.disabled=t===void 0||t===!0;for(e in a.pages)_(e,a.pages)&&a.pages[e].flip("disable",a.disabled?!0:n.inArray(parseInt(e,10),i)==-1);return this},disabled:function(t){return t===void 0?this.data().disabled===!0:this.turn("disable",t)},size:function(t,e){if(t===void 0||e===void 0)return{width:this.width(),height:this.height()};this.turn("stop");var a,i,r=this.data(),s=r.display=="double"?t/2:t;this.css({width:t,height:e}),r.pageObjs[0]&&r.pageObjs[0].css({width:s,height:e});for(a in r.pageWrap)_(a,r.pageWrap)&&(i=d._pageSize.call(this,a,!0),r.pageObjs[a].css({width:i.width,height:i.height}),r.pageWrap[a].css(i),r.pages[a]&&r.pages[a].css({width:i.width,height:i.height}));return this.turn("resize"),this},resize:function(){var t,e=this.data();for(e.pages[0]&&(e.pageWrap[0].css({left:-this.width()}),e.pages[0].flip("resize",!0)),t=1;t<=e.totalPages;t++)e.pages[t]&&e.pages[t].flip("resize",!0);d._updateShadow.call(this),e.opts.autoCenter&&this.turn("center")},_removeMv:function(t){var e,a=this.data();for(e=0;e<a.pageMv.length;e++)if(a.pageMv[e]==t)return a.pageMv.splice(e,1),!0;return!1},_addMv:function(t){var e=this.data();d._removeMv.call(this,t),e.pageMv.push(t)},_view:function(t){var e=this.data();return t=t||e.page,e.display=="double"?t%2?[t-1,t]:[t,t+1]:[t]},view:function(t){var e=this.data(),a=d._view.call(this,t);return e.display=="double"?[a[0]>0?a[0]:0,a[1]<=e.totalPages?a[1]:0]:[a[0]>0&&a[0]<=e.totalPages?a[0]:0]},stop:function(t,e){if(this.turn("animating")){var a,i,r,s=this.data();for(s.tpage&&(s.page=s.tpage,delete s.tpage),a=0;a<s.pageMv.length;a++)!s.pageMv[a]||s.pageMv[a]===t||(r=s.pages[s.pageMv[a]],i=r.data().f.opts,r.flip("hideFoldedPage",e),e||l._moveFoldingPage.call(r,!1),i.force&&(i.next=i.page%2===0?i.page-1:i.page+1,delete i.force))}return this.turn("update"),this},pages:function(t){var e=this.data();if(t){if(t<e.totalPages)for(var a=e.totalPages;a>t;a--)this.turn("removePage",a);return e.totalPages=t,d._fitPage.call(this,e.page),this}else return e.totalPages},_missing:function(t){var e=this.data();if(!(e.totalPages<1)){var a,i=this.turn("range",t),r=[];for(a=i[0];a<=i[1];a++)e.pageObjs[a]||r.push(a);r.length>0&&this.trigger("missing",[r])}},_fitPage:function(t){var e=this.data(),a=this.turn("view",t);if(d._missing.call(this,t),!!e.pageObjs[t]){e.page=t,this.turn("stop");for(var i=0;i<a.length;i++)a[i]&&e.pageZoom[a[i]]!=e.zoom&&(this.trigger("zoomed",[a[i],a,e.pageZoom[a[i]],e.zoom]),e.pageZoom[a[i]]=e.zoom);d._removeFromDOM.call(this),d._makeRange.call(this),d._updateShadow.call(this),this.trigger("turned",[t,a]),this.turn("update"),e.opts.autoCenter&&this.turn("center")}},_turnPage:function(t){var e,a,i=this.data(),r=i.pagePlace[t],s=this.turn("view"),o=this.turn("view",t);if(i.page!=t){var h=i.page;if(X("turning",this,[t,o])=="prevented"){h==i.page&&n.inArray(r,i.pageMv)!=-1&&i.pages[r].flip("hideFoldedPage",!0);return}n.inArray(1,o)!=-1&&this.trigger("first"),n.inArray(i.totalPages,o)!=-1&&this.trigger("last")}i.display=="single"?(e=s[0],a=o[0]):s[1]&&t>s[1]?(e=s[1],a=o[0]):s[0]&&t<s[0]&&(e=s[0],a=o[1]);var f=i.opts.turnCorners.split(","),c=i.pages[e].data().f,g=c.opts,v=c.point;d._missing.call(this,t),i.pageObjs[t]&&(this.turn("stop"),i.page=t,d._makeRange.call(this),i.tpage=a,g.next!=a&&(g.next=a,g.force=!0),this.turn("update"),c.point=v,c.effect=="hard"?i.direction=="ltr"?i.pages[e].flip("turnPage",t>e?"r":"l"):i.pages[e].flip("turnPage",t>e?"l":"r"):i.direction=="ltr"?i.pages[e].flip("turnPage",f[t>e?1:0]):i.pages[e].flip("turnPage",f[t>e?0:1]))},page:function(t){var e=this.data();if(t===void 0)return e.page;if(!e.disabled&&!e.destroying){if(t=parseInt(t,10),t>0&&t<=e.totalPages)return t!=e.page&&(!e.done||n.inArray(t,this.turn("view"))!=-1?d._fitPage.call(this,t):d._turnPage.call(this,t)),this;throw A("The page "+t+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,d._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,d._view.call(this,this.data().page).shift()-1))},peel:function(t,e){var a=this.data(),i=this.turn("view");if(e=e===void 0?!0:e===!0,t===!1)this.turn("stop",null,e);else if(a.display=="single")a.pages[a.page].flip("peel",t,e);else{var r;a.direction=="ltr"?r=t.indexOf("l")!=-1?i[0]:i[1]:r=t.indexOf("l")!=-1?i[1]:i[0],a.pages[r]&&a.pages[r].flip("peel",t,e)}return this},_addMotionPage:function(){var t=n(this).data().f.opts,e=t.turn;e.data(),d._addMv.call(e,t.page)},_eventStart:function(t,e,a){var i=e.turn.data(),r=i.pageZoom[e.page];if(t.isDefaultPrevented()){d._updateShadow.call(e.turn);return}r&&r!=i.zoom&&(e.turn.trigger("zoomed",[e.page,e.turn.turn("view",e.page),r,i.zoom]),i.pageZoom[e.page]=i.zoom),i.display=="single"&&a&&(a.charAt(1)=="l"&&i.direction=="ltr"||a.charAt(1)=="r"&&i.direction=="rtl"?(e.next=e.next<e.page?e.next:e.page-1,e.force=!0):e.next=e.next>e.page?e.next:e.page+1),d._addMotionPage.call(t.target),d._updateShadow.call(e.turn)},_eventEnd:function(t,e,a){var i=n(t.target);i.data().f;var r=e.turn,s=r.data();if(a){var o=s.tpage||s.page;(o==e.next||o==e.page)&&(delete s.tpage,d._fitPage.call(r,o||e.next,!0))}else d._removeMv.call(r,e.page),d._updateShadow.call(r),r.turn("update")},_eventPressed:function(t){var e=n(t.target).data().f,a=e.opts.turn,i=a.data();return i.pages,i.mouseAction=!0,a.turn("update"),e.time=new Date().getTime()},_eventReleased:function(t,e){var a,i=n(t.target),r=i.data().f,s=r.opts.turn,o=s.data();o.display=="single"?a=e.corner=="br"||e.corner=="tr"?e.x<i.width()/2:e.x>i.width()/2:a=e.x<0||e.x>i.width(),(new Date().getTime()-r.time<200||a)&&(t.preventDefault(),d._turnPage.call(s,r.opts.next)),o.mouseAction=!1},_flip:function(t){t.stopPropagation();var e=n(t.target).data().f.opts;e.turn.trigger("turn",[e.next]),e.turn.data().opts.autoCenter&&e.turn.turn("center",e.next)},_touchStart:function(){var t=this.data();for(var e in t.pages)if(_(e,t.pages)&&l._eventStart.apply(t.pages[e],arguments)===!1)return!1},_touchMove:function(){var t=this.data();for(var e in t.pages)_(e,t.pages)&&l._eventMove.apply(t.pages[e],arguments)},_touchEnd:function(){var t=this.data();for(var e in t.pages)_(e,t.pages)&&l._eventEnd.apply(t.pages[e],arguments)},calculateZ:function(t){var e,a,i,r,s,o=this,h=this.data(),f=this.turn("view"),c=f[0]||f[1],g=t.length-1,v={pageZ:{},partZ:{},pageV:{}},k=function(z){var m=o.turn("view",z);m[0]&&(v.pageV[m[0]]=!0),m[1]&&(v.pageV[m[1]]=!0)};for(e=0;e<=g;e++)a=t[e],i=h.pages[a].data().f.opts.next,r=h.pagePlace[a],k(a),k(i),s=h.pagePlace[i]==i?i:a,v.pageZ[s]=h.totalPages-Math.abs(c-s),v.partZ[r]=h.totalPages*2-g+e;return v},update:function(){var t,e=this.data();if(this.turn("animating")&&e.pageMv[0]!==0){var a,i,r=this.turn("c
1alculateZ",e.pageMv),s=this.turn("corner"),o=this.turn("view"),h=this.turn("view",e.tpage);for(t in e.pageWrap)_(t,e.pageWrap)&&(i=e.pageObjs[t].hasClass("fixed"),e.pageWrap[t].css({display:r.pageV[t]||i?"":"none",zIndex:(e.pageObjs[t].hasClass("hard")?r.partZ[t]:r.pageZ[t])||(i?-1:0)}),(a=e.pages[t])&&(a.flip("z",r.partZ[t]||null),r.pageV[t]&&a.flip("resize"),e.tpage?a.flip("hover",!1).flip("disable",n.inArray(parseInt(t,10),e.pageMv)==-1&&t!=h[0]&&t!=h[1]):a.flip("hover",s===!1).flip("disable",t!=o[0]&&t!=o[1])))}else for(t in e.pageWrap)if(_(t,e.pageWrap)){var f=d._setPageLoc.call(this,t);e.pages[t]&&e.pages[t].flip("disable",e.disabled||f!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var t,e,a,i=this.data(),r=this.width(),s=this.height(),o=i.display=="single"?r:r/2;t=this.turn("view"),i.shadow||(i.shadow=n("<div />",{class:"shadow",css:P(0,0,0).css}).appendTo(this));for(var h=0;h<i.pageMv.length&&!(!t[0]||!t[1]);h++)t=this.turn("view",i.pages[i.pageMv[h]].data().f.opts.next),e=this.turn("view",i.pageMv[h]),t[0]=t[0]&&e[0],t[1]=t[1]&&e[1];switch(t[0]?t[1]?a=3:a=i.direction=="ltr"?2:1:a=i.direction=="ltr"?1:2,a){case 1:i.shadow.css({width:o,height:s,top:0,left:o});break;case 2:i.shadow.css({width:o,height:s,top:0,left:0});break;case 3:i.shadow.css({width:r,height:s,top:0,left:0});break}},_setPageLoc:function(t){var e=this.data(),a=this.turn("view"),i=0;if(t==a[0]||t==a[1]?i=1:(e.display=="single"&&t==a[0]+1||e.display=="double"&&t==a[0]-2||t==a[1]+2)&&(i=2),!this.turn("animating"))switch(i){case 1:e.pageWrap[t].css({zIndex:e.totalPages,display:""});break;case 2:e.pageWrap[t].css({zIndex:e.totalPages-1,display:""});break;case 0:e.pageWrap[t].css({zIndex:0,display:e.pageObjs[t].hasClass("fixed")?"":"none"});break}return i},options:function(t){if(t===void 0)return this.data().opts;var e=this.data();if(n.extend(e.opts,t),t.pages&&this.turn("pages",t.pages),t.page&&this.turn("page",t.page),t.display&&this.turn("display",t.display),t.direction&&this.turn("direction",t.direction),t.width&&t.height&&this.turn("size",t.width,t.height),t.when)for(var a in t.when)_(a,t.when)&&this.unbind(a).bind(a,t.when[a]);return this},version:function(){return K}},l={init:function(t){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",t),l._addPageWrapper.call(this),this},setData:function(t){var e=this.data();return e.f=n.extend(e.f,t),this},options:function(t){var e=this.data().f;return t?(l.setData.call(this,{opts:n.extend({},e.opts||ft,t)}),this):e.opts},z:function(t){var e=this.data().f;return e.opts["z-index"]=t,e.fwrapper&&e.fwrapper.css({zIndex:t||parseInt(e.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var t=this.data().f,e=t.opts.page,a=t.opts.turn.data(),i=e%2;return t.effect=="hard"?a.direction=="ltr"?[i?"r":"l"]:[i?"l":"r"]:a.display=="single"?e==1?a.direction=="ltr"?y.forward:y.backward:e==a.totalPages?a.direction=="ltr"?y.backward:y.forward:y.all:a.direction=="ltr"?y[i?"forward":"backward"]:y[i?"backward":"forward"]},_cornerActivated:function(t){var e=this.data().f,a=this.width(),i=this.height(),r={x:t.x,y:t.y,corner:""}
1,s=e.opts.cornerSize;if(r.x<=0||r.y<=0||r.x>=a||r.y>=i)return!1;var o=l._cAllowed.call(this);switch(e.effect){case"hard":if(r.x>a-s)r.corner="r";else if(r.x<s)r.corner="l";else return!1;break;case"sheet":if(r.y<s)r.corner+="t";else if(r.y>=i-s)r.corner+="b";else return!1;if(r.x<=s)r.corner+="l";else if(r.x>=a-s)r.corner+="r";else return!1;break}return!r.corner||n.inArray(r.corner,o)==-1?!1:r},_isIArea:function(t){var e=this.data().f.parent.offset();return t=S&&t.originalEvent?t.originalEvent.touches[0]:t,l._cornerActivated.call(this,{x:t.pageX-e.left,y:t.pageY-e.top})},_c:function(t,e){switch(e=e||0,t){case"tl":return u(e,e);case"tr":return u(this.width()-e,e);case"bl":return u(e,this.height()-e);case"br":return u(this.width()-e,this.height()-e);case"l":return u(e,0);case"r":return u(this.width()-e,0)}},_c2:function(t){switch(t){case"tl":return u(this.width()*2,0);case"tr":return u(-this.width(),0);case"bl":return u(this.width()*2,this.height());case"br":return u(-this.width(),this.height());case"l":return u(this.width()*2,0);case"r":return u(-this.width(),0)}},_foldingPage:function(){var t=this.data().f;if(t){var e=t.opts;if(e.turn)return t=e.turn.data(),t.display=="single"?e.next>1||e.page>1?t.pageObjs[0]:null:t.pageObjs[e.next]}},_backGradient:function(){var t=this.data().f,e=t.opts.turn.data(),a=e.opts.gradients&&(e.display=="single"||t.opts.page!=2&&t.opts.page!=e.totalPages-1);
1return a&&!t.bshadow&&(t.bshadow=n("<div/>",P(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(t.parent)),a},type:function(){return this.data().f.effect},resize:function(t){var e=this.data().f,a=e.opts.turn.data(),i=this.width(),r=this.height();switch(e.effect){case"hard":t&&(e.wrapper.css({width:i,height:r}),e.fpage.css({width:i,height:r}),a.opts.gradients&&(e.ashadow.css({width:i,height:r}),e.bshadow.css({width:i,height:r})));break;case"sheet":if(t){var s=Math.round(Math.sqrt(Math.pow(i,2)+Math.pow(r,2)));e.wrapper.css({width:s,height:s}),e.fwrapper.css({width:s,height:s}).children(":first-child").css({width:i,height:r}),e.fpage.css({width:i,height:r}),a.opts.gradients&&e.ashadow.css({width:i,height:r}),l._backGradient.call(this)&&e.bshadow.css({width:i,height:r})}if(e.parent.is(":visible")){var o=gt(e.parent[0]);e.fwrapper.css({top:o.top,left:o.left}),o=gt(e.opts.turn[0]),e.fparent.css({top:-o.top,left:-o.left})}this.flip("z",e.opts["z-index"]);break}},_addPageWrapper:function(){var t=this.data().f,e=t.opts.turn.data(),a=this.parent();if(t.parent=a,!t.wrapper)switch(t.effect){case"hard":var i={};i[O+"transform-style"]="preserve-3d",i[O+"backface-visibility"]="hidden",t.wrapper=n("<div/>",P(0,0,2)).css(i).appendTo(a).prepend(this),t.fpage=n("<div/>",P(0,0,1)).css(i).appendTo(a),e.opts.gradients&&(t.ashadow=n("<div/>",P(0,0,0)).hide().appendTo(a),t.bshadow=n("<div/>",P(0,0,0)));break;case"sheet":if(this.width(),this.height(),t.fparent=t.opts.turn.data().fparent,!t.fparent){var r=n("<div/>",{css:{"pointer-events":"none"}}).hide();r.data().flips=0,r.css(P(0,0,"auto","visible").css).appendTo(t.opts.turn),t.opts.turn.data().fparent=r,t.fparent=r}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),t.wrapper=n("<div/>",P(0,0,this.css("z-index"))).appendTo(a).prepend(this),t.fwrapper=n("<div/>",P(a.offset().top,a.offset().left)).hide().appendTo(t.fparent),t.fpage=n("<div/>",P(0,0,0,"visible")).css({cursor:"default"}).appendTo(t.fwrapper),e.opts.gradients&&(t.ashadow=n("<div/>",P(0,0,1)).appendTo(t.fpage)),l.setData.call(this,t);break}l.resize.call(this,!0)},_fold:function(t){var e=this.data().f,a=e.opts.turn.data(),i=l._c.call(this,t.corner),r=this.width(),s=this.height();switch(e.effect){case"hard":t.corner=="l"?t.x=Math.min(Math.max(t.x,0),r*2):t.x=Math.max(Math.min(t.x,r),-r);var o,h,f,c,g,v=a.totalPages,k=e.opts["z-index"]||v,z={overflow:"visible"},m=i.x?(i.x-t.x)/r:t.x/r,D=m*90,E=D<90;switch(t.corner){case"l":c="0% 50%",g="100% 50%",E?(o=0,h=e.opts.next-1>0,f=1):(o="100%",h=e.opts.page+1<v,f=0);break;case"r":c="100% 50%",g="0% 50%",D=-D,r=-r,E?(o=0,h=e.opts.next+1<v,f=0):(o="-100%",h=e.opts.page!=1,f=1);break}z[O+"perspective-origin"]=g,e.wrapper.transform("rotateY("+D+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",g),e.fpage.transform("translateX("+r+"px) rotateY("+(180+D)+"deg)",c),e.parent.css(z),E?(m=-m+1,e.wrapper.css({zIndex:k+1}),e.fpage.css({zIndex:k})):(m=m-1,e.wrapper.css({zIndex:k}),e.fpage.css({zIndex:k+1})),a.opts.gradients&&(h?e.ashadow.css({display:"",left:o,backgroundColor:"rgba(0,0,0,"+.5*m+")"}).transform("rotateY(0deg)"):e.ashadow.hide(),e.bshadow.css({opacity:-m+1}),E?e.bshadow.parent()[0]!=e.wrapper[0]&&e.bshadow.appendTo(e.wrapper):e.bshadow.parent()[0]!=e.fpage[0]&&e.bshadow.appendTo(e.fpage),ct(e.bshadow,u(f*100,0),u((-f+1)*100,0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var R=this,Z=0,pt,q,L,st,F,nt,yt,W=u(0,0),vt=u(0,0),b=u(0,0),zt=l._foldingPage.call(this),ot=a.opts.acceleration,wt=e.wrapper.height(),Q=t.corner.substr(0,1)=="t",H=t.corner.substr(1,1)=="l",$=function(){var w=u(0,0),M=u(0,0);w.x=i.x?i.x-t.x:t.x,it?w.y=i.y?i.y-t.y:t.y:w.y=0,M.x=H?r-w.x/2:t.x+w.x/2,M.y=w.y/2;var p=I-Math.atan2(w.y,w.x),j=p-Math.atan2(M.y,M.x),Y=Math.max(0,Math.sin(j)*Math.sqrt(Math.pow(M.x,2)+Math.pow(M.y,2)));if(Z=_t(p),b=u(Y*Math.sin(p),Y*Math.cos(p)),p>I&&(b.x=b.x+Math.abs(b.y*w.y/w.x),b.y=0,Math.round(b.x*Math.tan(x-p))<s))return t.y=Math.sqrt(Math.pow(s,2)+2*M.x*w.x),Q&&(t.y=s-t.y),$();if(p>I){var N=x-p,tt=wt-s/Math.sin(N);W=u(Math.round(tt*Math.cos(N)),Math.round(tt*Math.sin(N))),H&&(W.x=-W.x),Q&&(W.y=-W.y)}pt=Math.round(b.y/Math.tan(p)+b.x);var G=r-pt,et=G*Math.cos(p*2),at=G*Math.sin(p*2);if(vt=u(Math.round(H?G-et:pt+et),Math.round(Q?at:s-at)),a.opts.gradients){F=G*Math.sin(p);var J=l._c2.call(R,t.corner),dt=Math.sqrt(Math.pow(J.x-t.x,2)+Math.pow(J.y-t.y,2))/r;yt=Math.sin(I*(dt>1?2-dt:dt)),nt=Math.min(dt,1),st=F>100?(F-100)/F:0,q=u(F*Math.sin(p)/r*100,F*Math.cos(p)/s*100),l._backGradient.call(R)&&
1(L=u(F*1.2*Math.sin(p)/r*100,F*1.2*Math.cos(p)/s*100),H||(L.x=100-L.x),Q||(L.y=100-L.y))}return b.x=Math.round(b.x),b.y=Math.round(b.y),!0},ht=function(w,M,p,j){var Y=["0","auto"],N=(r-wt)*p[0]/100,tt=(s-wt)*p[1]/100,G={left:Y[M[0]],top:Y[M[1]],right:Y[M[2]],bottom:Y[M[3]]},et={},at=j!=90&&j!=-90?H?-1:1:0,J=p[0]+"% "+p[1]+"%";R.css(G).transform(B(j)+V(w.x+at,w.y,ot),J),e.fpage.css(G).transform(B(j)+V(w.x+vt.x-W.x-r*p[0]/100,w.y+vt.y-W.y-s*p[1]/100,ot)+B((180/j-2)*j),J),e.wrapper.transform(V(-w.x+N-at,-w.y+tt,ot)+B(-j),J),e.fwrapper.transform(V(-w.x+W.x+N,-w.y+W.y+tt,ot)+B(-j),J),a.opts.gradients&&(p[0]&&(q.x=100-q.x),p[1]&&(q.y=100-q.y),et["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*yt+")",zt.css(et),ct(e.ashadow,u(H?100:0,Q?0:100),u(q.x,q.y),[[st,"rgba(0,0,0,0)"],[(1-st)*.8+st,"rgba(0,0,0,"+.2*nt+")"],[1,"rgba(255,255,255,"+.2*nt+")"]],3),l._backGradient.call(R)&&ct(e.bshadow,u(H?0:100,Q?0:100),u(L.x,L.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*nt+")"],[1,"rgba(0,0,0,0)"]],3))};switch(t.corner){case"l":break;case"r":break;case"tl":t.x=Math.max(t.x,1),$(),ht(b,[1,0,0,1],[100,0],Z);break;case"tr":t.x=Math.min(t.x,r-1),$(),ht(u(-b.x,b.y),[0,0,0,1],[0,0],-Z);break;case"bl":t.x=Math.max(t.x,1),$(),ht(u(b.x,-b.y),[1,1,0,0],[100,100],-Z);break;case"br":t.x=Math.min(t.x,r-1),$(),ht(u(-b.x,-b.y),[0,1,1,0],[0,100],Z);break}break}e.point=t},_moveFoldingPage:function(t){var e=this.data().f;if(e){var a=e.opts.turn,i=a.data(),r=i.pagePlace;if(t){var s=e.opts.next;if(r[s]!=e.opts.page){e.folding&&l._moveFoldingPage.call(this,!1);var o=l._foldingPage.call(this);o.appendTo(e.fpage),r[s]=e.opts.page,e.folding=s}a.turn("update")}else if(e.folding){if(i.pages[e.folding]){var h=i.pages[e.folding].data().f;i.pageObjs[e.folding].appendTo(h.wrapper)}else i.pageWrap[e.folding]&&i.pageObjs[e.folding].appendTo(i.pageWrap[e.folding]);e.folding in r&&(r[e.folding]=e.folding),delete e.folding}}},_showFoldedPage:function(t,e){var a=l._foldingPage.call(this),i=this.data(),r=i.f,s=r.visible;if(a){if(!s||!r.point||r.point.corner!=t.corner){var o=r.status=="hover"||r.status=="peel"||r.opts.turn.data().mouseAction?t.corner:null;if(s=!1,X("start",this,[r.opts,o])=="prevented")return!1}if(e){var h=this,f=r.point&&r.point.corner==t.corner?r.point:l._c.call(this,t.corner,1);this.animatef({from:[f.x,f.y],to:[t.x,t.y],duration:500,frame:function(c){t.x=Math.round(c[0]),t.y=Math.round(c[1]),l._fold.call(h,t)}})}else l._fold.call(this,t),i.effect&&!i.effect.turning&&this.animatef(!1);if(!s)switch(r.effect){case"hard":r.visible=!0,l._moveFoldingPage.call(this,!0),r.fpage.show(),r.opts.shadows&&r.bshadow.show();break;case"sheet":r.visible=!0,r.fparent.show().data().flips++,l._moveFoldingPage.call(this,!0),r.fwrapper.show(),r.bshadow&&r.bshadow.show();break}return!0}return!1},hide:function(){var t=this.data().f,e=t.opts.turn.data(),a=l._foldingPage.call(this);switch(t.effect){case"hard":e.opts.gradients&&(t.bshadowLoc=0,t.bshadow.remove(),t.ashadow.hide()),t.wrapper.transform(""),t.fpage.hide();break;case"sheet":--t.fparent.data().flips===0&&t.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),t.wrapper.transform(""),t.fwrapper.hide(),t.bshadow&&t.bshadow.hide(),a.transform("");break}return t.visible=!1,this},hideFoldedPage:function(t){var e=this.data().f;if(e.point){var a=this,i=e.point,r=function(){e.point=null,e.status="",a.flip("hide"),a.trigger("end",[e.opts,!1])};if(t){var s=l._c.call(this,i.corner),o=i.corner.substr(0,1)=="t",h=o?Math.min(0,i.y-s.y)/2:Math.max(0,i.y-s.y)/2,f=u(i.x,i.y+h),c=u(s.x,s.y-h);this.animatef({from:0,to:1,frame:function(g){var v=mt(i,f,c,s,g);i.x=v.x,i.y=v.y,l._fold.call(a,i)},complete:r,duration:800,hiding:!0})}else this.animatef(!1),r()}},turnPage:function(t){var e=this,a=this.data().f,i=a.opts.turn.data();t={corner:a.corner?a.corner.corner:t||l._cAllowed.call(this)[0]};var r=a.point||l._c.call(this,t.corner,a.opts.turn?i.opts.elevation:0),s=l._c2.call(this,t.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(o){var h=mt(r,r,s,s,o);t.x=h.x,t.y=h.y,l._showFoldedPage.call(e,t)},complete:function(){e.trigger("end",[a.opts,!0])},duration:i.opts.duration,turning:!0}),a.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(t){var e=this.data().f,a=e.opts.turn;if(!e.corner&&!e.disabled&&!this.flip("isTurning")&&e.opts.page==a.data().pagePlace[e.opts.page]){
1if(e.corner=l._isIArea.call(this,t),e.corner&&l._foldingPage.call(this))return this.trigger("pressed",[e.point]),l._showFoldedPage.call(this,e.corner),!1;e.corner=null}},_eventMove:function(t){var e=this.data().f;if(!e.disabled){if(t=S?t.originalEvent.touches:[t],e.corner){var a=e.parent.offset();e.corner.x=t[0].pageX-a.left,e.corner.y=t[0].pageY-a.top,l._showFoldedPage.call(this,e.corner)}else if(e.hover&&!this.data().effect&&this.is(":visible")){var i=l._isIArea.call(this,t[0]);if(i){if(e.effect=="sheet"&&i.corner.length==2||e.effect=="hard"){e.status="hover";var r=l._c.call(this,i.corner,e.opts.cornerSize/2);i.x=r.x,i.y=r.y,l._showFoldedPage.call(this,i,!0)}}else e.status=="hover"&&(e.status="",l.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var t=this.data().f,e=t.corner;!t.disabled&&e&&X("released",this,[t.point||e])!="prevented"&&l.hideFoldedPage.call(this,!0),t.corner=null},disable:function(t){return l.setData.call(this,{disabled:t}),this},hover:function(t){return l.setData.call(this,{hover:t}),this},peel:function(t,e){var a=this.data().f;if(t){if(n.inArray(t,y.all)==-1)throw A("Corner "+t+" is not permitted");if(n.inArray(t,l._cAllowed.call(this))!=-1){var i=l._c.call(this,t,a.opts.cornerSize/2);a.status="peel",l._showFoldedPage.call(this,{corner:t,x:i.x,y:i.y},e)}}else a.status="",l.hideFoldedPage.call(this,e);return this}};function bt(t,e,a){if(!a[0]||typeof a[0]=="object")return e.init.apply(t,a);if(e[a[0]])return e[a[0]].apply(t,Array.prototype.slice.call(a,1));throw A(a[0]+" is not a method or property")}function P(t,e,a,i){return{css:{position:"absolute",top:t,left:e,overflow:i||"hidden",zIndex:a||"auto"}}}function mt(t,e,a,i,r){var s=1-r,o=s*s*s,h=r*r*r;return u(Math.round(o*t.x+3*r*s*s*e.x+3*r*r*s*a.x+h*i.x),Math.round(o*t.y+3*r*s*s*e.y+3*r*r*s*a.y+h*i.y))}function _t(t){return t/x*180}function u(t,e){return{x:t,y:e}}function Mt(){var t;if(t=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var e=parseFloat(t[1]);return e>534.3}else return!0}function V(t,e,a){return C&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function B(t){return" rotate("+t+"deg) "}function _(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function xt(){for(var t=["Moz","Webkit","Khtml","O","ms"],e=t.length,a="";e--;)t[e]+"Transform"in document.body.style&&(a="-"+t[e].toLowerCase()+"-");return a}function Pt(){var t,e=document.createElement("fakeelement"),a={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in a)if(e.style[t]!==void 0)return a[t]}function ct(t,e,a,i,r){var s,o=[];if(O=="-webkit-"){for(s=0;s<r;s++)o.push("color-stop("+i[s][0]+", "+i[s][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+o.join(",")+" )"})}else{e={x:e.x/100*t.width(),y:e.y/100*t.height()},a={x:a.x/100*t.width(),y:a.y/100*t.height()};var h=a.x-e.x,f=a.y-e.y,c=Math.atan2(f,h),g=c-Math.PI/2,v=Math.abs(t.width()*Math.sin(g))+Math.abs(t.height()*Math.cos(g)),k=Math.sqrt(f*f+h*h),z=u(a.x<e.x?t.width():0,a.y<e.y?t.height():0),m=Math.tan(c),D=-1/m,E=(D*z.x-z.y-m*e.x+e.y)/(D-m),R={x:E,y:D*E-D*z.x+z.y},Z=Math.sqrt(Math.pow(R.x-e.x,2)+Math.pow(R.y-e.y,2));for(s=0;s<r;s++)o.push(" "+i[s][1]+" "+(Z+k*i[s][0])*100/v+"%");t.css({"background-image":O+"linear-gradient("+-c+"rad,"+o.join(",")+")"})}}function X(t,e,a){var i=n.Event(t);return e.trigger(i,a),i.isDefaultPrevented()?"prevented":i.isPropagationStopped()?"stopped":""}function A(t){function e(a){this.name="TurnJsError",this.message=a}return e.prototype=new Error,e.prototype.constructor=e,new e(t)}function gt(t){var e={top:0,left:0};do e.left+=t.offsetLeft,e.top+=t.offsetTop;while(t=t.offsetParent);return e}function kt(){return navigator.userAgent.indexOf("MSIE 9.0")==-1}window.requestAnim=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}(),n.extend(n.fn,{flip:function(){return bt(n(this[0]),l,arguments)},turn:function(){return bt(n(this[0]),d,arguments)},transform:function(t,e){var a={};return e&&(a[O+"transform-origin"]=e),a[O+"transform"]=t,this.css(a)},animatef:function(t){var e=this.data();if(e.effect&&e.effect.stop(),t){t.to.length||(t.to=[t.to]),t.from.length||(t.from=[t.from]);for(var a=[],i=t.to.length,r=!0,s=this,o=new Date().getTime(),h=function(){if(!(!e.effect||!r)){for(var c=[],g=Math.min(t.duration,new Date().getTime()-o),v=0;v<i;v++)c.push(e.effect.easing(1,g,t.from[v],a[v],t.duration));t.frame(i==1?c[0]:c),g==t.duration?(delete e.effect,s.data(e),t.complete&&t.complete()):window.requestAnim(h)}},f=0;f<i;f++)a.push(t.to[f]-t.from[f]);e.effect=n.extend({stop:function(){r=!1},easing:function(c,g,v,k,z){return k*Math.sqrt(1-(g=g/z-1)*g)+v}},t),this.data(e),h()}else delete e.effect}}),n.isTouch=S,n.mouseEvents=T,n.cssPrefix=xt,n.cssTransitionEnd=Pt,n.findPos=gt})(jQuery);jQuery(function(n){n(".sno-pdf-flipbook-canvas").each(function(it,O){const K=n(O),x=K.find("#sno-flipbook"),I=K.
1closest(".sno-pdf-flipbook-canvas").width(),S=x.data("aspect-ratio"),T=K.find(".sno-flipbook-arrow-left"),y=K.find(".sno-flipbook-arrow-right");x.turn({width:I-62,height:(I-62)/S,elevation:50,gradients:!1,autoCenter:!0}),x.bind("turning",function(U,rt){const lt=rt==1,ft=rt==n(this).turn("pages");lt?T.addClass("disabled"):T.removeClass("disabled"),ft?y.addClass("disabled"):y.removeClass("disabled")}),x.addClass("animated"),T.click(function(){x.turn("previous")}),y.click(function(){x.turn("next")}),window.addEventListener("keydown",U=>{U.key=="ArrowLeft"&&x.turn("previous"),U.key=="ArrowRight"&&x.turn("next")})})});
2//# sourceMappingURL=frontend-e2851975.js.map

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.