PageSourceSearch

https://shop.arclandservice.co.jp/ae-shop/resources/js/intersectionObserver.min.js

js arclandservice.co.jp collected 2026-10-01 12:31:07 UTC 9,102 bytes, 1 lines download raw bytes

1(function(){if(typeof window!=="object"){return}if("IntersectionObserver" in window&&"IntersectionObserverEntry" in window&&"intersectionRatio" in window.IntersectionObserverEntry.prototype){if(!("isIntersecting" in window.IntersectionObserverEntry.prototype)){Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}})}return}function j(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(s){return null}}var l=(function(s){var t=s;var u=j(t);while(u){t=u.ownerDocument;u=j(t)}return t})(window.document);var f=[];var i=null;var p=null;function r(u){this.time=u.time;this.target=u.target;this.rootBounds=g(u.rootBounds);this.boundingClientRect=g(u.boundingClientRect);this.intersectionRect=g(u.intersectionRect||c());this.isIntersecting=!!u.intersectionRect;var w=this.boundingClientRect;var v=w.width*w.height;var t=this.intersectionRect;var s=t.width*t.height;if(v){this.intersectionRatio=Number((s/v).toFixed(4))}else{this.intersectionRatio=this.isIntersecting?1:0}}function q(u,t){var s=t||{};if(typeof u!="function"){throw new Error("callback must be a function")}if(s.root&&s.root.nodeType!=1){throw new Error("root must be an Element")}this._checkForIntersections=d(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=u;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(s.rootMargin);this.thresholds=this._initThresholds(s.threshold);this.root=s.root||null;this.rootMargin=this._rootMarginValues.map(function(v){return v.value+v.unit}).join(" ");this._monitoringDocuments=[];this._monitoringUnsubscribes=[]}q.prototype.THROTTLE_TIMEOUT=100;q.prototype.POLL_INTERVAL=null;q.prototype.USE_MUTATION_OBSERVER=true;q._setupCrossOriginUpdater=function(){if(!i){i=function(t,s){if(!t||!s){p=c()}else{p=b(t,s)}f.forEach(function(u){u._checkForIntersections()})}}return i};q._resetCrossOriginUpdater=function(){i=null;p=null};q.prototype.observe=function(t){var s=this._observationTargets.some(function(u){return u.element==t});if(s){return}if(!(t&&t.nodeType==1)){throw new Error("target must be an Element")}this._registerInstance();this._observationTargets.push({element:t,entry:null});this._monitorIntersections(t.ownerDocument);this._checkForIntersections()};q.prototype.unobserve=function(s){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=s});this._unmonitorIntersections(s.ownerDocument);if(this._observationTargets.length==0){this._unregisterInstance()}};q.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorAllIntersections();this._unregisterInstance()};q.prototype.takeRecords=function(){var s=this._queuedEntries.slice();this._queuedEntries=[];return s};q.prototype._initThresholds=function(t){var s=t||[0];if(!Array.isArray(s)){s=[s]}return s.sort().filter(function(w,v,u){if(typeof w!="number"||isNaN(w)||w<0||w>1){throw new Error("threshold must be a number between 0 and 1 inclusively")}return w!==u[v-1]})};q.prototype._parseRootMargin=function(s){var t=s||"0px";var u=t.split(/\s+/).map(function(v){var w=/^(-?\d*\.?\d+)(px|%)$/.exec(v);if(!w){throw new Error("rootMargin must be specified in pixels or percent")}return{value:parseFloat(w[1]),unit:w[2]}});u[1]=u[1]||u[0];u[2]=u[2]||u[0];u[3]=u[3]||u[1];return u};q.prototype._monitorIntersections=function(u){var t=u.defaultView;if(!t){return}if(this._monitoringDocuments.indexOf(u)!=-1){return}var x=this._checkForIntersections;var s=null;var w=null;if(this.POLL_INTERVAL){s=t.setInterval(x,this.POLL_INTERVAL)}else{n(t,"resize",x,true);n(u,"scroll",x,true);if(this.USE_MUTATION_OBSERVER&&"MutationObserver" in t){w=new t.MutationObserver(x);w.observe(u,{attributes:true,childList:true,characterData:true,subtree:true})}}this._monitoringDocuments.push(u);this._monitoringUnsubscribes.push(function(){var y=u.defaultView;if(y){if(s){y.clearInterval(s)}o(y,"resize",x,true)}o(u,"scroll",x,true);if(w){w.disconnect()}});if(u!=(this.root&&this.root.ownerDocument||l)){var v=j(u);if(v){this._monitorIntersections(v.ownerDocument)}}};q.prototype._unmonitorIntersections=function(w){var t=this._monitoringDocuments.indexOf(w);if(t==-1){return}var v=(this.root&&this.root.ownerDocument||l);var s=this._observationTargets.some(function(z){var y=z.element.ownerDocument;if(y==w){return true}
1while(y&&y!=v){var A=j(y);y=A&&A.ownerDocument;if(y==w){return true}}return false});if(s){return}var u=this._monitoringUnsubscribes[t];this._monitoringDocuments.splice(t,1);this._monitoringUnsubscribes.splice(t,1);u();if(w!=v){var x=j(w);if(x){this._unmonitorIntersections(x.ownerDocument)}}};q.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0;this._monitoringUnsubscribes.length=0;for(var s=0;s<t.length;s++){t[s]()}};q.prototype._checkForIntersections=function(){if(!this.root&&i&&!p){return}var t=this._rootIsInDom();var s=t?this._getRootRect():c();this._observationTargets.forEach(function(x){var A=x.element;var z=e(A);var v=this._rootContainsTarget(A);var w=x.entry;var u=t&&v&&this._computeTargetAndRootIntersection(A,z,s);var y=x.entry=new r({time:a(),target:A,boundingClientRect:z,rootBounds:i&&!this.root?null:s,intersectionRect:u});if(!w){this._queuedEntries.push(y)}else{if(t&&v){if(this._hasCrossedThreshold(w,y)){this._queuedEntries.push(y)}}else{if(w&&w.isIntersecting){this._queuedEntries.push(y)}}}},this);if(this._queuedEntries.length){this._callback(this.takeRecords(),this)}};q.prototype._computeTargetAndRootIntersection=function(x,u,y){if(window.getComputedStyle(x).display=="none"){return}var z=u;var C=k(x);var A=false;while(!A&&C){var D=null;var w=C.nodeType==1?window.getComputedStyle(C):{};if(w.display=="none"){return null}if(C==this.root||C.nodeType==9){A=true;if(C==this.root||C==l){if(i&&!this.root){if(!p||p.width==0&&p.height==0){C=null;D=null;z=null}else{D=p}}else{D=y}}else{var v=k(C);var t=v&&e(v);var s=v&&this._computeTargetAndRootIntersection(v,t,y);if(t&&s){C=v;D=b(t,s)}else{C=null;z=null}}}else{var B=C.ownerDocument;if(C!=B.body&&C!=B.documentElement&&w.overflow!="visible"){D=e(C)}}if(D){z=h(D,z)}if(!z){break}C=C&&k(C)}return z};q.prototype._getRootRect=function(){var t;if(this.root){t=e(this.root)}else{var u=l.documentElement;var s=l.body;t={top:0,left:0,right:u.clientWidth||s.clientWidth,width:u.clientWidth||s.clientWidth,bottom:u.clientHeight||s.clientHeight,height:u.clientHeight||s.clientHeight}}return this._expandRectByRootMargin(t)};q.prototype._expandRectByRootMargin=function(t){var u=this._rootMarginValues.map(function(w,v){return w.unit=="px"?w.value:w.value*(v%2?t.width:t.height)/100});var s={top:t.top-u[0],right:t.right+u[1],bottom:t.bottom+u[2],left:t.left-u[3]};s.width=s.right-s.left;s.height=s.bottom-s.top;return s};q.prototype._hasCrossedThreshold=function(u,x){var t=u&&u.isIntersecting?u.intersectionRatio||0:-1;var w=x.isIntersecting?x.intersectionRatio||0:-1;if(t===w){return}for(var v=0;v<this.thresholds.length;v++){var s=this.thresholds[v];if(s==t||s==w||s<t!==s<w){return true}}};q.prototype._rootIsInDom=function(){return !this.root||m(l,this.root)};q.prototype._rootContainsTarget=function(s){return m(this.root||l,s)&&(!this.root||this.root.ownerDocument==s.ownerDocument)};q.prototype._registerInstance=function(){if(f.indexOf(this)<0){f.push(this)}};q.prototype._unregisterInstance=function(){var s=f.indexOf(this);if(s!=-1){f.splice(s,1)}};function a(){return window.performance&&performance.now&&performance.now()}function d(s,t){var u=null;return function(){if(!u){u=setTimeout(function(){s();u=null},t)}}}function n(u,t,s,v){if(typeof u.addEventListener=="function"){u.addEventListener(t,s,v||false)}else{if(typeof u.attachEvent=="function"){u.attachEvent("on"+t,s)}}}function o(u,t,s,v){if(typeof u.removeEventListener=="function"){u.removeEventListener(t,s,v||false)}else{if(typeof u.detatchEvent=="function"){u.detatchEvent("on"+t,s)}}}function h(v,t){var z=Math.max(v.top,t.top);var u=Math.min(v.bottom,t.bottom);var y=Math.max(v.left,t.left);var w=Math.min(v.right,t.right);var x=w-y;var s=u-z;return(x>=0&&s>=0)&&{top:z,bottom:u,left:y,right:w,width:x,height:s}||null}function e(s){var u;try{u=s.getBoundingClientRect()}catch(t){}if(!u){return c()}if(!(u.width&&u.height)){u={top:u.top,right:u.right,bottom:u.bottom,left:u.left,width:u.right-u.left,height:u.bottom-u.top}}return u}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function g(s){if(!s||"x" in s){return s}return{top:s.top,y:s.top,bottom:s.bottom,left:s.left,x:s.left,right:s.right,width:s.width,height:s.height}}function b(v,s){var u=s.top-v.top;var t=s.left-v.left;return{top:u,left:t,height:s.height,width:s.width,bottom:u+s.height,right:t+s.width}}function m(s,u){var t=u;while(t){if(t==s){return true}t=k(t)}return false}function k(t){var s=t.parentNode;if(t.nodeType==9&&t!=l){return j(t)}if(s&&s.nodeType==11&&s.host){return s.host}if(s&&s.assignedSlot){return s.assignedSlot.parentNode}return s}window.IntersectionObserver=q;window.IntersectionObserverEntry=r}());

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.