PageSourceSearch

https://irannationalmuseum.ir/en/wp-content/plugins/spin360/scripts/spritespin.min.js

js irannationalmuseum.ir collected 2026-09-24 21:21:35 UTC 25,830 bytes, 1 lines download raw bytes

1var isinFullscreen=!1,version="3.4.2.2";!function(e){"use strict";function t(e,t){for(var n in b)if(b.hasOwnProperty(n)){var a,i,r=b[n];for(a=0;a<r.mods.length;a+=1)i=r.mods[a],"function"==typeof i[e]&&i[e].apply(r.target,[t,r])}}function n(n){e(window.document).bind(n+"."+w,function(e){t("document"+n,e)})}function a(){for(var e in b)if(b.hasOwnProperty(e)){var t=b[e];t.responsive&&!isinFullscreen&&v.boot(t)}}function i(e){S+=1,e.id=S,b[S]=e}function r(e){delete b[e.id]}function o(e,t,n){for(e+="";e.length<t;)e=n+""+e;return e}function s(e,t,n){return e>n?n:t>e?t:e}function u(e,t,n,a){for(;e>n;)e-=a;for(;t>e;)e+=a;return e}function c(e){return e.preventDefault(),!1}function l(){window.console&&window.console.log&&window.console.log.apply(window.console,arguments)}function d(e,t,n){n&&e.bind(t+"."+w,function(t){n.apply(e,[t,e.spritespin("data")])})}function m(e){e.unbind("."+w)}function g(t){var n,a,i="string"==typeof t.source?[t.source]:t.source,r=0,o=[],s=t.preloadCount||i.length,u=!1,c=!1,l=function(){r+=1,"function"==typeof t.progress&&t.progress({index:e.inArray(this,o),loaded:r,total:i.length,percent:Math.round(r/i.length*100)}),c=c||this===o[0],u||s>r||!c||"function"!=typeof t.complete||(u=!0,t.complete(o))};for(n=0;n<i.length;n+=1)a=new Image,o.push(a),a.onload=a.onabort=a.onerror=l,a.src=i[n];"function"==typeof t.initiated&&t.initiated(o)}function h(e,t){var n=(t||e).width,a=(t||e).height;if(1048576>=n*a)return!1;var i;if(i=document.createElement("canvas"),!i||!i.getContext)return!1;var r=i.getContext("2d");if(!r)return!1;i.width=i.height=1,r.fillStyle="#FF00FF",r.fillRect(0,0,1,1),r.drawImage(e,-n+1,0);try{var o=r.getImageData(0,0,1,1).data;return 255===o[0]&&0===o[1]&&255===o[2]}catch(s){return l(s.message,s.stack),!1}}function f(e){if(null!=e.naturalWidth)return{width:e.naturalWidth,height:e.naturalHeight};var t=new Image;return t.src=e.src,{width:t.width,height:t.height}}function p(e){var t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}var w="spritespin",v={};window.SpriteSpin=v,v.namespace=w,v.mods={},v.eventNames=["mousedown","mousemove","mouseup","mouseenter","mouseover","mouseleave","dblclick","mousewheel","touchstart","touchmove","touchend","touchcancel","selectstart","gesturestart","gesturechange","gestureend"],v.eventsToPrevent=["dragstart"],v.defaults={source:void 0,width:void 0,height:void 0,frames:void 0,framesX:void 0,lanes:1,sizeMode:void 0,module:"360",behavior:"drag",renderer:"canvas",lane:0,frame:0,frameTime:40,animate:!0,reverse:!1,loop:!0,stopFrame:0,wrap:!0,wrapLane:!1,sense:1,senseLane:void 0,orientation:"horizontal",detectSubsampling:!0,scrollThreshold:50,preloadCount:void 0,onInit:void 0,onProgress:void 0,onLoad:void 0,onFrame:void 0,onDraw:void 0};var S=0,b={};v.instances=b;var y=null;e(window).on("resize",function(){clearTimeout(y),y=setTimeout(a,100)});for(var F=0;F<v.eventNames.length;F+=1)n(v.eventNames[F]);v.clamp=s,v.wrap=u,v.bind=d,v.sourceArray=function(e,t){var n=0,a=0,i=0,r=0,s=t.digits||2;t.frame&&(n=t.frame[0],a=t.frame[1]),t.lane&&(i=t.lane[0],r=t.lane[1]);var u,c,l,d=[];for(u=i;r>=u;u+=1)for(c=n;a>=c;c+=1)l=e.replace("{lane}",o(u,s,0)),l=l.replace("{frame}",o(c,s,0)),d.push(l);return d},v.measureSource=function(e){var t=e.images[0],n=f(t);if(1===e.images.length){if(e.sourceWidth=n.width,e.sourceHeight=n.height,e.detectSubsampling&&h(t,n)&&(e.sourceWidth/=2,e.sourceHeight/=2),e.framesX=e.framesX||e.frames,!e.frameWidth||!e.frameHeight)if(e.framesX){e.frameWidth=Math.floor(e.sourceWidth/e.framesX);var a=Math.ceil(e.frames*e.lanes/e.framesX);e.frameHeight=Math.floor(e.sourceHeight/a)}else e.frameWidth=n.width,e.frameHeight=n.height}else e.sourceWidth=e.frameWidth=n.width,e.sourceHeight=e.frameHeight=n.height,h(t,n)&&(e.sourceWidth=e.frameWidth=n.width/2,e.sourceHeight=e.frameHeight=n.height/2),e.frames=e.frames||e.images.length},v.resetInput=function(e){e.startX=e.startY=void 0,e.currentX=e.currentY=void 0,e.oldX=e.oldY=void 0,e.dX=e.dY=e.dW=0,e.ddX=e.ddY=e.ddW=0},v.updateInput=function(e,t){void 0===e.touches&&void 0!==e.originalEvent&&(e.touches=e.originalEvent.touches),t.oldX=t.currentX,t.oldY=t.currentY,void 0!==e.touches&&e.touches.length>0?(t.currentX=e.touches[0].clientX||0,t.currentY=e.touches[0].clientY||0):(t.currentX=e.clientX||0,t.currentY=e.clientY||0),(void 0===t.oldX||void 0===t.oldY)&&(t.oldX=t.currentX,t.oldY=t.currentY),(void 0===t.startX||void 0===t.startY)&&(t.startX=t.currentX,t.startY=t.currentY,t.clickframe=t.frame,t.clicklane=t.lane),t.dX=t.currentX-t.startX,t.dY=t.currentY-t.startY,t.ddX=t.currentX-t.oldX,t.ddY=t.currentY-t.oldY,t.ndX=t.dX/t.width,t.ndY=t.dY/t.height,t.nddX=t.ddX/t.width,t.nddY=t.ddY/t.height},v.updateFrame=function(e,t,n){e.lastFrame=e.frame,e.lastLane=e.lane,void 0!==t?e.frame=+t:e.animation&&(e.frame+=e.reverse?-1:1),e.animation?(e.frame=u(e.frame,0,e.frames-1,e.frames),e.loop||e.frame!==e.stopFrame||v.stopAnimation(e)):e.frame=e.wrap?u(e.frame,0,e.frames-1,e.frames):s(e.frame,0,e.frames-1),void 0!==n&&(e.lane=n,e.lane=e.wrapLane?u(e.lane,0,e.lanes-1,e.lanes):s(e.lane,0,e.lanes-1)),(e.lastFrame!=e.frame||e.lastLane!=e.lane)&&e.target.trigger("onFrameChanged",e),e.target.trigger("onFrame",e),e.target.trigger("onDraw",e)},v.stopAnimation=function(e){e.animate=!1,e.animation&&(window.clearInterval(e.animation),e.animation=null)},v.setAnimation=function(e){e.animate?v.requestFrame(e):v.stopAnimation(e)},v.requestFrame=function(e){e.animation||(void 0===e.frameFunction&&(e.frameFunction=function(){try{v.updateFrame(e)}catch(t){}}),e.animation=window.setInterval(e.frameFunction,e.frameTime))},v.setModules=function(t){var n,a,i;for(n=0;n<t.mods.length;n+=1)a=t.mods[n],"string"==typeof a&&(i=v.mods[a],i?t.mods[n]=i:e.error("No module found with name "+a))},v.displaySize=function(e){var t=Math.floor(e.width||e.frameWidth||e.target.innerWidth()),n=Math.floor(e.height||e.frameHeight||e.target.innerHe
1ight()),a=t/n;return{width:t,height:n,aspect:a}},v.calculateInnerLayout=function(e){var t=Math.floor(e.width||e.frameWidth||e.target.innerWidth()),n=Math.floor(e.height||e.frameHeight||e.target.innerHeight()),a=t/n,i=e.frameWidth||t,r=e.frameHeight||n,o=i/r,s={width:"100%",height:"100%",top:0,left:0,bottom:0,right:0,position:"absolute",overflow:"hidden"},u=e.sizeMode;return u&&"scale"!=u?("original"==u?(s.width=i,s.height=r):"fit"==u?a>o?(s.height=n,s.width=n*o):(s.width=t,s.height=t/o):"fill"==u?a>o?(s.width=t,s.height=t/o):(s.height=n,s.width=n*o):(s.width=t,s.height=n),s.width=0|s.width,s.height=0|s.height,s.top=(n-s.height)/2|0,s.left=(t-s.width)/2|0,s.right=s.left,s.bottom=s.top,s):s},v.setLayout=function(e){e.target.attr("unselectable","on").css({width:"",height:"","-ms-user-select":"none","-moz-user-select":"none","-khtml-user-select":"none","-webkit-user-select":"none","user-select":"none"});var t=Math.floor(e.width||e.frameWidth||e.target.innerWidth()),n=Math.floor(e.height||e.frameHeight||e.target.innerHeight());if(e.responsive&&"function"==typeof window.getComputedStyle&&!isinFullscreen){var a=getComputedStyle(e.target[0]);if(a.width){var i=t/n;t=0|+a.width.replace("px",""),n=t/i|0}}e.target.css({width:t,height:n,position:"relative",overflow:"hidden"});var r=v.calculateInnerLayout(e);e.stage.css(r).hide(),e.canvas&&(e.canvasRatio=e.canvasRatio||p(e.context),e.canvas[0].width=r.width*e.canvasRatio||t,e.canvas[0].height=r.height*e.canvasRatio||n,e.canvas.css(r).hide(),e.context.scale(e.canvasRatio,e.canvasRatio))},v.setEvents=function(e){var t,n,a,i=e.target;for(m(i),n=0;n<v.eventsToPrevent.length;n+=1)d(i,v.eventsToPrevent[n],c);for(t=0;t<e.mods.length;t+=1){for(a=e.mods[t],n=0;n<v.eventNames.length;n+=1)d(i,v.eventNames[n],a[v.eventNames[n]]);d(i,"onInit",a.onInit),d(i,"onProgress",a.onProgress),d(i,"onLoad",a.onLoad),d(i,"onFrameChanged",a.onFrameChanged),d(i,"onFrame",a.onFrame),d(i,"onDraw",a.onDraw)}d(i,"onLoad",function(e,t){v.setAnimation(t)}),d(i,"onInit",e.onInit),d(i,"onProgress",e.onProgress),d(i,"onLoad",e.onLoad),d(i,"onFrameChanged",a.onFrameChanged),d(i,"onFrame",e.onFrame),d(i,"onDraw",e.onDraw)},v.boot=function(e){v.setModules(e),v.setLayout(e),v.setEvents(e),e.target.addClass("loading").trigger("onInit",e),e.loading=!0,g({source:e.source,preloadCount:e.preloadCount,progress:function(t){e.target.trigger("onProgress",[t,e])},complete:function(t){e.images=t,e.loading=!1,v.measureSource(e),v.setLayout(e),e.stage.show(),e.target.removeClass("loading").trigger("onLoad",e).trigger("onFrame",e).trigger("onDraw",e)}})},v.create=function(t){var n=t.target,a=n.data(w);if(a)e.extend(a,t);else{if(a=e.extend({},v.defaults,t),a.source=a.source||[],n.find("img").each(function(){a.source.push(e(this).attr("src"))}),n.empty().addClass("spritespin-instance").append("<div class='spritespin-stage'></div>"),"canvas"===a.renderer){var r=e("<canvas class='spritespin-canvas'></canvas>")[0];r.getContext&&r.getContext("2d")?(a.canvas=e(r),a.context=r.getContext("2d"),n.append(a.canvas),n.addClass("with-canvas")):a.renderer="image"}a.target=n,a.stage=n.find(".spritespin-stage"),n.data(w,a),i(a)}"string"==typeof a.source&&(a.source=[a.source]),a.mods&&(delete a.behavior,delete a.module),(a.behavior||a.module)&&(a.mods=[],a.behavior&&a.mods.push(a.behavior),a.module&&a.mods.push(a.module),delete a.behavior,delete a.module),v.boot(a)},v.destroy=function(e){e&&(r(e),v.stopAnimation(e),m(e.target),e.target.removeData(w))},v.registerModule=function(t,n){return v.mods[t]&&e.error("Module name is already taken: "+t),n=n||{},v.mods[t]=n,n},v.Api=function(e){this.data=e},v.extendApi=function(t){var n,a=v.Api.prototype;for(n in t)t.hasOwnProperty(n)&&(a[n]?e.error("API method is already defined: "+n):a[n]=t[n]);return a},e.fn.spritespin=function(t,n){if("data"===t)return this.data(w);if("api"===t){var a=this.data(w);return a.api=a.api||new v.Api(a),a.api}if("destroy"===t)return e(this).each(function(){v.destroy(e(this).data(w))});if(2===arguments.length&&"string"==typeof t){var i={};i[t]=n,t=i}return"object"==typeof t?(t.target=t.target||e(this),v.create(t),t.target):e.error("Invalid call to spritespin")}}(window.jQuery||window.Zepto||window.$),function(){"use strict";var e=window.SpriteSpin;e.extendApi({isPlaying:function(){return null!==this.data.animation},isLooping:function(){return this.data.loop},toggleAnimation:function(){this.data.animate=!this.data.animate,e.setAnimation(this.data)},stopAnimation:function(){this.data.animate=!1,e.setAnimation(this.data)},startAnimation:function(){this.data.animate=!0,e.setAnimation(this.data)},loop:function(t){return this.data.loop=t,e.setAnimation(this.data),this},currentFrame:function(){return this.data.frame},updateFrame:function(t){return e.updateFrame(this.data,t),this},skipFrames:function(t){var n=this.data;return e.updateFrame(n,n.frame+(n.reverse?-t:+t)),this},nextFrame:function(){return this.skipFrames(1)},prevFrame:function(){return this.skipFrames(-1)},playTo:function(t,n){var a=this.data;if(n=n||{},n.force||a.frame!==t){if(n.nearest){var i=t-a.frame,r=t>a.frame?i-a.frames:i+a.frames,o=Math.abs(i)<Math.abs(r)?i:r;a.reverse=0>o}return a.animate=!0,a.loop=!1,a.stopFrame=t,e.setAnimation(a),this}}})}(window.jQuery||window.Zepto||window.$),function(e){"use strict";function t(e){isinFullscreen=!0,e=e||document.documentElement,e[l.requestFullscreen]()}function n(){return isinFullscreen=!1,document[l.exitFullscreen]()}function a(){return document[l.fullscreenEnabled]}function i(){return document[l.fullscreenElement]}function r(){return!!i()}function o(){e(document).unbind(d)}function s(t){o(),e(document).bind(d,t)}function u(){e(window).unbind(m)}function c(t){u(),e(window).bind(m,t)}var l=function(){for(var e,t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
1webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=0,i=n.length,r={};i>a;a++)if(e=n[a],e&&e[1]in document){for(a=0,t=e.length;t>a;a++)r[n[0][a]]=e[a];return r}return!1}(),d=l.fullscreenchange+"."+SpriteSpin.namespace+"-fullscreen",m="orientationchange."+SpriteSpin.namespace+"-fullscreen";SpriteSpin.extendApi({fullscreenEnabled:a,fullscreenElement:i,exitFullscreen:n,toggleFullscreen:function(e){r()?this.requestFullscreen(e):this.exitFullscreen()},requestFullscreen:function(e){e=e||{};var n=this,a=n.data,i=a.width,l=a.height,d=a.source,m=a.sizeMode,g=function(){a.width=window.screen.width,a.height=window.screen.height,a.source=e.source||d,a.sizeMode=e.sizeMode||"fit",SpriteSpin.boot(a)},h=function(){a.width=i,a.height=l,a.source=d,a.sizeMode=m,SpriteSpin.boot(a)};s(function(){r()?(g(),c(g)):(isinFullscreen=!1,o(),u(),h())}),t(a.target[0])}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(e,n){if(!n.loading&&n.stage.is(":visible")){t.updateInput(e,n);var a,i,r=n.target,o=r.offset();"horizontal"===n.orientation?(a=r.innerWidth()/2,i=n.currentX-o.left):(a=r.innerHeight()/2,i=n.currentY-o.top),t.updateFrame(n,n.frame+(i>a?1:-1))}}t.registerModule("click",{mouseup:n,touchend:n})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(e,n){n.loading||n.dragging||!n.stage.is(":visible")||(n.dragFrame=n.frame||0,n.dragLane=n.lane||0,n.dragging=!0,t.updateInput(e,n))}function a(e,n){n.dragging&&(n.dragging=!1,t.resetInput(n))}function i(e,n){if(n.dragging){if(t.updateInput(e,n),Math.abs(n.ddX)+Math.abs(n.ddY)>n.scrollThreshold)return n.dragging=!1,void t.resetInput(n);e.preventDefault();var a=0;a="number"==typeof n.orientation?(+n.orientation||0)*Math.PI/180:"horizontal"===n.orientation?0:Math.PI/2;var i=Math.sin(a),r=Math.cos(a),o=(n.nddX*r-n.nddY*i)*n.sense||0,s=(n.nddX*i+n.nddY*r)*(n.senseLane||n.sense)||0;n.dragFrame+=n.frames*o,n.dragLane+=n.lanes*s;var u=Math.floor(n.dragFrame),c=Math.floor(n.dragLane);t.updateFrame(n,u,c),t.stopAnimation(n)}}t.registerModule("drag",{mousedown:n,mousemove:i,mouseup:a,documentmousemove:i,documentmouseup:a,touchstart:n,touchmove:i,touchend:a,touchcancel:a}),t.registerModule("move",{mousemove:function(e,t){n.call(this,e,t),i.call(this,e,t)},mouseleave:a,touchstart:n,touchmove:i,touchend:a,touchcancel:a})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(e,n){n.loading||n.dragging||!n.stage.is(":visible")||(t.updateInput(e,n),n.dragging=!0,n.animate=!0,t.setAnimation(n))}function a(e,n){n.dragging=!1,t.resetInput(n),t.stopAnimation(n)}function i(e,n){if(n.dragging){t.updateInput(e,n);var a,i,r=n.target,o=r.offset();"horizontal"===n.orientation?(a=r.innerWidth()/2,i=(n.currentX-o().left-a)/a):(a=n.height/2,i=(n.currentY-o().top-a)/a),n.reverse=0>i,i=0>i?-i:i,n.frameTime=80*(1-i)+20,("horizontal"===n.orientation&&n.dX<n.dY||"vertical"===n.orientation&&n.dX<n.dY)&&e.preventDefault()}}t.registerModule("hold",{mousedown:n,mousemove:i,mouseup:a,mouseleave:a,touchstart:n,touchmove:i,touchend:a,touchcancel:a,onFrame:function(){e(this).spritespin("api").startAnimation()}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(e,t){t.swipeFling=t.swipeFling||10,t.swipeSnap=t.swipeSnap||.5}function a(e,n){n.loading||n.dragging||(t.updateInput(e,n),n.dragging=!0)}function i(e,n){if(n.dragging){t.updateInput(e,n);var a=n.frame,i=n.lane;t.updateFrame(n,a,i)}}function r(e,n){if(n.dragging){n.dragging=!1;var a,i,r=n.frame,o=n.lane,s=n.swipeSnap,u=n.swipeFling;"horizontal"===n.orientation?(a=n.ndX,i=n.ddX):(a=n.ndY,i=n.ddY),a>s||i>u?r=n.frame-1:(-s>a||-u>i)&&(r=n.frame+1),t.resetInput(n),t.updateFrame(n,r,o),t.stopAnimation(n)}}t.registerModule("swipe",{onLoad:n,mousedown:a,mousemove:i,mouseup:r,mouseleave:r,touchstart:a,touchmove:i,touchend:r,touchcancel:r})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(t){var n=t.lane*t.frames+t.frame,a=t.frameWidth*(n%t.framesX),r=t.frameHeight*i(n/t.framesX);if("canvas"===t.renderer){var o=t.canvas[0].width/t.canvasRatio,s=t.canvas[0].height/t.canvasRatio;return t.context.clearRect(0,0,o,s),void t.context.drawImage(t.images[0],a,r,t.frameWidth,t.frameHeight,0,0,o,s)}a=-i(a*t.scaleWidth),r=-i(r*t.scaleHeight),"background"===t.renderer?t.stage.css({"background-image":"url('"+t.source[0]+"')","background-position":a+"px "+r+"px"}):e(t.images).css({top:r,left:a,"max-width":"initial"})}function a(t){var n=t.lane*t.frames+t.frame,a=t.images[n];if("canvas"===t.renderer){if(a&&a.complete!==!1){var i=t.canvas[0].width/t.canvasRatio,r=t.canvas[0].height/t.canvasRatio;t.context.clearRect(0,0,i,r),t.context.drawImage(a,0,0,i,r)}}else"background"===t.renderer?t.stage.css({"background-image":"url('"+t.source[n]+"')","background-position":"0px 0px"}):(e(t.images).hide(),e(t.images[n]).show())}var i=Math.floor;t.registerModule("360",{onLoad:function(t,n){var a,r;if(n.scaleWidth=n.width&&n.frameWidth?n.width/n.frameWidth:1,n.scaleHeight=n.height&&n.frameHeight?n.height/n.frameHeight:1,n.sourceIsSprite=1===n.images.length,n.stage.empty().css({"background-image":"none"}).show(),"canvas"===n.renderer){var a=n.canvas[0].width/n.canvasRatio,r=n.canvas[0].height/n.canvasRatio;n.context.clearRect(0,0,a,r),n.canvas.show()}else if("background"===n.renderer){n.sourceIsSprite?(a=i(n.sourceWidth*n.scaleWidth),r=i(n.sourceHeight*n.scaleHeight)):(a=i(n.frameWidth*n.scaleWidth),r=i(n.frameHeight*n.scaleHeight));var o=a+"px "+r+"px";n.stage.css({"background-repeat":"no-repeat","-webkit-background-size":o,"-moz-background-size":o,"-o-background-size":o,"background-size":o})}else"image"===n.renderer&&(n.sourceIsSprite?(a=i(n.sourceWidth*n.scaleWidth),r=i(n.sourceHeight*n.scaleHeight)):a=r="100%",e(n.images).appendTo(n.stage).css({width:a,height:r,position:"absolute"}))}
1,onDraw:function(e,t){t.sourceIsSprite?n(t):a(t)}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(e,n){var a=i(n),r=t.calculateInnerLayout(n);a.canvas[0].width=n.width*n.canvasRatio,a.canvas[0].height=n.height*n.canvasRatio,a.canvas.css(r).show(),a.context.scale(n.canvasRatio,n.canvasRatio),n.target.append(a.canvas)}function a(e,t){var n=i(t);r(t,n),null==n.timeout&&s(t,n)}function i(t){t.blurScope=t.blurScope||{};var n=t.blurScope;return n.canvas=n.canvas||e("<canvas class='blur-layer'></canvas>"),n.context=n.context||n.canvas[0].getContext("2d"),n.steps=n.steps||[],n.fadeTime=Math.max(t.blurFadeTime||200,1),n.frameTime=Math.max(t.blurFrameTime||t.frameTime,16),n.trackTime=null,n.cssBlur=!!t.blurCss,n}function r(e,t){var n=Math.abs(e.frame-e.lastFrame);n<e.frames/2||(n=e.frames-n),t.steps.unshift({index:e.lane*e.frames+e.frame,live:1,step:t.frameTime/t.fadeTime,d:n})}function o(e){m.length=0;var t;for(t=0;t<e.length;t+=1)e[t].alpha>0||m.push(t);for(t=0;t<m.length;t+=1)e.splice(m[t],1)}function s(e,t){t.timeout=window.setTimeout(function(){d(e,t)},t.frameTime)}function u(e,t){window.clearTimeout(t.timeout),t.timeout=null}function c(e,t){t=Math.min(Math.max(t/2-4,0),1.5),e.css({"-webkit-filter":"blur("+t+"px)",filter:"blur("+t+"px)"})}function l(e,t,n){var a=t.context,i=n.index,r=e.sourceIsSprite?e.images[0]:e.images[i];if(n.alpha>0&&r&&r.complete!==!1)if(a.globalAlpha=n.alpha,e.sourceIsSprite){var o=e.frameWidth*(i%e.framesX),s=e.frameHeight*Math.floor(i/e.framesX);a.drawImage(r,o,s,e.frameWidth,e.frameHeight,0,0,e.width,e.height)}else a.drawImage(r,0,0,e.width,e.height)}function d(e,t){if(u(e,t),t.context){var n,a,i=t.context,r=0;for(i.clearRect(0,0,e.width,e.height),n=0;n<t.steps.length;n+=1)a=t.steps[n],a.live=Math.max(a.live-a.step,0),a.alpha=Math.max(a.live-.25,0),l(e,t,a),r+=a.alpha+a.d;t.cssBlur&&c(t.canvas,r),o(t.steps),t.steps.length&&s(e,t)}}var m=[];t.registerModule("blur",{onLoad:n,onFrameChanged:a})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(e,t){t.easeAbortAfterMs=c(t.easeAbortAfterMs||250,0),t.easeDamping=c(l(t.easeDamping||.9,.999),0),t.easeSamples=c(t.easeSamples||5,1),t.easeUpdateTime=c(t.easeUpdateTime||t.frameTime,16),t.easeScope={samples:[],steps:[]}}function a(e,t){t.dragging&&(o(t,t.easeScope),r(t,t.easeScope))}function i(e,t){for(var n,a,i=t.easeScope,r=i.samples,u=0,c=0,l=0,d=0;d<r.length;d+=1)if(a=r[d],n){var m=a.time-n.time;if(m>t.easeAbortAfterMs)return u=c=l=0,o(t,i);c+=a.frame-n.frame,u+=a.lane-n.lane,l+=m,n=a}else n=a;r.length=0,l&&(i.ms=t.easeUpdateTime,i.lane=t.lane,i.lanes=0,i.laneStep=u/l*i.ms,i.frame=t.frame,i.frames=0,i.frameStep=c/l*i.ms,s(t,i))}function r(e,t){for(t.samples.push({time:(new Date).getTime(),frame:e.dragFrame,lane:e.dragLane});t.samples.length>e.easeSamples;)t.samples.shift()}function o(e,t){null!=t.timeout&&(window.clearTimeout(t.timeout),t.timeout=null)}function s(e,t){t.timeout=window.setTimeout(function(){u(e,t)},t.ms)}function u(e,n){n.lanes+=n.laneStep,n.frames+=n.frameStep,n.laneStep*=e.easeDamping,n.frameStep*=e.easeDamping;var a=Math.floor(n.frame+n.frames),i=Math.floor(n.lane+n.lanes);t.updateFrame(e,a,i),e.dragging?o(e,n):Math.abs(n.frameStep)>.005||Math.abs(n.laneStep)>.005?s(e,n):o(e,n)}var c=Math.max,l=Math.min;t.registerModule("ease",{onLoad:n,mousemove:a,mouseup:i,mouseleave:i,touchmove:a,touchend:i,touchcancel:i})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(n,a){a.galleryImages=[],a.galleryOffsets=[],a.gallerySpeed=500,a.galleryOpacity=.25,a.galleryFrame=0,a.galleryStage=a.galleryStage||e("<div/>"),a.stage.prepend(a.galleryStage),a.galleryStage.empty();var i,r=0;for(i=0;i<a.source.length;i+=1){var o=e("<img src='"+a.source[i]+"'/>");a.galleryStage.append(o),a.galleryImages.push(o);var s=a.height/o[0].height;a.galleryOffsets.push(-r+(a.width-o[0].width*s)/2),r+=a.width,o.css({"max-width":"initial",opacity:a.galleryOpacity,width:a.width,height:a.height})}var u=t.calculateInnerLayout(a);a.galleryStage.css(u).css({width:r}),a.galleryImages[a.galleryFrame].animate({opacity:1},a.gallerySpeed)}function a(e,t){t.galleryFrame===t.frame||t.dragging?(t.dragging||t.dX!=t.gallerydX)&&(t.galleryDX=t.DX,t.galleryDDX=t.DDX,t.galleryStage.stop(!0,!0).animate({left:t.galleryOffsets[t.frame]+t.dX})):(t.galleryStage.stop(!0,!1),t.galleryStage.animate({left:t.galleryOffsets[t.frame]},t.gallerySpeed),t.galleryImages[t.galleryFrame].animate({opacity:t.galleryOpacity},t.gallerySpeed),t.galleryFrame=t.frame,t.galleryImages[t.galleryFrame].animate({opacity:1},t.gallerySpeed))}t.registerModule("gallery",{onLoad:n,onDraw:a})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";var n=Math.floor;t.registerModule("panorama",{onLoad:function(e,t){t.stage.empty().show(),t.frames=t.sourceW
1idth,"horizontal"===t.orientation?(t.scale=t.height/t.sourceHeight,t.frames=t.sourceWidth):(t.scale=t.width/t.sourceWidth,t.frames=t.sourceHeight);var a=n(t.sourceWidth*t.scale),i=n(t.sourceHeight*t.scale),r=a+"px "+i+"px";t.stage.css({"max-width":"initial","background-image":"url('"+t.source[0]+"')","background-repeat":"repeat-both","-webkit-background-size":r,"-moz-background-size":r,"-o-background-size":r,"background-size":r})},onDraw:function(e,t){var a=0,i=0;"horizontal"===t.orientation?a=-n(t.frame%t.frames*t.scale):i=-n(t.frame%t.frames*t.scale),t.stage.css({"background-position":a+"px "+i+"px"})}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function n(t,n){n.zoomStage||(n.zoomStage=e("<div class='spritezoom-stage'></div>").css({width:"100%",height:"100%",top:0,left:0,bottom:0,right:0,position:"absolute"}).appendTo(n.target).hide())}function a(e,t){t.zoomStage&&t.zoomStage.remove()}function i(e,n){e.preventDefault(),n.dragging=!1,!e.touches&&e.originalEvent&&(e.touches=e.originalEvent.touches);var a,i,r,o;e.touches&&e.touches.length?(a=e.touches[0].clientX||0,i=e.touches[0].clientY||0):(a=e.clientX||0,i=e.clientY||0),a/=n.width,i/=n.height,null==n.zoomPX&&(n.zoomPX=a,n.zoomPY=i),null==n.zoomX&&(n.zoomX=a,n.zoomY=i),r=a-n.zoomPX,o=i-n.zoomPY,n.zoomPX=a,n.zoomPY=i,e.type.match(/touch/)&&(r=-r,o=-o),n.zoomX=t.clamp(n.zoomX+r,0,1),n.zoomY=t.clamp(n.zoomY+o,0,1),t.updateFrame(n)}function r(t,n){var a=n.lane*n.frames+n.frame,i=(n.zoomSource||n.source)[a];if(!i)return void e.error("'zoomSource' option is missing or it contains unsufficient number of frames.");var r=n.zoomX,o=n.zoomY;(null==r||null==o)&&(r=n.zoomX=.5,o=n.zoomY=.5),r=100*r|0,o=100*o|0,n.zoomStage.css({"background-repeat":"no-repeat","background-image":"url('"+i+"')","background-position":r+"% "+o+"%"})}function o(t,n){t.preventDefault();var a=(new Date).getTime();if(!n.zoomClickTime)return void(n.zoomClickTime=a);var r=a-n.zoomClickTime,o=n.zoomDoubleClickTime||500;return r>o?void(n.zoomClickTime=a):(n.zoomClickTime=0,void(e(this).spritespin("api").toggleZoom()&&i(t,n)))}function s(e,t){t.zoomStage.is(":visible")&&i(e,t)}function u(){var t=this.data;return t.zoomStage?t.zoomStage.is(":visible")?(t.zoomStage.fadeOut(),t.stage.fadeIn(),!1):(t.zoomStage.fadeIn(),t.stage.fadeOut(),!0):(e.error("zoom module is not initialized or is not available."),!1)}t.registerModule("zoom",{mousedown:o,touchstart:o,mousemove:s,touchmove:s,onInit:n,onDestroy:a,onDraw:r}),t.extendApi({toggleZoom:u})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin);

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.