1function SideNavigation(t){function e(){h.classList.add("side-active"),a.classList.remove("side-nav_hidden"),s.classList.remove("side-nav__content_hidden")}function n(){h.classList.remove("side-active"),a.classList.add("side-nav_hidden"),s.classList.add("side-nav__content_hidden"),document.querySelector("body").dispatchEvent(d)}function i(t){t.target===a&&n()}function r(t){c=u=t.pageX,l=!0,s.setPointerCapture(t.pointerId)}function o(t){c=t.pageX,l=!1,s.releasePointerCapture(t.pointerId),c-u>50?n():e()}var a=t,s=t.querySelector(".side-nav__content"),u=0,c=0,l=!1,h=document.getElementsByTagName("body")[0] 2this.hide=n,this.show=e 3var d=new Event("hide",{cancelable:!0}) 4a.addEventListener("click",i),s.addEventListener("pointerdown",r),s.addEventListener("pointerup",o),s.addEventListener("pointercancel",o),s.addEventListener("pointerleave",o)}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.PointerEventsPolyfill=e()}(this,function(){"use strict" 5function t(t,e){e=e||Object.create(null) 6var n=document.createEvent("Event") 7n.initEvent(t,e.bubbles||!1,e.cancelable||!1) 8for(var i,r=2;r<d.length;r++)i=d[r],n[i]=e[i]||p[r] 9n.buttons=e.buttons||0 10var o=0 11return o=e.pressure&&n.buttons?e.pressure:n.buttons?.5:0,n.x=n.clientX,n.y=n.clientY,n.pointerId=e.pointerId||0,n.width=e.width||0,n.height=e.height||0,n.pressure=o,n.tiltX=e.tiltX||0,n.tiltY=e.tiltY||0,n.twist=e.twist||0,n.tangentialPressure=e.tangentialPressure||0,n.pointerType=e.pointerType||"",n.hwTimestamp=e.hwTimestamp||0,n.isPrimary=e.isPrimary||!1,n}function e(){this.array=[],this.size=0}function n(t,e,n,i){this.addCallback=t.bind(i),this.removeCallback=e.bind(i),this.changedCallback=n.bind(i),I&&(this.observer=new I(this.mutationWatcher.bind(this)))}function i(t){return"body /shadow-deep/ "+r(t)}function r(t){return'[touch-action="'+t+'"]'}function o(t){return"{ -ms-touch-action: "+t+"; touch-action: "+t+"; }"}function a(){if(L){R.forEach(function(t){t+""===t?(_+=r(t)+o(t)+"\n",N&&(_+=i(t)+o(t)+"\n")):(_+=t.selectors.map(r)+o(t.rule)+"\n",N&&(_+=t.selectors.map(i)+o(t.rule)+"\n"))}) 12var t=document.createElement("style") 13t.textContent=_,document.head.appendChild(t)}}function s(){if(!window.PointerEvent){if(window.PointerEvent=t,window.navigator.msPointerEnabled){var e=window.navigator.msMaxTouchPoints 14Object.defineProperty(window.navigator,"maxTouchPoints",{value:e,enumerable:!0}),g.registerSource("ms",Z)}else Object.defineProperty(window.navigator,"maxTouchPoints",{value:0,enumerable:!0}),g.registerSource("mouse",x),void 0!==window.ontouchstart&&g.registerSource("touch",G) 15g.register(document)}}function u(t){if(!g.pointermap.has(t)){var e=Error("InvalidPointerId") 16throw e.name="InvalidPointerId",e}}function c(t){for(var e=t.parentNode;e&&e!==t.ownerDocument;)e=e.parentNode 17if(!e){var n=Error("InvalidStateError") 18throw n.name="InvalidStateError",n}}function l(t){var e=g.pointermap.get(t) 19return 0!==e.buttons}function h(){window.Element&&!Element.prototype.setPointerCapture&&Object.defineProperties(Element.prototype,{setPointerCapture:{value:V},releasePointerCapture:{value:W},hasPointerCapture:{value:$}})}var d=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","pageY"],p=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0],v=window.Map&&window.Map.prototype.forEach,f=v?Map:e 20e.prototype={set:function(t,e){return void 0===e?this["delete"](t):(this.has(t)||this.size++,void(this.array[t]=e))},has:function(t){return void 0!==this.array[t]},"delete":function(t){this.has(t)&&(delete this.array[t],this.size--)},get:function(t){return this.array[t]},clear:function(){this.array.length=0,this.size=0},forEach:function(t,e){return this.array.forEach(function(n,i){t.call(e,n,i,this)},this)}} 21var m=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","buttons","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target","currentTarget","which","pageX","pageY","timeStamp"],E=[!1,!1,null,null,0,0,0,0,!1,!1,
21!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",null,null,0,0,0,0],b={pointerover:1,pointerout:1,pointerenter:1,pointerleave:1},y="undefined"!=typeof SVGElementInstance,g={pointermap:new f,eventMap:Object.create(null),captureInfo:Object.create(null),eventSources:Object.create(null),eventSourceList:[],registerSource:function(t,e){var n=e,i=n.events 22i&&(i.forEach(function(t){n[t]&&(this.eventMap[t]=n[t].bind(n))},this),this.eventSources[t]=n,this.eventSourceList.push(n))},register:function(t){for(var e,n=this.eventSourceList.length,i=0;n>i&&(e=this.eventSourceList[i]);i++)e.register.call(e,t)},unregister:function(t){for(var e,n=this.eventSourceList.length,i=0;n>i&&(e=this.eventSourceList[i]);i++)e.unregister.call(e,t)},contains:function(t,e){try{return t.contains(e)}catch(n){return!1}},down:function(t){t.bubbles=!0,this.fireEvent("pointerdown",t)},move:function(t){t.bubbles=!0,this.fireEvent("pointermove",t)},up:function(t){t.bubbles=!0,this.fireEvent("pointerup",t)},enter:function(t){t.bubbles=!1,this.fireEvent("pointerenter",t)},leave:function(t){t.bubbles=!1,this.fireEvent("pointerleave",t)},over:function(t){t.bubbles=!0,this.fireEvent("pointerover",t)},out:function(t){t.bubbles=!0,this.fireEvent("pointerout",t)},cancel:function(t){t.bubbles=!0,this.fireEvent("pointercancel",t)},leaveOut:function(t){this.out(t),this.propagate(t,this.leave,!1)},enterOver:function(t){this.over(t),this.propagate(t,this.enter,!0)},eventHandler:function(t){if(!t._handledByPE){var e=t.type,n=this.eventMap&&this.eventMap[e] 23n&&n(t),t._handledByPE=!0}},listen:function(t,e){e.forEach(function(e){this.addEvent(t,e)},this)},unlisten:function(t,e){e.forEach(function(e){this.removeEvent(t,e)},this)},addEvent:function(t,e){t.addEventListener(e,this.boundHandler)},removeEvent:function(t,e){t.removeEventListener(e,this.boundHandler)},makeEvent:function(e,n){this.captureInfo[n.pointerId]&&(n.relatedTarget=null) 24var i=new t(e,n) 25return n.preventDefault&&(i.preventDefault=n.preventDefault),i._target=i._target||n.target,i},fireEvent:function(t,e){var n=this.makeEvent(t,e) 26return this.dispatchEvent(n)},cloneEvent:function(t){for(var e,n=Object.create(null),i=0;i<m.length;i++)e=m[i],n[e]=t[e]||E[i],!y||"target"!==e&&"relatedTarget"!==e||n[e]instanceof SVGElementInstance&&(n[e]=n[e].correspondingUseElement) 27return t.preventDefault&&(n.preventDefault=function(){t.preventDefault()}),n},getTarget:function(t){var e=this.captureInfo[t.pointerId] 28return e?t._target!==e&&t.type in b?void 0:e:t._target},propagate:function(t,e,n){for(var i=t.target,r=[];i!==document&&!i.contains(t.relatedTarget);)if(r.push(i),i=i.parentNode,!i)return 29n&&r.reverse(),r.forEach(function(n){t.target=n,e.call(this,t)},this)},setCapture:function(e,n,i){this.captureInfo[e]&&this.releaseCapture(e,i),this.captureInfo[e]=n,this.implicitRelease=this.releaseCapture.bind(this,e,i),document.addEventListener("pointerup",this.implicitRelease),document.addEventListener("pointercancel",this.implicitRelease) 30var r=new t("gotpointercapture") 31r.pointerId=e,r._target=n,i||this.asyncDispatchEvent(r)},releaseCapture:function(e,n){var i=this.captureInfo[e] 32if(i){this.captureInfo[e]=void 0,document.removeEventListener("pointerup",this.implicitRelease),document.removeEventListener("pointercancel",this.implicitRelease) 33var r=new t("lostpointercapture") 34r.pointerId=e,r._target=i,n||this.asyncDispatchEvent(r)}},dispatchEvent:function(t){var e=this.getTarget(t) 35return e?e.dispatchEvent(t):void 0},asyncDispatchEvent:function(t){requestAnimationFrame(this.dispatchEvent.bind(this,t))}} 36g.boundHandler=g.eventHandler.bind(g) 37var T={shadow:function(t){return t?t.shadowRoot||t.webkitShadowRoot:void 0},canTarget:function(t){return t&&!!t.elementFromPoint},targetingShadow:function(t){var e=this.shadow(t) 38return this.canTarget(e)?e:void 0},olderShadow:function(t){var e=t.olderShadowRoot 39if(!e){var n=t.querySelector("shadow") 40n&&(e=n.olderShadowRoot)}return e},allShadows:function(t){for(var e=[],n=this.shadow(t);n;)e.push(n),n=this.olderShadow(n) 41return e},searchRoot:function(t,e,n){if(t){var i,r,o=t.elementFromPoint(e,n) 42for(r=this.targetingShadow(o);r;){if(i=r.elementFromPoint(e,n)){var a=this.targetingShadow(i) 43return this.searchRoot(a,e,n)||i}r=this.olderShadow(r)}return o}},owner:function(t){for(var e=t;e.parentNode;)e=e.parentNode
44return e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(e=document),e},findTarget:function(t){var e=t.clientX,n=t.clientY,i=this.owner(t.target) 45return i.elementFromPoint(e,n)||(i=document),this.searchRoot(i,e,n)}},w=Array.prototype.forEach.call.bind(Array.prototype.forEach),P=Array.prototype.map.call.bind(Array.prototype.map),S=Array.prototype.slice.call.bind(Array.prototype.slice),O=Array.prototype.filter.call.bind(Array.prototype.filter),I=window.MutationObserver||window.WebKitMutationObserver,M="[touch-action]",C={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["touch-action"]} 46n.prototype={watchSubtree:function(t){this.observer&&T.canTarget(t)&&this.observer.observe(t,C)},enableOnSubtree:function(t){this.watchSubtree(t),t===document&&"complete"!==document.readyState?this.installOnLoad():this.installNewSubtree(t)},installNewSubtree:function(t){w(this.findElements(t),this.addElement,this)},findElements:function(t){return t.querySelectorAll?t.querySelectorAll(M):[]},removeElement:function(t){this.removeCallback(t)},addElement:function(t){this.addCallback(t)},elementChanged:function(t,e){this.changedCallback(t,e)},concatLists:function(t,e){return t.concat(S(e))},installOnLoad:function(){document.addEventListener("readystatechange",function(){"complete"===document.readyState&&this.installNewSubtree(document)}.bind(this))},isElement:function(t){return t.nodeType===Node.ELEMENT_NODE},flattenMutationTree:function(t){var e=P(t,this.findElements,this) 47return e.push(O(t,this.isElement)),e.reduce(this.concatLists,[])},mutationWatcher:function(t){t.forEach(this.mutationHandler,this)},mutationHandler:function(t){if("childList"===t.type){var e=this.flattenMutationTree(t.addedNodes) 48e.forEach(this.addElement,this) 49var n=this.flattenMutationTree(t.removedNodes) 50n.forEach(this.removeElement,this)}else"attributes"===t.type&&this.elementChanged(t.target,t.oldValue)}} 51var R=["none","auto","pan-x","pan-y",{rule:"pan-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]}],_="",L=window.PointerEvent||window.MSPointerEvent,N=!window.ShadowDOMPolyfill&&document.head.createShadowRoot,D=g.pointermap,Y=25,X=[1,4,2,8,16],k=!1 52try{k=1===new MouseEvent("test",{buttons:1}).buttons}catch(A){}var F,x={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedown","mousemove","mouseup","mouseover","mouseout"],register:function(t){g.listen(t,this.events)},unregister:function(t){g.unlisten(t,this.events)},lastTouches:[],isEventSimulatedFromTouch:function(t){for(var e,n=this.lastTouches,i=t.clientX,r=t.clientY,o=0,a=n.length;a>o&&(e=n[o]);o++){var s=Math.abs(i-e.x),u=Math.abs(r-e.y) 53if(Y>=s&&Y>=u)return!0}},prepareEvent:function(t){var e=g.cloneEvent(t),n=e.preventDefault 54return e.preventDefault=function(){t.preventDefault(),n()},e.pointerId=this.POINTER_ID,e.isPrimary=!0,e.pointerType=this.POINTER_TYPE,e},prepareButtonsForMove:function(t,e){var n=D.get(this.POINTER_ID) 550!==e.which&&n?t.buttons=n.buttons:t.buttons=0,e.buttons=t.buttons},mousedown:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=D.get(this.POINTER_ID),n=this.prepareEvent(t) 56k||(n.buttons=X[n.button],e&&(n.buttons|=e.buttons),t.buttons=n.buttons),D.set(this.POINTER_ID,t),e&&0!==e.buttons?g.move(n):g.down(n)}},mousemove:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t) 57k||this.prepareButtonsForMove(e,t),e.button=-1,D.set(this.POINTER_ID,t),g.move(e)}},mouseup:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=D.get(this.POINTER_ID),n=this.prepareEvent(t) 58if(!k){var i=X[n.button] 59n.buttons=e?e.buttons&~i:0,t.buttons=n.buttons}D.set(this.POINTER_ID,t),n.buttons&=~X[n.button],0===n.buttons?g.up(n):g.move(n)}},mouseover:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t) 60k||this.prepareButtonsForMove(e,t),e.button=-1,D.set(this.POINTER_ID,t),g.enterOver(e)}},mouseout:function(t){if(!this.isEventSimulatedFromTouch(t)){var e=this.prepareEvent(t) 61k||this.prepareButtonsForMove(e,t),e.button=-1,g.leaveOut(e)}},cancel:function(t){var e=this.prepareEvent(t) 62g.cancel(e),this.deactivateMouse()},deactivateMouse:function(){D["delete"](this.POINTER_ID)}},K=g.captureInfo,q=T.findTarget.bind(T),j=T.allShadows.bind(T),B=g.pointermap,U=2500,z=200,H="touch-action",G={events:["touchstart","touchmove","touchend","touchcancel"],register:function(t){F.enableOnSubtree(t)},unregister:function(){},elementAdded:function(t){var e=t.getAttribute(H),n=this.touchActionToScrollType(e) 63n&&(t._scrollType=n,g.listen(t,this.events),j(t).forEach(function(t){t._scrollType=n,g.listen(t,this.events)},this))},elementRemoved:function(t){t._scrollType=void 0,g.unlisten(t,this.events),j(t).forEach(function(t){t._scrollType=void 0,g.unlisten(t,this.events)},this)},elementChanged:function(t,e){var n=t.getAttribute(H),i=this.touchActionToScrollType(n),r=this.touchActionToScrollType(e) 64i&&r?(t._scrollType=i,j(t).forEach(function(t){t._scrollType=i},this)):r?this.elementRemoved(t):i&&this.elementAdded(t)},scrollTypes:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y",SCROLLER:/^(?:pan-x pan-y)|(?:pan-y pan-x)|auto$/},touchActionToScrollType:function(t){var e=t,n=this.scrollTypes 65return"none"===e?"none":e===n.XSCROLLER?"X":e===n.YSCROLLER?"Y":n.SCROLLER.exec(e)?"XY":void 0},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(t){return this.firstTouch===t.identifier},setPrimaryTouch:function(t){(0===B.size||1===B.size&&B.has(1))&&(this.firstTouch=t.identifier,this.firstXY={X:t.clientX,Y:t.clientY},this.scrolling=!1,this.cancelResetClickCount())},removePrimaryPointer:function(t){t.isPrimary&&(this.firstTouch=null,this.firstXY=null,this.resetClickCount())},clickCount:0,resetId:null,resetClickCount:function(){var t=function(){this.clickCount=0,this.resetId=null}.bind(this) 66this.resetId=setTimeout(t,z)},cancelResetClickCount:function(){this.resetId&&clearTimeout(this.resetId)},typeToButtons:function(t){var e=0 67return("touchstart"===t||"touchmove"===t)&&(e=1),e},touchToPointer:function(t){var e=this.currentTouchEvent,n=g.cloneEvent(t),i=n.pointerId=t.identifier+2 68n.target=K[i]||q(n),n.bubbles=!0,n.cancelable=!0,n.detail=this.clickCount,n.button=0,n.buttons=this.typeToButtons(e.type),n.width=2*(t.radiusX||t.webkitRadiusX||0),n.height=2*(t.radiusY||t.webkitRadiusY||0),n.pressure=t.force||t.webkitForce||.5,n.isPrimary=this.isPrimaryTouch(t),n.pointerType=this.POINTER_TYPE,n.altKey=e.altKey,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey 69var r=this 70return n.preventDefault=function(){r.scrolling=!1,r.firstXY=null,e.preventDefault()},n},processTouches:function(t,e){var n=t.changedTouches 71this.currentTouchEvent=t 72for(var i,r=0;r<n.length;r++)i=n[r],e.call(this,this.touchToPointer(i))},shouldScroll:function(t){if(this.firstXY){var e,n=t.currentTarget._scrollType 73if("none"===n)e=!1 74else if("XY"===n)e=!0 75else{var i=t.changedTouches[0],r=n,o="Y"===n?"X":"Y",a=Math.abs(i["client"+r]-this.firstXY[r]),s=Math.abs(i["client"+o]-this.firstXY[o]) 76e=a>=s}return this.firstXY=null,e}},findTouch:function(t,e){for(var n,i=0,r=t.length;r>i&&(n=t[i]);i++)if(n.identifier===e)return!0},vacuumTouches:function(t){var e=t.touches 77if(B.size>=e.length){var n=[]
78B.forEach(function(t,i){if(1!==i&&!this.findTouch(e,i-2)){var r=t.out 79n.push(r)}},this),n.forEach(this.cancelOut,this)}},touchstart:function(t){this.vacuumTouches(t),this.setPrimaryTouch(t.changedTouches[0]),this.dedupSynthMouse(t),this.scrolling||(this.clickCount++,this.processTouches(t,this.overDown))},overDown:function(t){B.set(t.pointerId,{target:t.target,out:t,outTarget:t.target}),g.enterOver(t),g.down(t)},touchmove:function(t){this.scrolling||(this.shouldScroll(t)?(this.scrolling=!0,this.touchcancel(t)):(t.preventDefault(),this.processTouches(t,this.moveOverOut)))},moveOverOut:function(t){var e=t,n=B.get(e.pointerId) 80if(n){var i=n.out,r=n.outTarget 81g.move(e),i&&r!==e.target&&(i.relatedTarget=e.target,e.relatedTarget=r,i.target=r,e.target?(g.leaveOut(i),g.enterOver(e)):(e.target=r,e.relatedTarget=null,this.cancelOut(e))),n.out=e,n.outTarget=e.target}},touchend:function(t){this.dedupSynthMouse(t),this.processTouches(t,this.upOut)},upOut:function(t){this.scrolling||(g.up(t),g.leaveOut(t)),this.cleanUpPointer(t)},touchcancel:function(t){this.processTouches(t,this.cancelOut)},cancelOut:function(t){g.cancel(t),g.leaveOut(t),this.cleanUpPointer(t)},cleanUpPointer:function(t){B["delete"](t.pointerId),this.removePrimaryPointer(t)},dedupSynthMouse:function(t){var e=x.lastTouches,n=t.changedTouches[0] 82if(this.isPrimaryTouch(n)){var i={x:n.clientX,y:n.clientY} 83e.push(i) 84var r=function(t,e){var n=t.indexOf(e) 85n>-1&&t.splice(n,1)}.bind(null,e,i) 86setTimeout(r,U)}}} 87F=new n(G.elementAdded,G.elementRemoved,G.elementChanged,G) 88var V,W,$,J=g.pointermap,Q=window.MSPointerEvent&&"number"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,Z={events:["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSLostPointerCapture"],register:function(t){g.listen(t,this.events)},unregister:function(t){g.unlisten(t,this.events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:function(t){var e=t 89return Q&&(e=g.cloneEvent(t),e.pointerType=this.POINTER_TYPES[t.pointerType]),e},cleanup:function(t){J["delete"](t)},MSPointerDown:function(t){J.set(t.pointerId,t) 90var e=this.prepareEvent(t) 91g.down(e)},MSPointerMove:function(t){var e=this.prepareEvent(t) 92g.move(e)},MSPointerUp:function(t){var e=this.prepareEvent(t) 93g.up(e),this.cleanup(t.pointerId)},MSPointerOut:function(t){var e=this.prepareEvent(t) 94g.leaveOut(e)},MSPointerOver:function(t){var e=this.prepareEvent(t) 95g.enterOver(e)},MSPointerCancel:function(t){var e=this.prepareEvent(t) 96g.cancel(e),this.cleanup(t.pointerId)},MSLostPointerCapture:function(t){var e=g.makeEvent("lostpointercapture",t) 97g.dispatchEvent(e)},MSGotPointerCapture:function(t){var e=g.makeEvent("gotpointercapture",t) 98g.dispatchEvent(e)}},tt=window.navigator 99tt.msPointerEnabled?(V=function(t){u(t),c(this),l(t)&&(g.setCapture(t,this,!0),this.msSetPointerCapture(t))},W=function(t){u(t),g.releaseCapture(t,!0),this.msReleasePointerCapture(t)}):(V=function(t){u(t),c(this),l(t)&&g.setCapture(t,this)},W=function(t){u(t),g.releaseCapture(t)}),$=function(t){return!!g.captureInfo[t]},a(),s(),h() 100var et={dispatcher:g,Installer:n,PointerEvent:t,PointerMap:f,targetFinding:T} 101return et}),function(t){"use strict" 102var e 103setTimeout(function(){isDefine(t.querySelector(".side-nav"))&&isDefine(t.querySelector(".header__show-menu"))&&(e=new SideNavigation(t.querySelector(".side-nav")),t.querySelector(".header__show-menu").addEventListener("click",e.show))},2e3)}(document)
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.