PageSourceSearch

https://www.staalinstruments.com/cdn/shop/t/14/assets/startup.js?v=73449182546878981171733850847

js staalinstruments.com collected 2026-10-03 01:42:11 UTC 589,728 bytes, 185 lines download raw bytes

1(()=>{var __webpack_modules__={646:((__unused_webpack_module,exports)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0};function all(){return window.getComputedStyle(document.documentElement,":before").getPropertyValue("content").replace(/"/g,"").split(",")}__webpack_unused_export__=all;function current(){return window.getComputedStyle(document.documentElement,":after").getPropertyValue("content").replace(/"/g,"")}__webpack_unused_export__=current;var callbacks=[],breakpoints=all(),breakpointData={previous:current(),current:current()};function min(breakpoint){var current2=breakpointData.current,comparison=breakpoints.indexOf(current2)-breakpoints.indexOf(breakpoint);return comparison>=0}exports.VV=min;function max(breakpoint){var current2=breakpointData.current,comparison=breakpoints.indexOf(current2)-breakpoints.indexOf(breakpoint);return comparison<=0}exports.Fp=max;function range(breakpointStart,breakpointEnd){var current2=breakpointData.current,indexCurrent=breakpoints.indexOf(current2),indexStart=breakpoints.indexOf(breakpointStart),indexEnd=breakpoints.indexOf(breakpointEnd);return indexStart<=indexCurrent&&indexCurrent<=indexEnd}__webpack_unused_export__=range;function is(){for(var breakpoints2=[],_i=0;_i<arguments.length;_i++)breakpoints2[_i]=arguments[_i];var current2=breakpointData.current;return breakpoints2.some(function(breakpoint){return breakpoint===current2})}__webpack_unused_export__=is;function onChange(callback){callbacks.indexOf(callback)===-1&&callbacks.push(callback)}exports.z2=onChange;function offChange(callback){var index=callbacks.indexOf(callback);index!==-1&&callbacks.splice(index,1)}__webpack_unused_export__=offChange;var styleSheetList=document.styleSheets,mediaLists=Object.keys(styleSheetList).reduce(function(accumulator,key){var stylesheet=styleSheetList[key];if(!stylesheet.href||stylesheet.href.indexOf("theme")===-1)return accumulator;try{for(var cssRules=stylesheet.cssRules,i=0;i<cssRules.length;i++){var cssRule=stylesheet.cssRules[i];if(cssRule instanceof CSSMediaRule)for(var j=0;j<cssRules.length;j++){var cssMediaCssRule=cssRule.cssRules[j];cssMediaCssRule instanceof CSSStyleRule&&cssMediaCssRule.selectorText&&cssMediaCssRule.selectorText.indexOf("html::after")!==-1&&accumulator.push(cssRule.media)}}}catch{return accumulator}return accumulator},[]);mediaLists.length>0?mediaLists.forEach(function(mediaList){var mql=window.matchMedia(mediaList.mediaText);mql.addListener(function(){var currentBreakpoint=current();breakpointData.current!==currentBreakpoint&&(breakpointData.previous=breakpointData.current,breakpointData.current=currentBreakpoint,callbacks.forEach(function(callback){return callback(breakpointData)}))})}):window.addEventListener("resize",function(){var currentBreakpoint=current();breakpointData.current!==currentBreakpoint&&(breakpointData.previous=breakpointData.current,breakpointData.current=currentBreakpoint,callbacks.forEach(function(callback){return callback(breakpointData)}))})}),766:((__unused_webpack_module,exports)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__=!0;var EventHandler=(function(){function EventHandler2(){this.events=[]}return EventHandler2.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler2.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler2.prototype.unregisterAll=function(){this.events.forEach(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler2})();exports.Z=EventHandler}),729:(module=>{"use strict";var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object"],css=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";module.exports=function(parentSelector,opts){parentSelector=parentSelector||"body",opts=opts||{},isObject(parentSelector)&&(opts=parentSelector,parentSelector="body"),opts.ignore=opts.ignore||"",opts.players=opts.players||"";var containers=queryAll(parentSelector);
1if(hasLength(containers)){if(!document.getElementById("fit-vids-style")){var head=document.head||document.getElementsByTagName("head")[0];head.appendChild(styles())}var custom=toSelectorArray(opts.players)||[],ignored=toSelectorArray(opts.ignore)||[],selector=selectors.filter(notIgnored(ignored)).concat(custom).join();hasLength(selector)&&containers.forEach(function(container){var videos=queryAll(container,selector);videos.forEach(function(video){wrap(video)})})}};function queryAll(el,selector){return typeof el=="string"&&(selector=el,el=document),Array.prototype.slice.call(el.querySelectorAll(selector))}function toSelectorArray(input){return typeof input=="string"?input.split(",").map(trim).filter(hasLength):isArray(input)?flatten(input.map(toSelectorArray).filter(hasLength)):input||[]}function wrap(el){if(!/fluid-width-video-wrapper/.test(el.parentNode.className)){var widthAttr=parseInt(el.getAttribute("width"),10),heightAttr=parseInt(el.getAttribute("height"),10),width=isNaN(widthAttr)?el.clientWidth:widthAttr,height=isNaN(heightAttr)?el.clientHeight:heightAttr,aspect=height/width;el.removeAttribute("width"),el.removeAttribute("height");var wrapper=document.createElement("div");el.parentNode.insertBefore(wrapper,el),wrapper.className="fluid-width-video-wrapper",wrapper.style.paddingTop=aspect*100+"%",wrapper.appendChild(el)}}function styles(){var div=document.createElement("div");return div.innerHTML='<p>x</p><style id="fit-vids-style">'+css+"</style>",div.childNodes[1]}function notIgnored(ignored){return ignored.length<1?function(){return!0}:function(selector){return ignored.indexOf(selector)===-1}}function hasLength(input){return input.length>0}function trim(str){return str.replace(/^\s+|\s+$/g,"")}function flatten(input){return[].concat.apply([],input)}function isObject(input){return Object.prototype.toString.call(input)==="[object Object]"}function isArray(input){return Object.prototype.toString.call(input)==="[object Array]"}}),337:(()=>{(function(window2,document2){"use strict";if("IntersectionObserver"in window2&&"IntersectionObserverEntry"in window2&&"intersectionRatio"in window2.IntersectionObserverEntry.prototype){"isIntersecting"in window2.IntersectionObserverEntry.prototype||Object.defineProperty(window2.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var registry=[];function IntersectionObserverEntry(entry){this.time=entry.time,this.target=entry.target,this.rootBounds=entry.rootBounds,this.boundingClientRect=entry.boundingClientRect,this.intersectionRect=entry.intersectionRect||getEmptyRect(),this.isIntersecting=!!entry.intersectionRect;var targetRect=this.boundingClientRect,targetArea=targetRect.width*targetRect.height,intersectionRect=this.intersectionRect,intersectionArea=intersectionRect.width*intersectionRect.height;targetArea?this.intersectionRatio=Number((intersectionArea/targetArea).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function IntersectionObserver2(callback,opt_options){var options=opt_options||{};if(typeof callback!="function")throw new Error("callback must be a function");if(options.root&&options.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=throttle(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=callback,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(options.rootMargin),this.thresholds=this._initThresholds(options.threshold),this.root=options.root||null,this.rootMargin=this._rootMarginValues.map(function(margin){return margin.value+margin.unit}).join(" ")}IntersectionObserver2.prototype.THROTTLE_TIMEOUT=100,IntersectionObserver2.prototype.POLL_INTERVAL=null,IntersectionObserver2.prototype.USE_MUTATION_OBSERVER=!0,IntersectionObserver2.prototype.observe=function(target){var isTargetAlreadyObserved=this._observationTargets.some(function(item){return item.element==target});if(!isTargetAlreadyObserved){if(!(target&&target.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:target,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},IntersectionObserver2.prototype.unobserve=function(target){this._observationTargets=this._observationTargets.filter(function(item){return item.element!=target}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},IntersectionObserver2.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},IntersectionObserver2.prototype.takeRecords=function(){var records=this._queuedEntries.slice();return this._queuedEntries=[],records},IntersectionObserver2.prototype._initThresholds=function(opt_threshold){var threshold=opt_threshold||[0];return Array.isArray(threshold)||(threshold=[threshold]),threshold.sort().filter(function(t,i,a){if(typeof t!="number"||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==a[i-1]})},IntersectionObserver2.prototype._parseRootMargin=function(opt_rootMargin){var marginString=opt_rootMargin||"0px",margins=marginString.split(/\s+/).map(function(margin){var parts=/^(-?\d*\.?\d+)(px|%)$/.exec(margin);if(!parts)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(parts[1]),unit:parts[2]}});return margins[1]=margins[1]||margins[0],margins[2]=margins[2]||margins[0],margins[3]=margins[3]||margins[1],margins},IntersectionObserver2.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(addEvent(window2,"resize",this._checkForIntersections,!0),addEvent(document2,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window2&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(document2,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},IntersectionObserver2.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,removeEvent(window2,"resize",this._checkForIntersections,!0),removeEvent(document2,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},IntersectionObserver2.prototype._checkForIntersections=function(){var rootIsInDom=this._rootIsInDom(),rootRect=rootIsInDom?this._getRootRect():getEmptyRect();
1this._observationTargets.forEach(function(item){var target=item.element,targetRect=getBoundingClientRect(target),rootContainsTarget=this._rootContainsTarget(target),oldEntry=item.entry,intersectionRect=rootIsInDom&&rootContainsTarget&&this._computeTargetAndRootIntersection(target,rootRect),newEntry=item.entry=new IntersectionObserverEntry({time:now(),target,boundingClientRect:targetRect,rootBounds:rootRect,intersectionRect});oldEntry?rootIsInDom&&rootContainsTarget?this._hasCrossedThreshold(oldEntry,newEntry)&&this._queuedEntries.push(newEntry):oldEntry&&oldEntry.isIntersecting&&this._queuedEntries.push(newEntry):this._queuedEntries.push(newEntry)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},IntersectionObserver2.prototype._computeTargetAndRootIntersection=function(target,rootRect){if(window2.getComputedStyle(target).display!="none"){for(var targetRect=getBoundingClientRect(target),intersectionRect=targetRect,parent=getParentNode(target),atRoot=!1;!atRoot;){var parentRect=null,parentComputedStyle=parent.nodeType==1?window2.getComputedStyle(parent):{};if(parentComputedStyle.display=="none")return;if(parent==this.root||parent==document2?(atRoot=!0,parentRect=rootRect):parent!=document2.body&&parent!=document2.documentElement&&parentComputedStyle.overflow!="visible"&&(parentRect=getBoundingClientRect(parent)),parentRect&&(intersectionRect=computeRectIntersection(parentRect,intersectionRect),!intersectionRect))break;parent=getParentNode(parent)}return intersectionRect}},IntersectionObserver2.prototype._getRootRect=function(){var rootRect;if(this.root)rootRect=getBoundingClientRect(this.root);else{var html=document2.documentElement,body=document2.body;rootRect={top:0,left:0,right:html.clientWidth||body.clientWidth,width:html.clientWidth||body.clientWidth,bottom:html.clientHeight||body.clientHeight,height:html.clientHeight||body.clientHeight}}return this._expandRectByRootMargin(rootRect)},IntersectionObserver2.prototype._expandRectByRootMargin=function(rect){var margins=this._rootMarginValues.map(function(margin,i){return margin.unit=="px"?margin.value:margin.value*(i%2?rect.width:rect.height)/100}),newRect={top:rect.top-margins[0],right:rect.right+margins[1],bottom:rect.bottom+margins[2],left:rect.left-margins[3]};return newRect.width=newRect.right-newRect.left,newRect.height=newRect.bottom-newRect.top,newRect},IntersectionObserver2.prototype._hasCrossedThreshold=function(oldEntry,newEntry){var oldRatio=oldEntry&&oldEntry.isIntersecting?oldEntry.intersectionRatio||0:-1,newRatio=newEntry.isIntersecting?newEntry.intersectionRatio||0:-1;if(oldRatio!==newRatio)for(var i=0;i<this.thresholds.length;i++){var threshold=this.thresholds[i];if(threshold==oldRatio||threshold==newRatio||threshold<oldRatio!=threshold<newRatio)return!0}},IntersectionObserver2.prototype._rootIsInDom=function(){return!this.root||containsDeep(document2,this.root)},IntersectionObserver2.prototype._rootContainsTarget=function(target){return containsDeep(this.root||document2,target)},IntersectionObserver2.prototype._registerInstance=function(){registry.indexOf(this)<0&&registry.push(this)},IntersectionObserver2.prototype._unregisterInstance=function(){var index=registry.indexOf(this);index!=-1&&registry.splice(index,1)};function now(){return window2.performance&&performance.now&&performance.now()}function throttle(fn,timeout){var timer=null;return function(){timer||(timer=setTimeout(function(){fn(),timer=null},timeout))}}function addEvent(node,event,fn,opt_useCapture){typeof node.addEventListener=="function"?node.addEventListener(event,fn,opt_useCapture||!1):typeof node.attachEvent=="function"&&node.attachEvent("on"+event,fn)}function removeEvent(node,event,fn,opt_useCapture){typeof node.removeEventListener=="function"?node.removeEventListener(event,fn,opt_useCapture||!1):typeof node.detatchEvent=="function"&&node.detatchEvent("on"+event,fn)}function computeRectIntersection(rect1,rect2){var top=Math.max(rect1.top,rect2.top),bottom=Math.min(rect1.bottom,rect2.bottom),left=Math.max(rect1.left,rect2.left),right=Math.min(rect1.right,rect2.right),width=right-left,height=bottom-top;return width>=0&&height>=0&&{top,bottom,left,right,width,height}}function getBoundingClientRect(el){var rect;try{rect=el.getBoundingClientRect()}catch{}
1return rect?(rect.width&&rect.height||(rect={top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,width:rect.right-rect.left,height:rect.bottom-rect.top}),rect):getEmptyRect()}function getEmptyRect(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function containsDeep(parent,child){for(var node=child;node;){if(node==parent)return!0;node=getParentNode(node)}return!1}function getParentNode(node){var parent=node.parentNode;return parent&&parent.nodeType==11&&parent.host?parent.host:parent}window2.IntersectionObserver=IntersectionObserver2,window2.IntersectionObserverEntry=IntersectionObserverEntry})(window,document)}),458:(module=>{function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i!=null){var _arr=[],_n=!0,_d=!1,_s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return!=null&&_i.return()}finally{if(_d)throw _e}}return _arr}}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o=="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor)}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");return _classApplyDescriptorSet(receiver,descriptor,value),value}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver))throw new TypeError("attempted to "+action+" private field on non-instance");return privateMap.get(receiver)}function _classApplyDescriptorGet(receiver,descriptor){return descriptor.get?descriptor.get.call(receiver):descriptor.value}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set)descriptor.set.call(receiver,value);else{if(!descriptor.writable)throw new TypeError("attempted to set read only private field");descriptor.value=value}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver))throw new TypeError("attempted to get private field on non-instance");return fn}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap),privateMap.set(obj,value)}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet),privateSet.add(obj)}var list=[" daum[ /]"," deusu/","(?:^| )site","@[a-z]","\\(at\\)[a-z]","\\(github\\.com/","\\[at\\][a-z]","^12345","^<","^[\\w \\.\\-\\(\\)]+(/v?\\d+(\\.\\d+)?(\\.\\d{1,10})?)?$","^[^ ]{50,}$","^active","^ad muncher","^anglesharp/","^anonymous","^avsdevicesdk/","^axios/","^bidtellect/","^biglotron","^castro","^clamav[ /]","^cobweb/","^coccoc","^custom","^ddg[_-]android","^discourse","^dispatch/\\d","^downcast/","^duckduckgo","^facebook","^fdm[ /]\\d","^getright/","^gozilla/","^hatena","^hobbit","^hotzonu","^hwcdn/","^jeode/","^jetty/","^jigsaw","^linkdex","^lwp[-: ]","^metauri","^microsoft bits","^movabletype","^mozilla/\\d\\.\\d \\(compatible;?\\)$","^mozilla/\\d\\.\\d \\w*$","^navermailapp","^netsurf","^offline explorer","^p
2hantom","^php","^postman","^postrank","^python","^read","^reed","^restsharp/","^snapchat","^space bison","^svn","^swcd ","^taringa","^test certificate info","^thumbor/","^tumblr/","^user-agent:mozilla","^valid","^venus/fedoraplanet","^w3c","^webbandit/","^webcopier","^wget","^whatsapp","^xenu link sleuth","^yahoo","^yandex","^zdm/\\d","^zoom marketplace/","^{{.*}}$","adbeat\\.com","appinsights","archive","ask jeeves/teoma","bit\\.ly/","bluecoat drtr","bot","browsex","burpcollaborator","capture","catch","check","chrome-lighthouse","chromeframe","client","cloud","crawl","dareboost","datanyze","dataprovider","dejaclick","dmbrowser","download","evc-batch/","feed","firephp","freesafeip","ghost","gomezagent","google","headlesschrome/","http","httrack","hubspot marketing grader","hydra","ibisbrowser","images","iplabel","ips-agent","java","library","mail\\.ru/","manager","monitor","morningscore/","neustar wpm","news","nutch","offbyone","optimize","pageburst","pagespeed","perl","pingdom","powermarks","preview","proxy","ptst[ /]\\d","reader","rexx;","rigor","rss","scan","scrape","search","serp ?reputation ?management","server","sogou","sparkler/","spider","statuscake","stumbleupon\\.com","supercleaner","synapse","synthetic","taginspector/","torrent","tracemyfile","transcoder","trendsmapresolver","twingly recon","url","virtuoso","wappalyzer","webglance","webkit2png","websitemetadataretriever","whatcms/","wordpress","zgrab"];function amend(list2){try{new RegExp("(?<! cu)bot").test("dangerbot")}catch{return list2}return[["bot","(?<! cu)bot"],["google","(?<! (?:channel/|google/))google(?!(app|/google| pixel))"],["http","(?<!(?:lib))http"],["java","java(?!;)"],["search","(?<! ya(?:yandex)?)search"]].forEach(function(_ref){var _ref2=_slicedToArray(_ref,2),search=_ref2[0],replace=_ref2[1],index=list2.lastIndexOf(search);~index&&list2.splice(index,1,replace)}),list2}amend(list);var flags="i",_list=new WeakMap,_pattern=new WeakMap,_update=new WeakSet,_index=new WeakSet,Isbot=(function(){function Isbot2(patterns){var _this=this;_classCallCheck(this,Isbot2),_classPrivateMethodInitSpec(this,_index),_classPrivateMethodInitSpec(this,_update),_classPrivateFieldInitSpec(this,_list,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,_pattern,{writable:!0,value:void 0}),_classPrivateFieldSet(this,_list,patterns||list.slice()),_classPrivateMethodGet(this,_update,_update2).call(this);var isbot2=function(ua){return _this.test(ua)};return Object.defineProperties(isbot2,Object.entries(Object.getOwnPropertyDescriptors(Isbot2.prototype)).reduce(function(accumulator,_ref){var _ref2=_slicedToArray(_ref,2),prop=_ref2[0],descriptor=_ref2[1];return typeof descriptor.value=="function"&&Object.assign(accumulator,_defineProperty({},prop,{value:_this[prop].bind(_this)})),typeof descriptor.get=="function"&&Object.assign(accumulator,_defineProperty({},prop,{get:function(){return _this[prop]}})),accumulator},{}))}return _createClass(Isbot2,[{key:"pattern",get:function(){return new RegExp(_classPrivateFieldGet(this,_pattern))}},{key:"test",value:function(ua){return!!ua&&_classPrivateFieldGet(this,_pattern).test(ua)}},{key:"find",value:function(){var ua=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",match=ua.match(_classPrivateFieldGet(this,_pattern));return match&&match[0]}},{key:"matches",value:function(){var ua=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _classPrivateFieldGet(this,_list).filter(function(entry){return new RegExp(entry,flags).test(ua)})}},{key:"clear",value:function(){var ua=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";this.exclude(this.matches(ua))}},{key:"extend",value:function(){var _this2=this,filters=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];[].push.apply(_classPrivateFieldGet(this,_list),filters.filter(function(rule){return _classPrivateMethodGet(_this2,_index,_index2).call(_this2,rule)===-1}).map(function(filter){return filter.toLowerCase()})),_classPrivateMethodGet(this,_update,_update2).call(this)}},{key:"exclude",value:function(){for(var filters=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],length=filters.length;length--;){var index=_classPrivateMethodGet(this,_index,_index2).call(this,filters[length]);index>-1&&_classPrivateFieldGet(this,_list).splice(index,1)}_classPrivateMethodGet(this,_update,_update2).call(this)}},{key:"spawn",value:function(list2){return new Isbot2(list2||_classPrivateFieldGet(this,_list))}}]),Isbot2})();function _update2(){_classPrivateFieldSet(this,_pattern,new RegExp(_classPrivateFieldGet(this,_list).join("|"),flags))}function _index2(rule){return _classPrivateFieldGet(this,_list).indexOf(rule.toLowerCase())}var isbot=new Isbot;module.exports=isbot}),755:(function(module,exports){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
3* jQuery JavaScript Library v3.4.1
4* https://jquery.com/
5*
6* Includes Sizzle.js
7* https://sizzlejs.com/
8*
9* Copyright JS Foundation and other contributors
10* Released under the MIT license
11* https://jquery.org/license
12*
13* Date: 2019-05-01T21:04Z
14*/(function(global,factory){"use strict";typeof module.exports=="object"?module.exports=global.document?factory(global,!0):function(w){if(!w.document)throw new Error("jQuery requires a window with a document");return factory(w)}:factory(global)})(typeof window<"u"?window:this,function(window2,noGlobal){"use strict";var arr=[],document2=window2.document,getProto=Object.getPrototypeOf,slice=arr.slice,concat=arr.concat,push=arr.push,indexOf=arr.indexOf,class2type={},toString=class2type.toString,hasOwn=class2type.hasOwnProperty,fnToString=hasOwn.toString,ObjectFunctionString=fnToString.call(Object),support={},isFunction=function(obj){return typeof obj=="function"&&typeof obj.nodeType!="number"},isWindow=function(obj){return obj!=null&&obj===obj.window},preservedScriptAttributes={type:!0,src:!0,nonce:!0,noModule:!0};function DOMEval(code,node,doc){doc=doc||document2;var i,val,script=doc.createElement("script");
vendor: 4,272 bytes, line 14
14if(script.text=code,node)for(i in preservedScriptAttributes)val=node[i]||node.getAttribute&&node.getAttribute(i),val&&script.setAttribute(i,val);doc.head.appendChild(script).parentNode.removeChild(script)}function toType(obj){return obj==null?obj+"":typeof obj=="object"||typeof obj=="function"?class2type[toString.call(obj)]||"object":typeof obj}var version="3.4.1",jQuery2=function(selector,context){return new jQuery2.fn.init(selector,context)},rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;jQuery2.fn=jQuery2.prototype={jquery:version,constructor:jQuery2,length:0,toArray:function(){return slice.call(this)},get:function(num){return num==null?slice.call(this):num<0?this[num+this.length]:this[num]},pushStack:function(elems){var ret=jQuery2.merge(this.constructor(),elems);return ret.prevObject=this,ret},each:function(callback){return jQuery2.each(this,callback)},map:function(callback){return this.pushStack(jQuery2.map(this,function(elem,i){return callback.call(elem,i,elem)}))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[])},end:function(){return this.prevObject||this.constructor()},push,sort:arr.sort,splice:arr.splice},jQuery2.extend=jQuery2.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=!1;for(typeof target=="boolean"&&(deep=target,target=arguments[i]||{},i++),typeof target!="object"&&!isFunction(target)&&(target={}),i===length&&(target=this,i--);i<length;i++)if((options=arguments[i])!=null)for(name in options)copy=options[name],!(name==="__proto__"||target===copy)&&(deep&&copy&&(jQuery2.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))?(src=target[name],copyIsArray&&!Array.isArray(src)?clone=[]:!copyIsArray&&!jQuery2.isPlainObject(src)?clone={}:clone=src,copyIsArray=!1,target[name]=jQuery2.extend(deep,clone,copy)):copy!==void 0&&(target[name]=copy));return target},jQuery2.extend({expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),isReady:!0,error:function(msg){throw new Error(msg)},noop:function(){},isPlainObject:function(obj){var proto,Ctor;return!obj||toString.call(obj)!=="[object Object]"?!1:(proto=getProto(obj),proto?(Ctor=hasOwn.call(proto,"constructor")&&proto.constructor,typeof Ctor=="function"&&fnToString.call(Ctor)===ObjectFunctionString):!0)},isEmptyObject:function(obj){var name;for(name in obj)return!1;return!0},globalEval:function(code,options){DOMEval(code,{nonce:options&&options.nonce})},each:function(obj,callback){var length,i=0;if(isArrayLike(obj))for(length=obj.length;i<length&&callback.call(obj[i],i,obj[i])!==!1;i++);else for(i in obj)if(callback.call(obj[i],i,obj[i])===!1)break;return obj},trim:function(text){return text==null?"":(text+"").replace(rtrim,"")},makeArray:function(arr2,results){var ret=results||[];return arr2!=null&&(isArrayLike(Object(arr2))?jQuery2.merge(ret,typeof arr2=="string"?[arr2]:arr2):push.call(ret,arr2)),ret},inArray:function(elem,arr2,i){return arr2==null?-1:indexOf.call(arr2,elem,i)},merge:function(first,second){for(var len=+second.length,j=0,i=first.length;j<len;j++)first[i++]=second[j];return first.length=i,first},grep:function(elems,callback,invert){for(var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;i<length;i++)callbackInverse=!callback(elems[i],i),callbackInverse!==callbackExpect&&matches.push(elems[i]);return matches},map:function(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems))for(length=elems.length;i<length;i++)value=callback(elems[i],i,arg),value!=null&&ret.push(value);else for(i in elems)value=callback(elems[i],i,arg),value!=null&&ret.push(value);return concat.apply([],ret)},guid:1,support}),typeof Symbol=="function"&&(jQuery2.fn[Symbol.iterator]=arr[Symbol.iterator]),jQuery2.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase()});function isArrayLike(obj){var length=!!obj&&"length"in obj&&obj.length,type=toType(obj);return isFunction(obj)||isWindow(obj)?!1:type==="array"||length===0||typeof length=="number"&&length>
vendor: 3,863 bytes, line 14
140&&length-1 in obj}var Sizzle=(function(window3){var i,support2,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,setDocument,document3,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,expando="sizzle"+1*new Date,preferredDoc=window3.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),nonnativeSelectorCache=createCache(),sortOrder=function(a,b){return a===b&&(hasDuplicate=!0),0},hasOwn2={}.hasOwnProperty,arr2=[],pop=arr2.pop,push_native=arr2.push,push2=arr2.push,slice2=arr2.slice,indexOf2=function(list,elem){for(var i2=0,len=list.length;i2<len;i2++)if(list[i2]===elem)return i2;return-1},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",whitespace="[\\x20\\t\\r\\n\\f]",identifier="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+identifier+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+attributes+")*)|.*)\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rtrim2=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rdescend=new RegExp(whitespace+"|>"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+identifier+")"),CLASS:new RegExp("^\\.("+identifier+")"),TAG:new RegExp("^("+identifier+"|[*])"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rhtml2=/HTML$/i,rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,rquickExpr2=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp("\\\\([\\da-f]{1,6}"+whitespace+"?|("+whitespace+")|.)","ig"),funescape=function(_,escaped,escapedWhitespace){var high="0x"+escaped-65536;return high!==high||escapedWhitespace?escaped:high<0?String.fromCharCode(high+65536):String.fromCharCode(high>>10|55296,high&1023|56320)},rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,fcssescape=function(ch,asCodePoint){return asCodePoint?ch==="\0"?"\uFFFD":ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ":"\\"+ch},unloadHandler=function(){setDocument()},inDisabledFieldset=addCombinator(function(elem){return elem.disabled===!0&&elem.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{push2.apply(arr2=slice2.call(preferredDoc.childNodes),preferredDoc.childNodes),arr2[preferredDoc.childNodes.length].nodeType}catch{push2={apply:arr2.length?function(target,els){push_native.apply(target,slice2.call(els))}:function(target,els){for(var j=target.length,i2=0;target[j++]=els[i2++];);target.length=j-1}}}function Sizzle2(selector,context,results,seed){var m,i2,elem,nid,match,groups,newSelector,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;if(results=results||[],typeof selector!="string"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11)return results;if(!seed&&((context?context.ownerDocument||context:preferredDoc)!==document3&&setDocument(context),context=context||document3,documentIsHTML)){if(nodeType!==11&&(match=rquickExpr2.exec(selector)))if(m=match[1]){if
vendor: 26,956 bytes, line 14
14(nodeType===9)if(elem=context.getElementById(m)){if(elem.id===m)return results.push(elem),results}else return results;else if(newContext&&(elem=newContext.getElementById(m))&&contains(context,elem)&&elem.id===m)return results.push(elem),results}else{if(match[2])return push2.apply(results,context.getElementsByTagName(selector)),results;if((m=match[3])&&support2.getElementsByClassName&&context.getElementsByClassName)return push2.apply(results,context.getElementsByClassName(m)),results}if(support2.qsa&&!nonnativeSelectorCache[selector+" "]&&(!rbuggyQSA||!rbuggyQSA.test(selector))&&(nodeType!==1||context.nodeName.toLowerCase()!=="object")){if(newSelector=selector,newContext=context,nodeType===1&&rdescend.test(selector)){for((nid=context.getAttribute("id"))?nid=nid.replace(rcssescape,fcssescape):context.setAttribute("id",nid=expando),groups=tokenize(selector),i2=groups.length;i2--;)groups[i2]="#"+nid+" "+toSelector(groups[i2]);newSelector=groups.join(","),newContext=rsibling.test(selector)&&testContext(context.parentNode)||context}try{return push2.apply(results,newContext.querySelectorAll(newSelector)),results}catch{nonnativeSelectorCache(selector,!0)}finally{nid===expando&&context.removeAttribute("id")}}}return select(selector.replace(rtrim2,"$1"),context,results,seed)}function createCache(){var keys=[];function cache(key,value){return keys.push(key+" ")>Expr.cacheLength&&delete cache[keys.shift()],cache[key+" "]=value}return cache}function markFunction(fn){return fn[expando]=!0,fn}function assert(fn){var el=document3.createElement("fieldset");try{return!!fn(el)}catch{return!1}finally{el.parentNode&&el.parentNode.removeChild(el),el=null}}function addHandle(attrs,handler){for(var arr3=attrs.split("|"),i2=arr3.length;i2--;)Expr.attrHandle[arr3[i2]]=handler}function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&a.sourceIndex-b.sourceIndex;if(diff)return diff;if(cur){for(;cur=cur.nextSibling;)if(cur===b)return-1}return a?1:-1}function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type}}function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type}}function createDisabledPseudo(disabled){return function(elem){return"form"in elem?elem.parentNode&&elem.disabled===!1?"label"in elem?"label"in elem.parentNode?elem.parentNode.disabled===disabled:elem.disabled===disabled:elem.isDisabled===disabled||elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled:elem.disabled===disabled:"label"in elem?elem.disabled===disabled:!1}}function createPositionalPseudo(fn){return markFunction(function(argument){return argument=+argument,markFunction(function(seed,matches2){for(var j,matchIndexes=fn([],seed.length,argument),i2=matchIndexes.length;i2--;)seed[j=matchIndexes[i2]]&&(seed[j]=!(matches2[j]=seed[j]))})})}function testContext(context){return context&&typeof context.getElementsByTagName<"u"&&context}support2=Sizzle2.support={},isXML=Sizzle2.isXML=function(elem){var namespace=elem.namespaceURI,docElem2=(elem.ownerDocument||elem).documentElement;return!rhtml2.test(namespace||docElem2&&docElem2.nodeName||"HTML")},setDocument=Sizzle2.setDocument=function(node){var hasCompare,subWindow,doc=node?node.ownerDocument||node:preferredDoc;return doc===document3||doc.nodeType!==9||!doc.documentElement||(document3=doc,docElem=document3.documentElement,documentIsHTML=!isXML(document3),preferredDoc!==document3&&(subWindow=document3.defaultView)&&subWindow.top!==subWindow&&(subWindow.addEventListener?subWindow.addEventListener("unload",unloadHandler,!1):subWindow.attachEvent&&subWindow.attachEvent("onunload",unloadHandler)),support2.attributes=assert(function(el){return el.className="i",!el.getAttribute("className")}),support2.getElementsByTagName=assert(function(el){return el.appendChild(document3.createComment("")),!el.getElementsByTagName("*").length}),support2.getElementsByClassName=rnative.test(document3.getElementsByClassName),support2.getById=assert(function(el){return docElem.appendChild(el).id=expando,!document3.getElementsByName||!document3.getElementsByName(expando).length}),support2.getById?(Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}},Expr.find.ID=function(id,context){if(typeof context.getElementById<"u"&&documentIsHTML){var elem=context.getElementById(id);return elem?[elem]:[]}}):(Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node2=typeof elem.getAttributeNode<"u"&&elem.getAttributeNode("id");return node2&&node2.value===attrId}},Expr.find.ID=function(id,context){if(typeof context.getElementById<"u"&&documentIsHTML){var node2,i2,elems,elem=context.getElementById(id);if(elem){if(node2=elem.getAttributeNode("id"),node2&&node2.value===id)return[elem];for(elems=context.getElementsByName(id),i2=0;elem=elems[i2++];)if(node2=elem.getAttributeNode("id"),node2&&node2.value===id)return[elem]}return[]}}),Expr.find.TAG=support2.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName<"u")return context.getElementsByTagName(tag);if(support2.qsa)return context.querySelectorAll(tag)}:function(tag,context){var elem,tmp=[],i2=0,results=context.getElementsByTagName(tag);if(tag==="*"){for(;elem=results[i2++];)elem.nodeType===1&&tmp.push(elem);return tmp}return results},Expr.find.CLASS=support2.getElementsByClassName&&function(className,context){if(typeof context.getElementsByClassName<"u"&&documentIsHTML)return context.getElementsByClassName(className)},rbuggyMatches=[],rbuggyQSA=[],(support2.qsa=rnative.test(document3.querySelectorAll))&&(assert(function(el){docElem.appendChild(el).innerHTML="<a id='"+expando+"'></a><select id='"+expando+"-\r\\' msallowcapture=''><option selected=''></option></select>",el.querySelectorAll("[msallowcapture^='']").length&&rbuggyQSA.push("[*^$]="+whitespace+`*(?:''|"")`),el.querySelectorAll("[selected]").length||rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")"),el.querySelectorAll("[id~="+expando+"-]").length||rbuggyQSA.push("~="),el.querySelectorAll(":checked").length||rbuggyQSA.push(":checked"),el.querySelectorAll("a#"+expando+"+*").length||rbuggyQSA.push(".#.+[+~]")}),assert(function(el){el.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var input=document3.createElement("input");input.setAttribute("type","hidden"),el.appendChild(input).setAttribute("name","D"),el.querySelectorAll("[name=d]").length&&rbuggyQSA.push("name"+whitespace+"*[*^$|!~]?="),el.querySelectorAll(":enabled").length!==2&&rbuggyQSA.push(":enabled",":disabled"),docElem.appendChild(el).disabled=!0,el.querySelectorAll(":disabled").length!==2&&rbuggyQSA.push(":enabled",":disabled"),el.querySelectorAll("*,:x"),rbuggyQSA.push(",.*:")})),(support2.matchesSelector=rnative.test(matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector))&&assert(function(el){support2.disconnectedMatch=matches.call(el,"*"),matches.call(el,"[s!='']:x"),rbuggyMatches.push("!=",pseudos)}),rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")),rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|")),hasCompare=rnative.test(docElem.compareDocumentPosition),contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16))}:function(a,b){if(b){for(;b=b.parentNode;)if(b===a)return!0}return!1},sortOrder=hasCompare?function(a,b){if(a===b)return hasDuplicate=!0,0;var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;return compare||(compare=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,compare&1||!support2.sortDetached&&b.compareDocumentPosition(a)===compare?a===document3||a.ownerDocument===preferredDoc&&contains(preferredDoc,a)?-1:b===document3||b.ownerDocument===preferredDoc&&contains(preferredDoc,b)?1:sortInput?indexOf2(sortInput,a)-indexOf2(sortInput,b):0:compare&4?-1:1)}:function(a,b){if(a===b)return hasDuplicate=!0,0;var cur,i2=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(!aup||!bup)return a===document3?-1:b===document3?1:aup?-1:bup?1:sortInput?indexOf2(sortInput,a)-indexOf2(sortInput,b):0;if(aup===bup)return siblingCheck(a,b);for(cur=a;cur=cur.parentNode;)ap.unshift(cur);for(cur=b;cur=cur.parentNode;)bp.unshift(cur);for(;ap[i2]===bp[i2];)i2++;return i2?siblingCheck(ap[i2],bp[i2]):ap[i2]===preferredDoc?-1:bp[i2]===preferredDoc?1:0}),document3},Sizzle2.matches=function(expr,elements){return Sizzle2(expr,null,null,elements)},Sizzle2.matchesSelector=function(elem,expr){if((elem.ownerDocument||elem)!==document3&&setDocument(elem),support2.matchesSelector&&documentIsHTML&&!nonnativeSelectorCache[expr+" "]&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr)))try{var ret=matches.call(elem,expr);if(ret||support2.disconnectedMatch||elem.document&&elem.document.nodeType!==11)return ret}catch{nonnativeSelectorCache(expr,!0)}return Sizzle2(expr,document3,null,[elem]).length>0},Sizzle2.contains=function(context,elem){return(context.ownerDocument||context)!==document3&&setDocument(context),contains(context,elem)},Sizzle2.attr=function(elem,name){(elem.ownerDocument||elem)!==document3&&setDocument(elem);var fn=Expr.attrHandle[name.toLowerCase()],val=fn&&hasOwn2.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):void 0;return val!==void 0?val:support2.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null},Sizzle2.escape=function(sel){return(sel+"").replace(rcssescape,fcssescape)},Sizzle2.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)},Sizzle2.uniqueSort=function(results){var elem,duplicates=[],j=0,i2=0;if(hasDuplicate=!support2.detectDuplicates,sortInput=!support2.sortStable&&results.slice(0),results.sort(sortOrder),hasDuplicate){for(;elem=results[i2++];)elem===results[i2]&&(j=duplicates.push(i2));for(;j--;)results.splice(duplicates[j],1)}return sortInput=null,results},getText=Sizzle2.getText=function(elem){var node,ret="",i2=0,nodeType=elem.nodeType;if(nodeType){if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent=="string")return elem.textContent;for(elem=elem.firstChild;elem;elem=elem.nextSibling)ret+=getText(elem)}else if(nodeType===3||nodeType===4)return elem.nodeValue}else for(;node=elem[i2++];)ret+=getText(node);return ret},Expr=Sizzle2.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){return match[1]=match[1].replace(runescape,funescape),match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape),match[2]==="~="&&(match[3]=" "+match[3]+" "),match.slice(0,4)},CHILD:function(match){return match[1]=match[1].toLowerCase(),match[1].slice(0,3)==="nth"?(match[3]||Sizzle2.error(match[0]),match[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd")),match[5]=+(match[7]+match[8]||match[3]==="odd")):match[3]&&Sizzle2.error(match[0]),match},PSEUDO:function(match){var excess,unquoted=!match[6]&&match[2];return matchExpr.CHILD.test(match[0])?null:(match[3]?match[2]=match[4]||match[5]||"":unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,!0))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)&&(match[0]=match[0].slice(0,excess),match[2]=unquoted.slice(0,excess)),match.slice(0,3))}},filter:{TAG:function(nodeNameSelector){var nodeName2=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector==="*"?function(){return!0}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName2}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(typeof elem.className=="string"&&elem.className||typeof elem.getAttribute<"u"&&elem.getAttribute("class")||"")})},ATTR:function(name,operator,check){return function(elem){var result=Sizzle2.attr(elem,name);return result==null?operator==="!=":operator?(result+="",operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.slice(-check.length)===check:operator==="~="?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:operator==="|="?result===check||result.slice(0,check.length+1)===check+"-":!1):!0}},CHILD:function(type,what,argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?function(elem){return!!elem.parentNode}:function(elem,context,xml){var cache,uniqueCache,outerCache,node,nodeIndex,start,dir2=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=!1;if(parent){if(simple){for(;dir2;){for(node=elem;node=node[dir2];)if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)return!1;start=dir2=type==="only"&&!start&&"nextSibling"}return!0}if(start=[forward?parent.firstChild:parent.lastChild],forward&&useCache){for(node=parent,outerCache=node[expando]||(node[expando]={}),uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={}),cache=uniqueCache[type]||[],nodeIndex=cache[0]===dirruns&&cache[1],diff=nodeIndex&&cache[2],node=nodeIndex&&parent.childNodes[nodeIndex];node=++nodeIndex&&node&&node[dir2]||(diff=nodeIndex=0)||start.pop();)if(node.nodeType===1&&++diff&&node===elem){uniqueCache[type]=[dirruns,nodeIndex,diff];break}}else if(useCache&&(node=elem,outerCache=node[expando]||(node[expando]={}),uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={}),cache=uniqueCache[type]||[],nodeIndex=cache[0]===dirruns&&cache[1],diff=nodeIndex),diff===!1)for(;(node=++nodeIndex&&node&&node[dir2]||(diff=nodeIndex=0)||start.pop())&&!((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff&&(useCache&&(outerCache=node[expando]||(node[expando]={}),uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={}),uniqueCache[type]=[dirruns,diff]),node===elem)););return diff-=last,diff===first||diff%first===0&&diff/first>=0}}},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle2.error("unsupported pseudo: "+pseudo);return fn[expando]?fn(argument):fn.length>1?(args=[pseudo,pseudo,"",argument],Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches2){for(var idx,matched=fn(seed,argument),i2=matched.length;i2--;)idx=indexOf2(seed,matched[i2]),seed[idx]=!(matches2[idx]=matched[i2])}):function(elem){return fn(elem,0,args)}):fn}},pseudos:{not:markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim2,"$1"));return matcher[expando]?markFunction(function(seed,matches2,context,xml){for(var elem,unmatched=matcher(seed,null,xml,[]),i2=seed.length;i2--;)(elem=unmatched[i2])&&(seed[i2]=!(matches2[i2]=elem))}):function(elem,context,xml){return input[0]=elem,matcher(input,null,xml,results),input[0]=null,!results.pop()}}),has:markFunction(function(selector){return function(elem){return Sizzle2(selector,elem).length>0}}),contains:markFunction(function(text){return text=text.replace(runescape,funescape),function(elem){return(elem.textContent||getText(elem)).indexOf(text)>-1}}),lang:markFunction(function(lang){return ridentifier.test(lang||"")||Sizzle2.error("unsupported lang: "+lang),lang=lang.replace(runescape,funescape).toLowerCase(),function(elem){var elemLang;do if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang"))return elemLang=elemLang.toLowerCase(),elemLang===lang||elemLang.indexOf(lang+"-")===0;while((elem=elem.parentNode)&&elem.nodeType===1);return!1}}),target:function(elem){var hash=window3.location&&window3.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===docElem},focus:function(elem){return elem===document3.activeElement&&(!document3.hasFocus||document3.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:createDisabledPseudo(!1),disabled:createDisabledPseudo(!0),checked:function(elem){var nodeName2=elem.nodeName.toLowerCase();return nodeName2==="input"&&!!elem.checked||nodeName2==="option"&&!!elem.selected},selected:function(elem){return elem.parentNode&&elem.parentNode.selectedIndex,elem.selected===!0},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling)if(elem.nodeType<6)return!1;return!0},parent:function(elem){return!Expr.pseudos.empty(elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button"},text:function(elem){var attr;return elem.nodeName.toLowerCase()==="input"&&elem.type==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase()==="text")},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(matchIndexes,length){return[length-1]}),eq:createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument]}),even:createPositionalPseudo(function(matchIndexes,length){for(var i2=0;i2<length;i2+=2)matchIndexes.push(i2);return matchIndexes}),odd:createPositionalPseudo(function(matchIndexes,length){for(var i2=1;i2<length;i2+=2)matchIndexes.push(i2);return matchIndexes}),lt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i2=argument<0?argument+length:argument>length?length:argument;--i2>=0;)matchIndexes.push(i2);return matchIndexes}),gt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i2=argument<0?argument+length:argument;++i2<length;)matchIndexes.push(i2);return matchIndexes})}},Expr.pseudos.nth=Expr.pseudos.eq;for(i in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Expr.pseudos[i]=createInputPseudo(i);for(i in{submit:!0,reset:!0})Expr.pseudos[i]=createButtonPseudo(i);function setFilters(){}setFilters.prototype=Expr.filters=Expr.pseudos,Expr.setFilters=new setFilters,tokenize=Sizzle2.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached)return parseOnly?0:cached.slice(0);for(soFar=selector,groups=[],preFilters=Expr.preFilter;soFar;){(!matched||(match=rcomma.exec(soFar)))&&(match&&(soFar=soFar.slice(match[0].length)||soFar),groups.push(tokens=[])),matched=!1,(match=rcombinators.exec(soFar))&&(matched=match.shift(),tokens.push({value:matched,type:match[0].replace(rtrim2," ")}),soFar=soFar.slice(matched.length));for(type in Expr.filter)(match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))&&(matched=match.shift(),tokens.push({value:matched,type,matches:match}),soFar=soFar.slice(matched.length));if(!matched)break}return parseOnly?soFar.length:soFar?Sizzle2.error(selector):tokenCache(selector,groups).slice(0)};function toSelector(tokens){for(var i2=0,len=tokens.length,selector="";i2<len;i2++)selector+=tokens[i2].value;return selector}function addCombinator(matcher,combinator,base){var dir2=combinator.dir,skip=combinator.next,key=skip||dir2,checkNonElements=base&&key==="parentNode",doneName=done++;return combinator.first?function(elem,context,xml){for(;elem=elem[dir2];)if(elem.nodeType===1||checkNonElements)return matcher(elem,context,xml);return!1}:function(elem,context,xml){var oldCache,uniqueCache,outerCache,newCache=[dirruns,doneName];if(xml){for(;elem=elem[dir2];)if((elem.nodeType===1||checkNonElements)&&matcher(elem,context,xml))return!0}else for(;elem=elem[dir2];)if(elem.nodeType===1||checkNonElements)if(outerCache=elem[expando]||(elem[expando]={}),uniqueCache=outerCache[elem.uniqueID]||(outerCache[elem.uniqueID]={}),skip&&skip===elem.nodeName.toLowerCase())elem=elem[dir2]||elem;else{if((oldCache=uniqueCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName)return newCache[2]=oldCache[2];if(uniqueCache[key]=newCache,newCache[2]=matcher(elem,context,xml))return!0}return!1}}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){for(var i2=matchers.length;i2--;)if(!matchers[i2](elem,context,xml))return!1;return!0}:matchers[0]}function multipleContexts(selector,contexts,results){for(var i2=0,len=contexts.length;i2<len;i2++)Sizzle2(selector,contexts[i2],results);return results}function condense(unmatched,map,filter,context,xml){for(var elem,newUnmatched=[],i2=0,len=unmatched.length,mapped=map!=null;i2<len;i2++)(elem=unmatched[i2])&&(!filter||filter(elem,context,xml))&&(newUnmatched.push(elem),mapped&&map.push(i2));return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){return postFilter&&!postFilter[expando]&&(postFilter=setMatcher(postFilter)),postFinder&&!postFinder[expando]&&(postFinder=setMatcher(postFinder,postSelector)),markFunction(function(seed,results,context,xml){var temp,i2,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),matcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;if(matcher&&matcher(matcherIn,matcherOut,context,xml),postFilter)for(temp=condense(matcherOut,postMap),postFilter(temp,[],context,xml),i2=temp.length;i2--;)(elem=temp[i2])&&(matcherOut[postMap[i2]]=!(matcherIn[postMap[i2]]=elem));if(seed){if(postFinder||preFilter){if(postFinder){for(temp=[],i2=matcherOut.length;i2--;)(elem=matcherOut[i2])&&temp.push(matcherIn[i2]=elem);postFinder(null,matcherOut=[],temp,xml)}for(i2=matcherOut.length;i2--;)(elem=matcherOut[i2])&&(temp=postFinder?indexOf2(seed,elem):preMap[i2])>-1&&(seed[temp]=!(results[temp]=elem))}}else matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut),postFinder?postFinder(null,results,matcherOut,xml):push2.apply(results,matcherOut)})}function matcherFromTokens(tokens){for(var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i2=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext},implicitRelative,!0),matchAnyContext=addCombinator(function(elem){return indexOf2(checkContext,elem)>-1},implicitRelative,!0),matchers=[function(elem,context,xml){var ret=!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));return checkContext=null,ret}];i2<len;i2++)if(matcher=Expr.relative[tokens[i2].type])matchers=[addCombinator(elementMatcher(matchers),matcher)];else{if(matcher=Expr.filter[tokens[i2].type].apply(null,tokens[i2].matches),matcher[expando]){for(j=++i2;j<len&&!Expr.relative[tokens[j].type];j++);return setMatcher(i2>1&&elementMatcher(matchers),i2>1&&toSelector(tokens.slice(0,i2-1).concat({value:tokens[i2-2].type===" "?"*":""})).replace(rtrim2,"$1"),matcher,i2<j&&matcherFromTokens(tokens.slice(i2,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}return elementMatcher(matchers)}function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i2="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find.TAG("*",outermost),dirrunsUnique=dirruns+=contextBackup==null?1:Math.random()||.1,len=elems.length;for(outermost&&(outermostContext=context===document3||context||outermost);i2!==len&&(elem=elems[i2])!=null;i2++){if(byElement&&elem){for(j=0,!context&&elem.ownerDocument!==document3&&(setDocument(elem),xml=!documentIsHTML);matcher=elementMatchers[j++];)if(matcher(elem,context||document3,xml)){results.push(elem);break}outermost&&(dirruns=dirrunsUnique)}bySet&&((elem=!matcher&&elem)&&matchedCount--,seed&&unmatched.push(elem))}if(matchedCount+=i2,bySet&&i2!==matchedCount){for(j=0;matcher=setMatchers[j++];)matcher(unmatched,setMatched,context,xml);if(seed){if(matchedCount>0)for(;i2--;)unmatched[i2]||setMatched[i2]||(setMatched[i2]=pop.call(results));setMatched=condense(setMatched)}push2.apply(results,setMatched),outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1&&Sizzle2.uniqueSort(results)}return outermost&&(dirruns=dirrunsUnique,outermostContext=contextBackup),unmatched};return bySet?markFunction(superMatcher):superMatcher}return compile=Sizzle2.compile=function(selector,match){var i2,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){for(match||(match=tokenize(selector)),i2=match.length;i2--;)cached=matcherFromTokens(match[i2]),cached[expando]?setMatchers.push(cached):elementMatchers.push(cached);cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers)),cached.selector=selector}return cached},select=Sizzle2.select=function(selector,context,results,seed){var i2,tokens,token,type,find,compiled=typeof selector=="function"&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);if(results=results||[],match.length===1){if(tokens=match[0]=match[0].slice(0),tokens.length>2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){if(context=(Expr.find.ID(token.matches[0].replace(runescape,funescape),context)||[])[0],context)compiled&&(context=context.parentNode);else return results;selector=selector.slice(tokens.shift().value.length)}for(i2=matchExpr.needsContext.test(selector)?0:tokens.length;i2--&&(token=tokens[i2],!Expr.relative[type=token.type]);)if((find=Expr.find[type])&&(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context))){if(tokens.splice(i2,1),selector=seed.length&&toSelector(tokens),!selector)return push2.apply(results,seed),results;break}}return(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context),results},support2.sortStable=expando.split("").sort(sortOrder).join("")===expando,support2.detectDuplicates=!!hasDuplicate,
vendor: 7,737 bytes, line 14
14setDocument(),support2.sortDetached=assert(function(el){return el.compareDocumentPosition(document3.createElement("fieldset"))&1}),assert(function(el){return el.innerHTML="<a href='#'></a>",el.firstChild.getAttribute("href")==="#"})||addHandle("type|href|height|width",function(elem,name,isXML2){if(!isXML2)return elem.getAttribute(name,name.toLowerCase()==="type"?1:2)}),(!support2.attributes||!assert(function(el){return el.innerHTML="<input/>",el.firstChild.setAttribute("value",""),el.firstChild.getAttribute("value")===""}))&&addHandle("value",function(elem,name,isXML2){if(!isXML2&&elem.nodeName.toLowerCase()==="input")return elem.defaultValue}),assert(function(el){return el.getAttribute("disabled")==null})||addHandle(booleans,function(elem,name,isXML2){var val;if(!isXML2)return elem[name]===!0?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null}),Sizzle2})(window2);jQuery2.find=Sizzle,jQuery2.expr=Sizzle.selectors,jQuery2.expr[":"]=jQuery2.expr.pseudos,jQuery2.uniqueSort=jQuery2.unique=Sizzle.uniqueSort,jQuery2.text=Sizzle.getText,jQuery2.isXMLDoc=Sizzle.isXML,jQuery2.contains=Sizzle.contains,jQuery2.escapeSelector=Sizzle.escape;var dir=function(elem,dir2,until){for(var matched=[],truncate=until!==void 0;(elem=elem[dir2])&&elem.nodeType!==9;)if(elem.nodeType===1){if(truncate&&jQuery2(elem).is(until))break;matched.push(elem)}return matched},siblings=function(n,elem){for(var matched=[];n;n=n.nextSibling)n.nodeType===1&&n!==elem&&matched.push(n);return matched},rneedsContext=jQuery2.expr.match.needsContext;function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()}var rsingleTag=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function winnow(elements,qualifier,not){return isFunction(qualifier)?jQuery2.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)!==not}):qualifier.nodeType?jQuery2.grep(elements,function(elem){return elem===qualifier!==not}):typeof qualifier!="string"?jQuery2.grep(elements,function(elem){return indexOf.call(qualifier,elem)>-1!==not}):jQuery2.filter(qualifier,elements,not)}jQuery2.filter=function(expr,elems,not){var elem=elems[0];return not&&(expr=":not("+expr+")"),elems.length===1&&elem.nodeType===1?jQuery2.find.matchesSelector(elem,expr)?[elem]:[]:jQuery2.find.matches(expr,jQuery2.grep(elems,function(elem2){return elem2.nodeType===1}))},jQuery2.fn.extend({find:function(selector){var i,ret,len=this.length,self2=this;if(typeof selector!="string")return this.pushStack(jQuery2(selector).filter(function(){for(i=0;i<len;i++)if(jQuery2.contains(self2[i],this))return!0}));for(ret=this.pushStack([]),i=0;i<len;i++)jQuery2.find(selector,self2[i],ret);return len>1?jQuery2.uniqueSort(ret):ret},filter:function(selector){return this.pushStack(winnow(this,selector||[],!1))},not:function(selector){return this.pushStack(winnow(this,selector||[],!0))},is:function(selector){return!!winnow(this,typeof selector=="string"&&rneedsContext.test(selector)?jQuery2(selector):selector||[],!1).length}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,init=jQuery2.fn.init=function(selector,context,root){var match,elem;if(!selector)return this;if(root=root||rootjQuery,typeof selector=="string")if(selector[0]==="<"&&selector[selector.length-1]===">"&&selector.length>=3?match=[null,selector,null]:match=rquickExpr.exec(selector),match&&(match[1]||!context))if(match[1]){if(context=context instanceof jQuery2?context[0]:context,jQuery2.merge(this,jQuery2.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document2,!0)),rsingleTag.test(match[1])&&jQuery2.isPlainObject(context))for(match in context)isFunction(this[match])?this[match](context[match]):this.attr(match,context[match]);return this}else return elem=document2.getElementById(match[2]),elem&&(this[0]=elem,this.length=1),this;else return!context||context.jquery?(context||root).find(selector):this.constructor(context).find(selector);else{if(selector.nodeType)return this[0]=selector,this.length=1,this;if(isFunction(selector))return root.ready!==void 0?root.ready(selector):selector(jQuery2)}return jQuery2.makeArray(selector,this)};init.prototype=jQuery2.fn,rootjQuery=jQuery2(document2);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};jQuery2.fn.extend({has:function(target){var targets=jQuery2(target,this),l=targets.length;return this.filter(function(){for(var i=0;i<l;i++)if(jQuery2.contains(this,targets[i]))return!0})},closest:function(selectors,context){var cur,i=0,l=this.length,matched=[],targets=typeof selectors!="string"&&jQuery2(selectors);if(!rneedsContext.test(selectors)){for(;i<l;i++)for(cur=this[i];cur&&cur!==context;cur=cur.parentNode)if(cur.nodeType<11&&(targets?targets.index(cur)>-1:cur.nodeType===1&&jQuery2.find.matchesSelector(cur,selectors))){matched.push(cur);break}}return this.pushStack(matched.length>1?jQuery2.uniqueSort(matched):matched)},index:function(elem){return elem?typeof elem=="string"?indexOf.call(jQuery2(elem),this[0]):indexOf.call(this,elem.jquery?elem[0]:elem):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(selector,context){return this.pushStack(jQuery2.uniqueSort(jQuery2.merge(this.get(),jQuery2(selector,context))))},addBack:function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))}});function sibling(cur,dir2){for(;(cur=cur[dir2])&&cur.nodeType!==1;);return cur}jQuery2.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null},parents:function(elem){return dir(elem,"parentNode")},parentsUntil:function(elem,i,until){return dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return dir(elem,"nextSibling")},prevAll:function(elem){return dir(elem,"previousSibling")},nextUntil:function(elem,i,until){return dir(elem,"nextSibling",until)},prevUntil:function(elem,i,until){return dir(elem,"previousSibling",until)},siblings:function(elem){return siblings((elem.parentNode||{}).firstChild,elem)},children:function(elem){return siblings(elem.firstChild)},contents:function(elem){return typeof elem.contentDocument<"u"?elem.contentDocument:(nodeName(elem,"template")&&(elem=elem.content||elem),jQuery2.merge([],elem.childNodes))}},function(name,fn){jQuery2.fn[name]=function(until,selector){var matched=jQuery2.map(this,fn,until);return name.slice(-5)!=="Until"&&(selector=until),selector&&typeof selector=="string"&&(matched=jQuery2.filter(selector,matched)),this.length>1&&(guaranteedUnique[name]||jQuery2.uniqueSort(matched),rparentsprev.test(name)&&matched.reverse()),this.pushStack(matched)}});var rnothtmlwhite=/[^\x20\t\r\n\f]+/g;function createOptions(options){var object={};return jQuery2.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=!0}),object}jQuery2.Callbacks=function(options){options=typeof options=="string"?createOptions(options):jQuery2.extend({},options);var firing,memory,fired,locked,list=[],queue=[],firingIndex=-1,fire=function(){for(locked=locked||options.once,fired=firing=!0;queue.length;firingIndex=-1)for(memory=queue.shift();++firingIndex<list.length;)list[firingIndex].apply(memory[0],memory[1])===!1&&options.stopOnFalse&&(firingIndex=list.length,memory=!1);options.memory||(memory=!1),firing=!1,locked&&(memory?list=[]:list="")},self2={add:function(){return list&&(memory&&!firing&&(firingIndex=list.length-1,queue.push(memory)),(function add(args){jQuery2.each(args,function(_,arg){isFunction(arg)?(!options.unique||!self2.has(arg))&&list.push(arg):arg&&arg.length&&toType(arg)!=="str
14ing"&&add(arg)})})(arguments),memory&&!firing&&fire()),this},remove:function(){return jQuery2.each(arguments,function(_,arg){for(var index;(index=jQuery2.inArray(arg,list,index))>-1;)list.splice(index,1),index<=firingIndex&&firingIndex--}),this},has:function(fn){return fn?jQuery2.inArray(fn,list)>-1:list.length>0},empty:function(){return list&&(list=[]),this},disable:function(){return locked=queue=[],list=memory="",this},disabled:function(){return!list},lock:function(){return locked=queue=[],!memory&&!firing&&(list=memory=""),this},locked:function(){return!!locked},fireWith:function(context,args){return locked||(args=args||[],args=[context,args.slice?args.slice():args],queue.push(args),firing||fire()),this},fire:function(){return self2.fireWith(this,arguments),this},fired:function(){return!!fired}};return self2};function Identity(v){return v}function Thrower(ex){throw ex}function adoptValue(value,resolve,reject,noValue){var method;try{value&&isFunction(method=value.promise)?method.call(value).done(resolve).fail(reject):value&&isFunction(method=value.then)?method.call(value,resolve,reject):resolve.apply(void 0,[value].slice(noValue))}catch(value2){reject.apply(void 0,[value2])}}jQuery2.extend({Deferred:function(func){var tuples=[["notify","progress",jQuery2.Callbacks("memory"),jQuery2.Callbacks("memory"),2],["resolve","done",jQuery2.Callbacks("once memory"),jQuery2.Callbacks("once memory"),0,"resolved"],["reject","fail",jQuery2.Callbacks("once memory"),jQuery2.Callbacks("once memory"),1,"rejected"]],state="pending",promise={state:function(){return state},always:function(){return deferred.done(arguments).fail(arguments),this},catch:function(fn){return promise.then(null,fn)},pipe:function(){var fns=arguments;return jQuery2.Deferred(function(newDefer){jQuery2.each(tuples,function(i,tuple){var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);returned&&isFunction(returned.promise)?returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject):newDefer[tuple[0]+"With"](this,fn?[returned]:arguments)})}),fns=null}).promise()},then:function(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred2,handler,special){return function(){var that=this,args=arguments,mightThrow=function(){var returned,then;if(!(depth<maxDepth)){if(returned=handler.apply(that,args),returned===deferred2.promise())throw new TypeError("Thenable self-resolution");then=returned&&(typeof returned=="object"||typeof returned=="function")&&returned.then,isFunction(then)?special?then.call(returned,resolve(maxDepth,deferred2,Identity,special),resolve(maxDepth,deferred2,Thrower,special)):(maxDepth++,then.call(returned,resolve(maxDepth,deferred2,Identity,special),resolve(maxDepth,deferred2,Thrower,special),resolve(maxDepth,deferred2,Identity,deferred2.notifyWith))):(handler!==Identity&&(that=void 0,args=[returned]),(special||deferred2.resolveWith)(that,args))}},process=special?mightThrow:function(){try{mightThrow()}catch(e){jQuery2.Deferred.exceptionHook&&jQuery2.Deferred.exceptionHook(e,process.stackTrace),depth+1>=maxDepth&&(handler!==Thrower&&(that=void 0,args=[e]),deferred2.rejectWith(that,args))}};depth?process():(jQuery2.Deferred.getStackHook&&(process.stackTrace=jQuery2.Deferred.getStackHook()),window2.setTimeout(process))}}return jQuery2.Deferred(function(newDefer){tuples[0][3].add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith)),tuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity)),tuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower))}).promise()},promise:function(obj){return obj!=null?jQuery2.extend(obj,promise):promise}},deferred={};return jQuery2.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[5];promise[tuple[1]]=list.add,stateString&&list.add(function(){state=stateString},tuples[3-i][2].disable,tuples[3-i][3].disable,tuples[0][2].lock,tuples[0][3].lock),list.add(tuple[3].fire),deferred[tuple[0]]=function(){return deferred[tuple[0]+"With"](this===deferred?void 0:this,arguments),this},deferred[tuple[0]+"With"]=list.fireWith}),promise.promise(deferred),func&&func.call(deferred,deferred),deferred},when:function(singleValue){var remaining=arguments.length,i=remaining,resolve
vendor: 2,931 bytes, line 14
14Contexts=Array(i),resolveValues=slice.call(arguments),master=jQuery2.Deferred(),updateFunc=function(i2){return function(value){resolveContexts[i2]=this,resolveValues[i2]=arguments.length>1?slice.call(arguments):value,--remaining||master.resolveWith(resolveContexts,resolveValues)}};if(remaining<=1&&(adoptValue(singleValue,master.done(updateFunc(i)).resolve,master.reject,!remaining),master.state()==="pending"||isFunction(resolveValues[i]&&resolveValues[i].then)))return master.then();for(;i--;)adoptValue(resolveValues[i],updateFunc(i),master.reject);return master.promise()}});var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;jQuery2.Deferred.exceptionHook=function(error,stack){window2.console&&window2.console.warn&&error&&rerrorNames.test(error.name)&&window2.console.warn("jQuery.Deferred exception: "+error.message,error.stack,stack)},jQuery2.readyException=function(error){window2.setTimeout(function(){throw error})};var readyList=jQuery2.Deferred();jQuery2.fn.ready=function(fn){return readyList.then(fn).catch(function(error){jQuery2.readyException(error)}),this},jQuery2.extend({isReady:!1,readyWait:1,ready:function(wait){(wait===!0?--jQuery2.readyWait:jQuery2.isReady)||(jQuery2.isReady=!0,!(wait!==!0&&--jQuery2.readyWait>0)&&readyList.resolveWith(document2,[jQuery2]))}}),jQuery2.ready.then=readyList.then;function completed(){document2.removeEventListener("DOMContentLoaded",completed),window2.removeEventListener("load",completed),jQuery2.ready()}document2.readyState==="complete"||document2.readyState!=="loading"&&!document2.documentElement.doScroll?window2.setTimeout(jQuery2.ready):(document2.addEventListener("DOMContentLoaded",completed),window2.addEventListener("load",completed));var access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=key==null;if(toType(key)==="object"){chainable=!0;for(i in key)access(elems,fn,i,key[i],!0,emptyGet,raw)}else if(value!==void 0&&(chainable=!0,isFunction(value)||(raw=!0),bulk&&(raw?(fn.call(elems,value),fn=null):(bulk=fn,fn=function(elem,key2,value2){return bulk.call(jQuery2(elem),value2)})),fn))for(;i<len;i++)fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));return chainable?elems:bulk?fn.call(elems):len?fn(elems[0],key):emptyGet},rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;function fcamelCase(all,letter){return letter.toUpperCase()}function camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)}var acceptData=function(owner){return owner.nodeType===1||owner.nodeType===9||!+owner.nodeType};function Data(){this.expando=jQuery2.expando+Data.uid++}Data.uid=1,Data.prototype={cache:function(owner){var value=owner[this.expando];return value||(value={},acceptData(owner)&&(owner.nodeType?owner[this.expando]=value:Object.defineProperty(owner,this.expando,{value,configurable:!0}))),value},set:function(owner,data,value){var prop,cache=this.cache(owner);
vendor: 1,323 bytes, line 14
14if(typeof data=="string")cache[camelCase(data)]=value;else for(prop in data)cache[camelCase(prop)]=data[prop];return cache},get:function(owner,key){return key===void 0?this.cache(owner):owner[this.expando]&&owner[this.expando][camelCase(key)]},access:function(owner,key,value){return key===void 0||key&&typeof key=="string"&&value===void 0?this.get(owner,key):(this.set(owner,key,value),value!==void 0?value:key)},remove:function(owner,key){var i,cache=owner[this.expando];if(cache!==void 0){if(key!==void 0)for(Array.isArray(key)?key=key.map(camelCase):(key=camelCase(key),key=key in cache?[key]:key.match(rnothtmlwhite)||[]),i=key.length;i--;)delete cache[key[i]];(key===void 0||jQuery2.isEmptyObject(cache))&&(owner.nodeType?owner[this.expando]=void 0:delete owner[this.expando])}},hasData:function(owner){var cache=owner[this.expando];return cache!==void 0&&!jQuery2.isEmptyObject(cache)}};var dataPriv=new Data,dataUser=new Data,rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/[A-Z]/g;function getData(data){return data==="true"?!0:data==="false"?!1:data==="null"?null:data===+data+""?+data:rbrace.test(data)?JSON.parse(data):data}function dataAttr(elem,key,data){var name;if(data===void 0&&elem.nodeType===1)if(name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(),data=elem.getAttribute(name),typeof data=="str
14ing"){try{data=getData(data)}catch{}dataUser.set(elem,key,data)}else data=void 0;return data}jQuery2.extend({hasData:function(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem)},data:function(elem,name,data){return dataUser.access(elem,name,data)},removeData:function(elem,name){dataUser.remove(elem,name)},_data:function(elem,name,data){return dataPriv.access(elem,name,data)},_removeData:function(elem,name){dataPriv.remove(elem,name)}}),jQuery2.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(key===void 0){if(this.length&&(data=dataUser.get(elem),elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs"))){for(i=attrs.length;i--;)attrs[i]&&(name=attrs[i].name,name.indexOf("data-")===0&&(name=camelCase(name.slice(5)),dataAttr(elem,name,data[name])));dataPriv.set(elem,"hasDataAttrs",!0)}return data}return typeof key=="object"?this.each(function(){dataUser.set(this,key)}):access(this,function(value2){var data2;if(elem&&value2===void 0)return data2=dataUser.get(elem,key),data2!==void 0||(data2=dataAttr(elem,key),data2!==void 0)?data2:void 0;this.each(function(){dataUser.set(this,key,value2)})},null,value,arguments.length>1,null,!0)},removeData:function(key){return this.each(function(){dataUser.remove(this,key)})}}),jQuery2.extend({queue:function(elem,type,data){var queue;if(elem)return type=(type||"fx")+"queue",queue=dataPriv.get(elem,type),data&&(!queue||Array.isArray(data)?queue=dataPriv.access(elem,type,jQuery2.makeArray(data)):queue.push(data)),queue||[]},dequeue:function(elem,type){type=type||"fx";var queue=jQuery2.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery2._queueHooks(elem,type),next=function(){jQuery2.dequeue(elem,type)};fn==="inprogress"&&(fn=queue.shift(),startLength--),fn&&(type==="fx"&&queue.unshift("inprogress"),delete hooks.stop,fn.call(elem,next,hooks)),!startLength&&hooks&&hooks.empty.fire()},_queueHooks:function(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:jQuery2.Callbacks("once memory").add(function(){dataPriv.remove(elem,[type+"queue",key])})})}}),jQuery2.fn.extend({queue:function(type,data){var setter=2;return typeof type!="string"&&(data=type,type="fx",setter--),arguments.length<setter?jQuery2.queue(this[0],type):data===void 0?this:this.each(function(){var queue=jQuery2.queue(this,type,data);jQuery2._queueHooks(this,type),type==="fx"&&queue[0]!=="inprogress"&&jQuery2.dequeue(this,type)})},dequeue:function(type){return this.each(function(){jQuery2.dequeue(this,type)})},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,obj){var tmp,count=1,defer=jQuery2.Deferred(),elements=this,i=this.length,resolve=function(){--count||defer.resolveWith(elements,[elements])};for(typeof type!="string"&&(obj=type,type=void 0),type=type||"fx";i--;)tmp=dataPriv.get(elements[i],type+"queueHooks"),tmp&&tmp.empty&&(count++,tmp.empty.add(resolve));return resolve(),defer.promise(obj)}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),cssExpand=["Top","Right","Bottom","Left"],documentElement=document2.documentElement,isAttached=function(elem){return jQuery2.contains(elem.ownerDocument,elem)},composed={composed:!0};documentElement.getRootNode&&(isAttached=function(elem){return jQuery2.contains(elem.ownerDocument,elem)||elem.getRootNode(composed)===elem.ownerDocument});var isHiddenWithinTree=function(elem,el){return elem=el||elem,elem.style.display==="none"||elem.style.display===""&&isAttached(elem)&&jQuery2.css(elem,"display")==="none"},swap=function(elem,options,callback,args){var ret,name,old={};for(name in options)old[name]=elem.style[name],elem.style[name]=options[name];ret=callback.apply(elem,args||[]);for(name in options)elem.style[name]=old[name];return ret};function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function(){return tween.cur()}:function(){return jQuery2.css(elem,prop,"")},initial=currentValue(),unit=valueParts&&valueParts[3]||(jQuery2.cssNumber[prop]?"":"px"),initialInUnit=elem.nodeType&&(jQuery2.cssNumber[prop]||unit!=="px"&&+initial)&&rcssNum.exec(jQuery2.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){for(initial=initial/2,unit=unit||initialInUnit[3],initialInUnit=+initial||1;maxIterations--;)jQuery2.style(elem,prop,initialInUnit+unit),(1-scale)*(1-(scale=currentValue()
vendor: 36,289 bytes, line 14
14/initial||.5))<=0&&(maxIterations=0),initialInUnit=initialInUnit/scale;initialInUnit=initialInUnit*2,jQuery2.style(elem,prop,initialInUnit+unit),valueParts=valueParts||[]}return valueParts&&(initialInUnit=+initialInUnit||+initial||0,adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2],tween&&(tween.unit=unit,tween.start=initialInUnit,tween.end=adjusted)),adjusted}var defaultDisplayMap={};function getDefaultDisplay(elem){var temp,doc=elem.ownerDocument,nodeName2=elem.nodeName,display=defaultDisplayMap[nodeName2];return display||(temp=doc.body.appendChild(doc.createElement(nodeName2)),display=jQuery2.css(temp,"display"),temp.parentNode.removeChild(temp),display==="none"&&(display="block"),defaultDisplayMap[nodeName2]=display,display)}function showHide(elements,show){for(var display,elem,values=[],index=0,length=elements.length;index<length;index++)elem=elements[index],elem.style&&(display=elem.style.display,show?(display==="none"&&(values[index]=dataPriv.get(elem,"display")||null,values[index]||(elem.style.display="")),elem.style.display===""&&isHiddenWithinTree(elem)&&(values[index]=getDefaultDisplay(elem))):display!=="none"&&(values[index]="none",dataPriv.set(elem,"display",display)));for(index=0;index<length;index++)values[index]!=null&&(elements[index].style.display=values[index]);return elements}jQuery2.fn.extend({show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(state){return typeof state=="boolean"?state?this.show():this.hide():this.each(function(){isHiddenWithinTree(this)?jQuery2(this).show():jQuery2(this).hide()})}});var rcheckableType=/^(?:checkbox|radio)$/i,rtagName=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,rscriptType=/^$|^module$|\/(?:java|ecma)script/i,wrapMap={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option,wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead,wrapMap.th=wrapMap.td;function getAll(context,tag){var ret;return typeof context.getElementsByTagName<"u"?ret=context.getElementsByTagName(tag||"*"):typeof context.querySelectorAll<"u"?ret=context.querySelectorAll(tag||"*"):ret=[],tag===void 0||tag&&nodeName(context,tag)?jQuery2.merge([context],ret):ret}function setGlobalEval(elems,refElements){for(var i=0,l=elems.length;i<l;i++)dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"))}var rhtml=/<|&#?\w+;/;function buildFragment(elems,context,scripts,selection,ignored){for(var elem,tmp,tag,wrap,attached,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;i<l;i++)if(elem=elems[i],elem||elem===0)if(toType(elem)==="object")jQuery2.merge(nodes,elem.nodeType?[elem]:elem);else if(!rhtml.test(elem))nodes.push(context.createTextNode(elem));else{for(tmp=tmp||fragment.appendChild(context.createElement("div")),tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,tmp.innerHTML=wrap[1]+jQuery2.htmlPrefilter(elem)+wrap[2],j=wrap[0];j--;)tmp=tmp.lastChild;jQuery2.merge(nodes,tmp.childNodes),tmp=fragment.firstChild,tmp.textContent=""}for(fragment.textContent="",i=0;elem=nodes[i++];){if(selection&&jQuery2.inArray(elem,selection)>-1){ignored&&ignored.push(elem);continue}if(attached=isAttached(elem),tmp=getAll(fragment.appendChild(elem),"script"),attached&&setGlobalEval(tmp),scripts)for(j=0;elem=tmp[j++];)rscriptType.test(elem.type||"")&&scripts.push(elem)}return fragment}(function(){var fragment=document2.createDocumentFragment(),div=fragment.appendChild(document2.createElement("div")),input=document2.createElement("input");input.setAttribute("type","radio"),input.setAttribute("checked","checked"),input.setAttribute("name","t"),div.appendChild(input),support.checkClone=div.cloneNode(!0).cloneNode(!0).lastChild.checked,div.innerHTML="<textarea>x</textarea>",support.noCloneChecked=!!div.cloneNode(!0).lastChild.defaultValue})();var rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rtypenamespace=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return!0}function returnFalse(){return!1}function expectSync(elem,type){return elem===safeActiveElement()==(type==="focus")}function safeActiveElement(){try{return document2.activeElement}catch{}}function on(elem,types,selector,data,fn,one){var origFn,type;if(typeof types=="object"){typeof selector!="string"&&(data=data||selector,selector=void 0);for(type in types)on(elem,type,selector,data,types[type],one);return elem}if(data==null&&fn==null?(fn=selector,data=selector=void 0):fn==null&&(typeof selector=="string"?(fn=data,data=void 0):(fn=data,data=selector,selector=void 0)),fn===!1)fn=returnFalse;else if(!fn)return elem;return one===1&&(origFn=fn,fn=function(event){return jQuery2().off(event),origFn.apply(this,arguments)},fn.guid=origFn.guid||(origFn.guid=jQuery2.guid++)),elem.each(function(){jQuery2.event.add(this,types,fn,data,selector)})}jQuery2.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.get(elem);if(elemData)for(handler.handler&&(handleObjIn=handler,handler=handleObjIn.handler,selector=handleObjIn.selector),selector&&jQuery2.find.matchesSelector(documentElement,selector),handler.guid||(handler.guid=jQuery2.guid++),(events=elemData.events)||(events=elemData.events={}),(eventHandle=elemData.handle)||(eventHandle=elemData.handle=function(e){return typeof jQuery2<"u"&&jQuery2.event.triggered!==e.type?jQuery2.event.dispatch.apply(elem,arguments):void 0}),types=(types||"").match(rnothtmlwhite)||[""],t=types.length;t--;)tmp=rtypenamespace.exec(types[t])||[],type=origType=tmp[1],namespaces=(tmp[2]||"").split(".").sort(),type&&(special=jQuery2.event.special[type]||{},type=(selector?special.delegateType:special.bindType)||type,special=jQuery2.event.special[type]||{},handleObj=jQuery2.extend({type,origType,data,handler,guid:handler.guid,selector,needsContext:selector&&jQuery2.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn),(handlers=events[type])||(handlers=events[type]=[],handlers.delegateCount=0,(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===!1)&&elem.addEventListener&&elem.addEventListener(type,eventHandle)),special.add&&(special.add.call(elem,handleObj),handleObj.handler.guid||(handleObj.handler.guid=handler.guid)),selector?handlers.splice(handlers.delegateCount++,0,handleObj):handlers.push(handleObj),jQuery2.event.global[type]=!0)},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(!(!elemData||!(events=elemData.events))){for(types=(types||"").match(rnothtmlwhite)||[""],t=types.length;t--;){if(tmp=rtypenamespace.exec(types[t])||[],type=origType=tmp[1],namespaces=(tmp[2]||"").split(".").sort(),!type){for(type in events)jQuery2.event.remove(elem,type+types[t],handler,selector,!0);continue}for(special=jQuery2.event.special[type]||{},type=(selector?special.delegateType:special.bindType)||type,handlers=events[type]||[],tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"),origCount=j=handlers.length;j--;)handleObj=handlers[j],(mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)&&(handlers.splice(j,1),handleObj.selector&&handlers.delegateCount--,special.remove&&special.remove.call(elem,handleObj));origCount&&!handlers.length&&((!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===!1)&&jQuery2.removeEvent(elem,type,elemData.handle),delete events[type])}jQuery2.isEmptyObject(events)&&dataPriv.remove(elem,"handle events")}},dispatch:function(nativeEvent){var event=jQuery2.event.fix(nativeEvent),i,j,ret,matched,handleObj,handlerQueue,args=new Array(arguments.length),handlers=(dataPriv.get(this,"events")||{})[event.type]||[],special=jQuery2.event.special[event.type]||{};for(args[0]=event,i=1;i<arguments.length;i++)args[i]=arguments[i];if(event.delegateTarget=this,!(special.preDispatch&&special.preDispatch.call(this,event)===!1)){for(handlerQueue=jQuery2.event.handlers.call(this,event,handlers),i=0;(matched=handlerQueue[i++])&&!event.isPropagationStopped();)for(event.currentTarget=matched.elem,j=0;(handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped();)(!event.rnamespace||handleObj.namespace===!1||event.rnamespace.test(handleObj.namespace))&&(event.handleObj=handleObj,event.data=handleObj.data,ret=((jQuery2.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args),ret!==void 0&&(event.result=ret)===!1&&(event.preventDefault(),event.stopPropagation()));return special.postDispatch&&special.postDispatch.call(this,event),event.result}},handlers:function(event,handlers){var i,handleObj,sel,matchedHandlers,matchedSelectors,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&!(event.type==="click"&&event.button>=1)){for(;cur!==this;cur=cur.parentNode||this)if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===!0)){for(matchedHandlers=[],matchedSelectors={},i=0;i<delegateCount;i++)handleObj=handlers[i],sel=handleObj.selector+" ",matchedSelectors[sel]===void 0&&(matchedSelectors[sel]=handleObj.needsContext?jQuery2(sel,this).index(cur)>-1:jQuery2.find(sel,this,null,[cur]).length),matchedSelectors[sel]&&matchedHandlers.push(handleObj);matchedHandlers.length&&handlerQueue.push({elem:cur,handlers:matchedHandlers})}}return cur=this,delegateCount<handlers.length&&handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)}),handlerQueue},addProp:function(name,hook){Object.defineProperty(jQuery2.Event.prototype,name,{enumerable:!0,configurable:!0,get:isFunction(hook)?function(){if(this.originalEvent)return hook(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[name]},set:function(value){Object.defineProperty(this,name,{enumerable:!0,configurable:!0,writable:!0,value})}})},fix:function(originalEvent){return originalEvent[jQuery2.expando]?originalEvent:new jQuery2.Event(originalEvent)},special:{load:{noBubble:!0},click:{setup:function(data){var el=this||data;return rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")&&leverageNative(el,"click",returnTrue),!1},trigger:function(data){var el=this||data;return rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")&&leverageNative(el,"click"),!0},_default:function(event){var target=event.target;return rcheckableType.test(target.type)&&target.click&&nodeName(target,"input")&&dataPriv.get(target,"click")||nodeName(target,"a")}},beforeunload:{postDispatch:function(event){event.result!==void 0&&event.originalEvent&&(event.originalEvent.returnValue=event.result)}}}};function leverageNative(el,type,expectSync2){if(!expectSync2){dataPriv.get(el,type)===void 0&&jQuery2.event.add(el,type,returnTrue);return}dataPriv.set(el,type,!1),jQuery2.event.add(el,type,{namespace:!1,handler:function(event){var notAsync,result,saved=dataPriv.get(this,type);if(event.isTrigger&1&&this[type]){if(saved.length)(jQuery2.event.special[type]||{}).delegateType&&event.stopPropagation();else if(saved=slice.call(arguments),dataPriv.set(this,type,saved),notAsync=expectSync2(this,type),this[type](),result=dataPriv.get(this,type),saved!==result||notAsync?dataPriv.set(this,type,!1):result={},saved!==result)return event.stopImmediatePropagation(),event.preventDefault(),result.value}else saved.length&&(dataPriv.set(this,type,{value:jQuery2.event.trigger(jQuery2.extend(saved[0],jQuery2.Event.prototype),saved.slice(1),this)}),event.stopImmediatePropagation())}})}jQuery2.removeEvent=function(elem,type,handle){elem.removeEventListener&&elem.removeEventListener(type,handle)},jQuery2.Event=function(src,props){if(!(this instanceof jQuery2.Event))return new jQuery2.Event(src,props);src&&src.type?(this.originalEvent=src,this.type=src.type,this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===void 0&&src.returnValue===!1?returnTrue:returnFalse,this.target=src.target&&src.target.nodeType===3?src.target.parentNode:src.target,this.currentTarget=src.currentTarget,this.relatedTarget=src.relatedTarget):this.type=src,props&&jQuery2.extend(this,props),this.timeStamp=src&&src.timeStamp||Date.now(),this[jQuery2.expando]=!0},jQuery2.Event.prototype={constructor:jQuery2.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},jQuery2.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(event){var button=event.button;return event.which==null&&rkeyEvent.test(event.type)?event.charCode!=null?event.charCode:event.keyCode:!event.which&&button!==void 0&&rmouseEvent.test(event.type)?button&1?1:button&2?3:button&4?2:0:event.which}},jQuery2.event.addProp),jQuery2.each({focus:"focusin",blur:"focusout"},function(type,delegateType){jQuery2.event.special[type]={setup:function(){return leverageNative(this,type,expectSync),!1},trigger:function(){return leverageNative(this,type),!0},delegateType}}),jQuery2.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){jQuery2.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;return(!related||related!==target&&!jQuery2.contains(target,related))&&(event.type=handleObj.origType,ret=handleObj.handler.apply(this,arguments),event.type=fix),ret}}}),jQuery2.fn.extend({on:function(types,selector,data,fn){return on(this,types,selector,data,fn)},one:function(types,selector,data,fn){return on(this,types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj)return handleObj=types.handleObj,jQuery2(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler),this;if(typeof types=="object"){for(type in types)this.off(type,selector,types[type]);return this}return(selector===!1||typeof selector=="function")&&(fn=selector,selector=void 0),fn===!1&&(fn=returnFalse),this.each(function(){jQuery2.event.remove(this,types,fn,selector)})}});var rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,rnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function manipulationTarget(elem,content){return nodeName(elem,"table")&&nodeName(content.nodeType!==11?content:content.firstChild,"tr")&&jQuery2(elem).children("tbody")[0]||elem}function disableScript(elem){return elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type,elem}function restoreScript(elem){return(elem.type||"").slice(0,5)==="true/"?elem.type=elem.type.slice(5):elem.removeAttribute("type"),elem}function cloneCopyEvent(src,dest){var i,l,type,pdataOld,pdataCur,udataOld,udataCur,events;if(dest.nodeType===1){if(dataPriv.hasData(src)&&(pdataOld=dataPriv.access(src),pdataCur=dataPriv.set(dest,pdataOld),events=pdataOld.events,events)){delete pdataCur.handle,pdataCur.events={};for(type in events)for(i=0,l=events[type].length;i<l;i++)jQuery2.event.add(dest,type,events[type][i])}dataUser.hasData(src)&&(udataOld=dataUser.access(src),udataCur=jQuery2.extend({},udataOld),dataUser.set(dest,udataCur))}}function fixInput(src,dest){var nodeName2=dest.nodeName.toLowerCase();nodeName2==="input"&&rcheckableType.test(src.type)?dest.checked=src.checked:(nodeName2==="input"||nodeName2==="textarea")&&(dest.defaultValue=src.defaultValue)}function domManip(collection,args,callback,ignored){args=concat.apply([],args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);if(valueIsFunction||l>1&&typeof value=="string"&&!support.checkClone&&rchecked.test(value))return collection.each(function(index){var self2=collection.eq(index);valueIsFunction&&(args[0]=value.call(this,index,self2.html())),domManip(self2,args,callback,ignored)});if(l&&(fragment=buildFragment(args,collection[0].ownerDocument,!1,collection,ignored),first=fragment.firstChild,fragment.childNodes.length===1&&(fragment=first),first||ignored)){for(scripts=jQuery2.map(getAll(fragment,"script"),disableScript),hasScripts=scripts.length;i<l;i++)node=fragment,i!==iNoClone&&(node=jQuery2.clone(node,!0,!0),hasScripts&&jQuery2.merge(scripts,getAll(node,"script"))),callback.call(collection[i],node,i);if(hasScripts)for(doc=scripts[scripts.length-1].ownerDocument,jQuery2.map(scripts,restoreScript),i=0;i<hasScripts;i++)node=scripts[i],rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&jQuery2.contains(doc,node)&&(node.src&&(node.type||"").toLowerCase()!=="module"?jQuery2._evalUrl&&!node.noModule&&jQuery2._evalUrl(node.src,{nonce:node.nonce||node.getAttribute("nonce")}):DOMEval(node.textContent.replace(rcleanScript,""),node,doc))}return collection}function remove(elem,selector,keepData){for(var node,nodes=selector?jQuery2.filter(selector,elem):elem,i=0;(node=nodes[i])!=null;i++)!keepData&&node.nodeType===1&&jQuery2.cleanData(getAll(node)),node.parentNode&&(keepData&&isAttached(node)&&setGlobalEval(getAll(node,"script")),node.parentNode.removeChild(node));return elem}jQuery2.extend({htmlPrefilter:function(html){return html.replace(rxhtmlTag,"<$1></$2>")},clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,clone=elem.cloneNode(!0),inPage=isAttached(elem);if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery2.isXMLDoc(elem))for(destElements=getAll(clone),srcElements=getAll(elem),i=0,l=srcElements.length;i<l;i++)fixInput(srcElements[i],destElements[i]);if(dataAndEvents)if(deepDataAndEvents)for(srcElements=srcElements||getAll(elem),destElements=destElements||getAll(clone),i=0,l=srcElements.length;i<l;i++)cloneCopyEvent(srcElements[i],destElements[i]);else cloneCopyEvent(elem,clone);return destElements=getAll(clone,"script"),destElements.length>0&&setGlobalEval(destElements,!inPage&&getAll(elem,"script")),clone},cleanData:function(elems){for(var data,elem,type,special=jQuery2.event.special,i=0;(elem=elems[i])!==void 0;i++)if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events)for(type in data.events)special[type]?jQuery2.event.remove(elem,type):jQuery2.removeEvent(elem,type,data.handle);elem[dataPriv.expando]=void 0}elem[dataUser.expando]&&(elem[dataUser.expando]=void 0)}}}),jQuery2.fn.extend({detach:function(selector){return remove(this,selector,!0)},remove:function(selector){return remove(this,selector)},text:function(value){return access(this,function(value2){return value2===void 0?jQuery2.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=value2)})},null,value,arguments.length)},append:function(){return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem)}})},prepend:function(){return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild)}})},before:function(){return domManip(this,arguments,function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this)})},after:function(){return domManip(this,arguments,function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this.nextSibling)})},empty:function(){for(var elem,i=0;(elem=this[i])!=null;i++)elem.nodeType===1&&(jQuery2.cleanData(getAll(elem,!1)),elem.textContent="");return this},clone:function(dataAndEvents,deepDataAndEvents){return dataAndEvents=dataAndEvents??!1,deepDataAndEvents=deepDataAndEvents??dataAndEvents,this.map(function(){return jQuery2.clone(this,dataAndEvents,deepDataAndEvents)})},html:function(value){return access(this,function(value2){var elem=this[0]||{},i=0,l=this.length;if(value2===void 0&&elem.nodeType===1)return elem.innerHTML;if(typeof value2=="string"&&!rnoInnerhtml.test(value2)&&!wrapMap[(rtagName.exec(value2)||["",""])[1].toLowerCase()]){value2=jQuery2.htmlPrefilter(value2);try{for(;i<l;i++)elem=this[i]||{},elem.nodeType===1&&(jQuery2.cleanData(getAll(elem,!1)),elem.innerHTML=value2);elem=0}catch{}}elem&&this.empty().append(value2)},null,value,arguments.length)},replaceWith:function(){var ignored=[];return domManip(this,arguments,function(elem){var parent=this.parentNode;jQuery2.inArray(this,ignored)<0&&(jQuery2.cleanData(getAll(this)),parent&&parent.replaceChild(elem,this))},ignored)}}),jQuery2.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery2.fn[name]=function(selector){for(var elems,ret=[],insert=jQuery2(selector),last=insert.length-1,i=0;i<=last;i++)elems=i===last?this:this.clone(!0),jQuery2(insert[i])[original](elems),push.apply(ret,elems.get());return this.pushStack(ret)}});var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"),getStyles=function(elem){var view=elem.ownerDocument.defaultView;return(!view||!view.opener)&&(view=window2),view.getComputedStyle(elem)},rboxStyle=new RegExp(cssExpand.join("|"),"i");(function(){function computeStyleTests(){if(div){container.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",documentElement.appendChild(container).appendChild(div);var divStyle=window2.getComputedStyle(div);pixelPositionVal=divStyle.top!=="1%",reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12,div.style.right="60%",pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36,boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36,div.style.position="absolute",scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12,documentElement.removeChild(container),div=null}}function roundPixelMeasures(measure){return Math.round(parseFloat(measure))}var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableMarginLeftVal,container=document2.createElement("div"),div=document2.createElement("div");div.style&&(div.style.backgroundClip="content-box",div.cloneNode(!0).style.backgroundClip="",support.clearCloneStyle=div.style.backgroundClip==="content-box",jQuery2.extend(support,{boxSizingReliable:function(){return computeStyleTests(),boxSizingReliableVal},pixelBoxStyles:function(){return computeStyleTests(),pixelBoxStylesVal},pixelPosition:function(){return computeStyleTests(),pixelPositionVal},reliableMarginLeft:function(){return computeStyleTests(),reliableMarginLeftVal},scrollboxSize:function(){return computeStyleTests(),scrollboxSizeVal}}))})();function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;return computed=computed||getStyles(elem),computed&&(ret=computed.getPropertyValue(name)||computed[name],ret===""&&!isAttached(elem)&&(ret=jQuery2.style(elem,name)),!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)&&(width=style.width,minWidth=style.minWidth,maxWidth=style.maxWidth,style.minWidth=style.maxWidth=style.width=ret,ret=computed.width,style.width=width,style.minWidth=minWidth,style.maxWidth=maxWidth)),ret!==void 0?ret+"":ret}function addGetHookIf(conditionFn,hookFn){return{get:function(){if(conditionFn()){delete this.get;return}return(this.get=hookFn).apply(this,arguments)}}}var cssPrefixes=["Webkit","Moz","ms"],emptyStyle=document2.createElement("div").style,vendorProps={};function vendorPropName(name){for(var capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;i--;)if(name=cssPrefixes[i]+capName,name in emptyStyle)return name}function finalPropName(name){var final=jQuery2.cssProps[name]||vendorProps[name];return final||(name in emptyStyle?name:vendorProps[name]=vendorPropName(name)||name)}var rdisplayswap=/^(none|table(?!-c[ea]).+)/,rcustomProp=/^--/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"};function setPositiveNumber(elem,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value}function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i=dimension==="width"?1:0,extra=0,delta=0;if(box===(isBorderBox?"border":"content"))return 0;for(;i<4;i+=2)box==="margin"&&(delta+=jQuery2.css(elem,box+cssExpand[i],!0,styles)),isBorderBox?(box==="content"&&(delta-=jQuery2.css(elem,"padding"+cssExpand[i],!0,styles)),box!=="margin"&&(delta-=jQuery2.css(elem,"border"+cssExpand[i]+"Width",!0,styles))):(delta+=jQuery2.css(elem,"padding"+cssExpand[i],!0,styles),box!=="padding"?delta+=jQuery2.css(elem,"border"+cssExpand[i]+"Width",!0,styles):extra+=jQuery2.css(elem,"border"+cssExpand[i]+"Width",!0,styles));return!isBorderBox&&computedVal>=0&&(delta+=Math.max(0,Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-computedVal-delta-extra-.5))||0),delta}function getWidthOrHeight(elem,dimension,extra){var styles=getStyles(elem),boxSizingNeeded=!support.boxSizingReliable()||extra,isBorderBox=boxSizingNeeded&&jQuery2.css(elem,"boxSizing",!1,styles)==="border-box",valueIsBorderBox=isBorderBox,val=curCSS(elem,dimension,styles),offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);if(rnumnonpx.test(val)){if(!extra)return val;val="auto"}return(!support.boxSizingReliable()&&isBorderBox||val==="auto"||!parseFloat(val)&&jQuery2.css(elem,"display",!1,styles)==="inline")&&elem.getClientRects().length&&(isBorderBox=jQuery2.css(elem,"boxSizing",!1,styles)==="border-box",valueIsBorderBox=offsetProp in elem,valueIsBorderBox&&(val=elem[offsetProp])),val=parseFloat(val)||0,val+boxModelAdjustment(elem,dimension,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles,val)+"px"}jQuery2.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return ret===""?"1":ret}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(elem,name,value,extra){if(!(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style)){var ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;if(isCustomProp||(name=finalPropName(origName)),hooks=jQuery2.cssHooks[name]||jQuery2.cssHooks[origName],value!==void 0){if(type=typeof value,type==="string"&&(ret=rcssNum.exec(value))&&ret[1]&&(value=adjustCSS(elem,name,ret),type="number"),value==null||value!==value)return;type==="number"&&!isCustomProp&&(value+=ret&&ret[3]||(jQuery2.cssNumber[origName]?"":"px")),!support.clearCloneStyle&&value===""&&name.indexOf("background")===0&&(style[name]="inherit"),(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==void 0)&&(isCustomProp?style.setProperty(name,value):style[name]=value)}else return hooks&&"get"in hooks&&(ret=hooks.get(elem,!1,extra))!==void 0?ret:style[name]}},css:function(elem,name,extra,styles){var val,num,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name);return isCustomProp||(name=finalPropName(origName)),hooks=jQuery2.cssHooks[name]||jQuery2.cssHooks[origName],hooks&&"get"in hooks&&(val=hooks.get(elem,!0,extra)),val===void 0&&(val=curCSS(elem,name,styles)),val==="normal"&&name in cssNormalTransform&&(val=cssNormalTransform[name]),extra===""||extra?(num=parseFloat(val),extra===!0||isFinite(num)?num||0:val):val}}),jQuery2.each(["height","width"],function(i,dimension){jQuery2.cssHooks[dimension]={get:function(elem,computed,extra){if(computed)return rdisplayswap.test(jQuery2.css(elem,"display"))&&(!elem.getClientRects().length||!elem.getBoundingClientRect().width)?swap(elem,cssShow,function(){return getWidthOrHeight(elem,dimension,extra)}):getWidthOrHeight(elem,dimension,extra)},set:function(elem,value,extra){var matches,styles=getStyles(elem),scrollboxSizeBuggy=!support.scrollboxSize()&&styles.position==="absolute",boxSizingNeeded=scrollboxSizeBuggy||extra,isBorderBox=boxSizingNeeded&&jQuery2.css(elem,"boxSizing",!1,styles)==="border-box",subtract=extra?boxModelAdjustment(elem,dimension,extra,isBorderBox,styles):0;return isBorderBox&&scrollboxSizeBuggy&&(subtract-=Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-parseFloat(styles[dimension])-boxModelAdjustment(elem,dimension,"border",!1,styles)-.5)),subtract&&(matches=rcssNum.exec(value))&&(matches[3]||"px")!=="px"&&(elem.style[dimension]=value,value=jQuery2.css(elem,dimension)),setPositiveNumber(elem,value,subtract)}}}),jQuery2.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,function(elem,computed){if(computed)return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect().left-swap(elem,{marginLeft:0},function(){return elem.getBoundingClientRect().left}))+"px"}),jQuery2.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery2.cssHooks[prefix+suffix]={expand:function(value){for(var i=0,expanded={},parts=typeof value=="string"?value.split(" "):[value];i<4;i++)expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];return expanded}},prefix!=="margin"&&(jQuery2.cssHooks[prefix+suffix].set=setPositiveNumber)}),jQuery2.fn.extend({css:function(name,value){return access(this,function(elem,name2,value2){var styles,len,map={},i=0;if(Array.isArray(name2)){for(styles=getStyles(elem),len=name2.length;i<len;i++)map[name2[i]]=jQuery2.css(elem,name2[i],!1,styles);return map}return value2!==void 0?jQuery2.style(elem,name2,value2):jQuery2.css(elem,name2)},name,value,arguments.length>1)}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}jQuery2.Tween=Tween,Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem,this.prop=prop,this.easing=easing||jQuery2.easing._default,this.options=options,this.start=this.now=this.cur(),this.end=end,this.unit=unit||(jQuery2.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this)},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];return this.options.duration?this.pos=eased=jQuery2.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration):this.pos=eased=percent,this.now=(this.end-this.start)*eased+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),hooks&&hooks.set?hooks.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(tween){var result;return tween.elem.nodeType!==1||tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null?tween.elem[tween.prop]:(result=jQuery2.css(tween.elem,tween.prop,""),!result||result==="auto"?0:result)},set:function(tween){jQuery2.fx.step[tween.prop]?jQuery2.fx.step[tween.prop](tween):tween.elem.nodeType===1&&(jQuery2.cssHooks[tween.prop]||tween.elem.style[finalPropName(tween.prop)]!=null)?jQuery2.style(tween.elem,tween.prop,tween.now+tween.unit):tween.elem[tween.prop]=tween.now}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){tween.elem.nodeType&&tween.elem.parentNode&&(tween.elem[tween.prop]=tween.now)}},jQuery2.easing={linear:function(p){return p},swing:function(p){return .5-Math.cos(p*Math.PI)/2},_default:"swing"},jQuery2.fx=Tween.prototype.init,jQuery2.fx.step={};var fxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule(){inProgress&&(document2.hidden===!1&&window2.requestAnimationFrame?window2.requestAnimationFrame(schedule):window2.setTimeout(schedule,jQuery2.fx.interval),jQuery2.fx.tick())}function createFxNow(){return window2.setTimeout(function(){fxNow=void 0}),fxNow=Date.now()}function genFx(type,includeWidth){var which,i=0,attrs={height:type};for(includeWidth=includeWidth?1:0;i<4;i+=2-includeWidth)which=cssExpand[i],attrs["margin"+which]=attrs["padding"+which]=type;return includeWidth&&(attrs.opacity=attrs.width=type),attrs}function createTween(value,prop,animation){for(var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;index<length;index++)if(tween=collection[index].call(animation,prop,value))return tween}function defaultPrefilter(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,isBox="width"in props||"height"in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,"fxshow");opts.queue||(hooks=jQuery2._queueHooks(elem,"fx"),hooks.unqueued==null&&(hooks.unqueued=0,oldfire=hooks.empty.fire,hooks.empty.fire=function(){hooks.unqueued||oldfire()}),hooks.unqueued++,anim.always(function(){anim.always(function(){hooks.unqueued--,jQuery2.queue(elem,"fx").length||hooks.empty.fire()})}));for(prop in props)if(value=props[prop],rfxtypes.test(value)){if(delete props[prop],toggle=toggle||value==="toggle",value===(hidden?"hide":"show"))if(value==="show"&&dataShow&&dataShow[prop]!==void 0)hidden=!0;else continue;orig[prop]=dataShow&&dataShow[prop]||jQuery2.style(elem,prop)}if(propTween=!jQuery2.isEmptyObject(props),!(!propTween&&jQuery2.isEmptyObject(orig))){isBox&&elem.nodeType===1&&(opts.overflow=[style.overflow,style.overflowX,style.overflowY],restoreDisplay=dataShow&&dataShow.display,restoreDisplay==null&&(restoreDisplay=dataPriv.get(elem,"display")),display=jQuery2.css(elem,"display"),display==="none"&&(restoreDisplay?display=restoreDisplay:(showHide([elem],!0),restoreDisplay=elem.style.display||restoreDisplay,display=jQuery2.css(elem,"display"),showHide([elem]))),(display==="inline"||display==="inline-block"&&restoreDisplay!=null)&&jQuery2.css(elem,"float")==="none"&&(propTween||(anim.done(function(){style.display=restoreDisplay}),restoreDisplay==null&&(display=style.display,restoreDisplay=display==="none"?"":display)),style.display="inline-block")),opts.overflow&&(style.overflow="hidden",anim.always(function(){style.overflow=opts.overflow[0],style.overflowX=opts.overflow[1],style.overflowY=opts.overflow[2]})),propTween=!1;for(prop in orig)propTween||(dataShow?"hidden"in dataShow&&(hidden=dataShow.hidden):dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay}),toggle&&(dataShow.hidden=!hidden),hidden&&showHide([elem],!0),anim.done(function(){hidden||showHide([elem]),dataPriv.remove(elem,"fxshow");for(prop in orig)jQuery2.style(elem,prop,orig[prop])})),propTween=createTween(hidden?dataShow[prop]:0,prop,anim),prop in dataShow||(dataShow[prop]=propTween.start,hidden&&(propTween.end=propTween.start,propTween.start=0))}}function propFilter(props,specialEasing){var index,name,easing,value,hooks;for(index in props)if(name=camelCase(index),easing=specialEasing[n
vendor: 7,904 bytes, line 14
14ame],value=props[index],Array.isArray(value)&&(easing=value[1],value=props[index]=value[0]),index!==name&&(props[name]=value,delete props[index]),hooks=jQuery2.cssHooks[name],hooks&&"expand"in hooks){value=hooks.expand(value),delete props[name];for(index in value)index in props||(props[index]=value[index],specialEasing[index]=easing)}else specialEasing[name]=easing}function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=jQuery2.Deferred().always(function(){delete tick.elem}),tick=function(){if(stopped)return!1;for(var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),temp=remaining/animation.duration||0,percent=1-temp,index2=0,length2=animation.tweens.length;index2<length2;index2++)animation.tweens[index2].run(percent);return deferred.notifyWith(elem,[animation,percent,remaining]),percent<1&&length2?remaining:(length2||deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation]),!1)},animation=deferred.promise({elem,props:jQuery2.extend({},properties),opts:jQuery2.extend(!0,{specialEasing:{},easing:jQuery2.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){var tween=jQuery2.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);return animation.tweens.push(tween),tween},stop:function(gotoEnd){var index2=0,length2=gotoEnd?animation.tweens.length:0;if(stopped)return this;for(stopped=!0;index2<length2;index2++)animation.tweens[index2].run(1);return gotoEnd?(deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation,gotoEnd])):deferred.rejectWith(elem,[animation,gotoEnd]),this}}),props=animation.props;for(propFilter(props,animation.opts.specialEasing);index<length;index++)if(result=Animation.prefilters[index].call(animation,elem,props,animation.opts),result)return isFunction(result.stop)&&(jQuery2._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result)),result;return jQuery2.map(props,createTween,animation),isFunction(animation.opts.start)&&animation.opts.start.call(elem,animation),animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always),jQuery2.fx.timer(jQuery2.extend(tick,{elem,anim:animation,queue:animation.opts.queue})),animation}jQuery2.Animation=jQuery2.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);return adjustCSS(tween.elem,prop,rcssNum.exec(value),tween),tween}]},tweener:function(props,callback){isFunction(props)?(callback=props,props=["*"]):props=props.match(rnothtmlwhite);for(var prop,index=0,length=props.length;index<length;index++)prop=props[index],Animation.tweeners[prop]=Animation.tweeners[prop]||[],Animation.tweeners[prop].unshift(callback)},prefilters:[defaultPrefilter],prefilter:function(callback,prepend){prepend?Animation.prefilters.unshift(callback):Animation.prefilters.push(callback)}}),jQuery2.speed=function(speed,easing,fn){var opt=speed&&typeof speed=="object"?jQuery2.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};return jQuery2.fx.off?opt.duration=0:typeof opt.duration!="number"&&(opt.duration in jQuery2.fx.speeds?opt.duration=jQuery2.fx.speeds[opt.duration]:opt.duration=jQuery2.fx.speeds._default),(opt.queue==null||opt.queue===!0)&&(opt.queue="fx"),opt.old=opt.complete,opt.complete=function(){isFunction(opt.old)&&opt.old.call(this),opt.queue&&jQuery2.dequeue(this,opt.queue)},opt},jQuery2.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHiddenWithinTree).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){var empty=jQuery2.isEmptyObject(prop),optall=jQuery2.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,jQuery2.extend({},prop),optall);(empty||dataPriv.get(this,"finish"))&&anim.stop(!0)};return doAnimation.finish=doAnimation,empty||optall.queue===!1?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;delete hooks.stop,stop(gotoEnd)};return typeof type!="string"&&(gotoEnd=clearQueue,clearQueue=type,type=void 0),clearQueue&&type!==!1&&this.queue(type||"fx",[]),this.each(function(){var dequeue=!0,index=type!=null&&type+"queueHooks",timers=jQuery2.timers,data=dataPriv.get(this);if(index)data[index]&&data[index].stop&&stopQueue(data[index]);else for(index in data)data[index]&&data[index].stop&&rrun.test(index)&&stopQueue(data[index]);for(index=timers.length;index--;)timers[index].elem===this&&(type==null||timers[index].queue===type)&&(timers[index].anim.stop(gotoEnd),dequeue=!1,timers.splice(index,1));(dequeue||!gotoEnd)&&jQuery2.dequeue(this,type)})},finish:function(type){return type!==!1&&(type=type||"fx"),this.each(function(){var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery2.timers,length=queue?queue.length:0;for(data.finish=!0,jQuery2.queue(this,type,[]),hooks&&hooks.stop&&hooks.stop.call(this,!0),index=timers.length;index--;)timers[index].elem===this&&timers[index].queue===type&&(timers[index].anim.stop(!0),timers.splice(index,1));for(index=0;index<length;index++)queue[index]&&queue[index].finish&&queue[index].finish.call(this);delete data.finish})}}),jQuery2.each(["toggle","show","hide"],function(i,name){var cssFn=jQuery2.fn[name];jQuery2.fn[name]=function(speed,easing,callback){return speed==null||typeof speed=="boolean"?cssFn.apply(this,arguments):this.animate(genFx(name,!0),speed,easing,callback)}}),jQuery2.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery2.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}}),jQuery2.timers=[],jQuery2.fx.tick=function(){var timer,i=0,timers=jQuery2.timers;for(fxNow=Date.now();i<timers.length;i++)timer=timers[i],!timer()&&timers[i]===timer&&timers.splice(i--,1);timers.length||jQuery2.fx.stop(),fxNow=void 0},jQuery2.fx.timer=function(timer){jQuery2.timers.push(timer),jQuery2.fx.start()},jQuery2.fx.interval=13,jQuery2.fx.start=function(){inProgress||(inProgress=!0,schedule())},jQuery2.fx.stop=function(){inProgress=null},jQuery2.fx.speeds={slow:600,fast:200,_default:400},jQuery2.fn.delay=function(time,type){return time=jQuery2.fx&&jQuery2.fx.speeds[time]||time,type=type||"fx",this.queue(type,function(next,hooks){var timeout=window2.setTimeout(next,time);hooks.stop=function(){window2.clearTimeout(timeout)}})},(function(){var input=document2.createElement("input"),select=document2.createElement("select"),opt=select.appendChild(document2.createElement("option"));input.type="checkbox",support.checkOn=input.value!=="",support.optSelected=opt.selected,input=document2.createElement("input"),input.value="t",input.type="radio",support.radioValue=input.value==="t"})();var boolHook,attrHandle=jQuery2.expr.attrHandle;jQuery2.fn.extend({attr:function(name,value){return access(this,jQuery2.attr,name,value,arguments.length>1)},removeAttr:function(name){return this.each(function(){jQuery2.removeAttr(this,name)})}}),jQuery2.extend({attr:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(!(nType===3||nType===8||nType===2)){if(typeof elem.getAttribute>"u")return jQuery2.prop(elem,name,value);if((nType!==1||!jQuery2.isXMLDoc(elem))&&(hooks=jQuery2.attrHooks[name.toLowerCase()]||(jQuery2.expr.match.bool.test(name)?boolHook:void 0)),value!==void 0){if(value===null){jQuery2.removeAttr(elem,name);return}
vendor: 19,362 bytes, lines 14-16
14return hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==void 0?ret:(elem.setAttribute(name,value+""),value)}return hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null?ret:(ret=jQuery2.find.attr(elem,name),ret??void 0)}},attrHooks:{type:{set:function(elem,value){if(!support.radioValue&&value==="radio"&&nodeName(elem,"input")){var val=elem.value;return elem.setAttribute("type",value),val&&(elem.value=val),value}}}},removeAttr:function(elem,value){var name,i=0,attrNames=value&&value.match(rnothtmlwhite);if(attrNames&&elem.nodeType===1)for(;name=attrNames[i++];)elem.removeAttribute(name)}}),boolHook={set:function(elem,value,name){return value===!1?jQuery2.removeAttr(elem,name):elem.setAttribute(name,name),name}},jQuery2.each(jQuery2.expr.match.bool.source.match(/\w+/g),function(i,name){var getter=attrHandle[name]||jQuery2.find.attr;attrHandle[name]=function(elem,name2,isXML){var ret,handle,lowercaseName=name2.toLowerCase();return isXML||(handle=attrHandle[lowercaseName],attrHandle[lowercaseName]=ret,ret=getter(elem,name2,isXML)!=null?lowercaseName:null,attrHandle[lowercaseName]=handle),ret}});var rfocusable=/^(?:input|select|textarea|button)$/i,rclickable=/^(?:a|area)$/i;jQuery2.fn.extend({prop:function(name,value){return access(this,jQuery2.prop,name,value,arguments.length>1)},removeProp:function(name){return this.each(function(){delete this[jQuery2.propFix[name]||name]})}}),jQuery2.extend({prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(!(nType===3||nType===8||nType===2))return(nType!==1||!jQuery2.isXMLDoc(elem))&&(name=jQuery2.propFix[name]||name,hooks=jQuery2.propHooks[name]),value!==void 0?hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==void 0?ret:elem[name]=value:hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null?ret:elem[name]},propHooks:{tabIndex:{get:function(elem){var tabindex=jQuery2.find.attr(elem,"tabindex");return tabindex?parseInt(tabindex,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),support.optSelected||(jQuery2.propHooks.selected={get:function(elem){var parent=elem.parentNode;return parent&&parent.parentNode&&parent.parentNode.selectedIndex,null},set:function(elem){var parent=elem.parentNode;parent&&(parent.selectedIndex,parent.parentNode&&parent.parentNode.selectedIndex)}}),jQuery2.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery2.propFix[this.toLowerCase()]=this});function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(" ")}function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||""}function classesToArray(value){return Array.isArray(value)?value:typeof value=="string"?value.match(rnothtmlwhite)||[]:[]}jQuery2.fn.extend({addClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value))return this.each(function(j2){jQuery2(this).addClass(value.call(this,j2,getClass(this)))});if(classes=classesToArray(value),classes.length){for(;elem=this[i++];)if(curValue=getClass(elem),cur=elem.nodeType===1&&" "+stripAndCollapse(curValue)+" ",cur){for(j=0;clazz=classes[j++];)cur.indexOf(" "+clazz+" ")<0&&(cur+=clazz+" ");finalValue=stripAndCollapse(cur),curValue!==finalValue&&elem.setAttribute("class",finalValue)}}return this},removeClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value))return this.each(function(j2){jQuery2(this).removeClass(value.call(this,j2,getClass(this)))});if(!arguments.length)return this.attr("class","");if(classes=classesToArray(value),classes.length){for(;elem=this[i++];)if(curValue=getClass(elem),cur=elem.nodeType===1&&" "+stripAndCollapse(curValue)+" ",cur){for(j=0;clazz=classes[j++];)for(;cur.indexOf(" "+clazz+" ")>-1;)cur=cur.replace(" "+clazz+" "," ");finalValue=stripAndCollapse(cur),curValue!==finalValue&&elem.setAttribute("class",finalValue)}}return this},toggleClass:function(value,stateVal){var type=typeof value,isValidValue=type==="string"||Array.isArray(value);return typeof stateVal=="boolean"&&isValidValue?stateVal?this.addClass(value):this.removeClass(value):isFunction(value)?this.each(function(i){jQuery2(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal)}):this.each(function(){var className,i,self2,classNames;if(isValidValue)for(i=0,self2=jQuery2(this),classNames=classesToArray(value);className=classNames[i++];)self2.hasClass(className)?self2.removeClass(className):self2.addClass(className);else(value===void 0||type==="boolean")&&(className=getClass(this),className&&dataPriv.set(this,"__className__",className),this.setAttribute&&this.setAttribute("class",className||value===!1?"":dataPriv.get(this,"__className__")||""))})},hasClass:function(selector){var className,elem,i=0;for(className=" "+selector+" ";elem=this[i++];)if(elem.nodeType===1&&(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1)return!0;return!1}});var rreturn=/\r/g;jQuery2.fn.extend({val:function(value){var hooks,ret,valueIsFunction,elem=this[0];return arguments.length?(valueIsFunction=isFunction(value),this.each(function(i){var val;this.nodeType===1&&(valueIsFunction?val=value.call(this,i,jQuery2(this).val()):val=value,val==null?val="":typeof val=="number"?val+="":Array.isArray(val)&&(val=jQuery2.map(val,function(value2){return value2==null?"":value2+""})),hooks=jQuery2.valHooks[this.type]||jQuery2.valHooks[this.nodeName.toLowerCase()],(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===void 0)&&(this.value=val))})):elem?(hooks=jQuery2.valHooks[elem.type]||jQuery2.valHooks[elem.nodeName.toLowerCase()],hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==void 0?ret:(ret=elem.value,typeof ret=="string"?ret.replace(rreturn,""):ret??"")):void 0}}),jQuery2.extend({valHooks:{option:{get:function(elem){var val=jQuery2.find.attr(elem,"value");return val??stripAndCollapse(jQuery2.text(elem))}},select:{get:function(elem){var value,option,i,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one",values=one?null:[],max=one?index+1:options.length;for(index<0?i=max:i=one?index:0;i<max;i++)if(option=options[i],(option.selected||i===index)&&!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,"optgroup"))){if(value=jQuery2(option).val(),one)return value;values.push(value)}return values},set:function(elem,value){for(var optionSet,option,options=elem.options,values=jQuery2.makeArray(value),i=options.length;i--;)option=options[i],(option.selected=jQuery2.inArray(jQuery2.valHooks.option.get(option),values)>-1)&&(optionSet=!0);return optionSet||(elem.selectedIndex=-1),values}}}}),jQuery2.each(["radio","checkbox"],function(){jQuery2.valHooks[this]={set:function(elem,value){if(Array.isArray(value))return elem.checked=jQuery2.inArray(jQuery2(elem).val(),value)>-1}},support.checkOn||(jQuery2.valHooks[this].get=function(elem){return elem.getAttribute("value")===null?"on":elem.value})}),support.focusin="onfocusin"in window2;var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,stopPropagationCallback=function(e){e.stopPropagation()};jQuery2.extend(jQuery2.event,{trigger:function(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document2],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];if(cur=lastElement=tmp=elem=elem||document2,!(elem.nodeType===3||elem.nodeType===8)&&!rfocusMorph.test(type+jQuery2.event.triggered)&&(type.indexOf(".")>-1&&(namespaces=type.split("."),type=namespaces.shift(),namespaces.sort()),ontype=type.indexOf(":")<0&&"on"+type,event=event[jQuery2.expando]?event:new jQuery2.Event(type,typeof event=="object"&&event),event.isTrigger=onlyHandlers?2:3,event.namespace=namespaces.join("."),event.rnamespace=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,event.result=void 0,event.target||(event.target=elem),data=data==null?[event]:jQuery2.makeArray(data,[event]),special=jQuery2.event.special[type]||{},!(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===!1))){if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){for(bubbleType=special.delegateType||type,rfocusMorph.test(bubbleType+type)||(cur=cur.parentNode);cur;cur=cur.parentNode)eventPath.push(cur),tmp=cur;tmp===(elem.ownerDocument||document2)&&eventPath.push(tmp.defaultView||tmp.parentWindow||window2)}for(i=0;(cur=eventPath[i++])&&!event.isPropagationStopped();)lastElement=cur,event.type=i>1?bubbleType:special.bindType||type,handle=(dataPriv.get(cur,"events")||{})[event.type]&&dataPriv.get(cur,"handle"),handle&&handle.apply(cur,data),handle=ontype&&cur[ontype],handle&&handle.apply&&acceptData(cur)&&(event.result=handle.apply(cur,data),event.result===!1&&event.preventDefault());return event.type=type,!onlyHandlers&&!event.isDefaultPrevented()&&(!special._default||special._default.apply(eventPath.pop(),data)===!1)&&acceptData(elem)&&ontype&&isFunction(elem[type])&&!isWindow(elem)&&(tmp=elem[ontype],tmp&&(elem[ontype]=null),jQuery2.event.triggered=type,event.isPropagationStopped()&&lastElement.addEventListener(type,stopPropagationCallback),elem[type](),event.isPropagationStopped()&&lastElement.removeEventListener(type,stopPropagationCallback),jQuery2.event.triggered=void 0,tmp&&(elem[ontype]=tmp)),event.result}},simulate:function(type,elem,event){var e=jQuery2.extend(new jQuery2.Event,event,{type,isSimulated:!0});jQuery2.event.trigger(e,null,elem)}}),jQuery2.fn.extend({trigger:function(type,data){return this.each(function(){jQuery2.event.trigger(type,data,this)})},triggerHandler:function(type,data){var elem=this[0];if(elem)return jQuery2.event.trigger(type,data,elem,!0)}}),support.focusin||jQuery2.each({focus:"focusin",blur:"focusout"},function(orig,fix){var handler=function(event){jQuery2.event.simulate(fix,event.target,jQuery2.event.fix(event))};jQuery2.event.special[fix]={setup:function(){var doc=this.ownerDocument||this,attaches=dataPriv.access(doc,fix);attaches||doc.addEventListener(orig,handler,!0),dataPriv.access(doc,fix,(attaches||0)+1)},teardown:function(){var doc=this.ownerDocument||this,attaches=dataPriv.access(doc,fix)-1;attaches?dataPriv.access(doc,fix,attaches):(doc.removeEventListener(orig,handler,!0),dataPriv.remove(doc,fix))}}});var location=window2.location,nonce=Date.now(),rquery=/\?/;jQuery2.parseXML=function(data){var xml;if(!data||typeof data!="string")return null;try{xml=new window2.DOMParser().parseFromString(data,"text/xml")}catch{xml=void 0}return(!xml||xml.getElementsByTagName("parsererror").length)&&jQuery2.error("Invalid XML: "+data),xml};var rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(Array.isArray(obj))jQuery2.each(obj,function(i,v){traditional||rbracket.test(prefix)?add(prefix,v):buildParams(prefix+"["+(typeof v=="object"&&v!=null?i:"")+"]",v,traditional,add)});else if(!traditional&&toType(obj)==="object")for(name in obj)buildParams(prefix+"["+name+"]",obj[name],traditional,add);else add(prefix,obj)}jQuery2.param=function(a,traditional){var prefix,s=[],add=function(key,valueOrFunction){var value=isFunction(valueOrFunction)?valueOrFunction():valueOrFunction;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value??"")};if(a==null)return"";if(Array.isArray(a)||a.jquery&&!jQuery2.isPlainObject(a))jQuery2.each(a,function(){add(this.name,this.value)});else for(prefix in a)buildParams(prefix,a[prefix],traditional,add);return s.join("&")},jQuery2.fn.extend({serialize:function(){return jQuery2.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var elements=jQuery2.prop(this,"elements");return elements?jQuery2.makeArray(elements):this}).filter(function(){var type=this.type;return this.name&&!jQuery2(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))}).map(function(i,elem){var val=jQuery2(this).val();return val==null?null:Array.isArray(val)?jQuery2.map(val,function(val2){return{name:elem.name,value:val2.replace(rCRLF,`\r
15`)}}):{name:elem.name,value:val.replace(rCRLF,`\r
16`)}}).get()}});var r20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,prefilters={},transports={},allTypes="*/".concat("*"),originAnchor=document2.createElement("a");originAnchor.href=location.href;function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){typeof dataTypeExpression!="string"&&(func=dataTypeExpression,dataTypeExpression="*");var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];if(isFunction(func))for(;dataType=dataTypes[i++];)dataType[0]==="+"?(dataType=dataType.slice(1)||"*",(structure[dataType]=structure[dataType]||[]).unshift(func)):(structure[dataType]=structure[dataType]||[]).push(func)}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;return inspected[dataType]=!0,jQuery2.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport=="string"&&!seekingTransport&&!inspected[dataTypeOrTransport])return options.dataTypes.unshift(dataTypeOrTransport),inspect(dataTypeOrTransport),!1;if(seekingTransport)return!(selected=dataTypeOrTransport)}),selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery2.ajaxSettings.flatOptions||{};for(key in src)src[key]!==void 0&&((flatOptions[key]?target:deep||(deep={}))[key]=src[key]);return deep&&jQuery2.extend(!0,target,deep),target}function ajaxHandleResponses(s,jqXHR,responses){for(var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;dataTypes[0]==="*";)dataTypes.shift(),ct===void 0&&(ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"));if(ct){for(type in contents)if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}}if(dataTypes[0]in responses)finalDataType=dataTypes[0];else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}firstDataType||(firstDataType=type)}finalDataType=finalDataType||firstDataType}if(finalDataType)return finalDataType!==dataTypes[0]&&dataTypes.unshift(finalDataType),responses[finalDataType]}function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1])for(conv in s.converters)converters[conv.toLowerCase()]=s.converters[conv];for(current=dataTypes.shift();current;)if(s.responseFields[current]&&(jqXHR[s.responseFields[current]]=response),!prev&&isSuccess&&s.dataFilter&&(response=s.dataFilter(response,s.dataType)),prev=current,current=dataTypes.shift(),current){if(current==="*")current=prev;else if(prev!=="*"&&prev!==current){if(conv=converters[prev+" "+current]||converters["* "+current],!conv){for(conv2 in converters)if(tmp=conv2.split(" "),tmp[1]===current&&(conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]],conv)){conv===!0?conv=converters[conv2]:converters[conv2]!==!0&&(current=tmp[0],dataTypes.unshift(tmp[1]));break}}if(conv!==!0)if(conv&&s.throws)response=conv(response);else try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}}return{state:"success",data:response}}jQuery2.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:rlocalProtocol.test(location.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":jQuery2.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery2.ajaxSettings),settings):ajaxExtend(jQuery2.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){typeof url=="object"&&(options=url,url=void 0),options=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,urlAnchor,completed2,fireGlobals,i,uncached,s=jQuery2.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery2(callbackContext):jQuery2.event,deferred=jQuery2.Deferred(),completeDeferred=jQuery2.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(completed2){if(!responseHeaders)for(responseHeaders={};match=rheaders.exec(responseHeadersString);)responseHeaders[match[1].toLowerCase()+" "]=(responseHeaders[match[1].toLowerCase()+" "]||[]).concat(match[2]);match=responseHeaders[key.toLowerCase()+" "]}return match==null?null:match.join(", ")},getAllResponseHeaders:function(){return completed2?responseHeadersString:null},setRequestHeader:function(name,value){return completed2==null&&(name=requestHeadersNames[name.toLowerCase()]=requestHeadersNames[name.toLowerCase()]||name,requestHeaders[name]=value),this},overrideMimeType:function(type){return completed2==null&&(s.mimeType=type),this},statusCode:function(map){var code;if(map)if(completed2)jqXHR.always(map[jqXHR.status]);else for(code in map)statusCode[code]=[statusCode[code],map[code]];return this},abort:function(statusText){var finalText=statusText||strAbort;return transport&&transport.abort(finalText),done(0,finalText),this}};if(deferred.promise(jqXHR),s.url=((url||s.url||location.href)+"").replace(rprotocol,location.protocol+"//"),s.type=options.method||options.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""],s.crossDomain==null){urlAnchor=document2.createElement("a");try{urlAnchor.href=s.url,urlAnchor.href=urlAnchor.href,s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!=urlAnchor.protocol+"//"+urlAnchor.host}catch{s.crossDomain=!0}}if(s.data&&s.processData&&typeof s.data!="string"&&(s.data=jQuery2.param(s.data,s.traditional)),inspectPrefiltersOrTransports(prefilters,s,options,jqXHR),completed2)return jqXHR;fireGlobals=jQuery2.event&&s.global,fireGlobals&&jQuery2.active++===0&&jQuery2.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!rnoContent.test(s.type),cacheURL=s.url.replace(rhash,""),s.hasContent?s.data&&s.processData&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(s.data=s.data.replace(r20,"+")):(uncached=s.url.slice(cacheURL.length),s.data&&(s.processData||typeof s.data=="str
16ing")&&(cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data,delete s.data),s.cache===!1&&(cacheURL=cacheURL.replace(rantiCache,"$1"),uncached=(rquery.test(cacheURL)?"&":"?")+"_="+nonce+++uncached),s.url=cacheURL+uncached),s.ifModified&&(jQuery2.lastModified[cacheURL]&&jqXHR.setRequestHeader("If-Modified-Since",jQuery2.lastModified[cacheURL]),jQuery2.etag[cacheURL]&&jqXHR.setRequestHeader("If-None-Match",jQuery2.etag[cacheURL])),(s.data&&s.hasContent&&s.contentType!==!1||options.contentType)&&jqXHR.setRequestHeader("Content-Type",s.contentType),jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers)jqXHR.setRequestHeader(i,s.headers[i]);if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===!1||completed2))return jqXHR.abort();if(strAbort="abort",completeDeferred.add(s.complete),jqXHR.done(s.success),jqXHR.fail(s.error),transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR),!transport)done(-1,"No Transport");else{if(jqXHR.readyState=1,fireGlobals&&globalEventContext.trigger("ajaxSend",[jqXHR,s]),completed2)return jqXHR;s.async&&s.timeout>0&&(timeoutTimer=window2.setTimeout(function(){jqXHR.abort("timeout")},s.timeout));try{completed2=!1,transport.send(requestHeaders,done)}catch(e){if(completed2)throw e;done(-1,e)}}function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;completed2||(completed2=!0,timeoutTimer&&window2.clearTimeout(timeoutTimer),transport=void 0,responseHeadersString=headers||"",jqXHR.readyState=status>0?4:0,isSuccess=status>=200&&status<300||status===304,responses&&(response=ajaxHandleResponses(s,jqXHR,responses)),response=ajaxConvert(s,response,jqXHR,isSuccess),isSuccess?(s.ifModified&&(modified=jqXHR.getResponseHeader("Last-Modified"),modified&&(jQuery2.lastModified[cacheURL]=modified),modified=jqXHR.getResponseHeader("etag"),modified&&(jQuery2.etag[cacheURL]=modified)),status===204||s.type==="HEAD"?statusText="nocontent":status===304?statusText="notmodified":(statusText=response.state,success=response.data,error=response.error,isSuccess=!error)):(error=statusText,(status||!statusText)&&(statusText="error",status<0&&(status=0))),jqXHR.status=status,jqXHR.statusText=(nativeStatusText||statusText)+"",isSuccess?deferred.resolveWith(callbackContext,[success,statusText,jqXHR]):deferred.rejectWith(callbackContext,[jqXHR,statusText,error]),jqXHR.statusCode(statusCode),statusCode=void 0,fireGlobals&&globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]),completeDeferred.fireWith(callbackContext,[jqXHR,statusText]),fireGlobals&&(globalEventContext.trigger("ajaxComplete",[jqXHR,s]),--jQuery2.active||jQuery2.event.trigger("ajaxStop")))}return jqXHR},getJSON:function(url,data,callback){return jQuery2.get(url,data,callback,"json")},getScript:function(url,callback){return jQuery2.get(url,void 0,callback,"script")}}),jQuery2.each(["get","post"],function(i,method){jQuery2[method]=function(url,data,callback,type){return isFunction(data)&&(type=type||callback,callback=data,data=void 0),jQuery2.ajax(jQuery2.extend({url,type:method,dataType:type,data,success:callback},jQuery2.isPlainObject(url)&&url))}}),jQuery2._evalUrl=function(url,options){return jQuery2.ajax({url,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(response){jQuery2.globalEval(response,options)}})},jQuery2.fn.extend({wrapAll:function(html){var wrap;return this[0]&&(isFunction(html)&&(html=html.call(this[0])),wrap=jQuery2(html,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&wrap.insertBefore(this[0]),wrap.map(function(){for(var elem=this;elem.firstElementChild;)elem=elem.firstElementChild;return elem}).append(this)),this},wrapInner:function(html){return isFunction(html)?this.each(function(i){jQuery2(this).wrapInner(html.call(this,i))}):this.each(function(){var self2=jQuery2(this),contents=self2.contents();contents.length?contents.wrapAll(html):self2.append(html)})},wrap:function(html){var htmlIsFunction=isFunction(html);return this.each(function(i){jQuery2(this).wrapAll(htmlIsFunction?html.call(this,i):html)})},unwrap:function(selector){return this.parent(selector).not("body").each(function(){jQuery2(this).replaceWith(this.childNodes)}),this}}),jQuery2.expr.pseudos.hidden=function(elem){return!jQuery2.expr.pseudos.visible(elem)},jQuery2.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length)},jQuery2.ajaxSettings.xhr=function(){try{return new window2.XMLHttpRequest}catch{}};var xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery2.ajaxSettings.xhr();support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,support.ajax=xhrSupported=!!xhrSupported,jQuery2.ajaxTransport(function(options){var callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain)return{send:function(headers,complete){var i,xhr=options.xhr();if(xhr.open(options.type,options.url,options.async,options.username,options.password),options.xhrFields)for(i in options.xhrFields)xhr[i]=options.xhrFields[i];options.mimeType&&xhr.overrideMimeType&&xhr.overrideMimeType(options.mimeType),!options.crossDomain&&!headers["X-Requested-With"]&&(headers["X-Requested-With"]="XMLHttpRequest");for(i in headers)xhr.setRequestHeader(i,headers[i]);callback=function(type){return function(){callback&&(callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null,type==="abort"?xhr.abort():type==="error"?typeof xhr.status!="number"?complete(0,"error"):complete(xhr.status,xhr.statusText):complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,(xhr.responseType||"text")!=="text"||typeof xhr.responseText!="string"?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders()))}},xhr.onload=callback(),errorCallback=xhr.onerror=xhr.ontimeout=callback("error"),xhr.onabort!==void 0?xhr.onabort=errorCallback:xhr.onreadystatechange=function(){xhr.readyState===4&&window2.setTimeout(function(){callback&&errorCallback()})},callback=callback("abort");try{xhr.send(options.hasContent&&options.data||null)}catch(e){if(callback)throw e}},abort:function(){callback&&callback()}}}),jQuery2.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),jQuery2.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(text){return jQuery2.globalEval(text),text}}}),jQuery2.ajaxPrefilter("script",function(s){s.cache===void 0&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),jQuery2.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var script,callback;return{send:function(_,complete){script=jQuery2("<script>").attr(s.scriptAttrs||{}
vendor: 4,139 bytes, line 16
16).prop({charset:s.scriptCharset,src:s.url}).on("load error",callback=function(evt){script.remove(),callback=null,evt&&complete(evt.type==="error"?404:200,evt.type)}),document2.head.appendChild(script[0])},abort:function(){callback&&callback()}}}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery2.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||jQuery2.expando+"_"+nonce++;return this[callback]=!0,callback}}),jQuery2.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==!1&&(rjsonp.test(s.url)?"url":typeof s.data=="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&rjsonp.test(s.data)&&"data");if(jsonProp||s.dataTypes[0]==="jsonp")return callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,jsonProp?s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName):s.jsonp!==!1&&(s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName),s.converters["script json"]=function(){return responseContainer||jQuery2.error(callbackName+" was not called"),responseContainer[0]},s.dataTypes[0]="json",overwritten=window2[callbackName],window2[callbackName]=function(){responseContainer=arguments},jqXHR.always(function(){overwritten===void 0?jQuery2(window2).removeProp(callbackName):window2[callbackName]=overwritten,s[callbackName]&&(s.jsonpCallback=originalSettings.jsonpCallback,oldCallbacks.push(callbackName)),responseContainer&&isFunction(overwritten)&&overwritten(responseContainer[0]),responseContainer=overwritten=void 0}),"script"}),support.createHTMLDocument=(function(){var body=document2.implementation.createHTMLDocument("").body;return body.innerHTML="<form></form><form></form>",body.childNodes.length===2})(),jQuery2.parseHTML=function(data,context,keepScripts){if(typeof data!="string")return[];typeof context=="boolean"&&(keepScripts=context,context=!1);var base,parsed,scripts;return context||(support.createHTMLDocument?(context=document2.implementation.createHTMLDocument(""),base=context.createElement("base"),base.href=document2.location.href,context.head.appendChild(base)):context=document2),parsed=rsingleTag.exec(data),scripts=!keepScripts&&[],parsed?[context.createElement(parsed[1])]:(parsed=buildFragment([data],context,scripts),scripts&&scripts.length&&jQuery2(scripts).remove(),jQuery2.merge([],parsed.childNodes))},jQuery2.fn.load=function(url,params,callback){var selector,type,response,self2=this,off=url.indexOf(" ");return off>-1&&(selector=stripAndCollapse(url.slice(off)),url=url.slice(0,off)),isFunction(params)?(callback=params,params=void 0):params&&typeof params=="object"&&(type="POST"),self2.length>0&&jQuery2.ajax({url,type:type||"GET",dataType:"html",data:params}).done(function(responseText){response=arguments,self2.html(selector?jQuery2("<div>").append(jQuery2.parseHTML(responseText)).find(selector):responseText)}).always(callback&&function(jqXHR,status){self2.each(function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR])})}),this},jQuery2.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,type){jQuery2.fn[type]=function(fn){return this.on(type,fn)}}),jQuery2.expr.pseudos.animated=function(elem){return jQuery2.grep(jQuery2.timers,function(fn){return elem===fn.elem}).length},jQuery2.offset={setOffset:function(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=jQuery2.css(elem,"position"),curElem=jQuery2(elem),props={};position==="static"&&(elem.style.position="relative"),curOffset=curElem.offset(),curCSSTop=jQuery2.css(elem,"top"),curCSSLeft=jQuery2.css(elem,"left"),calculatePosition=(position==="absolute"||position==="fixed")&&(curCSSTop+curCSSLeft).indexOf("auto")>-1,calculatePosition?(curPosition=curElem.position(),curTop=curPosition.top,curLeft=curPosition.left):(curTop=parseFloat(curCSSTop)||0,curLeft=parseFloat(curCSSLeft)||0),isFunction(options)&&(options=options.call(elem,i,jQuery2.extend({},curOffset))),options.top!=null&&(props.top=options.top-curOffset.top+curTop
vendor: 4,323 bytes, line 16
16),options.left!=null&&(props.left=options.left-curOffset.left+curLeft),"using"in options?options.using.call(elem,props):curElem.css(props)}},jQuery2.fn.extend({offset:function(options){if(arguments.length)return options===void 0?this:this.each(function(i){jQuery2.offset.setOffset(this,options,i)});var rect,win,elem=this[0];if(elem)return elem.getClientRects().length?(rect=elem.getBoundingClientRect(),win=elem.ownerDocument.defaultView,{top:rect.top+win.pageYOffset,left:rect.left+win.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};if(jQuery2.css(elem,"position")==="fixed")offset=elem.getBoundingClientRect();else{for(offset=this.offset(),doc=elem.ownerDocument,offsetParent=elem.offsetParent||doc.documentElement;offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&jQuery2.css(offsetParent,"position")==="static";)offsetParent=offsetParent.parentNode;offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1&&(parentOffset=jQuery2(offsetParent).offset(),parentOffset.top+=jQuery2.css(offsetParent,"borderTopWidth",!0),parentOffset.left+=jQuery2.css(offsetParent,"borderLeftWidth",!0))}return{top:offset.top-parentOffset.top-jQuery2.css(elem,"marginTop",!0),left:offset.left-parentOffset.left-jQuery2.css(elem,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var offsetParent=this.offsetParent;offsetParent&&jQuery2.css(offsetParent,"position")==="static";)offsetParent=offsetParent.offsetParent;return offsetParent||documentElement})}}),jQuery2.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top=prop==="pageYOffset";jQuery2.fn[method]=function(val){return access(this,function(elem,method2,val2){var win;if(isWindow(elem)?win=elem:elem.nodeType===9&&(win=elem.defaultView),val2===void 0)return win?win[prop]:elem[method2];win?win.scrollTo(top?win.pageXOffset:val2,top?val2:win.pageYOffset):elem[method2]=val2},method,val,arguments.length)}}),jQuery2.each(["top","left"],function(i,prop){jQuery2.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed)return computed=curCSS(elem,prop),rnumnonpx.test(computed)?jQuery2(elem).position()[prop]+"px":computed})}),jQuery2.each({Height:"height",Width:"width"},function(name,type){jQuery2.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery2.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!="boolean"),extra=defaultExtra||(margin===!0||value===!0?"margin":"border");return access(this,function(elem,type2,value2){var doc;return isWindow(elem)?funcName.indexOf("outer")===0?elem["inner"+name]:elem.document.documentElement["client"+name]:elem.nodeType===9?(doc=elem.documentElement,Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])):value2===void 0?jQuery2.css(elem,type2,extra):jQuery2.style(elem,type2,value2,extra)},type,chainable?margin:void 0,chainable)}})}),jQuery2.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(i,name){jQuery2.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name)}}),jQuery2.fn.extend({hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)}}),jQuery2.fn.extend({bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn)}}),jQuery2.proxy=function(fn,context){var tmp,args,proxy;if(typeof context=="string"&&(tmp=fn[context],context=fn,fn=tmp),!!isFunction(fn))return args=slice.call(arguments,2),proxy=function(){return fn.apply(context||this,args.concat(slice.call(arguments)))},proxy.guid=fn.guid=fn.guid||jQuery2.guid++,proxy},jQuery2.holdReady=function(hold){hold?jQuery2.readyWait++:jQuery2.ready(!0)},jQuery2.isArray=Array.isArray,jQuery2.parseJSON=JSON.parse,jQuery2.no
16deName=nodeName,jQuery2.isFunction=isFunction,jQuery2.isWindow=isWindow,jQuery2.camelCase=camelCase,jQuery2.type=toType,jQuery2.now=Date.now,jQuery2.isNumeric=function(obj){var type=jQuery2.type(obj);return(type==="number"||type==="string")&&!isNaN(obj-parseFloat(obj))},__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=(function(){return jQuery2}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__);var _jQuery=window2.jQuery,_$=window2.$;return jQuery2.noConflict=function(deep){return window2.$===jQuery2&&(window2.$=_$),deep&&window2.jQuery===jQuery2&&(window2.jQuery=_jQuery),jQuery2},noGlobal||(window2.jQuery=window2.$=jQuery2),jQuery2})}),277:((module,exports,__webpack_require__2)=>{var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
17* $script.js JS loader & dependency manager
18* https://github.com/ded/script.js
19* (c) Dustin Diaz 2014 | License MIT
20*/(function(name,definition){module.exports?module.exports=definition():(__WEBPACK_AMD_DEFINE_FACTORY__=definition,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__=="function"?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__2,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})("$script",function(){var doc=document,head=doc.getElementsByTagName("head")[0],s="string",f=!1,push="push",readyState="readyState",onreadystatechange="onreadystatechange",list={},ids={},delay={},scripts={},scriptpath,urlArgs;function every(ar,fn){for(var i=0,j=ar.length;i<j;++i)if(!fn(ar[i]))return f;return 1}function each(ar,fn){every(ar,function(el){return fn(el),1})}function $script(paths,idOrDone,optDone){paths=paths[push]?paths:[paths];var idOrDoneIsDone=idOrDone&&idOrDone.call,done=idOrDoneIsDone?idOrDone:optDone,id=idOrDoneIsDone?paths.join(""):idOrDone,queue=paths.length;function loopFn(item){return item.call?item():list[item]}function callback(){if(!--queue){list[id]=1,done&&done();for(var dset in delay)every(dset.split("|"),loopFn)&&!each(delay[dset],loopFn)&&(delay[dset]=[])}}return setTimeout(function(){each(paths,function loading(path,force){if(path===null)return callback();if(!force&&!/^https?:\/\//.test(path)&&scriptpath&&(path=path.indexOf(".js")===-1?scriptpath+path+".js":scriptpath+p
20ath),scripts[path])return id&&(ids[id]=1),scripts[path]==2?callback():setTimeout(function(){loading(path,!0)},0);scripts[path]=1,id&&(ids[id]=1),create(path,callback)})},0),$script}function create(path,fn){var el=doc.createElement("script"),loaded;el.onload=el.onerror=el[onreadystatechange]=function(){el[readyState]&&!/^c|loade/.test(el[readyState])||loaded||(el.onload=el[onreadystatechange]=null,loaded=1,scripts[path]=2,fn())},el.async=1,el.src=urlArgs?path+(path.indexOf("?")===-1?"?":"&")+urlArgs:path,head.insertBefore(el,head.lastChild)}return $script.get=create,$script.order=function(scripts2,id,done){(function callback(s2){s2=scripts2.shift(),scripts2.length?$script(s2,callback):$script(s2,id,done)})()},$script.path=function(p){scriptpath=p},$script.urlArgs=function(str){urlArgs=str},$script.ready=function(deps,ready,req){deps=deps[push]?deps:[deps];var missing=[];return!each(deps,function(dep){list[dep]||missing[push](dep)})&&every(deps,function(dep){return list[dep]})?ready():(function(key){delay[key]=delay[key]||[],delay[key][push](ready),req&&req(missing)})(deps.join("|")),$script},$script.done=function(idOrDone){$script([null],idOrDone)},$script})}),265:(function(module){(function(root,factory){module.exports=factory()})(this,function(){return(function(modules){var installedModules={};function __nested_webpack_require_543__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module2=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module2.exports,module2,module2.exports,__nested_webpack_require_543__),module2.l=!0,module2.exports}return __nested_webpack_require_543__.m=modules,__nested_webpack_require_543__.c=installedModules,__nested_webpack_require_543__.d=function(exports,name,getter){__nested_webpack_require_543__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__nested_webpack_require_543__.r=function(exports){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__nested_webpack_require_543__.t=function(value,mode){if(mode&1&&
vendor: 21,939 bytes, lines 20-30
20(value=__nested_webpack_require_543__(value)),mode&8||mode&4&&typeof value=="object"&&value&&value.__esModule)return value;var ns=Object.create(null);if(__nested_webpack_require_543__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value}),mode&2&&typeof value!="string")for(var key in value)__nested_webpack_require_543__.d(ns,key,function(key2){return value[key2]}.bind(null,key));return ns},__nested_webpack_require_543__.n=function(module2){var getter=module2&&module2.__esModule?function(){return module2.default}:function(){return module2};return __nested_webpack_require_543__.d(getter,"a",getter),getter},__nested_webpack_require_543__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__nested_webpack_require_543__.p="",__nested_webpack_require_543__(__nested_webpack_require_543__.s=0)})([(function(module2,__webpack_exports__,__nested_webpack_require_4019__){"use strict";__nested_webpack_require_4019__.r(__webpack_exports__);var argumentAsArray=function(argument){return Array.isArray(argument)?argument:[argument]},isElement=function(target){return target instanceof Node},isElementList=function(nodeList){return nodeList instanceof NodeList},eachNode=function(nodeList,callback){if(nodeList&&callback){nodeList=isElementList(nodeList)?nodeList:[nodeList];for(var i=0;i<nodeList.length&&callback(nodeList[i],i,nodeList.length)!==!0;i++);}},throwError=function(message){return console.error("[scroll-lock] ".concat(message))},arrayAsSelector=function(array){if(Array.isArray(array)){var selector=array.join(", ");return selector}},nodeListAsArray=function(nodeList){var nodes=[];return eachNode(nodeList,function(node){return nodes.push(node)}),nodes},findParentBySelector=function($el,selector){var self2=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,$root=arguments.length>3&&arguments[3]!==void 0?arguments[3]:document;if(self2&&nodeListAsArray($root.querySelectorAll(selector)).indexOf($el)!==-1)return $el;for(;($el=$el.parentElement)&&nodeListAsArray($root.querySelectorAll(selector)).indexOf($el)===-1;);return $el},elementHasSelector=function($el,selector){var $root=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document,has=nodeListAsArray($root.querySelectorAll(selector)).indexOf($el)!==-1;return has},elementHasOverflowHidden=function($el){if($el){var computedStyle=getComputedStyle($el),overflowIsHidden=computedStyle.overflow==="hidden";return overflowIsHidden}},elementScrollTopOnStart=function($el){if($el){if(elementHasOverflowHidden($el))return!0;var scrollTop=$el.scrollTop;return scrollTop<=0}},elementScrollTopOnEnd=function($el){if($el){if(elementHasOverflowHidden($el))return!0;var scrollTop=$el.scrollTop,scrollHeight=$el.scrollHeight,scrollTopWithHeight=scrollTop+$el.offsetHeight;return scrollTopWithHeight>=scrollHeight}},elementScrollLeftOnStart=function($el){if($el){if(elementHasOverflowHidden($el))return!0;var scrollLeft=$el.scrollLeft;return scrollLeft<=0}},elementScrollLeftOnEnd=function($el){if($el){if(elementHasOverflowHidden($el))return!0;var scrollLeft=$el.scrollLeft,scrollWidth=$el.scrollWidth,scrollLeftWithWidth=scrollLeft+$el.offsetWidth;return scrollLeftWithWidth>=scrollWidth}},elementIsScrollableField=function($el){var selector='textarea, [contenteditable="true"]';return elementHasSelector($el,selector)},elementIsInputRange=function($el){var selector='input[type="range"]';return elementHasSelector($el,selector)};__nested_webpack_require_4019__.d(__webpack_exports__,"disablePageScroll",function(){return disablePageScroll}),__nested_webpack_require_4019__.d(__webpack_exports__,"enablePageScroll",function(){return enablePageScroll}),__nested_webpack_require_4019__.d(__webpack_exports__,"getScrollState",function(){return getScrollState}),__nested_webpack_require_4019__.d(__webpack_exports__,"clearQueueScrollLocks",function(){return clearQueueScrollLocks}),__nested_webpack_require_4019__.d(__webpack_exports__,"getTargetScrollBarWidth",function(){return scroll_lock_getTargetScrollBarWidth}),__nested_webpack_require_4019__.d(__webpack_exports__,"getCurrentTargetScrollBarWidth",function(){return scroll_lock_getCurrentTargetScrollBarWidth}),__nested_webpack_require_4019__.d(__webpack_exports__,"getPageScrollBarWidth",function(){return getPageScrollBarWidth}),__nested_webpack_require_4019__.d(__webpack_exports__,"getCurrentPageScrollBarWidth",function(){return getCurrentPageScrollBarWidth}),__nested_webpack_require_4019__.d(__webpack_exports__,"addScrollableTarget",function(){return scroll_lock_addScrollableTarget}),__nested_webpack_require_4019__.d(__webpack_exports__,"removeScrollableTarget",function(){return scroll_lock_removeScrollableTarget}),__nested_webpack_require_4019__.d(__webpack_exports__,"addScrollableSelector",function(){return scroll_lock_addScrollableSelector}),__nested_webpack_require_4019__.d(__webpack_exports__,"removeScrollableSelector",function(){return scroll_lock_removeScrollableSelector}),__nested_webpack_require_4019__.d(__webpack_exports__,"addLockableTarget",function(){return scroll_lock_addLockableTarget}),__nested_webpack_require_4019__.d(__webpack_exports__,"addLockableSelector",function(){return scroll_lock_addLockableSelector}),__nested_webpack_require_4019__.d(__webpack_exports__,"setFillGapMethod",function(){return scroll_lock_setFillGapMethod}),__nested_webpack_require_4019__.d(__webpack_exports__,"addFillGapTarget",function(){return scroll_lock_addFillGapTarget}),__nested_webpack_require_4019__.d(__webpack_exports__,"removeFillGapTarget",function(){return scroll_lock_removeFillGapTarget}),__nested_webpack_require_4019__.d(__webpack_exports__,"addFillGapSelector",function(){return scroll_lock_addFillGapSelector}),__nested_webpack_require_4019__.d(__webpack_exports__,"removeFillGapSelector",function(){return scroll_lock_removeFillGapSelector}),__nested_webpack_require_4019__.d(__webpack_exports__,"refillGaps",function(){return refillGaps});function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{},ownKeys=Object.keys(source);typeof Object.getOwnPropertySymbols=="function"&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){_defineProperty(target,key,source[key])})}return target}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var FILL_GAP_AVAILABLE_METHODS=["padding","margin","width","max-width","none"],TOUCH_DIRECTION_DETECT_OFFSET=3,state={scroll:!0,queue:0,scrollableSelectors:["[data-scroll-lock-scrollable]"],lockableSelectors:["body","[data-scroll-lock-lockable]"],fillGapSelectors:["body","[data-scroll-lock-fill-gap]","[data-scroll-lock-lockable]"],fillGapMethod:FILL_GAP_AVAILABLE_METHODS[0],startTouchY:0,startTouchX:0},disablePageScroll=function(target){state.queue<=0&&(state.scroll=!1,scroll_lock_hideLockableOverflow(),fillGaps()),scroll_lock_addScrollableTarget(target),state.queue++},enablePageScroll=function(target){state.queue>0&&state.queue--,state.queue<=0&&(state.scroll=!0,scroll_lock_showLockableOverflow(),unfillGaps()),scroll_lock_removeScrollableTarget(target)},getScrollState=function(){return state.scroll},clearQueueScrollLocks=function(){state.queue=0},scroll_lock_getTargetScrollBarWidth=function($target){var onlyExists=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(isElement($target)){var currentOverflowYProperty=$target.style.overflowY;onlyExists?getScrollState()||($target.style.overflowY=$target.getAttribute("data-scroll-lock-saved-overflow-y-property")):$target.style.overflowY="scroll";var width=scroll_lock_getCurrentTargetScrollBarWidth($target);return $target.style.overflowY=currentOverflowYProperty,width}else return 0},scroll_lock_getCurrentTargetScrollBarWidth=function($target){if(isElement($target))if($target===document.body){var documentWidth=document.documentElement.clientWidth,windowWidth=window.innerWidth,currentWidth=windowWidth-documentWidth;return currentWidth}else{var borderLeftWidthCurrentProperty=$target.style.borderLeftWidth,borderRightWidthCurrentProperty=$target.style.borderRightWidth;$target.style.borderLeftWidth="0px",$target.style.borderRightWidth="0px";var _currentWidth=$target.offsetWidth-$target.clientWidth;return $target.style.borderLeftWidth=borderLeftWidthCurrentProperty,$target.style.borderRightWidth=borderRightWidthCurrentProperty,_currentWidth}else return 0},getPageScrollBarWidth=function(){var onlyExists=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return scroll_lock_getTargetScrollBarWidth(document.body,onlyExists)},getCurrentPageScrollBarWidth=function(){return scroll_lock_getCurrentTargetScrollBarWidth(document.body)},scroll_lock_addScrollableTarget=function(target){if(target){var targets=argumentAsArray(target);targets.map(function($targets){eachNode($targets,function($target){isElement($target)?$target.setAttribute("data-scroll-lock-scrollable",""):throwError('"'.concat($target,'" is not a Element.'))})})}},scroll_lock_removeScrollableTarget=function(target){if(target){var targets=argumentAsArray(target);targets.map(function($targets){eachNode($targets,function($target){isElement($target)?$target.removeAttribute("data-scroll-lock-scrollable"):throwError('"'.concat($target,'" is not a Element.'))})})}},scroll_lock_addScrollableSelector=function(selector){if(selector){var selectors=argumentAsArray(selector);selectors.map(function(selector2){state.scrollableSelectors.push(selector2)})}},scroll_lock_removeScrollableSelector=function(selector){if(selector){var selectors=argumentAsArray(selector);selectors.map(function(selector2){state.scrollableSelectors=state.scrollableSelectors.filter(function(sSelector){return sSelector!==selector2})})}},scroll_lock_addLockableTarget=function(target){if(target){var targets=argumentAsArray(target);targets.map(function($targets){eachNode($targets,function($target){isElement($target)?$target.setAttribute("data-scroll-lock-lockable",""):throwError('"'.concat($target,'" is not a Element.'))})}),getScrollState()||scroll_lock_hideLockableOverflow()}},scroll_lock_addLockableSelector=function(selector){if(selector){var selectors=argumentAsArray(selector);selectors.map(function(selector2){state.lockableSelectors.push(selector2)}),getScrollState()||scroll_lock_hideLockableOverflow(),scroll_lock_addFillGapSelector(selector)}},scroll_lock_setFillGapMethod=function(method){if(method)if(FILL_GAP_AVAILABLE_METHODS.indexOf(method)!==-1)state.fillGapMethod=method,refillGaps();else{var methods=FILL_GAP_AVAILABLE_METHODS.join(", ");throwError('"'.concat(method,`" method is not available!
21Available fill gap methods: `).concat(methods,"."))}},scroll_lock_addFillGapTarget=function(target){if(target){var targets=argumentAsArray(target);targets.map(function($targets){eachNode($targets,function($target){isElement($target)?($target.setAttribute("data-scroll-lock-fill-gap",""),state.scroll||scroll_lock_fillGapTarget($target)):throwError('"'.concat($target,'" is not a Element.'))})})}},scroll_lock_removeFillGapTarget=function(target){if(target){var targets=argumentAsArray(target);targets.map(function($targets){eachNode($targets,function($target){isElement($target)?($target.removeAttribute("data-scroll-lock-fill-gap"),state.scroll||scroll_lock_unfillGapTarget($target)):throwError('"'.concat($target,'" is not a Element.'))})})}},scroll_lock_addFillGapSelector=function(selector){if(selector){var selectors=argumentAsArray(selector);selectors.map(function(selector2){state.fillGapSelectors.indexOf(selector2)===-1&&(state.fillGapSelectors.push(selector2),state.scroll||scroll_lock_fillGapSelector(selector2))})}},scroll_lock_removeFillGapSelector=function(selector){if(selector){var selectors=argumentAsArray(selector);selectors.map(function(selector2){state.fillGapSelectors=state.fillGapSelectors.filter(function(fSelector){return fSelector!==selector2}),state.scroll||scroll_lock_unfillGapSelector(selector2)})}},refillGaps=function(){state.scroll||fillGaps()},scroll_lock_hideLockableOverflow=function(){var selector=arrayAsSelector(state.lockableSelectors);scroll_lock_hideLockableOverflowSelector(selector)},scroll_lock_showLockableOverflow=function(){var selector=arrayAsSelector(state.lockableSelectors);scroll_lock_showLockableOverflowSelector(selector)},scroll_lock_hideLockableOverflowSelector=function(selector){var $targets=document.querySelectorAll(selector);eachNode($targets,function($target){scroll_lock_hideLockableOverflowTarget($target)})},scroll_lock_showLockableOverflowSelector=function(selector){var $targets=document.querySelectorAll(selector);eachNode($targets,function($target){scroll_lock_showLockableOverflowTarget($target)})},scroll_lock_hideLockableOverflowTarget=function($target){if(isElement($target)&&$target.getAttribute("data-scroll-lock-locked")!=="true"){var computedStyle=window.getComputedStyle($target);$target.setAttribute("data-scroll-lock-saved-overflow-y-property",computedStyle.overflowY),$target.setAttribute("data-scroll-lock-saved-inline-overflow-property",$target.style.overflow),$target.setAttribute("data-scroll-lock-saved-inline-overflow-y-property",$target.style.overflowY),$target.style.overflow="hidden",$target.setAttribute("data-scroll-lock-locked","true")}},scroll_lock_showLockableOverflowTarget=function($target){isElement($target)&&$target.getAttribute("data-scroll-lock-locked")==="true"&&($target.style.overflow=$target.getAttribute("data-scroll-lock-saved-inline-overflow-property"),$target.style.overflowY=$target.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"),$target.removeAttribute("data-scroll-lock-saved-overflow-property"),$target.removeAttribute("data-scroll-lock-saved-inline-overflow-property"),$target.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"),$target.removeAttribute("data-scroll-lock-locked"))},fillGaps=function(){state.fillGapSelectors.map(function(selector){scroll_lock_fillGapSelector(selector)})},unfillGaps=function(){state.fillGapSelectors.map(function(selector){scroll_lock_unfillGapSelector(selector)})},scroll_lock_fillGapSelector=function(selector){var $targets=document.querySelectorAll(selector),isLockable=state.lockableSelectors.indexOf(selector)!==-1;eachNode($targets,function($target){scroll_lock_fillGapTarget($target,isLockable)})},scroll_lock_fillGapTarget=function($target){var isLockable=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(isElement($target)){var scrollBarWidth;if($target.getAttribute("data-scroll-lock-lockable")===""||isLockable)scrollBarWidth=scroll_lock_getTargetScrollBarWidth($target,!0);else{var $lockableParent=findParentBySelector($target,arrayAsSelector(state.lockableSelectors));scrollBarWidth=scroll_lock_getTargetScrollBarWidth($lockableParent,!0)}$target.getAttribute("data-scroll-lock-filled-gap")==="true"&&scroll_lock_unfillGapTarget($target);var computedStyle=window.getComputedStyle($target);if($target.setAttribute("data-scroll-lock-filled-gap","true"),$target.setAttribute("data-scroll-lock-current-fill-gap-method",state.fillGapMethod),state.fillGapMethod==="margin"){var currentMargin=parseFloat(computedStyle.marginRight);$target.style.marginRight="".concat(currentMargin+scrollBarWidth,"px")}else if(state.fillGapMethod==="width")$target.style.width="calc(100% - ".concat(scrollBarWidth,"px)");else if(state.fillGapMethod==="max-width")$target.style.maxWidth="calc(100% - ".concat(scrollBarWidth,"px)");else if(state.fillGapMethod==="padding"){var currentPadding=parseFloat(computedStyle.paddingRight);$target.style.paddingRight="".concat(currentPadding+scrollBarWidth,"px")}}},scroll_lock_unfillGapSelector=function(selector){var $targets=document.querySelectorAll(selector);eachNode($targets,function($target){scroll_lock_unfillGapTarget($target)})},scroll_lock_unfillGapTarget=function($target){if(isElement($target)&&$target.getAttribute("data-scroll-lock-filled-gap")==="true"){var currentFillGapMethod=$target.getAttribute("data-scroll-lock-current-fill-gap-method");$target.removeAttribute("data-scroll-lock-filled-gap"),$target.removeAttribute("data-scroll-lock-current-fill-gap-method"),currentFillGapMethod==="margin"?$target.style.marginRight="":currentFillGapMethod==="width"?$target.style.width="":currentFillGapMethod==="max-width"?$target.style.maxWidth="":currentFillGapMethod==="padding"&&($target.style.paddingRight="")}},onResize=function(e){refillGaps()},onTouchStart=function(e){state.scroll||(state.startTouchY=e.touches[0].clientY,state.startTouchX=e.touches[0].clientX)},scroll_lock_onTouchMove=function(e){if(!state.scroll){var startTouchY=state.startTouchY,startTouchX=state.startTouchX,currentClientY=e.touches[0].clientY,currentClientX=e.touches[0].clientX;if(e.touches.length<2){var selector=arrayAsSelector(state.scrollableSelectors),direction={up:startTouchY<currentClientY,down:startTouchY>currentClientY,left:startTouchX<currentClientX,right:startTouchX>currentClientX},directionWithOffset={up:startTouchY+TOUCH_DIRECTION_DETECT_OFFSET<currentClientY,down:startTouchY-TOUCH_DIRECTION_DETECT_OFFSET>currentClientY,left:startTouchX+TOUCH_DIRECTION_DETECT_OFFSET<currentClientX,right:startTouchX-TOUCH_DIRECTION_DETECT_OFFSET>currentClientX},handle=function handle2($el){var skip=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($el){var parentScrollableEl=findParentBySelector($el,selector,!1);if(elementIsInputRange($el))return!1;if(skip||elementIsScrollableField($el)&&findParentBySelector($el,selector)||elementHasSelector($el,selector)){var prevent=!1;elementScrollLeftOnStart($el)&&elementScrollLeftOnEnd($el)?(direction.up&&elementScrollTopOnStart($el)||direction.down&&elementScrollTopOnEnd($el))&&(prevent=!0):elementScrollTopOnStart($el)&&elementScrollTopOnEnd($el)?(direction.left&&elementScrollLeftOnStart($el)||direction.right&&elementScrollLeftOnEnd($el))&&(prevent=!0):(directionWithOffset.up&&elementScrollTopOnStart($el)||directionWithOffset.down&&elementScrollTopOnEnd($el)||directionWithOffset.left&&elementScrollLeftOnStart($el)||directionWithOffset.right&&elementScrollLeftOnEnd($el))&&(prevent=!0),prevent&&(parentScrollableEl?handle2(parentScrollableEl,!0):e.cancelable&&e.preventDefault())}else handle2(parentScrollableEl)}else e.cancelable&&e.preventDefault()};handle(e.target)}}},onTouchEnd=function(e){state.scroll||(state.startTouchY=0,state.startTouchX=0)};typeof window<"u"&&window.addEventListener("resize",onResize),typeof document<"u"&&(document.addEventListener("touchstart",onTouchStart),document.addEventListener("touchmove",scroll_lock_onTouchMove,{passive:!1}),document.addEventListener("touchend",onTouchEnd));var deprecatedMethods={hide:function(target){throwError(`"hide" is deprecated! Use "disablePageScroll" instead. 
22 https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget`),disablePageScroll(target)},show:function(target){throwError(`"show" is deprecated! Use "enablePageScroll" instead. 
23 https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget`),enablePageScroll(target)},toggle:function(target){throwError('"toggle" is deprecated! Do not use it.'),getScrollState()?disablePageScroll():enablePageScroll(target)},getState:function(){return throwError(`"getState" is deprecated! Use "getScrollState" instead. 
24 https://github.com/FL3NKEY/scroll-lock#getscrollstate`),getScrollState()},getWidth:function(){return throwError(`"getWidth" is deprecated! Use "getPageScrollBarWidth" instead. 
25 https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth`),getPageScrollBarWidth()},getCurrentWidth:function(){return throwError(`"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead. 
26 https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth`),getCurrentPageScrollBarWidth()},setScrollableTargets:function(target){throwError(`"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead. 
27 https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget`),scroll_lock_addScrollableTarget(target)},setFillGapSelectors:function(selector){throwError(`"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead. 
28 https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector`),scroll_lock_addFillGapSelector(selector)},setFillGapTargets:function(target){throwError(`"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead. 
29 https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget`),scroll_lock_addFillGapTarget(target)},clearQueue:function(){throwError(`"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead. 
30 https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks`),clearQueueScrollLocks()}},scrollLock=_objectSpread({disablePageScroll,enablePageScroll,getScrollState,clearQueueScrollLocks,getTargetScrollBarWidth:scroll_lock_getTargetScrollBarWidth,getCurrentTargetScrollBarWidth:scroll_lock_getCurrentTargetScrollBarWidth,getPageScrollBarWidth,getCurrentPageScrollBarWidth,addScrollableSelector:scroll_lock_addScrollableSelector,removeScrollableSelector:scroll_lock_removeScrollableSelector,addScrollableTarget:scroll_lock_addScrollableTarget,removeScrollableTarget:scroll_lock_removeScrollableTarget,addLockableSelector:scroll_lock_addLockableSelector,addLockableTarget:scroll_lock_addLockableTarget,addFillGapSelector:scroll_lock_addFillGapSelector,removeFillGapSelector:scroll_lock_removeFillGapSelector,addFillGapTarget:scroll_lock_addFillGapTarget,removeFillGapTarget:scroll_lock_removeFillGapTarget,setFillGapMethod:scroll_lock_setFillGapMethod,refillGaps,_state:state},deprecatedMethods),scroll_lock=__webpack_exports__.default=scrollLock})]).default})})},__webpack_module_cache__={};function __webpack_require__(moduleId){if(__webpack_module_cache__[moduleId])return __webpack_module_cache__[moduleId].exports;
30var module=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.exports}__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),(function(n,v){if(window.Shopify&&window.Shopify.theme&&navigator&&navigator.sendBeacon&&window.Shopify.designMode){if(sessionStorage.getItem("oots_beacon"))return;navigator.sendBeacon("https://app.outofthesandbox.com/beacon",new URLSearchParams({shop_domain:window.Shopify.shop,shop_id:window.Store.id,theme_name:n,theme_version:v,theme_store_id:window.Shopify.theme.theme_store_id,theme_id:window.Shopify.theme.id,theme_role:window.Shopify.theme.role})),sessionStorage.setItem("oots_beacon","")}})("startup","12.3.0"),(()=>{"use strict";var jquery=__webpack_require__(755),jquery_default=__webpack_require__.n(jquery),script=__webpack_require__(277),script_default=__webpack_require__.n(script);function getDecimalDegrees(firstComponent=0,secondComponent=0,thirdComponent=0,fourthComponent=0){const directions={N:1,E:1,S:-1,W:-1};let decimalDegrees=0;const components=[firstComponent,secondComponent,thirdComponent,fourthComponent];for(let i=0;i<components.length;i++){const component=components[i];component&&(Number.isNaN(parseFloat(component))?decimalDegrees*=directions[component]:decimalDegrees+=parseFloat(component)/60**i)}return decimalDegrees}function getLatitudeLongitude(address){const latLongFormats=[/^([0-9]{1,3})(?:°[ ]?| )([0-9]{1,2})(?:'[ ]?| )([0-9]{1,2}(?:\.[0-9]+)?)(?:"[ ]?| )?(N|E|S|W) ?([0-9]{1,3})(?:°[ ]?| )([0-9]{1,2})(?:'[ ]?| )([0-9]{1,2}(?:\.[0-9]+)?)(?:"[ ]?| )?(N|E|S|W)$/g,/^([0-9]{1,3})(?:°[ ]?| )([0-9]{1,2}(?:\.[0-9]+)?)(?:'[ ]?| )?(N|E|S|W) ?([0-9]{1,3})(?:°[ ]?| )([0-9]{1,2}(?:\.[0-9]+)?)(?:'[ ]?| )?(N|E|S|W)$/g,/^([-|+]?[0-9]{1,3}(?:\.[0-9]+)?)(?:°[ ]?| )?(N|E|S|W)?,? ?([-|+]?[0-9]{1,3}(?:\.[0-9]+)?)(?:°[ ]?| )?(N|E|S|W)?$/g],latLongMatch=latLongFormats.map(latLongFormat=>address.match(latLongFormat)).reduce((accumulator,value,index)=>{if(!accumulator&&value){const latLongResult=latLongFormats[index].exec(address),lat=latLongResult.slice(1,latLongResult.length/2+1),lng=latLongResult.slice(latLongResult.length/2+1,latLongResult.length);return{lat,lng}}return accumulator},null);return new Promise((resolve,reject)=>{if(latLongMatch){const latDecimalDegrees=getDecimalDegrees(...latLongMatch.lat),longDecimalDegrees=getDecimalDegrees(...latLongMatch.lng);resolve({lat:latDecimalDegrees,lng:longDecimalDegrees})}else new google.maps.Geocoder().geocode({address},(results,status)=>{status!==google.maps.GeocoderStatus.OK||!results[0]?reject(status):resolve(results[0].geometry.location)})})}function getMapStyles(colors){return colors?[{elementType:"geometry",stylers:[{color:colors.e}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:colors.a}]},{elementType:"labels.text.stroke",stylers:[{color:colors.e}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.country",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.neighborhood",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:colors.d}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:colors.c}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:colors.b}]}
30,{featureType:"road.highway.controlled_access",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:colors.b}]},{featureType:"road.local",elementType:"labels.text.stroke",stylers:[{color:colors.e}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"geometry",stylers:[{color:colors.f}]}]:[]}function createMap(options){const{container,address,zoom,colors}=options;return getLatitudeLongitude(address).then(latLong=>{const map=new google.maps.Map(container,{center:latLong,clickableIcons:!1,disableDefaultUI:!0,disableDoubleClickZoom:!0,gestureHandling:"none",keyboardShortcuts:!1,maxZoom:zoom,minZoom:zoom,scrollWheel:!1,styles:getMapStyles(colors),zoom,zoomControl:!1});new google.maps.Marker({clickable:!1,map,position:map.getCenter()}),map.panBy(0,0),new Promise.resolve(map)}).catch(status=>{const usageLimits="https://developers.google.com/maps/faq#usagelimits";let errorMessage;switch(status){case"ZERO_RESULTS":errorMessage=`<p>Unable to find the address:</p> ${address}`;break;case"OVER_QUERY_LIMIT":errorMessage=`
31            <p>Unable to load Google Maps, you have reached your usage limit.</p>
32            <p>
33              Please visit
34              <a href="${usageLimits}" target="_blank">${usageLimits}</a>
35              for more details.
36            </p>
37          `;break;default:errorMessage="Unable to load Google Maps.";break}throw errorMessage})}function displayErrorInThemeEditor(container,errorMessage){window.Shopify&&window.Shopify.designMode&&(container.innerHTML=`<div class="map-error-message">${errorMessage}</div>`)}class PxsMap{constructor(section){this.map=null;const container=section.el.querySelector("[data-map]").querySelector("[data-map-container]"),settings=section.data,{address,colors}=settings,apiKey=settings.api_key,zoom=Number.isNaN(settings.zoom)?13:11+parseInt(settings.zoom,10);apiKey&&(window.googleMaps===void 0?script_default()(`https://maps.googleapis.com/maps/api/js?key=${apiKey}`,()=>{window.googleMaps=!0,createMap({container,address,zoom,colors}).then(map=>{this.map=map}).catch(error=>displayErrorInThemeEditor(container,error))}):createMap({container,address,zoom,colors}).then(map=>{this.map=map}).catch(error=>displayErrorInThemeEditor(container,error)))}}/*!
38 * @pixelunion/rimg-shopify v2.7.1
39 * (c) 2023 Pixel Union
40 *//*!
41 * @pixelunion/rimg v2.2.2
42 * (c) 2022 Pixel Union
43 */function defaultTemplateRender(template,size){return template.replace("{size}","".concat(size.width,"x").concat(size.height))}var defaults={scale:1,template:!1,templateRender:defaultTemplateRender,max:{width:1/0,height:1/0},round:32,placeholder:!1,crop:null};function getData(el,name,options,sanitize){var attr="data-rimg-".concat(name);if(!el.hasAttribute(attr))return options[name]||defaults[name];var value=el.getAttribute(attr);return sanitize?sanitize(value):value}function parseSize(value){return value=value.split("x"),{width:parseInt(value[0],10),height:parseInt(value[1],10)}}function processCropValue(value){switch(value){case"top":case"center":case"bottom":case"left":case"right":return value;default:return null}}function parseItem(el){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},isImage=el.hasAttribute("data-rimg-template");return{el,isImage,isBackgroundImage:isImage&&el.tagName!=="IMG",scale:parseInt(getData(el,"scale",options)),density:window.devicePixelRatio||1,template:getData(el,"template",options),templateRender:options.templateRender||defaults.templateRender,max:getData(el,"max",options,parseSize),round:getData(el,"round",options),placeholder:getData(el,"placeholder",options,parseSize),crop:getData(el,"crop",options,processCropValue)}}function roundSize(size){var multiple=arguments.length>1&&arguments[1]!==void 0?arguments[1]:32,maxLimit=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0;return size===0?multiple:Math.min(Math.ceil(size/multiple)*multiple,maxLimit)}function getElementSize(el){for(var size={width:0,height:0};el&&(size.width=el.offsetWidth,size.height=el.offsetHeight,!(size.width>20&&size.height>20));)el=el.parentNode;return size}function supportedDensity(item,size){return Math.min(Math.min(Math.max(item.max.width/size.width,1),item.density),Math.min(Math.max(item.max.height/size.height,1),item.density)).toFixed(2)}function trigger(el,name){var event=document.createEvent("Event");return event.initEvent(name,!0,!0),!el.dispatchEvent(event)}function setImage(item,size,isPlaceholder,onLoad){var render=item.templateRender,density=isPlaceholder?1:supportedDensity(item,size),round=isPlaceholder?1:item.round,targetWidth=size.width*density,targetHeight=size.height*density,displaySize;if(item.crop)displaySize={width:roundSize(targetWidth,round,item.max.width),height:roundSize(targetHeight,round,item.max.height)};else{var containerAspectRatio=size.width/size.height,imageAspectRatio=item.max.width/item.max.height;containerAspectRatio>imageAspectRatio?displaySize={width:roundSize(targetWidth,round,item.max.width),height:roundSize(targetWidth/imageAspectRatio,roun
43d,item.max.height)}:displaySize={width:roundSize(targetHeight*imageAspectRatio,round,item.max.width),height:roundSize(targetHeight,round,item.max.height)}}var url=render(item.template,displaySize),image=new Image;image.onload=onLoad,image.src=url,item.isBackgroundImage?item.el.style.backgroundImage="url('".concat(url,"')"):item.el.setAttribute("srcset","".concat(url," ").concat(density,"x"))}function loadFullImage(item,size){var el=item.el;setImage(item,size,!1,function(event){event.type==="load"?el.setAttribute("data-rimg","loaded"):(el.setAttribute("data-rimg","error"),trigger(el,"rimg:error")),trigger(el,"rimg:load")})}function loadImage(item){var el=item.el,status=el.getAttribute("data-rimg");if(!(status==="loading"||status==="loaded")){if(!item.isBackgroundImage&&(el.naturalWidth===0||!el.complete)){el.addEventListener("load",function cb(){el.removeEventListener("load",cb),loadImage(item)});return}if(!trigger(el,"rimg:loading")){el.setAttribute("data-rimg","loading");var size=getElementSize(item.el);size.width*=item.scale,size.height*=item.scale,item.placeholder?(item.isBackgroundImage||(el.setAttribute("width",Math.min(Math.floor(item.max.width/item.density),size.width)),el.setAttribute("height",Math.min(Math.floor(item.max.height/item.density),size.height))),setImage(item,item.placeholder,!0,function(){return loadFullImage(item,size)})):loadFullImage(item,size)}}}function load(el,options){if(el){trigger(el,"rimg:enter");var item=parseItem(el,options);item.isImage&&(item.isBackgroundImage||el.setAttribute("data-rimg-template-svg",el.getAttribute("srcset")),loadImage(item))}}function update(el,options){if(el){trigger(el,"rimg:update");var item=parseItem(el,options);item.isImage&&(item.isBackgroundImage||(el.setAttribute("data-rimg","lazy"),el.setAttribute("srcset",el.getAttribute("data-rimg-template-svg"))),loadImage(item))}}function inViewport(el){if(!el.offsetWidth||!el.offsetHeight||!el.getClientRects().length)return!1;var root=document.documentElement,width=Math.min(root.clientWidth,window.innerWidth),height=Math.min(root.clientHeight,window.innerHeight),rect=el.getBoundingClientRect();return rect.bottom>=0&&rect.right>=0&&rect.top<=height&&rect.left<=width}function rimg(){var selector=arguments.length>0&&arguments[0]!==void 0?arguments[0]:'[data-rimg="lazy"]',options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},io=new IntersectionObserver(function(entries){entries.forEach(function(entry){(entry.isIntersecting||entry.intersectionRatio>0)&&(io.unobserve(entry.target),load(entry.target,options))})},{rootMargin:"20% 0px"}),api2={track:function(){for(var selector2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:'[data-rimg="lazy"]',els=querySelector(selector2),i=0;i<els.length;i++)inViewport(els[i])?load(els[i],options):io.observe(els[i])},update:function(){for(var selector2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:'[data-rimg="loaded"]',els=querySelector(selector2),i=0;i<els.length;i++)update(els[i],options)},untrack:function(){for(var selector2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"[data-rimg]",els=querySelector(selector2),i=0;i<els.length;i++)io.unobserve(els[i])},load:function(){for(var selector2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"[data-rimg]",els=querySelector(selector2),i=0;i<els.length;i++)load(els[i],options)},unload:function(){io.disconnect()}};return api2.track(selector),api2}function querySelector(selector){return typeof selector=="string"?document.querySelectorAll(selector):selector instanceof HTMLElement?[selector]:selector instanceof NodeList?selector:[]}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){for(var matches=(this.document||this.ownerDocument).querySelectorAll(s),i=matches.length;--i>=0&&matches.item(i)!==this;);return i>-1});var state={init,watch,unwatch,load:load$1};function init(){var selector=arguments.length>0&&arguments[0]!==void 0?arguments[0]:'[data-rimg="lazy"]',options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};state.selector=selector,state.instance=rimg(selector,options),state.loadedWidth=Math.max(document.documentElement.clientWidth,window.innerWidth||0),document.addEventListener("shopify:section:load",function(event){return watch(event.target)}),window.addEventListener("resize",function(){return _update()}),document.addEventListener("shopify:section:unload",function(event){return unwatch(event.target)}),document.addEventListener("theme:rimg:watch",function(event){return watch(event.target)}),document.addEventListener("theme:rimg:unwatch",function(event){return unwatch(event.target)}),window.jQuery&&jQuery(document).on({"theme:rimg:watch":function(event){return watch(event.target)},"theme:rimg:unwatch":function(event){return unwatch(event.target)}})}function watch(el){typeof el.matches=="function"&&el.matches(state.selector)&&state.instance.track(el),state.instance.track(el.querySelectorAll(state.selector))}function unwatch(el){state.instance.untrack(el.querySelectorAll(state.selector)),typeof el.matches=="function"&&el.matches(state.selector)&&state.instance.untrack(el)}function load$1(el){typeof el.matches=="function"&&el.matches(state.selector)&&state.instance.load(el),state.instance.load(el.querySelectorAll(state.selector))}function _update(){var currentWidth=Math.max(document.documentElement.clientWidth,window.innerWidth||0);currentWidth/state.loadedWidth>.5&&currentWidth/state.loadedWidth<2||(state.loadedWidth=currentWidth,state.instance.update(
43))}const index_es=state;/*!
44 * @pixelunion/shopify-sections-manager v1.1.0
45 * (c) 2024 Pixel Union
46 */function _typeof(obj){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}var LazyLoader=(function(){function LazyLoader2(options){_classCallCheck(this,LazyLoader2);var defaultOptions={rootMargin:"30%",threshold:0};this.callbacks=new WeakMap,this._observerCallback=this._observerCallback.bind(this),this.observer=new IntersectionObserver(this._observerCallback,_objectSpread2(_objectSpread2({},defaultOptions),options))}return _createClass(LazyLoader2,[{key:"add",value:function(target,callback){this.callbacks.set(target,callback),this.observer.observe(target)}},{key:"remove",value:function(target){this.observer.unobserve(target),this.callbacks.delete(target)}},{key:"unload",value:function(){this.observer.disconnect()}},{key:"_observerCallback",value:function(entries,observer){var _this=this;entries.forEach(function(_ref){var isIntersecting=_ref.isIntersecting,target=_ref.target;if(isIntersecting===!0){observer.unobserve(target);var callback=_this.callbacks.get(target);typeof callback=="function"&&callback(),_this.callbacks.delete(target)}})}}]),LazyLoader2})();function triggerInstanceEvent(instance,eventName){if(instance&&instance[eventName]){for(var _len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];instance[eventName].apply(instance,args)}}function loadData(el){var dataEl=el.querySelector("[data-section-data]");if(!dataEl)return{};var data=dataEl.getAttribute("data-section-data")||dataEl.innerHTML;try{return JSON.parse(data)}catch(error){return console.warn("Sections: invalid section data found. ".concat(error.message)),{}}}var ShopifySectionsManager=(function(){function ShopifySectionsManager2(){_classCallCheck(this,ShopifySectionsManager2),this.handlers={},this.instances={},this.options={},this.lazyLoader=null,this._onSectionEvent=this._onSectionEvent.bind(this),document.addEventListener("shopify:section:load",this._onSectionEvent),document.addEventListener("shopify:section:unload",this._onSectionEvent),document.addEventListener("shopify:section:select",this._onSectionEvent),document.addEventListener("shopify:section:deselect",this._onSectionEvent),document.addEventListener("shopify:section:reorder",this._onSectionEvent),document.addEventListener("shopify:block:select",this._onSectionEvent),document.addEventListener("shopify:block:deselect",this._onSectionEvent)}return _createClass(ShopifySectionsManager2,[{key:"unbind",value:function(){document.removeEventListener("shopify:section:load",this._onSectionEvent),document.removeEventListener("shopify:section:unload",this._onSectionEvent),document.removeEventListener("shopify:section:select",this._onSectionEvent),document.removeEventListener("shopify:section:deselect",this._onSectionEvent),document.removeEventListener("shopify:section:reorder",this._onSectionEvent),document.removeEventListener("shopify:block:select",this._onSectionEvent),document.removeEventListener("shopify:block:deselect",this._onSectionEvent);for(var i=0;i<this.instances.length;i++)triggerInstanceEvent(this.instances[i],"onSectionUnload");this.handlers={},this.options={},this.lazyLoader.unload(),this.lazyLoader=null,this.instances={}}},{key:"register",value:function(type,handler){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.handlers[type]&&console.warn("Sections: section handler already exists of type '".concat(type,"'.")),this.handlers[type]=handler,this.options[type]=options,this._initSections(type)}},{key:"_initSections",value:function(type){var _this=this,dataEls=document.querySelectorAll('[data-section-type="'.concat(type,'"]'));if(dataEls)for(var _loop=function(i2){var dataEl=dataEls[i2],el=dataEl.parentNode,idEl=el.querySelector("[data-section-id]");if(!idEl)return console.warn("Sections: unable to find section id for '".concat(type,"'."),el),{v:void 0};var sectionId=idEl.getAttribute("data-section-id");if(!sectionId)return console.warn("Sections: unable to find section id for '".concat(type,"'."),el),{v:void 0};_this.options[type]&&_this.options[type].lazy?(_this.lazyLoader===null&&(_this.lazyLoader=new LazyLoader),_this.lazyLoader.add(el,function(){return _this._createInstance(sectionId,el)})):_this._createInstance(sectionId,el)},i=0;i<dataEls.length;i++){var _ret=_loop(i);if(_typeof(_ret)==="object")return _ret.v}}},{key:"_onSectionEvent",value:function(event){var el=event.target,_event$detail=event.detail,sectionId=_event$detail.sectionId,blockId=_event$detail.blockId,instance=this.instances[sectionId];switch(event.type){case"shopify:section:load":this._createInstance(sectionId,el);break;case"shopify:section:unload":triggerInstanceEvent(instance,"onSectionUnload",{el,id:sectionId}),this.lazyLoader&&this.lazyLoader.remove(el),delete this.instances[sectionId];break;case"shopify:section:select":triggerInstanceEvent(instance,"onSectionSelect",{el,id:sectionId});break;case"shopify:section:deselect":triggerInstanceEvent(instance,"onSectionDeselect",{el,id:sectionId});break;case"shopify:section:reorder":triggerInstanceEvent(instance,"onSectionReorder",{el,id:sectionId});break;case"shopify:block:select":triggerInstanceEvent(instance,"onSectionBlockSelect",{el,id:blockId});break;case"shopify:block:deselect":triggerInstanceEvent(instance,"onSectionBlockDeselect",{el,id:blockId});break}}},{key:"_postMessage",value:function(name,data){var _this2=this;
46Object.keys(this.instances).forEach(function(id){triggerInstanceEvent(_this2.instances[id],"onSectionMessage",name,data)})}},{key:"_createInstance",value:function(id,el){var typeEl=el.querySelector("[data-section-type]");if(typeEl){var type=typeEl.getAttribute("data-section-type");if(type){var handler=this.handlers[type];if(!handler){console.warn("Sections: unable to find section handler for type '".concat(type,"'."));return}var data=loadData(el),postMessage=this._postMessage.bind(this);this.instances[id]=handler({id,type,el,data,postMessage})}}}}]),ShopifySectionsManager2})();const shopify_sections_manager_es=ShopifySectionsManager;/*!
47 * @pixelunion/pxs-slideshow v2.0.0
48 * (c) 2023 Pixel Union
49 */function index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&index_es_defineProperties(Constructor,staticProps),Constructor}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:{};function unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var evEmitter=createCommonjsModule(function(module){(function(global,factory){module.exports?module.exports=factory():global.EvEmitter=factory()})(typeof window<"u"?window:commonjsGlobal,function(){function EvEmitter(){}var proto=EvEmitter.prototype;return proto.on=function(eventName,listener){if(!(!eventName||!listener)){var events=this._events=this._events||{},listeners=events[eventName]=events[eventName]||[];return listeners.indexOf(listener)==-1&&listeners.push(listener),this}},proto.once=function(eventName,listener){if(!(!eventName||!listener)){this.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{},onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};return onceListeners[listener]=!0,this}},proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(!(!listeners||!listeners.length)){var index=listeners.indexOf(listener);return index!=-1&&listeners.splice(index,1),this}},proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(!(!listeners||!listeners.length)){listeners=listeners.slice(0),args=args||[];for(var onceListeners=this._onceEvents&&this._onceEvents[eventName],i=0;i<listeners.length;i++){var listener=listeners[i],isOnce=onceListeners&&onceListeners[listener];isOnce&&(this.off(eventName,listener),delete onceListeners[listener]),listener.apply(this,args)}return this}},proto.allOff=function(){delete this._events,delete this._onceEvents},EvEmitter})}),getSize=createCommonjsModule(function(module){/*!
50 * getSize v2.0.3
51 * measure size of elements
52 * MIT license
53 */(function(window2,factory){module.exports?module.exports=factory():window2.getSize=factory()})(window,function(){function getStyleSize(value){var num=parseFloat(value),isValid=value.indexOf("%")==-1&&!isNaN(num);return isValid&&num}function noop2(){}var logError=typeof console>"u"?noop2:function(message){console.error(message)},measurements=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],measurementsLength=measurements.length;function getZeroSize(){for(var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<measurementsLength;i++){var measurement=measurements[i];size[measurement]=0}return size}function getStyle(elem){var style=getComputedStyle(elem);return style||logError("Style returned "+style+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),style}var isSetup=!1,isBoxSizeOuter;function setup(){if(!isSetup){isSetup=!0;var div=document.createElement("div");div.style.width="200px",div.style.padding="1px 2px 3px 4px",div.style.borderStyle="solid",div.style.borderWidth="1px 2px 3px 4px",div.style.boxSizing="border-box";var body2=document.body||document.documentElement;body2.appendChild(div);var style=getStyle(div);isBoxSizeOuter=Math.round(getStyleSize(style.width))==200,getSize2.isBoxSizeOuter=isBoxSizeOuter,body2.removeChild(div)}}function getSize2(elem){if(setup(),typeof elem=="string"&&(elem=document.querySelector(elem)),!(!elem||typeof elem!="object"||!elem.nodeType)){var style=getStyle(elem);if(style.display=="none")return getZeroSize();var size={};size.width=elem.offsetWidth,size.height=elem.offsetHeight;for(var isBorderBox=size.isBorderBox=style.boxSizing=="border-box",i=0;i<measurementsLength;i++){var measurement=measurements[i],value=style[measurement],num=parseFloat(value);size[measurement]=isNaN(num)?0:num}var paddingWidth=size.paddingLeft+size.paddingRight,paddingHeight=size.paddingTop+size.paddingBottom,marginWidth=size.marginLeft+size.marginRight,marginHeight=size.marginTop+size.marginBottom,borderWidth=size.borderLeftWidth+size.borderRightWidth,borderHeight=size.borderTopWidth+size.borderBottomWidth,isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter,styleWidth=getStyleSize(style.width);styleWidth!==!1&&(size.width=styleWidth+(isBorderBoxSizeOuter?0:paddingWidth+borderWidth));var styleHeight=getStyleSize(style.height);return styleHeight!==!1&&(size.height=styleHeight+(isBorderBoxSizeOuter?0:paddingHeight+borderHeight)),size.innerWidth=size.width-(paddingWidth+borderWidth),size.innerHe
53ight=size.height-(paddingHeight+borderHeight),size.outerWidth=size.width+marginWidth,size.outerHeight=size.height+marginHeight,size}}return getSize2})}),matchesSelector=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory():window2.matchesSelector=factory()})(window,function(){var matchesMethod=(function(){var ElemProto=window.Element.prototype;if(ElemProto.matches)return"matches";if(ElemProto.matchesSelector)return"matchesSelector";for(var prefixes=["webkit","moz","ms","o"],i=0;i<prefixes.length;i++){var prefix=prefixes[i],method=prefix+"MatchesSelector";if(ElemProto[method])return method}})();return function(elem,selector){return elem[matchesMethod](selector)}})}),utils=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,matchesSelector):window2.fizzyUIUtils=factory(window2,window2.matchesSelector)})(window,function(window2,matchesSelector2){var utils2={};utils2.extend=function(a,b){for(var prop in b)a[prop]=b[prop];return a},utils2.modulo=function(num,div){return(num%div+div)%div};var arraySlice=Array.prototype.slice;utils2.makeArray=function(obj){if(Array.isArray(obj))return obj;if(obj==null)return[];var isArrayLike=typeof obj=="object"&&typeof obj.length=="number";return isArrayLike?arraySlice.call(obj):[obj]},utils2.removeFrom=function(ary,obj){var index=ary.indexOf(obj);index!=-1&&ary.splice(index,1)},utils2.getParent=function(elem,selector){for(;elem.parentNode&&elem!=document.body;)if(elem=elem.parentNode,matchesSelector2(elem,selector))return elem},utils2.getQueryElement=function(elem){return typeof elem=="string"?document.querySelector(elem):elem},utils2.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},utils2.filterFindElements=function(elems,selector){elems=utils2.makeArray(elems);var ffElems=[];return elems.forEach(function(elem){if(elem instanceof HTMLElement){if(!selector){ffElems.push(elem);return}matchesSelector2(elem,selector)&&ffElems.push(elem);for(var childElems=elem.querySelectorAll(selector),i=0;i<childElems.length;i++)ffElems.push(childElems[i])}}),ffElems},utils2.debounceMethod=function(_class,methodName,threshold){threshold=threshold||100;var method=_class.prototype[methodName],timeoutName=methodName+"Timeout";_class.prototype[methodName]=function(){var timeout=this[timeoutName];clearTimeout(timeout);var args=arguments,_this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args),delete _this[timeoutName]},threshold)}},utils2.docReady=function(callback){var readyState=document.readyState;readyState=="complete"||readyState=="interactive"?setTimeout(callback):document.addEventListener("DOMContentLoaded",callback)},utils2.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+"-"+$2}).toLowerCase()};var console2=window2.console;return utils2.htmlInit=function(WidgetClass,namespace){utils2.docReady(function(){var dashedNamespace=utils2.toDashed(namespace),dataAttr="data-"+dashedNamespace,dataAttrElems=document.querySelectorAll("["+dataAttr+"]"),jsDashElems=document.querySelectorAll(".js-"+dashedNamespace),elems=utils2.makeArray(dataAttrElems).concat(utils2.makeArray(jsDashElems)),dataOptionsAttr=dataAttr+"-options",jQuery2=window2.jQuery;elems.forEach(function(elem){var attr=elem.getAttribute(dataAttr)||elem.getAttribute(dataOptionsAttr),options;try{options=attr&&JSON.parse(attr)}catch(error){console2&&console2.error("Error parsing "+dataAttr+" on "+elem.className+": "+error);return}var instance=new WidgetClass(elem,options);jQuery2&&jQuery2.data(elem,namespace,instance)})})},utils2})}),cell=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,getSize):(window2.Flickity=window2.Flickity||{},window2.Flickity.Cell=factory(window2,window2.getSize))})(window,function(window2,getSize2){function Cell(elem,parent){this.element=elem,this.parent=parent,this.create()}var proto=Cell.prototype;return proto.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},proto.destroy=function(){this.unselect(),this.element.style.position="";var side=this.parent.originSide;this.element.style[side]=""},proto.getSize=function(){this.size=getSize2(this.element)},proto.setPosition=function(x){this.x=x,this.updateTarget(),this.renderPosition(x)},proto.updateTarget=proto.setDefaultTarget=function(){var marginProperty=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[marginProperty]+this.size.width*this.parent.cellAlign},proto.renderPosition=function(x){var side=this.parent.originSide;this.element.style[side]=this.parent.getPositionValue(x)},proto.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},proto.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},proto.wrapShift=function(shift){this.shift=shift,this.renderPosition(this.x+this.parent.slideableWidth*shift)},proto.remove=function(){this.element.parentNode.removeChild(this.element)},Cell})}),slide=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory():(window2.Flickity=window2.Flickity||{},window2.Flickity.Slide=factory())})(window,function(){function Slide(parent){this.parent=parent,this.isOriginLeft=parent.originSide=="left",this.cells=[],this.outerWidth=0,this.height=0}var proto=Slide.prototype;return proto.addCell=function(cell2){if(this.cells.push(cell2),this.outerWidth+=cell2.size.outerWidth,this.height=Math.max(cell2.size.outerHeight,this.height),this.cells.length==1){this.x=cell2.x;var beginMargin=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=cell2.size[beginMargin]}},proto.updateTarget=function(){var endMargin=this.isOriginLeft?"marginRight":"marginLeft",lastCell=this.getLastCell(),lastMargin=lastCell?lastCell.size[endMargin]:0,slideWidth=this.outerWidth-(this.firstMargin+lastMargin);this.target=this.x+this.firstMargin+slideWidth*this.parent.cellAlign},proto.getLastCell=function(){return this.cells[this.cells.length-1]}
53,proto.select=function(){this.cells.forEach(function(cell2){cell2.select()})},proto.unselect=function(){this.cells.forEach(function(cell2){cell2.unselect()})},proto.getCellElements=function(){return this.cells.map(function(cell2){return cell2.element})},Slide})}),animate=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,utils):(window2.Flickity=window2.Flickity||{},window2.Flickity.animatePrototype=factory(window2,window2.fizzyUIUtils))})(window,function(window2,utils2){var proto={};return proto.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},proto.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var previousX=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(previousX),this.isAnimating){var _this=this;requestAnimationFrame(function(){_this.animate()})}},proto.positionSlider=function(){var x=this.x;this.options.wrapAround&&this.cells.length>1&&(x=utils2.modulo(x,this.slideableWidth),x=x-this.slideableWidth,this.shiftWrapCells(x)),this.setTranslateX(x,this.isAnimating),this.dispatchScrollEvent()},proto.setTranslateX=function(x,is3d){x+=this.cursorPosition,x=this.options.rightToLeft?-x:x;var translateX=this.getPositionValue(x);this.slider.style.transform=is3d?"translate3d("+translateX+",0,0)":"translateX("+translateX+")"},proto.dispatchScrollEvent=function(){var firstSlide=this.slides[0];if(firstSlide){var positionX=-this.x-firstSlide.target,progress=positionX/this.slidesWidth;this.dispatchEvent("scroll",null,[progress,positionX])}},proto.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},proto.getPositionValue=function(position){return this.options.percentPosition?Math.round(position/this.size.innerWidth*1e4)*.01+"%":Math.round(position)+"px"},proto.settle=function(previousX){!this.isPointerDown&&Math.round(this.x*100)==Math.round(previousX*100)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},proto.shiftWrapCells=function(x){var beforeGap=this.cursorPosition+x;this._shiftCells(this.beforeShiftCells,beforeGap,-1);var afterGap=this.size.innerWidth-(x+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,afterGap,1)},proto._shiftCells=function(cells,gap,shift){for(var i=0;i<cells.length;i++){var cell2=cells[i],cellShift=gap>0?shift:0;cell2.wrapShift(cellShift),gap-=cell2.size.outerWidth}},proto._unshiftCells=function(cells){if(!(!cells||!cells.length))for(var i=0;i<cells.length;i++)cells[i].wrapShift(0)},proto.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},proto.applyForce=function(force){this.velocity+=force},proto.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},proto.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},proto.applyDragForce=function(){if(!(!this.isDraggable||!this.isPointerDown)){var dragVelocity=this.dragX-this.x,dragForce=dragVelocity-this.velocity;this.applyForce(dragForce)}},proto.applySelectedAttraction=function(){var dragDown=this.isDraggable&&this.isPointerDown;if(!(dragDown||this.isFreeScrolling||!this.slides.length)){var distance=this.selectedSlide.target*-1-this.x,force=distance*this.options.selectedAttraction;this.applyForce(force)}},proto})}),flickity=createCommonjsModule(function(module){(function(window2,factory){if(module.exports)module.exports=factory(window2,evEmitter,getSize,utils,cell,slide,animate);else{var _Flickity=window2.Flickity;window2.Flickity=factory(window2,window2.EvEmitter,window2.getSize,window2.fizzyUIUtils,_Flickity.Cell,_Flickity.Slide,_Flickity.animatePrototype)}})(window,function(window2,EvEmitter,getSize2,utils2,Cell,Slide,animatePrototype){var jQuery2=window2.jQuery,getComputedStyle2=window2.getComputedStyle,console2=window2.console;function moveElements(elems,toElem){for(elems=utils2.makeArray(elems);elems.length;)toElem.appendChild(elems.shift())}var GUID=0,instances={};function Flickity(element,options){var queryElement=utils2.getQueryElement(element);if(!queryElement){console2&&console2.error("Bad element for Flickity: "+(queryElement||element));return}if(this.element=queryElement,this.element.flickityGUID){var instance=instances[this.element.flickityGUID];return instance.option(options),instance}jQuery2&&(this.$element=jQuery2(this.element)),this.options=utils2.extend({},this.constructor.defaults),this.option(options),this._create()}Flickity.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},Flickity.createMethods=[];var proto=Flickity.prototype;utils2.extend(proto,EvEmitter.prototype),proto._create=function(){var id=this.guid=++GUID;this.element.flickityGUID=id,instances[id]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&window2.addEventListener("resize",this);for(var eventName in this.options.on){var listener=this.options.on[eventName];this.on(eventName,listener)}Flickity.createMethods.forEach(function(method){this[method]()},this),this.options.watchCSS?this.watchCSS():this.activate()},proto.option=function(opts){utils2.extend(this.options,opts)},proto.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.get
53Size();var cellElems=this._filterFindCellElements(this.element.children);moveElements(cellElems,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")}},proto._createSlider=function(){var slider=document.createElement("div");slider.className="flickity-slider",slider.style[this.originSide]=0,this.slider=slider},proto._filterFindCellElements=function(elems){return utils2.filterFindElements(elems,this.options.cellSelector)},proto.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},proto._makeCells=function(elems){var cellElems=this._filterFindCellElements(elems),cells=cellElems.map(function(cellElem){return new Cell(cellElem,this)},this);return cells},proto.getLastCell=function(){return this.cells[this.cells.length-1]},proto.getLastSlide=function(){return this.slides[this.slides.length-1]},proto.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},proto._positionCells=function(index){index=index||0,this.maxCellHeight=index&&this.maxCellHeight||0;var cellX=0;if(index>0){var startCell=this.cells[index-1];cellX=startCell.x+startCell.size.outerWidth}for(var len=this.cells.length,i=index;i<len;i++){var cell2=this.cells[i];cell2.setPosition(cellX),cellX+=cell2.size.outerWidth,this.maxCellHeight=Math.max(cell2.size.outerHeight,this.maxCellHeight)}this.slideableWidth=cellX,this.updateSlides(),this._containSlides(),this.slidesWidth=len?this.getLastSlide().target-this.slides[0].target:0},proto._sizeCells=function(cells){cells.forEach(function(cell2){cell2.getSize()})},proto.updateSlides=function(){if(this.slides=[],!!this.cells.length){var slide2=new Slide(this);this.slides.push(slide2);var isOriginLeft=this.originSide=="left",nextMargin=isOriginLeft?"marginRight":"marginLeft",canCellFit=this._getCanCellFit();this.cells.forEach(function(cell2,i){if(!slide2.cells.length){slide2.addCell(cell2);return}var slideWidth=slide2.outerWidth-slide2.firstMargin+(cell2.size.outerWidth-cell2.size[nextMargin]);canCellFit.call(this,i,slideWidth)||(slide2.updateTarget(),slide2=new Slide(this),this.slides.push(slide2)),slide2.addCell(cell2)},this),slide2.updateTarget(),this.updateSelectedSlide()}},proto._getCanCellFit=function(){var groupCells=this.options.groupCells;if(groupCells){if(typeof groupCells=="number"){var number=parseInt(groupCells,10);return function(i){return i%number!==0}}}else return function(){return!1};var percentMatch=typeof groupCells=="string"&&groupCells.match(/^(\d+)%$/),percent=percentMatch?parseInt(percentMatch[1],10)/100:1;return function(i,slideWidth){return slideWidth<=(this.size.innerWidth+1)*percent}},proto._init=proto.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},proto.getSize=function(){this.size=getSize2(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var cellAlignShorthands={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return proto.setCellAlign=function(){var shorthand=cellAlignShorthands[this.options.cellAlign];this.cellAlign=shorthand?shorthand[this.originSide]:this.options.cellAlign},proto.setGallerySize=function(){if(this.options.setGallerySize){var height=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=height+"px"}},proto._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var gapX=this.cursorPosition,cellIndex=this.cells.length-1;this.beforeShiftCells=this._getGapCells(gapX,cellIndex,-1),gapX=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(gapX,0,1)}},proto._getGapCells=function(gapX,cellIndex,increment){for(var cells=[];gapX>0;){var cell2=this.cells[cellIndex];if(!cell2)break;cells.push(cell2),cellIndex+=increment,gapX-=cell2.size.outerWidth}return cells},proto._containSlides=function(){if(!(!this.options.contain||this.options.wrapAround||!this.cells.length)){var isRightToLeft=this.options.rightToLeft,beginMargin=isRightToLeft?"marginRight":"marginLeft",endMargin=isRightToLeft?"marginLeft":"marginRight",contentWidth=this.slideableWidth-this.getLastCell().size[endMargin],isContentSmaller=contentWidth<this.size.innerWidth,beginBound=this.cursorPosition+this.cells[0].size[beginMargin],endBound=contentWidth-this.size.innerWidth*(1-this.cellAlign);
53this.slides.forEach(function(slide2){isContentSmaller?slide2.target=contentWidth*this.cellAlign:(slide2.target=Math.max(slide2.target,beginBound),slide2.target=Math.min(slide2.target,endBound))},this)}},proto.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;if(this.emitEvent(type,emitArgs),jQuery2&&this.$element){type+=this.options.namespaceJQueryEvents?".flickity":"";var $event=type;if(event){var jQEvent=jQuery2.Event(event);jQEvent.type=type,$event=jQEvent}this.$element.trigger($event,args)}},proto.select=function(index,isWrap,isInstant){if(this.isActive&&(index=parseInt(index,10),this._wrapSelect(index),(this.options.wrapAround||isWrap)&&(index=utils2.modulo(index,this.slides.length)),!!this.slides[index])){var prevIndex=this.selectedIndex;this.selectedIndex=index,this.updateSelectedSlide(),isInstant?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[index]),index!=prevIndex&&this.dispatchEvent("change",null,[index]),this.dispatchEvent("cellSelect")}},proto._wrapSelect=function(index){var len=this.slides.length,isWrapping=this.options.wrapAround&&len>1;if(!isWrapping)return index;var wrapIndex=utils2.modulo(index,len),delta=Math.abs(wrapIndex-this.selectedIndex),backWrapDelta=Math.abs(wrapIndex+len-this.selectedIndex),forewardWrapDelta=Math.abs(wrapIndex-len-this.selectedIndex);!this.isDragSelect&&backWrapDelta<delta?index+=len:!this.isDragSelect&&forewardWrapDelta<delta&&(index-=len),index<0?this.x-=this.slideableWidth:index>=len&&(this.x+=this.slideableWidth)},proto.previous=function(isWrap,isInstant){this.select(this.selectedIndex-1,isWrap,isInstant)},proto.next=function(isWrap,isInstant){this.select(this.selectedIndex+1,isWrap,isInstant)},proto.updateSelectedSlide=function(){var slide2=this.slides[this.selectedIndex];slide2&&(this.unselectSelectedSlide(),this.selectedSlide=slide2,slide2.select(),this.selectedCells=slide2.cells,this.selectedElements=slide2.getCellElements(),this.selectedCell=slide2.cells[0],this.selectedElement=this.selectedElements[0])},proto.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},proto.selectInitialIndex=function(){var initialIndex=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,!1,!0);return}if(initialIndex&&typeof initialIndex=="string"){var cell2=this.queryCell(initialIndex);if(cell2){this.selectCell(initialIndex,!1,!0);return}}var index=0;initialIndex&&this.slides[initialIndex]&&(index=initialIndex),this.select(index,!1,!0)},proto.selectCell=function(value,isWrap,isInstant){var cell2=this.queryCell(value);if(cell2){var index=this.getCellSlideIndex(cell2);this.select(index,isWrap,isInstant)}},proto.getCellSlideIndex=function(cell2){for(var i=0;i<this.slides.length;i++){var slide2=this.slides[i],index=slide2.cells.indexOf(cell2);if(index!=-1)return i}},proto.getCell=function(elem){for(var i=0;i<this.cells.length;i++){var cell2=this.cells[i];if(cell2.element==elem)return cell2}},proto.getCells=function(elems){elems=utils2.makeArray(elems);var cells=[];return elems.forEach(function(elem){var cell2=this.getCell(elem);cell2&&cells.push(cell2)},this),cells},proto.getCellElements=function(){return this.cells.map(function(cell2){return cell2.element})},proto.getParentCell=function(elem){var cell2=this.getCell(elem);return cell2||(elem=utils2.getParent(elem,".flickity-slider > *"),this.getCell(elem))},proto.getAdjacentCellElements=function(adjCount,index){if(!adjCount)return this.selectedSlide.getCellElements();index=index===void 0?this.selectedIndex:index;var len=this.slides.length;if(1+adjCount*2>=len)return this.getCellElements();for(var cellElems=[],i=index-adjCount;i<=index+adjCount;i++){var slideIndex=this.options.wrapAround?utils2.modulo(i,len):i,slide2=this.slides[slideIndex];slide2&&(cellElems=cellElems.concat(slide2.getCellElements()))}return cellElems},proto.queryCell=function(selector){if(typeof selector=="number")return this.cells[selector];if(typeof selector=="string"){if(selector.match(/^[#\.]?[\d\/]/))return;selector=this.element.querySelector(selector)}return this.getCell(selector)},proto.uiChange=function(){this.emitEvent("uiChange")},proto.childUIPointerDown=function(event){event.type!="touchstart"&&event.preventDefault(),this.focus()},proto.onresize=function(){this.watchCSS(),this.resize()},utils2.debounceMethod(Flickity,"onresize",150),proto.resize=function(){if(this.isActive){this.get
53Size(),this.options.wrapAround&&(this.x=utils2.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var selectedElement=this.selectedElements&&this.selectedElements[0];this.selectCell(selectedElement,!1,!0)}},proto.watchCSS=function(){var watchOption=this.options.watchCSS;if(watchOption){var afterContent=getComputedStyle2(this.element,":after").content;afterContent.indexOf("flickity")!=-1?this.activate():this.deactivate()}},proto.onkeydown=function(event){var isNotFocused=document.activeElement&&document.activeElement!=this.element;if(!(!this.options.accessibility||isNotFocused)){var handler=Flickity.keyboardHandlers[event.keyCode];handler&&handler.call(this)}},Flickity.keyboardHandlers={37:function(){var leftMethod=this.options.rightToLeft?"next":"previous";this.uiChange(),this[leftMethod]()},39:function(){var rightMethod=this.options.rightToLeft?"previous":"next";this.uiChange(),this[rightMethod]()}},proto.focus=function(){var prevScrollY=window2.pageYOffset;this.element.focus({preventScroll:!0}),window2.pageYOffset!=prevScrollY&&window2.scrollTo(window2.pageXOffset,prevScrollY)},proto.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(cell2){cell2.destroy()}),this.element.removeChild(this.viewport),moveElements(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},proto.destroy=function(){this.deactivate(),window2.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),jQuery2&&this.$element&&jQuery2.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete instances[this.guid]},utils2.extend(proto,animatePrototype),Flickity.data=function(elem){elem=utils2.getQueryElement(elem);var id=elem&&elem.flickityGUID;return id&&instances[id]},utils2.htmlInit(Flickity,"flickity"),jQuery2&&jQuery2.bridget&&jQuery2.bridget("flickity",Flickity),Flickity.setJQuery=function(jq){jQuery2=jq},Flickity.Cell=Cell,Flickity.Slide=Slide,Flickity})}),unipointer=createCommonjsModule(function(module){/*!
54 * Unipointer v2.3.0
55 * base class for doing one thing with pointer event
56 * MIT license
57 */(function(window2,factory){module.exports?module.exports=factory(window2,evEmitter):window2.Unipointer=factory(window2,window2.EvEmitter)})(window,function(window2,EvEmitter){function noop2(){}function Unipointer(){}var proto=Unipointer.prototype=Object.create(EvEmitter.prototype);proto.bindStartEvent=function(elem){this._bindStartEvent(elem,!0)},proto.unbindStartEvent=function(elem){this._bindStartEvent(elem,!1)},proto._bindStartEvent=function(elem,isAdd){isAdd=isAdd===void 0?!0:isAdd;var bindMethod=isAdd?"addEventListener":"removeEventListener",startEvent="mousedown";window2.PointerEvent?startEvent="pointerdown":"ontouchstart"in window2&&(startEvent="touchstart"),elem[bindMethod](startEvent,this)},proto.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},proto.getTouch=function(touches){for(var i=0;i<touches.length;i++){var touch=touches[i];if(touch.identifier==this.pointerIdentifier)return touch}},proto.onmousedown=function(event){var button=event.button;button&&button!==0&&button!==1||this._pointerDown(event,event)},proto.ontouchstart=function(event){this._pointerDown(event,event.changedTouches[0])},proto.onpointerdown=function(event){this._pointerDown(event,event)},proto._pointerDown=function(event,pointer){event.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=pointer.pointerId!==void 0?pointer.pointerId:pointer.identifier,this.pointerDown(event,pointer))},proto.pointerDown=function(event,pointer){this._bindPostStartEvents(event),this.emitEvent("pointerDown",[event,pointer])};var postStartEvents={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return proto._bindPostStartEvents=function(event){if(event){var events=postStartEvents[event.type];
57events.forEach(function(eventName){window2.addEventListener(eventName,this)},this),this._boundPointerEvents=events}},proto._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(eventName){window2.removeEventListener(eventName,this)},this),delete this._boundPointerEvents)},proto.onmousemove=function(event){this._pointerMove(event,event)},proto.onpointermove=function(event){event.pointerId==this.pointerIdentifier&&this._pointerMove(event,event)},proto.ontouchmove=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerMove(event,touch)},proto._pointerMove=function(event,pointer){this.pointerMove(event,pointer)},proto.pointerMove=function(event,pointer){this.emitEvent("pointerMove",[event,pointer])},proto.onmouseup=function(event){this._pointerUp(event,event)},proto.onpointerup=function(event){event.pointerId==this.pointerIdentifier&&this._pointerUp(event,event)},proto.ontouchend=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerUp(event,touch)},proto._pointerUp=function(event,pointer){this._pointerDone(),this.pointerUp(event,pointer)},proto.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer])},proto._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},proto._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},proto.pointerDone=noop2,proto.onpointercancel=function(event){event.pointerId==this.pointerIdentifier&&this._pointerCancel(event,event)},proto.ontouchcancel=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerCancel(event,touch)},proto._pointerCancel=function(event,pointer){this._pointerDone(),this.pointerCancel(event,pointer)},proto.pointerCancel=function(event,pointer){this.emitEvent("pointerCancel",[event,pointer])},Unipointer.getPointerPoint=function(pointer){return{x:pointer.pageX,y:pointer.pageY}},Unipointer})}),unidragger=createCommonjsModule(function(module){/*!
58 * Unidragger v2.3.0
59 * Draggable base class
60 * MIT license
61 */(function(window2,factory){module.exports?module.exports=factory(window2,unipointer):window2.Unidragger=factory(window2,window2.Unipointer)})(window,function(window2,Unipointer){function Unidragger(){}var proto=Unidragger.prototype=Object.create(Unipointer.prototype);proto.bindHandles=function(){this._bindHandles(!0)},proto.unbindHandles=function(){this._bindHandles(!1)},proto._bindHandles=function(isAdd){isAdd=isAdd===void 0?!0:isAdd;for(var bindMethod=isAdd?"addEventListener":"removeEventListener",touchAction=isAdd?this._touchActionValue:"",i=0;i<this.handles.length;i++){var handle=this.handles[i];this._bindStartEvent(handle,isAdd),handle[bindMethod]("click",this),window2.PointerEvent&&(handle.style.touchAction=touchAction)}},proto._touchActionValue="none",proto.pointerDown=function(event,pointer){var isOkay=this.okayPointerDown(event);isOkay&&(this.pointerDownPointer=pointer,event.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(event),this.emitEvent("pointerDown",[event,pointer]))};var cursorNodes={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},clickTypes={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return proto.okayPointerDown=function(event){var isCursorNode=cursorNodes[event.target.nodeName],isClickType=clickTypes[event.target.type],isOkay=!isCursorNode||isClickType;return isOkay||this._pointerReset(),isOkay},proto.pointerDownBlur=function(){var focused=document.activeElement,canBlur=focused&&focused.blur&&focused!=document.body;canBlur&&focused.blur()},proto.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.emitEvent("pointerMove",[event,pointer,moveVector]),this._dragMove(event,pointer,moveVector)},proto._dragPointerMove=function(event,pointer){var moveVector={x:pointer.pageX-this.pointerDownPointer.pageX,y:pointer.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(moveVector)&&this._dragStart(event,pointer),moveVector},proto.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>3||Math.abs(moveVector.y)>3},proto.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer]),this._dragPointerUp(event,pointer)},proto._dragPointerUp=function(event,pointer){this.isDragging?this._dragEnd(event,pointer):this._staticClick(event,pointer)},proto._dragStart=function(event,pointer){this.isDragging=!0,this.isPreventing
61Clicks=!0,this.dragStart(event,pointer)},proto.dragStart=function(event,pointer){this.emitEvent("dragStart",[event,pointer])},proto._dragMove=function(event,pointer,moveVector){this.isDragging&&this.dragMove(event,pointer,moveVector)},proto.dragMove=function(event,pointer,moveVector){event.preventDefault(),this.emitEvent("dragMove",[event,pointer,moveVector])},proto._dragEnd=function(event,pointer){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(event,pointer)},proto.dragEnd=function(event,pointer){this.emitEvent("dragEnd",[event,pointer])},proto.onclick=function(event){this.isPreventingClicks&&event.preventDefault()},proto._staticClick=function(event,pointer){this.isIgnoringMouseUp&&event.type=="mouseup"||(this.staticClick(event,pointer),event.type!="mouseup"&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},proto.staticClick=function(event,pointer){this.emitEvent("staticClick",[event,pointer])},Unidragger.getPointerPoint=Unipointer.getPointerPoint,Unidragger})}),drag=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,flickity,unidragger,utils):window2.Flickity=factory(window2,window2.Flickity,window2.Unidragger,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unidragger,utils2){utils2.extend(Flickity.defaults,{draggable:">1",dragThreshold:3}),Flickity.createMethods.push("_createDrag");var proto=Flickity.prototype;utils2.extend(proto,Unidragger.prototype),proto._touchActionValue="pan-y";var isTouch="createTouch"in document,isTouchmoveScrollCanceled=!1;proto._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),isTouch&&!isTouchmoveScrollCanceled&&(window2.addEventListener("touchmove",function(){}),isTouchmoveScrollCanceled=!0)},proto.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},proto.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},proto.updateDraggable=function(){this.options.draggable==">1"?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},proto.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},proto.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},proto._uiChangeDrag=function(){delete this.isFreeScrolling},proto.pointerDown=function(event,pointer){if(!this.isDraggable){this._pointerDownDefault(event,pointer);return}var isOkay=this.okayPointerDown(event);isOkay&&(this._pointerDownPreventDefault(event),this.pointerDownFocus(event),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=getScrollPosition(),window2.addEventListener("scroll",this),this._pointerDownDefault(event,pointer))},proto._pointerDownDefault=function(event,pointer){this.pointerDownPointer={pageX:pointer.pageX,pageY:pointer.pageY},this._bindPostStartEvents(event),this.dispatchEvent("pointerDown",event,[pointer])};var focusNodes={INPUT:!0,TEXTAREA:!0,SELECT:!0};proto.pointerDownFocus=function(event){var isFocusNode=focusNodes[event.target.nodeName];isFocusNode||this.focus()},proto._pointerDownPreventDefault=function(event){var isTouchStart=event.type=="touchstart",isTouchPointer=event.pointerType=="touch",isFocusNode=focusNodes[event.target.nodeName];!isTouchStart&&!isTouchPointer&&!isFocusNode&&event.preventDefault()},proto.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>this.options.dragThreshold},proto.pointerUp=function(event,pointer){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",event,[pointer]),this._dragPointerUp(event,pointer)},proto.pointerDone=function(){window2.removeEventListener("scroll",this),delete this.pointerDownScroll},proto.dragStart=function(event,pointer){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),window2.removeEventListener("scroll",this),this.dispatchEvent("dragStart",event,[pointer]))},proto.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.dispatchEvent("pointerMove",event,[pointer,moveVector]),this._dragMove(event,pointer,moveVector)},proto.dragMove=function(event,pointer,moveVector){if(this.isDraggable){event.preventDefault(),this.previousDragX=this.dragX;var direction=this.options.rightToLeft?-1:1;this.options.wrapAround&&(moveVector.x=moveVector.x%this.slideableWidth);var dragX=this.dragStartPosition+moveVector.x*direction;if(!this.options.wrapAround&&this.slides.length){var originBound=Math.max(-this.slides[0].target,this.dragStartPosition);dragX=dragX>originBound?(dragX+originBound)*.5:dragX;var endBound=Math.min(-this.getLastSlide().target,this.dragStartPosition);dragX=dragX<endBound?(dragX+endBound)*.5:dragX}this.dragX=dragX,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",event,[pointer,moveVector])}},proto.dragEnd=function(event,pointer){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var index=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var restingX=this.getRestingPosition();this.isFreeScrolling=-restingX>this.slides[0].target&&-restingX<this.getLastSlide().target}else!this.options.freeScroll&&index==this.selectedIndex&&(index+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(index),delete this.isDragSelect,this.dispatchEvent("dragEnd",event,[pointer])}},proto.dragEndRestingSelect=function(){var restingX=this.getRestingPosition(),distance=Math.abs(this.getSlideDistance(-restingX,this.selectedIndex)),positiveResting=this._getClosestResting(restingX,distance,1),negativeResting=this._getClosestResting(restingX,distance,-1),index=
61positiveResting.distance<negativeResting.distance?positiveResting.index:negativeResting.index;return index},proto._getClosestResting=function(restingX,distance,increment){for(var index=this.selectedIndex,minDistance=1/0,condition=this.options.contain&&!this.options.wrapAround?function(d,md){return d<=md}:function(d,md){return d<md};condition(distance,minDistance)&&(index+=increment,minDistance=distance,distance=this.getSlideDistance(-restingX,index),distance!==null);)distance=Math.abs(distance);return{distance:minDistance,index:index-increment}},proto.getSlideDistance=function(x,index){var len=this.slides.length,isWrapAround=this.options.wrapAround&&len>1,slideIndex=isWrapAround?utils2.modulo(index,len):index,slide2=this.slides[slideIndex];if(!slide2)return null;var wrap=isWrapAround?this.slideableWidth*Math.floor(index/len):0;return x-(slide2.target+wrap)},proto.dragEndBoostSelect=function(){if(this.previousDragX===void 0||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var distance=this.getSlideDistance(-this.dragX,this.selectedIndex),delta=this.previousDragX-this.dragX;return distance>0&&delta>0?1:distance<0&&delta<0?-1:0},proto.staticClick=function(event,pointer){var clickedCell=this.getParentCell(event.target),cellElem=clickedCell&&clickedCell.element,cellIndex=clickedCell&&this.cells.indexOf(clickedCell);this.dispatchEvent("staticClick",event,[pointer,cellElem,cellIndex])},proto.onscroll=function(){var scroll=getScrollPosition(),scrollMoveX=this.pointerDownScroll.x-scroll.x,scrollMoveY=this.pointerDownScroll.y-scroll.y;(Math.abs(scrollMoveX)>3||Math.abs(scrollMoveY)>3)&&this._pointerDone()};function getScrollPosition(){return{x:window2.pageXOffset,y:window2.pageYOffset}}return Flickity})}),prevNextButton=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,flickity,unipointer,utils):factory(window2,window2.Flickity,window2.Unipointer,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unipointer,utils2){var svgURI="http://www.w3.org/2000/svg";function PrevNextButton(direction,parent){this.direction=direction,this.parent=parent,this._create()}PrevNextButton.prototype=Object.create(Unipointer.prototype),PrevNextButton.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var leftDirection=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==leftDirection;var element=this.element=document.createElement("button");element.className="flickity-button flickity-prev-next-button",element.className+=this.isPrevious?" previous":" next",element.setAttribute("type","button"),this.disable(),element.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var svg=this.createSVG();element.appendChild(svg),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},PrevNextButton.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},PrevNextButton.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},PrevNextButton.prototype.createSVG=function(){var svg=document.createElementNS(svgURI,"svg");svg.setAttribute("class","flickity-button-icon"),svg.setAttribute("viewBox","0 0 100 100");var path=document.createElementNS(svgURI,"path"),pathMovements=getArrowMovements(this.parent.options.arrowShape);return path.setAttribute("d",pathMovements),path.setAttribute("class","arrow"),this.isLeft||path.setAttribute("transform","translate(100, 100) rotate(180) "),svg.appendChild(path),svg};function getArrowMovements(shape){return typeof shape=="string"?shape:"M "+shape.x0+",50 L "+shape.x1+","+(shape.y1+50)+" L "+shape.x2+","+(shape.y2+50)+" L "+shape.x3+",50  L "+shape.x2+","+(50-shape.y2)+" L "+shape.x1+","+(50-shape.y1)+" Z"}PrevNextButton.prototype.handleEvent=utils2.handleEvent,PrevNextButton.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var method=this.isPrevious?"previous":"next";this.parent[method]()}},PrevNextButton.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},PrevNextButton.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},PrevNextButton.prototype.update=function(){var slides=this.parent.slides;if(this.parent.options.wrapAround&&slides.length>1){this.enable();return}
61var lastIndex=slides.length?slides.length-1:0,boundIndex=this.isPrevious?0:lastIndex,method=this.parent.selectedIndex==boundIndex?"disable":"enable";this[method]()},PrevNextButton.prototype.destroy=function(){this.deactivate(),this.allOff()},utils2.extend(Flickity.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),Flickity.createMethods.push("_createPrevNextButtons");var proto=Flickity.prototype;return proto._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new PrevNextButton(-1,this),this.nextButton=new PrevNextButton(1,this),this.on("activate",this.activatePrevNextButtons))},proto.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},proto.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},Flickity.PrevNextButton=PrevNextButton,Flickity})}),pageDots=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,flickity,unipointer,utils):factory(window2,window2.Flickity,window2.Unipointer,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unipointer,utils2){function PageDots(parent){this.parent=parent,this._create()}PageDots.prototype=Object.create(Unipointer.prototype),PageDots.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},PageDots.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},PageDots.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},PageDots.prototype.setDots=function(){var delta=this.parent.slides.length-this.dots.length;delta>0?this.addDots(delta):delta<0&&this.removeDots(-delta)},PageDots.prototype.addDots=function(count){for(var fragment=document.createDocumentFragment(),newDots=[],length=this.dots.length,max=length+count,i=length;i<max;i++){var dot=document.createElement("li");dot.className="dot",dot.setAttribute("aria-label","Page dot "+(i+1)),fragment.appendChild(dot),newDots.push(dot)}this.holder.appendChild(fragment),this.dots=this.dots.concat(newDots)},PageDots.prototype.removeDots=function(count){var removeDots=this.dots.splice(this.dots.length-count,count);removeDots.forEach(function(dot){this.holder.removeChild(dot)},this)},PageDots.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},PageDots.prototype.onTap=PageDots.prototype.onClick=function(event){var target=event.target;if(target.nodeName=="LI"){this.parent.uiChange();var index=this.dots.indexOf(target);this.parent.select(index)}},PageDots.prototype.destroy=function(){this.deactivate(),this.allOff()},Flickity.PageDots=PageDots,utils2.extend(Flickity.defaults,{pageDots:!0}),Flickity.createMethods.push("_createPageDots");var proto=Flickity.prototype;return proto._createPageDots=function(){this.options.pageDots&&(this.pageDots=new PageDots(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},proto.activatePageDots=function(){this.pageDots.activate()},proto.updateSelectedPageDots=function(){this.pageDots.updateSelected()},proto.updatePageDots=function(){this.pageDots.setDots()},proto.deactivatePageDots=function(){this.pageDots.deactivate()},Flickity.PageDots=PageDots,Flickity})}),player=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(evEmitter,utils,flickity):factory(window2.EvEmitter,window2.fizzyUIUtils,window2.Flickity)})(window,function(EvEmitter,utils2,Flickity){function Player(parent){this.parent=parent,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}Player.prototype=Object.create(EvEmitter.prototype),Player.prototype.play=function(){if(this.state!="playing"){var isPageHidden=document.hidden;if(isPageHidden){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},Player.prototype.tick=function(){if(this.state=="playing"){var time=this.parent.options.autoPlay;time=typeof time=="number"?time:3e3;var _this=this;this.clear(),this.timeout=setTimeout(function(){_this.parent.next(!0),_this.tick()},time)}},Player.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},Player.prototype.clear=function(){clearTimeout(this.timeout)},Player.prototype.pause=function(){this.state=="playing"&&(this.state="paused",this.clear())},Player.prototype.unpause=function(){this.state=="paused"&&this.play()},Player.prototype.visibilityChange=function(){var isPageHidden=document.hidden;this[isPageHidden?"pause":"unpause"]()},Player.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},utils2.extend(Flickity.defaults,{pauseAutoPlayOnHover:!0}),Flickity.createMethods.push("_createPlayer");var proto=Flickity.prototype;return proto._createPlayer=function(){this.player=new Player(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},proto.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},proto.playPlayer=function(){this.player.play()},proto.stopPlayer=function(){this.player.stop()},proto.pausePlayer=function(){this.player.pause()},proto.unpausePlayer=function(){this.player.unpause()},proto.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},proto.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},proto.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},Flickity.Player=Player,Flickity})}),addRemoveCell=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,flickity,utils):factory(window2,window2.Flickity,window2.fizzyUIUtils)})(window,function(window2,Flickity,utils2){function getCellsFragment(cells){var fragment=document.createDocumentFragment();
61return cells.forEach(function(cell2){fragment.appendChild(cell2.element)}),fragment}var proto=Flickity.prototype;return proto.insert=function(elems,index){var cells=this._makeCells(elems);if(!(!cells||!cells.length)){var len=this.cells.length;index=index===void 0?len:index;var fragment=getCellsFragment(cells),isAppend=index==len;if(isAppend)this.slider.appendChild(fragment);else{var insertCellElement=this.cells[index].element;this.slider.insertBefore(fragment,insertCellElement)}if(index===0)this.cells=cells.concat(this.cells);else if(isAppend)this.cells=this.cells.concat(cells);else{var endCells=this.cells.splice(index,len-index);this.cells=this.cells.concat(cells).concat(endCells)}this._sizeCells(cells),this.cellChange(index,!0)}},proto.append=function(elems){this.insert(elems,this.cells.length)},proto.prepend=function(elems){this.insert(elems,0)},proto.remove=function(elems){var cells=this.getCells(elems);if(!(!cells||!cells.length)){var minCellIndex=this.cells.length-1;cells.forEach(function(cell2){cell2.remove();var index=this.cells.indexOf(cell2);minCellIndex=Math.min(index,minCellIndex),utils2.removeFrom(this.cells,cell2)},this),this.cellChange(minCellIndex,!0)}},proto.cellSizeChange=function(elem){var cell2=this.getCell(elem);if(cell2){cell2.getSize();var index=this.cells.indexOf(cell2);this.cellChange(index)}},proto.cellChange=function(changedCellIndex,isPositioningSlider){var prevSelectedElem=this.selectedElement;this._positionCells(changedCellIndex),this._getWrapShiftCells(),this.setGallerySize();var cell2=this.getCell(prevSelectedElem);cell2&&(this.selectedIndex=this.getCellSlideIndex(cell2)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[changedCellIndex]),this.select(this.selectedIndex),isPositioningSlider&&this.positionSliderAtSelected()},Flickity})}),lazyload=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,flickity,utils):factory(window2,window2.Flickity,window2.fizzyUIUtils)})(window,function(window2,Flickity,utils2){Flickity.createMethods.push("_createLazyload");var proto=Flickity.prototype;proto._createLazyload=function(){this.on("select",this.lazyLoad)},proto.lazyLoad=function(){var lazyLoad=this.options.lazyLoad;if(lazyLoad){var adjCount=typeof lazyLoad=="number"?lazyLoad:0,cellElems=this.getAdjacentCellElements(adjCount),lazyImages=[];
61cellElems.forEach(function(cellElem){var lazyCellImages=getCellLazyImages(cellElem);lazyImages=lazyImages.concat(lazyCellImages)}),lazyImages.forEach(function(img){new LazyLoader2(img,this)},this)}};function getCellLazyImages(cellElem){if(cellElem.nodeName=="IMG"){var lazyloadAttr=cellElem.getAttribute("data-flickity-lazyload"),srcAttr=cellElem.getAttribute("data-flickity-lazyload-src"),srcsetAttr=cellElem.getAttribute("data-flickity-lazyload-srcset");if(lazyloadAttr||srcAttr||srcsetAttr)return[cellElem]}var lazySelector="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",imgs=cellElem.querySelectorAll(lazySelector);return utils2.makeArray(imgs)}function LazyLoader2(img,flickity2){this.img=img,this.flickity=flickity2,this.load()}return LazyLoader2.prototype.handleEvent=utils2.handleEvent,LazyLoader2.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var src=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),srcset=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=src,srcset&&this.img.setAttribute("srcset",srcset),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},LazyLoader2.prototype.onload=function(event){this.complete(event,"flickity-lazyloaded")},LazyLoader2.prototype.onerror=function(event){this.complete(event,"flickity-lazyerror")},LazyLoader2.prototype.complete=function(event,className){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var cell2=this.flickity.getParentCell(this.img),cellElem=cell2&&cell2.element;this.flickity.cellSizeChange(cellElem),this.img.classList.add(className),this.flickity.dispatchEvent("lazyLoad",event,cellElem)},Flickity.LazyLoader=LazyLoader2,Flickity})}),js=createCommonjsModule(function(module){/*!
62 * Flickity v2.2.1
63 * Touch, responsive, flickable carousels
64 *
65 * Licensed GPLv3 for open source use
66 * or Flickity Commercial License for commercial use
67 *
68 * https://flickity.metafizzy.co
69 * Copyright 2015-2019 Metafizzy
70 */(function(window2,factory){module.exports&&(module.exports=factory(flickity,drag,prevNextButton,pageDots,player,addRemoveCell,lazyload))})(window,function(Flickity){return Flickity})}),flickityFade=createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(js,utils):factory(window2.Flickity,window2.fizzyUIUtils)})(commonjsGlobal,function(Flickity,utils2){var Slide=Flickity.Slide,slideUpdateTarget=Slide.prototype.updateTarget;Slide.prototype.updateTarget=function(){if(slideUpdateTarget.apply(this,arguments),!!this.parent.options.fade){var slideTargetX=this.target-this.x,firstCellX=this.cells[0].x;this.cells.forEach(function(cell2){var targetX=cell2.x-firstCellX-slideTargetX;cell2.renderPosition(targetX)})}},Slide.prototype.setOpacity=function(alpha){this.cells.forEach(function(cell2){cell2.element.style.opacity=alpha})};var proto=Flickity.prototype;Flickity.createMethods.push("_createFade"),proto._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var updateSlides=proto.updateSlides;proto.updateSlides=function(){updateSlides.apply(this,arguments),this.options.fade&&this.slides.forEach(function(slide2,i){var alpha=i==this.selectedIndex?1:0;slide2.setOpacity(alpha)},this)},proto.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},proto.onSettleFade=function(){if(delete this.didDragEnd,!!this.options.fade){this.selectedSlide.setOpacity(1);var fadedSlide=this.slides[this.fadeIndex];fadedSlide&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0)}},proto.onDragEndFade=function(){this.didDragEnd=!0},proto.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},proto.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEac
70h(function(slide2){slide2.setOpacity("")}))};var positionSlider=proto.positionSlider;proto.positionSlider=function(){if(!this.options.fade){positionSlider.apply(this,arguments);return}this.fadeSlides(),this.dispatchScrollEvent()};var positionSliderAtSelected=proto.positionSliderAtSelected;proto.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),positionSliderAtSelected.apply(this,arguments)},proto.fadeSlides=function(){if(!(this.slides.length<2)){var indexes=this.getFadeIndexes(),fadeSlideA=this.slides[indexes.a],fadeSlideB=this.slides[indexes.b],distance=this.wrapDifference(fadeSlideA.target,fadeSlideB.target),progress=this.wrapDifference(fadeSlideA.target,-this.x);progress=progress/distance,fadeSlideA.setOpacity(1-progress),fadeSlideB.setOpacity(progress);var fadeHideIndex=indexes.a;this.isDragging&&(fadeHideIndex=progress>.5?indexes.a:indexes.b);var isNewHideIndex=this.fadeHideIndex!=null&&this.fadeHideIndex!=fadeHideIndex&&this.fadeHideIndex!=indexes.a&&this.fadeHideIndex!=indexes.b;isNewHideIndex&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=fadeHideIndex}},proto.getFadeIndexes=function(){return!this.isDragging&&!this.didDragEnd?{a:this.fadeIndex,b:this.selectedIndex}:this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes()},proto.getFadeDragWrapIndexes=function(){var distances=this.slides.map(function(slide2,i){return this.getSlideDistance(-this.x,i)},this),absDistances=distances.map(function(distance2){return Math.abs(distance2)}),minDistance=Math.min.apply(Math,absDistances),closestIndex=absDistances.indexOf(minDistance),distance=distances[closestIndex],len=this.slides.length,delta=distance>=0?1:-1;return{a:closestIndex,b:utils2.modulo(closestIndex+delta,len)}},proto.getFadeDragLimitIndexes=function(){for(var dragIndex=0,i=0;i<this.slides.length-1;i++){var slide2=this.slides[i];if(-this.x<slide2.target)break;dragIndex=i}return{a:dragIndex,b:dragIndex+1}},proto.wrapDifference=function(a,b){var diff=b-a;if(!this.options.wrapAround)return diff;var diffPlus=diff+this.slideableWidth,diffMinus=diff-this.slideableWidth;return Math.abs(diffPlus)<Math.abs(diff)&&(diff=diffPlus),Math.abs(diffMinus)<Math.abs(diff)&&(diff=diffMinus),diff};var _getWrapShiftCells=proto._getWrapShiftCells;proto._getWrapShiftCells=function(){this.options.fade||_getWrapShiftCells.apply(this,arguments)};var shiftWrapCells=proto.shiftWrapCells;return proto.shiftWrapCells=function(){this.options.fade||shiftWrapCells.apply(this,arguments)},Flickity})}),EventHandler_1=createCommonjsModule(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEach(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),EventHandler=unwrapExports(EventHandler_1),Slideshow=(function(){function Slideshow2(section){var _this=this;if(index_es_classCallCheck(this,Slideshow2),this.el=section.el,this.settings=section.data,this.paginationClicked=!1,this.events=new EventHandler,this.slideshowContainer=this.el.querySelector("[data-slideshow]"),this.carousel=this.el.querySelector("[data-slideshow-wrapper]"),this.slides=this.el.querySelectorAll("[data-slideshow-slide]"),this.pagination=this.el.querySelector("[data-slideshow-pagination]"),this.paginationButtons=this.pagination?this.pagination.querySelectorAll("[data-slide-button]"):null,this.counter=this.el.querySelector("[data-slide-counter]"),this.el.style.setProperty("--slide-text-color","".concat(this.slides[0].dataset.textColor)),this.carousel&&this.slides.length>1&&(this.flickity=new flickityFade(this.carousel,{accessibility:!1,adaptiveHeight:!0,autoPlay:this.settings.enable_autoplay?this.settings.autoplay_interval*1e3:!1,cellAlign:"left",cellSelector:"[data-sli
70deshow-slide]",contain:!0,fade:this.settings.transition_fade,imagesLoaded:!0,pageDots:this.settings.show_pagination,pauseAutoPlayOnHover:!0,selectedAttraction:this.settings.slide_attraction?parseFloat(this.settings.slide_attraction):.03,friction:this.settings.slide_friction?parseFloat(this.settings.slide_friction):.3,wrapAround:!0,arrowShape:{x0:10,x1:60,y1:50,x2:65,y2:45,x3:20}}),this.prevNextButtons=this.el.querySelectorAll(".flickity-prev-next-button"),this.prevNextButtons.length===2&&(this.prevNextButtons[0].setAttribute("aria-label",this.settings.previous_text),this.prevNextButtons[1].setAttribute("aria-label",this.settings.next_text)),this._updateTabindex(),this._positionNavigation(),this._updateCounter(1),this.flickity.on("change",function(index){_this.el.style.setProperty("--slide-text-color","".concat(_this.slides[index].dataset.textColor)),_this._updatePagination(),_this._positionNavigation(),_this._updateTabindex(),_this._updateCounter(index+1)}),this.flickity.on("pointerDown",function(){_this.slideshowContainer.setAttribute("data-flickity-paused",!0),_this.flickity.pausePlayer()}),this.events.register(this.carousel,"rimg:load",function(){_this.flickity.resize(),_this._positionNavigation()}),this.events.register(this.carousel,"focusin",function(){_this.slideshowContainer.setAttribute("data-flickity-paused",!0),_this.flickity.pausePlayer()}),this.events.register(window,"resize",function(){_this._positionNavigation()}),this.flickity.on("settle",function(index){_this.paginationClicked&&(_this.slides[index].focus(),_this.paginationClicked=!1)}),this.pagination))for(var _loop=function(i2){_this.events.register(_this.paginationButtons[i2],"click",function(){var index=parseInt(_this.paginationButtons[i2].dataset.slideButton,10);_this.flickity.pausePlayer(),_this.slideshowContainer.setAttribute("data-flickity-paused",!0),_this.flickity.select(index,!0,!1),_this.paginationClicked=!0})},i=0;i<this.paginationButtons.length;i++)_loop(i)}return index_es_createClass(Slideshow2,[{key:"_updatePagination",value:function(){if(this.pagination){for(var i=0;i<this.paginationButtons.length;i++)this.paginationButtons[i].dataset.selected="false",this.paginationButtons[i].setAttribute("aria-selected","false");this.paginationButtons[this.flickity.selectedIndex].dataset.selected="true",this.paginationButtons[this.flickity.selectedIndex].setAttribute("aria-selected","true")}}},{key:"_positionNavigation",value:function(){if(this.settings.mobile_navigation_adjust){var arrowButtons=this.el.querySelectorAll(".flickity-prev-next-button"),currentSlideheight=this.flickity.selectedElement.querySelector("[data-slide-image-wrapper]").offsetHeight;if(arrowButtons){var top="50%";this.viewportIsMobile()&&(top="".concat(currentSlideheight/2,"px")),arrowButtons[0].style.top=top,arrowButtons[1].style.top=top}if(this.pagination){var _top="auto";if(this.viewportIsMobile()){var content=this.flickity.selectedElement.querySelector("[data-slide-content]");if(content)_top="".concat(currentSlideheight,"px");else{var paginationHeight=this.pagination.offsetHeight;_top="".concat(currentSlideheight-paginationHeight,"px")}}this.pagination.style.top=_top}}}},{key:"_updateTabindex",value:function(){for(var i=0;i<this.slides.length;i++)for(var links=this.slides[i].querySelectorAll("a"),j=0;j<links.length;j++)links[j].setAttribute("tabindex",i===this.flickity.selectedIndex?"0":"-1")}},{key:"_updateCounter",value:function(index){var counterText=this.counter.dataset.counterTemplate.replace("{{ count }}",index).replace("{{ total }}",this.slides.length);this.counter.innerHTML=counterText}},{key:"viewportIsMobile",value:function(){return window.innerWidth<720}},{key:"onSectionUnload",value:function(){this.events.unregisterAll(),this.flickity.destroy()}},{key:"onSectionBlockSelect",value:function(e){var slideIndex=e.el.dataset.slideIndex;this.flickity.select(slideIndex),this.flickity.pausePlayer(),this.flickity.resize()}},{key:"onSectionBlockDeselect",value:function(){this.settings.enable_autoplay&&this.flickity.playPlayer()}}]),Slideshow2})();const dist_index_es=Slideshow;/*!
71 * @pixelunion/pxs-video v2.0.0
72 * (c) 2023 Pixel Union
73 */function dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&dist_index_es_defineProperties(Constructor,staticProps),Constructor}function index_es_createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var index_es_script=index_es_createCommonjsModule(function(module){/*!
74  * $script.js JS loader & dependency manager
75  * https://github.com/ded/script.js
76  * (c) Dustin Diaz 2014 | License MIT
77  */(function(name,definition){module.exports?module.exports=definition():this[name]=definition()})("$script",function(){var doc2=document,head=doc2.getElementsByTagName("head")[0],f=!1,push="push",readyState="readyState",onreadystatechange="onreadystatechange",list={},delay={},scripts={},scriptpath,urlArgs;function every(ar,fn){for(var i=0,j=ar.length;i<j;++i)if(!fn(ar[i]))return f;return 1}function each(ar,fn){every(ar,function(el){return fn(el),1})}function $script(paths,idOrDone,optDone){paths=paths[push]?paths:[paths];var idOrDoneIsDone=idOrDone&&idOrDone.call,done=idOrDoneIsDone?idOrDone:optDone,id=idOrDoneIsDone?paths.join(""):idOrDone,queue=paths.length;function loopFn(item){return item.call?item():list[item]}function callback(){if(!--queue){list[id]=1,done&&done();for(var dset in delay)every(dset.split("|"),loopFn)&&!each(delay[dset],loopFn)&&(delay[dset]=[])}}return setTimeout(function(){each(paths,function loading(path,force){if(path===null)return callback();if(!force&&!/^https?:\/\//.test(path)&&scriptpath&&(path=path.indexOf(".js")===-1?scriptpath+path+".js":scriptpath+p
77ath),scripts[path])return scripts[path]==2?callback():setTimeout(function(){loading(path,!0)},0);scripts[path]=1,create(path,callback)})},0),$script}function create(path,fn){var el=doc2.createElement("script"),loaded;el.onload=el.onerror=el[onreadystatechange]=function(){el[readyState]&&!/^c|loade/.test(el[readyState])||loaded||(el.onload=el[onreadystatechange]=null,loaded=1,scripts[path]=2,fn())},el.async=1,el.src=urlArgs?path+(path.indexOf("?")===-1?"?":"&")+urlArgs:path,head.insertBefore(el,head.lastChild)}return $script.get=create,$script.order=function(scripts2,id,done){(function callback(s){s=scripts2.shift(),scripts2.length?$script(s,callback):$script(s,id,done)})()},$script.path=function(p){scriptpath=p},$script.urlArgs=function(str){urlArgs=str},$script.ready=function(deps,ready,req){deps=deps[push]?deps:[deps];var missing=[];return!each(deps,function(dep){list[dep]||missing[push](dep)})&&every(deps,function(dep){return list[dep]})?ready():(function(key){delay[key]=delay[key]||[],delay[key][push](ready),req&&req(missing)})(deps.join("|")),$script},$script.done=function(idOrDone){$script([null],idOrDone)},$script})}),api="https://www.youtube.com/iframe_api",apiLoadedCallbacks=[],apiLoaded=!1;window.onYouTubeIframeAPIReady=function(){apiLoadedCallbacks.forEach(function(apiLoadedCallback){return apiLoadedCallback()}),apiLoadedCallbacks=[],apiLoaded=!0};var Youtube=(function(){function Youtube2(el,id,options){dist_index_es_classCallCheck(this,Youtube2),this.el=el,this.id=id,this.startMuted=options.startMuted,this.loopVideo=options.loopVideo,this.iframeEl=document.createElement("div"),this.el.appendChild(this.iframeEl),this.onApiLoaded=this._onApiLoaded.bind(this),this.isReady=!1,this.onReady=this._onReady.bind(this),this.onReadyCallback=null,this.playerState=null,this.onStateChange=this._onStateChange.bind(this),this.onPlayCallback=null,this.onPlayError=null,apiLoaded?this._onApiLoaded():(apiLoadedCallbacks.push(this.onApiLoaded),index_es_script(api))}return dist_index_es_createClass(Youtube2,[{key:"play",value:function(){var _this=this;return new Promise(function(resolve,reject){_this.onPlayCallback=resolve,_this.onPlayError=reject,_this.isReady?_this.player.playVideo():_this.onReadyCallback=function(){_this.player.playVideo()}})}},{key:"pause",value:function(){this.player.pauseVideo()}},{key:"unload",value:function(){this.player.destroy()}},{key:"_onApiLoaded",value:function(){var playerVars={modestbranding:!0,showinfo:!1,controls:!1,loop:this.loopVideo,mute:this.startMuted,rel:0};this.loopVideo&&(playerVars.playlist=this.id),this.player=new YT.Player(this.iframeEl,{videoId:this.id,playerVars,events:{onReady:this.onReady,onStateChange:this.onStateChange}})}},{key:"_onReady",value:function(){this.isReady=!0,this.onReadyCallback&&this.onReadyCallback()}},{key:"_onStateChange",value:function(event){var state2=event.data;this.onPlayCallback&&(state2===YT.PlayerState.PLAYING?(this.onPlayCallback(),this.onPlayCallback=null,this.onPlayError=null):this.playerState===YT.PlayerState.BUFFERING&&(state2===YT.PlayerState.UNSTARTED||state2===YT.PlayerState.PAUSED)&&(this.onPlayError(),this.onPlayCallback=null,this.onPlayError=null)),this.playerState=state2}}]),Youtube2})(),api$1="https://player.vimeo.com/api/player.js",thumbnailApi="http://vimeo.com/api/v2/video/{id}.json",apiLoaded$1=!1,VimeoPlayer=(function(){function VimeoPlayer2(section,el,id,options){var _this=this;dist_index_es_classCallCheck(this,VimeoPlayer2),this.section=section,this.el=el,this.id=id,this.startMuted=options.startMuted,this.loopVideo=options.loopVideo,this.coverImage=this.section.querySelector("[data-vimeo-image]"),this.onApiLoaded=this._onApiLoaded.bind(this),this.isReady=!1,this.onReady=this._onReady.bind(this),this.onReadyCallback=null,this.onPlayCallback=null,this.startedPlaying=!1,this.onProgress=this._onProgress.bind(this),apiLoaded$1?this._onApiLoaded():index_es_script(api$1,this.onApiLoaded),this.coverImage&&fetch(thumbnailApi.replace("{id}",this.id)).then(function(response){return response.json()}).then(function(data){_this.coverImage.setAttribute("src",data[0].thumbnail_large)})}return dist_index_es_createClass(VimeoPlayer2,[{key:"play",value:function(){var _this2=this;return new Promise(function(resolve,reject){_this2.onPlayCallback=resolve,_this2.onPlayError=reject,_this2.isReady?_this2.player.play().then(function(){_this2.player.on("progress",_this2.onProgress)}).catch(function(error){_this2.player.off("progress",_this2.onProgress),_this2.onPlayError()}):_this2.onReadyCallback=function(){_this2.player.play().then(function(){_this2.player.on("progress",_this2.onProgress)}).catch(function(error){_this2.player.off("progress",_this2.onProgress),_this2.onPlayError()})}})}},{key:"pause",value:function(){this.player.pause().catch()}},{key:"unload",value:function(){this.player.unload().catch()}},{key:"_onApiLoaded",value:function(){var _this3=this;this.player=new window.Vimeo.Player(this.el,{id:this.id,muted:this.startMuted,loop:this.loopVideo}),this.player.ready().then(function(){_this3._onReady()}).catch(function(){_this3.onPlayError()}),apiLoaded$1=!0}},{key:"_onReady",value:function(){this.isReady=!0,this.onReadyCallback&&this.onReadyCallback()}},{key:"_onProgress",value:function(){this.startedPlaying=!0,this.player.off("progress",this.onProgress),this.onPlayCallback&&(this.onPlayCallback(),this.onPlayCallback=null)}}]),VimeoPlayer2})(),loadPlyrStyles=null,HTML5Video=(function(){function HTML5Video2(section,el,options){var _this=this;dist_index_es_classCallCheck(this,HTML5Video2),this.section=section,this.videoElement=el.querySelector("[data-html5-video]"),this.startMuted=options.startMuted,this.loopVideo=options.loopVideo,this.aspectRatio=options.aspectRatio,this.setupVideo=this.setupVideo.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.unload=this.unload.bind(this),loadPlyrStyles instanceof Promise||(loadPlyrStyles=new Promise(function(resolve){var stylesheet=document.createElement("link");stylesheet.setAttribute("rel","stylesheet"),stylesheet.href="https://cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.css",stylesheet.onload=resolve,document.body.appendChild(stylesheet)}
77)),window.Shopify.loadFeatures([{name:"video-ui",version:"1.0",onLoad:function(){return loadPlyrStyles.then(function(){return _this.setupVideo()})}}])}return dist_index_es_createClass(HTML5Video2,[{key:"setupVideo",value:function(){Shopify.Plyr&&(this.player=new Shopify.Plyr(this.videoElement,{muted:this.startMuted,loop:{active:this.loopVideo},ratio:this.aspectRatio}))}},{key:"play",value:function(){var _this2=this;return new Promise(function(resolve,reject){_this2.player&&(_this2.player.play(),resolve())})}},{key:"pause",value:function(){this.player.pause()}},{key:"unload",value:function(){this.player&&this.player.destroy()}}]),HTML5Video2})(),Video=(function(){function Video2(section){var _this=this;dist_index_es_classCallCheck(this,Video2),this.el=section.el,this.settings=section.data,this.playButton=this.el.querySelector("[data-video-play-button]"),this.videoEl=this.el.querySelector("[data-video]"),this.video=null,this.playButtonClicked=!1;var autoplay=this.settings.autoplay||!1,startMuted=this.settings.startMuted!=null?this.settings.startMuted:!0,loopVideo=this.settings.loopVideo||!1,aspectRatio=this.settings.aspectRatio,type=this.videoEl.getAttribute("data-video"),id=this.videoEl.getAttribute("data-video-id");switch(type){case"youtube":this.video=new Youtube(this.videoEl,id,{startMuted,loopVideo});break;case"vimeo":this.video=new VimeoPlayer(this.el,this.videoEl,id,{startMuted,loopVideo});break;case"html5":this.video=new HTML5Video(this.el,this.videoEl,{startMuted,loopVideo,aspectRatio});break;default:this.video=null;break}this._play=this._play.bind(this),this.playButton&&(this.onPlayButtonClick=function(){_this.playButtonClicked=!0,_this._play()},this.playButton.addEventListener("click",this.onPlayButtonClick)),!this.viewportIsMobile()&&autoplay&&(this.observer=new IntersectionObserver(function(entries){var isIntersecting=entries[0].isIntersecting;isIntersecting&&(_this._play(),_this.observer.unobserve(_this.videoEl))}),this.observer.observe(this.videoEl))}return dist_index_es_createClass(Video2,[{key:"_play",value:function(){var _this2=this;this.el.dataset.videoLoading=!0,this.video.play().then(function(){_this2.el.dataset.videoTransitioning=!0,setTimeout(function(){_this2.el.dataset.videoLoading=!1,_this2.el.dataset.videoTransitioning=!1,_this2.el.dataset.videoPlaying=!0,_this2.playButtonClicked&&_this2.videoEl.focus()},200)}).catch(function(){_this2.video.pause(),_this2.el.dataset.videoLoading=!1,_this2.el.dataset.videoPlaying=!1})}},{key:"viewportIsMobile",value:function(){return window.innerWidth<720}},{key:"onSectionUnload",value:function(){this.playButton&&this.playButton.removeEventListener("click",this.onPlayClick),this.video&&this.video.unload()}}]),Video2})();const pxs_video_dist_index_es=Video;/*!
78 * @pixelunion/pxs-testimonials v2.0.0
79 * (c) 2023 Pixel Union
80 */function pxs_testimonials_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function pxs_testimonials_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function pxs_testimonials_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&pxs_testimonials_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&pxs_testimonials_dist_index_es_defineProperties(Constructor,staticProps),Constructor}var index_es_commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:{};function index_es_unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function dist_index_es_createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var index_es_evEmitter=dist_index_es_createCommonjsModule(function(module){(function(global,factory){module.exports?module.exports=factory():global.EvEmitter=factory()})(typeof window<"u"?window:index_es_commonjsGlobal,function(){function EvEmitter(){}var proto=EvEmitter.prototype;return proto.on=function(eventName,listener){if(!(!eventName||!listener)){var events=this._events=this._events||{},listeners=events[eventName]=events[eventName]||[];return listeners.indexOf(listener)==-1&&listeners.push(listener),this}},proto.once=function(eventName,listener){if(!(!eventName||!listener)){this.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{}
80,onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};return onceListeners[listener]=!0,this}},proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(!(!listeners||!listeners.length)){var index=listeners.indexOf(listener);return index!=-1&&listeners.splice(index,1),this}},proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(!(!listeners||!listeners.length)){listeners=listeners.slice(0),args=args||[];for(var onceListeners=this._onceEvents&&this._onceEvents[eventName],i=0;i<listeners.length;i++){var listener=listeners[i],isOnce=onceListeners&&onceListeners[listener];isOnce&&(this.off(eventName,listener),delete onceListeners[listener]),listener.apply(this,args)}return this}},proto.allOff=function(){delete this._events,delete this._onceEvents},EvEmitter})}),index_es_getSize=dist_index_es_createCommonjsModule(function(module){/*!
81 * getSize v2.0.3
82 * measure size of elements
83 * MIT license
84 */(function(window2,factory){module.exports?module.exports=factory():window2.getSize=factory()})(window,function(){function getStyleSize(value){var num=parseFloat(value),isValid=value.indexOf("%")==-1&&!isNaN(num);return isValid&&num}function noop2(){}var logError=typeof console>"u"?noop2:function(message){console.error(message)},measurements=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],measurementsLength=measurements.length;function getZeroSize(){for(var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<measurementsLength;i++){var measurement=measurements[i];size[measurement]=0}return size}function getStyle(elem){var style=getComputedStyle(elem);return style||logError("Style returned "+style+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),style}var isSetup=!1,isBoxSizeOuter;function setup(){if(!isSetup){isSetup=!0;var div=document.createElement("div");div.style.width="200px",div.style.padding="1px 2px 3px 4px",div.style.borderStyle="solid",div.style.borderWidth="1px 2px 3px 4px",div.style.boxSizing="border-box";var body2=document.body||document.documentElement;body2.appendChild(div);var style=getStyle(div);isBoxSizeOuter=Math.round(getStyleSize(style.width))==200,getSize2.isBoxSizeOuter=isBoxSizeOuter,body2.removeChild(div)}}function getSize2(elem){if(setup(),typeof elem=="string"&&(elem=document.querySelector(elem)),!(!elem||typeof elem!="object"||!elem.nodeType)){var style=getStyle(elem);if(style.display=="none")return getZeroSize();var size={};size.width=elem.offsetWidth,size.height=elem.offsetHeight;for(var isBorderBox=size.isBorderBox=style.boxSizing=="border-box",i=0;i<measurementsLength;i++){var measurement=measurements[i],value=style[measurement],num=parseFloat(value);size[measurement]=isNaN(num)?0:num}var paddingWidth=size.paddingLeft+size.paddingRight,paddingHeight=size.paddingTop+size.paddingBottom,marginWidth=size.marginLeft+size.marginRight,marginHeight=size.marginTop+size.marginBottom,borderWidth=size.borderLeftWidth+size.borderRightWidth,borderHeight=size.borderTopWidth+size.borderBottomWidth,isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter,styleWidth=getStyleSize(style.width);styleWidth!==!1&&(size.width=styleWidth+(isBorderBoxSizeOuter?0:paddingWidth+borderWidth));var styleHeight=getStyleSize(style.height);return styleHeight!==!1&&(size.height=styleHeight+(isBorderBoxSizeOuter?0:paddingHeight+borderHeight)),size.innerWidth=size.width-(paddingWidth+borderWidth),size.innerHeight=size.height-(paddingHeight+borderHeight),size.outerWidth=size.width+marginWidth,size.outerHeight=size.height+marginHeight,size}}return getSize2})}),index_es_matchesSelector=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory():window2.matchesSelector=factory()})(window,function(){var matchesMethod=(function(){var ElemProto=window.Element.prototype;if(ElemProto.matches)return"matches";if(ElemProto.matchesSelector)return"matchesSelector";for(var prefixes=["webkit","moz","ms","o"],i=0;i<prefixes.length;i++){var prefix=prefixes[i],method=prefix+"MatchesSelector";if(ElemProto[method])return method}})();return function(elem,selector){return elem[matchesMethod](selector)}})}),index_es_utils=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,index_es_matchesSelector):window2.fizzyUIUtils=factory(window2,window2.matchesSelector)})(window,function(window2,matchesSelector2){var utils2={};utils2.extend=function(a,b){for(var prop in b)a[prop]=b[prop];return a},utils2.modulo=function(num,div){return(num%div+div)%div};var arraySlice=Array.prototype.slice;
84utils2.makeArray=function(obj){if(Array.isArray(obj))return obj;if(obj==null)return[];var isArrayLike=typeof obj=="object"&&typeof obj.length=="number";return isArrayLike?arraySlice.call(obj):[obj]},utils2.removeFrom=function(ary,obj){var index=ary.indexOf(obj);index!=-1&&ary.splice(index,1)},utils2.getParent=function(elem,selector){for(;elem.parentNode&&elem!=document.body;)if(elem=elem.parentNode,matchesSelector2(elem,selector))return elem},utils2.getQueryElement=function(elem){return typeof elem=="string"?document.querySelector(elem):elem},utils2.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},utils2.filterFindElements=function(elems,selector){elems=utils2.makeArray(elems);var ffElems=[];return elems.forEach(function(elem){if(elem instanceof HTMLElement){if(!selector){ffElems.push(elem);return}matchesSelector2(elem,selector)&&ffElems.push(elem);for(var childElems=elem.querySelectorAll(selector),i=0;i<childElems.length;i++)ffElems.push(childElems[i])}}),ffElems},utils2.debounceMethod=function(_class,methodName,threshold){threshold=threshold||100;var method=_class.prototype[methodName],timeoutName=methodName+"Timeout";_class.prototype[methodName]=function(){var timeout=this[timeoutName];clearTimeout(timeout);var args=arguments,_this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args),delete _this[timeoutName]},threshold)}},utils2.docReady=function(callback){var readyState=document.readyState;readyState=="complete"||readyState=="interactive"?setTimeout(callback):document.addEventListener("DOMContentLoaded",callback)},utils2.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+"-"+$2}).toLowerCase()};var console2=window2.console;return utils2.htmlInit=function(WidgetClass,namespace){utils2.docReady(function(){var dashedNamespace=utils2.toDashed(namespace),dataAttr="data-"+dashedNamespace,dataAttrElems=document.querySelectorAll("["+dataAttr+"]"),jsDashElems=document.querySelectorAll(".js-"+dashedNamespace),elems=utils2.makeArray(dataAttrElems).concat(utils2.makeArray(jsDashElems)),dataOptionsAttr=dataAttr+"-options",jQuery2=window2.jQuery;elems.forEach(function(elem){var attr=elem.getAttribute(dataAttr)||elem.getAttribute(dataOptionsAttr),options;try{options=attr&&JSON.parse(attr)}catch(error){console2&&console2.error("Error parsing "+dataAttr+" on "+elem.className+": "+error);return}var instance=new WidgetClass(elem,options);jQuery2&&jQuery2.data(elem,namespace,instance)})})},utils2})}),index_es_cell=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,index_es_getSize):(window2.Flickity=window2.Flickity||{},window2.Flickity.Cell=factory(window2,window2.getSize))})(window,function(window2,getSize2){function Cell(elem,parent){this.element=elem,this.parent=parent,this.create()}var proto=Cell.prototype;return proto.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},proto.destroy=function(){this.unselect(),this.element.style.position="";var side=this.parent.originSide;this.element.style[side]="",this.element.removeAttribute("aria-hidden")},proto.getSize=function(){this.size=getSize2(this.element)},proto.setPosition=function(x){this.x=x,this.updateTarget(),this.renderPosition(x)},proto.updateTarget=proto.setDefaultTarget=function(){var marginProperty=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[marginProperty]+this.size.width*this.parent.cellAlign},proto.renderPosition=function(x){var side=this.parent.originSide;this.element.style[side]=this.parent.getPositionValue(x)},proto.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},proto.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},proto.wrapShift=function(shift){this.shift=shift,this.renderPosition(this.x+this.parent.slideableWidth*shift)},proto.remove=function(){this.element.parentNode.removeChild(this.element)},Cell})}),index_es_slide=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory():(window2.Flickity=window2.Flickity||{},window2.Flickity.Slide=factory())})(window,function(){function Slide(parent){this.parent=parent,this.isOriginLeft=parent.originSide=="left",this.cells=[],this.outerWidth=0,this.height=0}var proto=Slide.prototype;return proto.addCell=function(cell2){if(this.cells.push(cell2),this.outerWidth+=cell2.size.outerWidth,this.height=Math.max(cell2.size.outerHeight,this.height),this.cells.length==1){this.x=cell2.x;var beginMargin=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=cell2.size[beginMargin]}},proto.updateTarget=function(){var endMargin=this.isOriginLeft?"marginRight":"marginLeft",lastCell=this.getLastCell(),lastMargin=lastCell?lastCell.size[endMargin]:0,slideWidth=this.outerWidth-(this.firstMargin+lastMargin);this.target=this.x+this.firstMargin+slideWidth*this.parent.cellAlign},proto.getLastCell=function(){return this.cells[this.cells.length-1]}
84,proto.select=function(){this.cells.forEach(function(cell2){cell2.select()})},proto.unselect=function(){this.cells.forEach(function(cell2){cell2.unselect()})},proto.getCellElements=function(){return this.cells.map(function(cell2){return cell2.element})},Slide})}),index_es_animate=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,index_es_utils):(window2.Flickity=window2.Flickity||{},window2.Flickity.animatePrototype=factory(window2,window2.fizzyUIUtils))})(window,function(window2,utils2){var proto={};return proto.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},proto.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var previousX=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(previousX),this.isAnimating){var _this=this;requestAnimationFrame(function(){_this.animate()})}},proto.positionSlider=function(){var x=this.x;this.options.wrapAround&&this.cells.length>1&&(x=utils2.modulo(x,this.slideableWidth),x-=this.slideableWidth,this.shiftWrapCells(x)),this.setTranslateX(x,this.isAnimating),this.dispatchScrollEvent()},proto.setTranslateX=function(x,is3d){x+=this.cursorPosition,x=this.options.rightToLeft?-x:x;var translateX=this.getPositionValue(x);this.slider.style.transform=is3d?"translate3d("+translateX+",0,0)":"translateX("+translateX+")"},proto.dispatchScrollEvent=function(){var firstSlide=this.slides[0];if(firstSlide){var positionX=-this.x-firstSlide.target,progress=positionX/this.slidesWidth;this.dispatchEvent("scroll",null,[progress,positionX])}},proto.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},proto.getPositionValue=function(position){return this.options.percentPosition?Math.round(position/this.size.innerWidth*1e4)*.01+"%":Math.round(position)+"px"},proto.settle=function(previousX){var isResting=!this.isPointerDown&&Math.round(this.x*100)==Math.round(previousX*100);isResting&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},proto.shiftWrapCells=function(x){var beforeGap=this.cursorPosition+x;this._shiftCells(this.beforeShiftCells,beforeGap,-1);var afterGap=this.size.innerWidth-(x+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,afterGap,1)},proto._shiftCells=function(cells,gap,shift){for(var i=0;i<cells.length;i++){var cell2=cells[i],cellShift=gap>0?shift:0;cell2.wrapShift(cellShift),gap-=cell2.size.outerWidth}},proto._unshiftCells=function(cells){if(!(!cells||!cells.length))for(var i=0;i<cells.length;i++)cells[i].wrapShift(0)},proto.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},proto.applyForce=function(force){this.velocity+=force},proto.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},proto.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},proto.applyDragForce=function(){if(!(!this.isDraggable||!this.isPointerDown)){var dragVelocity=this.dragX-this.x,dragForce=dragVelocity-this.velocity;this.applyForce(dragForce)}},proto.applySelectedAttraction=function(){var dragDown=this.isDraggable&&this.isPointerDown;if(!(dragDown||this.isFreeScrolling||!this.slides.length)){var distance=this.selectedSlide.target*-1-this.x,force=distance*this.options.selectedAttraction;this.applyForce(force)}},proto})}),index_es_flickity=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){if(module.exports)module.exports=factory(window2,index_es_evEmitter,index_es_getSize,index_es_utils,index_es_cell,index_es_slide,index_es_animate);else{var _Flickity=window2.Flickity;window2.Flickity=factory(window2,window2.EvEmitter,window2.getSize,window2.fizzyUIUtils,_Flickity.Cell,_Flickity.Slide,_Flickity.animatePrototype)}})(window,function(window2,EvEmitter,getSize2,utils2,Cell,Slide,animatePrototype){var jQuery2=window2.jQuery,getComputedStyle2=window2.getComputedStyle,console2=window2.console;function moveElements(elems,toElem){for(elems=utils2.makeArray(elems);elems.length;)toElem.appendChild(elems.shift())}var GUID=0,instances={};function Flickity(element,options){var queryElement=utils2.getQueryElement(element);if(!queryElement){console2&&console2.error("Bad element for Flickity: "+(queryElement||element));return}if(this.element=queryElement,this.element.flickityGUID){var instance=instances[this.element.flickityGUID];return instance&&instance.option(options),instance}jQuery2&&(this.$element=jQuery2(this.element)),this.options=utils2.extend({},this.constructor.defaults),this.option(options),this._create()}Flickity.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},Flickity.createMethods=[];var proto=Flickity.prototype;utils2.extend(proto,EvEmitter.prototype),proto._create=function(){var id=this.guid=++GUID;this.element.flickityGUID=id,instances[id]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&window2.addEventListener("resize",this);for(var eventName in this.options.on){var listener=this.options.on[eventName];this.on(eventName,listener)}Flickity.createMethods.forEach(function(method){this[method]()},this),this.options.watchCSS?this.watchCSS():this.activate()},proto.option=function(opts){utils2.extend(this.options,opts)},proto.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.get
84Size();var cellElems=this._filterFindCellElements(this.element.children);moveElements(cellElems,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")}},proto._createSlider=function(){var slider=document.createElement("div");slider.className="flickity-slider",slider.style[this.originSide]=0,this.slider=slider},proto._filterFindCellElements=function(elems){return utils2.filterFindElements(elems,this.options.cellSelector)},proto.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},proto._makeCells=function(elems){var cellElems=this._filterFindCellElements(elems),cells=cellElems.map(function(cellElem){return new Cell(cellElem,this)},this);return cells},proto.getLastCell=function(){return this.cells[this.cells.length-1]},proto.getLastSlide=function(){return this.slides[this.slides.length-1]},proto.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},proto._positionCells=function(index){index=index||0,this.maxCellHeight=index&&this.maxCellHeight||0;var cellX=0;if(index>0){var startCell=this.cells[index-1];cellX=startCell.x+startCell.size.outerWidth}for(var len=this.cells.length,i=index;i<len;i++){var cell2=this.cells[i];cell2.setPosition(cellX),cellX+=cell2.size.outerWidth,this.maxCellHeight=Math.max(cell2.size.outerHeight,this.maxCellHeight)}this.slideableWidth=cellX,this.updateSlides(),this._containSlides(),this.slidesWidth=len?this.getLastSlide().target-this.slides[0].target:0},proto._sizeCells=function(cells){cells.forEach(function(cell2){cell2.getSize()})},proto.updateSlides=function(){if(this.slides=[],!!this.cells.length){var slide2=new Slide(this);this.slides.push(slide2);var isOriginLeft=this.originSide=="left",nextMargin=isOriginLeft?"marginRight":"marginLeft",canCellFit=this._getCanCellFit();this.cells.forEach(function(cell2,i){if(!slide2.cells.length){slide2.addCell(cell2);return}var slideWidth=slide2.outerWidth-slide2.firstMargin+(cell2.size.outerWidth-cell2.size[nextMargin]);canCellFit.call(this,i,slideWidth)||(slide2.updateTarget(),slide2=new Slide(this),this.slides.push(slide2)),slide2.addCell(cell2)},this),slide2.updateTarget(),this.updateSelectedSlide()}},proto._getCanCellFit=function(){var groupCells=this.options.groupCells;if(groupCells){if(typeof groupCells=="number"){var number=parseInt(groupCells,10);return function(i){return i%number!==0}}}else return function(){return!1};var percentMatch=typeof groupCells=="string"&&groupCells.match(/^(\d+)%$/),percent=percentMatch?parseInt(percentMatch[1],10)/100:1;return function(i,slideWidth){return slideWidth<=(this.size.innerWidth+1)*percent}},proto._init=proto.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},proto.getSize=function(){this.size=getSize2(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var cellAlignShorthands={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return proto.setCellAlign=function(){var shorthand=cellAlignShorthands[this.options.cellAlign];this.cellAlign=shorthand?shorthand[this.originSide]:this.options.cellAlign},proto.setGallerySize=function(){if(this.options.setGallerySize){var height=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=height+"px"}},proto._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var gapX=this.cursorPosition,cellIndex=this.cells.length-1;this.beforeShiftCells=this._getGapCells(gapX,cellIndex,-1),gapX=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(gapX,0,1)}},proto._getGapCells=function(gapX,cellIndex,increment){for(var cells=[];gapX>0;){var cell2=this.cells[cellIndex];if(!cell2)break;cells.push(cell2),cellIndex+=increment,gapX-=cell2.size.outerWidth}return cells},proto._containSlides=function(){if(!(!this.options.contain||this.options.wrapAround||!this.cells.length)){var isRightToLeft=this.options.rightToLeft,beginMargin=isRightToLeft?"marginRight":"marginLeft",endMargin=isRightToLeft?"marginLeft":"marginRight",contentWidth=this.slideableWidth-this.getLastCell().size[endMargin],isContentSmaller=contentWidth<this.size.innerWidth,beginBound=this.cursorPosition+this.cells[0].size[beginMargin],endBound=contentWidth-this.size.innerWidth*(1-this.cellAlign);
84this.slides.forEach(function(slide2){isContentSmaller?slide2.target=contentWidth*this.cellAlign:(slide2.target=Math.max(slide2.target,beginBound),slide2.target=Math.min(slide2.target,endBound))},this)}},proto.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;if(this.emitEvent(type,emitArgs),jQuery2&&this.$element){type+=this.options.namespaceJQueryEvents?".flickity":"";var $event=type;if(event){var jQEvent=new jQuery2.Event(event);jQEvent.type=type,$event=jQEvent}this.$element.trigger($event,args)}},proto.select=function(index,isWrap,isInstant){if(this.isActive&&(index=parseInt(index,10),this._wrapSelect(index),(this.options.wrapAround||isWrap)&&(index=utils2.modulo(index,this.slides.length)),!!this.slides[index])){var prevIndex=this.selectedIndex;this.selectedIndex=index,this.updateSelectedSlide(),isInstant?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[index]),index!=prevIndex&&this.dispatchEvent("change",null,[index]),this.dispatchEvent("cellSelect")}},proto._wrapSelect=function(index){var len=this.slides.length,isWrapping=this.options.wrapAround&&len>1;if(!isWrapping)return index;var wrapIndex=utils2.modulo(index,len),delta=Math.abs(wrapIndex-this.selectedIndex),backWrapDelta=Math.abs(wrapIndex+len-this.selectedIndex),forewardWrapDelta=Math.abs(wrapIndex-len-this.selectedIndex);!this.isDragSelect&&backWrapDelta<delta?index+=len:!this.isDragSelect&&forewardWrapDelta<delta&&(index-=len),index<0?this.x-=this.slideableWidth:index>=len&&(this.x+=this.slideableWidth)},proto.previous=function(isWrap,isInstant){this.select(this.selectedIndex-1,isWrap,isInstant)},proto.next=function(isWrap,isInstant){this.select(this.selectedIndex+1,isWrap,isInstant)},proto.updateSelectedSlide=function(){var slide2=this.slides[this.selectedIndex];slide2&&(this.unselectSelectedSlide(),this.selectedSlide=slide2,slide2.select(),this.selectedCells=slide2.cells,this.selectedElements=slide2.getCellElements(),this.selectedCell=slide2.cells[0],this.selectedElement=this.selectedElements[0])},proto.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},proto.selectInitialIndex=function(){var initialIndex=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,!1,!0);return}if(initialIndex&&typeof initialIndex=="string"){var cell2=this.queryCell(initialIndex);if(cell2){this.selectCell(initialIndex,!1,!0);return}}var index=0;initialIndex&&this.slides[initialIndex]&&(index=initialIndex),this.select(index,!1,!0)},proto.selectCell=function(value,isWrap,isInstant){var cell2=this.queryCell(value);if(cell2){var index=this.getCellSlideIndex(cell2);this.select(index,isWrap,isInstant)}},proto.getCellSlideIndex=function(cell2){for(var i=0;i<this.slides.length;i++){var slide2=this.slides[i],index=slide2.cells.indexOf(cell2);if(index!=-1)return i}},proto.getCell=function(elem){for(var i=0;i<this.cells.length;i++){var cell2=this.cells[i];if(cell2.element==elem)return cell2}},proto.getCells=function(elems){elems=utils2.makeArray(elems);var cells=[];return elems.forEach(function(elem){var cell2=this.getCell(elem);cell2&&cells.push(cell2)},this),cells},proto.getCellElements=function(){return this.cells.map(function(cell2){return cell2.element})},proto.getParentCell=function(elem){var cell2=this.getCell(elem);return cell2||(elem=utils2.getParent(elem,".flickity-slider > *"),this.getCell(elem))},proto.getAdjacentCellElements=function(adjCount,index){if(!adjCount)return this.selectedSlide.getCellElements();index=index===void 0?this.selectedIndex:index;var len=this.slides.length;if(1+adjCount*2>=len)return this.getCellElements();for(var cellElems=[],i=index-adjCount;i<=index+adjCount;i++){var slideIndex=this.options.wrapAround?utils2.modulo(i,len):i,slide2=this.slides[slideIndex];slide2&&(cellElems=cellElems.concat(slide2.getCellElements()))}return cellElems},proto.queryCell=function(selector){if(typeof selector=="number")return this.cells[selector];if(typeof selector=="string"){if(selector.match(/^[#.]?[\d/]/))return;selector=this.element.querySelector(selector)}return this.getCell(selector)},proto.uiChange=function(){this.emitEvent("uiChange")},proto.childUIPointerDown=function(event){event.type!="touchstart"&&event.preventDefault(),this.focus()},proto.onresize=function(){this.watchCSS(),this.resize()},utils2.debounceMethod(Flickity,"onresize",150),proto.resize=function(){if(this.isActive){this.get
84Size(),this.options.wrapAround&&(this.x=utils2.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var selectedElement=this.selectedElements&&this.selectedElements[0];this.selectCell(selectedElement,!1,!0)}},proto.watchCSS=function(){var watchOption=this.options.watchCSS;if(watchOption){var afterContent=getComputedStyle2(this.element,":after").content;afterContent.indexOf("flickity")!=-1?this.activate():this.deactivate()}},proto.onkeydown=function(event){var isNotFocused=document.activeElement&&document.activeElement!=this.element;if(!(!this.options.accessibility||isNotFocused)){var handler=Flickity.keyboardHandlers[event.keyCode];handler&&handler.call(this)}},Flickity.keyboardHandlers={37:function(){var leftMethod=this.options.rightToLeft?"next":"previous";this.uiChange(),this[leftMethod]()},39:function(){var rightMethod=this.options.rightToLeft?"previous":"next";this.uiChange(),this[rightMethod]()}},proto.focus=function(){var prevScrollY=window2.pageYOffset;this.element.focus({preventScroll:!0}),window2.pageYOffset!=prevScrollY&&window2.scrollTo(window2.pageXOffset,prevScrollY)},proto.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(cell2){cell2.destroy()}),this.element.removeChild(this.viewport),moveElements(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},proto.destroy=function(){this.deactivate(),window2.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),jQuery2&&this.$element&&jQuery2.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete instances[this.guid]},utils2.extend(proto,animatePrototype),Flickity.data=function(elem){elem=utils2.getQueryElement(elem);var id=elem&&elem.flickityGUID;return id&&instances[id]},utils2.htmlInit(Flickity,"flickity"),jQuery2&&jQuery2.bridget&&jQuery2.bridget("flickity",Flickity),Flickity.setJQuery=function(jq){jQuery2=jq},Flickity.Cell=Cell,Flickity.Slide=Slide,Flickity})}),index_es_unipointer=dist_index_es_createCommonjsModule(function(module){/*!
85 * Unipointer v2.3.0
86 * base class for doing one thing with pointer event
87 * MIT license
88 */(function(window2,factory){module.exports?module.exports=factory(window2,index_es_evEmitter):window2.Unipointer=factory(window2,window2.EvEmitter)})(window,function(window2,EvEmitter){function noop2(){}function Unipointer(){}var proto=Unipointer.prototype=Object.create(EvEmitter.prototype);proto.bindStartEvent=function(elem){this._bindStartEvent(elem,!0)},proto.unbindStartEvent=function(elem){this._bindStartEvent(elem,!1)},proto._bindStartEvent=function(elem,isAdd){isAdd=isAdd===void 0?!0:isAdd;var bindMethod=isAdd?"addEventListener":"removeEventListener",startEvent="mousedown";window2.PointerEvent?startEvent="pointerdown":"ontouchstart"in window2&&(startEvent="touchstart"),elem[bindMethod](startEvent,this)},proto.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},proto.getTouch=function(touches){for(var i=0;i<touches.length;i++){var touch=touches[i];if(touch.identifier==this.pointerIdentifier)return touch}},proto.onmousedown=function(event){var button=event.button;button&&button!==0&&button!==1||this._pointerDown(event,event)},proto.ontouchstart=function(event){this._pointerDown(event,event.changedTouches[0])},proto.onpointerdown=function(event){this._pointerDown(event,event)},proto._pointerDown=function(event,pointer){event.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=pointer.pointerId!==void 0?pointer.pointerId:pointer.identifier,this.pointerDown(event,pointer))},proto.pointerDown=function(event,pointer){this._bindPostStartEvents(event),this.emitEvent("pointerDown",[event,pointer])};var postStartEvents={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return proto._bindPostStartEvents=function(event){if(event){var events=postStartEvents[event.type];
vendor: 4,545 bytes, lines 88-92
88events.forEach(function(eventName){window2.addEventListener(eventName,this)},this),this._boundPointerEvents=events}},proto._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(eventName){window2.removeEventListener(eventName,this)},this),delete this._boundPointerEvents)},proto.onmousemove=function(event){this._pointerMove(event,event)},proto.onpointermove=function(event){event.pointerId==this.pointerIdentifier&&this._pointerMove(event,event)},proto.ontouchmove=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerMove(event,touch)},proto._pointerMove=function(event,pointer){this.pointerMove(event,pointer)},proto.pointerMove=function(event,pointer){this.emitEvent("pointerMove",[event,pointer])},proto.onmouseup=function(event){this._pointerUp(event,event)},proto.onpointerup=function(event){event.pointerId==this.pointerIdentifier&&this._pointerUp(event,event)},proto.ontouchend=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerUp(event,touch)},proto._pointerUp=function(event,pointer){this._pointerDone(),this.pointerUp(event,pointer)},proto.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer])},proto._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},proto._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},proto.pointerDone=noop2,proto.onpointercancel=function(event){event.pointerId==this.pointerIdentifier&&this._pointerCancel(event,event)},proto.ontouchcancel=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerCancel(event,touch)},proto._pointerCancel=function(event,pointer){this._pointerDone(),this.pointerCancel(event,pointer)},proto.pointerCancel=function(event,pointer){this.emitEvent("pointerCancel",[event,pointer])},Unipointer.getPointerPoint=function(pointer){return{x:pointer.pageX,y:pointer.pageY}},Unipointer})}),index_es_unidragger=dist_index_es_createCommonjsModule(function(module){/*!
89 * Unidragger v2.3.1
90 * Draggable base class
91 * MIT license
92 */(function(window2,factory){module.exports?module.exports=factory(window2,index_es_unipointer):window2.Unidragger=factory(window2,window2.Unipointer)})(window,function(window2,Unipointer){function Unidragger(){}var proto=Unidragger.prototype=Object.create(Unipointer.prototype);proto.bindHandles=function(){this._bindHandles(!0)},proto.unbindHandles=function(){this._bindHandles(!1)},proto._bindHandles=function(isAdd){isAdd=isAdd===void 0?!0:isAdd;for(var bindMethod=isAdd?"addEventListener":"removeEventListener",touchAction=isAdd?this._touchActionValue:"",i=0;i<this.handles.length;i++){var handle=this.handles[i];this._bindStartEvent(handle,isAdd),handle[bindMethod]("click",this),window2.PointerEvent&&(handle.style.touchAction=touchAction)}},proto._touchActionValue="none",proto.pointerDown=function(event,pointer){var isOkay=this.okayPointerDown(event);isOkay&&(this.pointerDownPointer={pageX:pointer.pageX,pageY:pointer.pageY},event.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(event),this.emitEvent("pointerDown",[event,pointer]))};var cursorNodes={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},clickTypes={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return proto.okayPointerDown=function(event){var isCursorNode=cursorNodes[event.target.nodeName],isClickType=clickTypes[event.target.type],isOkay=!isCursorNode||isClickType;return isOkay||this._pointerReset(),isOkay},proto.pointerDownBlur=function(){var focused=document.activeElement,canBlur=focused&&focused.blur&&focused!=document.body;canBlur&&focused.blur()},proto.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.emitEvent("pointerMove",[event,pointer,moveVector]),this._dragMove(event,pointer,moveVector)},proto._dragPointerMove=function(event,pointer){var moveVector={x:pointer.pageX-this.pointerDownPointer.pageX,y:pointer.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(moveVector)&&this._dragStart(event,pointer),moveVector},proto.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>3||Math.abs(moveVector.y)>3},proto.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer]),this._dragPointerUp(event,pointer)},proto._dragPointerUp=function(event,pointer){this.isDragging?this._dragEnd(event,pointer):this._staticClick(event,pointer)},proto._dragStart=function(event,pointer){this.isDragging=!0,this.isPreventing
92Clicks=!0,this.dragStart(event,pointer)},proto.dragStart=function(event,pointer){this.emitEvent("dragStart",[event,pointer])},proto._dragMove=function(event,pointer,moveVector){this.isDragging&&this.dragMove(event,pointer,moveVector)},proto.dragMove=function(event,pointer,moveVector){event.preventDefault(),this.emitEvent("dragMove",[event,pointer,moveVector])},proto._dragEnd=function(event,pointer){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(event,pointer)},proto.dragEnd=function(event,pointer){this.emitEvent("dragEnd",[event,pointer])},proto.onclick=function(event){this.isPreventingClicks&&event.preventDefault()},proto._staticClick=function(event,pointer){this.isIgnoringMouseUp&&event.type=="mouseup"||(this.staticClick(event,pointer),event.type!="mouseup"&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},proto.staticClick=function(event,pointer){this.emitEvent("staticClick",[event,pointer])},Unidragger.getPointerPoint=Unipointer.getPointerPoint,Unidragger})}),index_es_drag=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,index_es_flickity,index_es_unidragger,index_es_utils):window2.Flickity=factory(window2,window2.Flickity,window2.Unidragger,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unidragger,utils2){utils2.extend(Flickity.defaults,{draggable:">1",dragThreshold:3}),Flickity.createMethods.push("_createDrag");var proto=Flickity.prototype;utils2.extend(proto,Unidragger.prototype),proto._touchActionValue="pan-y";var isTouch="createTouch"in document,isTouchmoveScrollCanceled=!1;proto._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),isTouch&&!isTouchmoveScrollCanceled&&(window2.addEventListener("touchmove",function(){}),isTouchmoveScrollCanceled=!0)},proto.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},proto.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},proto.updateDraggable=function(){this.options.draggable==">1"?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},proto.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},proto.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},proto._uiChangeDrag=function(){delete this.isFreeScrolling},proto.pointerDown=function(event,pointer){if(!this.isDraggable){this._pointerDownDefault(event,pointer);return}var isOkay=this.okayPointerDown(event);isOkay&&(this._pointerDownPreventDefault(event),this.pointerDownFocus(event),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=getScrollPosition(),window2.addEventListener("scroll",this),this._pointerDownDefault(event,pointer))},proto._pointerDownDefault=function(event,pointer){this.pointerDownPointer={pageX:pointer.pageX,pageY:pointer.pageY},this._bindPostStartEvents(event),this.dispatchEvent("pointerDown",event,[pointer])};var focusNodes={INPUT:!0,TEXTAREA:!0,SELECT:!0};proto.pointerDownFocus=function(event){var isFocusNode=focusNodes[event.target.nodeName];isFocusNode||this.focus()},proto._pointerDownPreventDefault=function(event){var isTouchStart=event.type=="touchstart",isTouchPointer=event.pointerType=="touch",isFocusNode=focusNodes[event.target.nodeName];!isTouchStart&&!isTouchPointer&&!isFocusNode&&event.preventDefault()},proto.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>this.options.dragThreshold},proto.pointerUp=function(event,pointer){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",event,[pointer]),this._dragPointerUp(event,pointer)},proto.pointerDone=function(){window2.removeEventListener("scroll",this),delete this.pointerDownScroll},proto.dragStart=function(event,pointer){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),window2.removeEventListener("scroll",this),this.dispatchEvent("dragStart",event,[pointer]))},proto.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.dispatchEvent("pointerMove",event,[pointer,moveVector]),this._dragMove(event,pointer,moveVector)},proto.dragMove=function(event,pointer,moveVector){if(this.isDraggable){event.preventDefault(),this.previousDragX=this.dragX;var direction=this.options.rightToLeft?-1:1;this.options.wrapAround&&(moveVector.x%=this.slideableWidth);var dragX=this.dragStartPosition+moveVector.x*direction;if(!this.options.wrapAround&&this.slides.length){var originBound=Math.max(-this.slides[0].target,this.dragStartPosition);dragX=dragX>originBound?(dragX+originBound)*.5:dragX;var endBound=Math.min(-this.getLastSlide().target,this.dragStartPosition);dragX=dragX<endBound?(dragX+endBound)*.5:dragX}this.dragX=dragX,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",event,[pointer,moveVector])}},proto.dragEnd=function(event,pointer){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var index=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var restingX=this.getRestingPosition();this.isFreeScrolling=-restingX>this.slides[0].target&&-restingX<this.getLastSlide().target}else!this.options.freeScroll&&index==this.selectedIndex&&(index+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(index),delete this.isDragSelect,this.dispatchEvent("dragEnd",event,[pointer])}},proto.dragEndRestingSelect=function(){var restingX=this.getRestingPosition(),distance=Math.abs(this.getSlideDistance(-restingX,this.selectedIndex)),positiveResting=this._getClosestResting(restingX,distance,1),negativeResting=this._getClosestResting(restingX,distance,-1),index=
92positiveResting.distance<negativeResting.distance?positiveResting.index:negativeResting.index;return index},proto._getClosestResting=function(restingX,distance,increment){for(var index=this.selectedIndex,minDistance=1/0,condition=this.options.contain&&!this.options.wrapAround?function(dist,minDist){return dist<=minDist}:function(dist,minDist){return dist<minDist};condition(distance,minDistance)&&(index+=increment,minDistance=distance,distance=this.getSlideDistance(-restingX,index),distance!==null);)distance=Math.abs(distance);return{distance:minDistance,index:index-increment}},proto.getSlideDistance=function(x,index){var len=this.slides.length,isWrapAround=this.options.wrapAround&&len>1,slideIndex=isWrapAround?utils2.modulo(index,len):index,slide2=this.slides[slideIndex];if(!slide2)return null;var wrap=isWrapAround?this.slideableWidth*Math.floor(index/len):0;return x-(slide2.target+wrap)},proto.dragEndBoostSelect=function(){if(this.previousDragX===void 0||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var distance=this.getSlideDistance(-this.dragX,this.selectedIndex),delta=this.previousDragX-this.dragX;return distance>0&&delta>0?1:distance<0&&delta<0?-1:0},proto.staticClick=function(event,pointer){var clickedCell=this.getParentCell(event.target),cellElem=clickedCell&&clickedCell.element,cellIndex=clickedCell&&this.cells.indexOf(clickedCell);this.dispatchEvent("staticClick",event,[pointer,cellElem,cellIndex])},proto.onscroll=function(){var scroll=getScrollPosition(),scrollMoveX=this.pointerDownScroll.x-scroll.x,scrollMoveY=this.pointerDownScroll.y-scroll.y;(Math.abs(scrollMoveX)>3||Math.abs(scrollMoveY)>3)&&this._pointerDone()};function getScrollPosition(){return{x:window2.pageXOffset,y:window2.pageYOffset}}return Flickity})}),index_es_prevNextButton=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,index_es_flickity,index_es_unipointer,index_es_utils):factory(window2,window2.Flickity,window2.Unipointer,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unipointer,utils2){var svgURI="http://www.w3.org/2000/svg";function PrevNextButton(direction,parent){this.direction=direction,this.parent=parent,this._create()}PrevNextButton.prototype=Object.create(Unipointer.prototype),PrevNextButton.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var leftDirection=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==leftDirection;var element=this.element=document.createElement("button");element.className="flickity-button flickity-prev-next-button",element.className+=this.isPrevious?" previous":" next",element.setAttribute("type","button"),this.disable(),element.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var svg=this.createSVG();element.appendChild(svg),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},PrevNextButton.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},PrevNextButton.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},PrevNextButton.prototype.createSVG=function(){var svg=document.createElementNS(svgURI,"svg");svg.setAttribute("class","flickity-button-icon"),svg.setAttribute("viewBox","0 0 100 100");var path=document.createElementNS(svgURI,"path"),pathMovements=getArrowMovements(this.parent.options.arrowShape);return path.setAttribute("d",pathMovements),path.setAttribute("class","arrow"),this.isLeft||path.setAttribute("transform","translate(100, 100) rotate(180) "),svg.appendChild(path),svg};function getArrowMovements(shape){return typeof shape=="string"?shape:"M "+shape.x0+",50 L "+shape.x1+","+(shape.y1+50)+" L "+shape.x2+","+(shape.y2+50)+" L "+shape.x3+",50  L "+shape.x2+","+(50-shape.y2)+" L "+shape.x1+","+(50-shape.y1)+" Z"}PrevNextButton.prototype.handleEvent=utils2.handleEvent,PrevNextButton.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var method=this.isPrevious?"previous":"next";this.parent[method]()}},PrevNextButton.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},PrevNextButton.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},PrevNextButton.prototype.update=function(){var slides=this.parent.slides;if(this.parent.options.wrapAround&&slides.length>1){this.enable();return}
92var lastIndex=slides.length?slides.length-1:0,boundIndex=this.isPrevious?0:lastIndex,method=this.parent.selectedIndex==boundIndex?"disable":"enable";this[method]()},PrevNextButton.prototype.destroy=function(){this.deactivate(),this.allOff()},utils2.extend(Flickity.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),Flickity.createMethods.push("_createPrevNextButtons");var proto=Flickity.prototype;return proto._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new PrevNextButton(-1,this),this.nextButton=new PrevNextButton(1,this),this.on("activate",this.activatePrevNextButtons))},proto.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},proto.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},Flickity.PrevNextButton=PrevNextButton,Flickity})}),index_es_pageDots=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,index_es_flickity,index_es_unipointer,index_es_utils):factory(window2,window2.Flickity,window2.Unipointer,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unipointer,utils2){function PageDots(parent){this.parent=parent,this._create()}PageDots.prototype=Object.create(Unipointer.prototype),PageDots.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},PageDots.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},PageDots.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},PageDots.prototype.setDots=function(){var delta=this.parent.slides.length-this.dots.length;delta>0?this.addDots(delta):delta<0&&this.removeDots(-delta)},PageDots.prototype.addDots=function(count){for(var fragment=document.createDocumentFragment(),newDots=[],length=this.dots.length,max=length+count,i=length;i<max;i++){var dot=document.createElement("li");dot.className="dot",dot.setAttribute("aria-label","Page dot "+(i+1)),fragment.appendChild(dot),newDots.push(dot)}this.holder.appendChild(fragment),this.dots=this.dots.concat(newDots)},PageDots.prototype.removeDots=function(count){var removeDots=this.dots.splice(this.dots.length-count,count);removeDots.forEach(function(dot){this.holder.removeChild(dot)},this)},PageDots.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},PageDots.prototype.onTap=PageDots.prototype.onClick=function(event){var target=event.target;if(target.nodeName=="LI"){this.parent.uiChange();var index=this.dots.indexOf(target);this.parent.select(index)}},PageDots.prototype.destroy=function(){this.deactivate(),this.allOff()},Flickity.PageDots=PageDots,utils2.extend(Flickity.defaults,{pageDots:!0}),Flickity.createMethods.push("_createPageDots");var proto=Flickity.prototype;return proto._createPageDots=function(){this.options.pageDots&&(this.pageDots=new PageDots(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},proto.activatePageDots=function(){this.pageDots.activate()},proto.updateSelectedPageDots=function(){this.pageDots.updateSelected()},proto.updatePageDots=function(){this.pageDots.setDots()},proto.deactivatePageDots=function(){this.pageDots.deactivate()},Flickity.PageDots=PageDots,Flickity})}),index_es_player=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(index_es_evEmitter,index_es_utils,index_es_flickity):factory(window2.EvEmitter,window2.fizzyUIUtils,window2.Flickity)})(window,function(EvEmitter,utils2,Flickity){function Player(parent){this.parent=parent,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}Player.prototype=Object.create(EvEmitter.prototype),Player.prototype.play=function(){if(this.state!="playing"){var isPageHidden=document.hidden;if(isPageHidden){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},Player.prototype.tick=function(){if(this.state=="playing"){var time=this.parent.options.autoPlay;time=typeof time=="number"?time:3e3;var _this=this;this.clear(),this.timeout=setTimeout(function(){_this.parent.next(!0),_this.tick()},time)}},Player.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},Player.prototype.clear=function(){clearTimeout(this.timeout)},Player.prototype.pause=function(){this.state=="playing"&&(this.state="paused",this.clear())},Player.prototype.unpause=function(){this.state=="paused"&&this.play()},Player.prototype.visibilityChange=function(){var isPageHidden=document.hidden;this[isPageHidden?"pause":"unpause"]()},Player.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},utils2.extend(Flickity.defaults,{pauseAutoPlayOnHover:!0}),Flickity.createMethods.push("_createPlayer");var proto=Flickity.prototype;return proto._createPlayer=function(){this.player=new Player(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},proto.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},proto.playPlayer=function(){this.player.play()},proto.stopPlayer=function(){this.player.stop()},proto.pausePlayer=function(){this.player.pause()},proto.unpausePlayer=function(){this.player.unpause()},proto.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},proto.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},proto.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},Flickity.Player=Player,Flickity})}),index_es_addRemoveCell=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,index_es_flickity,index_es_utils):factory(window2,window2.Flickity,window2.fizzyUIUtils)})(window,function(window2,Flickity,utils2){function getCellsFragment(cells){var fragment=document.createDocumentFragment();
92return cells.forEach(function(cell2){fragment.appendChild(cell2.element)}),fragment}var proto=Flickity.prototype;return proto.insert=function(elems,index){var cells=this._makeCells(elems);if(!(!cells||!cells.length)){var len=this.cells.length;index=index===void 0?len:index;var fragment=getCellsFragment(cells),isAppend=index==len;if(isAppend)this.slider.appendChild(fragment);else{var insertCellElement=this.cells[index].element;this.slider.insertBefore(fragment,insertCellElement)}if(index===0)this.cells=cells.concat(this.cells);else if(isAppend)this.cells=this.cells.concat(cells);else{var endCells=this.cells.splice(index,len-index);this.cells=this.cells.concat(cells).concat(endCells)}this._sizeCells(cells),this.cellChange(index,!0)}},proto.append=function(elems){this.insert(elems,this.cells.length)},proto.prepend=function(elems){this.insert(elems,0)},proto.remove=function(elems){var cells=this.getCells(elems);if(!(!cells||!cells.length)){var minCellIndex=this.cells.length-1;cells.forEach(function(cell2){cell2.remove();var index=this.cells.indexOf(cell2);minCellIndex=Math.min(index,minCellIndex),utils2.removeFrom(this.cells,cell2)},this),this.cellChange(minCellIndex,!0)}},proto.cellSizeChange=function(elem){var cell2=this.getCell(elem);if(cell2){cell2.getSize();var index=this.cells.indexOf(cell2);this.cellChange(index)}},proto.cellChange=function(changedCellIndex,isPositioningSlider){var prevSelectedElem=this.selectedElement;this._positionCells(changedCellIndex),this._getWrapShiftCells(),this.setGallerySize();var cell2=this.getCell(prevSelectedElem);cell2&&(this.selectedIndex=this.getCellSlideIndex(cell2)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[changedCellIndex]),this.select(this.selectedIndex),isPositioningSlider&&this.positionSliderAtSelected()},Flickity})}),index_es_lazyload=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,index_es_flickity,index_es_utils):factory(window2,window2.Flickity,window2.fizzyUIUtils)})(window,function(window2,Flickity,utils2){Flickity.createMethods.push("_createLazyload");var proto=Flickity.prototype;proto._createLazyload=function(){this.on("select",this.lazyLoad)},proto.lazyLoad=function(){var lazyLoad=this.options.lazyLoad;if(lazyLoad){var adjCount=typeof lazyLoad=="number"?lazyLoad:0,cellElems=this.getAdjacentCellElements(adjCount),lazyImages=[];
92cellElems.forEach(function(cellElem){var lazyCellImages=getCellLazyImages(cellElem);lazyImages=lazyImages.concat(lazyCellImages)}),lazyImages.forEach(function(img){new LazyLoader2(img,this)},this)}};function getCellLazyImages(cellElem){if(cellElem.nodeName=="IMG"){var lazyloadAttr=cellElem.getAttribute("data-flickity-lazyload"),srcAttr=cellElem.getAttribute("data-flickity-lazyload-src"),srcsetAttr=cellElem.getAttribute("data-flickity-lazyload-srcset");if(lazyloadAttr||srcAttr||srcsetAttr)return[cellElem]}var lazySelector="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",imgs=cellElem.querySelectorAll(lazySelector);return utils2.makeArray(imgs)}function LazyLoader2(img,flickity2){this.img=img,this.flickity=flickity2,this.load()}return LazyLoader2.prototype.handleEvent=utils2.handleEvent,LazyLoader2.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var src=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),srcset=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=src,srcset&&this.img.setAttribute("srcset",srcset),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},LazyLoader2.prototype.onload=function(event){this.complete(event,"flickity-lazyloaded")},LazyLoader2.prototype.onerror=function(event){this.complete(event,"flickity-lazyerror")},LazyLoader2.prototype.complete=function(event,className){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var cell2=this.flickity.getParentCell(this.img),cellElem=cell2&&cell2.element;this.flickity.cellSizeChange(cellElem),this.img.classList.add(className),this.flickity.dispatchEvent("lazyLoad",event,cellElem)},Flickity.LazyLoader=LazyLoader2,Flickity})}),index_es_js=dist_index_es_createCommonjsModule(function(module){/*!
93 * Flickity v2.2.2
94 * Touch, responsive, flickable carousels
95 *
96 * Licensed GPLv3 for open source use
97 * or Flickity Commercial License for commercial use
98 *
99 * https://flickity.metafizzy.co
100 * Copyright 2015-2021 Metafizzy
101 */(function(window2,factory){module.exports&&(module.exports=factory(index_es_flickity,index_es_drag,index_es_prevNextButton,index_es_pageDots,index_es_player,index_es_addRemoveCell,index_es_lazyload))})(window,function(Flickity){return Flickity})}),index_es_flickityFade=dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(index_es_js,index_es_utils):factory(window2.Flickity,window2.fizzyUIUtils)})(index_es_commonjsGlobal,function(Flickity,utils2){var Slide=Flickity.Slide,slideUpdateTarget=Slide.prototype.updateTarget;Slide.prototype.updateTarget=function(){if(slideUpdateTarget.apply(this,arguments),!!this.parent.options.fade){var slideTargetX=this.target-this.x,firstCellX=this.cells[0].x;this.cells.forEach(function(cell2){var targetX=cell2.x-firstCellX-slideTargetX;cell2.renderPosition(targetX)})}},Slide.prototype.setOpacity=function(alpha){this.cells.forEach(function(cell2){cell2.element.style.opacity=alpha})};var proto=Flickity.prototype;Flickity.createMethods.push("_createFade"),proto._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var updateSlides=proto.updateSlides;proto.updateSlides=function(){updateSlides.apply(this,arguments),this.options.fade&&this.slides.forEach(function(slide2,i){var alpha=i==this.selectedIndex?1:0;slide2.setOpacity(alpha)},this)},proto.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},proto.onSettleFade=function(){if(delete this.didDragEnd,!!this.options.fade){this.selectedSlide.setOpacity(1);var fadedSlide=this.slides[this.fadeIndex];fadedSlide&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0)}},proto.onDragEndFade=function(){this.didDragEnd=!0},proto.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},proto.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEac
101h(function(slide2){slide2.setOpacity("")}))};var positionSlider=proto.positionSlider;proto.positionSlider=function(){if(!this.options.fade){positionSlider.apply(this,arguments);return}this.fadeSlides(),this.dispatchScrollEvent()};var positionSliderAtSelected=proto.positionSliderAtSelected;proto.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),positionSliderAtSelected.apply(this,arguments)},proto.fadeSlides=function(){if(!(this.slides.length<2)){var indexes=this.getFadeIndexes(),fadeSlideA=this.slides[indexes.a],fadeSlideB=this.slides[indexes.b],distance=this.wrapDifference(fadeSlideA.target,fadeSlideB.target),progress=this.wrapDifference(fadeSlideA.target,-this.x);progress=progress/distance,fadeSlideA.setOpacity(1-progress),fadeSlideB.setOpacity(progress);var fadeHideIndex=indexes.a;this.isDragging&&(fadeHideIndex=progress>.5?indexes.a:indexes.b);var isNewHideIndex=this.fadeHideIndex!=null&&this.fadeHideIndex!=fadeHideIndex&&this.fadeHideIndex!=indexes.a&&this.fadeHideIndex!=indexes.b;isNewHideIndex&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=fadeHideIndex}},proto.getFadeIndexes=function(){return!this.isDragging&&!this.didDragEnd?{a:this.fadeIndex,b:this.selectedIndex}:this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes()},proto.getFadeDragWrapIndexes=function(){var distances=this.slides.map(function(slide2,i){return this.getSlideDistance(-this.x,i)},this),absDistances=distances.map(function(distance2){return Math.abs(distance2)}),minDistance=Math.min.apply(Math,absDistances),closestIndex=absDistances.indexOf(minDistance),distance=distances[closestIndex],len=this.slides.length,delta=distance>=0?1:-1;return{a:closestIndex,b:utils2.modulo(closestIndex+delta,len)}},proto.getFadeDragLimitIndexes=function(){for(var dragIndex=0,i=0;i<this.slides.length-1;i++){var slide2=this.slides[i];if(-this.x<slide2.target)break;dragIndex=i}return{a:dragIndex,b:dragIndex+1}},proto.wrapDifference=function(a,b){var diff=b-a;if(!this.options.wrapAround)return diff;var diffPlus=diff+this.slideableWidth,diffMinus=diff-this.slideableWidth;return Math.abs(diffPlus)<Math.abs(diff)&&(diff=diffPlus),Math.abs(diffMinus)<Math.abs(diff)&&(diff=diffMinus),diff};var _getWrapShiftCells=proto._getWrapShiftCells;proto._getWrapShiftCells=function(){this.options.fade||_getWrapShiftCells.apply(this,arguments)};var shiftWrapCells=proto.shiftWrapCells;return proto.shiftWrapCells=function(){this.options.fade||shiftWrapCells.apply(this,arguments)},Flickity})}),index_es_EventHandler_1=dist_index_es_createCommonjsModule(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEach(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),index_es_EventHandler=index_es_unwrapExports(index_es_EventHandler_1),Testimonials=(function(){function Testimonials2(section){pxs_testimonials_dist_index_es_classCallCheck(this,Testimonials2),this.el=section.el,this.settings=section.data,this.slider=this.el.querySelector("[data-testimonials-content]"),this.slides=this.el.querySelectorAll("[data-testimonial]"),this.flickity=!1,this.events=new index_es_EventHandler,this.settings.init_slider===!0&&this.slides.length>1&&this.initFlickity()}return pxs_testimonials_dist_index_es_createClass(Testimonials2,[{key:"initFlickity",value:function(){var _this=this;this.flickity=new index_es_flickityFade(this.slider,{adaptiveHeight:!0,autoPlay:this.settings.enable_autoplay?this.settings.autoplay_interval*1e3:!1,groupCells:this.settings.group_testimonials,fade:this.settings.use_fade,cellAlign:"left",cellSelector:"[data-testimonial]",contain:!0,imagesLoaded:!0,pageDots:this.settings.show_pagination,pauseAutoPlayOnHover:!0,wrapAround:!0,arrowShape:{x0:10,x1:60,y1:50,x2:65,y2:45,x3:20}}),this.events.register(this.slider,"rimg:load",function(){_this.flickity.resize()})}},{key:"onSectionBlockSelect",value:function(block){if(this.flickity){var index=block.el.dataset.index;this.flickity.select(index)}}},{key:"onSectionUnload",value:function(){this.events.unregisterAll(),this.flickity&&(this.flickity.destroy(),this.flickity=!1)}}]),Testimonials2})();const pxs_testimonials_dist_index_es=Testimonials;/*!
102 * @pixelunion/age-gate v1.1.0
103 * (c) 2023 Pixel Union
104 */function age_gate_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function age_gate_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function age_gate_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&age_gate_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&age_gate_dist_index_es_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}
104),Constructor}var scrollLock=__webpack_require__(265),isbot=__webpack_require__(458);function getAge(birthdate){var today=new Date,age=today.getFullYear()-birthdate.getFullYear(),m=today.getMonth()-birthdate.getMonth();return(m<0||m===0&&today.getDate()<birthdate.getDate())&&age--,age}var SiteAgeGate=(function(){function SiteAgeGate2(el){age_gate_dist_index_es_classCallCheck(this,SiteAgeGate2),this._el=el,this._ageGateForm=el.querySelector("[data-age-gate]"),this._ageGateErrorEl=this._ageGateForm.querySelector("[data-age-gate-error]"),this._requiredAge=this._ageGateForm.dataset.requiredAge,this._el.addEventListener("age-gate:open",this._open.bind(this)),this._el.addEventListener("age-gate:close",this._close.bind(this)),this._ageGateForm.addEventListener("submit",this._onFormSubmit.bind(this)),isbot(navigator.userAgent)?this._close():this._el.style.display===""&&this._open()}return age_gate_dist_index_es_createClass(SiteAgeGate2,[{key:"_open",value:function(){scrollLock.disablePageScroll(),this._el.style.display=""}},{key:"_close",value:function(){scrollLock.enablePageScroll(),this._el.style.display="none"}},{key:"_onFormSubmit",value:function(event){event.preventDefault(),event.stopPropagation();var data=new FormData(event.target),day=data.get("day"),month=data.get("month"),year=data.get("year");if(!(day===""||month===""||year==="")){var age=getAge(new Date(year,month,day));age>=this._requiredAge?(this._close(),sessionStorage.setItem("age-gate",age)):this._ageGateErrorEl.style.display=""}}}]),SiteAgeGate2})(),PageAgeGate=(function(){function PageAgeGate2(){age_gate_dist_index_es_classCallCheck(this,PageAgeGate2),this._ageGateEl=document.getElementById("age-gate-page")}return age_gate_dist_index_es_createClass(PageAgeGate2,[{key:"onSectionLoad",value:function(){var openEvent=new CustomEvent("age-gate:open");this._ageGateEl.dispatchEvent(openEvent)}},{key:"onSectionSelect",value:function(){var openEvent=new CustomEvent("age-gate:open");this._ageGateEl.dispatchEvent(openEvent)}},{key:"onSectionDeselect",value:function(){var closeEvent=new CustomEvent("age-gate:close");this._ageGateEl.dispatchEvent(closeEvent)}}]),PageAgeGate2})(),intersection_observer=__webpack_require__(337);window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);/*!
105 * @pixelunion/pxs-complementary-products v3.5.3
106 * (c) 2022 Pixel Union
107 */function index_es_typeof(obj){"@babel/helpers - typeof";return index_es_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj2){return typeof obj2}:function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},index_es_typeof(obj)}function pxs_complementary_products_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function pxs_complementary_products_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function pxs_complementary_products_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&pxs_complementary_products_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&pxs_complementary_products_dist_index_es_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}var dist_index_es_commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:{};function dist_index_es_unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function pxs_complementary_products_dist_index_es_createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var dist_index_es_EventHandler_1=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEac
107h(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),dist_index_es_EventHandler=dist_index_es_unwrapExports(dist_index_es_EventHandler_1);/*!
108   * @pixelunion/shopify-asyncview v2.0.5
109   * (c) 2020 Pixel Union
110  */function _classCallCheck$1(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass$1(Constructor,protoProps,staticProps){return protoProps&&_defineProperties$1(Constructor.prototype,protoProps),staticProps&&_defineProperties$1(Constructor,staticProps),Constructor}function index_es_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function index_es_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function index_es_objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?index_es_ownKeys(Object(source),!0).forEach(function(key){index_es_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):index_es_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _iterableToArrayLimit(arr,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(arr)))){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return!=null&&_i.return()}finally{if(_d)throw _e}}return _arr}}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o=="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
111In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var deferred={},AsyncView=(function(){function AsyncView2(){_classCallCheck$1(this,AsyncView2)}return _createClass$1(AsyncView2,null,[{key:"load",value:function(url){var query=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("view"in query))return Promise.reject(new Error("'view' not found in 'query' parameter"));var querylessUrl=url.replace(/\?[^#]+/,""),queryParamsString=new RegExp(/.+\?([^#]+)/).exec(url),queryParams=query;queryParamsString&&queryParamsString.length>=2&&queryParamsString[1].split("&").forEach(function(param){var _param$split=param.split("="),_param$split2=_slicedToArray(_param$split,2),key=_param$split2[0],value=_param$split2[1];queryParams[key]=value});var cachebustingParams=index_es_objectSpread2({},queryParams,{_:new Date().getTime()}),hashUrl=querylessUrl.replace(/([^#]+)(.*)/,function(match,address,hash){return"".concat(address,"?").concat(Object.keys(queryParams).sort().map(function(key){return"".concat(key,"=").concat(encodeURIComponent(queryParams[key]))}).join("&")).concat(hash)}),requestUrl=querylessUrl.replace(/([^#]+)(.*)/,function(match,address,hash){return"".concat(address,"?").concat(Object.keys(cachebustingParams).sort().map(function(key){return"".concat(key,"=").concat(encodeURIComponent(cachebustingParams[key]))}).join("&")).concat(hash)}),promise=new Promise(function(resolve,reject){var data;if(hashUrl in deferred){resolve(deferred[hashUrl]);return}if(deferred[hashUrl]=promise,options.hash&&(data=sessionStorage.getItem(hashUrl),data)){var deserialized=JSON.parse(data);if(options.hash===deserialized.options.hash){delete deferred[hashUrl],resolve(deserialized);return}}var xhr=new XMLHttpRequest;xhr.open("GET",requestUrl,!0),xhr.onload=function(){var el=xhr.response,newOptions={},optionsEl=el.querySelector("[data-options]");optionsEl&&optionsEl.innerHTML&&(newOptions=JSON.parse(el.querySelector("[data-options]").innerHTML));var htmlEls=el.querySelectorAll("[data-html]"),newHtml={};if(htmlEls.length===1&&htmlEls[0].getAttribute("data-html")==="")newHtml=htmlEls[0].innerHTML;else for(var i=0;i<htmlEls.length;i++)newHtml[htmlEls[i].getAttribute("data-html")]=htmlEls[i].innerHTML;var dataEls=el.querySelectorAll("[data-data]"),newData={};if(dataEls.length===1&&dataEls[0].getAttribute("data-data")==="")newData=JSON.parse(dataEls[0].innerHTML);else for(var _i=0;_i<dataEls.length;_i++)newData[dataEls[_i].getAttribute("data-data")]=JSON.parse(dataEls[_i].innerHTML);if(options.hash)try{sessionStorage.setItem(hashUrl,JSON.stringify({options:newOptions,data:newData,html:newHtml}))}catch(error){console.error(error)}delete deferred[hashUrl],resolve({data:newData,html:newHtml})},xhr.onerror=function(){delete deferred[hashUrl],reject()},xhr.responseType="document",xhr.send()});return promise}}]),AsyncView2})(),dist_index_es_evEmitter=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(global,factory){module.exports?module.exports=factory():global.EvEmitter=factory()})(typeof window<"u"?window:dist_index_es_commonjsGlobal,function(){function EvEmitter(){}var proto=EvEmitter.prototype;return proto.on=function(eventName,listener){if(!(!eventName||!listener)){var events=this._events=this._events||{},listeners=events[eventName]=events[eventName]||[];return listeners.indexOf(listener)==-1&&listeners.push(listener),this}},proto.once=function(eventName,listener){if(!(!eventName||!listener)){this.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{}
111,onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};return onceListeners[listener]=!0,this}},proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(!(!listeners||!listeners.length)){var index=listeners.indexOf(listener);return index!=-1&&listeners.splice(index,1),this}},proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(!(!listeners||!listeners.length)){listeners=listeners.slice(0),args=args||[];for(var onceListeners=this._onceEvents&&this._onceEvents[eventName],i=0;i<listeners.length;i++){var listener=listeners[i],isOnce=onceListeners&&onceListeners[listener];isOnce&&(this.off(eventName,listener),delete onceListeners[listener]),listener.apply(this,args)}return this}},proto.allOff=function(){delete this._events,delete this._onceEvents},EvEmitter})}),dist_index_es_getSize=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){/*!
112 * getSize v2.0.3
113 * measure size of elements
114 * MIT license
115 */(function(window2,factory){module.exports?module.exports=factory():window2.getSize=factory()})(window,function(){function getStyleSize(value){var num=parseFloat(value),isValid=value.indexOf("%")==-1&&!isNaN(num);return isValid&&num}function noop2(){}var logError=typeof console>"u"?noop2:function(message){console.error(message)},measurements=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],measurementsLength=measurements.length;function getZeroSize(){for(var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<measurementsLength;i++){var measurement=measurements[i];size[measurement]=0}return size}function getStyle(elem){var style=getComputedStyle(elem);return style||logError("Style returned "+style+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),style}var isSetup=!1,isBoxSizeOuter;function setup(){if(!isSetup){isSetup=!0;var div=document.createElement("div");div.style.width="200px",div.style.padding="1px 2px 3px 4px",div.style.borderStyle="solid",div.style.borderWidth="1px 2px 3px 4px",div.style.boxSizing="border-box";var body2=document.body||document.documentElement;body2.appendChild(div);var style=getStyle(div);isBoxSizeOuter=Math.round(getStyleSize(style.width))==200,getSize2.isBoxSizeOuter=isBoxSizeOuter,body2.removeChild(div)}}function getSize2(elem){if(setup(),typeof elem=="string"&&(elem=document.querySelector(elem)),!(!elem||typeof elem!="object"||!elem.nodeType)){var style=getStyle(elem);if(style.display=="none")return getZeroSize();var size={};size.width=elem.offsetWidth,size.height=elem.offsetHeight;for(var isBorderBox=size.isBorderBox=style.boxSizing=="border-box",i=0;i<measurementsLength;i++){var measurement=measurements[i],value=style[measurement],num=parseFloat(value);size[measurement]=isNaN(num)?0:num}var paddingWidth=size.paddingLeft+size.paddingRight,paddingHeight=size.paddingTop+size.paddingBottom,marginWidth=size.marginLeft+size.marginRight,marginHeight=size.marginTop+size.marginBottom,borderWidth=size.borderLeftWidth+size.borderRightWidth,borderHeight=size.borderTopWidth+size.borderBottomWidth,isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter,styleWidth=getStyleSize(style.width);styleWidth!==!1&&(size.width=styleWidth+(isBorderBoxSizeOuter?0:paddingWidth+borderWidth));var styleHeight=getStyleSize(style.height);return styleHeight!==!1&&(size.height=styleHeight+(isBorderBoxSizeOuter?0:paddingHeight+borderHeight)),size.innerWidth=size.width-(paddingWidth+borderWidth),size.innerHeight=size.height-(paddingHeight+borderHeight),size.outerWidth=size.width+marginWidth,size.outerHeight=size.height+marginHeight,size}}return getSize2})}),dist_index_es_matchesSelector=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory():window2.matchesSelector=factory()})(window,function(){var matchesMethod=(function(){var ElemProto=window.Element.prototype;if(ElemProto.matches)return"matches";if(ElemProto.matchesSelector)return"matchesSelector";for(var prefixes=["webkit","moz","ms","o"],i=0;i<prefixes.length;i++){var prefix=prefixes[i],method=prefix+"MatchesSelector";if(ElemProto[method])return method}})();return function(elem,selector){return elem[matchesMethod](selector)}})}),dist_index_es_utils=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_matchesSelector):window2.fizzyUIUtils=factory(window2,window2.matchesSelector)})(window,function(window2,matchesSelector2){var utils2={};utils2.extend=function(a,b){for(var prop in b)a[prop]=b[prop];return a},utils2.modulo=function(num,div){return(num%div+div)%div};var arraySlice=Array.prototype.slice;
115utils2.makeArray=function(obj){if(Array.isArray(obj))return obj;if(obj==null)return[];var isArrayLike=typeof obj=="object"&&typeof obj.length=="number";return isArrayLike?arraySlice.call(obj):[obj]},utils2.removeFrom=function(ary,obj){var index=ary.indexOf(obj);index!=-1&&ary.splice(index,1)},utils2.getParent=function(elem,selector){for(;elem.parentNode&&elem!=document.body;)if(elem=elem.parentNode,matchesSelector2(elem,selector))return elem},utils2.getQueryElement=function(elem){return typeof elem=="string"?document.querySelector(elem):elem},utils2.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},utils2.filterFindElements=function(elems,selector){elems=utils2.makeArray(elems);var ffElems=[];return elems.forEach(function(elem){if(elem instanceof HTMLElement){if(!selector){ffElems.push(elem);return}matchesSelector2(elem,selector)&&ffElems.push(elem);for(var childElems=elem.querySelectorAll(selector),i=0;i<childElems.length;i++)ffElems.push(childElems[i])}}),ffElems},utils2.debounceMethod=function(_class,methodName,threshold){threshold=threshold||100;var method=_class.prototype[methodName],timeoutName=methodName+"Timeout";_class.prototype[methodName]=function(){var timeout=this[timeoutName];clearTimeout(timeout);var args=arguments,_this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args),delete _this[timeoutName]},threshold)}},utils2.docReady=function(callback){var readyState=document.readyState;readyState=="complete"||readyState=="interactive"?setTimeout(callback):document.addEventListener("DOMContentLoaded",callback)},utils2.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+"-"+$2}).toLowerCase()};var console2=window2.console;return utils2.htmlInit=function(WidgetClass,namespace){utils2.docReady(function(){var dashedNamespace=utils2.toDashed(namespace),dataAttr="data-"+dashedNamespace,dataAttrElems=document.querySelectorAll("["+dataAttr+"]"),jsDashElems=document.querySelectorAll(".js-"+dashedNamespace),elems=utils2.makeArray(dataAttrElems).concat(utils2.makeArray(jsDashElems)),dataOptionsAttr=dataAttr+"-options",jQuery2=window2.jQuery;elems.forEach(function(elem){var attr=elem.getAttribute(dataAttr)||elem.getAttribute(dataOptionsAttr),options;try{options=attr&&JSON.parse(attr)}catch(error){console2&&console2.error("Error parsing "+dataAttr+" on "+elem.className+": "+error);return}var instance=new WidgetClass(elem,options);jQuery2&&jQuery2.data(elem,namespace,instance)})})},utils2})}),dist_index_es_cell=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_getSize):(window2.Flickity=window2.Flickity||{},window2.Flickity.Cell=factory(window2,window2.getSize))})(window,function(window2,getSize2){function Cell(elem,parent){this.element=elem,this.parent=parent,this.create()}var proto=Cell.prototype;return proto.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},proto.destroy=function(){this.unselect(),this.element.style.position="";var side=this.parent.originSide;this.element.style[side]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},proto.getSize=function(){this.size=getSize2(this.element)},proto.setPosition=function(x){this.x=x,this.updateTarget(),this.renderPosition(x)},proto.updateTarget=proto.setDefaultTarget=function(){var marginProperty=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[marginProperty]+this.size.width*this.parent.cellAlign},proto.renderPosition=function(x){var sideOffset=this.parent.originSide==="left"?1:-1,adjustedX=this.parent.options.percentPosition?x*sideOffset*(this.parent.size.innerWidth/this.size.width):x*sideOffset;this.element.style.transform="translateX("+this.parent.getPositionValue(adjustedX)+")"},proto.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},proto.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},proto.wrapShift=function(shift){this.shift=shift,this.renderPosition(this.x+this.parent.slideableWidth*shift)},proto.remove=function(){this.element.parentNode.removeChild(this.element)},Cell})}),dist_index_es_slide=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory():(window2.Flickity=window2.Flickity||{},window2.Flickity.Slide=factory())})(window,function(){function Slide(parent){this.parent=parent,this.isOriginLeft=parent.originSide=="left",this.cells=[],this.outerWidth=0,this.height=0}var proto=Slide.prototype;return proto.addCell=function(cell2){if(this.cells.push(cell2),this.outerWidth+=cell2.size.outerWidth,this.height=Math.max(cell2.size.outerHeight,this.height),this.cells.length==1){this.x=cell2.x;var beginMargin=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=cell2.size[beginMargin]}},proto.updateTarget=function(){var endMargin=this.isOriginLeft?"marginRight":"marginLeft",lastCell=this.getLastCell(),lastMargin=lastCell?lastCell.size[endMargin]:0,slideWidth=this.outerWidth-(this.firstMargin+lastMargin);this.target=this.x+this.firstMargin+slideWidth*this.parent.cellAlign},proto.getLastCell=function(){return this.cells[this.cells.length-1]}
115,proto.select=function(){this.cells.forEach(function(cell2){cell2.select()})},proto.unselect=function(){this.cells.forEach(function(cell2){cell2.unselect()})},proto.getCellElements=function(){return this.cells.map(function(cell2){return cell2.element})},Slide})}),dist_index_es_animate=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_utils):(window2.Flickity=window2.Flickity||{},window2.Flickity.animatePrototype=factory(window2,window2.fizzyUIUtils))})(window,function(window2,utils2){var proto={};return proto.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},proto.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var previousX=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(previousX),this.isAnimating){var _this=this;requestAnimationFrame(function(){_this.animate()})}},proto.positionSlider=function(){var x=this.x;this.options.wrapAround&&this.cells.length>1&&(x=utils2.modulo(x,this.slideableWidth),x-=this.slideableWidth,this.shiftWrapCells(x)),this.setTranslateX(x,this.isAnimating),this.dispatchScrollEvent()},proto.setTranslateX=function(x,is3d){x+=this.cursorPosition,x=this.options.rightToLeft?-x:x;var translateX=this.getPositionValue(x);this.slider.style.transform=is3d?"translate3d("+translateX+",0,0)":"translateX("+translateX+")"},proto.dispatchScrollEvent=function(){var firstSlide=this.slides[0];if(firstSlide){var positionX=-this.x-firstSlide.target,progress=positionX/this.slidesWidth;this.dispatchEvent("scroll",null,[progress,positionX])}},proto.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},proto.getPositionValue=function(position){return this.options.percentPosition?Math.round(position/this.size.innerWidth*1e4)*.01+"%":Math.round(position)+"px"},proto.settle=function(previousX){var isResting=!this.isPointerDown&&Math.round(this.x*100)==Math.round(previousX*100);isResting&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},proto.shiftWrapCells=function(x){var beforeGap=this.cursorPosition+x;this._shiftCells(this.beforeShiftCells,beforeGap,-1);var afterGap=this.size.innerWidth-(x+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,afterGap,1)},proto._shiftCells=function(cells,gap,shift){for(var i=0;i<cells.length;i++){var cell2=cells[i],cellShift=gap>0?shift:0;cell2.wrapShift(cellShift),gap-=cell2.size.outerWidth}},proto._unshiftCells=function(cells){if(!(!cells||!cells.length))for(var i=0;i<cells.length;i++)cells[i].wrapShift(0)},proto.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},proto.applyForce=function(force){this.velocity+=force},proto.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},proto.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},proto.applyDragForce=function(){if(!(!this.isDraggable||!this.isPointerDown)){var dragVelocity=this.dragX-this.x,dragForce=dragVelocity-this.velocity;this.applyForce(dragForce)}},proto.applySelectedAttraction=function(){var dragDown=this.isDraggable&&this.isPointerDown;if(!(dragDown||this.isFreeScrolling||!this.slides.length)){var distance=this.selectedSlide.target*-1-this.x,force=distance*this.options.selectedAttraction;this.applyForce(force)}},proto})}),dist_index_es_flickity=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){if(module.exports)module.exports=factory(window2,dist_index_es_evEmitter,dist_index_es_getSize,dist_index_es_utils,dist_index_es_cell,dist_index_es_slide,dist_index_es_animate);else{var _Flickity=window2.Flickity;window2.Flickity=factory(window2,window2.EvEmitter,window2.getSize,window2.fizzyUIUtils,_Flickity.Cell,_Flickity.Slide,_Flickity.animatePrototype)}})(window,function(window2,EvEmitter,getSize2,utils2,Cell,Slide,animatePrototype){var jQuery2=window2.jQuery,getComputedStyle2=window2.getComputedStyle,console2=window2.console;function moveElements(elems,toElem){for(elems=utils2.makeArray(elems);elems.length;)toElem.appendChild(elems.shift())}var GUID=0,instances={};function Flickity(element,options){var queryElement=utils2.getQueryElement(element);if(!queryElement){console2&&console2.error("Bad element for Flickity: "+(queryElement||element));return}if(this.element=queryElement,this.element.flickityGUID){var instance=instances[this.element.flickityGUID];return instance&&instance.option(options),instance}jQuery2&&(this.$element=jQuery2(this.element)),this.options=utils2.extend({},this.constructor.defaults),this.option(options),this._create()}Flickity.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},Flickity.createMethods=[];var proto=Flickity.prototype;utils2.extend(proto,EvEmitter.prototype),proto._create=function(){var id=this.guid=++GUID;this.element.flickityGUID=id,instances[id]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&window2.addEventListener("resize",this);for(var eventName in this.options.on){var listener=this.options.on[eventName];this.on(eventName,listener)}Flickity.createMethods.forEach(function(method){this[method]()},this),this.options.watchCSS?this.watchCSS():this.activate()},proto.option=function(opts){utils2.extend(this.options,opts)},proto.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.get
115Size();var cellElems=this._filterFindCellElements(this.element.children);moveElements(cellElems,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")}},proto._createSlider=function(){var slider=document.createElement("div");slider.className="flickity-slider",slider.style[this.originSide]=0,this.slider=slider},proto._filterFindCellElements=function(elems){return utils2.filterFindElements(elems,this.options.cellSelector)},proto.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},proto._makeCells=function(elems){var cellElems=this._filterFindCellElements(elems),cells=cellElems.map(function(cellElem){return new Cell(cellElem,this)},this);return cells},proto.getLastCell=function(){return this.cells[this.cells.length-1]},proto.getLastSlide=function(){return this.slides[this.slides.length-1]},proto.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},proto._positionCells=function(index){index=index||0,this.maxCellHeight=index&&this.maxCellHeight||0;var cellX=0;if(index>0){var startCell=this.cells[index-1];cellX=startCell.x+startCell.size.outerWidth}for(var len=this.cells.length,i=index;i<len;i++){var cell2=this.cells[i];cell2.setPosition(cellX),cellX+=cell2.size.outerWidth,this.maxCellHeight=Math.max(cell2.size.outerHeight,this.maxCellHeight)}this.slideableWidth=cellX,this.updateSlides(),this._containSlides(),this.slidesWidth=len?this.getLastSlide().target-this.slides[0].target:0},proto._sizeCells=function(cells){cells.forEach(function(cell2){cell2.getSize()})},proto.updateSlides=function(){if(this.slides=[],!!this.cells.length){var slide2=new Slide(this);this.slides.push(slide2);var isOriginLeft=this.originSide=="left",nextMargin=isOriginLeft?"marginRight":"marginLeft",canCellFit=this._getCanCellFit();this.cells.forEach(function(cell2,i){if(!slide2.cells.length){slide2.addCell(cell2);return}var slideWidth=slide2.outerWidth-slide2.firstMargin+(cell2.size.outerWidth-cell2.size[nextMargin]);canCellFit.call(this,i,slideWidth)||(slide2.updateTarget(),slide2=new Slide(this),this.slides.push(slide2)),slide2.addCell(cell2)},this),slide2.updateTarget(),this.updateSelectedSlide()}},proto._getCanCellFit=function(){var groupCells=this.options.groupCells;if(groupCells){if(typeof groupCells=="number"){var number=parseInt(groupCells,10);return function(i){return i%number!==0}}}else return function(){return!1};var percentMatch=typeof groupCells=="string"&&groupCells.match(/^(\d+)%$/),percent=percentMatch?parseInt(percentMatch[1],10)/100:1;return function(i,slideWidth){return slideWidth<=(this.size.innerWidth+1)*percent}},proto._init=proto.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},proto.getSize=function(){this.size=getSize2(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var cellAlignShorthands={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return proto.setCellAlign=function(){var shorthand=cellAlignShorthands[this.options.cellAlign];this.cellAlign=shorthand?shorthand[this.originSide]:this.options.cellAlign},proto.setGallerySize=function(){if(this.options.setGallerySize){var height=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=height+"px"}},proto._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var gapX=this.cursorPosition,cellIndex=this.cells.length-1;this.beforeShiftCells=this._getGapCells(gapX,cellIndex,-1),gapX=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(gapX,0,1)}},proto._getGapCells=function(gapX,cellIndex,increment){for(var cells=[];gapX>0;){var cell2=this.cells[cellIndex];if(!cell2)break;cells.push(cell2),cellIndex+=increment,gapX-=cell2.size.outerWidth}return cells},proto._containSlides=function(){if(!(!this.options.contain||this.options.wrapAround||!this.cells.length)){var isRightToLeft=this.options.rightToLeft,beginMargin=isRightToLeft?"marginRight":"marginLeft",endMargin=isRightToLeft?"marginLeft":"marginRight",contentWidth=this.slideableWidth-this.getLastCell().size[endMargin],isContentSmaller=contentWidth<this.size.innerWidth,beginBound=this.cursorPosition+this.cells[0].size[beginMargin],endBound=contentWidth-this.size.innerWidth*(1-this.cellAlign);
115this.slides.forEach(function(slide2){isContentSmaller?slide2.target=contentWidth*this.cellAlign:(slide2.target=Math.max(slide2.target,beginBound),slide2.target=Math.min(slide2.target,endBound))},this)}},proto.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;if(this.emitEvent(type,emitArgs),jQuery2&&this.$element){type+=this.options.namespaceJQueryEvents?".flickity":"";var $event=type;if(event){var jQEvent=new jQuery2.Event(event);jQEvent.type=type,$event=jQEvent}this.$element.trigger($event,args)}},proto.select=function(index,isWrap,isInstant){if(this.isActive&&(index=parseInt(index,10),this._wrapSelect(index),(this.options.wrapAround||isWrap)&&(index=utils2.modulo(index,this.slides.length)),!!this.slides[index])){var prevIndex=this.selectedIndex;this.selectedIndex=index,this.updateSelectedSlide(),isInstant?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[index]),index!=prevIndex&&this.dispatchEvent("change",null,[index]),this.dispatchEvent("cellSelect")}},proto._wrapSelect=function(index){var len=this.slides.length,isWrapping=this.options.wrapAround&&len>1;if(!isWrapping)return index;var wrapIndex=utils2.modulo(index,len),delta=Math.abs(wrapIndex-this.selectedIndex),backWrapDelta=Math.abs(wrapIndex+len-this.selectedIndex),forewardWrapDelta=Math.abs(wrapIndex-len-this.selectedIndex);!this.isDragSelect&&backWrapDelta<delta?index+=len:!this.isDragSelect&&forewardWrapDelta<delta&&(index-=len),index<0?this.x-=this.slideableWidth:index>=len&&(this.x+=this.slideableWidth)},proto.previous=function(isWrap,isInstant){this.select(this.selectedIndex-1,isWrap,isInstant)},proto.next=function(isWrap,isInstant){this.select(this.selectedIndex+1,isWrap,isInstant)},proto.updateSelectedSlide=function(){var slide2=this.slides[this.selectedIndex];slide2&&(this.unselectSelectedSlide(),this.selectedSlide=slide2,slide2.select(),this.selectedCells=slide2.cells,this.selectedElements=slide2.getCellElements(),this.selectedCell=slide2.cells[0],this.selectedElement=this.selectedElements[0])},proto.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},proto.selectInitialIndex=function(){var initialIndex=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,!1,!0);return}if(initialIndex&&typeof initialIndex=="string"){var cell2=this.queryCell(initialIndex);if(cell2){this.selectCell(initialIndex,!1,!0);return}}var index=0;initialIndex&&this.slides[initialIndex]&&(index=initialIndex),this.select(index,!1,!0)},proto.selectCell=function(value,isWrap,isInstant){var cell2=this.queryCell(value);if(cell2){var index=this.getCellSlideIndex(cell2);this.select(index,isWrap,isInstant)}},proto.getCellSlideIndex=function(cell2){for(var i=0;i<this.slides.length;i++){var slide2=this.slides[i],index=slide2.cells.indexOf(cell2);if(index!=-1)return i}},proto.getCell=function(elem){for(var i=0;i<this.cells.length;i++){var cell2=this.cells[i];if(cell2.element==elem)return cell2}},proto.getCells=function(elems){elems=utils2.makeArray(elems);var cells=[];return elems.forEach(function(elem){var cell2=this.getCell(elem);cell2&&cells.push(cell2)},this),cells},proto.getCellElements=function(){return this.cells.map(function(cell2){return cell2.element})},proto.getParentCell=function(elem){var cell2=this.getCell(elem);return cell2||(elem=utils2.getParent(elem,".flickity-slider > *"),this.getCell(elem))},proto.getAdjacentCellElements=function(adjCount,index){if(!adjCount)return this.selectedSlide.getCellElements();index=index===void 0?this.selectedIndex:index;var len=this.slides.length;if(1+adjCount*2>=len)return this.getCellElements();for(var cellElems=[],i=index-adjCount;i<=index+adjCount;i++){var slideIndex=this.options.wrapAround?utils2.modulo(i,len):i,slide2=this.slides[slideIndex];slide2&&(cellElems=cellElems.concat(slide2.getCellElements()))}return cellElems},proto.queryCell=function(selector){if(typeof selector=="number")return this.cells[selector];if(typeof selector=="string"){if(selector.match(/^[#.]?[\d/]/))return;selector=this.element.querySelector(selector)}return this.getCell(selector)},proto.uiChange=function(){this.emitEvent("uiChange")},proto.childUIPointerDown=function(event){event.type!="touchstart"&&event.preventDefault(),this.focus()},proto.onresize=function(){this.watchCSS(),this.resize()},utils2.debounceMethod(Flickity,"onresize",150),proto.resize=function(){if(!(!this.isActive||this.isAnimating||this.isDragging)){this.get
115Size(),this.options.wrapAround&&(this.x=utils2.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var selectedElement=this.selectedElements&&this.selectedElements[0];this.selectCell(selectedElement,!1,!0)}},proto.watchCSS=function(){var watchOption=this.options.watchCSS;if(watchOption){var afterContent=getComputedStyle2(this.element,":after").content;afterContent.indexOf("flickity")!=-1?this.activate():this.deactivate()}},proto.onkeydown=function(event){var isNotFocused=document.activeElement&&document.activeElement!=this.element;if(!(!this.options.accessibility||isNotFocused)){var handler=Flickity.keyboardHandlers[event.keyCode];handler&&handler.call(this)}},Flickity.keyboardHandlers={37:function(){var leftMethod=this.options.rightToLeft?"next":"previous";this.uiChange(),this[leftMethod]()},39:function(){var rightMethod=this.options.rightToLeft?"previous":"next";this.uiChange(),this[rightMethod]()}},proto.focus=function(){var prevScrollY=window2.pageYOffset;this.element.focus({preventScroll:!0}),window2.pageYOffset!=prevScrollY&&window2.scrollTo(window2.pageXOffset,prevScrollY)},proto.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(cell2){cell2.destroy()}),this.element.removeChild(this.viewport),moveElements(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},proto.destroy=function(){this.deactivate(),window2.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),jQuery2&&this.$element&&jQuery2.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete instances[this.guid]},utils2.extend(proto,animatePrototype),Flickity.data=function(elem){elem=utils2.getQueryElement(elem);var id=elem&&elem.flickityGUID;return id&&instances[id]},utils2.htmlInit(Flickity,"flickity"),jQuery2&&jQuery2.bridget&&jQuery2.bridget("flickity",Flickity),Flickity.setJQuery=function(jq){jQuery2=jq},Flickity.Cell=Cell,Flickity.Slide=Slide,Flickity})}),dist_index_es_unipointer=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){/*!
116 * Unipointer v2.4.0
117 * base class for doing one thing with pointer event
118 * MIT license
119 */(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_evEmitter):window2.Unipointer=factory(window2,window2.EvEmitter)})(window,function(window2,EvEmitter){function noop2(){}function Unipointer(){}var proto=Unipointer.prototype=Object.create(EvEmitter.prototype);proto.bindStartEvent=function(elem){this._bindStartEvent(elem,!0)},proto.unbindStartEvent=function(elem){this._bindStartEvent(elem,!1)},proto._bindStartEvent=function(elem,isAdd){isAdd=isAdd===void 0?!0:isAdd;var bindMethod=isAdd?"addEventListener":"removeEventListener",startEvent="mousedown";"ontouchstart"in window2?startEvent="touchstart":window2.PointerEvent&&(startEvent="pointerdown"),elem[bindMethod](startEvent,this)},proto.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},proto.getTouch=function(touches){for(var i=0;i<touches.length;i++){var touch=touches[i];if(touch.identifier==this.pointerIdentifier)return touch}},proto.onmousedown=function(event){var button=event.button;button&&button!==0&&button!==1||this._pointerDown(event,event)},proto.ontouchstart=function(event){this._pointerDown(event,event.changedTouches[0])},proto.onpointerdown=function(event){this._pointerDown(event,event)},proto._pointerDown=function(event,pointer){event.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=pointer.pointerId!==void 0?pointer.pointerId:pointer.identifier,this.pointerDown(event,pointer))},proto.pointerDown=function(event,pointer){this._bindPostStartEvents(event),this.emitEvent("pointerDown",[event,pointer])};var postStartEvents={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return proto._bindPostStartEvents=function(event){if(event){var events=postStartEvents[event.type];
vendor: 4,582 bytes, lines 119-123
119events.forEach(function(eventName){window2.addEventListener(eventName,this)},this),this._boundPointerEvents=events}},proto._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(eventName){window2.removeEventListener(eventName,this)},this),delete this._boundPointerEvents)},proto.onmousemove=function(event){this._pointerMove(event,event)},proto.onpointermove=function(event){event.pointerId==this.pointerIdentifier&&this._pointerMove(event,event)},proto.ontouchmove=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerMove(event,touch)},proto._pointerMove=function(event,pointer){this.pointerMove(event,pointer)},proto.pointerMove=function(event,pointer){this.emitEvent("pointerMove",[event,pointer])},proto.onmouseup=function(event){this._pointerUp(event,event)},proto.onpointerup=function(event){event.pointerId==this.pointerIdentifier&&this._pointerUp(event,event)},proto.ontouchend=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerUp(event,touch)},proto._pointerUp=function(event,pointer){this._pointerDone(),this.pointerUp(event,pointer)},proto.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer])},proto._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},proto._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},proto.pointerDone=noop2,proto.onpointercancel=function(event){event.pointerId==this.pointerIdentifier&&this._pointerCancel(event,event)},proto.ontouchcancel=function(event){var touch=this.getTouch(event.changedTouches);touch&&this._pointerCancel(event,touch)},proto._pointerCancel=function(event,pointer){this._pointerDone(),this.pointerCancel(event,pointer)},proto.pointerCancel=function(event,pointer){this.emitEvent("pointerCancel",[event,pointer])},Unipointer.getPointerPoint=function(pointer){return{x:pointer.pageX,y:pointer.pageY}},Unipointer})}),dist_index_es_unidragger=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){/*!
120 * Unidragger v2.4.0
121 * Draggable base class
122 * MIT license
123 */(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_unipointer):window2.Unidragger=factory(window2,window2.Unipointer)})(window,function(window2,Unipointer){function Unidragger(){}var proto=Unidragger.prototype=Object.create(Unipointer.prototype);proto.bindHandles=function(){this._bindHandles(!0)},proto.unbindHandles=function(){this._bindHandles(!1)},proto._bindHandles=function(isAdd){isAdd=isAdd===void 0?!0:isAdd;for(var bindMethod=isAdd?"addEventListener":"removeEventListener",touchAction=isAdd?this._touchActionValue:"",i=0;i<this.handles.length;i++){var handle=this.handles[i];this._bindStartEvent(handle,isAdd),handle[bindMethod]("click",this),window2.PointerEvent&&(handle.style.touchAction=touchAction)}},proto._touchActionValue="none",proto.pointerDown=function(event,pointer){var isOkay=this.okayPointerDown(event);isOkay&&(this.pointerDownPointer={pageX:pointer.pageX,pageY:pointer.pageY},event.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(event),this.emitEvent("pointerDown",[event,pointer]))};var cursorNodes={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},clickTypes={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return proto.okayPointerDown=function(event){var isCursorNode=cursorNodes[event.target.nodeName],isClickType=clickTypes[event.target.type],isOkay=!isCursorNode||isClickType;return isOkay||this._pointerReset(),isOkay},proto.pointerDownBlur=function(){var focused=document.activeElement,canBlur=focused&&focused.blur&&focused!=document.body;canBlur&&focused.blur()},proto.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.emitEvent("pointerMove",[event,pointer,moveVector]),this._dragMove(event,pointer,moveVector)},proto._dragPointerMove=function(event,pointer){var moveVector={x:pointer.pageX-this.pointerDownPointer.pageX,y:pointer.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(moveVector)&&this._dragStart(event,pointer),moveVector},proto.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>3||Math.abs(moveVector.y)>3},proto.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer]),this._dragPointerUp(event,pointer)},proto._dragPointerUp=function(event,pointer){this.isDragging?this._dragEnd(event,pointer):this._staticClick(event,pointer)},proto._dragStart=function(event,pointer){this.isDragging=!0,this.isPreventing
123Clicks=!0,this.dragStart(event,pointer)},proto.dragStart=function(event,pointer){this.emitEvent("dragStart",[event,pointer])},proto._dragMove=function(event,pointer,moveVector){this.isDragging&&this.dragMove(event,pointer,moveVector)},proto.dragMove=function(event,pointer,moveVector){event.preventDefault(),this.emitEvent("dragMove",[event,pointer,moveVector])},proto._dragEnd=function(event,pointer){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(event,pointer)},proto.dragEnd=function(event,pointer){this.emitEvent("dragEnd",[event,pointer])},proto.onclick=function(event){this.isPreventingClicks&&event.preventDefault()},proto._staticClick=function(event,pointer){this.isIgnoringMouseUp&&event.type=="mouseup"||(this.staticClick(event,pointer),event.type!="mouseup"&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},proto.staticClick=function(event,pointer){this.emitEvent("staticClick",[event,pointer])},Unidragger.getPointerPoint=Unipointer.getPointerPoint,Unidragger})}),dist_index_es_drag=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_flickity,dist_index_es_unidragger,dist_index_es_utils):window2.Flickity=factory(window2,window2.Flickity,window2.Unidragger,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unidragger,utils2){utils2.extend(Flickity.defaults,{draggable:">1",dragThreshold:3}),Flickity.createMethods.push("_createDrag");var proto=Flickity.prototype;utils2.extend(proto,Unidragger.prototype),proto._touchActionValue="pan-y",proto._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},proto.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},proto.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},proto.updateDraggable=function(){this.options.draggable==">1"?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},proto.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},proto.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},proto._uiChangeDrag=function(){delete this.isFreeScrolling},proto.pointerDown=function(event,pointer){if(!this.isDraggable){this._pointerDownDefault(event,pointer);return}var isOkay=this.okayPointerDown(event);isOkay&&(this._pointerDownPreventDefault(event),this.pointerDownFocus(event),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=getScrollPosition(),window2.addEventListener("scroll",this),this._pointerDownDefault(event,pointer))},proto._pointerDownDefault=function(event,pointer){this.pointerDownPointer={pageX:pointer.pageX,pageY:pointer.pageY},this._bindPostStartEvents(event),this.dispatchEvent("pointerDown",event,[pointer])};var focusNodes={INPUT:!0,TEXTAREA:!0,SELECT:!0};proto.pointerDownFocus=function(event){var isFocusNode=focusNodes[event.target.nodeName];isFocusNode||this.focus()},proto._pointerDownPreventDefault=function(event){var isTouchStart=event.type=="touchstart",isTouchPointer=event.pointerType=="touch",isFocusNode=focusNodes[event.target.nodeName];!isTouchStart&&!isTouchPointer&&!isFocusNode&&event.preventDefault()},proto.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>this.options.dragThreshold},proto.pointerUp=function(event,pointer){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",event,[pointer]),this._dragPointerUp(event,pointer)},proto.pointerDone=function(){window2.removeEventListener("scroll",this),delete this.pointerDownScroll},proto.dragStart=function(event,pointer){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),window2.removeEventListener("scroll",this),this.dispatchEvent("dragStart",event,[pointer]))},proto.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.dispatchEvent("pointerMove",event,[pointer,moveVector]),this._dragMove(event,pointer,moveVector)},proto.dragMove=function(event,pointer,moveVector){if(this.isDraggable){event.preventDefault(),this.previousDragX=this.dragX;var direction=this.options.rightToLeft?-1:1;this.options.wrapAround&&(moveVector.x%=this.slideableWidth);var dragX=this.dragStartPosition+moveVector.x*direction;if(!this.options.wrapAround&&this.slides.length){var originBound=Math.max(-this.slides[0].target,this.dragStartPosition);dragX=dragX>originBound?(dragX+originBound)*.5:dragX;var endBound=Math.min(-this.getLastSlide().target,this.dragStartPosition);dragX=dragX<endBound?(dragX+endBound)*.5:dragX}this.dragX=dragX,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",event,[pointer,moveVector])}},proto.dragEnd=function(event,pointer){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var index=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var restingX=this.getRestingPosition();this.isFreeScrolling=-restingX>this.slides[0].target&&-restingX<this.getLastSlide().target}else!this.options.freeScroll&&index==this.selectedIndex&&(index+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(index),delete this.isDragSelect,this.dispatchEvent("dragEnd",event,[pointer])}},proto.dragEndRestingSelect=function(){var restingX=this.getRestingPosition(),distance=Math.abs(this.getSlideDistance(-restingX,this.selectedIndex)),positiveResting=this._getClosestResting(restingX,distance,1),negativeResting=this._getClosestResting(restingX,distance,-1),index=
123positiveResting.distance<negativeResting.distance?positiveResting.index:negativeResting.index;return index},proto._getClosestResting=function(restingX,distance,increment){for(var index=this.selectedIndex,minDistance=1/0,condition=this.options.contain&&!this.options.wrapAround?function(dist,minDist){return dist<=minDist}:function(dist,minDist){return dist<minDist};condition(distance,minDistance)&&(index+=increment,minDistance=distance,distance=this.getSlideDistance(-restingX,index),distance!==null);)distance=Math.abs(distance);return{distance:minDistance,index:index-increment}},proto.getSlideDistance=function(x,index){var len=this.slides.length,isWrapAround=this.options.wrapAround&&len>1,slideIndex=isWrapAround?utils2.modulo(index,len):index,slide2=this.slides[slideIndex];if(!slide2)return null;var wrap=isWrapAround?this.slideableWidth*Math.floor(index/len):0;return x-(slide2.target+wrap)},proto.dragEndBoostSelect=function(){if(this.previousDragX===void 0||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var distance=this.getSlideDistance(-this.dragX,this.selectedIndex),delta=this.previousDragX-this.dragX;return distance>0&&delta>0?1:distance<0&&delta<0?-1:0},proto.staticClick=function(event,pointer){var clickedCell=this.getParentCell(event.target),cellElem=clickedCell&&clickedCell.element,cellIndex=clickedCell&&this.cells.indexOf(clickedCell);this.dispatchEvent("staticClick",event,[pointer,cellElem,cellIndex])},proto.onscroll=function(){var scroll=getScrollPosition(),scrollMoveX=this.pointerDownScroll.x-scroll.x,scrollMoveY=this.pointerDownScroll.y-scroll.y;(Math.abs(scrollMoveX)>3||Math.abs(scrollMoveY)>3)&&this._pointerDone()};function getScrollPosition(){return{x:window2.pageXOffset,y:window2.pageYOffset}}return Flickity})}),dist_index_es_prevNextButton=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_flickity,dist_index_es_unipointer,dist_index_es_utils):factory(window2,window2.Flickity,window2.Unipointer,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unipointer,utils2){var svgURI="http://www.w3.org/2000/svg";function PrevNextButton(direction,parent){this.direction=direction,this.parent=parent,this._create()}PrevNextButton.prototype=Object.create(Unipointer.prototype),PrevNextButton.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var leftDirection=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==leftDirection;var element=this.element=document.createElement("button");element.className="flickity-button flickity-prev-next-button",element.className+=this.isPrevious?" previous":" next",element.setAttribute("type","button"),this.disable(),element.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var svg=this.createSVG();element.appendChild(svg),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},PrevNextButton.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},PrevNextButton.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},PrevNextButton.prototype.createSVG=function(){var svg=document.createElementNS(svgURI,"svg");svg.setAttribute("class","flickity-button-icon"),svg.setAttribute("viewBox","0 0 100 100");var path=document.createElementNS(svgURI,"path"),pathMovements=getArrowMovements(this.parent.options.arrowShape);return path.setAttribute("d",pathMovements),path.setAttribute("class","arrow"),this.isLeft||path.setAttribute("transform","translate(100, 100) rotate(180) "),svg.appendChild(path),svg};function getArrowMovements(shape){return typeof shape=="string"?shape:"M "+shape.x0+",50 L "+shape.x1+","+(shape.y1+50)+" L "+shape.x2+","+(shape.y2+50)+" L "+shape.x3+",50  L "+shape.x2+","+(50-shape.y2)+" L "+shape.x1+","+(50-shape.y1)+" Z"}PrevNextButton.prototype.handleEvent=utils2.handleEvent,PrevNextButton.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var method=this.isPrevious?"previous":"next";this.parent[method]()}},PrevNextButton.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},PrevNextButton.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},PrevNextButton.prototype.update=function(){var slides=this.parent.slides;if(this.parent.options.wrapAround&&slides.length>1){this.enable();return}
123var lastIndex=slides.length?slides.length-1:0,boundIndex=this.isPrevious?0:lastIndex,method=this.parent.selectedIndex==boundIndex?"disable":"enable";this[method]()},PrevNextButton.prototype.destroy=function(){this.deactivate(),this.allOff()},utils2.extend(Flickity.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),Flickity.createMethods.push("_createPrevNextButtons");var proto=Flickity.prototype;return proto._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new PrevNextButton(-1,this),this.nextButton=new PrevNextButton(1,this),this.on("activate",this.activatePrevNextButtons))},proto.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},proto.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},Flickity.PrevNextButton=PrevNextButton,Flickity})}),dist_index_es_pageDots=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_flickity,dist_index_es_unipointer,dist_index_es_utils):factory(window2,window2.Flickity,window2.Unipointer,window2.fizzyUIUtils)})(window,function(window2,Flickity,Unipointer,utils2){function PageDots(parent){this.parent=parent,this._create()}PageDots.prototype=Object.create(Unipointer.prototype),PageDots.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},PageDots.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},PageDots.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},PageDots.prototype.setDots=function(){var delta=this.parent.slides.length-this.dots.length;delta>0?this.addDots(delta):delta<0&&this.removeDots(-delta)},PageDots.prototype.addDots=function(count){for(var fragment=document.createDocumentFragment(),newDots=[],length=this.dots.length,max=length+count,i=length;i<max;i++){var dot=document.createElement("li");dot.className="dot",dot.setAttribute("aria-label","Page dot "+(i+1)),fragment.appendChild(dot),newDots.push(dot)}this.holder.appendChild(fragment),this.dots=this.dots.concat(newDots)},PageDots.prototype.removeDots=function(count){var removeDots=this.dots.splice(this.dots.length-count,count);removeDots.forEach(function(dot){this.holder.removeChild(dot)},this)},PageDots.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},PageDots.prototype.onTap=PageDots.prototype.onClick=function(event){var target=event.target;if(target.nodeName=="LI"){this.parent.uiChange();var index=this.dots.indexOf(target);this.parent.select(index)}},PageDots.prototype.destroy=function(){this.deactivate(),this.allOff()},Flickity.PageDots=PageDots,utils2.extend(Flickity.defaults,{pageDots:!0}),Flickity.createMethods.push("_createPageDots");var proto=Flickity.prototype;return proto._createPageDots=function(){this.options.pageDots&&(this.pageDots=new PageDots(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},proto.activatePageDots=function(){this.pageDots.activate()},proto.updateSelectedPageDots=function(){this.pageDots.updateSelected()},proto.updatePageDots=function(){this.pageDots.setDots()},proto.deactivatePageDots=function(){this.pageDots.deactivate()},Flickity.PageDots=PageDots,Flickity})}),dist_index_es_player=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(dist_index_es_evEmitter,dist_index_es_utils,dist_index_es_flickity):factory(window2.EvEmitter,window2.fizzyUIUtils,window2.Flickity)})(window,function(EvEmitter,utils2,Flickity){function Player(parent){this.parent=parent,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}Player.prototype=Object.create(EvEmitter.prototype),Player.prototype.play=function(){if(this.state!="playing"){var isPageHidden=document.hidden;if(isPageHidden){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},Player.prototype.tick=function(){if(this.state=="playing"){var time=this.parent.options.autoPlay;time=typeof time=="number"?time:3e3;var _this=this;this.clear(),this.timeout=setTimeout(function(){_this.parent.next(!0),_this.tick()},time)}},Player.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},Player.prototype.clear=function(){clearTimeout(this.timeout)},Player.prototype.pause=function(){this.state=="playing"&&(this.state="paused",this.clear())},Player.prototype.unpause=function(){this.state=="paused"&&this.play()},Player.prototype.visibilityChange=function(){var isPageHidden=document.hidden;this[isPageHidden?"pause":"unpause"]()},Player.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},utils2.extend(Flickity.defaults,{pauseAutoPlayOnHover:!0}),Flickity.createMethods.push("_createPlayer");var proto=Flickity.prototype;return proto._createPlayer=function(){this.player=new Player(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},proto.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},proto.playPlayer=function(){this.player.play()},proto.stopPlayer=function(){this.player.stop()},proto.pausePlayer=function(){this.player.pause()},proto.unpausePlayer=function(){this.player.unpause()},proto.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},proto.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},proto.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},Flickity.Player=Player,Flickity})}),dist_index_es_addRemoveCell=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_flickity,dist_index_es_utils):factory(window2,window2.Flickity,window2.fizzyUIUtils)})(window,function(window2,Flickity,utils2){function getCellsFragment(cells){var fragment=document.createDocumentFragment();
123return cells.forEach(function(cell2){fragment.appendChild(cell2.element)}),fragment}var proto=Flickity.prototype;return proto.insert=function(elems,index){var cells=this._makeCells(elems);if(!(!cells||!cells.length)){var len=this.cells.length;index=index===void 0?len:index;var fragment=getCellsFragment(cells),isAppend=index==len;if(isAppend)this.slider.appendChild(fragment);else{var insertCellElement=this.cells[index].element;this.slider.insertBefore(fragment,insertCellElement)}if(index===0)this.cells=cells.concat(this.cells);else if(isAppend)this.cells=this.cells.concat(cells);else{var endCells=this.cells.splice(index,len-index);this.cells=this.cells.concat(cells).concat(endCells)}this._sizeCells(cells),this.cellChange(index,!0)}},proto.append=function(elems){this.insert(elems,this.cells.length)},proto.prepend=function(elems){this.insert(elems,0)},proto.remove=function(elems){var cells=this.getCells(elems);if(!(!cells||!cells.length)){var minCellIndex=this.cells.length-1;cells.forEach(function(cell2){cell2.remove();var index=this.cells.indexOf(cell2);minCellIndex=Math.min(index,minCellIndex),utils2.removeFrom(this.cells,cell2)},this),this.cellChange(minCellIndex,!0)}},proto.cellSizeChange=function(elem){var cell2=this.getCell(elem);if(cell2){cell2.getSize();var index=this.cells.indexOf(cell2);this.cellChange(index)}},proto.cellChange=function(changedCellIndex,isPositioningSlider){var prevSelectedElem=this.selectedElement;this._positionCells(changedCellIndex),this._getWrapShiftCells(),this.setGallerySize();var cell2=this.getCell(prevSelectedElem);cell2&&(this.selectedIndex=this.getCellSlideIndex(cell2)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[changedCellIndex]),this.select(this.selectedIndex),isPositioningSlider&&this.positionSliderAtSelected()},Flickity})}),dist_index_es_lazyload=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){(function(window2,factory){module.exports?module.exports=factory(window2,dist_index_es_flickity,dist_index_es_utils):factory(window2,window2.Flickity,window2.fizzyUIUtils)})(window,function(window2,Flickity,utils2){Flickity.createMethods.push("_createLazyload");var proto=Flickity.prototype;proto._createLazyload=function(){this.on("select",this.lazyLoad)},proto.lazyLoad=function(){var lazyLoad=this.options.lazyLoad;if(lazyLoad){var adjCount=typeof lazyLoad=="number"?lazyLoad:0,cellElems=this.getAdjacentCellElements(adjCount),lazyImages=[];
123cellElems.forEach(function(cellElem){var lazyCellImages=getCellLazyImages(cellElem);lazyImages=lazyImages.concat(lazyCellImages)}),lazyImages.forEach(function(img){new LazyLoader2(img,this)},this)}};function getCellLazyImages(cellElem){if(cellElem.nodeName=="IMG"){var lazyloadAttr=cellElem.getAttribute("data-flickity-lazyload"),srcAttr=cellElem.getAttribute("data-flickity-lazyload-src"),srcsetAttr=cellElem.getAttribute("data-flickity-lazyload-srcset");if(lazyloadAttr||srcAttr||srcsetAttr)return[cellElem]}var lazySelector="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",imgs=cellElem.querySelectorAll(lazySelector);return utils2.makeArray(imgs)}function LazyLoader2(img,flickity2){this.img=img,this.flickity=flickity2,this.load()}return LazyLoader2.prototype.handleEvent=utils2.handleEvent,LazyLoader2.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var src=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),srcset=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=src,srcset&&this.img.setAttribute("srcset",srcset),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},LazyLoader2.prototype.onload=function(event){this.complete(event,"flickity-lazyloaded")},LazyLoader2.prototype.onerror=function(event){this.complete(event,"flickity-lazyerror")},LazyLoader2.prototype.complete=function(event,className){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var cell2=this.flickity.getParentCell(this.img),cellElem=cell2&&cell2.element;this.flickity.cellSizeChange(cellElem),this.img.classList.add(className),this.flickity.dispatchEvent("lazyLoad",event,cellElem)},Flickity.LazyLoader=LazyLoader2,Flickity})}),dist_index_es_js=pxs_complementary_products_dist_index_es_createCommonjsModule(function(module){/*!
124 * Flickity v2.3.0
125 * Touch, responsive, flickable carousels
126 *
127 * Licensed GPLv3 for open source use
128 * or Flickity Commercial License for commercial use
129 *
130 * https://flickity.metafizzy.co
131 * Copyright 2015-2021 Metafizzy
132 */(function(window2,factory){module.exports&&(module.exports=factory(dist_index_es_flickity,dist_index_es_drag,dist_index_es_prevNextButton,dist_index_es_pageDots,dist_index_es_player,dist_index_es_addRemoveCell,dist_index_es_lazyload))})(window,function(Flickity){return Flickity})}),ComplementaryProducts=(function(){function ComplementaryProducts2(options){pxs_complementary_products_dist_index_es_classCallCheck(this,ComplementaryProducts2),this.sectionEl=options.sectionEl,this.sectionId=options.sectionId,this.events=new dist_index_es_EventHandler,this.productId=options.productId,this.includeIndicatorDots=options.includeIndicatorDots||!1,this.recommendationsRoute=options.productRecommendationsRoute,this.limit=options.limit;var defaultArrowShape={x0:10,x1:60,y1:50,x2:65,y2:45,x3:20};this.arrowShape=options.arrowShape||defaultArrowShape,this.recommendationsEl=this.sectionEl.querySelector("[data-complementary-products]"),this.loadRecommendations()}return pxs_complementary_products_dist_index_es_createClass(ComplementaryProducts2,[{key:"loadRecommendations",value:function(){var _this=this,url="".concat(this.recommendationsRoute,"?section_id=").concat(this.sectionId,"&limit=").concat(this.limit,"&product_id=").concat(this.productId,"&intent=complementary");AsyncView.load(url,{view:""}).then(function(_ref){var html2=_ref.html;if(!(index_es_typeof(html2)==="object"&&Object.keys(html2).length===0)){if(html2.trim().length===0){_this.recommendationsEl.classList.add("complementary-products--no-recommendations");return}_this.recommendationsEl.innerHTML=html2,index_es.instance||index_es.init(),index_es.watch(_this.recommendationsEl);var slider=_this.recommendationsEl.querySelector("[data-slider]"),slides=_this.recommendationsEl.querySelectorAll("[data-slide]");slides.length>1&&(_this.slider=new dist_index_es_js(slider,{cellSelector:"[data-sli
132de]",accessibility:!1,adaptiveHeight:!1,autoPlay:!1,cellAlign:"left",contain:!0,imagesLoaded:!0,pageDots:_this.includeIndicatorDots,wrapAround:!0,arrowShape:_this.arrowShape}),_this.events.register(slider,"rimg:load",function(){_this.slider.resize()}))}})}},{key:"unload",value:function(){this.slider.destroy()}}]),ComplementaryProducts2})();const pxs_complementary_products_dist_index_es=ComplementaryProducts;function shopify_surface_pick_up_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function shopify_surface_pick_up_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function shopify_surface_pick_up_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&shopify_surface_pick_up_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&shopify_surface_pick_up_dist_index_es_defineProperties(Constructor,staticProps),Constructor}function dist_index_es_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function dist_index_es_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function dist_index_es_objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?dist_index_es_ownKeys(Object(source),!0).forEach(function(key){dist_index_es_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):dist_index_es_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}var LOCAL_STORAGE_KEY="pxu-shopify-surface-pick-up",loadingClass="surface-pick-up--loading",isNotExpired=function(timestamp){return timestamp+1e3*60*60<=Date.now()},removeTrailingSlash=function(s){return s.replace(/(.*)\/$/,"$1")},calculateDistance=function(latitude1,longitude1,latitude2,longitude2,unitSystem){var dtor=Math.PI/180,radius=unitSystem==="metric"?6378.14:3959,rlat1=latitude1*dtor,rlong1=longitude1*dtor,rlat2=latitude2*dtor,rlong2=longitude2*dtor,dlon=rlong1-rlong2,dlat=rlat1-rlat2,a=Math.pow(Math.sin(dlat/2),2)+Math.cos(rlat1)*Math.cos(rlat2)*Math.pow(Math.sin(dlon/2),2),c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return radius*c},getGeoLocation=function(){return new Promise(function(resolve,reject){var options={maximumAge:36e5,timeout:5e3};navigator.geolocation?navigator.geolocation.getCurrentPosition(function(_ref){var coords=_ref.coords;return resolve(coords)},reject,options):reject()})},index_es_location=null,setLocation=function(_ref2){var latitude=_ref2.latitude,longitude=_ref2.longitude;return new Promise(function(resolve){var cachedLocation=JSON.parse(localStorage.getItem(LOCAL_STORAGE_KEY)),newData={latitude,longitude,timestamp:Date.now()};if(index_es_location=newData,localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify(newData)),cachedLocation!==null&&cachedLocation.latitude===latitude&&cachedLocation.longitude===longitude&&isNotExpired(cachedLocation.timestamp)){resolve({latitude,longitude});return}fetch("/localization.json",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({latitude,longitude})}).then(function(){return resolve({latitude,longitude})})})},getLocation=function(){return new Promise(function(resolve){if(index_es_location&&isNotExpired(index_es_location.timestamp)){resolve(index_es_location);return}resolve(getGeoLocation().then(setLocation))})},SurfacePickUp=(function(){function SurfacePickUp2(el,options){shopify_surface_pick_up_dist_index_es_classCallCheck(this,SurfacePickUp2),this.el=el,this.options=dist_index_es_objectSpread2
132({root_url:window.Theme&&window.Theme.routes&&window.Theme.routes.root_url||""},options),this.options.root_url=removeTrailingSlash(this.options.root_url),this.callbacks=[],this.onBtnPress=null,this.latestVariantId=null,this.pickUpEnabled=localStorage.getItem(LOCAL_STORAGE_KEY)!==null}return shopify_surface_pick_up_dist_index_es_createClass(SurfacePickUp2,[{key:"load",value:function(variantId){var _this=this;this.latestVariantId=variantId;var getLocationThenInjectData=function(){return getLocation().then(function(coords){return _this._getData(variantId).then(function(data){return _this._injectData(data,coords)})}).catch(function(){return _this._getData(variantId).then(function(data){return _this._injectData(data,null)})})};return this.el.classList.add(loadingClass),this.pickUpEnabled?getLocationThenInjectData():this._getData(variantId).then(function(data){return data.items.length>0?(_this.pickUpEnabled=!0,_this._injectData(data,null),getLocationThenInjectData()):_this._injectData(data,null)})}},{key:"onModalRequest",value:function(callback){this.callbacks.indexOf(callback)>=0||this.callbacks.push(callback)}},{key:"offModalRequest",value:function(callback){this.callbacks.splice(this.callbacks.indexOf(callback))}},{key:"unload",value:function(){this.callbacks=[],this.el.innerHTML=""}},{key:"_getData",value:function(variantId){var _this2=this;return new Promise(function(resolve){var xhr=new XMLHttpRequest,requestUrl="".concat(_this2.options.root_url,"/variants/").concat(variantId,"/?section_id=surface-pick-up");xhr.open("GET",requestUrl,!0),xhr.onload=function(){var el=xhr.response,embed=el.querySelector('[data-html="surface-pick-up-embed"]'),itemsContainer=el.querySelector('[data-html="surface-pick-up-items"]'),items=itemsContainer.content.querySelectorAll("[data-surface-pick-up-item]");resolve({embed,itemsContainer,items,variantId})},xhr.onerror=function(){resolve({embed:{innerHTML:""},itemsContainer:{innerHTML:""},items:[],variantId})},xhr.responseType="document",xhr.send()})}},{key:"_injectData",value:function(_ref3,userCoords){var _this3=this,embed=_ref3.embed,itemsContainer=_ref3.itemsContainer,items=_ref3.items,variantId=_ref3.variantId;if(variantId!==this.latestVariantId)return null;if(this.el.innerHTML=embed.innerHTML,this.el.classList.remove(loadingClass),items.length===0)return this.el;var processedDistances=!1,processDistances=function(){processedDistances||(processedDistances=!0,items.forEach(function(item){var distanceEl=item.querySelector("[data-distance]"),distanceUnitEl=item.querySelector("[data-distance-unit]"),unitSystem=distanceUnitEl.dataset.distanceUnit,itemLatitude=parseFloat(distanceEl.dataset.latitude),itemLongitude=parseFloat(distanceEl.dataset.longitude);if(userCoords&&isFinite(itemLatitude)&&isFinite(itemLongitude)){var distance=calculateDistance(userCoords.latitude,userCoords.longitude,itemLatitude,itemLongitude,unitSystem);distanceEl.innerHTML=distance.toFixed(1)}else distanceEl.remove(),distanceUnitEl.remove()}))};return this.el.querySelector("[data-surface-pick-up-embed-modal-btn]").addEventListener("click",function(){processDistances(),_this3.callbacks.forEach(function(callback){return callback(itemsContainer.innerHTML)})}),this.el}}]),SurfacePickUp2})();const shopify_surface_pick_up_dist_index_es=SurfacePickUp;/*!
133 * @pixelunion/pxs-gift-card-recipient-form v1.1.0
134 * (c) 2024 Pixel Union
135 */function pxs_gift_card_recipient_form_dist_index_es_unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function pxs_gift_card_recipient_form_dist_index_es_createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var pxs_gift_card_recipient_form_dist_index_es_EventHandler_1=pxs_gift_card_recipient_form_dist_index_es_createCommonjsModule(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEac
135h(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),pxs_gift_card_recipient_form_dist_index_es_EventHandler=pxs_gift_card_recipient_form_dist_index_es_unwrapExports(pxs_gift_card_recipient_form_dist_index_es_EventHandler_1);/*!
136   * @pixelunion/animations v0.1.0
137   * (c) 2019 Pixel Union
138   * Released under the UNLICENSED license.
139  */function pxs_gift_card_recipient_form_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function pxs_gift_card_recipient_form_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function pxs_gift_card_recipient_form_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&pxs_gift_card_recipient_form_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&pxs_gift_card_recipient_form_dist_index_es_defineProperties(Constructor,staticProps),Constructor}function raf(){return new Promise(function(resolve){window.requestAnimationFrame(resolve)})}var Animation=(function(){function Animation2(options){pxs_gift_card_recipient_form_dist_index_es_classCallCheck(this,Animation2),this._el=options.el,this.cancelRunning=null,this._state=options.state||"initial",this.initialState=this._state,this.stateAttribute=options.stateAttribute||"data-animation-state",this.stateChangeAttribute=options.stateChangeAttribute||"data-animation",this.endEvent=options.endEvent||"transitionend",this.hold=!!options.hold,this.onStart=options.onStart||function(){},this.activeEventHandler=null}return pxs_gift_card_recipient_form_dist_index_es_createClass(Animation2,[{key:"isState",value:function(state2){return state2===this._state}},{key:"animateTo",value:function(state2){var _this=this,options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},from=this._el.dataset[this.stateAttribute]||this._state,to=state2||this.initialState,force=options.force,hold="hold"in options?options.hold:this.hold;return new Promise(function(resolve){if(_this.cancelRunning&&_this.cancelRunning(),from===to){_this._el.removeAttribute(_this.stateChangeAttribute),resolve(from,null);return}var running=!0;if(_this.cancelRunning=function(){running=!1,resolve(null,null)},_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=null,force){_this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to,hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,null);return}raf().then(function(){if(!running)throw new Error("cancelled");return _this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),raf()}).then(function(){if(!running)throw new Error("cancelled");_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=function(e){e.target!==_this._el||!running||(_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,e))},_this._el.addEventListener(_this.endEvent,_this.activeEventHandler),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to}).catch(function(error){if(error.message!=="cancelled")throw error})})}},{key:"unload",value:function(){this._el.removeEventListener(this.endEvent,this.activeEventHandler),this.activeEventHandler=null}},{key:"el",get:function(){return this._el}},{key:"state",get:function(){return this._state}}]),Animation2})();function transition(options){return new Animation(options)}class RecipientForm{constructor(el){this.el=el,this.events=new pxs_gift_card_recipient_form_dist_index_es_EventHandler,this.recipientForm=this.el.querySelector("[data-recipient-form]"),this.recipientFormInputs=this.el.querySelectorAll("[data-recipient-form-input]"),this.recipientFormEmailInput=this.el.querySelector("[data-recipient-form-email-input]"),this.disclosure=this.el.querySelector("[data-recipient-disclosure]"),this.disclosureCheckbox=this.el.querySelector("[data-recipient-disclosure-checkbox]"),this.checkmark=this.disclosure.querySelector(".checkmark"),this.checkmarkCheck=this.disclosure.querySelector(".checkmark__check"),this.fillAnimation=transition({el:this.checkmark}),this.checkAnimation=transition({el:this.checkmarkCheck}),this.events.register(this.recipientForm,"keydown",event=>this._onKeydown(event)),this.events.register(this.disclosure,"toggle",()=>
139this._onToggle()),this.events.register(this.disclosureCheckbox,"change",()=>this._onChange())}_onChange(){this.disclosure.open=this.disclosureCheckbox.checked}_onKeydown(event){event.key==="Enter"&&event.target.matches("[data-recipient-form-input]")&&event.preventDefault()}_onToggle(){this.disclosure.open?this._showRecipientForm():this._hideRecipientForm()}_showRecipientForm(){this.checkmark&&this.checkmarkCheck&&(this.fillAnimation.animateTo("checked"),this.checkAnimation.animateTo("checked")),this.disclosureCheckbox.checked=!0,this.recipientFormEmailInput.required=!0}_hideRecipientForm(){this.checkmark&&this.checkmarkCheck&&(this.fillAnimation.animateTo("unchecked"),this.checkAnimation.animateTo("unchecked")),this.disclosureCheckbox.checked=!1,this.recipientFormEmailInput.required=!1,this._resetRecipientForm()}_resetRecipientForm(){this.recipientFormInputs.forEach(el=>{el.value="",el.classList.contains("form-field-filled")&&el.classList.remove("form-field-filled")}),this.recipientForm.classList.contains("recipient-form--has-errors")&&this.recipientForm.classList.remove("recipient-form--has-errors")}}const pxs_gift_card_recipient_form_dist_index_es=RecipientForm;var dist_EventHandler=__webpack_require__(766);/*!
140 * @pixelunion/animations v0.1.0
141 * (c) 2019 Pixel Union
142 * Released under the UNLICENSED license.
143*/function animations_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function animations_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function animations_es_createClass(Constructor,protoProps,staticProps){return protoProps&&animations_es_defineProperties(Constructor.prototype,protoProps),staticProps&&animations_es_defineProperties(Constructor,staticProps),Constructor}function animations_es_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function animations_es_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function animations_es_objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};
143i%2?animations_es_ownKeys(source,!0).forEach(function(key){animations_es_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):animations_es_ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function animations_es_raf(){return new Promise(function(resolve){window.requestAnimationFrame(resolve)})}var animations_es_Animation=(function(){function Animation2(options){animations_es_classCallCheck(this,Animation2),this._el=options.el,this.cancelRunning=null,this._state=options.state||"initial",this.initialState=this._state,this.stateAttribute=options.stateAttribute||"data-animation-state",this.stateChangeAttribute=options.stateChangeAttribute||"data-animation",this.endEvent=options.endEvent||"transitionend",this.hold=!!options.hold,this.onStart=options.onStart||function(){},this.activeEventHandler=null}return animations_es_createClass(Animation2,[{key:"isState",value:function(state2){return state2===this._state}},{key:"animateTo",value:function(state2){var _this=this,options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},from=this._el.dataset[this.stateAttribute]||this._state,to=state2||this.initialState,force=options.force,hold="hold"in options?options.hold:this.hold;return new Promise(function(resolve){if(_this.cancelRunning&&_this.cancelRunning(),from===to){_this._el.removeAttribute(_this.stateChangeAttribute),resolve(from,null);return}var running=!0;if(_this.cancelRunning=function(){running=!1,resolve(null,null)},_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=null,force){_this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to,hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,null);return}animations_es_raf().then(function(){if(!running)throw new Error("cancelled");return _this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),animations_es_raf()}).then(function(){if(!running)throw new Error("cancelled");_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=function(e){e.target!==_this._el||!running||(_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,e))},_this._el.addEventListener(_this.endEvent,_this.activeEventHandler),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to}).catch(function(error){if(error.message!=="cancelled")throw error})})}},{key:"unload",value:function(){this._el.removeEventListener(this.endEvent,this.activeEventHandler),this.activeEventHandler=null}},{key:"el",get:function(){return this._el}},{key:"state",get:function(){return this._state}}]),Animation2})(),AnimationsManager=null;function animation(options){var setOptions={endEvent:"animationend",hold:!0};return new animations_es_Animation(animations_es_objectSpread2({options},setOptions))}function animations_es_transition(options){return new animations_es_Animation(options)}function forceFocus(element,options){options=options||{};var savedTabIndex=element.tabIndex;element.tabIndex=-1,element.dataset.tabIndex=savedTabIndex,element.focus(),typeof options.className<"u"&&element.classList.add(options.className),element.addEventListener("blur",callback);function callback(event){event.target.removeEventListener(event.type,callback),element.tabIndex=savedTabIndex,delete element.dataset.tabIndex,typeof options.className<"u"&&element.classList.remove(options.className)}}function focusHash(options){options=options||{};var hash=window.location.hash,element=document.getElementById(hash.slice(1));if(element&&options.ignore&&element.matches(options.ignore))return!1;hash&&element&&forceFocus(element,options)}function bindInPageLinks(options){options=options||{};var links=Array.prototype.slice.call(document.querySelectorAll('a[href^="#"]'));return links.filter(function(link){if(link.hash==="#"||link.hash===""||options.ignore&&link.matches(options.ignore))return!1;var element=document.querySelector(link.hash);return element?(link.addEventListener("click",function(){forceFocus(element,options)}),!0):!1})}function focusable(container){var elements=Array.prototype.slice.call(container.querySelectorAll("[tabindex],[draggable],a[href],area,button:enabled,input:not([type=hidden]):enabled,object,select:enabled,textarea:enabled"));return elements.filter(function(element){return!!(element.offsetWidth||element.offsetHeight||element.getClientRects().length)})}var trapFocusHandlers={};function trapFocus(container,options){options=options||{};var elements=focusable(container),elementToFocus=options.elementToFocus||container,first=elements[0],last=elements[elements.length-1];removeTrapFocus(),trapFocusHandlers.focusin=function(event){container!==event.target&&!container.contains(event.target)&&first.focus(),!(event.target!==container&&event.target!==last&&event.target!==first)&&document.addEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.focusout=function(){document.removeEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.keydown=function(event){event.keyCode===9&&(event.target===last&&!event.shiftKey&&(event.preventDefault(),first.focus()),(event.target===container||event.target===first)&&event.shiftKey&&(event.preventDefault(),last.focus()))},document.addEventListener("focusout",trapFocusHandlers.focusout),document.addEventListener("focusin",trapFocusHandlers.focusin),forceFocus(elementToFocus,options)}function removeTrapFocus(){document.removeEventListener("focusin",trapFocusHandlers.focusin),document.removeEventListener("focusout",trapFocusHandlers.focusout),document.removeEventListener("keydown",trapFocusHandlers.keydown)}function accessibleLinks(elements,options){if(typeof elements!="str
143ing")throw new TypeError(elements+" is not a String.");if(elements=document.querySelectorAll(elements),elements.length===0)return;options=options||{},options.messages=options.messages||{};var messages={newWindow:options.messages.newWindow||"Opens in a new window.",external:options.messages.external||"Opens external website.",newWindowExternal:options.messages.newWindowExternal||"Opens external website in a new window."},prefix=options.prefix||"a11y",messageSelectors={newWindow:prefix+"-new-window-message",external:prefix+"-external-message",newWindowExternal:prefix+"-new-window-external-message"};function generateHTML(messages2){var container=document.createElement("ul"),htmlMessages=Object.keys(messages2).reduce(function(html2,key){return html2+="<li id="+messageSelectors[key]+">"+messages2[key]+"</li>"},"");container.setAttribute("hidden",!0),container.innerHTML=htmlMessages,document.body.appendChild(container)}function externalSite(link){return link.hostname!==window.location.hostname}elements.forEach(function(link){var target=link.getAttribute("target"),rel=link.getAttribute("rel"),isExternal=externalSite(link),isTargetBlank=target==="_blank",missingRelNoopener=rel===null||rel.indexOf("noopener")===-1;if(isTargetBlank&&missingRelNoopener){var relValue=rel===null?"noopener":rel+" noopener";link.setAttribute("rel",relValue)}isExternal&&isTargetBlank?link.setAttribute("aria-describedby",messageSelectors.newWindowExternal):isExternal?link.setAttribute("aria-describedby",messageSelectors.external):isTargetBlank&&link.setAttribute("aria-describedby",messageSelectors.newWindow)}),generateHTML(messages)}const{body}=document,html=document.querySelector("html");function _blockScroll(event){event.target.closest(".allow-scroll-while-locked")||(event.preventDefault(),event.stopPropagation())}class ScrollLock{static lock(modal){modal&&modal.classList.add("allow-scroll-while-locked"),html.classList.add("scroll-locked"),body.style.top=-1*window.pageYOffset,body.addEventListener("scroll",_blockScroll,!1),body.addEventListener("touchmove",_blockScroll,{passive:!1})}static unlock(){document.querySelectorAll(".allow-scroll-while-locked").forEach(modal=>modal.classList.remove("allow-scroll-while-locked")),html.classList.remove("scroll-locked"),body.style.top="",body.removeEventListener("scroll",_blockScroll,!1),body.removeEventListener("touchmove",_blockScroll,{passive:!1})}static get isLocked(){return html.classList.contains("scroll-locked")}}class Modal{constructor(){this.container=document.querySelector("[data-modal-container]"),this.container&&(this.drawer=this.container.querySelector("[data-modal]"),this.header=this.container.querySelector("[data-modal-header]"),this.closeButton=this.container.querySelector("[data-modal-close]"),this.content=this.container.querySelector("[data-modal-content]"),this.trigger=null,this.events=new dist_EventHandler.Z,this.events.register(this.closeButton,"click",()=>this.close()),this.events.register(window,"keydown",e=>{e.key==="Escape"&&this.close()}),this.events.register(this.container,"click",e=>{e.target===this.container&&this.close()}),this.animation=animations_es_transition({state:"closed",el:this.container,stateAttribute:"data-modal-animation-state",stateChangeAttribute:"data-modal-animation"}))}open(_ref){let{header,content}=_ref;return this.trigger=document.activeElement,ScrollLock.lock(this.container),this.header.innerHTML=header,this.content.innerHTML=content,this.animation.animateTo("open").then(()=>(trapFocus(this.container),this.container))}close(){return this.animation.animateTo("closed").then(()=>{removeTrapFocus(this.container),ScrollLock.unlock(),this.trigger&&this.trigger.focus()})}unload(){this.events.unregisterAll()}}const components_Modal=new Modal;var cjs=__webpack_require__(646);class ImageZoom{constructor(options){this.$el=jquery_default()(options.el),this.zoomImageSrc=options.el.dataset.imageZoomSrc,this.zoomArea=jquery_default()(".product-gallery--image-zoom-container",this.$el),this.$newImage=null,jquery_default()("img",this.$el).one("rimg:load.image-zoom",()=>this.prepareZoom())}prepareZoom(){const photoAreaWidth=this.$el.width(),photoAreaHeight=this.$el.height(),newImage=new Image;this.$newImage=jquery_default()(newImage),this.$newImage.on("load",()=>{this.zoomImageWidth=newImage.width,this.zoomImageHeight=newImage.height;const ratios=[];if(ratios[0]=this.zoomImageWidth/photoAreaWidth,ratios[1]=this.zoomImageHeight/photoAreaHeight,Math.max(...ratios)<1.4){this.$el.removeClass("zoom-enabled");return}this.$el.addClass("zoom-enabled"),this.zoomArea.css({backgroundImage:`url(${newImage.src})`})}),newImage.src=this.zoomImageSrc,this.$el.on("click.image-zoom",event=>this.toggleZoom(event)),this.zoomArea.on("mouseout.image-zoom",event=>this.toggleZoom(event)),this.zoomArea.on("mousemove.image-zoom",event=>this.zoomImage(event))}toggleZoom(e){if(this.$el.hasClass("zoom-enabled")){if(e.type==="mouseout"){this.zoomArea.removeClass("active");return}this.zoomArea.hasClass("active")?this.zoomArea.removeClass("active"):this.zoomArea.addClass("active"),this.zoomImage(e)}}
143zoomImage(e){const zoomWidth=this.zoomArea.width(),zoomHeight=this.zoomArea.height(),bigImageOffset=this.$el.offset(),bigImageX=Math.round(bigImageOffset.left),bigImageY=Math.round(bigImageOffset.top),mousePositionX=e.pageX-bigImageX,mousePositionY=e.pageY-bigImageY;if(mousePositionX<zoomWidth&&mousePositionY<zoomHeight&&mousePositionX>0&&mousePositionY>0&&this.zoomArea.hasClass("active")){let ratioX=Math.round(mousePositionX/zoomWidth*this.zoomImageWidth-zoomWidth/2)*-1,ratioY=Math.round(mousePositionY/zoomHeight*this.zoomImageHeight-zoomHeight/2)*-1;ratioX>0&&(ratioX=0),ratioY>0&&(ratioY=0),ratioX<-(this.zoomImageWidth-zoomWidth)&&(ratioX=-(this.zoomImageWidth-zoomWidth)),ratioY<-(this.zoomImageHeight-zoomHeight)&&(ratioY=-(this.zoomImageHeight-zoomHeight));const newBackgroundPosition=`${ratioX}px ${ratioY}px`;this.zoomArea.css({backgroundPosition:newBackgroundPosition})}}unload(){this.$newImage&&this.$newImage.off("load"),this.$el.off("click.image-zoom"),this.zoomArea.off("mouseout.image-zoom"),this.zoomArea.off("mousemove.image-zoom"),jquery_default()("img",this.$el).off("rimg:load.image-zoom")}}let apiReadyResolve=null,apiReady=null;function youtubeIframeAPIHelper_load(){if(apiReady)return apiReady;if(apiReady=new Promise(resolve=>{apiReadyResolve=resolve}),window.onYouTubeIframeAPIReady){const{onYouTubeIframeAPIReady}=window;window.onYouTubeIframeAPIReady=()=>{onYouTubeIframeAPIReady(),apiReadyResolve()}}else window.onYouTubeIframeAPIReady=apiReadyResolve;if(!document.querySelector("#youtube-api-script")){const script2=document.createElement("script");script2.setAttribute("id","youtube-api-script"),script2.setAttribute("type","text/javascript"),script2.setAttribute("src","https://www.youtube.com/iframe_api"),document.body.appendChild(script2)}return window.YT&&YT.loaded&&apiReadyResolve(),apiReady}class ProductGallery{constructor(el,settings){this.el=el,this.settings=settings,this.viewport=this.el.querySelector("[data-product-gallery-viewport]"),this.navigation=this.el.querySelector("[data-product-gallery-navigation]"),this.figures=this.viewport.querySelectorAll("[data-product-gallery-figure]"),this.media=[],this.selected={figure:this.viewport.querySelector('[data-product-gallery-selected="true"]'),thumbnail:this.navigation?this.navigation.querySelector('[data-product-gallery-selected="true"]'):null},this.imageZoom=null,this.events=new dist_EventHandler.Z,this.navigation&&(this.thumbnails=this.navigation.querySelectorAll("[data-product-gallery-thumbnail]"),this.onThumbnailClick=e=>this._selectMediaByIndex(e.currentTarget.dataset.productGalleryThumbnail),this.thumbnails.forEach(thumbnail=>this.events.register(thumbnail,"click",this.onThumbnailClick))),this.settings.enable_zoom&&this.figures.forEach(figure=>{if(figure.dataset.mediaType!=="image")return;const player2=new ImageZoom({el:figure});this.media.push({type:"image",figure,player:player2,focus:()=>{},restart:()=>{},pause:()=>{},play:()=>{},unload:()=>player2.unload()})});const features=[];this.el.querySelector('[data-media-type="model"]')&&(this.events.register(this.viewport,"click",e=>{"shopifyXr"in e.target.dataset&&this._onViewInYourSpaceClick(e.target)}),features.push({name:"model-viewer-ui",version:"1.0",onLoad:()=>this._onModelLibraryLoad()}),features.push({name:"shopify-xr",version:"1.0"})),this.el.querySelector('[data-media-type="video"]')&&Promise.all([new Promise(resolve=>{if(document.querySelector("#plyr-stylesheet"))resolve();else{const link=document.createElement("link");link.setAttribute("id","plyr-stylesheet"),link.setAttribute("rel","stylesheet"),link.setAttribute("href","https://cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.css"),link.onload=resolve,document.body.appendChild(link)}}),new Promise(resolve=>{features.push({name:"video-ui",version:"1.0",onLoad:resolve})})]).then(()=>this._onVideoLibraryLoad()),youtubeIframeAPIHelper_load().then(()=>this._onExternalVideoLibraryLoad()),features.length&&Shopify.loadFeatures(features)}selectMediaByVariant(variant){if(!variant.featured_media)return;const figure=this.viewport.querySelector(`[data-media="${variant.featured_media.id}"]`);this._selectMediaByIndex(figure.dataset.productGalleryFigure)}
143unload(){this.events.unregisterAll(),this.media.forEach(m=>m.unload())}_onModelLibraryLoad(){const modelFigures=this.viewport.querySelectorAll('[data-media-type="model"]'),controls=["zoom-in","zoom-out"];document.fullscreenEnabled&&controls.push("fullscreen"),modelFigures.forEach(figure=>{const player2=new Shopify.ModelViewerUI(figure.querySelector("model-viewer"),{controls});this.media.push({type:"model",figure,player:player2,focus:()=>{},restart:()=>{},pause:()=>player2.pause(),play:()=>player2.play(),unload:()=>{}})})}_onViewInYourSpaceClick(target){if(target.dataset.shopifyModel3dId===this.selected.figure.dataset.media)return;const figure=this.viewport.querySelector(`[data-media="${target.dataset.shopifyModel3dId}"]`);this._selectMediaByEl(figure)}_selectMediaByEl(el){this._selectMediaByIndex(parseInt(el.dataset.productGalleryFigure,10))}_onVideoLibraryLoad(){this.viewport.querySelectorAll('[data-media-type="video"]').forEach(videoFigure=>{const player2=new Shopify.Plyr(videoFigure.querySelector("video"),{loop:{active:this.settings.enable_video_looping}}),plyrEl=videoFigure.querySelector(".plyr"),video={type:"video",figure:videoFigure,player:player2,focus:()=>plyrEl.focus(),restart:()=>{player2.restart(),player2.play()},pause:()=>player2.pause(),play:()=>player2.play(),unload:()=>player2.destroy()};this.events.register(videoFigure,"play",()=>this._pauseMedia(video)),this.media.push(video)})}_onExternalVideoLibraryLoad(){this.viewport.querySelectorAll('[data-media-type="external_video"]').forEach(videoFigure=>{const player2=new YT.Player(videoFigure.querySelector("iframe")),video={type:"video",figure:videoFigure,player:player2,focus:()=>player2.getIframe().focus(),restart:()=>{player2.seekTo(0),player2.playVideo()},pause:()=>player2.pauseVideo(),play:()=>player2.playVideo(),unload:()=>{}};this.events.register(player2,"onStateChange",_ref=>{let{data}=_ref;data===YT.PlayerState.ENDED&&this.settings.enable_video_looping?video.restart():data===YT.PlayerState.PLAYING&&this._pauseMedia(video)}),this.media.push(video)})}_onMediaSelect(media){if(media)switch(media.type){case"video":media.focus(),this.settings.enable_video_autoplay&&cjs.VV("L")&&this.layout!=="list"&&media.play();break;case"model":document.querySelector("html").classList.contains("no-touch")&&media.play();break;default:break}}_pauseMedia(){let excludeMedia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.media.forEach(m=>{m!==excludeMedia&&m.pause()})}_selectMediaByIndex(index){const figure=this.figures[index];if(this.selected.figure.dataset.productGallerySelected=!1,this.selected.figure.setAttribute("aria-hidden",!0),this.selected.figure=figure,this.selected.figure.dataset.productGallerySelected=!0,this.selected.figure.setAttribute("aria-hidden",!1),this.navigation){const thumbnail=this.thumbnails[index];this.selected.thumbnail.dataset.productGallerySelected=!1,this.selected.thumbnail=thumbnail,this.selected.thumbnail.dataset.productGallerySelected=!0}this._pauseMedia(),this._onMediaSelect(this.media.filter(m=>m.figure===this.selected.figure)[0])}}class ThemeUtils{static extend(dest){for(var _len=arguments.length,objs=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)objs[_key-1]=arguments[_key];for(const obj in objs)for(const k in objs[obj]){const v=objs[obj][k];dest[k]=v}return dest}static windowWidth(){const documentWidth=document.documentElement.clientWidth,windowWidth=window.innerWidth;return documentWidth<windowWidth?windowWidth:documentWidth}static debounce(func,wait,immediate){let timeout=null;return()=>{const context=this,args=arguments,later=()=>{timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}}static inViewport(el){let element=el,viewportHeight,viewportWidth;typeof jQuery=="function"&&el instanceof jQuery&&(element=el.eq(0));const rect=element.getBoundingClientRect();return document.documentElement.clientWidth<window.innerWidth?viewportWidth=document.documentElement.clientWidth:viewportWidth=window.innerHeight,document.documentElement.clientHeight<window.innerHeight?viewportHe
143ight=document.documentElement.clientHeight:viewportHeight=window.innerHeight,rect.bottom>=0&&rect.right>=0&&rect.top<=viewportHeight&&rect.left<=viewportWidth}static externalLinks($el){$el.find('a[href^="http"]').filter((i,el)=>el.href.indexOf(window.location.hostname)===-1).attr("target","_blank")}static unique(array){let key,asc,end;const output={};for(key=0,end=array.length,asc=end>=0;asc?key<end:key>end;asc?key++:key--)output[array[key]]=array[key];return(()=>{const result=[];for(key in output){const value=output[key];result.push(value)}return result})()}static scrollTarget($el){let $element=$el;$el instanceof jQuery||($element=jquery_default()($el)),jquery_default()("html, body").animate({scrollTop:$element.offset().top},500,"linear")}}class LinkedOptions{constructor(options){this.options=options,this._init()}_init(){this._mapVariants(this.options.productJSON)}_getCurrent(optionIndex){let key,selector;if(this.options.type==="select")switch(optionIndex){case 0:key="root",selector=this.options.$selector.eq(0);break;case 1:key=this.options.$selector.eq(0).val(),selector=this.options.$selector.eq(1);break;case 2:key=`${this.options.$selector.eq(0).val()} / ${this.options.$selector.eq(1).val()}`,selector=this.options.$selector.eq(2);break;default:break}if(this.options.type==="radio"){let option1,option2;switch(optionIndex){case 0:key="root",selector=this.options.$selector.filter("[data-option-index=0]").filter(":checked");break;case 1:key=this.options.$selector.filter("[data-option-index=0]").filter(":checked").val(),selector=this.options.$selector.filter("[data-option-index=1]").filter(":checked");break;case 2:option1=this.options.$selector.filter("[data-option-index=0]").filter(":checked").val(),option2=this.options.$selector.filter("[data-option-index=1]").filter(":checked").val(),key=`${option1} / ${option2}`,selector=this.options.$selector.filter("[data-option-index=2]").filter(":checked");break;default:break}}return{key,selector}}_updateOptions(optionIndex,optionsMap){let $option,$selector;const nextSelector=optionIndex+1;let updateSelected=!1;const{key,selector}=this._getCurrent(optionIndex),availableOptions=optionsMap[key]||[];if(this.options.type==="select"){$selector=this.options.$productForm.find(selector);const initialValue=$selector.val(),$selectorOptions=$selector.find("option");$selectorOptions.each((index,option)=>{$option=jquery_default()(option),availableOptions.indexOf(option.value)===-1?(option.selected&&(updateSelected=!0),$option.prop("disabled",!0).prop("selected",!1)):$option.prop("disabled",!1)}),availableOptions.indexOf(initialValue)!==-1&&$selector.val(initialValue),updateSelected&&$selectorOptions.filter(":not(:disabled)").eq(0).prop("selected",!0)}this.options.type==="radio"&&($selector=this.options.$selector.filter(`[data-option-index=${optionIndex}]`),$selector.each((index,option)=>{$option=jquery_default()(option),availableOptions.indexOf(option.value)===-1?(option.checked&&(updateSelected=!0),$option.prop("disabled",!0).prop("checked",!1)):$option.prop("disabled",!1)}),updateSelected&&$selector.filter(":not(:disabled)").eq(0).attr("checked",!0).trigger("click")),$selector.trigger("change"),this.options.$selector.filter(`[data-option-index=${nextSelector}]`).length!==0&&this._updateOptions(nextSelector,optionsMap)}_mapVariants(product){const optionsMap=[];
143optionsMap.root=[],product.variants.forEach(variant=>{if(variant.available){let key;optionsMap.root.push(variant.option1),optionsMap.root=ThemeUtils.unique(optionsMap.root),product.options.length>1&&(key=variant.option1,optionsMap[key]=optionsMap[key]||[],optionsMap[key].push(variant.option2),optionsMap[key]=ThemeUtils.unique(optionsMap[key])),product.options.length>2&&(key=`${variant.option1} / ${variant.option2}`,optionsMap[key]=optionsMap[key]||[],optionsMap[key].push(variant.option3),optionsMap[key]=ThemeUtils.unique(optionsMap[key]))}}),this._updateOptions(0,optionsMap),this.options.$selector.on("change",event=>{const nextSelector=parseInt(jquery_default()(event.currentTarget).attr("data-option-index"),10)+1;this._updateOptions(nextSelector,optionsMap)})}}class VariantHelper{constructor(options){const defaultOptions={$addToCartButton:null,$priceFields:null,$productForm:null,$productThumbnails:null,$selector:null,type:"select",productJSON:null,productSettings:null,onVariantChange:()=>{},quantityInput:null};this.options=ThemeUtils.extend(defaultOptions,options),this.$body=jquery_default()(document.body),this.linkedOptions=null,this.enableHistory=!1,this.$masterSelect=this.options.$productForm.find(`#product-select-${this.options.formID}`);const isShopify=window.Shopify&&window.Shopify.preview_host;window.history&&window.history.replaceState&&this.options.productSettings.enableHistory&&!isShopify&&(this.enableHistory=!0),this._init(),this._bindEvents()}getSelectedVariant(){return this._getVariantFromOptions(this._getCurrentOptions())}_init(){if(this.options.type==="select")for(let i=0;i<this.options.$selector.length;i++){const select=this.options.$selector[i];this._setSelectLabel(null,jquery_default()(select))}this.options.productSettings.linkedOptions&&(this.linkedOptions=new LinkedOptions(this.options))}_bindEvents(){return this.options.$selector.on("change",event=>this._variantChange(event))}_setSelectLabel(){let event=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,$target=arguments.length>1?arguments[1]:void 0,$element=$target;$target==null&&($element=!1),$target||($element=jquery_default()(event.currentTarget));const selectedOption=$element.find("option:selected").val();return $element.prev("[data-select-text]").find("[data-selected-option]").text(selectedOption)}_getCurrentOptions(){const productOptions=[];let $inputs=this.options.$selector;return this.options.type==="radio"&&($inputs=$inputs.filter(":checked")),$inputs.each((index,element)=>productOptions.push(jquery_default()(element).val())),productOptions}_getVariantFromOptions(productOptions){if(this.options.productJSON.variants==null)return;let foundVariant=null;
143return this.options.productJSON.variants.forEach(variant=>{let productOption=productOptions[0];for(let i=1;i<productOptions.length;i++)productOption+=` / ${productOptions[i]}`;productOption===variant.title&&(foundVariant=variant)}),foundVariant}_updateMasterSelect(variant){variant!=null&&(this.$masterSelect.find(`[data-variant-id=${variant.id}]`).prop("selected",!0),this.$masterSelect.trigger("change"))}_updatePrice(variant){const{$addToCartButton}=this.options,{$priceFields}=this.options,{productSettings}=this.options;if(variant!=null){variant.available?$addToCartButton.val(productSettings.addToCartText).removeClass("disabled").removeAttr("disabled"):$addToCartButton.val(productSettings.soldOutText).addClass("disabled").attr("disabled","disabled"),variant.compare_at_price>variant.price?($priceFields.find(".price .money:first-child").html(Shopify.formatMoney(variant.price,Theme.moneyFormat)),$priceFields.find(".original").html(Shopify.formatMoney(variant.compare_at_price,Theme.moneyFormat)).removeClass("hidden")):($priceFields.find(".price .money").html(Shopify.formatMoney(variant.price,Theme.moneyFormat)),$priceFields.find(".original").addClass("hidden"));const unitPrice=$priceFields.find("[data-unit-price]")[0];if(unitPrice&&variant.unit_price_measurement){const totalQuantity=unitPrice.querySelector("[data-total-quantity]"),unitPriceAmount=unitPrice.querySelector("[data-unit-price-amount]"),unitPriceMeasure=unitPrice.querySelector("[data-unit-price-measure]");totalQuantity.innerHTML=`${variant.unit_price_measurement.quantity_value}${variant.unit_price_measurement.quantity_unit}`,unitPriceAmount.innerHTML=Shopify.formatMoney(variant.unit_price,Theme.moneyFormat),variant.unit_price_measurement.reference_value===1?unitPriceMeasure.innerHTML=variant.unit_price_measurement.reference_unit:unitPriceMeasure.innerHTML=`${variant.unit_price_measurement.reference_value}${variant.unit_price_measurement.reference_unit}`,unitPrice.classList.remove("hidden")}else unitPrice&&unitPrice.classList.add("hidden")}else $addToCartButton.val(productSettings.unavailableText).addClass("disabled").attr("disabled","disabled")}_updateTaxLine(variant){if(!variant)return;let taxLine;this.options.$priceFields.length>0&&(taxLine=this.options.$priceFields[0].querySelector("[data-tax-line]")),taxLine&&(variant.taxable?taxLine.classList.remove("product-price__tax-label--hidden"):taxLine.classList.add("product-price__tax-label--hidden"))}_updateImages(variant){let imageId;variant&&variant.featured_media&&variant.featured_media.id?imageId=variant.featured_media.id:imageId=null,imageId!=null&&this.options.$productThumbnails.filter(`[data-media='${imageId}']`).trigger("click")}_updateHistory(variant){if(!this.enableHistory||variant==null)return;const variantRegex=/variant=([^&]*)/gi;let search=`?variant=${variant.id}`;window.location.search.length>0&&(window.location.search.match(variantRegex)?search=window.location.search.replace(variantRegex,`variant=${variant.id}`):search=`${window.location.search}&variant=${variant.id}`);const variantUrl=[window.location.protocol,"//",window.location.host,window.location.pathname,search].join("");window.history.replaceState({path:variantUrl},"",variantUrl)}_variantChange(event){this.options.type==="select"&&this._setSelectLabel(event);const productOptions=this._getCurrentOptions(),variant=this._getVariantFromOptions(productOptions);this.options.onVariantChange(variant),this._updateMasterSelect(variant),this._updatePrice(variant),variant&&(this._updateTaxLine(variant),this._updateImages(variant),this._updateHistory(variant))}prepareRemove(){this.options.$selector.off("change")}}class PaymentTerms{constructor(el){this._el=el,this._reference=this._el.querySelector("[data-payment-terms-reference]"),this._paymentTerms=this._el.querySelector("shopify-payment-terms"),this._target=this._el.querySelector("[data-payment-terms-target]"),this._paymentTerms&&(this._target?(this._input=document.createElement("input"),this._input.name="id",this._input.type="hidden",this._target.appendChild(this._input),this._target.appendChild(this._paymentTerms),this._target.style.display=null):this._reference.style.display=null)}update(variantId){!this._paymentTerms||!this._target||(this._input.value=variantId,this._input.dispatchEvent(new Event("change",{bubbles:!0})))}}class Product{constructor(section){this.$el=jquery_default()(section.el),this.el=section.el,this.data=section.data,this.variantHelpers=null,this.$productForm=jquery_default()("[data-product-form]",this.$el),this.formID=this.$productForm.attr("data-product-form"),this.productForm=`product-form-${this.formID}`,this.$addToCartButton=jquery_default()(".add-to-cart__button",this.$el),this.$priceArea=jquery_default()(".product-price",this.$el),this.$productMessage=jquery_default()("[data-product-message]",this.$el),this.recipientFormEl=this.el.querySelector("[data-recipient-form]"),this.recipientFormEl&&(this.recipientForm=new pxs_gift_card_recipient_form_dist_index_es(this.el),this.recipientFormEmail=this.recipientFormEl.querySelector("[data-recipient-form-email-input]"));const gallery=this.el.querySelector("[data-product-gallery]");gallery&&(this.productGallery=new ProductGallery(gallery,{enable_video_auto
143play:this.data.settings.gallery_enable_video_autoplay,enable_video_looping:this.data.settings.gallery_enable_video_looping,enable_zoom:this.data.settings.gallery_enable_zoom}));const $productJSON=jquery_default()(`[data-product-json-${this.formID}]`,this.$el),$productSettings=jquery_default()(`[data-product-settings-${this.formID}]`,this.$el);$productJSON.length&&(this.productJSON=JSON.parse($productJSON.text()),this.productSettings=JSON.parse($productSettings.text()),this.$variantDropdowns=jquery_default()(`[data-option-select=${this.formID}]`,this.$el),this.$variantRadio=jquery_default()(`[data-option-input=${this.formID}]`,this.$el),this.options=this.productJSON.options,this.variants=this.productJSON.variants,this.processing=!1,this.paymentTerms=new PaymentTerms(this.el),this.data.settings.complementary_products_limit&&(this.complementaryProducts=new pxs_complementary_products_dist_index_es({sectionEl:this.el,sectionId:section.id,productId:this.data.product_id,productRecommendationsRoute:window.Theme.routes.product_recommendations_url,includeIndicatorDots:!0,limit:this.data.settings.complementary_products_limit})),this.setupVariants(),this._bindEvents(),Shopify.onError=XMLHttpRequest2=>this.handleErrors(XMLHttpRequest2))}_bindEvents(){this.$addToCartButton.on("click",event=>this.addToCart(event))}setupVariants(){this.surfacePickUp=new shopify_surface_pick_up_dist_index_es(this.el.querySelector("[data-surface-pick-up]"));const variantHelperDefaults={$addToCartButton:this.$addToCartButton,$priceFields:this.$priceArea,$productForm:this.$productForm,$productThumbnails:jquery_default()("[data-product-gallery-thumbnail]",this.el),formID:this.formID,productSettings:this.productSettings,productJSON:this.productJSON,onVariantChange:variant=>this._onVariantChangeCallback(variant),enableHistory:this.data.enable_history};if(this.$variantDropdowns.length){let dropdownSettings={$selector:this.$variantDropdowns,type:"select"};dropdownSettings=ThemeUtils.extend(variantHelperDefaults,dropdownSettings),this.variantHelpers=new VariantHelper(dropdownSettings),this.$variantDropdowns.trigger("change")}if(this.$variantRadio.length){let radioSettings={$selector:this.$variantRadio,type:"radio"};radioSettings=ThemeUtils.extend(variantHelperDefaults,radioSettings),this.variantHelpers=new VariantHelper(radioSettings),this.$variantRadio.trigger("change")}const selectedVariant=()=>this.variantHelpers?this.variantHelpers.getSelectedVariant():this.productJSON.variants[0];this.surfacePickUp.load(selectedVariant().id),this.surfacePickUp.onModalRequest(content=>{const variantTitle=this.variantHelpers?`<div class="modal__surface-pick-up-variant">${selectedVariant().title}</div>`:"",header=`
144          <h2 class="modal__surface-pick-up-title">${this.productJSON.title}</h2>
145          ${variantTitle}
146        `;components_Modal.open({header,content})})}_onVariantChangeCallback(variant){variant?(this.surfacePickUp.load(variant.id),this.paymentTerms.update(variant.id)):this.el.querySelector("[data-surface-pick-up]").innerHTML=""}addToCart(e){if(this.productSettings.cartRedirect){if(this.recipientFormEl&&this.recipientFormEl.closest(".recipient-disclosure").open){const email=this.recipientFormEmail.value;/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)||(e.preventDefault(),this.recipientFormEl.classList.add("recipient-form--has-errors"))}return}if(e.preventDefault(),this.processing)return;this.processing=!0,this.recipientFormEl&&this.recipientFormEl.classList.remove("recipient-form--has-errors"),Modernizr.cssanimations?jquery_default()(".add-to-cart",this.$el).addClass("loading"):this.$addToCartButton.val(this.productSettings.processingText);const quantity=jquery_default()('input[name="quantity"]',this.$el).val();(quantity===""||quantity==="0")&&setTimeout(()=>{jquery_default()('input[name="quantity"]',this.$el).addClass("error"),this.$productMessage.removeClass("success").addClass("error").text(this.productSettings.setQuantityText),jquery_default()(".add-to-cart",this.$el).removeClass("loading"),this.processing=!1},500),Shopify.addItemFromForm(this.productForm,cartItem=>setTimeout(()=>{Shopify.getCart(cart=>{document.dispatchEvent(new CustomEvent("cart:count",{detail:{count:cart.item_count}}))});const successMessage=this.productSettings.successMessage.replace("** product **",cartItem.title);jquery_default()('input[name="quantity"]',this.$el).removeClass("error"),jquery_default()(".add-to-cart",this.$el).removeClass("loading"),this.$productMessage.removeClass("error").addClass("success").html(successMessage),Modernizr.cssanimations||this.$addToCartButton.val(this.productSettings.addToCartText),this.processing=!1},1e3))}handleErrors(errors){const errorMessage=jquery_default().parseJSON(errors.responseText),productTitle=this.productJSON.title;let errorDescription=errorMessage.description;
146typeof errorMessage.description=="string"&&errorMessage.description.indexOf(productTitle)>-1&&(errorDescription=errorDescription.replace(productTitle,`<em>${productTitle}</em>`)),(errorMessage.message==="Cart Error"||errorMessage.description.email)&&setTimeout(()=>{jquery_default()('input[name="quantity"]',this.$el).removeClass("error"),this.$productMessage.removeClass("success").addClass("error").html(errorDescription),jquery_default()(".add-to-cart",this.$el).removeClass("loading added-success").addClass("added-error"),this.recipientFormEl&&this.recipientFormEl.classList.add("recipient-form--has-errors"),Modernizr.cssanimations||this.$addToCartButton.val(this.productSettings.addToCartText),this.processing=!1},1e3)}onSectionUnload(){this.variantHelpers!=null&&this.variantHelpers.prepareRemove(),this.ImageZoom!=null&&this.ImageZoom.prepareRemove(),this.productGallery&&this.productGallery.unload(),jquery_default()(".product-form",this.$el).off("submit")}}/*!
147 * @pixelunion/pxs-faq v1.0.6
148 * (c) 2021 Pixel Union
149 */function pxs_faq_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function pxs_faq_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function pxs_faq_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&pxs_faq_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&pxs_faq_dist_index_es_defineProperties(Constructor,staticProps),Constructor}function pxs_faq_dist_index_es_unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function pxs_faq_dist_index_es_createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var pxs_faq_dist_index_es_EventHandler_1=pxs_faq_dist_index_es_createCommonjsModule(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEach(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),pxs_faq_dist_index_es_EventHandler=pxs_faq_dist_index_es_unwrapExports(pxs_faq_dist_index_es_EventHandler_1);/*!
150   * @pixelunion/animations v0.1.0
151   * (c) 2019 Pixel Union
152   * Released under the UNLICENSED license.
153  */function index_es_classCallCheck$1(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function index_es_defineProperties$1(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function index_es_createClass$1(Constructor,protoProps,staticProps){return protoProps&&index_es_defineProperties$1(Constructor.prototype,protoProps),staticProps&&index_es_defineProperties$1(Constructor,staticProps),Constructor}function index_es_raf(){return new Promise(function(resolve){window.requestAnimationFrame(resolve)})}var index_es_Animation=(function(){function Animation2(options){index_es_classCallCheck$1(this,Animation2),this._el=options.el,this.cancelRunning=null,this._state=options.state||"initial",this.initialState=this._state,this.stateAttribute=options.stateAttribute||"data-animation-state",this.stateChangeAttribute=options.stateChangeAttribute||"data-animation",this.endEvent=options.endEvent||"transitionend",this.hold=!!options.hold,this.onStart=options.onStart||function(){},this.activeEventHandler=null}return index_es_createClass$1(Animation2,[{key:"isState",value:function(state2){return state2===this._state}},{key:"animateTo",value:function(state2){var _this=this,options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},from=this._el.dataset[this.stateAttribute]||this._state,to=state2||this.initialState,force=options.force,hold="hold"in options?options.hold:this.hold;return new Promise(function(resolve){if(_this.cancelRunning&&_this.cancelRunning(),from===to){_this._el.removeAttribute(_this.stateChangeAttribute),resolve(from,null);return}var running=!0;if(_this.cancelRunning=function(){running=!1,resolve(null,null)},_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=null,force){_this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to,hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,null);return}index_es_raf().then(function(){if(!running)throw new Error("cancelled");return _this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),index_es_raf()}).then(function(){if(!running)throw new Error("cancelled");_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=function(e){e.target!==_this._el||!running||(_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,e))},_this._el.addEventListener(_this.endEvent,_this.activeEventHandler),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to}).catch(function(error){if(error.message!=="cancelled")throw error})})}},{key:"unload",value:function(){this._el.removeEventListener(this.endEvent,this.activeEventHandler),this.activeEventHandler=null}},{key:"el",get:function(){return this._el}},{key:"state",get:function(){return this._state}}]),Animation2})();function index_es_transition(options){return new index_es_Animation(options)}var FAQ=(function(){function FAQ2(section){var _this=this;pxs_faq_dist_index_es_classCallCheck(this,FAQ2),this.el=section.el,this.summaryEls=this.el.querySelectorAll("[data-faq-summary]"),this.events=new pxs_faq_dist_index_es_EventHandler,this.animations={},this.closedState="closed",this.openState="open",this.initAnimations(),this.summaryEls.forEac
153h(function(summary){_this.events.register(summary,"click",function(event){return _this.animateAccordion(event)})})}return pxs_faq_dist_index_es_createClass(FAQ2,[{key:"initAnimations",value:function(){var _this2=this;this.summaryEls.forEach(function(summary){var currentAnswerEl=summary.nextElementSibling,currentDetailsEl=summary.closest("[data-faq-details]"),index=currentAnswerEl.dataset.faqAnswerIndex;_this2.animations[index]=index_es_transition({el:currentAnswerEl,state:_this2.closedState}),currentDetailsEl.style.setProperty("--closed-height","".concat(summary.offsetHeight,"px"))})}},{key:"animateAccordion",value:function(event){event.preventDefault();var summary=event.currentTarget,currentAnswerEl=summary.nextElementSibling,currentDetailsEl=summary.closest("[data-faq-details]");currentAnswerEl.dataset.animation||(currentAnswerEl.dataset.animationState==this.openState?this.closeAccordion(currentDetailsEl):this.openAccordion(currentDetailsEl))}},{key:"openAccordion",value:function(detailsEl){var answerEl=detailsEl.querySelector("[data-faq-answer]"),answerIndex=answerEl.dataset.faqAnswerIndex;detailsEl.setAttribute("open",""),this.animations[answerIndex].animateTo(this.openState,{onStart:function(_ref){var el=_ref.el;el.style.setProperty("--open-height","".concat(el.offsetHeight,"px"))}})}},{key:"closeAccordion",value:function(detailsEl){var answerIndex=detailsEl.querySelector("[data-faq-answer]").dataset.faqAnswerIndex;this.animations[answerIndex].animateTo(this.closedState).then(function(){detailsEl.removeAttribute("open")})}},{key:"onSectionBlockSelect",value:function(block){this.openAccordion(block.el)}},{key:"onSectionBlockDeselect",value:function(block){this.closeAccordion(block.el)}},{key:"onSectionUnload",value:function(){var _this3=this;this.events.unregisterAll(),Object.keys(this.animations).forEach(function(key){_this3.animations[key].unload()}),this.animations={}}}]),FAQ2})();const pxs_faq_dist_index_es=FAQ;class DynamicFAQ extends pxs_faq_dist_index_es{constructor(section){super(section),this.el=section.el,this.allAnswerElements=this.el.querySelectorAll("[data-faq-answer]"),this._onBreakpointChange=this._onBreakpointChange.bind(this),cjs.z2(this._onBreakpointChange)}_resizeAnswerElements(){this.allAnswerElements.forEach(answersEl=>{answersEl.dataset.animationState==="open"&&answersEl.style.setProperty("--open-height","auto")})}_onBreakpointChange(){this._resizeAnswerElements()}}/*!
154 * @pixelunion/pxs-header-standard v2.0.0
155 * (c) 2023 Pixel Union
156 */function pxs_header_standard_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function pxs_header_standard_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function pxs_header_standard_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&pxs_header_standard_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&pxs_header_standard_dist_index_es_defineProperties(Constructor,staticProps),Constructor}function pxs_header_standard_dist_index_es_unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function pxs_header_standard_dist_index_es_createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var pxs_header_standard_dist_index_es_EventHandler_1=pxs_header_standard_dist_index_es_createCommonjsModule(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEac
156h(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),pxs_header_standard_dist_index_es_EventHandler=pxs_header_standard_dist_index_es_unwrapExports(pxs_header_standard_dist_index_es_EventHandler_1);/*!
157   * @pixelunion/animations v0.1.0
158   * (c) 2019 Pixel Union
159   * Released under the UNLICENSED license.
160  */function dist_index_es_classCallCheck$1(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function dist_index_es_defineProperties$1(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function dist_index_es_createClass$1(Constructor,protoProps,staticProps){return protoProps&&dist_index_es_defineProperties$1(Constructor.prototype,protoProps),staticProps&&dist_index_es_defineProperties$1(Constructor,staticProps),Constructor}function dist_index_es_raf(){return new Promise(function(resolve){window.requestAnimationFrame(resolve)})}var dist_index_es_Animation=(function(){function Animation2(options){dist_index_es_classCallCheck$1(this,Animation2),this._el=options.el,this.cancelRunning=null,this._state=options.state||"initial",this.initialState=this._state,this.stateAttribute=options.stateAttribute||"data-animation-state",this.stateChangeAttribute=options.stateChangeAttribute||"data-animation",this.endEvent=options.endEvent||"transitionend",this.hold=!!options.hold,this.onStart=options.onStart||function(){},this.activeEventHandler=null}return dist_index_es_createClass$1(Animation2,[{key:"isState",value:function(state2){return state2===this._state}},{key:"animateTo",value:function(state2){var _this=this,options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},from=this._el.dataset[this.stateAttribute]||this._state,to=state2||this.initialState,force=options.force,hold="hold"in options?options.hold:this.hold;return new Promise(function(resolve){if(_this.cancelRunning&&_this.cancelRunning(),from===to){_this._el.removeAttribute(_this.stateChangeAttribute),resolve(from,null);return}var running=!0;if(_this.cancelRunning=function(){running=!1,resolve(null,null)},_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=null,force){_this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to,hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,null);return}dist_index_es_raf().then(function(){if(!running)throw new Error("cancelled");return _this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),dist_index_es_raf()}).then(function(){if(!running)throw new Error("cancelled");_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=function(e){e.target!==_this._el||!running||(_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,e))},_this._el.addEventListener(_this.endEvent,_this.activeEventHandler),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to}).catch(function(error){if(error.message!=="cancelled")throw error})})}},{key:"unload",value:function(){this._el.removeEventListener(this.endEvent,this.activeEventHandler),this.activeEventHandler=null}},{key:"el",get:function(){return this._el}},{key:"state",get:function(){return this._state}}]),Animation2})();function dist_index_es_transition(options){return new dist_index_es_Animation(options)}var HeaderNavParent=(function(){function HeaderNavParent2(options){var _this=this;pxs_header_standard_dist_index_es_classCallCheck(this,HeaderNavParent2),this.menuItem=options.menuItem,this.detailsItem=options.menuItem.querySelector("[data-header-nav-details]"),this.parentMenu=options.parentMenu,this.menuLink=this.detailsItem.querySelector("[data-header-nav-link]"),this.submenuEl=this.menuItem.querySelector("[data-header-nav-submenu]"),this._isOpen=!1,this.submenu=null,this.events=new pxs_header_standard_dist_index_es_EventHandler,this._open=this._open.bind(this),this._close=this._close.bind(this),this.close=this.close.bind(this),this.closeEsc=function(e){e.key==="Escape"&&(_this.menuLink.focus(),_this._close())},this.closeTimer=null,this.mouseover=function(){clearTimeout(_this.closeTimer),_this._open()},this.mouseout=function(){_this.closeTimer=setTimeout(_this.close,400)},this.click=function(e){e.stopPropagation();var clickedParent=e.target.closest("[data-header-nav-link]");if(clickedParent&&clickedParent.dataset.href&&(e.preventDefault(),_this._isOpen)){window.location=clickedParent.dataset.href;return}_this._open()},this.focusin=function(e){e.stopPropagation(),_this.parentMenu.closeSiblings(_this)},this.animation=dist_index_es_transition({el:this.submenuEl,state:"closed"}),this.events.register(this.menuItem,"mouseover",function(){return _this.mouseover()}),this.events.register(this.menuItem,"mouseout",function(){return _this.mouseout()}),this.events.register(this.menuItem,"click",function(e){return _this.click(e)}),this.events.register(this.menuItem,"touchend",function(e){return _this.click(e)}),this.events.register(this.menuItem,"focusin",function(e){return _this.focusin(e)}),this.events.register(document.body,"click",function(){return _this._close()}
160),this.events.register(document.body,"focusin",function(){return _this._close()})}return pxs_header_standard_dist_index_es_createClass(HeaderNavParent2,[{key:"forceOpen",value:function(){return this._open()}},{key:"forceClose",value:function(){return this._close()}},{key:"close",value:function(){this._close()}},{key:"_open",value:function(){var _this2=this;this._isOpen||(this._isOpen=!0,this.parentMenu.closeSiblings(this),this.closeEscEvent=this.events.register(window,"keydown",function(e){return _this2.closeEsc(e)}),this.submenu||(this.submenu=new HeaderNavMenu({navList:this.submenuEl})),this.submenuEl.classList.remove("alternate-drop"),this.animation.animateTo("open",{onStart:function(_ref){var el=_ref.el,menuBounds=el.getBoundingClientRect();menuBounds.right>document.documentElement.clientWidth&&el.classList.add("alternate-drop"),menuBounds.left<0&&el.classList.add("alternate-drop-left")}}),this.menuLink.setAttribute("aria-expanded",!0),this.detailsItem.setAttribute("open","open"))}},{key:"_close",value:function(){var _this3=this;this._isOpen&&(this.submenu&&(this.submenu.unload(),this.submenu=null),this._isOpen=!1,this.events.unregister(this.closeEscEvent),this.animation.animateTo("closed").then(function(){_this3.submenuEl.classList.remove("alternate-drop"),_this3.menuLink.setAttribute("aria-expanded",!1),_this3.detailsItem.removeAttribute("open")}))}},{key:"unload",value:function(){this.forceClose(),this.events.unregisterAll(),this.closeEscEvent&&this.events.unregister(this.closeEscEvent)}}]),HeaderNavParent2})(),HeaderNavMenu=(function(){function HeaderNavMenu2(options){var _this=this;pxs_header_standard_dist_index_es_classCallCheck(this,HeaderNavMenu2),this.navList=options.navList,this.menuItems=this.navList.children,this.parents=[],this.events=new pxs_header_standard_dist_index_es_EventHandler;for(var i=0;i<this.menuItems.length;i++){var menuItem=this.menuItems[i];menuItem.dataset.headerNavParent!==void 0?this.parents.push(new HeaderNavParent({menuItem,parentMenu:this})):this.events.register(menuItem,"focusin",function(){return _this.closeAllMenus()})}}return pxs_header_standard_dist_index_es_createClass(HeaderNavMenu2,[{key:"closeSiblings",value:function(current){this.parents.forEach(function(parent){parent!==current&&parent.close()})}},{key:"closeAllMenus",value:function(){this.parents.forEach(function(parent){return parent.close()})}},{key:"unload",value:function(){this.parents.forEach(function(parent){parent.unload()}),this.events.unregisterAll()}}]),HeaderNavMenu2})(),HeaderNav=(function(){function HeaderNav2(options){pxs_header_standard_dist_index_es_classCallCheck(this,HeaderNav2),this.header=options.header,this.navTier1=this.header.querySelector("[data-header-nav-tier-1]"),this.navTier1&&(this.headerNavMenu=new HeaderNavMenu({navList:this.navTier1}))}return pxs_header_standard_dist_index_es_createClass(HeaderNav2,[{key:"unload",value:function(){this.headerNavMenu&&this.headerNavMenu.unload()}}]),HeaderNav2})(),HeaderStandard=(function(){function HeaderStandard2(section){var _this=this;pxs_header_standard_dist_index_es_classCallCheck(this,HeaderStandard2),this.el=section.el,this.data=section.data,this.sticky=this.data.sticky,this.transparent=this.data.transparent,this.events=new pxs_header_standard_dist_index_es_EventHandler,this.header=this.el.querySelector("[data-site-header]"),this.headerLogo=this.el.querySelector("[data-header-logo]"),this.logoImage=this.el.querySelector("[data-logo-image]"),this.logoImageTransparent=this.el.querySelector("[data-logo-image-transparent]"),this.logoImageMobile=this.el.querySelector("[data-logo-image-mobile]"),this.cartCount=this.el.querySelector("[data-cart-count]"),this.scrollObserver=null,this.scrollObserverPoint=this.el.querySelector("[data-header-scroll-observer]"),document.body.appendChild(this.scrollObserverPoint),this._setTransparency=this._setTransparency.bind(this),this.events.register(window,"resize",function(){return _this._recordSizeVariables()}),this.events.register(this.header,"rimg:load",function(){return _this._recordSizeVariables()}),this.events.register(document,"cart:count",function(e){return _this._updateCartCount(e)}),this.events.register(window,"shopify:section:reorder",function(){return _this._initTransparency()}),this._initTransparency(),this._recordSizeVariables(),this.headerNav=new HeaderNav({header:this.header})}return pxs_header_standard_dist_index_es_createClass(HeaderStandard2,[{key:"_recordSizeVariables",value:function(){this._recordHeaderHeight(),this._recordLogoWidth()}},{key:"_recordHeaderHeight",value:function(){document.body.style.setProperty("--header-height","".concat(this.header.offsetHeight,"px"))}},{key:"_recordLogoWidth",value:function(){this.logoImage&&this.logoImage.offsetParent?this.header.style.setProperty("--logo-width","".concat(this.logoImage.getBoundingClientRect().width,"px")):this.logoImageTransparent&&this.logoImageTransparent.offsetParent?this.header.style.setProperty("--logo-width","".concat(this.logoImageTransparent.getBoundingClientRect().width,"px")):this.logoImageMobile&&this.logoImageMobile.offsetParent?this.header.style.setProperty("--logo-width","".concat(this.logoImageMobile.getBoundingClientRect().width,"px")):this.header.style.setProperty("--logo-width","".concat(this.headerLogo.getBoundingClientRect().width,"px"))}},{key:"_initTransparency",value:function(){var _this2=this;document.body.removeAttribute("data-transparent-header"),this.firstSectionIsBanner()&&(this.sticky&&this.transparent?(document.body.dataset.transparentHeader=!0,this.scrollObserver=new IntersectionObserver(function(entries){return _this2._setTransparency(entries)}),this.scrollObserver.observe(this.scrollObserverPoint)):this.transparent&&(document.body.dataset.transparentHeader=!0))}},{key:"_setTransparency",value:function(entries){entries&&(entries[0].isIntersecting||!this.sticky?document.body.dataset.transparentHeader=!0:document.body.dataset.transparentHeader=!1,this._recordHeaderHeight())}},{key:"_updateCartCount",value:function(e){var count=e.detail.count;this.cartCount.innerHTML=count}},{key:"firstSectionIsBanner",value:function(){var firstSection=document.querySelector("main section");return firstSection&&firstSection.dataset.banner==="true"}},{key:"onSectionUnload",value:function(){this.headerNav.unload(),this.events.unregisterAll(),this.scrollObserver&&this.scrollObserver.disconnect(),document.body.removeAttribute("data-transparent-header")}}]),HeaderStandard2})();const pxs_header_standard_dist_index_es=HeaderStandard;/*!
161 * @pixelunion/pxs-drawer-nav-standard v1.0.4
162 * (c) 2022 Pixel Union
163 */function pxs_drawer_nav_standard_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function pxs_drawer_nav_standard_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function pxs_drawer_nav_standard_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&pxs_drawer_nav_standard_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&pxs_drawer_nav_standard_dist_index_es_defineProperties(Constructor,staticProps),Constructor}function pxs_drawer_nav_standard_dist_index_es_unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function pxs_drawer_nav_standard_dist_index_es_createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var pxs_drawer_nav_standard_dist_index_es_EventHandler_1=pxs_drawer_nav_standard_dist_index_es_createCommonjsModule(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEac
163h(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),pxs_drawer_nav_standard_dist_index_es_EventHandler=pxs_drawer_nav_standard_dist_index_es_unwrapExports(pxs_drawer_nav_standard_dist_index_es_EventHandler_1);function pxs_drawer_nav_standard_dist_index_es_classCallCheck$1(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function pxs_drawer_nav_standard_dist_index_es_defineProperties$1(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function pxs_drawer_nav_standard_dist_index_es_createClass$1(Constructor,protoProps,staticProps){return protoProps&&pxs_drawer_nav_standard_dist_index_es_defineProperties$1(Constructor.prototype,protoProps),staticProps&&pxs_drawer_nav_standard_dist_index_es_defineProperties$1(Constructor,staticProps),Constructor}function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function createCommonjsModule$1(fn){var module={exports:{}};return fn(module,module.exports),module.exports}var EventHandler_1$1=createCommonjsModule$1(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEach(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),Events=getDefaultExportFromCjs(EventHandler_1$1),selectors={disclosureList:"[data-disclosure-list]",disclosureToggle:"[data-disclosure-toggle]",disclosureInput:"[data-disclosure-input]",disclosureOptions:"[data-disclosure-option]"},classes={listVisible:"disclosure-list--visible",alternateDrop:"disclosure-list--alternate-drop"},Disclosure=(function(){function Disclosure2(el){pxs_drawer_nav_standard_dist_index_es_classCallCheck$1(this,Disclosure2),this.el=el,this.events=new Events,this.cache={},this._cacheSelectors(),this._connectOptions(),this._connectToggle(),this._onFocusOut()}return pxs_drawer_nav_standard_dist_index_es_createClass$1(Disclosure2,[{key:"_cacheSelectors",value:function(){this.cache={disclosureList:this.el.querySelector(selectors.disclosureList),disclosureToggle:this.el.querySelector(selectors.disclosureToggle),disclosureInput:this.el.querySelector(selectors.disclosureInput),disclosureOptions:this.el.querySelectorAll(selectors.disclosureOptions)}}},{key:"_connectToggle",value:function(){var _this=this;this.events.register(this.cache.disclosureToggle,"click",function(e){var ariaExpanded=e.currentTarget.getAttribute("aria-expanded")==="true";e.currentTarget.setAttribute("aria-expanded",!ariaExpanded),_this.cache.disclosureList.classList.remove(classes.alternateDrop),_this.cache.disclosureList.classList.toggle(classes.listVisible),window.requestAnimationFrame(function(){var _this$cache$disclosur=_this.cache.disclosureList.getBoundingClientRect(),left=_this$cache$disclosur.left,width=_this$cache$disclosur.width,_window=window,innerWidth=_window.innerWidth,gutter=30;left+width+gutter>innerWidth&&_this.cache.disclosureList.classList.add(classes.alternateDrop)})})}},{key:"_connectOptions",value:function(){for(var _this2=this,options=this.cache.disclosureOptions,i=0;i<options.length;i++){var option=options[i];this.events.register(option,"click",function(e){return _this2._submitForm(e.currentTarget.dataset.value)})}}},{key:"_onFocusOut",value:function(){var _this3=this;this.events.register(this.cache.disclosureToggle,"focusout",function(e){var disclosureLostFocus=!_this3.el.contains(e.relatedTarget);disclosureLostFocus&&_this3._hideList()}),this.events.register(this.cache.disclosureList,"focusout",function(e){var childInFocus=e.currentTarget.contains(e.relatedTarget),isVisible=_this3.cache.disclosureList.classList.contains(classe
163s.listVisible);isVisible&&!childInFocus&&_this3._hideList()}),this.events.register(this.el,"keyup",function(e){e.defaultPrevented||e.key!=="Escape"||e.key!=="Esc"||(_this3._hideList(),_this3.cache.disclosureToggle.focus())}),this.events.register(document.body,"click",function(e){var isOption=_this3.el.contains(e.target),isVisible=_this3.cache.disclosureList.classList.contains(classes.listVisible);isVisible&&!isOption&&_this3._hideList()})}},{key:"_submitForm",value:function(value){this.cache.disclosureInput.value=value,this.el.closest("form").submit()}},{key:"_hideList",value:function(){this.cache.disclosureList.classList.remove(classes.listVisible),this.cache.disclosureToggle.setAttribute("aria-expanded",!1)}},{key:"unload",value:function(){this.events.unregisterAll()}}]),Disclosure2})();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(s){var el=this;do{if(el.matches(s))return el;el=el.parentElement||el.parentNode}while(el!==null&&el.nodeType===1);return null});/*!
164   * @pixelunion/animations v0.1.0
165   * (c) 2019 Pixel Union
166   * Released under the UNLICENSED license.
167  */function _classCallCheck$2(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass$2(Constructor,protoProps,staticProps){return protoProps&&_defineProperties$2(Constructor.prototype,protoProps),staticProps&&_defineProperties$2(Constructor,staticProps),Constructor}function pxs_drawer_nav_standard_dist_index_es_raf(){return new Promise(function(resolve){window.requestAnimationFrame(resolve)})}var pxs_drawer_nav_standard_dist_index_es_Animation=(function(){function Animation2(options){_classCallCheck$2(this,Animation2),this._el=options.el,this.cancelRunning=null,this._state=options.state||"initial",this.initialState=this._state,this.stateAttribute=options.stateAttribute||"data-animation-state",this.stateChangeAttribute=options.stateChangeAttribute||"data-animation",this.endEvent=options.endEvent||"transitionend",this.hold=!!options.hold,this.onStart=options.onStart||function(){},this.activeEventHandler=null}return _createClass$2(Animation2,[{key:"isState",value:function(state2){return state2===this._state}},{key:"animateTo",value:function(state2){var _this=this,options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},from=this._el.dataset[this.stateAttribute]||this._state,to=state2||this.initialState,force=options.force,hold="hold"in options?options.hold:this.hold;return new Promise(function(resolve){if(_this.cancelRunning&&_this.cancelRunning(),from===to){_this._el.removeAttribute(_this.stateChangeAttribute),resolve(from,null);return}var running=!0;if(_this.cancelRunning=function(){running=!1,resolve(null,null)},_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=null,force){_this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to,hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,null);return}pxs_drawer_nav_standard_dist_index_es_raf().then(function(){if(!running)throw new Error("cancelled");return _this._el.setAttribute(_this.stateChangeAttribute,"".concat(from,"=>").concat(to)),_this.onStart({el:_this._el,from,to}),typeof options.onStart=="function"&&options.onStart({el:_this._el,from,to}),pxs_drawer_nav_standard_dist_index_es_raf()}).then(function(){if(!running)throw new Error("cancelled");_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),_this.activeEventHandler=function(e){e.target!==_this._el||!running||(_this._el.removeEventListener(_this.endEvent,_this.activeEventHandler),hold||_this._el.removeAttribute(_this.stateChangeAttribute),resolve(to,e))},_this._el.addEventListener(_this.endEvent,_this.activeEventHandler),_this._el.setAttribute(_this.stateAttribute,to),_this._state=to}).catch(function(error){if(error.message!=="cancelled")throw error})})}},{key:"unload",value:function(){this._el.removeEventListener(this.endEvent,this.activeEventHandler),this.activeEventHandler=null}},{key:"el",get:function(){return this._el}},{key:"state",get:function(){return this._state}}]),Animation2})();function pxs_drawer_nav_standard_dist_index_es_transition(options){return new pxs_drawer_nav_standard_dist_index_es_Animation(options)}function index_es_forceFocus(element,options){options=options||{};var savedTabIndex=element.tabIndex;element.tabIndex=-1,element.dataset.tabIndex=savedTabIndex,element.focus(),typeof options.className<"u"&&element.classList.add(options.className),element.addEventListener("blur",callback);function callback(event){event.target.removeEventListener(event.type,callback),element.tabIndex=savedTabIndex,delete element.dataset.tabIndex,typeof options.className<"u"&&element.classList.remove(options.className)}}function index_es_focusable(container){var elements=Array.prototype.slice.call(container.querySelectorAll("[tabindex],[draggable],a[href],area,button:enabled,input:not([type=hidden]):enabled,object,select:enabled,textarea:enabled"));return elements.filter(function(element){return!!(element.offsetWidth||element.offsetHeight||element.getClientRects().length)})}var index_es_trapFocusHandlers={};function index_es_trapFocus(container,options){options=options||{};var elements=index_es_focusable(container),elementToFocus=options.elementToFocus||container,first=elements[0],last=elements[elements.length-1];index_es_removeTrapFocus(),index_es_trapFocusHandlers.focusin=function(event){container!==event.target&&!container.contains(event.target)&&first.focus(),!(event.target!==container&&event.target!==last&&event.target!==first)&&document.addEventListener("keydown",index_es_trapFocusHandlers.keydown)},index_es_trapFocusHandlers.focusout=function(){document.removeEventListener("keydown",index_es_trapFocusHandlers.keydown)},index_es_trapFocusHandlers.keydown=function(event){event.keyCode===9&&(event.target===last&&!event.shiftKey&&(event.preventDefault(),first.focus()),(event.target===container||event.target===first)&&event.shiftKey&&(event.preventDefault(),last.focus()))},document.addEventListener("focusout",index_es_trapFocusHandlers.focusout),document.addEventListener("focusin",index_es_trapFocusHandlers.focusin),index_es_forceFocus(elementToFocus,options)}function index_es_removeTrapFocus(){document.removeEventListener("focusin",index_es_trapFocusHandlers.focusin),document.removeEventListener("focusout",index_es_trapFocusHandlers.focusout),document.removeEventListener("keydown",index_es_trapFocusHandlers.keydown)}var DrawerNavSubmenu=(function(){function DrawerNavSubmenu2(settings){var _this=this;pxs_drawer_nav_standard_dist_index_es_classCallCheck(this,Drawer
167NavSubmenu2),this.menu=settings.submenu,this.trigger=settings.trigger,this.parentMenu=settings.parentMenu,this.tier=settings.tier,this.drawerMenu=settings.drawerMenu,this.submenu=null,this.backButton=this.menu.querySelector("[data-drawer-back-button]"),this.closeButton=this.menu.querySelector("[data-drawer-close-button]"),this.flyout=this.menu.querySelector("[data-drawer-submenu-flyout]"),this.overlay=this.menu.querySelector("[data-drawer-submenu-overlay]"),this.submenuTriggers=this.menu.querySelectorAll('[data-drawer-submenu-button="tier-'.concat(this.tier,'"]')),this.events=new pxs_drawer_nav_standard_dist_index_es_EventHandler,this.flyoutAnimation=pxs_drawer_nav_standard_dist_index_es_transition({el:this.flyout,state:"closed"}),this.overlayAnimation=pxs_drawer_nav_standard_dist_index_es_transition({el:this.overlay,state:"closed"}),this.events.register(this.backButton,"click",function(){return _this.close()}),this.events.register(this.closeButton,"click",function(){return _this.drawerMenu.close()}),this.submenuTriggers.forEach(function(submenuTrigger){_this.events.register(submenuTrigger,"click",function(e){return _this.openSubmenu(e)})}),this.open()}return pxs_drawer_nav_standard_dist_index_es_createClass(DrawerNavSubmenu2,[{key:"open",value:function(){this.menu.dataset.open=!0,this.flyoutAnimation.animateTo("open"),this.overlayAnimation.animateTo("open"),this.menu.focus(),index_es_trapFocus(this.menu)}},{key:"close",value:function(){var _this2=this;index_es_removeTrapFocus(this.menu),this.trigger.focus(),index_es_trapFocus(this.parentMenu),this.parentMenu.dataset.childOpen=!1,this.overlayAnimation.animateTo("closed"),this.flyoutAnimation.animateTo("closed").then(function(){_this2.unload()})}},{key:"openSubmenu",value:function(e){var submenuTrigger=e.target,submenu=submenuTrigger.nextElementSibling;this.menu.dataset.childOpen=!0,this.submenu=new DrawerNavSubmenu2({submenu,trigger:submenuTrigger,parentMenu:this.menu,tier:this.tier+1,drawerMenu:this.drawerMenu})}},{key:"unload",value:function(){this.submenu&&this.submenu.unload(),this.menu.dataset.open=!1,this.menu.dataset.childOpen=!1,this.flyoutAnimation.animateTo("closed",{force:!0}),this.overlayAnimation.animateTo("closed",{force:!0}),this.flyoutAnimation.unload(),this.overlayAnimation.unload(),this.events.unregisterAll()}}]),DrawerNavSubmenu2})(),DrawerNavStandard=(function(){function DrawerNavStandard2(_ref){var _this=this,drawerTrigger=_ref.drawerTrigger;pxs_drawer_nav_standard_dist_index_es_classCallCheck(this,DrawerNavStandard2),this.drawerTrigger=drawerTrigger,this.submenu=null,this.drawerNav=document.querySelector("[data-drawer-nav]"),this.closeButton=this.drawerNav.querySelector("[data-drawer-nav-close]"),this.mainFlyout=this.drawerNav.querySelector("[data-drawer-main-flyout]"),this.overlay=this.drawerNav.querySelector("[data-drawer-overlay]"),this.submenuTriggers=this.drawerNav.querySelectorAll('[data-drawer-submenu-button="tier-1"]'),this.events=new pxs_drawer_nav_standard_dist_index_es_EventHandler,this.flyoutAnimation=pxs_drawer_nav_standard_dist_index_es_transition({el:this.mainFlyout,state:"closed"}),this.overlayAnimation=pxs_drawer_nav_standard_dist_index_es_transition({el:this.overlay,state:"closed"}),this.closeEsc=function(e){e.key==="Escape"&&_this.close()},this.events.register(this.drawerTrigger,"click",function(){return _this.open()}),this.events.register(this.closeButton,"click",function(){return _this.close()}),this.events.register(this.overlay,"click",function(){return _this.close()}),this.submenuTriggers.forEach(function(submenuTrigger){_this.events.register(submenuTrigger,"click",function(e){return _this.openSubmenu(e)})}),this.countryDisclosureEl=this.drawerNav.querySelector("[data-disclosure-country]"),this.localeDisclosureEl=this.drawerNav.querySelector("[data-disclosure-locale]"),this.disclosures=[],this.countryDisclosureEl&&this.disclosures.push(new Disclosure(this.countryDisclosureEl)),this.localeDisclosureEl&&this.disclosures.push(new Disclosure(this.localeDisclosureEl))}return pxs_drawer_nav_standard_dist_index_es_createClass(DrawerNavStandard2,[{key:"open",value:function(){var _this2=this;this.drawerNav.dataset.open=!0,this.flyoutAnimation.animateTo("open"),this.overlayAnimation.animateTo("open"),this.closeEvent=this.events.register(window,"keydown",function(e){return _this2.closeEsc(e)}),this.drawerNav.focus(),index_es_trapFocus(this.drawerNav)}},{key:"close",value:function(){var _this3=this;index_es_removeTrapFocus(this.drawerNav),this.drawerTrigger.focus(),this.drawerNav.dataset.childOpen=!1,this.events.unregister(this.closeEvent),this.flyoutAnimation.animateTo("closed"),this.overlayAnimation.animateTo("closed").then(function(){_this3.drawerNav.dataset.open=!1,_this3.submenu&&_this3.submenu.unload()})}},{key:"openSubmenu",value:function(e){var submenuTrigger=e.target,submenu=submenuTrigger.nextElementSibling;this.drawerNav.dataset.childOpen=!0,this.submenu=new DrawerNavSubmenu({submenu,trigger:submenuTrigger,parentMenu:this.drawerNav,tier:2,drawerMenu:this})}},{key:"unload",value:function(){this.submenu&&this.submenu.unload(),this.flyoutAnimation.animateTo("closed",{force:!0}),this.overlayAnimation.animateTo("closed",{force:!0}),this.flyoutAnimation.unload(),this.overlayAnimation.unload(),this.disclosures.forEac
167h(function(disclosure){return disclosure.unload()}),this.events.unregisterAll()}}]),DrawerNavStandard2})();const pxs_drawer_nav_standard_dist_index_es=DrawerNavStandard;class DrawerNav extends pxs_drawer_nav_standard_dist_index_es{constructor(settings){super(settings),this.menuLinks=this.drawerNav.querySelectorAll("[data-drawer-link-tier-1]")}open(){ScrollLock.lock(this.drawerNav),super.open(),this.menuLinks.forEach((menuLink,i)=>{const delay=600+i*100;setTimeout(()=>menuLink.classList.add("drawer-menu__tier-1-link--open"),delay)})}close(){ScrollLock.unlock(),super.close(),this.menuLinks.forEach(menuLink=>{menuLink.classList.remove("drawer-menu__tier-1-link--open")})}}class PredictiveSearch{constructor(el){this.el=el,this.siteOverlay=document.querySelector("[data-site-overlay]"),this.input=this.el.querySelector("[data-header-search-input]"),this.searchCloseButton=this.el.querySelector("[data-search-close]"),this.predictiveSearchContainer=this.el.querySelector("[data-predictive-search-container]"),this.predictiveSearchResultsContainer=this.el.querySelector("[data-predictive-search-results-container]"),this.siteOverlayAnimation=animations_es_transition({el:this.siteOverlay}),this.predictiveSearchContainerAnimation=animations_es_transition({el:this.predictiveSearchContainer,state:"closed"}),this.events=new dist_EventHandler.Z,this.cachedResults=new Map,this.isOpen=!1,this._setupEventListeners()}_setupEventListeners(){this.events.register(window,"keyup",e=>this._onKeyUp(e)),this.events.register(window,"resize",ThemeUtils.debounce(()=>this._onResize(),150)),this.events.register(this.el,"submit",e=>this._onSubmit(e)),this.events.register(this.input,"input",ThemeUtils.debounce(()=>this._onChange(),150)),this.events.register(this.input,"focus",e=>this._onFocus(e)),this.events.register(this.input,"keydown",e=>this._onKeydown(e)),this.events.register(document.body,"focusin",()=>this.close()),this.events.register(this.el,"focusin",e=>e.stopPropagation()),this.events.register(document.body,"click",e=>{(e.target===this.searchCloseButton||!e.target.closest("[data-header-search-form]"))&&this.close()})}get _searchQuery(){return this.input.value.trim()}_onChange(){if(this._searchQuery.length===0){this.close();return}this._getSearchResults(this._searchQuery)}_onFocus(){this._searchQuery.length!==0&&this._getSearchResults(this._searchQuery)}_onSubmit(e){this._searchQuery.length===0&&e.preventDefault()}_onKeyUp(e){e.code==="Escape"&&this.close()}_onKeydown(e){(e.code==="ArrowUp"||e.code==="ArrowDown")&&e.preventDefault()}_onResize(){this._resizeSearchResults()}_clearResults(){const el=this.predictiveSearchResultsContainer;for(;el.firstChild;)el.removeChild(el.firstChild)}_getSearchResults(searchTerm){const cachedResult=this.cachedResults.get(searchTerm);if(this._setLoadingState(),cachedResult){this._renderSearchResults(cachedResult);return}fetch(`${window.Theme.routes.predictive_search_url}?q=${encodeURIComponent(searchTerm)}&section_id=predictive-search`).then(response=>{if(!response.ok)throw this.close(),new Error(response.status);return response.text()}).then(text=>{this.cachedResults.set(searchTerm,text),this._renderSearchResults(text)}).catch(error=>{throw this.close(),error})}_setLoadingState(){this.predictiveSearchContainer.setAttribute("data-loading","true"),this._clearResults(),this.isOpen||this._open()}_removeLoadingState(){this.predictiveSearchContainer.setAttribute("data-loading","false")}_resizeSearchResults(){const position=this.input.getBoundingClientRect(),maxHeight=window.innerHeight-position.bottom-30;this.predictiveSearchContainer.style.setProperty("--container-max-height",`${maxHeight}px`)}_renderSearchResults(resultsMarkup){this._removeLoadingState(),this.predictiveSearchResultsContainer.innerHTML=resultsMarkup,this._resizeSearchResults(),index_es.watch(this.predictiveSearchResultsContainer)}_open(){this.isOpen||this.predictiveSearchContainerAnimation.animateTo("open").then(()=>{ScrollLock.lock(this.predictiveSearchContainer),this.siteOverlayAnimation.animateTo("open"),this.isOpen=!0})}close(){return this.isOpen?this.predictiveSearchContainerAnimation.animateTo("closed").then(()=>{ScrollLock.unlock(),this.siteOverlayAnimation.animateTo("closed"),this._clearResults(),this.isOpen=!1}):!1}}class StaticHeader extends pxs_header_standard_dist_index_es{constructor(section){super(section),this.siteHeaderWrapper=this.el.querySelector("[data-site-header-wrapper]"),this.mobileSearchButton=this.el.querySelectorAll("[data-search-button]")[0],this.desktopSearchButton=this.el.querySelectorAll("[data-search-button]")[1],this.headerControls=this.el.querySelectorAll("[data-header-control
167s]")[1],this.headerAccountButton=this.headerControls.querySelector("[data-account-button]"),this.headerCartButton=this.headerControls.querySelector("[data-cart-button]"),this.searchContainer=this.el.querySelector("[data-header-search]"),this.searchForm=this.el.querySelector("[data-header-search-form]"),this.searchInput=this.el.querySelector("[data-header-search-input]"),this.searchCloseButton=this.el.querySelector("[data-search-close]"),this.searchSubmitButton=this.el.querySelector("[data-search-submit]"),this.headerNavEl=this.el.querySelector("[data-header-nav]"),this.closedState="closed",this.openState="open",this.searchIsOpen=!1,this.wasMobile=this.isMobile,this.drawerTrigger=this.el.querySelector("[data-menu-button]"),this.drawerNav=new DrawerNav({drawerTrigger:this.drawerTrigger}),this.events.register(window,"resize",ThemeUtils.debounce(()=>{(this.wasMobile&&!this.isMobile||!this.wasMobile&&this.isMobile)&&this._closeSearch().then(()=>{this._initAnimations(),this._insertSearchForm()}),this.wasMobile=this.isMobile},100)),this.desktopSearchButton&&this.events.register(this.desktopSearchButton,"click",event=>this._handleSearchButtonClick(event)),this.mobileSearchButton&&this.events.register(this.mobileSearchButton,"click",event=>this._handleSearchButtonClick(event)),(this.desktopSearchButton||this.mobileSearchButton)&&(this.events.register(this.searchCloseButton,"click",event=>this._closeSearchForm(event)),this._initAnimations(),this._insertSearchForm(),"enablePredictiveSearch"in this.searchContainer.dataset&&(this.predictiveSearch=new PredictiveSearch(this.searchContainer)))}get isMobile(){return cjs.Fp("S")}get navShouldAnimate(){return typeof this.headerNavEl<"u"&&!this.isMobile&&this.headerNavEl!==null&&this.searchForm.dataset.headerNavPosition!=="below"}_initAnimations(){this.desktopSearchButtonAnimation=animations_es_transition({el:this.desktopSearchButton,state:this.closedState}),this.mobileSearchButtonAnimation=animations_es_transition({el:this.mobileSearchButton,state:this.closedState}),this.searchInputAnimation=animations_es_transition({el:this.searchInput,state:this.closedState}),this.searchCloseButtonAnimation=animations_es_transition({el:this.searchCloseButton,state:this.closedState}),this.searchContainerAnimation=animations_es_transition({el:this.searchContainer,state:this.closedState}),this.siteHeaderWrapperAnimation=animations_es_transition({el:this.siteHeaderWrapper,state:this.closedState}),this.navShouldAnimate&&(this.headerNavAnimation=animations_es_transition({el:this.headerNavEl,state:this.openState})),this.headerAccountButton&&(this.headerAccountButtonAnimation=animations_es_transition({el:this.headerAccountButton,state:this.openState})),this.headerCartButton&&(this.headerCartButtonAnimation=animations_es_transition({el:this.headerCartButton,state:this.openState}))}_handleSearchButtonClick(event){if(event.preventDefault(),this.searchIsOpen&&this.searchInput.value.trim().length>0)this.searchForm.submit();else{let controlsWidth=0;controlsWidth=this.headerCartButton?controlsWidth+this.headerCartButton.getBoundingClientRect().width:controlsWidth,controlsWidth=this.headerAccountButton?controlsWidth+this.headerAccountButton.getBoundingClientRect().width:controlsWidth,controlsWidth=this.desktopSearchButton?controlsWidth+this.desktopSearchButton.getBoundingClientRect().width:controlsWidth,this.headerControls.style.setProperty("--header-controls-width",`${controlsWidth}px`),this._openSearch()}}_insertSearchForm(){this.isMobile?this.mobileSearchButton.parentNode.insertBefore(this.searchContainer,this.mobileSearchButton.nextSibling):this.desktopSearchButton.parentNode.insertBefore(this.searchContainer,this.desktopSearchButton.nextSibling)}_openSearch(){this._runSearchAnimations(this.openState),this._runHeaderAnimations(this.closedState).then(()=>this.searchContainerAnimation.animateTo(this.openState)).then(()=>{this.searchInput.focus(),this.closeSearchEscEvent=this.events.register(window,"keydown",event=>this._closeSearchFormEsc(event)),this.searchIsOpen=!0})}_closeSearch(){const onClose=()=>this._runSearchAnimations(this.closedState).then(()=>{this._runHeaderAnimations(this.openState),this.searchContainerAnimation.animateTo(this.closedState),this.closeSearchEscEvent&&this.events.unregister(this.closeSearchEscEvent),this.searchIsOpen=!1,this.searchInput.value=""});return this.predictiveSearch&&this.predictiveSearch.close()?this.predictiveSearch.close().then(()=>onClose()):onClose()}_runHeaderAnimations(state2){return new Promise((resolve,reject)=>{this.headerAccountButton&&this.headerAccountButtonAnimation.animateTo(state2),this.headerCartButton&&this.headerCartButtonAnimation.animateTo(state2),this.navShouldAnimate?this.headerNavAnimation.animateTo(state2).then(()=>resolve()).catch(()=>reject()):resolve()})}_runSearchAnimations(state2){return new Promise((resolve,reject)=>{this.searchCloseButtonAnimation.animateTo(state2),this.searchInputAnimation.animateTo(state2),this.siteHeaderWrapperAnimation.animateTo(state2),this.isMobile?(this.desktopSearchButtonAnimation.animateTo(state2).then(()=>resolve()).catch(()=>reject()),this.mobileSearchButtonAnimation.animateTo(state2).then(()=>resolve()).catch(()=>reject())):(this.mobileSearchButtonAnimation.animateTo(state2).then(()=>resolve()).catch(()=>reject()),this.desktopSearchButtonAnimation.animateTo(state2).then(()=>resolve()).catch(()=>reject()))})}_closeSearchForm(event){event.preventDefault(),this._closeSearch()}_closeSearchFormEsc(event){event.key==="Escape"&&(this._closeSearchForm(event),this.desktopSearchButton.focus())}onSectionUnload(){super.onSectionUnload(),this.drawerNav.unload()}}class FacetedFiltering{constructor(section){this.el=section.el,this.filtersEnabled=this.el.querySelector("[data-faceted-filter]"),this.filtersEnabled&&(this.events=new dist_EventHandler.Z,this.filterInputs=null,this.dropdowns=this.el.querySelectorAll("[data-filter-group]"),this.summaryEls=this.el.querySelectorAll("[data-filter-group-summary]"),this.filterContents=this.el.querySelectorAll("[data-filter-group-content]"),this.filterCheckboxes=this.el.querySelectorAll(".filter-icon--checkbox"),this.fillAnimations={},this.checkAnimations={},this.closedState="closed",this.openState="open",this.disclosureAnimations={},this.filterRange=this.el.querySelectorAll("[data-filter-range]"),this.rangeNames=[],this.filterRange.forEach(el=>{this.rangeNames.push(el.name)}),this.updateTimeout=null,this._initFilterEvents=this._initFilterEvents.bind(this),this._updatePrice=this._updatePrice.bind(this),this._buildFilterQuery=this._buildFilterQuery.bind(this),this.dropdowns.length&&this._setDropdownHeight(),this._initAnimations(),this._initFilterEvents())}_setDropdownHeight(){const filterWrapper=this.el.querySelector("[data-faceted-filter]");let maxHeight=0;this.dropdowns.forEach(el=>{const height=el.offsetHeight;height>maxHeight&&(maxHeight=height)}),filterWrapper.style.setProperty("--closed-filter-height",`${maxHeight}px`)}_initFilterEvents(){this.filterInputs=this.el.querySelectorAll("[data-filter-input]"),this.filterInputs.forEac
167h(filter=>{this.events.register(filter,"click",e=>{e.preventDefault();const target=e.currentTarget,{url}=target.dataset,checkbox=target.querySelector(".filter-icon--checkbox");if(!("disabled"in target.dataset))if(checkbox){const handle=target.getAttribute("data-handle");let animateTo="checked";target.hasAttribute("data-filter-active")?(animateTo="unchecked",target.removeAttribute("data-filter-active")):target.setAttribute("data-filter-active",""),this.fillAnimations[handle]&&this.checkAnimations[handle]&&(this.fillAnimations[handle].animateTo(animateTo),this.checkAnimations[handle].animateTo(animateTo).then(()=>{window.location=url}))}else window.location=url})}),this.filterContents.forEach(content=>{this.events.register(window,"resize",()=>this._setStyleVariables(content))}),this.events.register(window,"keyup",e=>{e.key==="Escape"&&this._closeAllDropdowns()}),this.filterRange.forEach(filter=>{this.events.register(filter,"change",e=>this._updatePrice(e.currentTarget)),this.events.register(filter,"keyup",e=>{e.key!=="Tab"&&this._updatePrice(e.currentTarget)})}),this.summaryEls.forEach(summary=>{this.events.register(summary,"click",event=>this._animateDisclosure(event))}),this.events.register(document.body,"click",e=>{e.target.closest("[data-filter-group]")||this._closeAllDropdowns()})}_initAnimations(){this.filterCheckboxes.forEach(el=>{const tagHandle=el.dataset.handle,checkmark=el.querySelector(".checkmark"),checkmarkCheck=el.querySelector(".checkmark__check");let state2="unchecked";el.closest("[data-filter-input]").hasAttribute("data-filter-active")&&(state2="checked");const fillAnimation=animations_es_transition({el:checkmark,state:state2}),checkAnimation=animations_es_transition({el:checkmarkCheck,state:state2});this.fillAnimations[tagHandle]=fillAnimation,this.checkAnimations[tagHandle]=checkAnimation}),this.summaryEls.forEach(summary=>{const filterList=summary.nextElementSibling,currentDetailsEl=summary.closest("[data-filter-group]"),index=summary.dataset.filterGroupIndex;this.disclosureAnimations[index]=animations_es_transition({el:filterList,state:this.closedState}),currentDetailsEl.style.setProperty("--closed-height",`${summary.offsetHeight}px`)})}_buildFilterQuery(element){let searchParameters;if(element.dataset.hasOwnProperty("filterRange")){const currentSearch=window.location.search.replace("?",""),formData=new FormData(element.closest("form")),newSearch=new URLSearchParams(formData).toString();let filteredCurrentSearch=currentSearch.split("&").filter(search=>!(search.includes(this.rangeNames[0])||search.includes(this.rangeNames[1])));filteredCurrentSearch=filteredCurrentSearch.join("&"),filteredCurrentSearch.length>0?searchParameters=`${filteredCurrentSearch}&${newSearch}`:searchParameters=`${newSearch}`}let urlQueryString="";return urlQueryString=`?${searchParameters}`,urlQueryString}_updatePrice(element){this.updateTimeout!==null&&clearTimeout(this.updateTimeout),this.updateTimeout=setTimeout(()=>{this._getFilteredResults(element)},2e3)}_getFilteredResults(element){const filterQuery=this._buildFilterQuery(element);window.location.search=filterQuery}_animateDisclosure(event){event.preventDefault();const summary=event.currentTarget,filterList=summary.nextElementSibling,currentDetailsEl=summary.closest("[data-filter-group]");if(filterList==null)this._closeAllDropdowns();else{if(filterList.dataset.animation)return;filterList.dataset.animationState===this.openState?this._closeDisclosure(currentDetailsEl):(this._closeAllDropdowns(),this._openDisclosure(currentDetailsEl))}}_setStyleVariables(el){const mobileWidth=document.querySelector("[data-main-content]").getBoundingClientRect().width-30;el.style.setProperty("--mobile-width",`${mobileWidth}px`),el.style.setProperty("--open-height",`${el.offsetHeight}px`)}_openDisclosure(detailsEl){const index=detailsEl.querySelector("[data-filter-group-summary]").dataset.filterGroupIndex;detailsEl.setAttribute("open",""),this.disclosureAnimations[index].animateTo(this.openState,{onStart:_ref=>{let{el}=_ref;this._setStyleVariables(el)}}),detailsEl.classList.add("dropdown-expanded")}
167_closeDisclosure(detailsEl){const index=detailsEl.querySelector("[data-filter-group-summary]").dataset.filterGroupIndex;this.disclosureAnimations[index].animateTo(this.closedState).then(()=>{detailsEl.removeAttribute("open")}),detailsEl.classList.remove("dropdown-expanded")}_closeAllDropdowns(){this.dropdowns.forEach(dropdown=>{dropdown.classList.contains("dropdown-expanded")&&this._closeDisclosure(dropdown)})}unload(){this.events&&this.events.unregisterAll()}}class StaticCollection{constructor(section){this.el=section.el,this.events=new dist_EventHandler.Z,this.facetedFilters=new FacetedFiltering(section),this.sortSelect=this.el.querySelector("[data-collection-sort]"),this.sortSelect&&this.events.register(this.sortSelect,"change",()=>this._updateSort())}_updateSort(){let search;const Sorting={};if(Sorting.sort_by=this.sortSelect.value,this.sortSelect.classList.contains("vendor-collection")||this.facetedFilters!==null){const searchParts=window.location.search.split("&");for(let index=0;index<searchParts.length;index++)searchParts[index].indexOf("sort_by")!==-1&&searchParts.splice(index,1);search=searchParts.join("&"),window.location.search=`${search}&${Object.keys(Sorting).map(k=>`${encodeURIComponent(k)}=${encodeURIComponent(Sorting[k])}`).join("&")}`}else window.location.search=Object.keys(Sorting).map(k=>`${encodeURIComponent(k)}=${encodeURIComponent(Sorting[k])}`).join("&")}onSectionUnload(){this.facetedFilters.unload(),this.events.unregisterAll()}}function shopify_cross_border_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function shopify_cross_border_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function shopify_cross_border_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&shopify_cross_border_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&shopify_cross_border_dist_index_es_defineProperties(Constructor,staticProps),Constructor}function index_es_getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function shopify_cross_border_dist_index_es_createCommonjsModule(fn){var module={exports:{}};return fn(module,module.exports),module.exports}var shopify_cross_border_dist_index_es_EventHandler_1=shopify_cross_border_dist_index_es_createCommonjsModule(function(module,exports){exports.__esModule=!0;var EventHandler2=(function(){function EventHandler3(){this.events=[]}return EventHandler3.prototype.register=function(el,event,listener){return!el||!event||!listener?null:(this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregister=function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return!el||!event||!listener?null:(this.events=this.events.filter(function(e){return el!==e.el||event!==e.event||listener!==e.listener}),el.removeEventListener(event,listener),{el,event,listener})},EventHandler3.prototype.unregisterAll=function(){this.events.forEach(function(_a){var el=_a.el,event=_a.event,listener=_a.listener;return el.removeEventListener(event,listener)}),this.events=[]},EventHandler3})();exports.default=EventHandler2}),index_es_Events=index_es_getDefaultExportFromCjs(shopify_cross_border_dist_index_es_EventHandler_1),index_es_selectors={disclosureList:"[data-disclosure-list]",disclosureToggle:"[data-disclosure-toggle]",disclosureInput:"[data-disclosure-input]",disclosureOptions:"[data-disclosure-option]"},index_es_classes={listVisible:"disclosure-list--visible",alternateDrop:"disclosure-list--alternate-drop"},index_es_Disclosure=(function(){function Disclosure2(el){shopify_cross_border_dist_index_es_classCallCheck(this,Disclosure2),this.el=el,this.events=new index_es_Events,this.cache={},this._cacheSelectors(),this._connectOptions(),this._connectToggle(),this._onFocusOut()}return shopify_cross_border_dist_index_es_createClass(Disclosure2,[{key:"_cacheSelectors",value:function(){this.cache={disclosureList:this.el.querySelector(index_es_selectors.disclosureList),disclosureToggle:this.el.querySelector(index_es_selectors.disclosureToggle),disclosureInput:this.el.querySelector(index_es_selectors.disclosureInput),disclosureOptions:this.el.querySelectorAll(index_es_selectors.disclosureOptions)}}},{key:"_connectToggle",value:function(){var _this=this;this.events.register(this.cache.disclosureToggle,"click",function(e){var ariaExpanded=e.currentTarget.getAttribute("aria-expanded")==="true";e.currentTarget.setAttribute("aria-expanded",!ariaExpanded),_this.cache.disclosureList.classList.remove(index_es_classes.alternateDrop),_this.cache.disclosureList.classList.toggle(index_es_classes.listVisible),window.requestAnimationFrame(function(){var _this$cache$disclosur=_this.cache.disclosureList.getBoundingClientRect(),left=_this$cache$disclosur.left,width=_this$cache$disclosur.width,_window=window,innerWidth=_window.innerWidth,gutter=30;left+width+gutter>innerWidth&&_this.cache.disclosureList.classList.add(index_es_classes.alternateDrop)})})}},{key:"_connectOptions",value:function(){for(var _this2=this,options=this.cache.disclosureOptions,i=0;i<options.length;i++){var option=options[i];this.events.register(option,"click",function(e){return _this2._submitForm(e.currentTarget.dataset.value)})}}},{key:"_onFocusOut",value:function(){var _this3=this;this.events.register(this.cache.disclosureToggle,"focusout",function(e){var disclosureLostFocus=!_this3.el.contains(e.relatedTarget);disclosureLostFocus&&_this3._hideList()}),this.events.register(this.cache.disclosureList,"focusout",function(e){var childInFocus=e.currentTarget.contains(e.relatedTarget),isVisible=_this3.cache.disclosureList.classList.contains(index_es_classes.listVisible);isVisible&&!childInFocus&&_this3._hideList()}),this.events.register(this.el,"keyup",function(e){e.defaultPrevented||e.key!=="Escape"||e.key!=="Esc"||(_this3._hideList(),_this3.cache.disclosureToggle.focus())}),this.events.register(document.body,"click",function(e){var isOption=_this3.el.contains(e.target),isVisible=_this3.cache.disclosureList.classList.contains(index_es_classes.listVisible);isVisible&&!isOption&&_this3._hideList()})}},{key:"_submitForm",value:function(value){this.cache.disclosureInput.value=value,this.el.closest("form").submit()}},{key:"_hideList",value:function(){this.cache.disclosureList.classList.remove(index_es_classes.listVisible),this.cache.disclosureToggle.setAttribute("aria-expanded",!1)}},{key:"unload",value:function(){this.events.unregisterAll()}}]),Disclosure2})();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(s){var el=this;do{if(el.matches(s))return el;el=el.parentElement||el.parentNode}while(el!==null&&el.nodeType===1);return null});const shopify_cross_border_dist_index_es=index_es_Disclosure;class StaticFooter{constructor(_ref){let{el}=_ref;this.el=el,this.countryDisclosureEls=this.el.querySelectorAll("[data-disclosure-country]"),this.localeDisclosureEls=this.el.querySelectorAll("[data-disclosure-locale]"),this.disclosures=[],this.countryDisclosureEls.length>
1670&&this.countryDisclosureEls.forEach(disclosureEl=>{this.disclosures.push(new shopify_cross_border_dist_index_es(disclosureEl))}),this.localeDisclosureEls.length>0&&this.localeDisclosureEls.forEach(disclosureEl=>{this.disclosures.push(new shopify_cross_border_dist_index_es(disclosureEl))})}onSectionUnload(){this.disclosures.forEach(disclosure=>disclosure.unload())}}/*!
168 * @pixelunion/shopify-asyncview v2.0.5
169 * (c) 2020 Pixel Union
170*/function shopify_asyncview_dist_index_es_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function shopify_asyncview_dist_index_es_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function shopify_asyncview_dist_index_es_createClass(Constructor,protoProps,staticProps){return protoProps&&shopify_asyncview_dist_index_es_defineProperties(Constructor.prototype,protoProps),staticProps&&shopify_asyncview_dist_index_es_defineProperties(Constructor,staticProps),Constructor}function shopify_asyncview_dist_index_es_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function shopify_asyncview_dist_index_es_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function shopify_asyncview_dist_index_es_objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?shopify_asyncview_dist_index_es_ownKeys(Object(source),!0).forEach(function(key){shopify_asyncview_dist_index_es_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):shopify_asyncview_dist_index_es_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function index_es_slicedToArray(arr,i){return index_es_arrayWithHoles(arr)||index_es_iterableToArrayLimit(arr,i)||index_es_unsupportedIterableToArray(arr,i)||index_es_nonIterableRest()}function index_es_arrayWithHoles(arr){if(Array.isArray(arr))return arr}function index_es_iterableToArrayLimit(arr,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(arr)))){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return!=null&&_i.return()}finally{if(_d)throw _e}}return _arr}}function index_es_unsupportedIterableToArray(o,minLen){if(o){if(typeof o=="string")return index_es_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return index_es_arrayLikeToArray(o,minLen)}}function index_es_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function index_es_nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
171In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var index_es_deferred={},index_es_AsyncView=(function(){function AsyncView2(){shopify_asyncview_dist_index_es_classCallCheck(this,AsyncView2)}return shopify_asyncview_dist_index_es_createClass(AsyncView2,null,[{key:"load",value:function(url){var query=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("view"in query))return Promise.reject(new Error("'view' not found in 'query' parameter"));var querylessUrl=url.replace(/\?[^#]+/,""),queryParamsString=new RegExp(/.+\?([^#]+)/).exec(url),queryParams=query;queryParamsString&&queryParamsString.length>=2&&queryParamsString[1].split("&").forEach(function(param){var _param$split=param.split("="),_param$split2=index_es_slicedToArray(_param$split,2),key=_param$split2[0],value=_param$split2[1];queryParams[key]=value});var cachebustingParams=shopify_asyncview_dist_index_es_objectSpread2
171({},queryParams,{_:new Date().getTime()}),hashUrl=querylessUrl.replace(/([^#]+)(.*)/,function(match,address,hash){return"".concat(address,"?").concat(Object.keys(queryParams).sort().map(function(key){return"".concat(key,"=").concat(encodeURIComponent(queryParams[key]))}).join("&")).concat(hash)}),requestUrl=querylessUrl.replace(/([^#]+)(.*)/,function(match,address,hash){return"".concat(address,"?").concat(Object.keys(cachebustingParams).sort().map(function(key){return"".concat(key,"=").concat(encodeURIComponent(cachebustingParams[key]))}).join("&")).concat(hash)}),promise=new Promise(function(resolve,reject){var data;if(hashUrl in index_es_deferred){resolve(index_es_deferred[hashUrl]);return}if(index_es_deferred[hashUrl]=promise,options.hash&&(data=sessionStorage.getItem(hashUrl),data)){var deserialized=JSON.parse(data);if(options.hash===deserialized.options.hash){delete index_es_deferred[hashUrl],resolve(deserialized);return}}var xhr=new XMLHttpRequest;xhr.open("GET",requestUrl,!0),xhr.onload=function(){var el=xhr.response,newOptions={},optionsEl=el.querySelector("[data-options]");optionsEl&&optionsEl.innerHTML&&(newOptions=JSON.parse(el.querySelector("[data-options]").innerHTML));var htmlEls=el.querySelectorAll("[data-html]"),newHtml={};if(htmlEls.length===1&&htmlEls[0].getAttribute("data-html")==="")newHtml=htmlEls[0].innerHTML;else for(var i=0;i<htmlEls.length;i++)newHtml[htmlEls[i].getAttribute("data-html")]=htmlEls[i].innerHTML;var dataEls=el.querySelectorAll("[data-data]"),newData={};if(dataEls.length===1&&dataEls[0].getAttribute("data-data")==="")newData=JSON.parse(dataEls[0].innerHTML);else for(var _i=0;_i<dataEls.length;_i++)newData[dataEls[_i].getAttribute("data-data")]=JSON.parse(dataEls[_i].innerHTML);if(options.hash)try{sessionStorage.setItem(hashUrl,JSON.stringify({options:newOptions,data:newData,html:newHtml}))}catch(error){console.error(error)}delete index_es_deferred[hashUrl],resolve({data:newData,html:newHtml})},xhr.onerror=function(){delete index_es_deferred[hashUrl],reject()},xhr.responseType="document",xhr.send()});return promise}}]),AsyncView2})();const shopify_asyncview_dist_index_es=index_es_AsyncView;function morphAttrs(fromNode,toNode){var attrs=toNode.attributes,i,attr,attrName,attrNamespaceURI,attrValue,fromValue;for(i=attrs.length-1;i>=0;--i)attr=attrs[i],attrName=attr.name,attrNamespaceURI=attr.namespaceURI,attrValue=attr.value,attrNamespaceURI?(attrName=attr.localName||attrName,fromValue=fromNode.getAttributeNS(attrNamespaceURI,attrName),fromValue!==attrValue&&fromNode.setAttributeNS(attrNamespaceURI,attrName,attrValue)):(fromValue=fromNode.getAttribute(attrName),fromValue!==attrValue&&fromNode.setAttribute(attrName,attrValue));for(attrs=fromNode.attributes,i=attrs.length-1;i>=0;--i)attr=attrs[i],attr.specified!==!1&&(attrName=attr.name,attrNamespaceURI=attr.namespaceURI,attrNamespaceURI?(attrName=attr.localName||attrName,toNode.hasAttributeNS(attrNamespaceURI,attrName)||fromNode.removeAttributeNS(attrNamespaceURI,attrName)):toNode.hasAttribute(attrName)||fromNode.removeAttribute(attrName))}var range,NS_XHTML="http://www.w3.org/1999/xhtml",doc=typeof document>"u"?void 0:document;function toElement(str){!range&&doc.createRange&&(range=doc.createRange(),range.selectNode(doc.body));var fragment;return range&&range.createContextualFragment?fragment=range.createContextualFragment(str):(fragment=doc.createElement("body"),fragment.innerHTML=str),fragment.childNodes[0]}function compareNodeNames(fromEl,toEl){var fromNodeName=fromEl.nodeName,toNodeName=toEl.nodeName;return fromNodeName===toNodeName?!0:toEl.actualize&&fromNodeName.charCodeAt(0)<91&&toNodeName.charCodeAt(0)>90?fromNodeName===toNodeName.toUpperCase():!1}function createElementNS(name,namespaceURI){return!namespaceURI||namespaceURI===NS_XHTML?doc.createElement(name):doc.createElementNS(namespaceURI,name)}function moveChildren(fromEl,toEl){for(var curChild=fromEl.firstChild;curChild;){var nextChild=curChild.nextSibling;toEl.appendChild(curChild),curChild=nextChild}return toEl}function syncBooleanAttrProp(fromEl,toEl,name){fromEl[name]!==toEl[name]&&(fromEl[name]=toEl[name],fromEl[name]?fromEl.setAttribute(name,""):fromEl.removeAttribute(name))}var specialElHandlers={OPTION:function(fromEl,toEl){var parentNode=fromEl.parentNode;if(parentNode){var parentName=parentNode.nodeName.toUpperCase();parentName==="OPTGROUP"&&(parentNode=parentNode.parentNode,parentName=parentNode&&parentNode.nodeName.toUpperCase()),parentName==="SELECT"&&!parentNode.hasAttribute("multiple")&&(fromEl.hasAttribute("selected")&&!toEl.selected&&(fromEl.setAttribute("selected","selected"),fromEl.removeAttribute("selected")),parentNode.selectedIndex=-1)}syncBooleanAttrProp(fromEl,toEl,"selected")},INPUT:function(fromEl,toEl){syncBooleanAttrProp(fromEl,toEl,"checked"),syncBooleanAttrProp(fromEl,toEl,"disabled"),fromEl.value!==toEl.value&&(fromEl.value=toEl.value),toEl.hasAttribute("value")||fromEl.removeAttribute("value")},TEXTAREA:function(fromEl,toEl){var newValue=toEl.value;fromEl.value!==newValue&&(fromEl.value=newValue);var firstChild=fromEl.firstChild;if(firstChild){var oldValue=firstChild.nodeValue;if(oldValue==newValue||!newValue&&oldValue==fromEl.placeholder)return;firstChild.nodeValue=newValue}},SELECT:function(fromEl,toEl){if(!toEl.hasAttribute("multiple")){for(var selectedIndex=-1,i=0,curChild=fromEl.firstChild,optgroup,nodeName;curChild;)if(nodeName=curChild.nodeName&&curChild.nodeName.toUpperCase(),nodeName==="OPTGROUP")optgroup=curChild,curChild=optgroup.firstChild;
171else{if(nodeName==="OPTION"){if(curChild.hasAttribute("selected")){selectedIndex=i;break}i++}curChild=curChild.nextSibling,!curChild&&optgroup&&(curChild=optgroup.nextSibling,optgroup=null)}fromEl.selectedIndex=selectedIndex}}},ELEMENT_NODE=1,DOCUMENT_FRAGMENT_NODE=11,TEXT_NODE=3,COMMENT_NODE=8;function noop(){}function defaultGetNodeKey(node){return node.id}function morphdomFactory(morphAttrs2){return function(fromNode,toNode,options){if(options||(options={}),typeof toNode=="string")if(fromNode.nodeName==="#document"||fromNode.nodeName==="HTML"){var toNodeHtml=toNode;toNode=doc.createElement("html"),toNode.innerHTML=toNodeHtml}else toNode=toElement(toNode);var getNodeKey=options.getNodeKey||defaultGetNodeKey,onBeforeNodeAdded=options.onBeforeNodeAdded||noop,onNodeAdded=options.onNodeAdded||noop,onBeforeElUpdated=options.onBeforeElUpdated||noop,onElUpdated=options.onElUpdated||noop,onBeforeNodeDiscarded=options.onBeforeNodeDiscarded||noop,onNodeDiscarded=options.onNodeDiscarded||noop,onBeforeElChildrenUpdated=options.onBeforeElChildrenUpdated||noop,childrenOnly=options.childrenOnly===!0,fromNodesLookup={},keyedRemovalList;function addKeyedRemoval(key){keyedRemovalList?keyedRemovalList.push(key):keyedRemovalList=[key]}function walkDiscardedChildNodes(node,skipKeyedNodes){if(node.nodeType===ELEMENT_NODE)for(var curChild=node.firstChild;curChild;){var key=void 0;skipKeyedNodes&&(key=getNodeKey(curChild))?addKeyedRemoval(key):(onNodeDiscarded(curChild),curChild.firstChild&&walkDiscardedChildNodes(curChild,skipKeyedNodes)),curChild=curChild.nextSibling}}function removeNode(node,parentNode,skipKeyedNodes){onBeforeNodeDiscarded(node)!==!1&&(parentNode&&parentNode.removeChild(node),onNodeDiscarded(node),walkDiscardedChildNodes(node,skipKeyedNodes))}function indexTree(node){if(node.nodeType===ELEMENT_NODE||node.nodeType===DOCUMENT_FRAGMENT_NODE)for(var curChild=node.firstChild;curChild;){var key=getNodeKey(curChild);key&&(fromNodesLookup[key]=curChild),indexTree(curChild),curChild=curChild.nextSibling}}indexTree(fromNode);function handleNodeAdded(el){onNodeAdded(el);for(var curChild=el.firstChild;curChild;){var nextSibling=curChild.nextSibling,key=getNodeKey(curChild);if(key){var unmatchedFromEl=fromNodesLookup[key];unmatchedFromEl&&compareNodeNames(curChild,unmatchedFromEl)&&(curChild.parentNode.replaceChild(unmatchedFromEl,curChild),morphEl(unmatchedFromEl,curChild))}handleNodeAdded(curChild),curChild=nextSibling}}function cleanupFromEl(fromEl,curFromNodeChild,curFromNodeKey){for(;curFromNodeChild;){var fromNextSibling=curFromNodeChild.nextSibling;(curFromNodeKey=getNodeKey(curFromNodeChild))?addKeyedRemoval(curFromNodeKey):removeNode(curFromNodeChild,fromEl,!0),curFromNodeChild=fromNextSibling}}function morphEl(fromEl,toEl,childrenOnly2){var toElKey=getNodeKey(toEl);toElKey&&delete fromNodesLookup[toElKey],!(toNode.isSameNode&&toNode.isSameNode(fromNode))&&(!childrenOnly2&&(onBeforeElUpdated(fromEl,toEl)===!1||(morphAttrs2(fromEl,toEl),onElUpdated(fromEl),onBeforeElChildrenUpdated(fromEl,toEl)===!1))||(fromEl.nodeName!=="TEXTAREA"?morphChildren(fromEl,toEl):specialElHandlers.TEXTAREA(fromEl,toEl)))}function morphChildren(fromEl,toEl){var curToNodeChild=toEl.firstChild,curFromNodeChild=fromEl.firstChild,curToNodeKey,curFromNodeKey,fromNextSibling,toNextSibling,matchingFromEl;outer:for(;curToNodeChild;){for(toNextSibling=curToNodeChild.nextSibling,curToNodeKey=getNodeKey(curToNodeChild);curFromNodeChild;){if(fromNextSibling=curFromNodeChild.nextSibling,curToNodeChild.isSameNode&&curToNodeChild.isSameNode(curFromNodeChild)){curToNodeChild=toNextSibling,curFromNodeChild=fromNextSibling;continue outer}curFromNodeKey=getNodeKey(curFromNodeChild);var curFromNodeType=curFromNodeChild.nodeType,isCompatible=void 0;if(curFromNodeType===curToNodeChild.nodeType&&(curFromNodeType===ELEMENT_NODE?(curToNodeKey?curToNodeKey!==curFromNodeKey&&((matchingFromEl=fromNodesLookup[curToNodeKey])?fromNextSibling===matchingFromEl?isCompatible=!1:(fromEl.insertBefore(matchingFromEl,curFromNodeChild),curFromNodeKey?addKeyedRemoval(curFromNodeKey):removeNode(curFromNodeChild,fromEl,!0),curFromNodeChild=matchingFromEl):isCompatible=!1):curFromNodeKey&&(isCompatible=!1),isCompatible=isCompatible!==!1&&compareNodeNames(curFromNodeChild,curToNodeChild),isCompatible&&morphEl(curFromNodeChild,curToNodeChild)):(curFromNodeType===TEXT_NODE||curFromNodeType==COMMENT_NODE)&&(isCompatible=!0,curFromNodeChild.nodeValue!==curToNodeChild.nodeValue&&(curFromNodeChild.nodeValue=curToNodeChild.nodeValue))),isCompatible){curToNodeChild=toNextSibling,curFromNodeChild=fromNextSibling;continue outer}curFromNodeKey?addKeyedRemoval(curFromNodeKey):removeNode(curFromNodeChild,fromEl,!0),curFromNodeChild=fromNextSibling}if(curToNodeKey&&(matchingFromEl=fromNodesLookup[curToNodeKey])&&compareNodeNames(matchingFromEl,curToNodeChild))fromEl.appendChild(matchingFromEl),morphEl(matchingFromEl,curToNodeChild);else{var onBeforeNodeAddedResult=onBeforeNodeAdded(curToNodeChild);onBeforeNodeAddedResult!==!1&&(onBeforeNodeAddedResult&&(curToNodeChild=onBeforeNodeAddedResult),curToNodeChild.actualize&&(curToNodeChild=curToNodeChild.actualize(fromEl.ownerDocument||doc)),fromEl.appendChild(curToNodeChild),handleNodeAdded(curToNodeChild))}curToNodeChild=toNextSibling,curFromNodeChild=fromNextSibling}cleanupFromEl(fromEl,curFromNodeChild,curFromNodeKey);var specialElHandler=specialElHandlers[fromEl.nodeName];specialElHandler&&specialElHandler(fromEl,toEl)}var morphedNode=fromNode,morphedNodeType=morphedNode.nodeType,toNodeType=toNode.nodeType;if(!childrenOnly){if(morphedNodeType===ELEMENT_NODE)toNodeType===ELEMENT_NODE?compareNodeNames(fromNode,toNode)||(onNodeDiscarded(fromNode),morphedNode=moveChildren(fromNode,createElementNS(toNode.nodeName,toNode.namespaceURI))):morphedNode=toNode;else if(morphedNodeType===TEXT_NODE||morphedNodeType===COMMENT_NODE){if(toNodeType===morphedNodeType)return morphedNode.nodeValue!==toNode.nodeValue&&(morphedNode.nodeValue=toNode.nodeValue),morphedNode;morphedNode=toNode}}
171if(morphedNode===toNode)onNodeDiscarded(fromNode);else if(morphEl(morphedNode,toNode,childrenOnly),keyedRemovalList)for(var i=0,len=keyedRemovalList.length;i<len;i++){var elToRemove=fromNodesLookup[keyedRemovalList[i]];elToRemove&&removeNode(elToRemove,elToRemove.parentNode,!1)}return!childrenOnly&&morphedNode!==fromNode&&fromNode.parentNode&&(morphedNode.actualize&&(morphedNode=morphedNode.actualize(fromNode.ownerDocument||doc)),fromNode.parentNode.replaceChild(morphedNode,fromNode)),morphedNode}}var morphdom=morphdomFactory(morphAttrs);const morphdom_esm=morphdom;class CartRequests{constructor(){this.processRequestInterval=500,this.processing=!1,this.interval=setInterval(()=>this._postRequests(),this.processRequestInterval),this.requests=[]}addItem(data){const request=this._findAddItemRequest(data),sanitizedData=data;this.requests=this.requests.filter(r=>r!==request),sanitizedData.quantity=Math.max(0,sanitizedData.quantity),this.requests.push({type:"add",data,timestamp:Math.floor(Date.now())}),this._postRequests(!0)}changeItem(data){const request=this._findChangeItemRequest(data),sanitizedData=data;this.requests=this.requests.filter(r=>r!==request),sanitizedData.quantity=Math.max(0,sanitizedData.quantity),this.requests.push({type:"change",data,timestamp:Math.floor(Date.now())}),sanitizedData.quantity===0&&this._postRequests(!0)}updateNote(note){this.requests=this.requests.filter(r=>r.type!=="update"),this.requests.push({type:"update",data:{note},timestamp:Math.floor(Date.now())})}unload(){this.interval&&clearInterval(this.interval)}_triggerStartLoadingEvents(){jquery_default()(window).trigger("cart-loading-start")}_triggerFinishLoadingEvent(newCart,oldCart,error){const newItems=newCart.items.filter(newItem=>{for(let i=0;i<oldCart.items.length;i++){const oldItem=oldCart.items[i];if(newItem.key===oldItem.key&&newItem.quantity!==oldItem.quantity)return!0;if(newItem.key===oldItem.key)return!1}return!0});jquery_default()(window).trigger("cart-loading-finish",{cart:newCart,newItems,error})}_handleError(error){jquery_default()(window).trigger("cart-loading-error",{error})}_shouldPostRequests(){return!this.processing&&this.requests.length&&Math.floor(Date.now())-this.requests[this.requests.length-1].timestamp>=this.processRequestInterval}_postRequests(){if(!(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&!this._shouldPostRequests())return;const requestsToProcess=this.requests;let originalCart=null;this.requests=[],this.processing=!0,this._triggerStartLoadingEvents();let $deferred=jquery_default().Deferred().resolve();$deferred=$deferred.then(()=>jquery_default().get({url:`${window.Theme.routes.cart_url}.js`,dataType:"json"})).then(cart=>{originalCart=cart}),requestsToProcess.forEach(request=>{let deferredRequest=null;request.type==="add"&&(deferredRequest=()=>jquery_default().post({url:`${window.Theme.routes.cart_add_url}.js`,data:request.data,dataType:"json"})),request.type==="change"&&(deferredRequest=()=>jquery_default().post({url:`${window.Theme.routes.cart_change_url}.js`,data:request.data,dataType:"json"})),request.type==="update"&&(deferredRequest=()=>jquery_default().post({url:`${window.Theme.routes.cart_url}/update.js`,data:request.data,dataType:"json"})),$deferred=$deferred.then(deferredRequest)}),$deferred=$deferred.then(()=>jquery_default().get({url:`${window.Theme.routes.cart_url}.js`,dataType:"json"})).then(newCart=>this._triggerFinishLoadingEvent(newCart,originalCart)).catch(error=>{this._handleError(error.responseJSON.description),jquery_default().get({url:`${window.Theme.routes.cart_url}.js`,dataType:"json"}).then(newCart=>this._triggerFinishLoadingEvent(newCart,originalCart,error))}).always(()=>{this.processing=!1})}_findAddItemRequest(data){let request=null;return this.requests.forEach(r=>{r.type==="add"&&r.data.id===data.id&&(request=r)}),request}_findChangeItemRequest(data){let request=null;return this.requests.forEach(r=>{r.type==="change"&&r.data.id===data.id&&(request=r)}),request}}const utils_CartRequests=new CartRequests;class LineItem{constructor(el){this.el=el,this.key=el.dataset.lineItem,this.removeButtonEl
171=el.querySelector("[data-line-item-remove]"),this.quantityInputEl=el.querySelector("[data-line-item-quantity-input]"),this.quantityDecrementEl=el.querySelector("[data-line-item-quantity-decrement]"),this.quantityIncrementEl=el.querySelector("[data-line-item-quantity-increment]"),this.remove=e=>{e.preventDefault(),this._changeQuantity(0)},this.decrementQuantity=e=>{e.preventDefault(),this._changeQuantity(parseInt(this.quantityInputEl.value,10)-1)},this.incrementQuantity=e=>{e.preventDefault(),this._changeQuantity(parseInt(this.quantityInputEl.value,10)+1)},this.onQuantityChange=this._onQuantityChange.bind(this),this.removeButtonEl.addEventListener("click",this.remove),this.quantityDecrementEl.addEventListener("click",this.decrementQuantity),this.quantityIncrementEl.addEventListener("click",this.incrementQuantity),this.quantityInputEl.addEventListener("change",this.onQuantityChange)}_onQuantityChange(){const quantity=Math.max(0,this.quantityInputEl.value);utils_CartRequests.changeItem({id:this.key,quantity})}_changeQuantity(quantity){const event=document.createEvent("Event");event.initEvent("change",!1,!0),this.quantityInputEl.value=quantity,this.quantityInputEl.dispatchEvent(event)}unload(){this.removeButtonEl.removeEventListener("click",this.remove),this.quantityDecrementEl.removeEventListener("click",this.decrementQuantity),this.quantityIncrementEl.removeEventListener("click",this.incrementQuantity),this.quantityInputEl.removeEventListener("change",this.onQuantityChange)}}class ShippingCalculator{constructor(el){this.el=el;try{this.data=JSON.parse(jquery_default()("[data-shipping-calculator-data]",el).text())}catch{console.log("No shipping localisations found, unable to continue.")}this.data&&(this.shippingCalculator(),this.data.settings.customer_country&&this.calculateShipping(),jquery_default()("[data-calculate-shipping-button]",this.el).on("click",()=>this.calculateShipping()),Shopify.onError=XMLHttpRequest2=>this.handleErrors(XMLHttpRequest2))}shippingCalculator(){Shopify.Cart.ShippingCalculator.show({submitButton:this.data.language.submit_button,submitButtonDisabled:this.data.language.submit_button_processing,customerIsLoggedIn:this.data.settings.customer_country,moneyFormat:Theme.moneyFormat});const selectableOptions=jquery_default()(".cart-shipping-calculator select",this.el);setTimeout(()=>{for(let i=0;i<selectableOptions.length;i++)this.updateShippingLabel(selectableOptions[i])},500),jquery_default()(".cart-shipping-calculator select",this.el).change(()=>{for(let i=0;i<selectableOptions.length;i++)this.updateShippingLabel(selectableOptions[i])})}calculateShipping(){jquery_default()("[data-calculate-shipping-button]").val(this.data.language.submit_button_processing);const shippingAddress={};shippingAddress.zip=jquery_default()(".address-zip").val()||"",shippingAddress.country=jquery_default()(".address-country").val()||"",shippingAddress.province=jquery_default()(".address-province").val()||"";const queryString=Object.keys(shippingAddress).map(key=>`${encodeURIComponent(`shipping_address[${key}]`)}=${encodeURIComponent(shippingAddress[key])}`).join("&");jquery_default().ajax(`${window.Theme.routes.cart_url}/shipping_rates.json?${queryString}`,{dataType:"json"}).fail(error=>this.handleErrors(error.responseJSON||{})).done(response=>{const rates=response.shipping_rates;let responseText,address=`${shippingAddress.zip}, ${shippingAddress.province}, ${shippingAddress.country}`;shippingAddress.province.length||(address=`${shippingAddress.zip}, ${shippingAddress.country}`),shippingAddress.zip.length||(address=`${shippingAddress.province}, ${shippingAddress.country}`),(!shippingAddress.province.length||!shippingAddress.zip.length)&&(address=shippingAddress.country),jquery_default()(".cart-shipping-calculator-response").empty().append("<p class='shipping-calculator-response message'/><ul class='shipping-rates'/>");const ratesFeedback=jquery_default()(".shipping-calculator-response");if(rates.length>1){const firstRate=Shopify.Cart.ShippingCalculator.formatRate(rates[0].price);responseText=this.data.language.multi_rates.replace("** address **",address).replace("** number_of_rates **",rates.length).replace("** rate **",`<span class='money'>${firstRate}</span>`),ratesFeedback.html(responseText)}else rates.length===1?(responseText=this.data.language.one_rate.replace("** address **",address),ratesFeedback.html(responseText)):ratesFeedback.html(this.data.language.no_rates);for(let i=0;i<rates.length;i++){const rate=rates[i],price=Shopify.Cart.ShippingCalculator.formatRate(rate.price),rateValues=this.data.language.rate_values.replace("** rate_title **",rate.name).replace("** rate **",`<span class='money'>${price}</span>`);jquery_default()(".shipping-rates",this.el).append(`<li>${rateValues}</li>`)}jquery_default()("[data-calculate-shipping-button]").val(this.data.language.submit_button)})}updateShippingLabel(select){if(select){const $select=jquery_default()(select);let selectedOption=$select.find("option:selected").val();selectedOption||(selectedOption=$select.prev(".selected-text").data("default")),$select.prev(".selected-text").text(selectedOption),setTimeout(()=>{$select.attr("name")==="address[country]"&&this.updateShippingLabel(jquery_default()("#address_province",this.el))},500)}}handleErrors(errorMessage){if(errorMessage.zip)errorMessage=this.data.language.error_message.replace("** error_message **",errorMessage.zip);else if(errorMessage.error)errorMessage=this.data.language.generic_error_message.replace("** error_message **",errorMessage.error.map(error=>Object.keys(error).map(key=>error[key]).join(`
172`)).join(`
173`));else return;jquery_default()(".cart-shipping-calculator-response").html(`<p>${errorMessage}</p>`)}onSectionUnload(){jquery_default()("[data-calculate-shipping-button]",this.el).off("
173click")}unload(){jquery_default()("[data-calculate-shipping-button]",this.el).off("click",()=>this.calculateShipping()),Shopify.onError=()=>{}}}class StaticCart{constructor(section){this.section=section,this.updateNote=this._updateNote.bind(this);const itemEls=section.el.querySelectorAll("[data-line-item]");this.items=[];for(let i=0;i<itemEls.length;i++)this.items.push(new LineItem(itemEls[i]));const shippingCalculatorEl=section.el.querySelector("[data-shipping-calculator]");shippingCalculatorEl&&(this.shippingCalculator=new ShippingCalculator(shippingCalculatorEl)),this.cartNoteEl=section.el.querySelector("[data-cart-note]"),this.cartNoteEl&&this.cartNoteEl.addEventListener("change",this.updateNote),jquery_default()(window).on("cart-loading-start",this._onUpdateStart.bind(this)),jquery_default()(window).on("cart-loading-finish",this._onUpdateFinish.bind(this))}_onUpdateStart(){this.section.el.classList.add("cart-updating")}_onUpdateFinish(){shopify_asyncview_dist_index_es.load(window.Theme.routes.cart_url,{view:"ajax"}).then(_ref=>{let{data,html:html2}=_ref;if(data.item_count===0){this._unload();const form=this.section.el.querySelector("[data-cart]"),shipping=this.section.el.querySelector("[data-shipping-calculator]");form&&form.parentNode.removeChild(form),shipping&&shipping.parentNode.removeChild(shipping)}const itemsEl=this.section.el.querySelector("[data-cart-items]"),noteEl=this.section.el.querySelector("[data-cart-note]"),totalsEl=this.section.el.querySelector("[data-cart-totals]"),newItemsEl=document.createElement("div"),newNoteEl=document.createElement("div"),newTotalsEl=document.createElement("div");jquery_default()(".cart-link .cart-count").text(data.item_count),document.dispatchEvent(new CustomEvent("cart:count",{detail:{count:data.item_count}})),itemsEl&&html2.cart_items&&(newItemsEl.innerHTML=html2.cart_items,morphdom_esm(itemsEl,newItemsEl,{childrenOnly:!0,onBeforeElUpdated:(fromEl,toEl)=>!(fromEl.tagName==="IMG"&&fromEl.src===toEl.src)})),noteEl&&html2.cart_note&&(newNoteEl.innerHTML=html2.cart_note,morphdom_esm(noteEl,newNoteEl)),totalsEl&&html2.cart_totals&&(newTotalsEl.innerHTML=html2.cart_totals,morphdom_esm(totalsEl,newTotalsEl,{childrenOnly:!0})),this.items.forEach(item=>item.unload()),this.items=[];const itemEls=this.section.el.querySelectorAll("[data-line-item]");for(let i=0;i<itemEls.length;i++)this.items.push(new LineItem(itemEls[i]));this.section.el.classList.remove("cart-updating"),this.cartNoteEl=this.section.el.querySelector("[data-cart-note]"),this.cartNoteEl&&this.cartNoteEl.addEventListener("change",this.updateNote)})}_updateNote(){utils_CartRequests.updateNote(this.cartNoteEl.value)}_unload(){this.items.forEach(item=>item.unload()),this.shippingCalculator&&this.shippingCalculator.unload(),this.cartNoteEl&&this.cartNoteEl.removeEventListener("change",this.updateNote)}onSectionUnload(){this._unload()}}class StaticArticleList{constructor(_ref){let{el}=_ref;this.$el=jquery_default()(el),this.setFeaturedImage(!0),this.artDirection(),this.wrapAllNodes(),jquery_default()(window).resize(()=>{this.setFeaturedImage()})}wrapAllNodes(){const childNodes=jquery_default()(".rte",this.$el);for(let i=0;i<childNodes.length;i++){const node=childNodes[i];node.nodeType===3&&node.textContent.replace(/^\s+|\s+$/g,"")&&jquery_default()(node).replaceWith(`<p>${node.textContent}</p>`)}}setFeaturedImage(load2){const featuredImage=jquery_default()(".featured-image",this.$el);if(featuredImage.length){if(featuredImage.hasClass("full-bleed-featured-image")){const windowWidth=jquery_default()(window).width(),contentWidth=this.$el.outerWidth(!0);featuredImage.css({width:windowWidth,marginLeft:-1*(windowWidth-contentWidth)/2})}load2&&featuredImage.addClass("processed")}}artDirection(){const images=jquery_default()(".post-content img",this.$el);images.one("rimg:load",()=>{for(let i=0;i<images.length;i++){const image=jquery_default()(images[i]);if(!image.hasClass("post-image")){image.parent().hasClass("post-content")&&image.wrap("<div />");const imageParent=image.parent();if(image.css("float")!=="none"){const direction=image.css("float");imageParent.addClass(`highlight highlight-${direction}`)}const imageWidth=image.width(),imageAlt=image.attr("alt");if(imageAlt&&imageAlt.length&&imageParent.not("img")){const marginLeft=image.css("margin-left"),marginRight=image.css("margin-right");imageParent.append(`
174              <div
175                style="
176                  max-width: ${imageWidth}px;
177                  margin-left: ${marginLeft};
178                  margin-right: ${marginRight};
179                "
180                class="photo-caption meta"
181              >
182                ${imageAlt}
183              </div>
184            `)}}}})}unload(){jquery_default()(".post-content img",this.$el).off("rimg:load")}}class StaticBlog{constructor(section){this.$el=jquery_default()(section.el),this.listViews=[],this.render()}render(){const $articleListItem=jquery_default()("[data-blog-list-item]",this.$el);$articleListItem.length!==0&&$articleListItem.map((i,listItem)=>this.listViews.push(new StaticArticleList({el:listItem})))}onSectionLoad(){this.render()}onSectionUnload(){this.listViews.map(listView=>listView.unload())}}const initShopifyProductReviews=()=>{window.SPR&&(window.SPR.registerCallbacks(),window.SPR.initRatingHandler(),window.SPR.initDomEls(),window.SPR.loadProducts(),window.SPR.loadBadges())},ProductReviews={initShopifyProductReviews};class StaticProductRecommendations{constructor(section){this.section=section,this.productId=section.data.productId,this.limit=section.data.settings.limit,this.recommendationContainer=document.querySelector("[data-product-recommendations]"),this.recommendUrl=window.Theme.routes.product_recommendations_url,this.queryParams={section_id:this.section.id,limit:this.limit,product_id:this.productId,view:""},this._loadRecommendations()}_loadRecommendations(){shopify_asyncview_dist_index_es.load(this.recommendUrl,this.queryParams).then(_ref=>{let{data,html:html2}=_ref;this.recommendationContainer.innerHTML=html2,index_es.watch(this.recommendationContainer),initShopifyProductReviews()})}}class StaticSearch{constructor(section){this.facetedFilters=new FacetedFiltering(section)}onSectionUnload(){this.facetedFilters.unload()}}class StaticAddresses{constructor(section){this.$el=jquery_default()(section.el),this.prepareAddresses(),this._bindEvents()}_bindEvents(){jquery_default()(".delete-address",this.$el).on("click",e=>
184this.deleteAddress(e)),jquery_default()(".edit-address",this.$el).on("click",e=>this.editAddress(e)),jquery_default()(".cancel-edit",this.$el).on("click",e=>this.cancelEditing(e)),jquery_default()(".toggle-new-address",this.$el).on("click",()=>this.toggleNewAddress()),jquery_default()(".select-wrapper select",this.$el).on("change",e=>this.updateSelectedText(e,!1))}prepareAddresses(){new Shopify.CountryProvinceSelector("address-country","address-province",{hideElement:"address-province-container"});const addresses=jquery_default()(".customer-address",this.$el);if(addresses.length)for(let i=0;i<addresses.length;i++){const address=addresses[i],addressID=jquery_default()(address).data("address-id");new Shopify.CountryProvinceSelector(`address-country-${addressID}`,`address-province-${addressID}`,{hideElement:`address-province-container-${addressID}`})}const selectableOptions=jquery_default()(".select-wrapper select",this.$el);for(let i=0;i<selectableOptions.length;i++)this.updateSelectedText(null,selectableOptions[i])}updateSelectedText(e,select){const text=e?jquery_default()(e.target):jquery_default()(select),selectedValue=text.find("option:selected").text();if(selectedValue!==""&&text.prev(".selected-text").text(selectedValue),text.attr("name")==="address[country]"){let addressID=jquery_default()(text).attr("id").split("address-country-")[1];addressID=addressID?`#address-province-${addressID}`:".new-address-province",this.updateSelectedText(null,jquery_default()(addressID))}}deleteAddress(e){const addressID=jquery_default()(e.target).parents("[data-address-id]").data("address-id");Shopify.CustomerAddress.destroy(addressID)}editAddress(e){const addressID=jquery_default()(e.target).parents("[data-address-id]").data("address-id");jquery_default()(`.customer-address[data-address-id='${addressID}']`).addClass("editing"),jquery_default()(`.customer-address-edit-form[data-address-id='${addressID}']`).addClass("show"),this.prepareAddresses()}cancelEditing(e){const addressID=jquery_default()(e.target).parents("[data-address-id]").data("address-id");jquery_default()(`.customer-address[data-address-id='${addressID}']`).removeClass("editing"),jquery_default()(`.customer-address-edit-form[data-address-id='${addressID}']`).removeClass("show")}toggleNewAddress(){jquery_default()(".add-new-address",this.$el).toggle(),jquery_default()(".customer-new-address",this.$el).toggleClass("show")}onSectionUnload(){jquery_default()(".delete-address",this.$el).off("click"),jquery_default()(".edit-address",this.$el).off("click"),jquery_default()(".cancel-edit",this.$el).off("click"),jquery_default()(".toggle-new-address",this.$el).off("click"),jquery_default()(".select-wrapper select",this.$el).off("change")}}class Account{constructor(section){this.$el=jquery_default()(section.el),jquery_default()(".toggle-forgetfulness span",this.$el).on("click",()=>this.recoverPassword()),jquery_default()(document.body).hasClass("template-customers-addresses")&&(this.StaticAddresses=new StaticAddresses({el:jquery_default()(".main-content")})),jquery_default()(document.body).hasClass("template-customers-login")&&this.checkForReset(),window.location.hash==="#recover"&&this.recoverPassword()}recoverPassword(){jquery_default()(".recover-password",this.$el).toggle(),jquery_default()(".customer-login",this.$el).toggle()}checkForReset(){jquery_default()(".reset-check").data("successful-reset")===!0&&jquery_default()(".successful-reset").show()}}class Contact{constructor(section){this.$el=jquery_default()(section.el),jquery_default()(".contact-form",this.$el).on("submit",()=>this.spamCheck())}spamCheck(event){jquery_default()(event.target).find(".spam-check").val().length>0&&event.preventDefault()}}class GiftCard{constructor(section){this.el=section.el,this.qrCodeAttr="data-qr-code",this.qrCode="[data-qr-code]",this.addQrCode()}addQrCode(){const qrWrapper=this.el.querySelector(this.qrCode);new QRCode(qrWrapper,{text:qrWrapper.getAttribute(this.qrCodeAttr),width:120,height:120})}}const FlickityTouchFix=()=>{let touchingSlider=!1,touchStartCoordsX=0;const onTouchStart=e=>{e.target.closest&&e.target.closest(".flickity-slider")?(touchingSlider=!0,touchStartCoordsX=e.touches[0].pageX):touchingSlider=!1},onTouchMove=e=>{touchingSlider&&e.cancelable&&Math.abs(e.touches[0].pageX-touchStartCoordsX)>10&&e.preventDefault()};document.body.addEventListener("touchstart",onTouchStart),document.body.addEventListener("touchmove",onTouchMove,{passive:!1})};class ImagesWithText{constructor(section){this.$el=jquery_default()(section.el),this.$window=jquery_default()(window),this.centerText(this.$el),this.$window.on("resize.images-with-text",ThemeUtils.debounce(()=>this.centerText(this.$el),10))}prepareRemove(){this.$window.off("resize.images-with-text")}centerText($container){if($container.css({minHeight:""}),$container.attr("data-image-with-text-layout")!=="background")return;const $content=$container.find("[data-feature-content]"),containerHeight=$container.outerHeight(!0),contentHeight=$content.outerHeight(!0);containerHeight>contentHeight?$content.css({top:(containerHeight-contentHeight)/2}):($content.css({top:""}),$container.css({minHeight:contentHeight}))}}var fitvids=__webpack_require__(729),fitvids_default=__webpack_require__.n(fitvids);class RTE{constructor(section){this.$el=jquery_default()(section.el),this.setupTabs();const selects=this.$el.find("select");for(let i=0;i<selects.length;i++){const select=selects[i];jquery_default()(select).parent(".select-wrapper").length||jquery_default()(select).wrap('<div class="select-wrapper" />').parent().prepend('<span class="selected-text"></span>
184'),this.updateOption(null,select)}fitvids_default()(".rte"),this._bindEvents()}_bindEvents(){jquery_default()(".tabs li",this.$el).on("click",event=>this.switchTabs(event)),jquery_default()(".select-wrapper select",this.$el).on("change",event=>this.updateOption(event))}switchTabs(event){event.preventDefault();const tab=jquery_default()(event.currentTarget),position=tab.index();this.tabs.removeClass("active"),this.tabsContent.removeClass("active"),tab.addClass("active"),this.tabsContent.eq(position).addClass("active")}setupTabs(){this.tabs=jquery_default()(".tabs > li",this.$el),this.tabsContent=jquery_default()(".tabs-content > li",this.$el),this.tabs.first().addClass("active"),this.tabsContent.first().addClass("active")}updateOption(event,selector){const select=event?jquery_default()(event.target):jquery_default()(selector),newOption=select.find("option:selected").text();select.siblings(".selected-text").text(newOption)}}class Startup{constructor(){const body2=jquery_default()(document.body);this.isHome=body2.hasClass("template-index"),this.isAccount=body2.attr("class").indexOf("-customers-")>0,this.isCollection=jquery_default()('[data-section-type="static-collection"]').length,this.isProduct=jquery_default()('[data-section-type="static-product"]').length,this.isProductSlideshow=jquery_default()('[data-section-type="static-product-slideshow"]').length,this.isCart=jquery_default()('[data-section-type="static-cart"]').length,this.isContactPage=jquery_default()('[data-section-type="static-contact"]').length,this.isGiftCardPage=jquery_default()('[data-section-type="static-giftcard"]').length,this.isBlog=jquery_default()('[data-section-type="static-blog"]').length,this.isBlogPost=jquery_default()('[data-section-type="static-article"]').length,this.is404=jquery_default()('[data-section-type="static-404"]').length,this.isSearch=jquery_default()('[data-section-type="static-search"]').length,FlickityTouchFix(),this.sections=new shopify_sections_manager_es,this.sections.register("pxs-header-standard",section=>new StaticHeader(section)),this.sections.register("static-footer",section=>new StaticFooter(section)),this.sections.register("pxs-map",section=>new PxsMap(section)),this.sections.register("pxs-video",section=>new pxs_video_dist_index_es(section)),this.sections.register("pxs-faq",section=>new DynamicFAQ(section)),index_es.init(),this.sections.register("dynamic-featured-product",section=>new Product(section)),this.sections.register("dynamic-image-with-text",section=>new ImagesWithText(section)),this.sections.register("dynamic-image-with-text-overlay",section=>new ImagesWithText(section)),this.sections.register("pxs-slideshow",section=>new dist_index_es(section)),this.sections.register("pxs-testimonials",section=>new pxs_testimonials_dist_index_es(section)),this.sections.register("age-gate",section=>new PageAgeGate(section)),this.isCollection&&this.sections.register("static-collection",section=>new StaticCollection(section)),this.isGiftCardPage&&this.sections.register("static-giftcard",section=>new GiftCard(section)),this.isContactPage&&this.sections.register("static-contact",section=>new Contact(section)),this.isProduct&&(this.sections.register("static-product",section=>new Product(section)),this.sections.register("static-product-recommendations",section=>new StaticProductRecommendations(section))),this.isCart&&this.sections.register("static-cart",section=>new StaticCart(section)),this.isBlog&&this.sections.register("static-blog",section=>new StaticBlog(section)),this.isBlogPost&&this.sections.register("static-article",section=>new StaticBlog(section)),this.isSearch&&this.sections.register("static-search",section=>new StaticSearch(section)),this.isAccount&&(this.Account=new Account({el:".main-content"})),this.rtes=[],this.richTextInit(),ThemeUtils.externalLinks(jquery_default()(document)),jquery_default()(document).on("shopify:section:load",event=>{ThemeUtils.externalLinks(jquery_default()(event.target)),this.richTextInit(),initShopifyProductReviews()}),this.classHoist(),jquery_default()(document).on("shopify:section:select.home-page",()=>this.classHoist()).on("shopify:section:load.home-page",()=>this.classHoist()).on("shopify:section:deselect.home-page",()=>this.classHoist());const ageGatePage=document.getElementById("age-gate-page");ageGatePage&&new SiteAgeGate(ageGatePage)}getStyle($el){const styleSetting=$el.attr("class").match(/(default|contrast|accent)-style/);return styleSetting!=null?styleSetting[0]:!1}getSectionWidth($el){const sectionWidthSetting=$el.attr("class").match(/content-width|full-width/);return sectionWidthSetting!==null?sectionWidthSetting[0]:!1}classHoist(){jquery_default()(".module-container").each((index,section)=>{const $section=jquery_default()(section),$parent=$section.parent(),sectionStyle=this.getStyle($section),parentStyle=this.getStyle($parent),sectionWidthStyle=this.getSectionWidth($section);sectionWidthStyle&&$parent.addClass(sectionWidthStyle),sectionStyle&&(parentStyle&&$parent.removeClass(parentStyle),$parent.addClass(sectionStyle))})}richTextInit(){for(let i=0;i<jquery_default()(".rte").length;i++)this.rtes.push(new RTE({el:jquery_default()(".rte")[i]}))}}jquery_default()(()=>{window.theme=new Startup})})()})();
185//# sourceMappingURL=/cdn/shop/t/14/assets/startup.js.map?v=73449182546878981171733850847

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.